
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap');

:root {
    /* Core Tumble Buddy Color Palette */
    --primary-color: #1c325b;
    --light-blue: #80bdeb;
    --secondary-color: #f17e3d;
    --fox-brown: #8D5524;
    --background-color: #FFF1D1;
    --accent-color: #fdb357;
    --accent-color-2: #ffe0ae;
    --accent-color-3: #ee9330;
    --green: #94ccad;
    --purple: #b4a2d5;
    --light-grey: #eeeeeee2;
    --text-color: #1c325b;

    /* Other Color Variables */
    --card-bg: #fffbee;     /* used for container/cards */
    --muted: #e0e0e0;       /* neutral gray */
    --white: #ffffff;
    --soft-shadow: rgba(0,0,0,0.08);

    /* World Engine Colors */
    --sky-top: #4fa8f7;
    --sky-bottom: #a5d6f9;
    --landscape-color: #334155;
    --stars-opacity: 0;

    /* CanGym Badge Colors */
    --badge-burgundy: #800020;
    --badge-red: #DC3545;
    --badge-tan: #D2B48C;
    --badge-bronze: #8C4A19;
    --badge-purple: #6F42C1;
    --badge-blue: #007BFF;
    --badge-turquoise: #40E0D0;
    --badge-silver: #C0C0C0;
    --badge-orange: #FF9A1F;
    --badge-yellow: #FFC107;
    --badge-green: #28A745;
    --badge-gold: #FFD700;

    /* Font Family Variable */
    --font-family: 'Baloo 2', 'Segoe UI', Arial, sans-serif;
    --bs-body-font-family: var(--font-family);
}

html,
body,
button,
input,
select,
textarea,
option {
    font-family: var(--font-family, 'Baloo 2', 'Segoe UI', Arial, sans-serif);
}


body.alt-skills-page #tab-container {
    margin-top: 170px;
    margin-bottom: 0;
    width: 100%;
    max-width: 70%;
    padding: 0;
    border-radius: 0;
}
body.alt-skills-page .container.skills-page-container {
    margin-top: 0;
    border-radius: 0 24px 24px 24px;
    box-shadow: 0 8px 32px var(--soft-shadow);
    border-top: none;
}
body.alt-skills-page #bread-crum-container {
    border-radius: 0;
    margin-bottom: -2px;
}
body.alt-skills-page .tab-segment.active {
    border-radius: 0;
    border-bottom: none;
    margin-bottom: -2px;
}
body.alt-skills-page .tab-segment {
    border-radius: 0;
}
body.alt-skills-page #tab-container {
    margin-top: 40px;
    margin-bottom: 0;
    width: 100%;
    max-width: 70%;
    padding: 0;
    border-radius: 0;
}
body.alt-skills-page .container.skills-page-container {
    margin-top: 0;
    border-radius: 0 24px 24px 24px;
    box-shadow: 0 8px 32px var(--soft-shadow);
    border-top: none;
}
body.alt-skills-page #bread-crum-container {
    border-radius: 0;
    margin-bottom: -2px;
}
body.alt-skills-page .tab-segment.active {
    border-radius: 0;
    border-bottom: none;
    margin-bottom: -2px;
}
body.alt-skills-page .tab-segment {
    border-radius: 0;
}

/* ========================================= */
/* Badge Color Utility Classes
/* ========================================= */
.badge-color-burgundy { color: var(--badge-burgundy) !important; }
.badge-color-red { color: var(--badge-red) !important; }
.badge-color-tan { color: var(--badge-tan) !important; }
.badge-color-bronze { color: var(--badge-bronze) !important; }
.badge-color-purple { color: var(--badge-purple) !important; }
.badge-color-blue { color: var(--badge-blue) !important; }
.badge-color-turquoise { color: var(--badge-turquoise) !important; }
.badge-color-silver { color: var(--badge-silver) !important; }
.badge-color-orange { color: var(--badge-orange) !important; }
.badge-color-yellow { color: var(--badge-yellow) !important; }
.badge-color-green { color: var(--badge-green) !important; }
.badge-color-gold { color: var(--badge-gold) !important; }

.badge-color-burgundy, .badge-color-red, .badge-color-tan, .badge-color-bronze,
.badge-color-purple, .badge-color-blue, .badge-color-turquoise, .badge-color-silver,
.badge-color-orange, .badge-color-yellow, .badge-color-green, .badge-color-gold {
    font-weight: bold;
}


.page-loader-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--background-color);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid var(--accent-color-2);
    border-top-color: var(--secondary-color);
    animation: pageLoaderSpin 0.9s linear infinite;
}

.page-loader-text {
    color: var(--text-color);
    font-weight: 700;
}

@keyframes pageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--background-color);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid var(--accent-color-2);
    border-top-color: var(--secondary-color);
    animation: pageLoaderSpin 0.9s linear infinite;
}

.page-loader-text {
    color: var(--text-color);
    font-weight: 700;
}

@keyframes pageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

html {
    overflow-x: hidden;
    width: 100vw;
    min-width: 0;
}

body {
    margin: 0;
    cursor: url('https://assets.cdn.filesafe.space/oUHO2VRBz3KPkagMfRJ1/media/69aaf1bcc72818dc54a9e476.png') 12 12, auto;
}

/* =========================================================
   PIXAR / iOS SMART FEED CARDS
   ========================================================= */

.smart-feed-card-container {
    display: flex !important;
    flex-direction: row !important; /* Forces side-by-side layout */
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--background-color) 100%);
    
    /* The Pixar Chunkiness */
    border-radius: 24px; 
    border: 2px solid rgba(255, 255, 255, 0.6); 
    
    /* The Floating 3D Depth */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
    overflow: visible; 
}


/* PRIORITY COLOR RINGS & SHADOWS */

/* Priority 1: Critical Alerts (Red) */
.smart-feed-card-container.priority-1 {
    border-color: #ff6b6b !important; 
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.15), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

/* Priority 2: Action Required / Important (Orange/Gold) */
.smart-feed-card-container.priority-2 {
    border-color: var(--accent-color) !important; 
    box-shadow: 0 10px 25px rgba(253, 179, 87, 0.15), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

/* Priority 3: Standard Updates & Achievements (Blue/Purple) */
.smart-feed-card-container.priority-3 {
    border-color: #667eea !important; 
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

/* The Hover & Tap Interaction */
.smart-feed-card-container:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
}
.smart-feed-card-container:active {
    transform: translateY(2px) scale(0.98); /* Squish effect when tapped */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* LEFT COLUMN: The Icon */
.smart-feed-card-left {
    flex-shrink: 0;
    margin-right: 16px;
}
.smart-feed-card-icon.ios-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%; /* Perfect iOS circle */
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Makes the image pop off the card */
    border: 2px solid var(--white);
}

/* MIDDLE COLUMN: The Text */
.smart-feed-card-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-right: 12px;
}
.smart-feed-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}
.smart-feed-card-body-text {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* RIGHT COLUMN: The Actions */
.smart-feed-card-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* The Action Pill (Replaces the View More text) */
.smart-feed-card-action-pill {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-color);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.smart-feed-card-action-pill:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--primary-color);
}

/* The Dismiss 'X' Button */
.smart-feed-card-dismiss-btn {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.smart-feed-card-dismiss-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    transform: scale(1.1);
}

/* --- DYNAMIC BADGE LEVEL BORDERS --- */
/* Uses your existing :root variables to add a thick, tactile edge to the cards */

.badge-color-burgundy  { border-left: 6px solid var(--badge-burgundy); }
.badge-color-red       { border-left: 6px solid var(--badge-red); }
.badge-color-tan       { border-left: 6px solid var(--badge-tan); }
.badge-color-bronze    { border-left: 6px solid var(--badge-bronze); }
.badge-color-purple    { border-left: 6px solid var(--badge-purple); }
.badge-color-blue      { border-left: 6px solid var(--badge-blue); }
.badge-color-turquoise { border-left: 6px solid var(--badge-turquoise); }
.badge-color-silver    { border-left: 6px solid var(--badge-silver); }
.badge-color-orange    { border-left: 6px solid var(--badge-orange); }
.badge-color-yellow    { border-left: 6px solid var(--badge-yellow); }
.badge-color-green     { border-left: 6px solid var(--badge-green); }
.badge-color-gold      { border-left: 6px solid var(--badge-gold); }

/* =========================================================
   PIXAR / iOS SMART FEED CARDS
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ========================================================= */




/* Clickable elements get a pointing paw cursor */
a, button, input[type="submit"], input[type="button"], 
.clickable, [role="button"], .coaches-menu-text, 
select, input[type="checkbox"], input[type="radio"] {
    cursor: url('https://assets.cdn.filesafe.space/oUHO2VRBz3KPkagMfRJ1/media/69aaf1bcc72818dc54a9e476.png') 12 12, pointer !important;
}

.athlete-selector-back {
    border-radius: 50%;
}
#more-panel .athlete-selector-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: visible;
    justify-content: center;
    width: 100%;
}
.athlete-selector-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    background: var(--background-color);
    font-family: var(--font-family);
}

.full-width-progress-bar .level-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    z-index: 1;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(var(--secondary-color), 0.4);
}
.full-width-progress-bar {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
}

/* =========================================================
   COACH PAGES - CENTRALIZED STYLES
   ========================================================= */

body.coach-classes-page .coach-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

body.coach-classes-page .coach-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 3px solid #fff;
    border-radius: 26px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.coach-classes-page .coach-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

body.coach-classes-page .coach-hero h2 {
    margin: 0;
    font-size: 1.5rem;
}

body.coach-classes-page .coach-hero p {
    margin: 4px 0 0 0;
    color: #64748b;
    font-weight: 700;
}

body.coach-classes-page .section-title {
    margin: 16px 0 12px 0;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
}

body.coach-classes-page .action-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #fff;
    border-radius: 22px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    color: inherit;
}

body.coach-classes-page .action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

body.coach-classes-page .class-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

body.coach-classes-page .class-main {
    flex: 1;
}

body.coach-classes-page .class-main h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

body.coach-classes-page .class-meta {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 700;
}

body.coach-classes-page .class-arrow {
    color: #94a3b8;
    font-size: 1.4rem;
    font-weight: 900;
}

body.coach-classes-page .empty-state {
    background: #fff;
    border: 2px dashed #dbeafe;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-weight: 700;
}

body.coach-profile-page .coach-profile-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
}

body.coach-profile-page .profile-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #fff;
    border-radius: 26px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

body.coach-profile-page .coach-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

body.coach-profile-page .avatar-image {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

body.coach-profile-page .coach-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
}

body.coach-profile-page .profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

body.coach-profile-page .profile-row:last-child {
    border-bottom: 0;
}

body.coach-profile-page .profile-label {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

body.coach-profile-page .profile-value {
    color: #0f172a;
    font-weight: 800;
}

body.coach-profile-page .profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

body.coach-profile-page .btn-edit {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 6px 0 #1e40af;
    cursor: pointer;
}

body.coach-profile-page .btn-edit:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #1e40af;
}

body.coach-attendance-page .coach-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
}

body.coach-attendance-page .coach-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #fff;
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

body.coach-attendance-page #class-info-header.coach-panel {
    padding: 16px;
    margin-bottom: 14px;
}

body.coach-attendance-page .section-title {
    margin: 18px 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f172a;
}

body.coach-attendance-page #attendance-grid.coach-panel {
    padding: 10px;
    border-radius: 24px;
}

body.coach-attendance-page .attendance-row {
    border-radius: 14px;
    transition: background 160ms ease;
}

body.coach-attendance-page .attendance-row:hover {
    background: rgba(59, 130, 246, 0.08);
}

body.coach-attendance-page .attendance-checkbox {
    transform: scale(1.15);
    accent-color: #2563eb;
}

body.coach-skills-page .coach-shell {
    max-width: 1020px;
    margin: 0 auto;
    padding: 16px;
}

body.coach-skills-page .skills-page-container {
    background: transparent;
}

body.coach-skills-page #class-info-header.card,
body.coach-skills-page .badge-switcher-container.card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #fff;
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

body.coach-skills-page #class-info-header.card {
    padding: 14px;
}

body.coach-skills-page .badge-switcher-container.card {
    margin-top: 12px;
}

body.coach-skills-page .status-item {
    background: #eef2ff;
    border-radius: 10px;
    padding: 6px 10px;
}

