/* ═══════════════════════════════════════════════════════════════════
   MWGA × Aquathletic — Unified Design System v4
   Full Light & Dark Mode · Premium Aesthetics · Zero Breakage
   ═══════════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens: Light Theme (Default) ─────────────────────────── */
:root,
[data-theme="light"] {
    --bg-primary:    #f1f5fb;
    --bg-secondary:  #ffffff;
    --bg-card:       #ffffff;
    --bg-card-hover: #f8fbff;
    --bg-glass:      rgba(14, 165, 233, 0.05);
    --bg-glass-hover: rgba(14, 165, 233, 0.1);
    --bg-input:      #f8fafc;
    --border:        #e2e8f0;
    --border-hover:  rgba(14, 165, 233, 0.4);
    --border-focus:  #0ea5e9;
    --text-primary:  #0f172a;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;
    --accent:        #0284c7;
    --accent-deep:   #0369a1;
    --accent-glow:   rgba(14, 165, 233, 0.12);
    --accent-glow-strong: rgba(14, 165, 233, 0.25);
    --success:       #059669;
    --success-bg:    rgba(5, 150, 105, 0.08);
    --success-border:rgba(5, 150, 105, 0.25);
    --warning:       #d97706;
    --warning-bg:    rgba(217, 119, 6, 0.08);
    --warning-border:rgba(217, 119, 6, 0.25);
    --error:         #dc2626;
    --error-bg:      rgba(220, 38, 38, 0.08);
    --error-border:  rgba(220, 38, 38, 0.25);
    --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 50%, #f8fafc 100%);
    --gradient-accent: linear-gradient(135deg, #0369a1 0%, #0284c7 60%, #38bdf8 100%);
    --gradient-card:   linear-gradient(145deg, rgba(255,255,255,1), rgba(248,250,252,1));
    --gradient-hero-overlay: linear-gradient(180deg, rgba(241,245,251,0) 0%, rgba(241,245,251,0.5) 100%);
    --shadow-sm:  0 1px 4px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md:  0 4px 16px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg:  0 10px 40px rgba(15, 23, 42, 0.12), 0 20px 60px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.12);
    --shadow-glow-strong: 0 0 50px rgba(14, 165, 233, 0.2);
    --loading-overlay-bg: rgba(241, 245, 251, 0.93);
    --topbar-bg:   rgba(255, 255, 255, 0.92);
    --workout-date-bar-bg: rgba(248, 250, 252, 0.9);
    --color-scheme: light;
}

/* ── Design Tokens: Dark Theme ────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary:    #080e1d;
    --bg-secondary:  #0d1529;
    --bg-card:       #111e38;
    --bg-card-hover: #152444;
    --bg-glass:      rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);
    --bg-input:      #0d1a35;
    --border:        rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(56, 189, 248, 0.35);
    --border-focus:  rgba(56, 189, 248, 0.6);
    --text-primary:  #f0f6ff;
    --text-secondary:#94a3b8;
    --text-muted:    #4e6080;
    --accent:        #38bdf8;
    --accent-deep:   #0ea5e9;
    --accent-glow:   rgba(56, 189, 248, 0.18);
    --accent-glow-strong: rgba(56, 189, 248, 0.35);
    --success:       #10b981;
    --success-bg:    rgba(16, 185, 129, 0.12);
    --success-border:rgba(16, 185, 129, 0.3);
    --warning:       #f59e0b;
    --warning-bg:    rgba(245, 158, 11, 0.12);
    --warning-border:rgba(245, 158, 11, 0.3);
    --error:         #ef4444;
    --error-bg:      rgba(239, 68, 68, 0.12);
    --error-border:  rgba(239, 68, 68, 0.3);
    --gradient-hero: linear-gradient(135deg, #080e1d 0%, #0f1f3d 50%, #080e1d 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 60%, #7dd3fc 100%);
    --gradient-card:   linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    --gradient-hero-overlay: linear-gradient(180deg, rgba(8,14,29,0) 0%, rgba(8,14,29,0.6) 100%);
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md:  0 8px 28px rgba(0, 0, 0, 0.55);
    --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.18);
    --shadow-glow-strong: 0 0 60px rgba(56, 189, 248, 0.3);
    --loading-overlay-bg: rgba(8, 14, 29, 0.93);
    --topbar-bg:   rgba(8, 14, 29, 0.88);
    --workout-date-bar-bg: rgba(10, 17, 35, 0.7);
    --color-scheme: dark;
}

/* ── Workout Preview Copy Protection ──────────────────────────────── */
.workout-preview-protected,
.workout-preview-protected * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* ── Shared Non-Themeable Tokens ──────────────────────────────────── */
:root {
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-2xl:28px;
    --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background var(--transition-smooth), color var(--transition-smooth);
    color-scheme: var(--color-scheme);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

img, video, canvas, svg, iframe {
    max-width: 100%;
    height: auto;
}

p, span, h1, h2, h3, h4, h5, h6, td, th, li, a, label {
    overflow-wrap: break-word;
    word-break: break-word;
}

.user-email, .child-email, .linked-email-text, [data-email] {
    overflow-wrap: break-word;
    word-break: break-all;
}

/* ── Ambient Background Glow ──────────────────────────────────────── */
.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-glow::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    animation: glowDrift1 25s ease-in-out infinite alternate;
}
.bg-glow::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    animation: glowDrift2 30s ease-in-out infinite alternate;
}
[data-theme="light"] .bg-glow::before { background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 70%); }
[data-theme="light"] .bg-glow::after  { background: radial-gradient(ellipse, rgba(56, 189, 248, 0.05) 0%, transparent 70%); }

