﻿/* ═══════════════════════════════════════════════════
   ClubManager Web — Light Theme Professional
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #34a853;
    --secondary-light: #e6f4ea;
    --accent: #ff6b35;
    --danger: #d93025;
    --danger-light: #fce8e6;
    --warning: #f9ab00;
    --warning-light: #fef7e0;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --transition: all .2s ease;
    --max-width: 1200px;
    --nav-height: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
    }

img {
    max-width: 100%;
    height: auto;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

/* ═══ NAVBAR ═══ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    transition: var(--transition);
}

    .navbar .container {
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

    .navbar-brand img {
        height: 36px;
        width: 36px;
        object-fit: contain;
    }

    .navbar-brand span {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

    .nav-links a {
        padding: 8px 14px;
        border-radius: var(--radius-sm);
        font-size: .875rem;
        font-weight: 500;
        color: var(--text-secondary);
        transition: var(--transition);
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--primary);
            background: var(--primary-light);
        }

    .nav-links .nav-btn {
        background: var(--primary);
        color: #fff !important;
        padding: 8px 18px;
        border-radius: var(--radius-sm);
        font-weight: 600;
    }

        .nav-links .nav-btn:hover {
            background: var(--primary-dark);
        }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

    .nav-toggle svg {
        width: 24px;
        height: 24px;
        color: var(--text);
    }

/* ═══ HERO ═══ */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1557b0 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' patternUnits='userSpaceOnUse' width='60' height='60'%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,.06)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='60' height='60'/%3E%3C/svg%3E");
        pointer-events: none;
    }

    .hero > * {
        position: relative;
        z-index: 1;
    }

    .hero h1 {
        font-size: 2.75rem;
        font-weight: 800;
        margin-bottom: 16px;
        letter-spacing: -.02em;
    }

    .hero p {
        font-size: 1.15rem;
        opacity: .9;
        max-width: 600px;
        margin: 0 auto 32px;
    }

    .hero .badge {
        display: inline-block;
        background: rgba(255,255,255,.15);
        border: 1px solid rgba(255,255,255,.25);
        padding: 6px 16px;
        border-radius: 50px;
        font-size: .8rem;
        font-weight: 600;
        margin-bottom: 20px;
        backdrop-filter: blur(4px);
    }