body.coach-skills-page .skill-card-clickable {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

body.coach-skills-page .skill-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

body.coach-missing-skills-page .coach-shell {
    max-width: 1020px;
    margin: 0 auto;
    padding: 16px;
}

body.coach-missing-skills-page .coach-page-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #fff;
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

body.coach-missing-skills-page .section-title {
    margin: 14px 0 8px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f172a;
}

body.coach-missing-skills-page .common-missing-card {
    border-color: #f1a33f !important;
    box-shadow: 0 4px 16px rgba(241, 163, 63, 0.2);
}

body.coach-missing-skills-page .class-picker-wrap {
    position: relative;
    margin-top: 6px;
    width: 100%;
}

body.coach-missing-skills-page .class-picker-select {
    width: 100%;
    padding: 12px 42px 12px 12px;
    border: 1px solid #d9c4a8;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff7ec 100%);
    color: #3f2a14;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(115, 67, 22, 0.08);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.coach-missing-skills-page .class-picker-select:focus {
    outline: none;
    border-color: #e38d45;
    box-shadow: 0 0 0 3px rgba(227, 141, 69, 0.18), 0 8px 18px rgba(115, 67, 22, 0.12);
    transform: translateY(-1px);
}
.progress-bar-flex-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
/* Skill Modal Overlay and Content Styles */
.skill-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 30, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.2s;
}
.skill-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.skill-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2.2rem 2.5rem 1.5rem 2.5rem;
    max-width: 420px;
    width: 95vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modal-pop 0.18s cubic-bezier(.4,1.6,.6,1) 1;
}
@keyframes modal-pop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.skill-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.skill-modal-close:hover {
    color: #e74c3c;
}
.skill-modal-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.skill-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    text-align: center;
}
.skill-modal-status {
    margin-bottom: 0.7rem;
}
.skill-modal-progress {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.skill-modal-progress .level-bar {
    width: min(100%, 320px);
    margin: 0 auto;
}

.skill-modal-comment {
    margin-top: 10px;
    color: #666;
    font-size: 0.97em;
    width: 100%;
    word-break: break-word;
}
/* Large screens: 900px and up */
@media (min-width: 900px) {
    .profile-card-clickable {
        cursor: pointer;
        transition: box-shadow 0.2s, transform 0.2s;
    }
    .profile-card-clickable:hover {
        box-shadow: 0 8px 32px rgba(0,0,0,0.22);
        transform: scale(1.07);
        background: linear-gradient(135deg, #fffbe6 0%, #e6ffe6 100%);
    }
    .profile-cards-container {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        margin-top: 1rem;
    }
    .profile-card {
        background: linear-gradient(135deg, #ffe6e6 0%, #e6f7ff 100%);
        border-radius: 18px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        padding: 1.2rem 1.6rem;
        min-width: 260px;
        max-width: 340px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.2s, box-shadow 0.2s;
        position: relative;
        overflow: hidden;
        word-break: break-word;
        box-sizing: border-box;
    }
    .profile-card:hover {
        transform: scale(1.06);
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        z-index: 2;
    }
    .profile-card-header {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
    .profile-card-name {
        font-size: 1.2em;
        font-weight: 700;
        color: var(--primary-color);
    }
    .profile-card-badge {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 1em;
        font-weight: 600;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        padding: 0.4rem 1.2rem;
        margin-bottom: 0.8rem;
    }
    .profile-card-progress {
                    display: flex;
                    align-items: center;
                    gap: 0.4rem;
                    width: 100%;
                }
            .profile-fun-cell {
                background: linear-gradient(90deg, #ffe6e6 0%, #e6f7ff 100%);
                border-radius: 12px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.07);
                transition: transform 0.2s, box-shadow 0.2s;
                position: relative;
            }
            .profile-fun-cell:hover {
                transform: scale(1.05);
                box-shadow: 0 4px 16px rgba(0,0,0,0.12);
                z-index: 2;
            }
            .profile-fun-icon {
                font-size: 1.5em;
                margin-right: 8px;
                vertical-align: middle;
                display: inline-block;
            }
        .profile-grid {
            display: grid;
            grid-template-columns: 80px 1.5fr 1.5fr 2.5fr;
            grid-auto-rows: 72px;
            gap: 1.2rem;
            padding: 1.2rem;
            min-width: 700px;
            max-width: 100%;
            box-sizing: border-box;
            background-color: var(--white);
            border-radius: 10px;
            font-size: 1rem;
            margin-top: 1em;
            box-shadow: 0 4px 24px var(--soft-shadow);
            align-items: center;
        }
        .profile-grid > div {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            height: 100%;
        }
        .profile-grid .athlete_name {
            align-items: center;
            display: flex;
            height: 100%;
        }
        .profile-grid .badge_name {
            align-items: center;
            display: flex;
            height: 100%;
        }
        .profile-grid .badge_level_bar {
            align-items: center;
            display: flex;
            height: 100%;
        }
        .profile-grid > .image-container {
            grid-column: 1;
            justify-self: center;
            align-self: center;
            margin: 0;
        }
        .profile-grid > .athlete_name {
            grid-column: 2;
            font-size: 1.1rem;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            align-self: center;
            margin: 0;
        }
        .profile-grid > .badge_name {
            grid-column: 3;
            font-size: 1rem;
            font-weight: 500;
            padding: 0.4rem 1.4rem;
            min-width: 140px;
            max-width: 260px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            align-self: center;
            margin: 0;
            z-index: 2;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }
        .profile-grid > .badge_level_bar {
            grid-column: 4;
            min-width: 180px;
            max-width: 340px;
            margin: 0;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding-left: 20px;
            padding-right: 20px;
            background: none;
            box-shadow: none;
        }
    #attendance-grid {
        display: grid;
        grid-template-columns: 80px 1.5fr 1.5fr 2.5fr;
        gap: 1.2rem;
        padding: 1.2rem;
        min-width: 700px;
        max-width: 100%;
        box-sizing: border-box;
        background-color: var(--white);
        border-radius: 10px;
        font-size: 1rem;
        margin-top: 1em;
        box-shadow: 0 4px 24px var(--soft-shadow);
    }
    #attendance-grid .attendance-row {
        display: contents;
        /* grid-template-columns removed, parent grid handles columns */
        align-items: center;
        gap: 0;
        padding: 0;
        border-bottom: none;
        background: none;
        border-radius: 0;
        min-height: unset;
        margin-bottom: 0;
    }
    #attendance-grid .avatar-cell {
        grid-column: 1;
        justify-self: center;
        align-self: center;
        margin: 0;
    }
    #attendance-grid .name-cell {
        grid-column: 2;
        font-size: 1.1rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        align-self: center;
        margin: 0;
    }
    #attendance-grid .badge_name {
        grid-column: 3;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.4rem 1.4rem;
        min-width: 140px;
        max-width: 260px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        align-self: center;
        margin: 0;
        z-index: 2;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    #attendance-grid .badge_level_bar {
        grid-column: 4;
        min-width: 180px;
        max-width: 340px;
        margin: 0;
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
        background: none;
        box-shadow: none;
    }
    #attendance-grid .level-bar {
        height: 24px;
        background: #f0f0f0;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        margin: 0;
        width: 100%;
        min-width: 100px;
        max-width: 220px;
    }
    #attendance-grid .level-fill {
        height: 100%;
        border-radius: 12px;
        background: var(--accent-color-2);
        transition: width 0.3s;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
    }
    #attendance-grid img.attendance-image-size {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 50%;
        margin: 0 auto;
        display: block;
    }
    #attendance-grid > .column-name {
        font-size: 1.1em;
        font-weight: 700;
        color: var(--primary-color);
        background: var(--card-bg);
        border-radius: 8px;
        padding: 8px 4px;
        margin-bottom: 4px;
        justify-content: flex-start;
    }
    #attendance-grid > .image-container,
    #attendance-grid > .athlete_name,
    #attendance-grid > .badge_icon,
    #attendance-grid > .badge_name,
    #attendance-grid > .cell-info {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        padding: 8px 4px;
        align-items: center;
    }
    #attendance-grid > .athlete_name {
        font-size: 1.05em;
        font-weight: 600;
        color: var(--text-color);
    }
    #attendance-grid > .badge_name {
        font-size: 1em;
        font-weight: 500;
    }
    #attendance-grid > .cell-info {
        min-width: 120px;
    }
}
#attendance-grid {
    display: grid;
    grid-template-columns: 50px 1.5fr 60px 70px 2fr 70px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: var(--white);
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    margin-top: 1em;
    box-shadow: 0 4px 24px var(--soft-shadow);
    padding: 16px 12px;
}
#attendance-grid > .column-name {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--card-bg);
    border-radius: 8px;
    padding: 8px 4px;
    margin-bottom: 4px;
    justify-content: flex-start;
}
#attendance-grid > .image-container,
#attendance-grid > .athlete_name,
#attendance-grid > .badge_icon,
#attendance-grid > .badge_name,
#attendance-grid > .cell-info {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    padding: 8px 4px;
    align-items: center;
}
#attendance-grid > .athlete_name {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-color);
}
#attendance-grid > .badge_name {
    font-size: 1em;
    font-weight: 500;
}
#attendance-grid > .cell-info {
    min-width: 120px;
}
#attendance-grid {
    display: grid;
    grid-template-columns: 50px 1.5fr 60px 70px 2fr 70px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background-color: var(--white);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
}
#attendance-grid > div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 4px;
    box-sizing: border-box;
    color: var(--text-color);
    font-weight: 600;
    min-height: 48px;
}
#attendance-grid > .column-name {
    justify-content: flex-start;
}
.athlete_name.name-cell {
    cursor: pointer;
    transition: color 0.2s;
}
.athlete_name.name-cell:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
@media (max-width: 600px) {
    .athlete_name.name-cell {
        color: var(--text-color);
        text-decoration: none;
        cursor: pointer;
    }
    .athlete_name.name-cell:hover {
        color: var(--text-color);
        text-decoration: none;
    }
}
@media (max-width: 600px) {
    #attendance-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        font-size: 0.92em;
        padding: 6px 2px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    #attendance-grid .column-name {
        display: none;
    }
    #attendance-grid > .image-container {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0;
        min-width: 32px;
    }
    #attendance-grid > .athlete_name {
        font-size: 1em;
        font-weight: 600;
        word-break: break-word;
        margin-bottom: 2px;
        max-width: 120px;
    }
    #attendance-grid > .badge_icon {
        margin-bottom: 2px;
        width: 32px;
        height: 32px;
    }
    #attendance-grid > .badge_name {
        font-size: 0.95em;
        margin-bottom: 2px;
        max-width: 80px;
        word-break: break-word;
    }
    #attendance-grid > .cell-info {
        width: 100%;
        margin-bottom: 2px;
    }
    #attendance-grid .level-bar {
        min-width: 90px;
        max-width: 140px;
        height: 16px;
    }
    #attendance-grid .level-text {
        font-size: 0.7em;
        padding: 0 2px;
    }
    #attendance-grid > div {
        padding: 4px 2px;
        min-height: 32px;
        font-size: 0.95em;
        box-sizing: border-box;
    }
}
.athletes-flex-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.athlete-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 8px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--soft-shadow);
}
.athlete-flex-avatar {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.athlete-flex-info {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.athlete-name-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.athlete-badge-icon {
    width: 32px;
    height: 32px;
    margin-top: 2px;
}
.athlete-flex-progress {
    flex: 2 1 180px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
@media (max-width: 600px) {
    .athlete-flex-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 4px;
    }
    .athlete-flex-avatar {
        justify-content: flex-start;
        margin-bottom: 4px;
    }
    .athlete-flex-info {
        align-items: flex-start;
        margin-bottom: 4px;
    }
    .athlete-flex-progress {
        width: 100%;
        margin-top: 4px;
    }
    .athlete-name-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
@media (max-width: 600px) {
    .athletes-table colgroup col:nth-child(1) { width: 40px !important; }
    .athletes-table colgroup col:nth-child(2) { width: 90px !important; }
    .athletes-table colgroup col:nth-child(3) { display: none; }
    .athletes-table colgroup col:nth-child(4) { width: 1fr !important; }
    .athletes-table td:nth-child(3), .athletes-table th:nth-child(3) { display: none; }
    .athletes-table td:nth-child(2) { max-width: 90px; }
    .athletes-table td:nth-child(4) { min-width: 90px; }
}
@media (max-width: 600px) {
    .athletes-table {
        font-size: 0.92em;
        margin-top: 0.5em;
        border-radius: 8px;
    }
    .athletes-table th, .athletes-table td {
        padding: 0.4em 0.5em;
    }
    .athlete-name {
        font-size: 0.95em;
        max-width: 110px;
        line-height: 1.1;
        word-break: break-word;
    }
    .attendance-image-size {
        width: 32px;
        height: 32px;
    }
    .level-bar {
        min-width: 90px;
        max-width: 140px;
        height: 16px;
    }
    .level-text {
        font-size: 0.7em;
        padding: 0 2px;
    }
}
@media (max-width: 400px) {
    .athletes-table th, .athletes-table td {
        padding: 0.2em 0.3em;
    }
    .athlete-name {
        font-size: 0.85em;
        max-width: 70px;
    }
    .level-bar {
        min-width: 60px;
        max-width: 90px;
        height: 12px;
    }
}
.athlete-name {
    display: block;
    font-size: 1.05em;
    font-weight: 600;
    word-break: break-word;
    white-space: pre-line;
    line-height: 1.2;
    max-width: 180px;
}
.athletes-table td {
    vertical-align: middle;
}
.level-bar {
    min-width: 180px;
    width: 100%;
    max-width: 320px;
}
/* ====== Profile Page Custom Styles ====== */
.athletes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--soft-shadow);
    overflow: hidden;
}
.athletes-table th, .athletes-table td {
    padding: 0.75em 1em;
    text-align: left;
    font-size: 1em;
}
.athletes-table th {
    background: var(--card-bg);
    color: var(--primary-color);
    font-weight: 600;
}
.athletes-table tr:nth-child(even) {
    background: #f9fafc;
}
.athletes-table tr:hover {
    background: #e3f2fd;
    transition: background 0.2s;
}
.attendance-image-size {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 1px 4px var(--soft-shadow);
    object-fit: cover;
}
.toggle-btn {
    background: linear-gradient(90deg,#6dd5ed,#2193b0);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5em 1.2em;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 1px 4px var(--soft-shadow);
    margin-left: 1em;
    transition: background 0.2s, box-shadow 0.2s;
}
.toggle-btn:hover {
    background: linear-gradient(90deg,#2193b0,#6dd5ed);
    box-shadow: 0 2px 8px var(--soft-shadow);
}
.badge_name {
    font-weight: 500;
    padding-left: 0.5em;
}
.no-athletes-message {
    text-align: center;
    color: var(--primary-color);
    margin: 2em 0;
}
.profile-header img {
    margin-bottom: 0.5em;
}
.profile-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-info-item {
    margin-bottom: 0.75em;
    display: flex;
    justify-content: space-between;
}
.profile-info-label {
    font-weight: 600;
    color: var(--primary-color);
}
.profile-info-value {
    color: var(--text-color);
}
/* ================= Utility Classes ================= */
.p-4 { padding: 4px !important; }
.p-8 { padding: 8px !important; }
.p-16 { padding: 16px !important; }
.m-4 { margin: 4px !important; }
.m-8 { margin: 8px !important; }
.m-16 { margin: 16px !important; }
.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 16px !important; }
.shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; }
.flex-center { display: flex !important; justify-content: center !important; align-items: center !important; }
.grid-2 { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
.grid-3 { display: grid !important; grid-template-columns: 1fr 1fr 1fr !important; gap: 8px !important; }

/* ================= Refactored Skill Status ================= */
.skill-status {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}
.status-building-strength { background: linear-gradient(135deg, #FF9800, #FFB74D); color: white; }
.status-polishing { background: linear-gradient(135deg, #8BC34A, #AED581); color: white; }
.status-mastered { background: linear-gradient(135deg, #4ade80, #22c55e); color: white; }
.status-Discovering { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.status-none { background: linear-gradient(135deg, #6b7280, #4b5563); color: white; }
.status-going-solo { background: linear-gradient(135deg, #FFC107, #FFD54F); color: #333; }

/* ================= Refactored Card Layouts ================= */
.card {
    background: linear-gradient(145deg, var(--white) 0%, var(--card-bg) 100%);
    border: 2px solid var(--accent-color-2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}
.feed-card-container, .athlete-card, .onboarding-card {
    /* Use .card as base, add specific modifiers if needed */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}
.feed-card-container { background: linear-gradient(135deg, var(--card-bg) 0%, var(--background-color) 100%); }
.athlete-card { background: linear-gradient(145deg, var(--white) 0%, var(--card-bg) 100%); }
.onboarding-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

/* ================= Responsive Helpers ================= */
@media (max-width: 600px) {
    .skills-page-container {
        margin: 4px 2px 80px 2px;
        padding: 6px 2px;
        border-radius: 10px;
        width: 100%;
        min-width: 0;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 4px;
    }
    .card {
        padding: 6px;
        border-radius: 8px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .skill-image-grid.parent-skill-card {
        grid-template-rows: auto auto 18px auto;
        padding: 3px;
        margin-bottom: 2px;
        border-radius: 8px;
    }
    .skill-title {
        font-size: 0.85rem;
        padding: 2px 2px;
        min-height: 1.5em;
    }
    .skill-status {
        font-size: 0.7rem;
        padding: 4px 4px;
        min-width: 40px;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .skill-status-display {
        padding: 2px;
        width: 100%;
        flex-wrap: wrap;
    }
    .level-bar {
        height: 12px;
        border-radius: 8px;
        margin: 2px 0;
    }
    .level-text {
        font-size: 0.5rem;
        padding: 0 2px;
    }
    .skill-image {
        height: 60px;
        border-radius: 6px;
    }
}
.status-polishing {
    background: linear-gradient(135deg, #8BC34A, #AED581);
    color: white;
}
.status-building-strength {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
}
.skill-status {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.skill-status-display {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .skill-status {
        font-size: 0.85rem;
        padding: 8px 12px;
        min-width: 90px;
    }
    .skill-status-display {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .skill-status {
        font-size: 0.75rem;
        padding: 6px 6px;
        min-width: 60px;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .skill-status-display {
        padding: 4px;
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ================= Top-Bar Styles ================= */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 20px;
    background: var(--background-color);
    border-bottom: 1px solid var(--accent-color-2);
    box-sizing: border-box;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

#top-bar-logo {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.top-bar-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fox-brown);
}

.top-bar-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.top-bar-profile-link:hover .top-bar-text {
    color: var(--primary-color);
}

.top-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.top-bar-profile-link:hover .top-bar-icon {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.top-bar-icon:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

@media (max-width: 480px) {
    #top-bar {
        padding: 8px 15px;
    }
    #top-bar-logo {
        width: 32px;
        height: 32px;
    }
    .top-bar-text {
        font-size: 1rem;
    }
    .top-bar-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

/* Movement Pattern Filter Bar Styles */
.mp-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--card-bg, #fffbee);
    border-radius: 2.2em;
    padding: 0.5em 1.2em 0.5em 1.2em;
    box-shadow: 0 2px 12px 0 rgba(31, 50, 91, 0.07);
    border: 1.5px solid var(--muted, #e0e0e0);
}

.mp-filter-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.mp-filter-select-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color, #1c325b);
    padding-left: 4px;
}

.mp-filter-select {
    background: var(--white, #fff);
    color: var(--primary-color, #1c325b);
    border: 1.5px solid var(--muted, #e0e0e0);
    border-radius: 12px;
    padding: 0.5em 0.8em;
    font-size: 0.98rem;
    font-family: var(--font-family, 'Baloo 2', 'Segoe UI', Arial, sans-serif);
    font-weight: 600;
    outline: none;
    box-shadow: 0 1px 4px 0 rgba(31, 50, 91, 0.04);
}

.mp-filter-select:focus {
    border-color: var(--secondary-color, #f17e3d);
    box-shadow: 0 0 0 2px var(--secondary-color, #f17e3d33);
}
/* Modern pill-style filter buttons */
.mp-filter-btn, .event-filter-btn {
    background: var(--white, #fff);
    color: var(--primary-color, #1c325b);
    border: 1.5px solid var(--muted, #e0e0e0);
    border-radius: 2em;
    padding: 0.45em 1.3em;
    font-size: 1.08em;
    font-family: var(--font-family, 'Baloo 2', 'Segoe UI', Arial, sans-serif);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    outline: none;
    margin: 2px 0;
    box-shadow: 0 1px 4px 0 rgba(31, 50, 91, 0.04);
}
.mp-filter-btn.active, .event-filter-btn.active {
    background: linear-gradient(90deg, var(--secondary-color, #f17e3d), var(--accent-color, #fdb357));
    color: #fff;
    border: 1.5px solid var(--secondary-color, #f17e3d);
    box-shadow: 0 2px 8px 0 rgba(241, 126, 61, 0.13);
}
.mp-filter-btn:hover:not(.active), .event-filter-btn:hover:not(.active) {
    background: var(--accent-color-2, #ffe0ae);
    color: var(--primary-color, #1c325b);
    border: 1.5px solid var(--accent-color, #fdb357);
}
.mp-filter-btn:focus, .event-filter-btn:focus {
    box-shadow: 0 0 0 2px var(--secondary-color, #f17e3d33);
}
.mp-filter-bar-secondary {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    /* Coaches Skills Page Styles */
    align-items: center;
    flex-wrap: wrap;
}
.mp-filter-label {
    font-weight: 700;
    font-size: 1.08em;
    margin-right: 0.7em;
    color: var(--primary-color, #1c325b);
}
.mp-filter-comment {
    margin: 6px 0 14px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--accent-color-2);
    background: linear-gradient(90deg, var(--card-bg), var(--background-color));
    color: var(--text-color);
}

.mp-filter-comment-heading {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mp-filter-comment-body {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-color);
}

.skill-card-wrapper {
    transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease;
    transform: translateX(0);
    opacity: 1;
    max-height: 1600px;
}

.skill-card-clickable {
    cursor: pointer;
}

.skill-card-wrapper.skill-card-wrapper-hidden {
    opacity: 0;
    transform: translateX(18px);
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .skill-card-wrapper,
    .skill-card-wrapper.skill-card-wrapper-hidden {
        transition: none;
        transform: none;
    }
}
.skill-modal-comment {
    margin-top: 10px;
    color: #666;
    font-size: 0.97em;
}
@media (max-width: 800px) {
    #date-and-mantra-container {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    #date-and-mantra-container {
        margin-bottom: 64px;
    }
}

@media (max-width: 420px) {
    #date-and-mantra-container {
        margin-bottom: 80px;
    }
}
a:hover, a::visited {
    text-decoration: none;

}
a {
    text-decoration: none;
    color: black

}

h1, h2, h3, h4 {
    color: var(--text-color);
    text-align: center;
}
#avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
#sidebar h3 {
    padding: 3px;
    font-weight: 500;
}
#logo {
    padding:20px 30px;
    width: 180px;    
    aspect-ratio: 3 / 1;
}
#coach-menu-logo {
    padding: 0px;
    width: 180px;    
    aspect-ratio: 3 / 1;
}
#header b {
    font-size: 32px;
    padding: 32px;
    opacity: 0.6;
}
#log-in-out-btn {
    white-space: nowrap;      /* Prevents line breaks */
    min-width: fit-content;          /* Ensures enough width for the text */
    padding: 8px 16px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px var(--soft-shadow);
    transition: background-color 0.3s;
}
#logout-btn:hover {
    background-color: var(--button-hover-color);
}
#header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    padding: 4px 20px;
    box-sizing: border-box;
    background-color: var(--background-color);
    text-align: center;
}
#header-btns {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding-right: 56px;
    padding-bottom: 10px;
    justify-content: center;
    align-items: center;
}
#coaches-menu-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    min-height: var(--coaches-menu-height);
    padding-bottom: 8px;
    background: var(--primary-color);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.12);
}
#coaches-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 920px;
    min-height: calc(var(--coaches-menu-height) - 8px);
    margin: 0px auto;
    padding: 10px 20px 6px 20px;
    box-sizing: border-box;
    background: transparent;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#coaches-menu-container {
    overflow: hidden;
}

.athlete-selector-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.athlete-selector-panel:not(.hidden) {
    display: flex;
}

#coaches-menu.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

#coaches-menu.slide-in-left {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.athlete-selector-panel.slide-in-right {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.athlete-selector-panel.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}
#tab-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: calc(100% - 60px);
    margin: 60px auto 0 auto;
    padding: 0;
    border-radius: 0;
}

#bread-crum-container {
    display: flex;
    color: var(--text-color);
    justify-self: flex-start;
    align-items: center;
    padding: 0px;
    font-size: 1.2rem;
    position: relative;
    border-radius: 12px 12px 0 0;
    z-index: 10;
    width: fit-content;
}
.coaches-menu-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    color: var(--background-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}
.coaches-menu-logo {
    padding: 0px;
    width: 150px;    
    aspect-ratio: 3 / 1;
}
.coaches-menu-icon {
    z-index: 1000;
    width: 48px;
    height: 48px;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}
/* Tall menu bar for pages that need to match skills page header height */
#coaches-menu-container.tall-menu {
    height: auto;
    max-height: 95px; /* Matches skills page blue header */
    padding-bottom: 0;
}

#coaches-menu-container.tall-menu #coaches-menu {
    max-height: 95px;
    margin: 0 auto;
    padding: 20px 20px;
    align-items: center;
}

#coaches-menu-container.tall-menu #bread-crum-container {
    padding: 12px 0;
    font-size: 1.1rem;
}
#bread-crum-container + #coaches-menu {
    max-height: fit-content;

}
#bread-crum-container > a {
    color: var(--white);
    text-decoration: none;
}
.primary-shadow {
    text-shadow: 2.5px 2.5px var(--primary-color);
}

#bread-crum-container > a:hover,
#bread-crum-container > a:visited,
#bread-crum-container > a:active {
    color: var(--white);
    text-decoration: none;
}
#bread-crum-container > a:hover {
    color: var(--primary-color);
    font-weight: 900;
}
.forgot-password-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.2s, text-shadow 0.2s;
}

.forgot-password-text:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
    text-shadow: 0 0 8px rgba(0, 150, 136, 0.3);
}
.tab-segment {
    background: var(--card-bg);
    opacity: 0.7;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    margin-right: 4px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color-2);
    border-bottom: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}
.tab-segment:first-child {
    margin-left: 0;
}

.tab-segment:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.tab-segment.active-tab,
.tab-segment.active {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--white) 50%, var(--card-bg) 100%);
    opacity: 1;
    font-weight: 700;
    border: 2px solid var(--accent-color-2);
    border-bottom: none;
    z-index: 11;
    transform: translateY(2px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    cursor: default;
}

/* Make the active tab connect seamlessly with container */
.tab-segment.active-tab::after,
.tab-segment.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--white) 50%, var(--card-bg) 100%);
}

.tab-text {
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.active-tab-text,
.tab-segment.active .tab-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

a:has(.tab-segment) {
    text-decoration: none;
}

.tab-segment a {
    text-decoration: none;
    color: inherit;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - 60px);
    max-width: 70%;
    margin: -2px auto 240px auto;
    padding: 32px 40px;
    border-radius: 0 24px 24px 24px;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--white) 50%, var(--card-bg) 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--soft-shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-color-2);
}

/* Attendance page and skills page container adjustments */
body:has(#attendance-form) .container,
body:has(.skills-page-container) .container {
    margin-top: -2px;
    border-radius: 0 24px 24px 24px;
}
#main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 2;
    width: 100%;
    height: 100%;

}
#welcome-message{
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}
#header+div {
    display: flex;

    justify-content: center;
    align-items: center;
    flex-direction: row;
}
#header+.container{
    flex-direction: column;
}
#header-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    
}