@keyframes glowDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 8%) scale(1.15); }
}
@keyframes glowDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-6%, -5%) scale(1.1); }
}

/* ── Loading Overlay ──────────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--loading-overlay-bg);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast Notifications ──────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
}
.toast {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(16px);
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.toast-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.toast-error   { background: var(--error-bg);   color: var(--error);   border-color: var(--error-border); }
.toast-info    { background: var(--accent-glow); color: var(--accent);  border-color: var(--border-hover); }
.toast-warning { background: var(--warning-bg);  color: var(--warning); border-color: var(--warning-border); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(60px) scale(0.85); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── Lightbox ─────────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ── App Shell ────────────────────────────────────────────────────── */
.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── Top Bar ──────────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(0.6rem, env(safe-area-inset-top, 0.6rem)) max(1.25rem, env(safe-area-inset-right, 1.25rem)) 0.6rem max(1.25rem, env(safe-area-inset-left, 1.25rem));
    background: var(--topbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-100%);
    transition: all var(--transition-normal), background var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
.topbar.visible {
    opacity: 1;
    transform: translateY(0);
}
.topbar-brand {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    user-select: none;
}
.topbar-back {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.topbar-back:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    transform: translateX(-2px);
}
.role-pill {
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--border-hover);
}

/* ── Theme Switcher ───────────────────────────────────────────────── */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem;
    flex-shrink: 0;
}
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    line-height: 1;
}
.theme-btn.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.theme-btn:hover:not(.active) { color: var(--text-secondary); }

/* ── View System ──────────────────────────────────────────────────── */
.view { display: none; }
.view.active {
    display: block;
    animation: viewFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.35rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 18px var(--accent-glow-strong);
    font-weight: 700;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
    filter: brightness(1.05);
}
.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}
.btn-danger {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
}
.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
    font-weight: 700;
}
.btn-whatsapp:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; min-height: 38px; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 0.95rem; min-height: 48px; }
.btn-block { width: 100%; display: flex; justify-content: center; }
/* ── Premium Google Sign-In Button (Tailored for Aquathletic) ──────── */
/* ── Premium Google Sign-In Button (Tailored for Aquathletic) ──────── */
.btn-google {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 48px;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md, 10px);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    user-select: none;
    text-align: center;
}

[data-theme="light"] .btn-google {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 16px rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

.btn-google:hover:not(:disabled) .google-icon-wrapper {
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .btn-google:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #0284c7;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-google:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.btn-google:active:not(:disabled) .google-icon-wrapper {
    transform: scale(0.96);
}

.btn-google svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.btn-google .btn-google-text {
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.01em;
}

.btn-google.is-loading {
    opacity: 0.85;
    pointer-events: none;
    cursor: wait;
}

/* ── Google Identity Services (GIS) Native Container Isolation ──────── */
#g_id_signin_container {
    color-scheme: light !important;
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border-radius: var(--radius-md, 10px);
}

#g_id_signin_container iframe {
    color-scheme: light !important;
    background: transparent !important;
    border: none !important;
    margin: 0 auto !important;
    border-radius: var(--radius-md, 10px) !important;
}


