/* Global CSS Variables & Reset */
:root {
    --primary: #f8a5c2;
    --primary-hover: #f78fb3;
    --primary-light: #ffccd5;
    --accent-pink: #f8a5c2;
    --accent-yellow: #f7d08a;
    --accent-mint: #8ce8c5;
    --accent-purple: #b19ffb;
    --rainbow-gradient: linear-gradient(135deg, #f8a5c2 0%, #f7d08a 33%, #8ce8c5 66%, #b19ffb 100%);
    --rainbow-bg: linear-gradient(135deg, #fff0f3 0%, #fff9e6 33%, #e8f8f5 66%, #f3ebfa 100%);
    --pastel-pink: #fff0f3;
    --pastel-yellow: #fff9e6;
    --pastel-mint: #e8f8f5;
    --pastel-purple: #f3ebfa;
    --pastel-cream: #faf5eb;
    --text-main: #4a4e69;
    --text-muted: #6c757d;
    --bg-white: #ffffff;
    --bg-light: #fff9fa;
    --glass: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 10px 30px -10px rgba(248, 165, 194, 0.25);
    --shadow-hover: 0 20px 40px -15px rgba(248, 165, 194, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-emoji {
    animation: rotateEmoji 3s ease infinite alternate;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link-btn {
    font-weight: 600;
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(138, 99, 229, 0.25);
}

.nav-link-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Common Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--pastel-purple);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Card Style */
.card {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(138, 99, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 99, 229, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--pastel-pink);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px 0;
    background: linear-gradient(135deg, var(--pastel-cream) 0%, var(--pastel-pink) 50%, var(--pastel-green) 100%);
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-light);
    opacity: 0.4;
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background-color: var(--pastel-pink);
    opacity: 0.6;
    bottom: -100px;
    right: -100px;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background-color: var(--pastel-green);
    opacity: 0.6;
    top: 40%;
    left: 70%;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-desc strong {
    color: var(--primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-card {
    position: relative;
    width: 320px;
    height: 380px;
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.floating-tag {
    position: absolute;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
    white-space: nowrap;
}

.tag-baking {
    top: -12px;
    left: -15px;
    border: 2px solid #fbcfe8;
    color: #be185d;
    box-shadow: 0 8px 20px rgba(236,72,153,0.3);
    animation-delay: 0s;
}

.tag-karate {
    bottom: -12px;
    right: -15px;
    border: 2px solid #fde68a;
    color: #92400e;
    box-shadow: 0 8px 20px rgba(245,158,11,0.3);
    animation-delay: 1.3s;
}

.tag-law {
    top: 45%;
    left: -20px;
    border: 2px solid #bae6fd;
    color: #0369a1;
    box-shadow: 0 8px 20px rgba(2,132,199,0.3);
    animation-delay: 2.6s;
}

/* Bio Section */
.bio-section {
    padding: 100px 0;
    background-color: var(--pastel-cream);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.bio-profile-card {
    padding: 36px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--pastel-pink) 100%);
    position: relative;
}

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

.bio-avatar {
    width: 64px;
    height: 64px;
    background-color: var(--pastel-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 16px rgba(138, 99, 229, 0.1);
}

.bio-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bio-profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}

.bio-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bio-detail-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-detail-val {
    color: var(--text-muted);
    font-size: 1rem;
}

.bio-story-content h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.bio-story-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.bio-story-text strong {
    color: var(--primary);
}

.bio-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-pillar-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background-color: var(--bg-white);
}

.bio-pillar-card:nth-child(1) { border-left: 4px solid var(--primary-light); }
.bio-pillar-card:nth-child(2) { border-left: 4px solid #ecc94b; }
.bio-pillar-card:nth-child(3) { border-left: 4px solid var(--accent-pink); }

.bio-pillar-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-law { background-color: var(--pastel-purple); }
.icon-karate { background-color: var(--pastel-yellow); }
.icon-baking { background-color: var(--pastel-pink); }

.bio-pillar-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.bio-pillar-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Karate Section & Belt Progression */
.karate-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.belt-roadmap {
    position: relative;
    margin: 40px 0 50px 0;
    padding: 20px 10px 40px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.belt-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 920px;
    position: relative;
    padding: 0 40px;
    box-sizing: border-box;
}

.belt-track {
    position: absolute;
    top: 25px;
    left: 70px;
    right: 70px;
    height: 10px;
    background: linear-gradient(90deg, #cbd5e1 0%, #ffde59 14%, #63b3ed 28%, #48bb78 42%, #4361ee 56%, #2b36a5 70%, #8B4513 84%, #1a202c 100%);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(255, 222, 89, 0.7);
    z-index: 1;
}

.belt-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.belt-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition);
}

.belt-strap {
    width: 32px;
    height: 12px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Belt Colors */
.belt-white { background-color: #ffffff; border: 1px solid #cbd5e0; }
.belt-yellow { background-color: #ffde59; border: 1px solid #ecc94b; }
.belt-light-blue { background-color: #63b3ed; }
.belt-green { background-color: #48bb78; }
.belt-purple-1 { background-color: #4361ee; } /* Xanh dương pha chút tím */
.belt-purple-2 { background-color: #2b36a5; } /* Xanh dương pha chút tím đậm hơn */
.belt-brown { background-color: #8B4513; } /* Real Brown */
.belt-black { background-color: #1a202c; }

.belt-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
    text-align: center;
}

.belt-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 12px;
    background-color: #edf2f7;
}

/* Active & Completed States */
.belt-step.completed .belt-icon-container {
    border-color: var(--primary-light);
    background-color: var(--pastel-purple);
}

.belt-step.completed .belt-status {
    color: var(--primary);
    background-color: var(--pastel-purple);
}

.belt-step.active {
    position: relative;
}

.belt-step.active .belt-icon-container {
    border-color: #ecc94b; /* yellow */
    background-color: var(--pastel-yellow);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 222, 89, 0.4);
}

.belt-pulse-effect {
    position: absolute;
    top: -5px;
    left: 25px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 222, 89, 0.2);
    z-index: -1;
    animation: pulse 2s infinite;
}

.current-badge {
    background-color: #ffde59 !important;
    color: #744210 !important;
    font-weight: 700;
}

/* Belt Detail panel */
.belt-detail-panel {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    max-width: 800px;
    margin: 40px auto 0 auto;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--pastel-yellow) 100%);
}

.belt-detail-icon {
    font-size: 3rem;
}

.belt-detail-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.belt-detail-content p {
    color: var(--text-muted);
}

/* Baking Section */
.baking-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.baking-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.baking-card {
    overflow: hidden;
    background-color: var(--bg-white);
}

.baking-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: var(--pastel-pink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.baking-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.baking-card:hover .baking-img {
    transform: scale(1.08);
}

.baking-info {
    padding: 24px;
}

.baking-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--pastel-pink);
    color: #e56b8f;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.baking-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

/* Law & Quiz Section */
.law-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.law-container {
    max-width: 1000px;
    margin: 0 auto;
}

.law-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    background-color: var(--bg-light);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.law-tab-btn {
    border: none;
    background: none;
    padding: 12px 32px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.law-tab-btn.active {
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.law-panel {
    display: none;
}

.law-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Alert Box */
.alert-box {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.alert-box.note {
    background-color: var(--pastel-mint);
    border-left: 4px solid #38b2ac;
    color: #234e52;
}

/* Law Cards Grid */
.law-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.law-card {
    padding: 28px;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.law-card:nth-child(4n+1) { border-top: 4px solid var(--primary-light); }
.law-card:nth-child(4n+2) { border-top: 4px solid var(--accent-pink); }
.law-card:nth-child(4n+3) { border-top: 4px solid var(--pastel-green-border); }
.law-card:nth-child(4n) { border-top: 4px solid #ecc94b; }

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

.law-article-num {
    padding: 4px 12px;
    background-color: var(--pastel-purple);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.85rem;
}

.law-card-header h4 {
    font-size: 1.15rem;
}

.law-clause {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.law-penalty {
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

.penalty-tag {
    font-weight: 700;
    color: var(--text-main);
    font-style: normal;
    display: block;
    margin-bottom: 4px;
}

.center-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Game Interface */
.game-screen {
    animation: fadeIn 0.4s ease-out;
}

.game-intro-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.text-center {
    text-align: center;
}

.game-scale-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: rotateScale 4s ease infinite;
}

.game-intro-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.game-intro-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.anti-cheat-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: var(--pastel-pink);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    text-align: left;
    font-size: 0.85rem;
    color: #c53030;
}

.pulse-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e53e3e;
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
    animation: pulseGlow 1.5s infinite;
    flex-shrink: 0;
}

/* Quiz play screen HUD */
.game-progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #edf2f7;
    border-radius: 50px;
    margin-bottom: 24px;
    overflow: hidden;
}

.game-progress-bar {
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: var(--transition);
}

.game-hud {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 1rem;
}

.hud-item strong {
    color: var(--primary);
}

.case-card {
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--pastel-blue) 100%);
    margin-bottom: 32px;
}

.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 12px;
}

.case-header h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.case-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.game-question h5 {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.option-btn {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background-color: var(--bg-white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    transition: var(--transition);
}

.option-btn:hover {
    border-color: var(--primary-light);
    background-color: var(--pastel-purple);
    transform: translateY(-2px);
}

.option-btn.selected {
    border-color: var(--primary);
    background-color: var(--pastel-purple);
}

.option-btn.correct {
    border-color: #48bb78;
    background-color: #f0fff4;
    color: #22543d;
}

.option-btn.incorrect {
    border-color: #f56565;
    background-color: #fff5f5;
    color: #742a2a;
}

/* Result Screen */
.result-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.result-trophy {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.result-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.result-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    padding: 20px;
    background-color: var(--pastel-blue);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.stat-box:nth-child(2) {
    background-color: var(--pastel-mint);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Anti-Cheat Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 32, 44, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: rotateEmoji 1.5s infinite alternate;
}

.modal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #e53e3e;
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Footer */
.footer-section {
    padding: 40px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--glass-border);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

@keyframes rotateEmoji {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes rotateScale {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

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

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .bio-profile-card {
        position: static;
    }
    .hero-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: right !important;
        gap: 32px !important;
    }
    .hero-content {
        text-align: right !important;
        align-items: flex-end !important;
    }
    .hero-desc {
        margin-left: auto !important;
        margin-right: 0 !important;
        text-align: right !important;
    }
    .hero-actions {
        justify-content: flex-end !important;
    }
    .hero-image-container {
        order: 0 !important;
    }
    .baking-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .law-cards-grid {
        grid-template-columns: 1fr;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
    .belt-roadmap {
        padding: 0 10px;
        overflow-x: auto;
    }
    .belt-steps {
        width: 960px;
        padding-bottom: 20px;
    }
    .belt-track {
        width: 860px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu can be toggled if implemented, or simplified to just jump links */
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .baking-gallery {
        grid-template-columns: 1fr;
    }
    .belt-detail-panel {
        flex-direction: column;
        text-align: center;
    }
}

/* Verdict Typing Game Styles */
.verdict-input-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    max-width: 500px;
}

.verdict-prefix {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.verdict-input {
    border: none;
    border-bottom: 3px solid #cbd5e0;
    outline: none;
    padding: 8px 4px;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    width: 120px;
    text-align: center;
    background: transparent;
    transition: var(--transition);
}

.verdict-input:focus {
    border-color: var(--primary);
}

.verdict-feedback {
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid;
    animation: fadeIn 0.4s ease-out;
}

.verdict-feedback.correct {
    background-color: #f0fff4;
    border-color: #c6f6d5;
    color: #22543d;
}

.verdict-feedback.incorrect {
    background-color: #fff5f5;
    border-color: #fed7d7;
    color: #742a2a;
}

.feedback-status {
    font-weight: 800;
    font-size: 1.15rem;
}

.feedback-text {
    font-size: 1.05rem;
    line-height: 1.6;
}

.feedback-text strong {
    color: inherit;
}

/* ==========================================================================
   AWARD-WINNING EXTENSIONS (Theme, Badges, Timeline, Reflection, Photo Slot)
   ========================================================================== */

/* Floating Theme Switcher & Control Bar */
.top-control-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.theme-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.theme-dot:hover, .theme-dot.active {
    transform: scale(1.2);
    border-color: var(--text-main);
}

.theme-dot.pink { background-color: #ff9ebb; }
.theme-dot.cream { background-color: #f7d08a; }
.theme-dot.mint { background-color: #8ce8c5; }
.theme-dot.purple { background-color: #b19ffb; }

/* Achievement Widget */
.badge-btn-widget {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.badge-btn-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.badge-count {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Local Photo Uploader Button & Avatar Frame */
.hero-photo-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.btn-upload-photo {
    background: rgba(255, 255, 255, 0.95);
    border: 1px dashed var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload-photo:hover {
    background: var(--pastel-pink);
}

/* Timeline Section (Best Website Story) */
.timeline-section {
    padding: 60px 0 20px 0;
    background-color: var(--bg-white);
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 5px;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    box-shadow: 0 0 10px rgba(186, 230, 253, 0.5);
    transform: translateX(-50%);
    border-radius: 6px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 30px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3.5px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(186, 230, 253, 0.4);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -20px;
}

.timeline-card {
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--pastel-pink);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reflection Section (Best Reflection) */
.reflection-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--pastel-pink) 100%);
}

.reflection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reflection-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.reflection-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    color: var(--pastel-pink);
    font-family: Georgia, serif;
    opacity: 0.5;
    pointer-events: none;
}

.reflection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.reflection-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.reflection-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.reflection-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.reflection-highlight {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Life Balance Radar/Wheel Container */
.balance-container {
    max-width: 700px;
    margin: 50px auto 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--glass-border);
}

.balance-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.balance-item {
    text-align: left;
}

.balance-label-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.balance-track {
    height: 12px;
    background: #edf2f7;
    border-radius: 6px;
    overflow: hidden;
}

.balance-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s ease-out;
}

.fill-law { background: linear-gradient(90deg, #9f7aea, #b19ffb); width: 90%; }
.fill-karate { background: linear-gradient(90deg, #ecc94b, #ffde59); width: 85%; }
.fill-baking { background: linear-gradient(90deg, #ff9ebb, #ffeef2); width: 95%; }

/* Achievement Modal Notification */
.toast-achievement {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-white);
    border-left: 6px solid #ecc94b;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-achievement.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon { font-size: 2rem; }
.toast-title { font-weight: 800; font-size: 1rem; }
.toast-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline-line { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 15px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { left: 10px; right: auto; }
}

/* Project Documentation & Rubric Section */
.project-doc-section {
    padding: 100px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--glass-border);
}

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.rubric-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.rubric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.rubric-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.badge-c1 { background: #eefcee; color: #22543d; }
.badge-c2 { background: #ffeef2; color: #9b2c2c; }
.badge-c3 { background: #f3e8ff; color: #553c9a; }

.rubric-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.rubric-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rubric-list li {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.rubric-list li strong {
    color: var(--text-main);
}

.roadmap-future {
    margin-top: 50px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 2px dashed var(--primary);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.future-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

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

.future-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.future-item h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.future-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Baking Calculator v2.0 Styles */
.baking-calc-card {
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

.calc-portion-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.calc-portion-selector label {
    font-weight: 700;
    color: var(--text-main);
}

.portion-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.portion-btn {
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.portion-btn.active, .portion-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recipe-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.recipe-box h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
}

.recipe-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.recipe-box ul strong {
    color: var(--text-main);
}

/* Certificate Generator Box Styles */
.certificate-box {
    background: #fffdf5;
    border: 3px double #ecc94b;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(236, 201, 75, 0.2);
    position: relative;
    overflow: hidden;
}

.cert-seal {
    font-size: 3rem;
    margin-bottom: 8px;
}

.cert-heading {
    font-size: 1.4rem;
    font-weight: 900;
    color: #b7791f;
    letter-spacing: 1px;
}

.cert-subheading {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Photobooth Section Styles */
.photobooth-section {
    padding: 100px 0;
    background: var(--pastel-pink);
}

.pb-frame-btn, .pb-filter-btn {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.pb-frame-btn.active, .pb-frame-btn:hover,
.pb-filter-btn.active, .pb-filter-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

/* Ensure full rich color rendering when printing */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* Mega Navigation Header Styles (Matching Teacher Screenshot) */
.mega-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-nav-item {
    position: relative;
}

.mega-nav-link {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #2d3748;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-nav-link.active,
.mega-nav-link:hover {
    background: #fce7f3;
    color: #9d174d;
}

.mega-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 580px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    padding: 24px;
    z-index: 1200;
}

.mega-nav-item:hover .mega-dropdown-menu {
    display: flex;
    gap: 32px;
    animation: fadeInDropdown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mega-dropdown-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.mega-sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mega-sub-link:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateX(4px);
}

.mega-dropdown-right {
    width: 240px;
    background: #fff5f5;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #ffe4e6;
}

.mega-card-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #9f1239;
    background: #ffe4e6;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.mega-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.mega-card-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.mega-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #be123c;
    transition: all 0.2s ease;
}

.mega-card-btn:hover {
    color: #9f1239;
    transform: translateX(3px);
}

.chat-btn-pill {
    background: #881337;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(136, 19, 55, 0.3);
    transition: all 0.2s ease;
}

.chat-btn-pill:hover {
    background: #9f1239;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(136, 19, 55, 0.4);
}

.portion-btn.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
}

/* --- APPLE HIG & GLASSMORPHISM DESIGN SYSTEM ENHANCEMENTS --- */
:root {
    --apple-glass-bg: rgba(255, 255, 255, 0.78);
    --apple-glass-blur: blur(24px) saturate(180%);
    --apple-glass-border: 1.5px solid rgba(255, 255, 255, 0.7);
    --apple-glass-shadow: 0 20px 45px rgba(236, 72, 153, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    --apple-ease: cubic-bezier(0.25, 1, 0.5, 1);
    --apple-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --apple-radius-pill: 9999px;
    --apple-radius-card: 28px;
}

/* Apple HIG Glassmorphism Card Utility */
.apple-glass-card {
    background: var(--apple-glass-bg) !important;
    backdrop-filter: var(--apple-glass-blur) !important;
    -webkit-backdrop-filter: var(--apple-glass-blur) !important;
    border: var(--apple-glass-border) !important;
    box-shadow: var(--apple-glass-shadow) !important;
    border-radius: var(--apple-radius-card) !important;
    transition: transform 0.3s var(--apple-ease), box-shadow 0.3s var(--apple-ease);
}

.apple-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(236, 72, 153, 0.18), 0 8px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Apple HIG Spring Button Motion */
.btn-play-primary, .track-select-btn, .mega-card-btn {
    transition: transform 0.25s var(--apple-spring), background 0.2s ease, box-shadow 0.25s var(--apple-ease) !important;
}

.btn-play-primary:active, .track-select-btn:active, .mega-card-btn:active {
    transform: scale(0.96) !important;
}