#main-content-btns {
    display: flex;
    flex: 2;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    height: 100%;
}
#classes-btn {
    background-color: var(--secondary-color);
    border: 0px solid var(--white);
    color: var(--card-bg);
    font-size: 1.75rem;
    border-radius: 20px;
    width: 30%;
    height: 7%;
    min-width: fit-content;
    min-height: fit-content;
    cursor: pointer;
}
#classes-btn:active {
    background-color: #ee9330; /* not yet in :root; could map to var(--accent-color) if desired */
    transform: translateY(1px);
    -webkit-box-shadow: inset 0px 0px 5px #ffe0ae;
        -moz-box-shadow: inset 0px 0px 5px #ffe0ae;
            box-shadow: inset 0px 0px 5px #ffe0ae;
    outline: none;
}
#progress-btn {
    background-color: var(--primary-color);
    border: 0px solid var(--white);
    color: var(--card-bg);
    font-size: 1.75rem;
    border-radius: 20px;
    width: 30%;
    height: 7%;
    min-width: fit-content;
    min-height: fit-content;
    cursor: pointer;
}
#progress-btn:active {
    background-color: var(--primary-color);
    transform: translateY(1px);
    -webkit-box-shadow: inset 0px 0px 5px rgba(133,167,230,0.7);
        -moz-box-shadow: inset 0px 0px 5px rgba(133,167,230,0.7);
            box-shadow: inset 0px 0px 10px rgba(133,167,230,0.7);
    outline: none;
}
#sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    height: 100%;
}
#upcoming-class {
    padding: 12px 40px;
    background-color: var(--card-bg);
    width: 100%;
    height: fit-content;
    width: fit-content;
    border-radius: 20px;
    color: var(--text-color);
}
#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    height: 100%;
    margin-top: 20px;
}

#footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    font-weight: 700;
}

#footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    transform: scale(1.05);
}
#logout-btn {
    background-color: var(--primary-color);
}

#community-feed {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0px;
}
#date-and-mantra-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-top: 72px; 
}
.date-and-mantra-item {
    margin: -4px;
}
.quote-text {
    color: var(--card-bg);
    text-shadow: 1.5px 1.5px var(--primary-color);
}
.widgets {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    height: 100%;
    margin: 0px;
}

.menu-icon-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    min-width: 64px;
    color:white;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - 60px);
    max-width: 70%;
    margin: 128px auto 240px auto;
    padding: 32px 40px;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--white) 50%, var(--card-bg) 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--soft-shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-color-2);
    
}

.auth-form-container {
    max-width: 480px;
    margin: 40px auto 80px auto;
    padding: 24px 32px;
}

.container.auth-form-container {
    width: min(92vw, 480px);
    max-width: 92vw;
}

.auth-form-container h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--green), var(--light-blue), var(--purple));
}

.container p {
    margin: 20px 0px;
    line-height: 1.6;
}

.skills-page-container {
    margin-top: -1px;
    border-radius: 0 20px 20px 20px;
}
#card-container {
    justify-content: flex-start;
    padding-bottom: 32px;
    margin-top: 32px;
}
.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form > p {
    display: flex;
    justify-content: end;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--text-color);
}

.form > p:hover {
    cursor: pointer;
    color: #2563eb; /* blue accent — optional to convert to variable if needed */
}

.input-label {
    padding-left: 3px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    width: 500px;
    max-width: 90%;
}

.form-row .input-label {
    flex: 0 0 150px;
    margin: 0;
}