/* ── Cards ────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

/* ── Form Elements ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 1rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
    color-scheme: var(--color-scheme);
    touch-action: manipulation;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2338bdf8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
[data-theme="light"] .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230284c7' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { color: var(--error); font-size: 0.82rem; margin-top: 0.4rem; min-height: 1.2rem; }

/* ── Role Selection ───────────────────────────────────────────────── */
.role-select-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: var(--gradient-hero);
}
.brand-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--border-hover);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
}
.role-select-page h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
[data-theme="dark"] .role-select-page h1 {
    background: linear-gradient(135deg, #f0f6ff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .role-select-page h1 { color: var(--text-primary); }
.role-select-page .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 400;
}
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}
.role-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    transform-origin: left;
}
.role-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}
.role-card:hover::before { transform: scaleX(1); }
.role-icon {
    font-size: 2.75rem;
    margin-bottom: 0.85rem;
    display: block;
    transition: transform var(--transition-normal);
}
.role-card:hover .role-icon { transform: scale(1.12); }
.role-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.role-card p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
}

/* ── Auth View ────────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-hero);
}
.auth-container {
    width: 100%;
    max-width: 420px;
}
.auth-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.25rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}
.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.auth-card .auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-role-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--border-hover);
    margin-bottom: 1rem;
}
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.auth-footer a {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Profile Setup ────────────────────────────────────────────────── */
.profile-setup-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-hero);
}
.profile-setup-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.25rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}
.profile-setup-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.profile-setup-card .setup-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
}
.linked-emails-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.linked-email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
    font-size: 0.84rem;
    gap: 0.5rem;
}
.linked-email-item .email-text { color: var(--text-primary); font-weight: 500; }
.linked-email-item .email-status {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
}
.status-linked { background: var(--success-bg); color: var(--success); }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.remove-email-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0 0.2rem;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}
.remove-email-btn:hover { opacity: 0.7; }
.add-email-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.add-email-row .form-input { flex: 1; }

/* ── Dashboard Layout ─────────────────────────────────────────────── */
.dashboard {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.75rem;
}
.dashboard-hero {
    text-align: center;
    padding: 2.25rem 1rem 1.5rem;
}
.dashboard-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 900;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}
.dashboard-hero .hero-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.dashboard-hero .hero-sub strong { color: var(--accent); }

/* ── Stat Cards ───────────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0.6;
}
.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.stat-value {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    position: relative;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 0.3rem;
    font-weight: 600;
    position: relative;
}

/* ── Service Cards ────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.service-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.service-card::after {
    content: '→';
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}
.service-card:hover::after {
    color: var(--accent);
    transform: translateX(4px);
}
.service-icon {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
    display: block;
    transition: transform var(--transition-normal);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}
.service-status {
    display: inline-block;
    margin-top: 0.55rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}
.service-active { background: var(--success-bg); color: var(--success); }
.service-inactive { background: var(--bg-glass); color: var(--text-muted); }

/* ── Pricing Cards ────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.pricing-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.pricing-card.highlighted {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.pricing-name { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.pricing-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.03em;
}
.pricing-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.pricing-features { list-style: none; padding: 0; margin: 1rem 0; }
.pricing-features li {
    padding: 0.35rem 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pricing-features li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 0.5rem; flex-shrink: 0; }

/* ── Payment Info ─────────────────────────────────────────────────── */
.payment-info {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.payment-info h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--accent); font-weight: 700; }
.payment-info p { font-size: 0.9rem; margin-bottom: 0.6rem; color: var(--text-secondary); }
.payment-info strong { color: var(--text-primary); }

/* ── Section Headers ──────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid var(--border);
}
.section-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ── Tables ───────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.data-table th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border);
    background: var(--bg-glass);
}
.data-table td {
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tr:hover td {
    background: var(--bg-glass);
}

/* ── Workout Display ──────────────────────────────────────────────── */
.workout-section { margin-bottom: 1.35rem; }
.workout-section h4 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.workout-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: pre-line;
    line-height: 1.75;
}

/* ── Empty States ─────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--text-muted);
}
.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}
.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.empty-state p {
    font-size: 0.88rem;
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Profile Page ─────────────────────────────────────────────────── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}
.profile-info h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.profile-info p { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Coach Workout Editor ─────────────────────────────────────────── */
.workout-editor {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-top: 1rem;
    display: none;
    box-shadow: var(--shadow-md);
    animation: viewFadeIn 0.25s ease;
}
.workout-editor.active { display: block; }

