@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@300;400;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand: #0080ff;
    --brand-dark: #0066cc;
    --brand-light: #e6f0ff;
    --brand-gradient: linear-gradient(135deg, #0080ff, #0066cc);
    --brand-glow: 0 0 20px rgba(0,128,255,.15);

    --navy: #080e1c;
    --navy-light: #0d1f3c;
    --navy-mid: #162544;

    --success: #10b981;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;

    --bg: #f0f4f9;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.04);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(circle, rgba(0,128,255,.05) 1px, transparent 1px);
    background-size: 24px 24px;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
}

a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }

::selection { background: var(--brand); color: white; }

/* ===== TOPBAR ===== */
.topbar {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background .3s;
}

.topbar.scrolled {
    background: rgba(8,14,28,.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-logo {
    width: auto;
    height: 30px;
    transition: opacity .2s;
}

.topbar-brand:hover .topbar-logo { opacity: .8; }

.topbar-nav {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.topbar-nav::-webkit-scrollbar { display: none; }

.topbar-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    color: #8892a4;
    white-space: nowrap;
    transition: all .2s;
    font-family: 'DM Sans', sans-serif;
    position: relative;
}

.topbar-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
    transform-origin: left;
}

.topbar-link:hover {
    color: #f5f7fa;
}

.topbar-link:hover::after {
    transform: scaleX(1);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topbar-name {
    font-size: 13px;
    font-weight: 500;
    color: #8892a4;
    font-family: 'DM Sans', sans-serif;
}

.topbar-logout {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #8892a4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.topbar-logout:hover {
    background: rgba(239,68,68,.15);
    color: #ef4444;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #f5f7fa;
}

@media (max-width: 768px) {
    .topbar-inner { padding: 0 16px; gap: 12px; }
    .topbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,.4);
    }
    .topbar-nav.open { display: flex; }
    .topbar-toggle { display: block; }
    .topbar-name { display: none; }
}

/* ===== MAIN ===== */
.main-content {
    position: relative;
    padding: 32px 0;
    min-height: calc(100vh - 64px);
    background:
        radial-gradient(ellipse 100% 40% at 50% -10%, rgba(0,128,255,.1), transparent 70%),
        radial-gradient(ellipse 60% 40% at 85% 90%, rgba(0,128,255,.08), transparent 60%),
        radial-gradient(ellipse 40% 50% at 15% 100%, rgba(6,182,212,.04), transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(0,128,255,.02), transparent 50%);
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,128,255,.02) 1px, transparent 1px),
        linear-gradient(rgba(0,128,255,.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em;
}

.page-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.text-muted { color: var(--text-secondary); font-size: 14px; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow .3s;
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
}

.card-body { padding: 24px; }

/* ===== BOOKING LAYOUT ===== */
.booking-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 900px) {
    .booking-wrap {
        flex-direction: row;
        align-items: flex-start;
    }
    .booking-wrap .booking-cal { width: 360px; flex-shrink: 0; }
    .booking-wrap .booking-slots { flex: 1; }
}

/* ===== CALENDAR ===== */
.booking-cal .card { margin-bottom: 0; }

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 14px;
}

.cal-head-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
}

.cal-head-nav {
    display: flex;
    gap: 4px;
}

.cal-head-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    color: var(--text-secondary);
}

.cal-head-btn:hover {
    border-color: var(--brand);
    background: var(--brand-light);
    color: var(--brand);
}

.cal-head-btn:disabled { opacity: .25; cursor: default; }
.cal-head-btn:disabled:hover { border-color: var(--border); background: white; color: var(--text-secondary); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cal-wd {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 8px 0 6px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.cal-cell {
    position: relative;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: white;
    cursor: default;
    font-family: inherit;
    user-select: none;
    transition: background .1s;
}

.cal-cell:nth-child(7n) { border-right: none; }

.cal-cell--empty {
    background: transparent;
}

.cal-cell--avail {
    cursor: pointer;
}

.cal-cell--avail:hover {
    background: var(--brand-light);
}

.cal-cell--avail:hover .cal-num {
    color: var(--brand);
}

.cal-cell--disabled {
    opacity: .25;
}

.cal-cell--today .cal-num {
    color: var(--brand);
    font-weight: 700;
}

.cal-cell.selected {
    background: var(--brand) !important;
    opacity: 1 !important;
}

.cal-cell.selected .cal-num {
    color: white !important;
    font-weight: 700;
}

.cal-cell.selected .cal-dot {
    background: white;
}

.cal-num {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}

/* ===== SLOTS ===== */
.slots-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.slots-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--text-muted);
}

.slots-empty p { font-size: 14px; }

.slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.slots-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slots-date-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slots-date-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
}

