/* ============================================================
   OTCPulse — Main Stylesheet
   ============================================================ */

/* === VARIABLES ============================================= */
:root {
    --navy:        #1B3A6B;
    --navy-dark:   #0F2347;
    --gold:        #FFB300;
    --gold-dark:   #E6A000;
    --teal:        #00C896;
    --purple:      #6C63FF;
    --bg:          #F4F6FA;
    --white:       #FFFFFF;
    --text:        #1A1A2E;
    --text-muted:  #64748B;
    --border:      #E2E8F0;
    --shadow:      0 4px 24px rgba(27, 58, 107, 0.10);
    --shadow-lg:   0 8px 40px rgba(27, 58, 107, 0.18);
    --radius:      12px;
    --radius-lg:   20px;
    --ease:        0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
main { flex: 1; }

/* === HEADER / NAV ========================================== */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-otc    { color: var(--gold); }
.brand-engage { color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color var(--ease);
}
.nav-link:hover { color: var(--gold); }

/* === BUTTONS =============================================== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--ease);
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}
.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 179, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-secondary:hover {
    background: var(--navy);
    color: #fff;
}

.btn-danger {
    background: #EF4444;
    color: #fff;
}
.btn-danger:hover {
    background: #DC2626;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* === CARD LINK ============================================= */
.card-link {
    display: block;
    cursor: pointer;
    color: inherit;
}


/* === HERO SHORT (authenticated) ============================ */
.hero-short {
    padding: 3rem 2rem;
}

/* === CTA SECTION =========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* === MESSAGES ============================================== */
.messages-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.message {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.925rem;
}

.message-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--teal); }
.message-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid #EF4444; }
.message-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--gold); }
.message-info    { background: #DBEAFE; color: #1E40AF; border-left: 4px solid #3B82F6; }

/* === HERO ================================================== */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #2A4D8A 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(255, 179, 0, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 75%, rgba(0, 200, 150, 0.07) 0%, transparent 55%);
    pointer-events: none;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 179, 0, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 179, 0, 0.35);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero h1 .highlight { color: var(--gold); }

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-hero-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.9rem 2.25rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ease);
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.75);
}

/* === STATS STRIP =========================================== */
.stats-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 2.25rem 2rem;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.stat-number span { color: var(--gold); }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 500;
}

/* === SECTION LAYOUT ======================================== */
.section {
    padding: 4rem 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt { background: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: rgba(108, 99, 255, 0.1);
    color: var(--purple);
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1rem;
}

/* === CARD GRID ============================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
    border: 1px solid var(--border);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-gold   { background: rgba(255, 179, 0, 0.15); }
.icon-teal   { background: rgba(0, 200, 150, 0.15); }
.icon-purple { background: rgba(108, 99, 255, 0.15); }
.icon-navy   { background: rgba(27, 58, 107, 0.1); }

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === AUTH PAGES (login / register) ========================= */
.auth-wrapper {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(160deg, var(--bg) 55%, rgba(27, 58, 107, 0.07) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* === FORM FIELDS =========================================== */
.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    background: #FAFBFC;
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
    font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
    background: #fff;
}

.field small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.checkbox-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-list li {
    display: block;
}

.checkbox-list li label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-list input[type="checkbox"] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--teal);
    cursor: pointer;
}

.current-photo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.current-photo img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.current-photo-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.clear-photo-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #EF4444;
    cursor: pointer;
    font-weight: 500;
}

.clear-photo-label input[type="checkbox"] {
    width: auto;
    accent-color: #EF4444;
    cursor: pointer;
}

/* === FILE UPLOAD =========================================== */
.file-input-hidden {
    display: none;
}

.file-upload-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.file-upload-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--navy);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ease);
    white-space: nowrap;
}
.file-upload-btn:hover { background: var(--navy-dark); }