/* ── Workout Date Navigation Bar ──────────────────────────────────── */
.workout-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: var(--workout-date-bar-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.workout-date-picker-input {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.88rem !important;
    font-family: var(--font-main) !important;
    color-scheme: var(--color-scheme);
    outline: none;
    transition: all var(--transition-fast);
}
.workout-date-picker-input:focus {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

/* ── Workout Badges ───────────────────────────────────────────────── */
.badge-workout-today {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border: 1px solid var(--success-border) !important;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-workout-scheduled {
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
    border: 1px solid var(--border-hover) !important;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-workout-past {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
    border: 1px solid var(--warning-border) !important;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Analysis Photos Grid ─────────────────────────────────────────── */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}
.analysis-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1.5px solid var(--border);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.analysis-thumb:hover {
    border-color: var(--accent);
    transform: scale(1.04);
    box-shadow: var(--shadow-glow);
}
.analysis-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Contact FAB ──────────────────────────────────────────────────── */
.contact-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 6px 24px var(--accent-glow-strong);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabPulse 3s ease-in-out infinite;
}
.contact-fab:hover { transform: scale(1.12); box-shadow: 0 10px 35px var(--accent-glow-strong); }
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 6px 24px var(--accent-glow-strong); }
    50%       { box-shadow: 0 6px 40px var(--accent-glow-strong), 0 0 0 6px var(--accent-glow); }
}

/* ── Modals ───────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 1rem)) max(1rem, env(safe-area-inset-right, 1rem)) max(1rem, env(safe-area-inset-bottom, 1rem)) max(1rem, env(safe-area-inset-left, 1rem));
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    max-height: calc(100vh - 2.5rem);
    max-height: calc(100dvh - 2.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
    animation: modalBounceIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalBounceIn {
    from { transform: scale(0.88) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-content h3 { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 800; }
.modal-close {
    float: right;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--error); border-color: var(--error-border); }

/* ── Parent / Child Cards ─────────────────────────────────────────── */
.child-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.child-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}
.child-card h4 { font-size: 1rem; font-weight: 700; }
.child-card p { color: var(--text-secondary); font-size: 0.84rem; }

/* ── Portal Sub-Navigation Tabs ───────────────────────────────────── */
.portal-nav-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.4rem 0 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.portal-tab-btn {
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}
.portal-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
    border-color: var(--border);
}
.portal-tab-btn.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--border-hover);
    font-weight: 700;
}
.portal-tab-pane { display: none; }
.portal-tab-pane.active {
    display: block;
    animation: viewFadeIn 0.25s ease-out;
}

/* ── Evaluation Cards ─────────────────────────────────────────────── */
.client-eval-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.client-eval-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.client-eval-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
}
.client-eval-stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.95rem; }
.client-eval-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-line;
}

/* ── Badges & Status Tags ─────────────────────────────────────────── */
.badge-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.badge-present  { background: var(--success-bg);  color: var(--success);  }
.badge-absent   { background: var(--error-bg);    color: var(--error);    }
.badge-late     { background: var(--warning-bg);  color: var(--warning);  }
.badge-excused  { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

/* ── Pending Coach Approval Card ──────────────────────────────────── */
.pending-approval-card {
    background: var(--bg-card);
    border: 1.5px solid var(--warning-border);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

/* ── Scrollbar Styling ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Selection Color ──────────────────────────────────────────────── */
::selection { background: var(--accent-glow-strong); color: var(--accent); }

/* ── Base Styles Continued ────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════
   MWGA × AQUATHLETIC High-Converting Scientific Landing Page
   ═══════════════════════════════════════════════════════════════════ */
.lp-wrapper {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.lp-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.lp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-hover);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.08);
}

.lp-tag-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: lpPulse 2s infinite ease-in-out;
}

@keyframes lpPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.lp-hero {
    padding: 3rem 0 4rem;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.lp-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.lp-hero-title span.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
}

.lp-btn-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

.lp-telemetry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.lp-telemetry-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.lp-telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.lp-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.lp-metric-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    text-align: center;
    transition: var(--transition-fast);
}

.lp-metric-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.lp-metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.lp-metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