.form-row .input-field {
    flex: 1;
    max-width: 300px;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.input-field {
    padding: 7px 10px;
    border: 1px solid var(--muted);
    border-radius: 9px;
    font-size: 1rem;
    background: #f9fafb; /* near-white; can be mapped to var(--white) if desired */
    transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
}

.input-field:focus {
    border-color: var(--accent-color);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 12px rgba(0, 150, 136, 0.2);
    transform: translateY(-2px);
}

.input-field:hover:not(:focus) {
    border-color: var(--accent-color-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-container .form-group {
    margin-bottom: 16px;
}

.auth-form-container .form-group:last-of-type {
    margin-bottom: 20px;
}

.form-group .input-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.form-group .input-field {
    width: 100%;
    max-width: 400px;
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.login-btn {
    margin-top: 10px;
    padding: 12px 0;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

#log-in-form,
.container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.pre-log-in-loop {
    animation: fadeInDown 0.6s ease-out;
}

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

.container form p {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.auth-form-container .login-btn {
    width: 100%;
    max-width: 360px;
    margin-top: 16px;
    padding: 10px 0;
    font-size: 1rem;
}

@media (max-width: 800px) {
    .container.auth-form-container {
        width: calc(100vw - 28px);
        max-width: 460px;
        margin: 24px auto 48px auto;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .auth-form-container .form-group .input-field,
    .auth-form-container .login-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container.auth-form-container {
        width: calc(100vw - 20px);
        margin: 16px auto 36px auto;
        padding: 16px 12px;
        border-radius: 14px;
    }

    .auth-form-container h2 {
        margin-bottom: 16px;
        font-size: 1.3rem;
    }
}

.auth-form-container form p {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.auth-form-container form p:first-of-type {
    margin-top: 8px;
}

.forgot-password-btn {
    margin-top: 32px;
}
.button_major {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.button_major::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
    pointer-events: none;
}

.button_major:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.button_major:hover {
    background: var(--secondary-color);
}
.login-btn:hover {
    background: var(--secondary-color);
}
.left-justified-text {
    text-align: left;
}
.menu-links {
    margin-top: 18px;
    font-size: 0.97rem;
    font-weight: 900;
    color: black;
    opacity: 0.6;
    text-decoration: none;
}

.menu-links:hover {
    cursor: pointer;
    opacity: 1;
    color: var(--secondary-color);
}
.end-btn {
    padding-right: 16px;
}
.links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.97rem;
    text-decoration: none;
}


.links a {
    color: var(--primary-color); /* blue link — consider adding a variable for link-color */
    text-decoration: none;
    margin: 0 4px;
    transition: color 0.2s;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.no-bullet-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
#attendance-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#submit-attendance-btn {
    flex-direction: flex-end;
    padding: 8px 16px;
    background-color: var(--primary-color);
}
#attendance-grid {
  display: grid;
    grid-template-columns: 50px 1.5fr 96px 120px 2fr 70px; /*Avatar | Name | Badge icon | badge name | badge Level bar | Attendance */
  justify-content: center;
  align-items: center;
  gap: 4px;
  background-color: var(--white);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9rem;
    grid-auto-flow: row;
}

#attendance-grid > div {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 4px;
  box-sizing: border-box;       /* important so padding/border don't overflow */
  color: var(--text-color);
  font-weight: 600;
  min-height: 48px;
}
#attendance-grid > .column-name {
  justify-content: flex-start;
}

#attendance-grid .attendance-row {
    display: contents;
}

#attendance-grid .attendance-row > div {
    border-bottom: 1px solid var(--card-bg);
}

#attendance-grid .attendance-row:last-of-type > div {
    border-bottom: none;
}

#attendance-grid .attendance-status-cell {
    justify-content: center;
}

#attendance-grid .attendance-row > div {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 52px;
}

#attendance-grid .attendance-row .avatar-cell { grid-column: 1; }
#attendance-grid .attendance-row .name-cell { grid-column: 2; }
#attendance-grid .attendance-row .badge_icon { grid-column: 3; }
#attendance-grid .attendance-row .badge_name { grid-column: 4; }
#attendance-grid .attendance-row .attendance-progress-cell { grid-column: 5; }
#attendance-grid .attendance-row .attendance-status-cell { grid-column: 6; }

#attendance-grid .attendance-row .avatar-cell,
#attendance-grid .attendance-row .badge_icon,
#attendance-grid .attendance-row .badge_name,
#attendance-grid .attendance-row .attendance-status-cell {
    justify-self: center;
}

#attendance-grid .attendance-row .badge_icon {
    width: 96px;
    min-width: 96px;
}

#attendance-grid .attendance-row .badge_icon .attendance-image-size {
    width: 48px;
    height: 48px;
}

#attendance-grid .attendance-row .badge_name {
    min-width: 120px;
    padding: 0 10px;
}

#attendance-grid .attendance-row .name-cell {
    justify-content: center;
    text-align: center;
    padding-left: 0;
}

#attendance-grid .attendance-row .attendance-image-size {
    align-self: center;
    margin: 0 auto;
}

#attendance-grid .attendance-row .badge_level_bar,
#attendance-grid .attendance-row .level-bar {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    position: relative;
    overflow: hidden;
}

#attendance-grid .attendance-row .level-fill {
    position: absolute !important;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: 12px;
    display: block;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color)) !important;
    z-index: 1;
}

#attendance-grid .attendance-row .level-text {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
#class-info-header{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 100%;
    margin-bottom: 16px;
}
.right-aligned-btn {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
}
.image-container {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
}
.page-h3-header {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}
.avatar-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
}
.class-info-image {
    width: 96px;
    height: 96px;
    border-radius: 10%;
    object-fit: cover;
    margin-right: 16px;
}

.class-info-text {
    display: flex;
    flex: 8;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 0 20px;

}

.class-info-text h2,
.class-info-text h3 {
    white-space: nowrap;
}

.attendance-image-size {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  align-self: flex-start;
}
.column-name {
  text-align: left;
  font-weight: 700;
}

.name-cell {
  cursor: pointer;
  width: 100%;
  align-items: center;
  padding-left: 6px;
}
#level-bar-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
/* Make sure the level bar fits its grid cell */
.level-bar {
  position: relative;
  width: 100%;
  box-sizing: border-box;       /* prevents overflow from borders/padding */
  border: 1px solid var(--text-color);
  height: 20px;
  background: var(--muted);
  border-radius: 10px;
  overflow: hidden;
}

.level-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  z-index: 1;
  border-radius: 18px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(var(--secondary-color), 0.4);
}

.level-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  padding: 0 6px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}
.attendance-checkbox {
  transform: scale(1.2);
  accent-color: var(--text-color);
  cursor: pointer;
}


#classes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1fr 1fr ; /* icon | Day | Class Name | Time | Type */
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}
#classes-grid > div {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;       /* important so padding/border don't overflow */
  color: var(--text-color);
  font-weight: 600;
  min-height: 56px;
}

#classes-grid .column {
  text-align: center;
  padding: 8px;
}

.attendance-link::hover {
    cursor: pointer;
}

.alt-skills-btn {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s;
}

.alt-skills-btn:hover {
    background-color: var(--accent-color-3);
    color: var(--white);
}

/* Alternate Skills Page */
.alt-skills-page #tab-container {
    margin-bottom: 0;
}

.alt-skills-page .container.skills-page-container {
    margin-top: -2px;
    border-radius: 0 24px 24px 24px;
}

.athlete-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.athlete-card .athlete-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
}

/* Alt Skills Page – skill header */
#alt-skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.alt-skill-hero-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.alt-skill-header-text h2 {
    font-size: 1.3rem;
}

/* Skill switcher */
#alt-skill-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.switcher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.switcher-btn.disabled {
    background: var(--muted);
    pointer-events: none;
}

.switcher-btn:hover:not(.disabled) {
    background: var(--accent-color-3);
}

#skill-dropdown {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--muted);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

.switcher-count {
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.6;
    white-space: nowrap;
}

/* Athlete rows grid */
#alt-skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-color-2);
}

.alt-skills-grid-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.6;
    letter-spacing: 0.05em;
    background: var(--accent-color-2);
}

.alt-skills-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--muted);
    background: var(--card-bg);
}

.alt-skills-row:last-of-type { border-bottom: none; }

.alt-athlete-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.alt-status-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-status-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--muted);
    font-size: 0.85rem;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
}

.status-indicator {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    transition: color 0.2s;
}
.status-indicator.saving { color: var(--accent-color); }
.status-indicator.saved  { color: var(--green); }
.status-indicator.error  { color: var(--badge-red); }

/* Toast */
.alt-skills-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 22px;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    z-index: 2000;
    transition: opacity 0.3s;
}
.alt-skills-toast.error { background: var(--badge-red); }
.alt-skills-toast.hidden { opacity: 0; pointer-events: none; }

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    padding: 10px;
}

.card{
    background: linear-gradient(145deg, var(--white) 0%, var(--card-bg) 100%);
    border: 2px solid var(--accent-color-2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(var(--accent-color), 0.2);
    border-color: var(--accent-color);
}

.card > * {
    position: relative;
    z-index: 2;
}

.skill-card {
    gap: 8px;
}

.skills-page-container .grid.skill-card {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: calc((320px * 4) + (14px * 3));
    margin-left: auto;
    margin-right: auto;
}

.skills-page-container .grid.skill-card > * {
    min-width: 0;
}

.feed-header{
text-align: left;
align-self: flex-start;
}
.feed-card-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--background-color) 100%);
    margin-bottom: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feed-card-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Category-specific gradients for feed cards - More defined colors */

/* Children's Classes - vibrant blue to teal gradient with more color */
.feed-header:contains("UPCOMING CLASSES") + .feed-card-container,
.feed-card-container:has(+ .feed-card-container .feed-card-info b) {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--green) 50%, var(--primary-color) 100%);
    color: white;
}

/* Important Events - vibrant orange to amber gradient */  
.feed-header:contains("IMPORTANT EVENTS") ~ .feed-card-container:nth-of-type(1),
.feed-header:contains("IMPORTANT EVENTS") ~ .feed-card-container:nth-of-type(2) {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 50%, var(--accent-color-3) 100%);
    color: white;
}

/* Family Highlights - vibrant purple to magenta gradient */
.feed-header:contains("FAMILY HIGHLIGHTS") ~ .feed-card-container {
    background: linear-gradient(135deg, var(--purple) 0%, var(--light-blue) 50%, var(--primary-color) 100%);
    color: white;
}

/* Alternative approach using nth-child selectors for more reliable targeting */

/* Target children's class cards (appear after first header) - Enhanced colorful gradient */
#card-container > .feed-card-container:nth-child(3),
#card-container > .feed-card-container:nth-child(4),
#card-container > .feed-card-container:nth-child(5) {
    background: linear-gradient(135deg, var(--green) 0%, var(--light-blue) 30%, var(--primary-color) 70%, var(--text-color) 100%);
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Add special styling for children's names and badges */
#card-container > .feed-card-container:nth-child(3) .feed-card-info b,
#card-container > .feed-card-container:nth-child(4) .feed-card-info b,
#card-container > .feed-card-container:nth-child(5) .feed-card-info b {
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    font-weight: 800;
}

/* Enhanced badge styling for children's classes */
#card-container > .feed-card-container:nth-child(3) .badge,
#card-container > .feed-card-container:nth-child(4) .badge,
#card-container > .feed-card-container:nth-child(5) .badge {
    background-color: var(--white);
    color: var(--text-color);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Target important events cards (usually around positions 6-7) - More vibrant */
#card-container > .feed-card-container:nth-child(7),
#card-container > .feed-card-container:nth-child(8) {
    background: linear-gradient(135deg, var(--accent-color-2) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    color: white;
}

/* Target family highlights cards (later positions) - More vibrant pink/purple */
#card-container > .feed-card-container:nth-child(n+9):not(.onboarding-card) {
    background: linear-gradient(135deg, var(--purple) 0%, var(--light-blue) 50%, var(--primary-color) 100%);
    color: white;
}

/* Keep onboarding card with its existing gradient - using :root colors */
.onboarding-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%) !important;
}
.feed-card-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 12px;
    grid-column: 2 / -1; /* spans columns 2 to end */
}
.feed-card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 10%;
    object-fit: cover;
}
  .celebration-container {
            text-align: center;
            padding: 2rem;
            position: relative;
            overflow: hidden;
        }
        
        .celebration-title {
            font-size: 3rem;
            font-weight: 800;
            color: #FF6B6B;
            margin-bottom: 1rem;
            animation: bounceIn 1s ease-out;
        }
        
        .celebration-message {
            font-size: 1.2rem;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto 2rem auto;
            animation: fadeInUp 1.5s ease-out 0.5s both;
        }
        
        .badge-animation {
            display: inline-block;
            font-size: 4rem;
            animation: pulse 2s infinite;
            margin: 1rem 0;
        }
        
        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background: #FF6B6B;
            animation: confetti-fall 3s linear infinite;
        }
        
        .confetti:nth-child(odd) {
            background: #4ECDC4;
            animation-delay: -0.5s;
        }
        
        .confetti:nth-child(3n) {
            background: #45B7D1;
            animation-delay: -1s;
        }
        
        .confetti:nth-child(4n) {
            background: #96CEB4;
            animation-delay: -1.5s;
        }
        
        .confetti:nth-child(5n) {
            background: #FFEAA7;
            animation-delay: -2s;
        }
        
        @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: scale(0.3);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
            70% {
                transform: scale(0.9);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
        }
        
        @keyframes confetti-fall {
            0% {
                transform: translateY(-100vh) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(360deg);
                opacity: 0;
            }
        }
                .feedback-container {
            text-align: center;
            padding: 2rem;
            position: relative;
            overflow: hidden;
        }
        
        .feedback-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: #FF6B6B;
            margin-bottom: 0.5rem;
            animation: bounceIn 1s ease-out;
        }
        
        .feedback-subtitle {
            font-size: 1.3rem;
            color: #4ECDC4;
            margin-bottom: 1rem;
            animation: fadeInUp 1.5s ease-out 0.3s both;
        }
        
        .intro-card {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 1.5rem;
            margin: 1.5rem auto;
            max-width: 600px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            animation: fadeInUp 1.5s ease-out 0.5s both;
        }
        
        .intro-text {
            font-size: 1.1rem;
            line-height: 1.6;
            color: #333;
            margin-bottom: 0.5rem;
        }
        
        .promise-text {
            font-size: 0.9rem;
            color: #666;
            font-style: italic;
        }
        
        .feedback-types {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            margin: 2rem 0;
            animation: fadeInUp 1.5s ease-out 0.7s both;
        }
        
        .feedback-type-card {
            background: white;
            border: 3px solid transparent;
            border-radius: 15px;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 150px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .feedback-type-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        }
        
        .feedback-type-card.active {
            border-color: #4ECDC4;
            background: #f0f9ff;
        }
        
        .type-emoji {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        
        .type-text {
            font-weight: 600;
            color: #333;
        }
        
        .form-section {
            display: flex;
            flex-direction: column;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 2rem;
            justify-content: center;
            align-items: center;
            margin: 2rem auto;
            max-width: 600px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            animation: fadeInUp 1.5s ease-out 0.9s both;
        }
        
        .human-label {
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 1rem;
            text-align: left;
        }
        
        .feedback-textarea {
            width: 100%;
            min-height: 120px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            padding: 1rem;
            font-size: 1rem;
            font-family: inherit;
            resize: both;
            transition: border-color 0.3s ease;
        }
        
        .feedback-textarea:focus {
            outline: none;
            border-color: #4ECDC4;
        }
        
        .optional-details {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
            margin: 1.5rem 0;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }
        
        .optional-field {
            text-align: left;
        }
        
        .optional-label {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 0.5rem;
        }
        
        .optional-input {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }
        
        .optional-input:focus {
            outline: none;
            border-color: #4ECDC4;
        }
        
        .mood-section {
            margin: 2rem 0;
            text-align: center;
        }
        
        .mood-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 1rem;
        }
        
        .mood-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .mood-btn {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            padding: 0.8rem 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }
        
        .mood-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .mood-btn.active {
            border-color: #4ECDC4;
            background: #f0f9ff;
        }
        
        .submit-celebration {
            text-align: center;
            margin-top: 2rem;
            animation: fadeInUp 1.5s ease-out 1.1s both;
        }
        
        .celebration-submit-btn {
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .celebration-submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
        }
        
        @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: scale(0.3);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
            70% {
                transform: scale(0.9);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .success-message, .error-message {
            background: #4ECDC4;
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin: 1rem 0;
            animation: bounceIn 0.8s ease-out;
        }
        
        .error-message {
            background: #FF6B6B;
        }
        
        .back-button { /*currently not used*/
            display: inline-block;
            background: #4ECDC4;
            color: white;
            padding: 12px 24px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            animation: fadeInUp 2s ease-out 1s both;
        }
        
        .back-button:hover {
            background: #45B7D1;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
.feed-card-class-button { /*currently not used*/
    grid-column: 1 / -1; /* spans both columns */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}
.holiday-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}
.skills-context {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}
.skill-img{
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(90deg,#f3f4f6,#e5e7eb);
}
.skill-title{
    margin: 8px 0 10px;
    font-size: 14px;
    color: #6b7280;
}
.buttons{
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}
.buttons button{
    flex: 1;
    padding: 8px 6px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    transition: all .12s ease;
}
.buttons button:not(:first-child){
    margin-left: 4px;
}
.buttons button.active{
    color: white;
    border-color: transparent;
}
.buttons button.none.active{ background: #9ca3af; } /* grey for none */
.buttons button.Discovering.active{ background: var(--accent-color); }
.buttons button.practicing.active{ background: var(--accent-color); }
.buttons button.proficient.active{ background: var(--accent-color); }
.buttons button.mastered.active{ background: var(--accent-color); }

/* skill image grid: image, title, progress bar, then 2x2 button grid plus mastered */
.skill-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 32px 55px 55px 50px;
    row-gap: 6px;
    column-gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.8) 100%);
}
#athelete-info-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
  padding: 0 8px;
}
#header-left {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#header-right {
  display: flex;
  flex: 4;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
}
/* Skill image displayed at top */
.skill-image {
  grid-column: 1 / -1; /* spans both columns */
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-color-2), var(--accent-color));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(var(--accent-color), 0.3);
}