/* ═══ CONTAINER ═══ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    padding: 40px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    flex: 1;
}

/* ═══ SECTION ═══ */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* ═══ CARDS ═══ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

    .card:hover {
        box-shadow: var(--shadow);
        border-color: transparent;
    }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

    .card-icon.blue {
        background: var(--primary-light);
        color: var(--primary);
    }

    .card-icon.green {
        background: var(--secondary-light);
        color: var(--secondary);
    }

    .card-icon.orange {
        background: #fff3e0;
        color: var(--accent);
    }

    .card-icon.red {
        background: var(--danger-light);
        color: var(--danger);
    }

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card p {
    color: var(--text-secondary);
    font-size: .9rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* ═══ STAT CARDS ═══ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

    .stat-card .stat-value {
        font-size: 2.25rem;
        font-weight: 800;
        color: var(--primary);
        line-height: 1.2;
    }

    .stat-card .stat-label {
        font-size: .85rem;
        color: var(--text-secondary);
        margin-top: 4px;
        font-weight: 500;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

    .btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.btn-primary {
    background: var(--primary);
    color: #fff;
}

    .btn-primary:hover:not(:disabled) {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(26,115,232,.3);
    }

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn-secondary:hover:not(:disabled) {
        background: #fff;
        border-color: var(--primary);
        color: var(--primary);
    }

.btn-accent {
    background: var(--accent);
    color: #fff;
}

    .btn-accent:hover:not(:disabled) {
        background: #e55a28;
    }

.btn-success {
    background: var(--secondary);
    color: #fff;
}

    .btn-success:hover:not(:disabled) {
        background: #2d9249;
    }

.btn-danger {
    background: var(--danger);
    color: #fff;
}

    .btn-danger:hover:not(:disabled) {
        background: #b5221b;
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-outline:hover:not(:disabled) {
        background: var(--primary);
        color: #fff;
    }

.btn-white {
    background: #fff;
    color: var(--primary);
}

    .btn-white:hover:not(:disabled) {
        background: var(--primary-light);
    }

.btn-ghost {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}

    .btn-ghost:hover:not(:disabled) {
        background: rgba(255,255,255,.25);
    }

.btn-sm {
    padding: 8px 16px;
    font-size: .8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══ FORMS ═══ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

    .form-label .required {
        color: var(--danger);
    }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .9rem;
    background: #fff;
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

    .form-input:focus, .form-select:focus, .form-textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,115,232,.12);
    }

    .form-input.error, .form-select.error {
        border-color: var(--danger);
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: .8rem;
    color: var(--danger);
    margin-top: 4px;
    display: none;
}

    .form-error.show {
        display: block;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: var(--primary);
    }

/* ═══ TABLES ═══ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

thead {
    background: var(--bg);
}

th {
    padding: 12px 16px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 14px 16px;
    font-size: .9rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--primary-light);
}

/* ═══ BADGES ═══ */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}

    .badge-status::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

.badge-pendiente {
    background: var(--warning-light);
    color: #92600e;
}

    .badge-pendiente::before {
        background: var(--warning);
    }

.badge-aprobada, .badge-activo {
    background: var(--secondary-light);
    color: #1e7e34;
}

    .badge-aprobada::before, .badge-activo::before {
        background: var(--secondary);
    }

.badge-rechazada, .badge-inactivo {
    background: var(--danger-light);
    color: var(--danger);
}

    .badge-rechazada::before, .badge-inactivo::before {
        background: var(--danger);
    }

.badge-cancelada {
    background: var(--border-light);
    color: var(--text-muted);
}

    .badge-cancelada::before {
        background: var(--text-muted);
    }

/* ═══ ALERTS ═══ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

    .alert.show {
        display: flex;
    }

.alert-success {
    background: var(--secondary-light);
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: var(--warning-light);
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #b8daff;
}

/* ═══ TOAST ═══ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight .3s ease;
    font-size: .9rem;
}

    .toast.success {
        border-left: 4px solid var(--secondary);
    }

    .toast.error {
        border-left: 4px solid var(--danger);
    }

    .toast.info {
        border-left: 4px solid var(--primary);
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ═══ MATCH CARD ═══ */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

    .match-card:hover {
        box-shadow: var(--shadow);
        transform: translateY(-2px);
    }

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.match-team {
    text-align: center;
    font-weight: 600;
    font-size: .95rem;
    min-width: 120px;
}

.match-vs {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 700;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 50px;
}

.match-info {
    text-align: right;
    min-width: 140px;
}

.match-date {
    font-weight: 600;
    font-size: .9rem;
}

.match-meta {
    font-size: .8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ═══ TABS ═══ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab {
    padding: 12px 20px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

    .tab:hover {
        color: var(--primary);
    }

    .tab.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
        font-weight: 600;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
        animation: fadeIn .3s ease;
    }

/* ═══ CARNET DIGITAL ═══ */
.carnet {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: #fff;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

    .carnet::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255,255,255,.05);
    }

    .carnet > * {
        position: relative;
        z-index: 1;
    }

.carnet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.carnet-club {
    font-size: 1.1rem;
    font-weight: 700;
}

.carnet-temporada {
    font-size: .75rem;
    opacity: .8;
    background: rgba(255,255,255,.15);
    padding: 4px 10px;
    border-radius: 50px;
}

.carnet-nombre {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.carnet-socio {
    font-size: .85rem;
    opacity: .9;
    margin-bottom: 20px;
}

.carnet-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.carnet-detail label {
    font-size: .7rem;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.carnet-detail span {
    display: block;
    font-weight: 600;
    font-size: .9rem;
}

.carnet-qr {
    text-align: center;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: inline-block;
}

/* ═══ CARNET BARCODE ═══ */
.carnet-barcode-area {
    text-align: center;
    margin-top: 8px;
}

    .carnet-barcode-area svg {
        background: #fff;
        border-radius: var(--radius-sm);
        padding: 12px 16px;
        display: inline-block;
        max-width: 100%;
        height: auto;
    }

.carnet-barcode-label {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .15em;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    opacity: .9;
}

/* ═══ CARNET PAGE LAYOUT ═══ */
.carnet-page {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.carnet-page-main {
    min-width: 0;
}

.carnet-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .carnet-page-sidebar .card {
        margin: 0;
    }

/* ═══ PAGE HEADER ═══ */
.page-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    padding: 48px 24px 40px;
    text-align: center;
}

    .page-header h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .page-header p {
        opacity: .85;
        font-size: 1rem;
    }

/* ═══ AUTH PAGES ═══ */
.auth-wrapper {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

    .auth-card h1 {
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 4px;
    }

    .auth-card .subtitle {
        text-align: center;
        color: var(--text-secondary);
        font-size: .9rem;
        margin-bottom: 28px;
    }

    .auth-card .auth-links {
        text-align: center;
        margin-top: 20px;
        font-size: .9rem;
        color: var(--text-secondary);
    }

    .auth-card .auth-logo {
        text-align: center;
        margin-bottom: 24px;
    }

        .auth-card .auth-logo span {
            font-size: 2.5rem;
        }

/* ═══ PROFILE DASHBOARD ═══ */
.profile-header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 40px 24px;
    border-radius: 0 0 24px 24px;
}

.profile-info {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,.3);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-email {
    opacity: .85;
    font-size: .9rem;
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

    .empty-state .icon {
        font-size: 3rem;
        margin-bottom: 16px;
        opacity: .4;
    }

    .empty-state h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .empty-state p {
        color: var(--text-secondary);
        font-size: .9rem;
        max-width: 400px;
        margin: 0 auto 20px;
    }

/* ═══ LOADING ═══ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ═══ FOOTER ═══ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 24px 24px;
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: .85rem;
    line-height: 1.7;
}

.footer h4 {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: var(--text-secondary);
        font-size: .9rem;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

.footer-bottom {
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn .4s ease;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        flex-direction: column;
        box-shadow: var(--shadow);
    }

        .nav-links.open {
            display: flex;
        }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 48px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .match-card {
        flex-direction: column;
        text-align: center;
    }

    .match-info {
        text-align: center;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .carnet {
        max-width: 100%;
    }

    .cards-grid, .cards-grid-3 {
        grid-template-columns: 1fr;
    }

    .carnet-page {
        grid-template-columns: 1fr;
    }

    .carnet-page-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .carnet-page-sidebar .card {
        flex: 1 1 140px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    .carnet-page-sidebar {
        flex-direction: column;
    }

    .carnet-page-sidebar .card {
        flex: 1 1 100%;
    }
}
/* ═══ COUNTDOWN ═══ */
.countdown-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cd-unit {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
    min-width: 60px;
}

    .cd-unit span {
        display: block;
        font-size: 1.6rem;
        font-weight: 800;
        line-height: 1.2;
        color: #fff;
    }

    .cd-unit small {
        font-size: .7rem;
        text-transform: uppercase;
        opacity: .8;
        letter-spacing: .5px;
        color: #fff;
    }

.cd-sep {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: .6;
    color: #fff;
}

/* ═══ PRICING GRID ═══ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.pricing-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

    .pricing-price span {
        font-size: 1.2rem;
        font-weight: 600;
    }

.pricing-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: .9rem;
    line-height: 1.5;
}

.pricing-discount {
    background: var(--secondary-light);
    color: var(--secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    margin-bottom: 20px;
}

/* ═══ MATCH SCORE ═══ */
.match-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    padding: 4px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* ═══ PWA INSTALL BANNER ═══ */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding: 12px 16px;
}

.pwa-install-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .pwa-install-content div {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

/* ═══ CARD ICON PURPLE ═══ */
.card-icon.purple {
    background: #f3e8fd;
    color: #7c3aed;
}

@media (max-width: 600px) {
    .cd-unit {
        padding: 6px 10px;
        min-width: 50px;
    }

        .cd-unit span {
            font-size: 1.2rem;
        }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pwa-install-content span:first-child {
        display: none;
    }
}