.lp-metric-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Feature Grid */
.lp-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.lp-section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.lp-section-subtitle {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.lp-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lp-feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.lp-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.lp-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.lp-feature-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.lp-feature-telemetry {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}

/* Status Badges Matching Real Platform */
.badge-status-achieved {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 700;
}
.badge-status-exceptional {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.3);
    font-weight: 700;
}
.badge-status-obsolete {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-weight: 700;
}

/* Interactive Data Showcase Table */
.lp-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.lp-table-header {
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.lp-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.lp-data-table th {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.lp-data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.lp-data-table tr:hover td {
    background: var(--bg-card-hover);
}

/* Bootcamp Founder Section */
.lp-bootcamp-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-input) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
}

.lp-bootcamp-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.lp-footer-bar {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* MWGA KINEMATIC PERFORMANCE SCIENCE — VISUAL SYSTEM                  */
/* ═══════════════════════════════════════════════════════════════════ */

/* ── Universal Professional Icon System ─────────────────────────────── */
.app-icon {
    display: inline-block;
    vertical-align: -0.15em;
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.app-icon-sm { width: 0.9em; height: 0.9em; }
.app-icon-md { width: 1.25em; height: 1.25em; }
.app-icon-lg { width: 1.6em; height: 1.6em; }
.app-icon-xl { width: 2.25rem; height: 2.25rem; }
.empty-icon .app-icon { width: 2.5rem; height: 2.5rem; color: var(--accent); opacity: 0.85; }

/* ── Spline 3D Integration Standards (per Spline Skill) ─────────────── */
body {
    overflow-y: auto !important; /* Critical gotcha fix: prevent Spline scroll hijacking */
}

spline-viewer {
    display: block;
    width: 100%;
    height: 100%;
    contain: strict; /* Pre-allocate space, prevents CLS layout shift */
    --spline-viewer-logo-display: none;
}
spline-viewer::part(logo) {
    display: none !important;
}

/* ── High-Performance Landing Page Architecture ─────────────────────── */
.lp-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.lp-hero {
    padding: 2.5rem 0 3.5rem;
    position: relative;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 960px) {
    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.wave-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-hover);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.lp-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
}

.wave-gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.lp-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 2rem;
}

.lp-btn-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.lp-hero-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.lp-hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Hero Photorealistic Asset & HUD Telemetry Viewport */
.lp-hero-visual-wrapper {
    position: relative;
    width: 100%;
}

.lp-telemetry-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.lp-telemetry-frame:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.lp-hero-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    background: #020e24;
    overflow: hidden;
}

.lp-hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.04) brightness(0.96);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-telemetry-frame:hover .lp-hero-media-img {
    transform: scale(1.025);
}

.lp-hero-hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 14, 38, 0.15) 0%, rgba(3, 14, 38, 0.45) 60%, rgba(3, 14, 38, 0.85) 100%);
}

.lp-hud-badge {
    position: absolute;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.95rem;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(10, 20, 42, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 2;
    user-select: none;
}

.lp-hud-badge strong {
    color: #ffffff;
    font-weight: 800;
}

.lp-hud-badge small {
    display: block;
    opacity: 0.78;
    font-size: 0.68rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

.hud-top-right {
    top: 1.25rem;
    right: 1.25rem;
}

.hud-bottom-left {
    bottom: 3.75rem;
    left: 1.25rem;
}

.hud-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: lpPulse 2s infinite;
    margin-top: 5px;
    flex-shrink: 0;
}

.lp-hud-badge .app-icon {
    margin-top: 2px;
    flex-shrink: 0;
}

.lp-hud-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 10, 24, 0.75) 35%, rgba(2, 10, 24, 0.94) 100%);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
}

.lp-hud-caption-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(240, 246, 255, 0.9);
    text-transform: uppercase;
}

.lp-caption-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    color: #38bdf8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.hud-pulse-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
    flex-shrink: 0;
}

/* Precision Telemetry Bar below Media */
.lp-telemetry-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.15rem 1.25rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    gap: 0;
    align-items: center;
    user-select: none;
}

@media (max-width: 540px) {
    .lp-telemetry-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0;
    }
}

.lp-telemetry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0 0.5rem;
    position: relative;
    text-align: center;
}

.lp-telemetry-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
    opacity: 0.7;
}

