@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand-yellow: #FFCC00;
    --brand-dark: #332200;
    --bg-light: #F8F9FA;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding-bottom: var(--safe-area-bottom);
    line-height: 1.5;
}

/* Принудительный мобильный контейнер */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
}

/* Navbar */
.navbar {
    background: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-nav {
    background: #F1F2F6;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

/* Карточки */
.card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
}

/* Инпуты */
.form-group { margin-bottom: 16px; }
.form-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text-muted); 
    margin-bottom: 6px; 
    padding-left: 4px;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #EFEFEF;
    border-radius: 12px;
    font-size: 16px;
    transition: 0.2s;
    background: #FAFAFA;
}

input:focus { border-color: var(--brand-yellow); outline: none; background: white; }

/* Кнопки */
.btn-primary {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 4px 0 #E6B800;
    transition: transform 0.1s;
}

.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #E6B800; }

.btn-secondary {
    background: var(--brand-dark);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    width: 100%;
    font-weight: 600;
}

/* Бейджики */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-paid { background: #E3FCEF; color: #006B44; }
.status-pending { background: #FFF4E5; color: #B45C00; }