/* Skill title spans both columns */
.skill-title {
  grid-column: 1 / -1; /* spans both columns */
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
  margin: 2px 0;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  min-height: 2.5em;
  line-height: 1.2;
  hyphens: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border-radius: 8px;
}

/* Progress bar spans both columns */
.level-bar {
  grid-column: 1 / -1; /* spans both columns */
  position: relative;
  width: 100%;
  box-sizing: border-box;
    border: none;
  height: 30px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  margin: 6px 0px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skills-page-container .skill-card-percent-bar,
.skills-page-container .skill-image-grid .level-bar {
    width: min(100%, 320px);
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
}

/* panels become solid buttons without transparency */
.skill-image-grid .panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 6px;
    box-sizing: border-box;
    background-color: var(--light-grey);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    color: #1c325b;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: transform .12s, box-shadow .12s, background-color .12s, outline .12s;
}

/* active state with strong highlighting and visual emphasis */
.skill-image-grid .p1.active { 
  background-color: var(--secondary-color); 
  color: #fff; 
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 12px var(--secondary-color);
  transform: scale(1.05);
  font-weight: 800;
}
.skill-image-grid .p2.active { 
  background-color: var(--secondary-color); 
  color: #fff; 
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 12px var(--secondary-color);
  transform: scale(1.05);
  font-weight: 800;
}
.skill-image-grid .p3.active { 
  background-color: var(--secondary-color); 
  color: #fff; 
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 12px var(--secondary-color);
  transform: scale(1.05);
  font-weight: 800;
}
.skill-image-grid .p4.active { 
  background-color: var(--secondary-color); 
  color: #fff; 
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 12px var(--secondary-color);
  transform: scale(1.05);
  font-weight: 800;
}
.skill-image-grid .p5.active { 
  background-color: var(--secondary-color); 
  color: #fff; 
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 12px var(--secondary-color);
  transform: scale(1.05);
  font-weight: 800;
}

/* bottom panel spans both columns */
.skill-image-grid .p5 {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

/* subtle hover */
.skill-image-grid .panel:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

/* Skill status display for read-only parents view */
.skill-status-display {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.skill-status {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.status-mastered { background: linear-gradient(135deg, #4ade80, #22c55e); color: white; }
.status-proficient { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; }
.status-attempting { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.status-developing { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.status-Discovering { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.status-none { background: linear-gradient(135deg, #6b7280, #4b5563); color: white; }

/* Smaller parent skill cards - end after status display */
.skill-image-grid.parent-skill-card {
    grid-template-rows: auto auto 25px auto;
    row-gap: 6px;
    margin-bottom: 4px;
    padding: 6px 6px 4px 6px;
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
    background: var(--card-bg);
}
.modal-header{
        display: flex;
        z-index: 3;
        justify-content: flex-start;
        align-items: center;
}
.modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 64px;
    padding: 24px;
    width: 20%;
    min-width: fit-content;
    height: 30%;
    overflow-y: hidden;
    z-index: 3;
}
/* Attendance Link Styles */
.modal-link {
    color: var(--primary-color);
    font-size: 1.75rem;
    text-decoration: none;
    font-weight: 900;
    padding-bottom: 40px;
}
.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.header-no-margin {
    margin: 0;
    text-align: left;
}

/* ========================================================================
   RESPONSIVE MEDIA QUERIES - CONSOLIDATED
   Breakpoints organized from largest to smallest for better cascade
   ======================================================================== */

/* ============ 960px and below ============ */
@media (max-width: 960px) {
    body {
        overflow-x: hidden;
    }
    #header-btns p, #header-btns a, #header-btns button {
        display: none;
    }
    .container {
        max-width: calc(100vw - 40px);
        padding: 16px 12px;
    }
    #logo {
        width: 120px;
        padding: 10px 15px;
    }
}

/* ============ 961px-1054px (skills pages) ============ */
@media (min-width: 961px) and (max-width: 1054px) {
    .skills-page-container .grid.skill-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 6px 0;
    }

    .skills-page-container .skill-card-wrapper,
    .skills-page-container .grid.skill-card > .card,
    .skills-page-container .skill-image-grid {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* ============ 801px-960px (skills pages) ============ */
@media (min-width: 801px) and (max-width: 960px) {
    .skills-page-container .grid.skill-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 6px 0;
    }

    .skills-page-container .skill-card-wrapper,
    .skills-page-container .grid.skill-card > .card,
    .skills-page-container .skill-image-grid {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 800px) {
    .grid { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .skills-page-container .grid.skill-card {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
        gap: 12px;
        padding: 6px 0;
    }

    .skills-page-container .skill-card-wrapper,
    .skills-page-container .grid.skill-card > .card {
        width: 100%;
        max-width: 100%;
    }

    /* skill-image-grid smaller rows on narrow screens */
    .skill-image-grid { 
        grid-template-rows: auto 30px 20px 35px 35px 35px; 
        gap: 4px; 
        padding: 4px; 
    }
    
    #tab-container {
        width: calc(100% - 20px);
        margin: 60px 10px 0 10px;
    }
    
    
    .tab-segment {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .container {
        margin: -2px 10px 140px 10px;
        padding: 12px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .bottom-menu-buttons { gap: 10px; }
    .bottom-menu-buttons button { width: 100%; font-size: 0.9rem; }

    .skills-page-container .grid.skill-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 4px 0;
    }
}

@media (max-width: 420px) {
    .skill-title {
        font-size: 9px;
    }
    .skill-image-grid {
        grid-template-rows: auto 25px 25px 30px 30px 30px;
        gap: 3px;
        padding: 3px;
    }
    .skill-image-grid .panel {
        min-height: 12px;
        font-size: 0.65rem;
        padding: 1px 2px;
    }
    /* change heavy grid layouts to single column 
     .grid { grid-template-columns: 1fr; }*/

    /* if you used #classes-grid or #attendance-grid minimum heights can be reduced */
    #attendance-grid > div, #classes-grid > div { min-height: 48px; padding: 8px 4px; }
    
    .container {
        margin: -2px 5px 140px 5px;
        padding: 12px 8px;
        width: calc(100% - 10px);
        border-radius: 15px;
    }
    .tab-text {
        font-size: 0.9rem;
    }
    .active-tab-text {
        font-size: 1.2rem;
    }
    #tab-container {
        width: calc(100% - 40px);
        max-width: calc(100% - 10px);
        margin: 60px 5px 0px 5px;
    }
    
    .skills-page-container {
        margin: -1px 5px 140px 5px;
        border-radius: 0 20px 20px 20px;
        width: calc(100% - 10px);
        padding: 12px 8px;
    }

    .skills-page-container .grid.skill-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 4px 0;
    }
    
    #header {
        padding: 4px 10px;
    }
    
    #logo {
        width: 100px;
        padding: 5px 10px;
    }
    
    #attendance-grid {
        grid-template-columns: 36px 1.2fr 50px 60px 1.5fr 60px;
        font-size: 0.7rem;
        gap: 2px;
    }
    
    #attendance-grid > div {
        padding: 4px 2px;
    }
    
    .attendance-image-size {
        width: 32px;
        height: 32px;
    }
    
    .level-bar {
        height: 16px;
    }
    
    .level-text {
        font-size: 0.6rem;
        padding: 0 3px;
    }
    .centered {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .attendance-checkbox {
        transform: scale(1.0);
    }
    
    .card {
        padding: 8px;
        border-radius: 6px;
    }
    
    /* Make menu bar thinner and icons/text smaller for phone */
    #coaches-menu-container {
        height: 60px;
        padding-bottom: 4px;
    }
    
    #coaches-menu {
        margin: 4px auto;
        padding: 8px 16px 0px 16px;
    }
    
    .coaches-menu-icon {
        width: 32px;
        height: 32px;
    }
    
    .coaches-menu-text {
        font-size: 0.85rem;
        font-weight: 500;
    }
    
    .coaches-menu-logo {
        width: 100px;
    }
}   



/* ========== Parent Community Feed Page Styles ========== */

.onboarding-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.onboarding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.onboarding-button {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.onboarding-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5722, #ff9800);
}

.onboarding-button:active {
    transform: scale(0.98);
}

.onboarding-card .feed-card-info {
    color: white;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-day {
    background: #fef3c7;
    color: #92400e;
}

.badge-time {
    background: #dbeafe;
    color: #1e40af;
}

/* ======================================================================== */
/* MIGRATED STYLES FROM EJS FILES
   ======================================================================== */

/* ========== Profile Page Styles ========== */
/* Gamified Athlete Selector */
.athlete-selector-container {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.athlete-selector-container::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;
    opacity: 0.2;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.athlete-selector-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 16px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.athlete-selector {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.athlete-selector:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.athlete-selector:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(148, 204, 173, 0.3);
}

.athlete-carousel-selector {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "prev track next";
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.athlete-carousel-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.athlete-carousel-side-prev {
    grid-area: prev;
    justify-content: flex-start;
}

.athlete-carousel-side-next {
    grid-area: next;
    justify-content: flex-end;
}

.athlete-carousel-side-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-color-2);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.athlete-carousel-side-preview.is-hidden {
    visibility: hidden;
}

.athlete-carousel-side-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athlete-carousel-track {
    grid-area: track;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    overflow: hidden;
    padding: 4px 2px;
}

.athlete-carousel-track::-webkit-scrollbar {
    display: none;
}

.athlete-carousel-item {
    min-width: 220px;
    max-width: 260px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid var(--accent-color-2);
    border-radius: 14px;
    background: var(--white);
}

.athlete-carousel-item.is-visible {
    display: flex;
}

.athlete-carousel-item.active {
    border-color: var(--primary-color);
}

.athlete-carousel-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.athlete-carousel-name {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.athlete-carousel-nav {
    width: 52px;
    height: 52px;
    border: 1px solid var(--accent-color-2);
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.athlete-carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.athlete-carousel-empty {
    width: 100%;
    text-align: center;
    color: var(--text-color);
    padding: 10px 0;
}

/* Athlete Cards Container */
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.athlete-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--card-bg) 100%);
    border: 3px solid var(--accent-color-2);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.athlete-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
}

.athlete-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.athlete-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(var(--accent-color), 0.2);
    border-color: var(--accent-color);
}

.athlete-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.athlete-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.athlete-card:hover .athlete-avatar {
    transform: scale(1.1) rotate(5deg);
}

.athlete-info h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
}

.athlete-badge-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.badge-name {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.athlete-progress {
    margin: 16px 0;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-percentage {
    color: var(--secondary-color);
}

.athlete-progress .level-bar {
    height: 24px;
    border: 2px solid var(--accent-color);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.athlete-progress .level-fill {
    background: linear-gradient(90deg, var(--green), var(--light-blue), var(--purple));
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(var(--secondary-color), 0.4);
}

.athlete-progress .level-text {
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
}

.athlete-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.athlete-action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-skills-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(28, 50, 91, 0.3);
}

.view-skills-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 50, 91, 0.4);
    background: linear-gradient(135deg, var(--light-blue), var(--primary-color));
}

.view-classes-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(241, 126, 61, 0.3);
}

.view-classes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 126, 61, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.no-athletes-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(145deg, var(--white) 0%, var(--card-bg) 100%);
    border: 2px dashed var(--accent-color-2);
    border-radius: 16px;
    color: var(--text-color);
}