@media (max-width: 540px) {
    .lp-telemetry-item:nth-child(2)::after {
        display: none;
    }
}

.lp-telemetry-label {
    font-size: 0.68rem;
    font-weight: 750;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lp-telemetry-value {
    font-size: 1.35rem;
    font-weight: 850;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1.1;
}

.lp-telemetry-unit {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
}

/* Editorial Statement Banner */
.mwga-editorial-banner {
    position: relative;
    background: linear-gradient(135deg, #022b52 0%, #034575 50%, #0369a1 100%);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    color: #ffffff;
    margin: 3rem 0;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: var(--shadow-md);
}

.mwga-editorial-banner h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f9ff;
    margin-bottom: 0.6rem;
}

.mwga-editorial-banner p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #bae6fd;
    margin: 0;
    max-width: 820px;
}

/* 3D Interactive Spline Hydrodynamics Stage */
.lp-spline-stage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.lp-spline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lp-spline-viewport-container {
    position: relative;
    width: 100%;
    height: 380px;
    background: radial-gradient(circle at center, #0a1b3a 0%, #040c1d 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.lp-spline-canvas-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.lp-spline-controls {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: rgba(10, 20, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 3;
}

.spline-param-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.spline-param-val {
    color: #38bdf8;
    font-weight: 800;
    font-feature-settings: 'tnum';
}

/* Section Header Typography */
.lp-section-header {
    margin-bottom: 2.25rem;
}

.lp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0.4rem 0 0.5rem;
}

.lp-section-subtitle {
    font-size: 0.96rem;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    margin: 0;
}

/* Feature Grid with Architectural Cards */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lp-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.lp-feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.lp-feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.lp-feature-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}

.lp-feature-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.lp-feature-telemetry {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-input);
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    letter-spacing: 0.02em;
}

/* Interactive Telemetry Table Card */
.lp-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.lp-table-header {
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.lp-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.lp-data-table th {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.9rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.lp-data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-feature-settings: 'tnum';
}

.lp-data-table tr:hover td {
    background: var(--bg-card-hover);
}

/* Dr. Desouky Bootcamp Section */
.lp-bootcamp-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    box-shadow: var(--shadow-lg);
    margin: 3.5rem 0;
}

.lp-bootcamp-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .lp-bootcamp-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tri-Portal Selection Architecture */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.role-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.role-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.role-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.role-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.role-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 750;
    color: var(--accent);
    margin-top: auto;
}

/* Clean Professional Footer */
.lp-footer-bar {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MWGA × AQUATHLETIC — COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Supports: 320px, 360px, 375px, 390px, 430px, 768px, 1024px, 1280px, 1440px+
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Universal Responsive Utilities ─────────────────────────────────────── */
.table-responsive,
.data-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.75rem 0;
    border-radius: var(--radius-sm);
}

.table-responsive table,
.data-table-wrapper table {
    width: 100%;
    min-width: 520px;
}

/* Force horizontal scroll safety on all standalone data tables */
.card-body > .data-table,
.dashboard .data-table,
.portal-tab-pane .data-table {
    display: table;
    width: 100%;
    min-width: 520px;
}

.card-body:has(.data-table),
.dashboard:has(.data-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Large Desktop & Ultrawide (1440px+) ─────────────────────────────────── */
@media (min-width: 1440px) {
    .lp-container,
    .dashboard {
        max-width: 1360px;
    }
    .lp-hero-title {
        font-size: 3.5rem;
    }
}

/* ── Standard Desktop / Laptop (1280px) ─────────────────────────────────── */
@media (max-width: 1280px) {
    .lp-container,
    .dashboard {
        max-width: 1140px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .lp-hero-grid {
        gap: 2.5rem;
    }
}

/* ── Tablet Landscape / Small Laptop (1024px) ────────────────────────────── */
@media (max-width: 1024px) {
    .lp-container,
    .dashboard {
        max-width: 960px;
        padding: 2rem 1.25rem;
    }
    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .lp-hero-desc {
        max-width: 100%;
    }
    .role-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.25rem;
    }
    .lp-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    .lp-bootcamp-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── Tablet Portrait (768px) ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .topbar {
        padding: max(0.55rem, env(safe-area-inset-top, 0.55rem)) max(1rem, env(safe-area-inset-right, 1rem)) 0.55rem max(1rem, env(safe-area-inset-left, 1rem));
    }
    .topbar-brand {
        font-size: 0.88rem;
    }
    .dashboard {
        padding: 1.25rem 1rem;
    }
    .dashboard-hero h1 {
        font-size: 1.6rem;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .lp-wrapper {
        padding: 1.5rem 0 3rem;
    }
    .lp-container {
        padding: 1.5rem 1rem;
    }
    .lp-hero {
        padding: 1.5rem 0 2rem;
    }
    .lp-hero-title {
        font-size: clamp(1.85rem, 5.5vw, 2.5rem);
    }
    .lp-telemetry-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem 0;
        padding: 1rem 0.75rem;
    }
    .lp-telemetry-item:nth-child(2)::after {
        display: none;
    }
    .mwga-editorial-banner {
        padding: 1.75rem 1.25rem;
        margin: 1.75rem 0;
    }
    .lp-bootcamp-box {
        padding: 1.75rem 1.25rem !important;
        margin: 2rem 0;
    }
    .role-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
        max-width: 100% !important;
    }
}