.slots-date-text small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.slot-btn {
    padding: 12px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    font-family: inherit;
}

.slot-btn:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.slot-btn.selected {
    border-color: var(--brand);
    background: var(--brand);
    color: white;
}

.slot-btn.selected .slot-time { color: white; }

.slot-btn--taken {
    opacity: .25;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-btn--taken:hover {
    border-color: var(--border);
    background: white;
}

.slot-time {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text);
}

/* ===== BOOKING FORM ===== */
.booking-form {
    border-top: 1.5px solid var(--border-light);
    padding-top: 24px;
    margin-top: 8px;
    animation: formSlide .35s ease;
}

@keyframes formSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section { margin-bottom: 24px; }

.form-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--border-light);
    letter-spacing: -.01em;
}

.form-group { margin-bottom: 18px; flex: 1; min-width: 0; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: all .2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,128,255,.1);
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (min-width: 768px) { .form-row > .form-group { flex: 1; } }

/* ===== RADIO ===== */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all .2s;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

.radio-label:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.radio-label:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-light);
    box-shadow: 0 0 0 2px rgba(0,128,255,.15);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: -.01em;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,128,255,.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    box-shadow: 0 4px 12px rgba(0,128,255,.35);
}

.btn-outline {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--bg);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    animation: alertIn .3s ease;
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== AUTH PAGE ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 100% 60% at 50% -30%, rgba(0,128,255,.25), transparent),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(0,128,255,.12), transparent),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6,182,212,.08), transparent),
        linear-gradient(160deg, #0a1128, #0f172a, #1e293b);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(0,128,255,.1) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 28px 28px, 56px 56px, 56px 56px;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,128,255,.12), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    animation: authGlow 8s ease-in-out infinite alternate;
}

@keyframes authGlow {
    0% { transform: translate(0, 0) scale(1); opacity: .6; }
    100% { transform: translate(-40px, 40px) scale(1.15); opacity: 1; }
}

body.auth-page {
    background-image: none;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
}

.auth-card {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.auth-form .btn { margin-top: 4px; }

.auth-links { text-align: center; margin-top: 16px; }
.auth-links a { font-size: 14px; }

.auth-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid var(--border);
}

.auth-register-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; margin: -4px 0; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--bg);
}

.table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--brand-light); }

/* ===== BADGES ===== */
.rol-badge, .estado-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: .02em;
}

.rol-admin { background: #fef2f2; color: #991b1b; }
.rol-soporte { background: #eff6ff; color: #1e40af; }
.rol-usuario { background: #f0fdf4; color: #166534; }

.estado-pendiente { background: var(--warning-bg); color: #92400e; }
.estado-realizada { background: var(--success-bg); color: #065f46; }
.estado-no_realizada { background: var(--danger-bg); color: #991b1b; }
.estado-cancelado { background: var(--bg); color: var(--text-muted); }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform .2s, box-shadow .3s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-value {
    font-size: 36px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ===== DETAIL GRID ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) { .detail-grid { grid-template-columns: 1fr 1fr; } }

.detail-item { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.detail-item:last-child { border-bottom: none; }

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.detail-value { font-size: 15px; color: var(--text); font-weight: 500; }

/* ===== REPORT ===== */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.summary-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.summary-value {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.summary-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 56px 0 24px;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: auto;
    height: 30px;
    margin-bottom: 8px;
    opacity: .9;
}

.footer-text {
    font-size: 13px;
    color: #8892a4;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-links h4 {
    color: #f5f7fa;
    margin-bottom: 16px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-links a {
    color: #8892a4;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    transition: color .2s;
}

.footer-links a:hover { color: var(--brand); }

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #8892a4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.footer-social a:hover {
    background: var(--brand);
    color: white;
}

.footer-legal {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 0;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-legal p {
    font-size: 12px;
    color: rgba(255,255,255,.3);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ===== FILTERS ===== */
.filter-form { width: 100%; }

.filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-row .form-group { margin-bottom: 0; min-width: 140px; }
.filter-row .form-group select,
.filter-row .form-group input { font-size: 14px; padding: 9px 14px; }

/* ===== MOBILE ===== */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 12px; }
    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .header-nav.open { display: flex; }
    .mobile-nav-toggle { display: block; }

    .main-content { padding: 24px 0; }
    .container { padding: 0 16px; }
    .cal-cell { min-height: 38px; }
    .page-header h2 { font-size: 22px; }
    .slots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .cal-cell { min-height: 34px; }
    .slots-grid { grid-template-columns: 1fr 1fr; }
    .radio-group { flex-direction: column; }
}

@media print {
    .header { display: none; }
    .footer { display: none; }
    .btn { display: none; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .main-content { padding: 0; background: none; }
}