.no-athletes-message h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* Celebration stars for high achievers */
.athlete-card.high-achiever::after {
    content: '🌟';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

/* ========== Account Confirmation Page Styles ========== */
.account-confirmation :root { 
    --bg:#f7faf7; 
    --card:#ffffff; 
    --accent:#16a34a; 
    --muted:#6b7280; 
    font-family: var(--font-family, 'Baloo 2', 'Segoe UI', Arial, sans-serif); 
}

.account-confirmation body { 
    margin:0; 
    min-height:100vh; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    background:var(--bg); 
    color:#111827; 
}

.account-confirmation .card { 
    background:var(--card); 
    padding:32px; 
    border-radius:12px; 
    box-shadow:0 6px 20px rgba(2,6,23,0.08); 
    text-align:center; 
    width:min(520px,92%); 
}

.account-confirmation .icon { 
    width:84px; 
    height:84px; 
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    border-radius:999px; 
    background:rgba(22,163,74,0.12); 
    color:var(--accent); 
    margin-bottom:18px; 
    font-size:44px; 
}

.account-confirmation h1 { 
    margin:0 0 8px 0; 
    font-size:20px; 
}

.account-confirmation p { 
    margin:0 0 18px 0; 
    color:var(--muted); 
}

.account-confirmation .actions { 
    display:flex; 
    gap:12px; 
    justify-content:center; 
    align-items:center; 
    margin-top:8px; 
}

.account-confirmation .btn { 
    padding:10px 16px; 
    border-radius:8px; 
    border:0; 
    cursor:pointer; 
    font-weight:600; 
}

.account-confirmation .primary { 
    background:var(--accent); 
    color:#fff; 
    text-decoration:none; 
}

.account-confirmation .link { 
    background:transparent; 
    color:var(--muted); 
    text-decoration:underline; 
    border:0; 
}

.account-confirmation .count { 
    font-weight:700; 
    color:var(--accent); 
}

/* ========== Parents Classes Page Styles ========== */
.child-selector-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.child-selector {
    padding: 8px 12px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    min-width: 140px;
    max-width: 200px;
}

.child-selector:hover {
    border-color: #5a6fd8;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

#selected-child-info {
    margin-bottom: 20px;
}

/* ========== Badge Switcher Styles ========== */
.badge-switcher-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    margin: 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    overflow: visible;
}

.badge-switcher-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
}

.badge-progress-section {
    width: 100%;
    z-index: 3;
}

.status-counts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: white;
}

.status-item {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-align: center;
}

.status-item.status-mastered {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

.badge-progress-bar {
    width: 100%;
    max-width: 320px;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.15);
    border: none !important;
    border-radius: 14px;
    position: relative;
    z-index: 2;
}
.badge-progress-bar .level-fill {
    height: 100%;
    min-height: 24px;
    border-radius: 16px;
}

.badge-progress-bar .level-text {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.badge-switcher-container::before {
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.badge-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 3;
}

.badge-arrow:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-arrow:active:not(.disabled) {
    transform: scale(0.95);
}

.badge-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-info {
    flex: 1;
    text-align: center;
    color: white;
    z-index: 3;
}

.badge-name-display {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.current-badge-indicator {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.child-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.child-details h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.badge-progress {
    margin: 10px 0;
}

.badge-progress span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #667eea;
}

.child-skills-link {
    display: inline-block;
    margin-top: 18px;
}

#classes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.class-item-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.class-date-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    min-width: 60px;
}

.class-details {
    flex: 1;
}

.class-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.class-schedule {
    margin: 5px 0;
    color: #666;
    font-weight: bold;
}

.class-coach {
    margin: 5px 0 0 0;
    color: #667eea;
    font-style: italic;
}

.class-actions {
    display: flex;
    gap: 10px;
}

.no-children-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-children-message h3 {
    color: #333;
    margin-bottom: 10px;
}

#class-info-header {
    position: relative;
}

/* ========== Parents Skills Page Tab Container ========== */
#tab-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: calc(100% - 40px);
    max-width: 880px;
    margin: 60px auto 0 auto;
    padding: 0px;
}

#bread-crum-container {
    display: flex;
    color: var(--text-color);
    justify-self: flex-start;
    align-items: center;
    padding: 0px;
    font-size: 1.2rem;
    position: relative;
    border-radius: 0;
    z-index: 10;
    width: fit-content;
}

.tab-segment {
    background: var(--card-bg);
    opacity: 0.7;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    margin-right: 4px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color-2);
    border-bottom: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.tab-segment:first-child {
    margin-left: 0;
}

.tab-segment:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.tab-segment.active-tab {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--white) 50%, var(--card-bg) 100%);
    opacity: 1;
    font-weight: 700;
    border: 2px solid var(--accent-color-2);
    border-bottom: none;
    z-index: 11;
    transform: translateY(2px);
    border-radius: 0;
    margin-bottom: -2px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.tab-segment.active-tab::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--white) 50%, var(--card-bg) 100%);
}

.skills-page-container {
    margin-top: -2px;
    border-radius: 0 24px 24px 24px;
    border-top-left-radius: 0;
}

/* ========== Director Tables Shared Styles ========== */
.athletes-container,
.classes-container,
.coaches-container,
.parents-container {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2rem;
    color: #333;
}

.stats {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.athletes-table,
.classes-table,
.coaches-table,
.parents-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #4a5568;
    color: white;
}

thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f7fafc;
}

tbody td {
    padding: 15px;
    color: #4a5568;
}

.athlete-profile,
.coach-profile,
.parent-profile,
.class-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.athlete-avatar,
.coach-avatar,
.parent-avatar,
.class-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.class-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.athlete-info,
.coach-info,
.parent-info,
.class-details {
    display: flex;
    flex-direction: column;
}

.athlete-name,
.coach-name,
.parent-name,
.class-name {
    font-weight: 600;
    color: #2d3748;
}

.athlete-age,
.coach-email,
.parent-email,
.class-type {
    font-size: 0.85rem;
    color: #718096;
}

.badge-container {
    display: flex;
    align-items: center;
    gap: 8px;
}


.progress-bar {
    width: 60%;
    max-width: 500px;
    min-width: 220px;
    height: 22px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 32px auto 32px auto;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(44,90,160,0.08);
    position: relative;
    left: 0;
    right: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    transition: width 0.3s;
    border-radius: 12px 0 0 12px;
    min-width: 8px;
}

.badge-level {
    background: #bee3f8;
    color: #2c5282;
}

.badge-club {
    background: #fef3c7;
    color: #92400e;
}

.badge-classes,
.badge-athletes {
    background: #d1fae5;
    color: #065f46;
}

.badge-primary {
    background: #bee3f8;
    color: #2c5282;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.status-active {
    color: #48bb78;
}

.status-inactive {
    color: #cbd5e0;
}

.coach-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #4299e1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.no-athletes,
.no-classes,
.no-coaches,
.no-parents {
    padding: 60px 20px;
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* ========== Messages/Feedback Page Styles ========== */
.feedback-title {
    font-size: 1.8rem !important;
}

.feedback-subtitle {
    font-size: 1rem !important;
}

.intro-text {
    font-size: 0.9rem !important;
}

.promise-text {
    font-size: 0.8rem !important;
}

.feedback-type-card {
    min-width: 120px !important;
    padding: 0.8rem !important;
}

.type-emoji {
    font-size: 1.5rem !important;
}

.type-text {
    font-weight: 500 !important;
    font-size: 0.85rem !important;
}

.human-label {
    font-size: 1rem !important;
}

.feedback-textarea {
    font-size: 0.9rem !important;
    min-height: 100px !important;
}

.optional-label {
    font-size: 0.8rem !important;
}

.optional-input {
    padding: 0.6rem !important;
    font-size: 0.9rem !important;
}

.mood-title {
    font-size: 1rem !important;
}

.mood-btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
}

.celebration-submit-btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
}

.intro-card {
    padding: 1.2rem !important;
}

.form-section {
    padding: 1.5rem !important;
}

/* ========== Role Switcher Styles ========== */
.role-switcher {
    margin-left: 15px;
}

.role-switcher .btn {
    border-radius: 20px;
    padding: 5px 15px;
}