/* ── Large Mobile & Phablet (640px) ─────────────────────────────────────── */
@media (max-width: 640px) {
    .topbar {
        padding: max(0.5rem, env(safe-area-inset-top, 0.5rem)) max(0.75rem, env(safe-area-inset-right, 0.75rem)) 0.5rem max(0.75rem, env(safe-area-inset-left, 0.75rem));
    }
    .topbar-brand span {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
    }
    .role-pill {
        display: none; /* Hide role pill on mobile topbar to avoid crowding action buttons */
    }
    .lp-wrapper {
        padding: 0.75rem 0 2.5rem;
    }
    .lp-container {
        padding: 0.75rem 0.85rem;
    }
    .lp-hero-title {
        font-size: clamp(1.65rem, 6.2vw, 2.2rem);
        line-height: 1.16;
    }
    .lp-hero-desc {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .lp-btn-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }
    .lp-btn-row .btn {
        width: 100%;
        min-height: 48px;
    }
    .lp-hero-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .lp-hud-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.72rem;
        border-radius: 10px;
    }
    .hud-top-right {
        top: 0.65rem;
        right: 0.65rem;
    }
    .hud-bottom-left {
        bottom: 2.85rem;
        left: 0.65rem;
    }
    .lp-hud-caption {
        padding: 0.45rem 0.75rem;
        font-size: 0.65rem;
    }
    .lp-hud-caption-title {
        font-size: 0.62rem;
        max-width: 65%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .lp-caption-status {
        font-size: 0.62rem;
        padding: 0.15rem 0.5rem;
    }
    .role-grid {
        grid-template-columns: 1fr;
        max-width: 100% !important;
        width: 100%;
        gap: 1rem;
    }
    .role-card {
        padding: 1.5rem 1.25rem;
        width: 100%;
    }
    .auth-page {
        padding: 1rem 0.75rem;
        min-height: auto;
    }
    .auth-card {
        padding: 1.5rem 1.15rem;
        width: 100%;
        border-radius: var(--radius-lg);
    }
    .auth-card h2 {
        font-size: 1.4rem;
    }
    .profile-setup-page {
        padding: 1rem 0.75rem;
    }
    .profile-setup-card {
        padding: 1.5rem 1.15rem;
        width: 100%;
        border-radius: var(--radius-lg);
    }
    .modal-overlay {
        padding: 0.75rem;
    }
    .modal-content {
        padding: 1.35rem 1rem;
        border-radius: var(--radius-lg);
    }
    .modal-content h3 {
        font-size: 1.1rem;
    }
    .workout-date-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.75rem 1rem;
    }
    .workout-date-picker-input {
        width: 100%;
    }
    .portal-nav-tabs {
        padding-bottom: 0.65rem;
        margin-bottom: 1.15rem;
    }
    .portal-tab-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
    .toast-container {
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
        bottom: 1rem;
    }
}