.file-name {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-submit {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.field-submit .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

/* === ERROR LIST ============================================ */
.error-list {
    list-style: none;
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.error-list li {
    font-size: 0.875rem;
    color: #991B1B;
    padding: 0.15rem 0;
}

.error-list li::before { content: '⚠ '; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--navy);
    font-weight: 600;
}
.auth-footer a:hover { color: var(--gold-dark); }

/* === PROFILE =============================================== */
.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-banner {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #2A4D8A);
    height: 110px;
}

.profile-body {
    padding: 0 1.25rem 2rem;  /* was 0 2rem 2rem */
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold);
    border: 4px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-top: -40px;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.profile-avatar-img {
    object-fit: cover;
    background: var(--border);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.profile-role-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.1);
    color: var(--purple);
    border-radius: 100px;
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem; 
    margin: 1.75rem 0;
}

.profile-stat {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0.75rem 0.5rem;  /* was 1rem */
    text-align: center;
    border: 1px solid var(--border);
}

.profile-stat-value {
    font-size: 1.35rem; 
    font-weight: 800;
    color: var(--navy);
}

.profile-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

.profile-info {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.info-row:last-child { border-bottom: none; }

.info-row .label {
    color: var(--text-muted);
    font-weight: 500;
}
.info-row .value {
    color: var(--navy);
    font-weight: 600;
}

.profile-actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* === CLUB ICON ============================================= */
.club-icon-img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.club-hero-img {
    width: 40%;
    max-width: 320px;
    height: auto;
    border-radius: 16px;
    margin: 0 auto 1rem;
    display: block;
}

.club-hero-emoji {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

/* === CLUB LIST ============================================= */
.club-meta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === CLUB DETAIL =========================================== */
.club-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

.event-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }

.event-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.event-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.event-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.point-badge {
    color: var(--teal);
    font-weight: 700;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 500;
}

.member-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === PAGINATION ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === EMPTY STATE =========================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

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


/* === QR PAGES ============================================== */
.qr-page {
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(160deg, var(--bg) 55%, rgba(27,58,107,0.07) 100%);
}

.qr-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 2.5rem 3rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.qr-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.qr-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.qr-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.qr-image-wrap {
    background: var(--white);
    border: 3px solid var(--navy);
    border-radius: var(--radius);
    display: inline-block;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.qr-image-wrap img {
    width: 260px;
    height: 260px;
    display: block;
}

.qr-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.qr-code-block {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.qr-code-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.4rem;
}

.qr-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--gold);
}

.qr-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media print {
    .site-header,
    .site-footer,
    .qr-actions { display: none !important; }
    .qr-page { min-height: unset; padding: 1rem; background: #fff; }
    .qr-card { box-shadow: none; border: none; padding: 1rem; }
    .qr-image-wrap img { width: 320px; height: 320px; }
    .qr-code-block { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* === CHECK-IN TERMINAL ===================================== */
.terminal-page {
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(160deg, var(--bg) 55%, rgba(27,58,107,0.07) 100%);
}

.terminal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 2rem 2.5rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.terminal-badge {
    display: inline-block;
    background: rgba(27,58,107,0.08);
    color: var(--navy);
    border-radius: 100px;
    padding: 0.25rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.terminal-event-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.terminal-event-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.terminal-result {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.result-checked-in { background: rgba(0,200,150,0.12); color: #0a7a5a; border: 1px solid rgba(0,200,150,0.3); }
.result-already-in { background: rgba(255,179,0,0.12); color: #92610a; border: 1px solid rgba(255,179,0,0.3); }
.result-not-found  { background: rgba(185,28,28,0.08); color: #b91c1c; border: 1px solid rgba(185,28,28,0.2); }
.result-invalid    { background: rgba(185,28,28,0.08); color: #b91c1c; border: 1px solid rgba(185,28,28,0.2); }

.terminal-input {
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--navy);
    background: var(--bg);
    outline: none;
    transition: border-color var(--ease);
    margin-bottom: 1rem;
}

.terminal-input:focus { border-color: var(--navy); background: var(--white); }

.terminal-submit { width: 100%; padding: 0.8rem; font-size: 1rem; }

.terminal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.recent-list { margin-top: 2rem; text-align: left; }

.recent-list h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.recent-row:last-child { border-bottom: none; }
.recent-name { font-weight: 600; color: var(--navy); }
.recent-time { color: var(--text-muted); font-size: 0.8rem; }

/* === FOOTER ================================================ */
.site-footer {
    background: var(--navy-dark);
    padding: 2.5rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand .brand-otc    { color: var(--gold); font-size: 1.4rem; font-weight: 800; }
.footer-brand .brand-engage { color: #fff;        font-size: 1.4rem; font-weight: 800; }

.footer-tagline {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    margin: 0.5rem 0 1.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--gold); }

/* === RESPONSIVE ============================================ */
@media (max-width: 768px) {
    .nav-container  { padding: 0 1rem; }
    .hero           { padding: 3rem 1.5rem; }
    .hero-actions   { flex-direction: column; align-items: center; }
    .stats-inner    { grid-template-columns: repeat(2, 1fr); }
    .card-grid      { grid-template-columns: 1fr; }
    .auth-card      { padding: 1.75rem 1.25rem; }
    .field-group    { grid-template-columns: 1fr; }
    .profile-stats  { grid-template-columns: repeat(2, 1fr); }
    .profile-body   { padding: 0 1.25rem 1.5rem; }
}

@media (max-width: 480px) {
    .nav-links       { gap: 0.75rem; }
    .profile-stats   { grid-template-columns: 1fr 1fr; }
    .stats-inner     { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
/* ============================================================
   OTCPulse — Additions to main.css
   Append this entire block to the bottom of static/css/main.css
   ============================================================ */

/* === IMPROVED NAV ========================================== */

/* Main page links (desktop) */
.nav-main-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-main-links .nav-link {
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    transition: background var(--ease), color var(--ease);
}

.nav-main-links .nav-link:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
}

.nav-main-links .nav-link-active {
    background: rgba(255,179,0,0.15);
    color: var(--gold) !important;
}

/* Avatar button */
.nav-avatar-wrap {
    position: relative;
}

.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.35rem 0.65rem 0.35rem 0.45rem;
    cursor: pointer;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background var(--ease), border-color var(--ease);
    font-family: inherit;
}

.nav-avatar-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
}

.nav-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nav-avatar-initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-avatar-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-chevron {
    color: rgba(255,255,255,0.6);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-avatar-btn[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
    animation: dropdownIn 0.15s ease;
}

.nav-dropdown.open { display: block; }

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

.nav-dropdown-header {
    padding: 0.85rem 1rem;
    background: var(--bg);
}

.nav-dropdown-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
}

.nav-dropdown-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
}

.nav-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    font-family: inherit;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: var(--bg);
    color: var(--navy);
}

.nav-dropdown-logout {
    color: #b91c1c;
}

.nav-dropdown-logout:hover {
    background: #FEE2E2;
    color: #b91c1c;
}

/* Hamburger button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all 0.2s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile-drawer {
    display: none;
    flex-direction: column;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0;
}

.nav-mobile-drawer.open { display: flex; }

.nav-mobile-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: background var(--ease), color var(--ease);
    text-decoration: none;
}

.nav-mobile-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-mobile-logout { color: #fca5a5; }
.nav-mobile-logout:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }

.nav-mobile-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.25rem 0;
}

/* === BREADCRUMB ============================================ */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--ease);
}

.breadcrumb a:hover { color: var(--navy); }

.breadcrumb-sep {
    color: var(--border);
    font-size: 0.9rem;
    user-select: none;
}

.breadcrumb-current {
    color: var(--navy);
    font-weight: 600;
}

/* === PROFILE PAGE LAYOUT ================================== */

/* Two-column profile layout */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem;
    align-items: start;
}

.profile-sidebar-col { /* left — card stays sticky */ }

.profile-main-col { /* right — requests + reservations */ }


/* Kanban board — responsive */
.kanban-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}

.kanban-col-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.kanban-col-pending  .kanban-col-header { color: #b45309; border-color: rgba(255,160,0,0.3); }
.kanban-col-approved .kanban-col-header { color: var(--teal); border-color: rgba(0,200,150,0.3); }
.kanban-col-denied   .kanban-col-header { color: #b91c1c; border-color: rgba(200,0,0,0.2); }

.kanban-item {
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    background: var(--bg);
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    transition: border-color var(--ease);
}

.kanban-item:hover { border-color: var(--border); }

.kanban-item-type {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.kanban-item-notes {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    /* Clamp long notes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-item-due {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.kanban-item-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

/* === EVENT STATUS TABS (club detail) ====================== */
.event-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.event-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--ease), border-color var(--ease);
    font-family: inherit;
    white-space: nowrap;
}

.event-tab-btn:hover { color: var(--navy); }

.event-tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.event-tab-btn .tab-count {
    display: inline-block;
    margin-left: 0.35rem;
    background: var(--border);
    color: var(--text-muted);
    border-radius: 100px;
    padding: 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.event-tab-btn.active .tab-count {
    background: var(--navy);
    color: #fff;
}

/* === RESPONSIVE FIXES ====================================== */
@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 768px) {
    /* Show hamburger, hide desktop links and avatar name */
    .nav-main-links  { display: none; }
    .nav-hamburger   { display: flex; }
    .nav-avatar-name { display: none; }
    .nav-avatar-btn  { padding: 0.35rem 0.45rem; gap: 0.35rem; }

    /* Kanban stacks on mobile */
    .kanban-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb { padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
    .nav-links { gap: 0.5rem; }
}

/* === LEADERBOARD =========================================== */

.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.leaderboard-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--ease);
}

.lb-row:last-child { border-bottom: none; }

.lb-row:hover { background: var(--bg); }

.lb-row-medal {
    background: rgba(255, 179, 0, 0.04);
}

.lb-row-medal:hover { background: rgba(255, 179, 0, 0.09); }

/* Compact variant used inside the club detail sidebar */
.lb-row-sm {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.lb-row-sm:last-child { border-bottom: none; }

.lb-rank {
    min-width: 2rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.lb-rank-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
}

.lb-identity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.lb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-avatar-club {
    border-radius: 10px;
    font-size: 1.1rem;
}

.lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.lb-name {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-sub {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.lb-score {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-left: auto;
}

.lb-points {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
}

.lb-points-sm {
    font-size: 0.925rem;
}

.lb-pts-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ══════════════════════════════════════════════════════════════
   SURVEY PAGE
   ══════════════════════════════════════════════════════════════ */

.survey-wrapper {
    max-width: 660px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.survey-header { margin-bottom: 2.5rem; }

.survey-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.survey-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.survey-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 200, 150, 0.1);
    color: var(--teal);
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

.survey-question {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.survey-question-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.survey-question-label .required-star {
    color: #EF4444;
    margin-left: 0.2rem;
}

.survey-question textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: #FAFBFC;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    min-height: 90px;
}

.survey-question textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.08);
    background: var(--white);
}

.star-group {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-group input[type="radio"] { display: none; }

.star-group label {
    font-size: 2rem;
    cursor: pointer;
    color: var(--border);
    transition: color 0.15s ease, transform 0.1s ease;
    line-height: 1;
    user-select: none;
}

.star-group label:hover,
.star-group label:hover ~ label { color: var(--border); }
.star-group:hover label { color: var(--gold); }
.star-group label:hover ~ label { color: var(--border); }
.star-group input[type="radio"]:checked ~ label { color: var(--gold); }
.star-group label:hover { transform: scale(1.2); }

.yesno-group { display: flex; gap: 0.75rem; }

.yesno-group input[type="radio"] { display: none; }

.yesno-group label {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    background: #FAFBFC;
}

.yesno-group label:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--white);
}

.yesno-group input[type="radio"]:checked + label {
    border-color: var(--teal);
    background: rgba(0, 200, 150, 0.08);
    color: var(--teal);
}

.survey-error {
    font-size: 0.8rem;
    color: #b91c1c;
    margin-top: 0.4rem;
    font-weight: 500;
}

.survey-submit { margin-top: 1.75rem; }

.survey-submit .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .survey-wrapper { padding: 2rem 1rem; }
    .star-group label { font-size: 1.75rem; }
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD HOME
   ══════════════════════════════════════════════════════════════ */

.home-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.home-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.1rem 0.9rem;
    position: relative;
    overflow: hidden;
}

.home-stat-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.home-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.home-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.home-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.home-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.analytics-section-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}

.club-analytics-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.club-analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, rgba(27,58,107,0.03), transparent);
}