.role-option {
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-option:hover {
    background-color: #f8f9fa;
}

.role-option.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

/* ========== Role Selection Page Styles ========== */
.role-selection-page body {
    font-family: var(--font-family, 'Baloo 2', 'Segoe UI', Arial, sans-serif);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-selection-page .container {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.role-selection-page .logo {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.role-selection-page h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.role-selection-page .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.role-selection-page .user-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.role-selection-page .user-info h2 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 20px;
}

.role-selection-page .user-info p {
    margin: 0;
    color: #666;
}

.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.role-btn {
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.role-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.role-icon {
    font-size: 24px;
}

.role-btn.parent {
    border-color: #28a745;
    color: #28a745;
}

.role-btn.parent:hover {
    background: #28a745;
}

.role-btn.athlete {
    border-color: #ffc107;
    color: #ffc107;
}

.role-btn.athlete:hover {
    background: #ffc107;
    color: #333;
}

.role-btn.coach {
    border-color: #dc3545;
    color: #dc3545;
}

.role-btn.coach:hover {
    background: #dc3545;
}

.footer {
    color: #999;
    font-size: 14px;
    margin-top: 20px;
}

.remember-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #666;
}

.remember-choice input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* ========== Onboarding Page Styles ========== */
.onboarding-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.onboarding-step {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.onboarding-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.step-header {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 2em;
}

.step-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-image {
    max-width: 300px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

.onboarding-btn {
    background: linear-gradient(45deg, #2c5aa0, #4CAF50);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

.onboarding-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.onboarding-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #2c5aa0;
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
}

.skill-demo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.skill-level {
    padding: 8px 16px;
    margin: 5px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-level.Discovering { background: #ffebee; color: #c62828; }
.skill-level.developing { background: #fff3e0; color: #ef6c00; }
.skill-level.attempting { background: #fff8e1; color: #f57f17; }
.skill-level.proficient { background: #e8f5e8; color: #2e7d32; }
.skill-level.mastered { background: #e3f2fd; color: #1565c0; }

.skill-level:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-demo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.badge-item {
    text-align: center;
    margin: 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: #2c5aa0;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.notification-preview {
    background: #f5f5f5;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: left;
}
.hidden {
	display: none !important;
}

 
/* FIX: Added missing closing brace to restore all CSS rules */

/* =========================================================
   THE "TAKE A TOUR" HERO CARD (One-Time Display)
   ========================================================= */

.tour-hero-card {
    background: linear-gradient(135deg, #FF6B6B 0%, #f17e3d 50%, #fdb357 100%) !important; 
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 12px 30px rgba(241, 126, 61, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 20px 24px !important;
}

/* Make text bright white to contrast the orange/pink background */
.tour-hero-card .tour-title {
    color: #ffffff !important;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.tour-hero-card .tour-body {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem;
    font-weight: 500;
}

/* The Glossy Shine Animation */
.tour-hero-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: tourShine 5s infinite;
}

@keyframes tourShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* The Bouncing Icon Animation */
.pulse-animation {
    animation: tourBounce 2.5s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
    border: 3px solid white !important;
    width: 64px !important; 
    height: 64px !important;
}

@keyframes tourBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
}

/* The Start Button Pill */
.tour-action-pill {
    background: #ffffff;
    color: #f17e3d;
    font-weight: 900;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.tour-hero-card:hover .tour-action-pill {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Container holding both Tumbles and the bubble */
.npc-dialogue-panel {
    display: flex;
    align-items: center;
    margin: 90px auto 30px auto;
    padding: 0 15px;
    max-width: 600px;
    position: relative;
}

/* The glowing circular container */
.tumbles-avatar-container {
    flex-shrink: 0;
    width: 128px;  
    height: 128px; 
    border-radius: 50%; 
    overflow: hidden; 
    background: linear-gradient(135deg, #FFD166, #FF9F1C); 
    z-index: 2;
    position: relative;
    border: 3px solid #ffffff; 
    /* NEW: This triggers the 4-second continuous pulsing glow */
    animation: breathingGlow 4s infinite ease-in-out; 
}

/* The actual character image inside */
.tumbles-3d-avatar {
    width: 100%; /* Fills the circular container exactly */
    height: 100%;
    object-fit: cover; /* Ensures the image doesn't stretch or squish */
    object-position: center top; /* Keeps his face centered if the image is tall */
    display: block;
}

/* The 3D tactile text container */
.dialogue-bubble-3d {
    flex-grow: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
    margin-left: -20px; 
    padding: 18px 20px 18px 35px; 
    border-radius: 24px;
    /* NEW: Layered shadows for ultimate 3D depth */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08), /* The wide ambient room shadow */
        0 5px 15px rgba(0, 0, 0, 0.04),  /* The tight core shadow */
        inset 0 -4px 0 rgba(0,0,0,0.04), /* Inside bottom lip */
        inset 0 2px 4px rgba(255,255,255,1); /* Inside top highlight */
}

/* Styling the day and date to look like UI metadata */
.date-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #8CA0B3;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

/* The actual quote/mantra */
.mantra-text {
    font-size: 1.15rem;
    color: #2D3748;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}
@keyframes breathingGlow {
    0%   { box-shadow: 0 8px 15px rgba(255, 159, 28, 0.3), inset 0 4px 6px rgba(255, 255, 255, 0.6); }
    50%  { box-shadow: 0 12px 30px rgba(255, 159, 28, 0.6), inset 0 4px 6px rgba(255, 255, 255, 0.8); }
    100% { box-shadow: 0 8px 15px rgba(255, 159, 28, 0.3), inset 0 4px 6px rgba(255, 255, 255, 0.6); }
}

/* --- THE 3D CARDS --- */
.smart-feed-card-container {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
    border-radius: 24px; /* Soft, friendly corners */
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid #eef2f5; /* A crisp, clean rim */
    
    /* The magic 3D floating effect */
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.06),   /* Soft ambient room shadow */
        0 4px 8px rgba(0, 0, 0, 0.04),     /* Tight contact shadow */
        inset 0 -5px 0 rgba(0,0,0,0.03),   /* Creates the thick bottom edge */
        inset 0 3px 6px rgba(255,255,255,1); /* Bright overhead lighting highlight */
        
    display: flex;
    align-items: center;
    gap: 16px;
    
    /* Smooth animation for the dismiss fade and the tap effect */
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
}

/* The tactile "squish" when a parent taps the card */
.smart-feed-card-container:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.05),
        inset 0 -2px 0 rgba(0,0,0,0.03), /* Flattens the bottom edge when pressed */
        inset 0 2px 4px rgba(255,255,255,1);
}

/* Ensure the layout respects the flexbox structure */
.smart-feed-card-left { flex-shrink: 0; }
.smart-feed-card-middle { flex-grow: 1; }
.smart-feed-card-right { flex-shrink: 0; text-align: right; }

/* Styling the title and text for readability and warmth */
.smart-feed-card-title {
    font-size: 1.1rem;
    color: #2D3748;
    display: block;
    margin-bottom: 4px;
}

.smart-feed-card-body-text {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}
/* --- THE CARD ICONS --- */
.feed-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px; /* High-end rounded square */
    object-fit: cover;
    background-color: #f0f4f8; /* Soft placeholder backing */
    border: 3px solid #ffffff; 
    box-shadow: 0 6px 12px rgba(0,0,0,0.08); /* Pops the icon off the card */
}
/* --- THE GEM BUTTONS & BADGES --- */
.smart-feed-card-action-pill,
.tour-action-pill,
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px; /* Perfectly round pill shape */
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    
    /* 3D Gem Depth Effect */
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.15),         /* Drop glow */
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),   /* Thick colored bottom rim */
        inset 0 2px 4px rgba(255, 255, 255, 0.6); /* Shiny glass top */
        
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Makes white text legible */
    transition: transform 0.1s ease, filter 0.2s ease;
}

/* The interactive button press */
.smart-feed-card-action-pill:active,
.tour-action-pill:active {
    transform: translateY(3px);
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2), 
        inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

/* Coloring the Specific Gems */
.smart-feed-card-action-pill {
    /* Bright Game Blue */
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.3), inset 0 -4px 0 rgba(0, 169, 194, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.tour-action-pill {
    /* Premium Gold/Orange for the "Quest" */
    background: linear-gradient(180deg, #FFD166 0%, #FF9F1C 100%);
    box-shadow: 0 4px 10px rgba(255, 159, 28, 0.3), inset 0 -4px 0 rgba(204, 119, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.badge-day {
    /* Vibrant Orange */
    background: linear-gradient(180deg, #FF9A9E 0%, #FECFEF 100%);
    background: linear-gradient(180deg, #FFB75E 0%, #ED8F03 100%);
    box-shadow: 0 4px 8px rgba(237, 143, 3, 0.2), inset 0 -3px 0 rgba(190, 110, 0, 0.4), inset 0 2px 3px rgba(255,255,255,0.5);
    margin-right: 4px;
}

.badge-time {
    /* Soft UI Grey-Blue */
    background: linear-gradient(180deg, #b2bed5 0%, #8CA0B3 100%);
    box-shadow: 0 4px 8px rgba(140, 160, 179, 0.2), inset 0 -3px 0 rgba(100, 120, 135, 0.4), inset 0 2px 3px rgba(255,255,255,0.5);
}

/* Styling the little X dismiss button perfectly */
.smart-feed-card-dismiss-btn {
    background: #edf2f7;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #a0aec0;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* --- ACTIVE MISSION CARDS --- */
.active-mission-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 15px;
    border: 2px solid #eef2f5;
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* 3D Floating Effect */
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.05),   
        0 4px 6px rgba(0, 0, 0, 0.03),     
        inset 0 -4px 0 rgba(0,0,0,0.03),   
        inset 0 2px 4px rgba(255,255,255,1); 
        
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.active-mission-card:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04), inset 0 -2px 0 rgba(0,0,0,0.03);
}

/* 3D Class Avatar */
.mission-icon-container { flex-shrink: 0; }
.mission-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Text & Badges */
.mission-details { flex-grow: 1; }
.mission-title {
    font-size: 1.15rem;
    color: #2D3748;
    margin: 0 0 6px 0;
    font-weight: 800;
}
.mission-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.class-coach {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
    font-weight: 600;
}

/* Right Side: Date & Hype */
.mission-status {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.date-callout {
    background: linear-gradient(135deg, #1c325b, #2a4a82); /* Using your primary color */
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), 0 4px 8px rgba(28, 50, 91, 0.3);
}
.hype-countdown {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #fdb357; /* Using your accent color */
    letter-spacing: 0.5px;
}

/* --- BRONT'S MENTOR BRIEFING --- */
.mentor-briefing-container {
    display: flex;
    align-items: center;
    margin: 25px 0 15px 0;
}
.mentor-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid #8D5524; /* Fox/Bear Brown */
    background: linear-gradient(135deg, #A67B5B, #8D5524); /* Woodsy Bear tones */
    animation: none; /* No pulse for Bront, he is the calm anchor */
}
.mentor-bubble {
    margin-left: -15px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
}
.mentor-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #8D5524;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
}
.mentor-quote {
    font-size: 0.95rem;
    color: #2D3748;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

/* --- THE JOURNEY MAP --- */
.journey-map-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,1), 0 10px 20px rgba(0,0,0,0.06);
}
.journey-title {
    text-align: center;
    color: #1c325b;
    margin-bottom: 25px;
    font-weight: 800;
}

.journey-timeline {
    position: relative;
    padding-left: 20px;
}

/* The thick winding path */
.timeline-path {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 42px; /* Centers the line under the icons */
    width: 6px;
    background: #edf2f7;
    border-radius: 10px;
    z-index: 1;
}

.journey-node {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}
.journey-node:last-child { margin-bottom: 0; }

/* The Base 3D Node */
.node-icon-wrapper {
    background: #ffffff;
    padding: 4px; /* White gap around the node to break the path line */
    border-radius: 50%;
}
.node-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1rem;
    /* Premium 3D Gem setup */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 2px 3px rgba(255,255,255,0.6);
}

.node-content h5 {
    margin: 0 0 2px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2D3748;
}
.node-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #718096;
}

/* --- NODE STATES --- */

/* 1. Completed (Gold & Checkmark) */
.status-completed .node-icon {
    background: linear-gradient(180deg, #FFD166, #FF9F1C);
}

/* 2. Current (Pulsing Primary Color) */
@keyframes mapPulse {
    0% { box-shadow: 0 0 0 0 rgba(28, 50, 91, 0.4), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 2px 3px rgba(255,255,255,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(28, 50, 91, 0), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 2px 3px rgba(255,255,255,0.6); }
    100% { box-shadow: 0 0 0 0 rgba(28, 50, 91, 0), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 2px 3px rgba(255,255,255,0.6); }
}
.status-current .node-icon-wrapper {
    transform: scale(1.2); /* Makes the current week visibly larger! */
}
.status-current .node-icon {
    background: linear-gradient(180deg, #4facfe 0%, #007BFF 100%);
    animation: mapPulse 2s infinite;
}
.status-current .node-content h5 { color: #007BFF; } /* Highlights the text */

/* 3. Future (Locked Silver) */
.status-future .node-icon {
    background: linear-gradient(180deg, #e2e8f0, #cbd5e0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05), inset 0 -2px 0 rgba(0,0,0,0.1), inset 0 2px 3px rgba(255,255,255,0.8);
    color: #a0aec0;
}
.status-future .node-content h5 { color: #a0aec0; }

/* 4. Special Event (Boss Battle / Testing) */
.status-special .node-icon-wrapper {
    transform: scale(1.1);
}
.status-special .node-icon {
    background: linear-gradient(180deg, #AF52DE, #6F42C1); /* Purple magic glow */
}
.status-special .node-content h5 { color: #6F42C1; }

/* --- THE TOKEN ROSTER (Carousel Overrides) --- */

/* 1. Hide the clunky arrows and side previews entirely */
.athlete-carousel-side { display: none !important; }

/* 2. Create a buttery-smooth native swipe area */
/* Lock the wrapper so it can NEVER push the screen wider than 100% */
.athlete-carousel-selector {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Traps the overflow inside this box */
    box-sizing: border-box;
}

/* 2. The scrollable track */
.athlete-carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 10px 25px 10px; 
    
    /* Smooth mobile swiping */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    
    /* CRITICAL FIX: Use flex-start instead of center so the left side never gets cut off */
    justify-content: flex-start; 
    width: 100%;
    box-sizing: border-box;
}

.athlete-carousel-track::-webkit-scrollbar { 
    display: none; 
}

/* 3. The 3D Character Tokens */
.athlete-carousel-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6; /* Dims unselected kids */
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.athlete-carousel-item .athlete-carousel-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid #cbd5e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

.athlete-carousel-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #718096;
}

/* 4. The "Equipped" Hero State */
.athlete-carousel-item.active {
    opacity: 1;
    transform: scale(1.1); /* Levitates the active child */
}

.athlete-carousel-item.active .athlete-carousel-avatar {
    border: 4px solid var(--accent-color);
    box-shadow: 
        0 0 0 4px rgba(253, 179, 87, 0.3), 
        0 12px 20px rgba(0,0,0,0.15);
}

.athlete-carousel-item.active .athlete-carousel-name {
    color: var(--primary-color);
    font-weight: 800;
}

/* --- PREMIUM HOVER EFFECTS (Desktop) --- */
/* Target only the unselected items */
.athlete-carousel-item:not(.active):hover {
    opacity: 0.9;
    transform: scale(0.98) translateY(-5px); /* Gentle levitation */
    cursor: pointer;
}

.athlete-carousel-item:not(.active):hover .athlete-carousel-avatar {
    border-color: var(--accent-color); /* A hint of the active orange glow */
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Ensure the text brightens on hover too */
.athlete-carousel-item:not(.active):hover .athlete-carousel-name {
    color: var(--primary-color);
}


/* --- QUEST LINE (Program Selector) --- */
.quest-line-container {
    margin: 15px 0 25px 0;
    padding: 0 10px;
}

.quest-tiles {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.quest-tile {
    flex: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
    border-radius: 16px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid #eef2f5;
    
    /* 3D unpressed state */
    box-shadow: 0 6px 12px rgba(0,0,0,0.05), inset 0 -4px 0 rgba(0,0,0,0.05);
    transition: all 0.15s ease;
}

.quest-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.quest-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* The Tactile Tap */
.quest-tile:active {
    transform: translateY(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05), inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* The "Equipped" Quest State */
.quest-tile.active-quest {
    background: linear-gradient(180deg, var(--light-blue) 0%, #4facfe 100%);
    border-color: #4facfe;
    transform: translateY(-4px); /* Levitates higher than the rest */
    box-shadow: 
        0 12px 20px rgba(79, 172, 254, 0.3), 
        inset 0 -4px 0 rgba(0, 123, 255, 0.3), 
        inset 0 2px 4px rgba(255,255,255,0.6);
}

.quest-tile.active-quest .quest-name {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}


/* --- PREMIUM STATS CARD --- */
.premium-stats-card {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), inset 0 2px 4px rgba(255,255,255,1);
    border: 2px solid #eef2f5;
    margin-bottom: 25px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hero-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.hero-rank {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 12px;
    background: #f0f4f8;
    color: #4a5568;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* 3D Energy Meter */
.xp-container { margin-bottom: 25px; }
.xp-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}
.xp-title { color: #718096; }
.xp-percentage { color: var(--accent-color); font-weight: 800; }

.xp-track-3d {
    height: 18px;
    background: #e2e8f0;
    border-radius: 20px;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.15); /* Deep inset shadow */
    overflow: hidden;
    position: relative;
}

.xp-fill-3d {
    height: 100%;
    background: linear-gradient(90deg, #FFD166, #FF9F1C);
    border-radius: 20px;
    position: relative;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The glossy reflection on top of the XP bar */
.xp-glass-shine {
    position: absolute;
    top: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
    border-radius: 20px 20px 0 0;
}

/* The 3D Action Button */
.btn-3d-action {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(180deg, var(--light-blue) 0%, #4facfe 100%);
    color: white;
    padding: 14px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 
        0 6px 15px rgba(79, 172, 254, 0.4),
        inset 0 -4px 0 rgba(0, 123, 255, 0.3),
        inset 0 2px 4px rgba(255,255,255,0.6);
    transition: all 0.1s ease;
}

.btn-3d-action:active {
    transform: translateY(4px);
    box-shadow: 0 2px 5px rgba(79, 172, 254, 0.4), inset 0 -1px 0 rgba(0, 123, 255, 0.3);
}

/* --- GAMER PROFILE CARD --- */
.gamer-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06), inset 0 2px 4px rgba(255,255,255,1);
    border: 2px solid #e2e8f0;
    margin-bottom: 25px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

/* The 3D Avatar Frame */
.avatar-frame-3d {
    position: relative;
    flex-shrink: 0;
}

.avatar-frame-3d img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Classic RPG UI: Overlapping Gem */
.rank-gem {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #FFD166, #FF9F1C);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.profile-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.hero-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
}

.hero-rank {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 12px;
    background: #ffffff;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05), inset 0 2px 2px rgba(255,255,255,1);
    border: 1px solid #e2e8f0;
}

/* ========================================= */
/* GLOBAL PIXAR GAME TITLES (Poppins Upgrade)*/
/* ========================================= */
    .pixar-title-global {
        font-family: 'Poppins', sans-serif !important;
        font-weight: 900 !important;
        font-size: 2.4rem !important;
        color: #ffffff !important; 
        text-transform: uppercase !important;
        
        /* THE SECRET SAUCE: Tight kerning makes Poppins look premium */
        letter-spacing: -1px !important; 
        
        -webkit-text-stroke: 2.5px #1e293b !important; 
        text-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3) !important; 
        
        margin-bottom: 20px !important;
        text-align: center !important;
        line-height: 1.1 !important;
    }

    .pixar-title-global .pixar-text-gold {
        color: #FFD700 !important;
        -webkit-text-stroke: 2.5px #B8860B !important;
    }
/* ========================================= */

/* ========================================= */
/* GLOBAL PREMIUM RARITY CARD STYLES         */
/* ========================================= */

    /* --- THE RARE UPGRADE --- */
    .card-rare { background: linear-gradient(145deg, #f0f8ff 0%, #e6f2ff 100%) !important; border: 2px solid #2196F3 !important; box-shadow: 0 0 15px rgba(33, 150, 243, 0.3) !important; }
    .img-rare { filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.6)) !important; }

    /* --- THE LEGENDARY UPGRADE --- */
    .card-legendary { background: linear-gradient(145deg, #fffbf0 0%, #fff2cc 100%) !important; border: 3px solid #FFD700 !important; animation: legendaryPulse 2s infinite alternate !important; }
    .img-legendary { filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.9)) brightness(1.1) !important; animation: legendaryFloat 3s ease-in-out infinite !important; }

    @keyframes legendaryPulse { 
        0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2) !important; } 
        100% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.4) !important; border-color: #FFA500 !important; } 
    }
    @keyframes legendaryFloat { 
        0%, 100% { transform: translateY(0) scale(1.05) !important; } 
        50% { transform: translateY(-8px) scale(1.05) !important; } 
    }

/* ========================================= */

/* ========================================= */
/* GLOBAL APP LAYOUT SKELETON                */
/* ========================================= */
    .tumble-app-wrapper {
        /* The 90px/120px usually feels a bit tighter for mobile than 110/140 */
        padding-top: calc(120px + env(safe-area-inset-top)) !important; 
        padding-bottom: calc(180px + env(safe-area-inset-bottom)) !important; 
        
        /* Structural Anchors (Keep these!) */
        position: relative !important;
        z-index: 1;
        
        /* Boundaries */
        max-width: 800px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
/* ========================================= */

/* ========================================= */
/* PREMIUM GLOBAL TOP BAR (Lag-Free Faux-Glass)*/
/* ========================================= */
    #tumble-top-bar {
        position: fixed; top: 0; left: 0; width: 100%; box-sizing: border-box; 
        /* AAA FIX: Replaced laggy blur with a solid, premium gradient */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
        border-bottom: 2px solid #fff; display: flex; justify-content: space-between; align-items: center;
        padding: calc(12px + env(safe-area-inset-top)) 20px 12px 20px; 
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06); z-index: 9000;
        transition: background 0.3s, border-color 0.3s;
    }

    /* Left Side: Role/Profile Switcher Pill */
    .role-switcher-pill {
        display: flex; align-items: center; background: #ffffff; border: 3px solid #fff;
        border-radius: 30px; padding: 6px 16px 6px 6px; 
        box-shadow: 0 6px 15px rgba(0,0,0,0.06), inset 0 2px 0 rgba(255,255,255,0.8);
        cursor: pointer; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative;
    }
    .role-switcher-pill:active { transform: scale(0.95); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

    .role-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 10px; border: 2px solid #e2e8f0; background: #f8fafc; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
    .role-text-zone { display: flex; flex-direction: column; justify-content: center; margin-right: 8px; }
    
    .role-name { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 900; color: #1e293b; line-height: 1; margin-bottom: 2px; }
    .role-badge { font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 10px; display: inline-block; }

    /* Role Colors */
    .role-parent { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
    .role-coach { background: #ffedd5; color: #ea580c; border: 1px solid #fed7aa; }
    .role-director { background: #fef08a; color: #a16207; border: 1px solid #fde047; }
    .role-kid { background: #f3e8ff; color: #9333ea; border: 1px solid #d8b4fe; box-shadow: 0 0 10px rgba(147, 51, 234, 0.2); }

    .role-caret { font-size: 0.7rem; color: #94a3b8; font-weight: bold; }

    /* ========================================= */
    /* CENTER ZONES (Context Badge OR Quick Actions) */
    /* ========================================= */
    .context-badge {
        position: absolute; left: 50%; transform: translateX(-50%);
        /* AAA FIX: Solid background, no blur math! */
        background: #ffffff; 
        padding: 5px 14px 5px 6px; border-radius: 20px; border: 2px solid #fff;
        font-family: 'Poppins', sans-serif; display: flex; align-items: center; gap: 8px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.06), inset 0 2px 0 rgba(255,255,255,0.8); 
        pointer-events: none; z-index: 0;
    }
    .context-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }
    .context-label { font-size: 0.65rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
    .context-name { color: #0f172a; font-size: 0.85rem; font-weight: 900; }

    .director-quick-actions { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
    
    .btn-quick-action {
        background: #9333ea; color: white; border: none; padding: 8px 16px; border-radius: 20px;
        font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 0.9rem;
        cursor: pointer; box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3), inset 0 2px 0 rgba(255,255,255,0.2); transition: all 0.2s;
    }
    .btn-quick-action:hover { background: #a855f7; transform: translateY(-2px); }
    .btn-quick-action:active { transform: translateY(2px); box-shadow: 0 0 0 transparent; }

    /* ========================================= */
    /* AAA TOP BAR CLUB BADGE (RIGHT SIDE)       */
    /* ========================================= */
    .club-badge-3d {
        display: flex; align-items: center; gap: 10px; background: linear-gradient(145deg, #ffffff, #f8fafc); border: 2px solid #fff;
        border-radius: 24px; padding: 4px 4px 4px 14px; text-decoration: none;
        box-shadow: 0 6px 15px rgba(0,0,0,0.06), inset 0 2px 0 #fff; transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer; transform-origin: center right; z-index: 10;
    }
    .club-badge-3d:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.1), inset 0 2px 0 #fff; }
    .club-badge-3d:active { transform: translateY(4px) scale(0.98); box-shadow: 0 0 0 transparent; }

    .club-badge-name { font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 900; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; text-align: right; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
    .club-badge-3d:hover .club-badge-name { color: #1e293b; }

    .club-badge-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; background: #fff; border: 2px solid #e2e8f0; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

    .club-badge-3d.active-page { background: #e0f2fe; border-color: #38bdf8; box-shadow: inset 0 2px 6px rgba(0,0,0,0.1); transform: translateY(2px); pointer-events: none; }
    .club-badge-3d.active-page .club-badge-name { color: #0284c7; }
    .club-badge-3d.active-page .club-badge-logo { border-color: #38bdf8; box-shadow: 0 0 15px rgba(56, 189, 248, 0.5); }

    /* ========================================= */
    /* THE UNIFIED DROPDOWN MENU                 */
    /* ========================================= */
    .profile-dropdown-menu {
        position: absolute; top: 110%; left: 0; width: 280px;
        background: linear-gradient(145deg, #ffffff, #f8fafc);
        border: 3px solid #fff; border-radius: 28px; padding: 15px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.2), inset 0 4px 0 #fff;
        opacity: 0; transform: translateY(-15px) scale(0.95); pointer-events: none;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000; transform-origin: top left; max-height: 80vh; overflow-y: auto;
    }
    .profile-dropdown-menu.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
    .profile-dropdown-menu::-webkit-scrollbar { width: 0px; }

    .dropdown-header { font-size: 0.75rem; font-weight: 900; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; padding-left: 5px; }

    .role-option { display: flex; align-items: center; padding: 10px 12px; border-radius: 16px; cursor: pointer; text-decoration: none; transition: all 0.2s; color: #334155; border-left: 3px solid transparent; }
    .role-option:hover, .role-option:active { background: #f1f5f9; }
    .role-option-icon { font-size: 1.3rem; margin-right: 12px; transition: color 0.2s; }
    .role-option-text { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 800; transition: color 0.2s; }

    .role-option.active-nav-item { background: #e0f2fe; border-left: 3px solid #0ea5e9; padding-left: 9px; }
    .role-option.active-nav-item .role-option-text, .role-option.active-nav-item .role-option-icon { color: #0284c7; }

    .dropdown-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #cbd5e1; margin-right: 12px; }
    
    .dropdown-item-split { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 16px; transition: background 0.2s; margin-bottom: 5px; border: 1px solid transparent; }
    .dropdown-item-split:hover { background: #f1f5f9; }
    .dropdown-item-split.active-filter { background: #f0f9ff; border-color: #bae6fd; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
    .dropdown-item-split.active-filter .role-option-text { color: #0284c7; }

    .switch-view-zone { display: flex; align-items: center; flex-grow: 1; cursor: pointer; padding: 4px 0; }
    .kid-mode-tag { font-size: 0.65rem; font-weight: 900; color: white; background: #10b981; padding: 6px 12px; border-radius: 14px; text-transform: uppercase; margin-left: 10px; box-shadow: 0 4px 10px rgba(16,185,129,0.3); transition: transform 0.1s; cursor: pointer; animation: pulseGlow 2s infinite; }
    .kid-mode-tag:active { transform: scale(0.9); box-shadow: 0 0 0 transparent; animation: none; }
    @keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

    /* ========================================= */
    /* 🔴 THE DIRECTOR DARK MODE THEME 🔴        */
    /* ========================================= */
    #tumble-top-bar.theme-director { background: #0f172a; border-bottom: 2px solid #1e293b; }
    .theme-director .role-switcher-pill { background: #1e293b; border-color: #334155; box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
    .theme-director .role-name { color: #f8fafc; }
    .theme-director .role-caret { color: #64748b; }
    .theme-director .role-avatar { border-color: #0f172a; }

    .theme-director .profile-dropdown-menu { background: #1e293b; border-color: #334155; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
    .theme-director .dropdown-header { color: #475569; }
    .theme-director .role-option-text { color: #f1f5f9; }
    .theme-director .role-option:hover { background: #0f172a; }
    
    .theme-director .role-option.active-nav-item { background: rgba(147, 51, 234, 0.15); border-left: 3px solid #9333ea; padding-left: 9px; }
    .theme-director .role-option.active-nav-item .role-option-text, .theme-director .role-option.active-nav-item .role-option-icon { color: #c084fc; }
    
    .theme-director .club-badge-3d { background: #1e293b; border-color: #334155; box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
    .theme-director .club-badge-3d:hover { background: #0f172a; border-color: #475569; }
    .theme-director .club-badge-name { color: #94a3b8; }
    .theme-director .club-badge-3d:hover .club-badge-name { color: #f8fafc; }
    .theme-director .club-badge-logo { border-color: #334155; }
/* ========================================= */

/* ========================================= */
/* AAA LIVING WORLD ENGINE (Zero Lag)        */
/* ========================================= */
    body.living-world {
        background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
        background-attachment: fixed;
        transition: background 2s ease; /* Smoothly fades when time changes */
        margin: 0;
        min-height: 100vh;
    }

    /* The Stars Layer (Only visible at night) */
    .world-stars {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        /* CSS generated starry sky - zero images required! */
        background-image: 
            radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 40px 70px, #fffafa, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 50px 160px, #fdf5e6, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 130px 80px, #fffafa, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 160px 120px, #fdf5e6, rgba(0,0,0,0));
        background-repeat: repeat;
        background-size: 200px 200px;
        opacity: var(--stars-opacity);
        transition: opacity 3s ease;
        z-index: -3; pointer-events: none;
    }

    /* The Distant Hills Silhouette */
    .world-landscape {
        position: fixed; bottom: 0; left: 0; width: 100%; height: 35vh;
        background: var(--landscape-color);
        /* Uses a lightweight SVG mask to cut out a hill shape */
        mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,80 C200,180 400,0 600,80 C800,160 1000,0 1200,80 L1200,200 L0,200 Z" fill="white" opacity="0.4"/><path d="M0,130 C250,30 450,180 650,130 C850,80 1050,180 1200,130 L1200,200 L0,200 Z" fill="white" opacity="0.7"/><path d="M0,180 C300,120 500,250 800,180 C1000,130 1100,220 1200,180 L1200,200 L0,200 Z" fill="white"/></svg>');
        -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,80 C200,180 400,0 600,80 C800,160 1000,0 1200,80 L1200,200 L0,200 Z" fill="white" opacity="0.4"/><path d="M0,130 C250,30 450,180 650,130 C850,80 1050,180 1200,130 L1200,200 L0,200 Z" fill="white" opacity="0.7"/><path d="M0,180 C300,120 500,250 800,180 C1000,130 1100,220 1200,180 L1200,200 L0,200 Z" fill="white"/></svg>');
        mask-size: cover; -webkit-mask-size: cover;
        mask-position: bottom; -webkit-mask-position: bottom;
        z-index: -2; pointer-events: none;
        transition: background 2s ease;
    }

    /* ========================================= */
    /* LIVING WORLD: CELESTIAL & WEATHER         */
    /* ========================================= */

    /* The Sun & Moon */
    .world-celestial {
        position: fixed; width: 100px; height: 100px; border-radius: 50%;
        background: var(--celestial-color, #FFD700);
        box-shadow: 0 0 40px var(--celestial-glow, rgba(255, 215, 0, 0.6));
        /* The transform is controlled by JavaScript to arc across the sky */
        transform: translate(var(--celestial-x, 10vw), var(--celestial-y, 50vh));
        transition: transform 2s ease, background 2s ease, box-shadow 2s ease;
        z-index: -4; pointer-events: none;
    }

    /* CSS-Only Drifting Clouds (Upgraded Pixar Fluff) */
    .world-clouds {
        position: fixed; top: 8%; left: 0; width: 200%; height: 35vh;
        background-image: 
            /* Tighter gradients make them look like solid, stylized clouds */
            radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 35%, rgba(255,255,255,0) 65%),
            radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 70%);
        background-size: 350px 120px, 500px 160px;
        background-position: 0 0, 250px 60px;
        background-repeat: repeat-x;
        opacity: var(--cloud-opacity, 0);
        z-index: -3; pointer-events: none;
        animation: driftClouds 60s linear infinite; 
        transition: opacity 2s ease;
    }

    @keyframes driftClouds { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

    /* ========================================= */
    /* THE SHOOTING STAR (Zero-Lag Animation)    */
    /* ========================================= */
    .shooting-star-container {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: -3; pointer-events: none;
        /* MAGIC: This container only becomes visible when the night stars come out! */
        opacity: var(--stars-opacity, 0); 
        transition: opacity 2s ease;
    }

    .shooting-star {
        position: absolute; top: 5%; left: 85%;
        width: 150px; height: 2px;
        /* The fading tail of the star */
        background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
        border-radius: 50%;
        filter: drop-shadow(0 0 6px rgba(255,255,255,1));
        /* Shoots once every 14 seconds */
        animation: shootStar 14s infinite; 
    }

    /* The bright, glowing head of the star */
    .shooting-star::after {
        content: ''; position: absolute; top: -2px; right: 0;
        width: 6px; height: 6px; background: #fff; border-radius: 50%;
        box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    }

    /* The trajectory: It takes 1.5 seconds to cross the sky, then waits invisibly for the rest of the 14s loop */
    @keyframes shootStar {
        0% { transform: translate(0, 0) rotate(-35deg) scale(0); opacity: 0; }
        2% { transform: translate(-10vw, 10vh) rotate(-35deg) scale(1); opacity: 1; }
        10% { transform: translate(-70vw, 70vh) rotate(-35deg) scale(0); opacity: 0; }
        100% { transform: translate(-70vw, 70vh) rotate(-35deg) scale(0); opacity: 0; }
    }

    /* ========================================= */
    /* DAYTIME MAGIC (The Wandering Airplane)    */
    /* ========================================= */
    .day-magic-container {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: -2; pointer-events: none;
        /* THE MAGIC MATH: 1 minus the Star Opacity. If stars are 1 (Night), this is 0. If stars are 0 (Day), this is 1! */
        opacity: calc(1 - var(--stars-opacity, 0)); 
        transition: opacity 2s ease;
    }

    .paper-airplane {
        position: absolute; top: 0; left: 0; 
        width: 45px; height: 45px;
        /* Pure CSS SVG of a Paper Airplane */
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>');
        background-size: contain; background-repeat: no-repeat;
        opacity: 0.85;
        /* A soft drop shadow makes it pop off the clouds */
        filter: drop-shadow(0 10px 10px rgba(0,0,0,0.15));
        
        /* Takes 40 seconds to complete a loop, but spends half of that waiting invisibly off-screen */
        animation: rideTheWind 40s ease-in-out infinite;
    }

    /* The Flight Path: Bobbing up and down as it crosses the screen */
    @keyframes rideTheWind {
        0%   { transform: translate(-10vw, 30vh) rotate(15deg) scale(0.8); }
        15%  { transform: translate(30vw, 15vh) rotate(5deg) scale(1); }
        30%  { transform: translate(65vw, 25vh) rotate(20deg) scale(0.9); }
        45%  { transform: translate(110vw, 10vh) rotate(10deg) scale(1.1); }
        100% { transform: translate(110vw, 10vh) rotate(10deg) scale(1.1); } /* Wait off-screen */
    }
/* ========================================= */

/* THE GLASS PLAQUE CONTAINER */
    .auth-wrapper {
        /* The 'auto' on the left and right automatically centers the box! */
        margin: 160px auto 50px auto; 
        width: 100%; 
        max-width: 400px; 
        padding: 0 20px;
        position: relative; 
        animation: slideUpFade 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
/* ========================================= */