/* ── Standard Smartphone (480px / 430px / 390px) ────────────────────────── */
@media (max-width: 480px) {
    .topbar {
        padding: max(0.45rem, env(safe-area-inset-top, 0.45rem)) max(0.6rem, env(safe-area-inset-right, 0.6rem)) 0.45rem max(0.6rem, env(safe-area-inset-left, 0.6rem));
    }
    .topbar-brand svg {
        width: 20px;
        height: 20px;
    }
    .topbar-brand span {
        font-size: 0.82rem;
        letter-spacing: 0.02em;
    }
    .theme-switcher {
        gap: 0;
        padding: 1px;
    }
    .theme-btn {
        padding: 0.25rem 0.45rem;
    }
    .theme-btn .app-icon {
        width: 0.85em;
        height: 0.85em;
    }
    #topbar-username {
        max-width: 80px;
        font-size: 0.78rem;
    }
    .btn-sm {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .stat-card {
        padding: 0.9rem 0.75rem;
    }
    .stat-card .stat-value {
        font-size: 1.45rem;
    }
    .stat-card .stat-label {
        font-size: 0.68rem;
    }
    .lp-table-card .lp-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 1.15rem 1rem;
    }
    .lp-table-card .lp-table-header h3 {
        font-size: 1rem;
    }
    .lp-telemetry-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 0;
        padding: 0.85rem 0.5rem;
    }
    .lp-telemetry-value {
        font-size: 1.05rem;
    }
    .lp-telemetry-label {
        font-size: 0.65rem;
    }
    .lp-feature-card {
        padding: 1.25rem 1rem;
    }
    .lp-feature-title {
        font-size: 1.05rem;
    }
    .lp-feature-desc {
        font-size: 0.85rem;
    }
    .child-card {
        padding: 1rem;
    }
    .client-eval-card {
        padding: 1rem;
    }
    .contact-fab {
        bottom: 1rem;
        left: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
}

/* ── Small Mobile / Compact Phones (360px / 375px) ───────────────────────── */
@media (max-width: 375px) {
    .lp-container,
    .dashboard {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
    .lp-hero-title {
        font-size: 1.55rem;
    }
    .lp-hero-desc {
        font-size: 0.88rem;
    }
    .wave-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
    }
    .auth-card {
        padding: 1.25rem 0.85rem;
    }
    .auth-card h2 {
        font-size: 1.25rem;
    }
    .btn-google {
        font-size: 0.78rem;
        padding: 0.65rem 0.75rem;
    }
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .stat-card {
        padding: 0.85rem 0.75rem;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .stat-card .stat-value {
        font-size: 1.4rem;
        margin: 0;
    }
    .lp-telemetry-item {
        padding: 0 0.25rem;
    }
    .lp-telemetry-value {
        font-size: 0.95rem;
    }
    .lp-telemetry-unit {
        font-size: 0.65rem;
    }
}

/* ── Ultra-Compact Screens (320px — iPhone SE 1st gen / Small Devices) ──── */
@media (max-width: 320px) {
    html {
        font-size: 15px;
    }
    .topbar {
        padding: 0.4rem 0.5rem;
    }
    .topbar-brand span {
        font-size: 0.75rem;
    }
    .topbar-brand span strong {
        font-size: 0.78rem;
    }
    .theme-btn {
        padding: 0.2rem 0.35rem;
    }
    .lp-container,
    .dashboard {
        padding: 0.6rem 0.5rem;
    }
    .lp-hero-title {
        font-size: 1.4rem;
        letter-spacing: -0.02em;
    }
    .lp-hero-desc {
        font-size: 0.82rem;
        line-height: 1.5;
    }
    .lp-hero-badge-item {
        font-size: 0.74rem;
    }
    .auth-card {
        padding: 1.15rem 0.75rem;
    }
    .auth-card h2 {
        font-size: 1.18rem;
    }
    .form-input, .form-select, .form-textarea {
        padding: 0.6rem 0.75rem;
        font-size: 0.88rem;
    }
    .modal-content {
        padding: 1.15rem 0.75rem;
    }
    .modal-content h3 {
        font-size: 1.05rem;
    }
    .role-card {
        padding: 1.25rem 0.95rem;
    }
    .role-card h3 {
        font-size: 1.12rem;
    }
    .role-card p {
        font-size: 0.82rem;
    }
    .lp-table-card .lp-table-header {
        padding: 0.9rem 0.75rem;
    }
    .lp-table-card .lp-table-header h3 {
        font-size: 0.92rem;
    }
    .mwga-editorial-banner {
        padding: 1.25rem 0.85rem;
    }
    .mwga-editorial-banner h3 {
        font-size: 1.1rem;
    }
    .mwga-editorial-banner p {
        font-size: 0.82rem;
    }
    .contact-fab {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }
}