.club-analytics-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
}

.club-analytics-title img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.club-analytics-title .club-emoji-sm {
    font-size: 1.2rem;
    line-height: 1;
}

.club-analytics-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.club-analytics-kpis {
    padding: 1.1rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    border-right: 1px solid var(--border);
}

.mini-kpi {
    background: var(--bg);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.mini-kpi-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.mini-kpi-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.mini-kpi-sub {
    font-size: 0.68rem;
    color: var(--teal);
    font-weight: 600;
    margin-top: 0.2rem;
}

.club-analytics-chart { padding: 1.1rem 1.25rem; }

.club-analytics-chart-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.chart-container {
    position: relative;
    height: 100px;
}

.upcoming-event-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.upcoming-event-row:last-child { border-bottom: none; }

.upcoming-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    margin-top: 5px;
}

.upcoming-event-title {
    font-weight: 600;
    color: var(--navy);
}

.upcoming-event-meta {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.top-member-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.825rem;
}

.top-member-row:last-child { border-bottom: none; }

.mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-rank {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.top-member-name {
    flex: 1;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-member-pts {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .home-body { grid-template-columns: 1fr; }
    .club-analytics-body { grid-template-columns: 1fr; }
    .club-analytics-kpis { border-right: none; border-bottom: 1px solid var(--border); }
    .home-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════ */

/* — Button helpers — */
.btn-sm           { font-size: 0.85rem; padding: 0.35rem 0.8rem; }
.btn-xs           { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
.btn-event-action { font-size: 0.8rem;  padding: 0.3rem 0.7rem; }
.btn-full         { width: 100%; text-align: center; }
.btn-danger-text     { color: #b91c1c; }
.btn-warning-outline { color: #b45309; border-color: #b45309; }
.btn-purple-outline  { color: var(--purple); border-color: var(--purple); }
.btn-dashed          { border-style: dashed; }

/* — Status badge color variants (used with .profile-role-badge) — */
.badge-teal   { background: rgba(0,200,150,0.1);   color: var(--teal); }
.badge-navy   { background: rgba(0,100,200,0.1);   color: var(--navy); }
.badge-gold   { background: rgba(255,179,0,0.15);  color: #b45309; }
.badge-red    { background: rgba(200,0,0,0.1);     color: #b91c1c; }
.badge-purple { background: rgba(108,99,255,0.1);  color: var(--purple); }
.badge-gray   { background: rgba(100,100,100,0.1); color: var(--text-muted); }
.badge-sm     { font-size: 0.7rem; }

/* — Layout helpers — */
.card-mb           { margin-bottom: 1.5rem; }
.card-padded       { padding: 1.5rem; }
.card-flush        { padding: 0; overflow: hidden; }
.card-header-row   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.card-section-title { color: var(--navy); margin: 0; font-size: 1.1rem; }
.action-bar        { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.action-row        { display: flex; gap: 0.4rem; flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.flex-end-bar      { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.col-gap           { display: flex; flex-direction: column; gap: 0.5rem; }
.section-inner-sm  { max-width: 720px; }
.auth-card-lg      { max-width: 560px; }

/* — Club status banners — */
.status-banner          { padding: 0.875rem 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom-width: 2px; border-bottom-style: solid; }
.status-banner-denied   { background: rgba(200,0,0,0.07);   border-bottom-color: #b91c1c; }
.status-banner-pending  { background: rgba(255,160,0,0.12); border-bottom-color: #b45309; }
.status-banner-approved { background: rgba(0,200,150,0.08); border-bottom-color: var(--teal); }
.status-label-denied    { color: #b91c1c;     font-weight: 600; }
.status-label-pending   { color: #b45309;     font-weight: 600; }
.status-label-approved  { color: var(--teal); font-weight: 600; }

/* — Attendance page — */
.attendance-stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.attendance-stat-card { flex: 1; min-width: 140px; text-align: center; padding: 1.25rem 1rem; }
.stat-num             { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-num-gold        { font-size: 2rem; font-weight: 800; color: var(--gold-dark); }
.stat-lbl             { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.attendance-table     { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.attendance-thead tr  { background: var(--navy); color: white; text-align: left; }
.attendance-th        { padding: 0.75rem 1rem; font-weight: 600; }
.attendance-td        { padding: 0.65rem 1rem; }
.attendance-td-muted  { padding: 0.65rem 1rem; color: var(--text-muted); }
.attendance-row       { border-bottom: 1px solid var(--border); }
.attendance-row-alt   { background: var(--bg); }
.otc-email-sm         { font-size: 0.8rem; }

/* — Bulletin board request kanban — */
.request-kanban               { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.kanban-col-title             { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom-width: 2px; border-bottom-style: solid; }
.kanban-col-title-pending  { color: #b45309;     border-bottom-color: rgba(255,160,0,0.3); }
.kanban-col-title-approved { color: var(--teal); border-bottom-color: rgba(0,200,150,0.3); }
.kanban-col-title-denied   { color: #b91c1c;     border-bottom-color: rgba(200,0,0,0.2); }
.request-card       { padding: 0.65rem 0.75rem; border-radius: 6px; background: var(--bg); margin-bottom: 0.5rem; }
.request-card-title { font-weight: 600; font-size: 0.875rem; color: var(--navy); margin-bottom: 0.2rem; }
.request-card-notes { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.request-card-due   { font-size: 0.75rem; }
.request-action-row { display: flex; gap: 0.4rem; margin-top: 0.5rem; }

/* — Profile page — */
.profile-actions-col   { flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.value-sm              { font-size: 0.85rem; }
.reservations-list     { display: flex; flex-direction: column; gap: 0.75rem; }
.reservation-card      { background: var(--bg); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--border); }
.reservation-card-row  { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.reservation-title-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.reservation-title     { font-weight: 700; color: var(--navy); font-size: 0.925rem; }
.reservation-actions   { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* — Accent colors (for home stat strip and similar) — */
.accent-gold   { background: var(--gold); }
.accent-teal   { background: var(--teal); }
.accent-navy   { background: var(--navy); }
.accent-purple { background: var(--purple); }

/* — Home nav shortcut card contents — */
.nav-shortcut-icon  { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 0.6rem; }
.nav-shortcut-title { font-size: 0.9rem; margin-bottom: 0.2rem; }
.nav-shortcut-text  { font-size: 0.8rem; }

/* — Auth confirmation pages — */
.auth-card-centered { text-align: center; }
.auth-success-icon  { font-size: 3rem; margin-bottom: 1rem; }

/* — Misc helpers — */
.event-col-list          { display: flex; flex-direction: column; gap: 1rem; }
.back-link               { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; display: inline-block; margin-bottom: 0.75rem; }
.text-muted-sm           { color: var(--text-muted); font-size: 0.875rem; }
.pending-requests-badge  { background: rgba(255,179,0,0.15); color: #b45309; border-radius: 100px; padding: 0.15rem 0.6rem; font-size: 0.72rem; font-weight: 700; }
.officer-apps-count      { font-size: 0.8rem; font-weight: 700; background: rgba(255,179,0,0.15); color: #b45309; border-radius: 100px; padding: 0.1rem 0.5rem; }
.attended-text           { color: var(--gold); font-weight: 700; }
.card-gold-left-border   { border-left: 3px solid var(--gold); }