/* ==========================================================================
   EDUKID ACADEMY - UNIFIED STYLESHEET (style.css)
   Clean, Modern Coding Studio Architecture for All Pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --primary: #7367f0;
    --primary-light: #7964EE;
    --primary-dark: #704FE6;
    --primary-soft: #BCB9F9;
    --ink: #f1f0fa;
    --navy: #100e20;
    --coral: var(--primary);
    --coral-dark: var(--primary-dark);
    --yellow: #ffca3a;
    --sky: #302b59;
    --cream: #171529;
    --line: #393451;
    --muted: #aaa7c2;
    --white: #ffffff;
    --radius: 20px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --transition: 0.25s cubic-bezier(0.2, 0.75, 0.25, 1);
}

html[data-theme="light"] {
    --cream: #f5f5f9;
    --ink: #3b4055;
    --line: #ebe9f1;
    --muted: #7d8091;
    --navy: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Base Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    background-image:
            radial-gradient(circle at 10% 0%, rgba(115, 103, 240, 0.14), transparent 28%),
            radial-gradient(circle at 92% 12%, rgba(0, 207, 232, 0.08), transparent 24%);
    transition: background-color 0.35s ease, color 0.35s ease;
}

html[data-theme="light"] body {
    background-image:
            radial-gradient(circle at 12% 4%, rgba(115, 103, 240, 0.08), transparent 28%),
            radial-gradient(circle at 92% 12%, rgba(0, 207, 232, 0.06), transparent 22%);
}

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

button, input, textarea {
    font: inherit;
}

.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   3. Buttons & Component Badges
   -------------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 13px 22px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(115, 103, 240, 0.22);
}

.button span {
    font-size: 17px;
    line-height: 1;
}

.button-coral {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.button-dark {
    background: #7367f0;
    color: #fff;
}

.button-dark:hover {
    box-shadow: 0 10px 22px rgba(115, 103, 240, 0.28);
}

.button-outline,
.button-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-outline:hover,
.button-ghost:hover {
    border-color: var(--coral);
    color: var(--coral);
    transform: translateY(-2px);
}

.text-link,
.home-quiet-link {
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--coral);
}

.text-link:hover,
.home-quiet-link:hover {
    color: var(--yellow);
}

.home-pill-tag,
.eyebrow,
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 800;
    margin-bottom: 18px;
    background: rgba(115, 103, 240, 0.12);
    border: 1px solid rgba(115, 103, 240, 0.25);
    color: var(--coral);
    width: fit-content;
}

.pulse-indicator,
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #50d890;
    box-shadow: 0 0 0 3px rgba(80, 216, 144, 0.25);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.loading-state {
    color: var(--muted);
    font-size: 12px;
    padding: 30px 0;
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   4. Header & Topline Navigation
   -------------------------------------------------------------------------- */
.topline {
    background: #0d0c18;
    color: #e5e2f8;
    display: flex;
    gap: 36px;
    justify-content: center;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header {
    height: 84px;
    background: var(--navy);
    padding-left: max(28px, calc((100% - 1200px)/2 + 28px));
    padding-right: max(28px, calc((100% - 1200px)/2 + 28px));
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--line);
}

.logo-image {
    display: block;
    width: 140px;
    height: 38px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

html[data-theme="light"] .logo-image {
    filter: none;
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-right: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--coral);
}

.theme-toggle {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.theme-toggle:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.menu-toggle {
    display: none;
}

/* --------------------------------------------------------------------------
   5. Hero & Terminal Visual (Shared by Index & About)
   -------------------------------------------------------------------------- */
.home-hero-section,
.about-hero-section,
.about-hero {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 75px;
}

.hero-left-content,
.about-hero-copy {
    position: relative;
    z-index: 2;
}

.main-heading,
.hero-title,
.about-hero-copy h1 {
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 20px;
}

.main-heading em,
.hero-title em,
.about-hero-copy h1 em {
    font-style: normal;
    color: var(--coral);
}

.main-desc,
.hero-desc,
.about-hero-copy p {
    font-size: 15px;
    line-height: 1.95;
    color: var(--muted);
    font-weight: 600;
    max-width: 530px;
    margin: 0 0 30px;
}

.hero-cta-group,
.hero-actions-row,
.about-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.hero-highlights,
.about-proof-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.highlight-item,
.proof-tag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-icon,
.home-note-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 159, 67, 0.15);
    color: var(--coral);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

.highlight-item strong,
.proof-tag strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink);
}

.highlight-item small {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
}

.hero-interactive-canvas,
.about-console-wrap {
    position: relative;
    min-height: 440px;
    display: grid;
    place-items: center;
    direction: ltr;
}

.canvas-ambient-light,
.canvas-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 103, 240, 0.22), transparent 70%);
    pointer-events: none;
}

.studio-terminal,
.home-console,
.floating-editor {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    border-radius: 18px;
    background: #0d0c18;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: rotate(-1.5deg);
    transition: transform 0.3s ease;
}

.studio-terminal:hover,
.home-console:hover,
.floating-editor:hover {
    transform: rotate(0deg);
}

.terminal-bar,
.editor-header {
    height: 42px;
    background: #171529;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots,
.window-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots i,
.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b65;
}

.terminal-dots i:nth-child(2),
.window-dots i:nth-child(2) { background: #ffca3a; }

.terminal-dots i:nth-child(3),
.window-dots i:nth-child(3) { background: #50d890; }

.terminal-filename,
.editor-file {
    font-family: 'Manrope', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #928cb8;
    flex: 1;
}

.terminal-status-badge,
.editor-badge {
    background: rgba(80, 216, 144, 0.15);
    color: #50d890;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.terminal-code-body,
.editor-code {
    padding: 22px;
    font-family: 'Manrope', monospace;
    font-size: 11.5px;
    line-height: 1.8;
    color: #dedaf3;
}

.code-row,
.home-code-line {
    white-space: nowrap;
}

.line-num,
.home-line-number {
    display: inline-block;
    width: 24px;
    color: #565074;
    user-select: none;
}

.tok-kwd { color: #c792ea; font-weight: 700; }
.tok-cls { color: #ffcb6b; }
.tok-fn { color: #82aaff; }
.tok-var { color: #f78c6c; }
.tok-prop { color: #89ddff; }
.tok-str { color: #a6e3a1; }
.code-tab { padding-left: 24px; }

.terminal-console-output,
.editor-output {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(80, 216, 144, 0.1);
    border: 1px solid rgba(80, 216, 144, 0.22);
    color: #8ceabb;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    direction: rtl;
}

.run-icon,
.prompt-icon {
    color: #50d890;
    margin-left: 5px;
}

.terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--coral);
    vertical-align: -2px;
    margin-top: 6px;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

.terminal-footer {
    height: 32px;
    background: #121021;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 9px;
    color: #7b759a;
}

.terminal-footer b {
    color: #50d890;
    margin-right: 4px;
}

.interactive-tag,
.floating-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--navy);
    border: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    direction: rtl;
    animation: badgeFloatAnim 5s ease-in-out infinite;
}

.tag-ico,
.badge-icon {
    font-size: 22px;
}

.interactive-tag strong,
.floating-badge strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
}

.interactive-tag small,
.floating-badge small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

.tag-projects,
.badge-top,
.about-badge-one {
    top: 25px;
    right: -15px;
}

.about-hero-section .tag-projects {
    top: 10px;
}

.tag-ages,
.badge-bottom,
.about-badge-two {
    bottom: 25px;
    left: -20px;
    animation-delay: -2.5s;
}

@keyframes badgeFloatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   6. Metrics / Stats Band
   -------------------------------------------------------------------------- */
.trust-metrics-strip,
.about-metrics-bar {
    background: var(--navy);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
    margin-bottom: 70px;
}

.metrics-row,
.metrics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-unit,
.metric-item {
    text-align: center;
    border-left: 1px solid var(--line);
    padding: 0 16px;
}

.stat-unit:first-child,
.metric-item:first-child {
    border-left: 0;
}

.stat-unit strong,
.metric-val {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--coral);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-unit span,
.metric-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Tracks Grid & Content Cards
   -------------------------------------------------------------------------- */
.section-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 42px;
}

.section-top-header h2 {
    font-size: clamp(28px, 3.8vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0;
    font-weight: 900;
}

.section-top-header h2 em {
    font-style: normal;
    color: var(--coral);
}

.section-top-header p {
    max-width: 440px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.85;
    margin: 0;
    font-weight: 600;
}

.home-tracks {
    padding-top: 50px;
    padding-bottom: 95px;
}

.home-track-grid,
.method-cards-grid,
.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-track-card,
.step-card,
.feature-tile {
    position: relative;
    min-height: 310px;
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--ink);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.home-track-card:hover,
.step-card:hover,
.feature-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--coral);
}

.home-track-number {
    position: absolute;
    top: 25px;
    left: 25px;
    color: #817c9c;
    font: 800 11px 'Manrope', sans-serif;
}

.home-track-icon,
.tile-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(115, 103, 240, 0.18);
    color: #c5baff;
    font: 800 20px 'Manrope', sans-serif;
    direction: ltr;
    margin-bottom: 24px;
}

.home-track-card h3,
.step-card h4,
.feature-tile h4 {
    font-size: 22px;
    margin: 0 0 10px;
    color: var(--ink);
}

.home-track-card p,
.step-card p,
.feature-tile p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
    font-weight: 600;
    margin: 0;
}

.home-card-link {
    margin-top: auto;
    padding-top: 24px;
    font-size: 12px;
    font-weight: 800;
    color: var(--coral);
}

.home-card-link b {
    margin-right: 8px;
}

.home-track-blue .home-track-icon {
    background: rgba(0, 207, 232, 0.12);
    color: #79e8f5;
}

.home-track-yellow .home-track-icon {
    background: rgba(188, 185, 249, 0.16);
    color: var(--primary-soft);
}

#aboutMethods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

#aboutMethods > .home-track-card,
#aboutMethods > .method-card {
    min-height: 300px;
    padding: 30px;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.11);
    background: linear-gradient(155deg, rgba(39, 36, 65, 0.98), rgba(20, 19, 37, 0.98));
}

#aboutMethods > :nth-child(2) {
    background: linear-gradient(155deg, rgba(24, 48, 63, 0.98), rgba(18, 26, 39, 0.98));
}

#aboutMethods > :nth-child(3) {
    background: linear-gradient(155deg, rgba(57, 46, 28, 0.98), rgba(30, 25, 25, 0.98));
}

#aboutMethods .home-track-number,
#aboutMethods .card-number {
    z-index: 1;
    top: 30px;
    right: 30px;
    left: auto;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255, 159, 67, 0.36);
    border-radius: 50%;
    background: #171529;
    color: #ffb765;
    font: 800 13px 'Manrope', sans-serif;
}

#aboutMethods .home-track-icon {
    width: 48px;
    height: 48px;
    margin: 8px 0 22px;
    border-radius: 14px;
    background: rgba(255, 159, 67, 0.13);
    color: #ffc278;
}

#aboutMethods > :nth-child(2) .home-track-icon {
    background: rgba(81, 203, 210, 0.13);
    color: #79dce0;
}

#aboutMethods > :nth-child(3) .home-track-icon {
    background: rgba(132, 207, 144, 0.13);
    color: #9be3a5;
}

#aboutMethods .about-step-label {
    display: block;
    margin-bottom: 5px;
    color: var(--coral);
    font-size: 11px;
    font-weight: 800;
}

#aboutMethods .home-track-card h3,
#aboutMethods .method-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.5;
}

#aboutMethods .home-track-card p,
#aboutMethods .method-card p {
    font-size: 13px;
    line-height: 1.95;
}

#aboutMethods .method-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 260px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(39, 36, 65, 0.98), rgba(20, 19, 37, 0.98));
    color: var(--ink);
}

#aboutMethods .method-card img {
    display: block;
    flex: 0 0 42%;
    width: 42%;
    height: 175px;
    margin: 0;
    object-fit: cover;
    border-radius: 12px;
}

#aboutMethods .method-card-copy {
    position: relative;
    flex: 1;
    min-width: 0;
}

#aboutMethods .method-card .card-number {
    position: absolute;
    top: 0;
    right: 0;
}

#aboutMethods .method-card h3 {
    min-height: 54px;
    padding-right: 68px;
}

html[data-theme="light"] #aboutMethods > .home-track-card,
html[data-theme="light"] #aboutMethods > .method-card {
    border-color: rgba(34, 43, 66, 0.1);
    background: linear-gradient(155deg, #ffffff, #f2f5f8);
}

html[data-theme="light"] #aboutMethods > :nth-child(2) {
    background: linear-gradient(155deg, #ffffff, #eef7f8);
}

html[data-theme="light"] #aboutMethods > :nth-child(3) {
    background: linear-gradient(155deg, #ffffff, #f7f5ed);
}

html[data-theme="light"] #aboutMethods .home-track-number,
html[data-theme="light"] #aboutMethods .card-number {
    background: #fff;
}

/* --------------------------------------------------------------------------
   8. Process & Story Sections
   -------------------------------------------------------------------------- */
.learning-process-section {
    padding: 95px 0;
    background: var(--navy);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.process-card,
.pillar-card,
.story-feature-item {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 28px;
    transition: transform var(--transition), border-color var(--transition);
}

.process-card:hover,
.pillar-card:hover,
.story-feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--coral);
}

.step-num,
.pillar-num,
.feature-idx {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: var(--coral);
    display: inline-block;
    margin-bottom: 14px;
}

.process-card h3,
.story-feature-item h3 {
    font-size: 21px;
    color: var(--ink);
    margin: 0 0 10px;
}

.process-card p,
.story-feature-item p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

.about-story-section {
    padding: 90px 0;
}

.story-dual-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.story-content h2 {
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 20px;
}

.story-content h2 em {
    font-style: normal;
    color: var(--coral);
}

.story-content p {
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 18px;
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pillar-box {
    position: relative;
    padding: 38px 34px;
    border-radius: var(--radius);
    background: var(--navy);
    border: 1px solid var(--line);
    overflow: hidden;
}

.pillar-corner-icon {
    font: 800 24px 'Manrope', sans-serif;
    color: var(--coral);
    margin-bottom: 16px;
}

.pillar-box h3 {
    font-size: 22px;
    line-height: 1.35;
    color: var(--ink);
    margin: 0 0 12px;
}

.pillar-box p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. Teachers & Student Stories Slider
   -------------------------------------------------------------------------- */
.home-coaches-section {
    padding: 100px 0 90px;
}

.teacher-slider,
.story-slider {
    overflow: hidden;
    padding: 12px 0 28px;
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    position: relative;
}

.teacher-track,
.story-track,
.teacher-group,
.story-group {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
}

.teacher-track {
    animation: teacher-scroll 42s linear infinite;
    will-change: transform;
}

.story-track {
    animation: story-scroll 50s linear infinite;
    will-change: transform;
}

.teacher-slider:hover .teacher-track,
.teacher-slider:focus-within .teacher-track,
.story-slider:hover .story-track,
.story-slider:focus-within .story-track {
    animation-play-state: paused;
}

.teacher-card,
.story-card {
    flex: 0 0 220px;
    width: 220px;
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.teacher-card:hover,
.story-card:hover {
    transform: translateY(-6px);
    border-color: var(--coral);
    box-shadow: 0 14px 30px rgba(115, 103, 240, 0.25);
}

.teacher-card img,
.story-card img,
.story-card .story-image,
.teacher-placeholder {
    width: 100%;
    height: 205px;
    object-fit: cover;
    border-radius: 13px;
    background: var(--sky);
    color: var(--coral);
    display: grid;
    place-items: center;
    font-size: 42px;
    margin-bottom: 0;
}

.teacher-card-info,
.story-card-info {
    margin-top: 12px;
}

.teacher-card h3,
.story-card h3 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teacher-card p,
.story-card p {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes teacher-scroll {
    to {
        transform: translateX(-50%);
    }
}

@keyframes story-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .teacher-card,
    .story-card {
        flex: 0 0 180px;
        width: 180px;
        padding: 12px;
    }

    .teacher-card img,
    .story-card img,
    .story-card .story-image,
    .teacher-placeholder {
        height: 175px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-track,
    .story-track {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }

    .teacher-group[aria-hidden="true"],
    .story-group[aria-hidden="true"] {
        display: none;
    }
}

.home-testimonials-section {
    background: var(--navy);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 100px 0 90px;
}

/* --------------------------------------------------------------------------
   10. FAQ Accordion & Page Grid
   -------------------------------------------------------------------------- */
.home-faq-section {
    padding: 100px 0 90px;
}

.faq-grid,
.faq-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.faq-item {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 24px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 800;
}

.faq-question b {
    color: var(--coral);
    font-size: 20px;
    line-height: 1;
}

.faq-answer {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.85;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
}

.faq-item.open {
    border-color: #7367f0;
}

.faq-item.open .faq-answer {
    max-height: 140px;
    margin-top: 14px;
}

/* --------------------------------------------------------------------------
   11. Conversion CTA & Contact Forms
   -------------------------------------------------------------------------- */
.home-cta-section {
    padding-bottom: 110px;
    padding-top: 40px;
}

.cta-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 65px;
    align-items: center;
}

.cta-left-copy h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 16px;
    font-weight: 900;
}

.cta-left-copy h2 em {
    font-style: normal;
    color: var(--coral);
}

.cta-left-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.95;
    margin: 0 0 25px;
    font-weight: 600;
    max-width: 480px;
}

.home-contact-form {
    display: grid;
    gap: 14px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--navy);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.home-contact-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.home-contact-form input,
.home-contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--ink);
    padding: 12px 14px;
    font-size: 12px;
    outline: 0;
    resize: vertical;
    transition: border-color var(--transition);
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
    border-color: var(--coral);
}

.home-contact-form input::placeholder,
.home-contact-form textarea::placeholder {
    color: #65607d;
}

.home-contact-form button {
    margin-top: 6px;
}

.home-contact-form small {
    min-height: 16px;
    color: #50d890;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

/* --------------------------------------------------------------------------
   12. Inner Pages (Curriculum & FAQs)
   -------------------------------------------------------------------------- */
.inner-page-redesign {
    background: var(--cream);
    min-height: calc(100vh - 180px);
    overflow: hidden;
}

.inner-page-redesign.privacy-page {
    overflow: visible;
}

.page-studio-hero {
    padding-top: 60px;
    padding-bottom: 45px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 45px;
}

.page-hero-content {
    max-width: 680px;
}

.page-title {
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 16px;
}

.page-title em {
    font-style: normal;
    color: var(--coral);
}

.page-subtitle {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}

.page-hero-meta-badge {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.meta-badge-item {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon {
    font: 800 16px 'Manrope', monospace;
    color: var(--coral);
    background: rgba(255, 159, 67, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.meta-badge-item strong {
    display: block;
    font-size: 12px;
    color: var(--ink);
}

.meta-badge-item small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

.faq-quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.faq-quick-action span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.page-content-wrap {
    padding-bottom: 75px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.filter-button {
    background: var(--navy);
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-button:hover,
.filter-button.active {
    background: #7367f0;
    border-color: #7367f0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(115, 103, 240, 0.25);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.curriculum-card {
    position: relative;
    min-height: 340px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--navy);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.curriculum-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    border-color: var(--coral);
}

.curriculum-card .card-number {
    position: absolute;
    left: 24px;
    top: 24px;
    color: #817c9c;
    font: 800 12px 'Manrope', sans-serif;
}

.curriculum-card h2 {
    font-size: 21px;
    color: var(--ink);
    margin: 15px 0 10px;
    line-height: 1.35;
}

.curriculum-card p {
    font-size: 13px;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}

.curriculum-image {
    width: calc(100% + 56px);
    height: 165px;
    object-fit: cover;
    margin: -28px -28px 20px;
    border-bottom: 1px solid var(--line);
}

.course-meta {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    margin-top: 16px;
}

.curriculum-card .text-link {
    margin-top: auto;
    padding-top: 22px;
    color: var(--coral);
}

.page-bottom-cta {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 42px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.page-bottom-cta h3 {
    font-size: clamp(22px, 2.5vw, 30px);
    color: var(--ink);
    margin: 8px 0 8px;
}

.page-bottom-cta p {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0;
    max-width: 580px;
    font-weight: 600;
}

.faq-help-box {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.help-box-icon {
    font-size: 34px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(115, 103, 240, 0.15);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.help-box-text {
    flex: 1;
}

.help-box-text h3 {
    font-size: 19px;
    color: var(--ink);
    margin: 0 0 6px;
}

.help-box-text p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 34px 0;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.site-footer p {
    margin: 0;
}

.site-footer > div {
    display: flex;
    gap: 24px;
    margin-right: auto;
}

.site-footer small {
    font-size: 10px;
    direction: ltr;
    color: #817c9c;
}

/* --------------------------------------------------------------------------
   14. Light Theme Overrides
   -------------------------------------------------------------------------- */
html[data-theme="light"] .site-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .trust-metrics-strip,
html[data-theme="light"] .about-metrics-bar,
html[data-theme="light"] .learning-process-section,
html[data-theme="light"] .home-testimonials-section {
    background: #fdfcfe;
    border-color: #ebe9f1;
}

html[data-theme="light"] .home-track-card,
html[data-theme="light"] .process-card,
html[data-theme="light"] .pillar-card,
html[data-theme="light"] .story-feature-item,
html[data-theme="light"] .pillar-box,
html[data-theme="light"] .teacher-card,
html[data-theme="light"] .story-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .interactive-tag,
html[data-theme="light"] .floating-badge,
html[data-theme="light"] .home-contact-form,
html[data-theme="light"] .page-bottom-cta,
html[data-theme="light"] .faq-help-box,
html[data-theme="light"] .curriculum-card,
html[data-theme="light"] .filter-button,
html[data-theme="light"] .meta-badge-item {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 8px 24px rgba(34, 41, 47, 0.06);
}

html[data-theme="light"] .home-contact-form input,
html[data-theme="light"] .home-contact-form textarea {
    background: #f7f8fc;
    border-color: #ebe9f1;
}

html[data-theme="light"] .studio-terminal,
html[data-theme="light"] .floating-editor {
    box-shadow: 0 25px 50px rgba(23, 33, 59, 0.16);
}

/* --------------------------------------------------------------------------
   15. Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .home-hero-section,
    .about-hero-section,
    .about-hero,
    .cta-container,
    .story-dual-layout,
    .about-pillars-grid,
    .page-studio-hero {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .page-studio-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-interactive-canvas,
    .about-console-wrap {
        width: 100%;
        min-height: 380px;
    }

    .metrics-row,
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-unit:nth-child(3),
    .metric-item:nth-child(3) {
        border-left: 0;
    }

    .process-steps-grid,
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .teacher-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-bottom-cta,
    .faq-help-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 26px;
    }

    .faq-quick-action {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 72px;
        padding-left: 12px;
        padding-right: 12px;
        gap: 6px;
        justify-content: space-between;
    }

    .site-header .logo-image {
        width: 104px;
    }

    .menu-toggle {
        display: flex;
        flex: 0 0 30px;
        background: none;
        border: 0;
        flex-direction: column;
        gap: 5px;
        padding: 6px;
        cursor: pointer;
    }

    .menu-toggle span {
        height: 2px;
        width: 22px;
        background: var(--ink);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        background: var(--navy);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        gap: 8px;
    }

    .main-nav.open {
        display: flex;
    }

    .theme-toggle {
        padding: 7px;
    }

    .theme-label {
        display: none;
    }

    .header-cta {
        gap: 6px;
        padding: 9px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .header-cta span {
        font-size: 14px;
    }

    .home-hero-section,
    .about-hero-section,
    .about-hero {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .main-heading,
    .hero-title,
    .about-hero-copy h1,
    .page-title {
        font-size: 36px;
    }

    .main-desc,
    .hero-desc,
    .page-subtitle {
        font-size: 13.5px;
    }

    .tag-projects,
    .tag-ages {
        position: static;
        margin-top: 12px;
    }

    .metrics-row,
    .metrics-container,
    .process-steps-grid,
    .home-track-grid,
    .method-cards-grid,
    .why-cards-grid,
    .faq-grid,
    .faq-page-grid,
    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    #aboutMethods {
        grid-template-columns: 1fr;
    }

    .stat-unit,
    .metric-item {
        border-left: 0;
        border-bottom: 1px solid var(--line);
        padding-bottom: 16px;
    }

    .stat-unit:last-child,
    .metric-item:last-child {
        border-bottom: 0;
    }

    .teacher-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cta-group,
    .hero-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .button,
    .hero-actions-row .button,
    .page-bottom-cta .button,
    .faq-help-box .button {
        width: 100%;
        justify-content: center;
    }

    .page-hero-meta-badge {
        flex-direction: column;
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .site-footer > div {
        margin-right: 0;
    }
}


/* ==========================================================================
   TEACHERS DIRECTORY PAGE STYLING
   ========================================================================== */

/* Standards Strip */
.coach-standards-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 30px;
}

.standard-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.standard-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    margin-bottom: 2px;
}

.standard-item strong {
    font-size: 14.5px;
    color: var(--ink);
}

.standard-item p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.standard-divider {
    width: 1px;
    height: 48px;
    background: var(--line);
}

/* Directory Header & Counter Badge */
.directory-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.directory-heading-row h2 {
    font-size: 26px;
    margin: 0 0 6px;
    color: var(--ink);
    font-weight: 800;
}

.directory-heading-row p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.teacher-count-badge {
    font-family: 'Cairo', 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--coral);
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.22);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* Teachers Grid & Cards */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.teacher-directory-card {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.teacher-directory-card:hover {
    transform: translateY(-4px);
    border-color: var(--coral);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.teacher-directory-card img,
.teacher-directory-card .teacher-placeholder {
    width: 95px;
    height: 95px;
    flex-basis: 95px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
    background: var(--sky);
}

.teacher-directory-card h2,
.teacher-directory-card h3 {
    color: var(--ink);
    font-size: 16px;
    margin: 0 0 5px;
    line-height: 1.35;
}

.teacher-directory-card p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* Teacher Skeleton Loaders */
.teacher-skeleton-card {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 127px;
}

.skeleton-avatar {
    width: 95px;
    height: 95px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Light Mode Overrides */
html[data-theme="light"] .coach-standards-strip,
html[data-theme="light"] .teacher-directory-card,
html[data-theme="light"] .teacher-skeleton-card {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 6px 20px rgba(23, 33, 59, 0.04);
}

html[data-theme="light"] .skeleton-avatar {
    background: rgba(0, 0, 0, 0.06);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coach-standards-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .standard-divider {
        display: none;
    }
}

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

    .directory-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* ==========================================================================
   HOMEPAGE INTERACTIVE MICRO-ANIMATIONS
   ========================================================================== */

/* 1. Terminal Floating Animations */
.anim-float-slow {
    animation: terminalFloat 6s ease-in-out infinite;
}

.anim-float-reverse {
    animation: badgeFloatRev 5s ease-in-out infinite;
}

.anim-float-delayed {
    animation: badgeFloatSlow 5.5s ease-in-out infinite;
    animation-delay: -2.75s;
}

@keyframes terminalFloat {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

@keyframes badgeFloatRev {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes badgeFloatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

/* 2. Glow and Pulse Effects */
.anim-glow {
    animation: ambientPulse 4s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% { transform: scale(0.92); opacity: 0.15; }
    100% { transform: scale(1.08); opacity: 0.32; }
}

.anim-pulse {
    animation: badgePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.online-indicator {
    display: inline-block;
    color: #50d890;
    margin-right: 5px;
    animation: blinkLight 1.8s infinite ease-in-out;
}

@keyframes blinkLight {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 3px #50d890); }
    50% { opacity: 0.35; filter: none; }
}

/* 3. Output Typing & Entrance Simulation */
.anim-slide-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.badge-bounce {
    display: inline-block;
    font-size: 20px;
    animation: miniBounce 3s ease-in-out infinite;
}

@keyframes miniBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px) scale(1.1); }
}

/* 4. Interactive Hover Micro-Interactions */
.hover-scale {
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.hover-scale:hover {
    transform: translateY(-3px) scale(1.015);
}

.hover-lift {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    border-color: var(--coral) !important;
}

.hover-card-tilt {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-card-tilt:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
    border-color: var(--coral);
}

.hover-card-tilt:hover .home-track-icon {
    transform: rotate(8deg) scale(1.12);
    transition: transform 0.28s ease;
}

.home-track-icon {
    transition: transform 0.28s ease;
}

.hover-glow:hover {
    box-shadow: 0 12px 30px rgba(115, 103, 240, 0.16);
    border-color: rgba(115, 103, 240, 0.4);
    transform: translateY(-5px);
}

.hover-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hover-btn:hover {
    transform: scale(1.12);
}

.anim-form-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.anim-form-card:focus-within {
    border-color: rgba(255, 159, 67, 0.45);
    box-shadow: 0 25px 55px rgba(255, 159, 67, 0.08);
}

/* 5. Smooth Page Entrance */
.anim-fade-in {
    animation: fadeInPage 0.8s ease-out both;
}

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

/* 6. Accessibility Safeguard */
@media (prefers-reduced-motion: reduce) {
    .anim-float-slow,
    .anim-float-reverse,
    .anim-float-delayed,
    .anim-glow,
    .anim-pulse,
    .badge-bounce,
    .online-indicator,
    .hover-card-tilt,
    .hover-scale {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   FANCY & INSPIRING CYBER-SPACE ANIMATIONS FOR EDUKID
   ========================================================================== */

/* 1. Ambient Stardust Particles & Meteors */
.space-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star-particle {
    position: absolute;
    color: var(--coral);
    font-size: 14px;
    opacity: 0.35;
    animation: twinkleFloat 6s ease-in-out infinite alternate;
}

.star-particle.p1 { top: 12%; left: 15%; animation-duration: 4.5s; font-size: 18px; color: var(--yellow); }
.star-particle.p2 { top: 28%; right: 18%; animation-duration: 7s; font-size: 12px; }
.star-particle.p3 { top: 65%; left: 8%; animation-duration: 5.2s; font-size: 20px; color: #7367f0; }
.star-particle.p4 { top: 78%; right: 12%; animation-duration: 6.2s; font-size: 16px; color: #50d890; }
.star-particle.p5 { top: 45%; left: 48%; animation-duration: 8s; font-size: 10px; color: var(--yellow); }

@keyframes twinkleFloat {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-15px) scale(1.2) rotate(45deg); opacity: 0.7; filter: drop-shadow(0 0 8px currentColor); }
    100% { transform: translateY(-30px) scale(0.9) rotate(90deg); opacity: 0.3; }
}

.meteor-streak {
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 159, 67, 0.8), transparent);
    transform: rotate(-35deg);
    opacity: 0;
    animation: meteorShower 10s linear infinite;
}

.meteor-streak.m1 { top: 10%; right: 20%; animation-delay: 2s; }
.meteor-streak.m2 { top: 50%; right: 40%; animation-delay: 7s; }

@keyframes meteorShower {
    0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
    10% { opacity: 1; }
    20% { transform: translateX(-350px) translateY(250px) rotate(-35deg); opacity: 0; }
    100% { opacity: 0; }
}

/* 2. Shimmering Headline & Sparkle Tags */
/* إصلاح محاذاة وتدرج عنوان الـ Hero */
.heading-highlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.shimmer-text {
    font-style: normal;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary-soft), var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerGrad 4s ease infinite;
    display: inline-block;
    line-height: 1.25;
    padding-bottom: 4px; /* لمنع قص أطراف الحروف الهابطة مثل الراء */
}

/* حركة طيران واهتزاز الصاروخ بشكل مستقل بألوانه الحقيقية */
.rocket-emoji {
    display: inline-block;
    font-size: 0.9em;
    animation: rocketHover 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 159, 67, 0.4));
}

@keyframes rocketHover {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-8deg);
    }
}

@keyframes shimmerGrad {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glow-tag {
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.25);
    animation: tagGlowPulse 3s ease-in-out infinite;
}

@keyframes tagGlowPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 159, 67, 0.15); }
    50% { box-shadow: 0 0 22px rgba(255, 159, 67, 0.4); }
}

.tag-sparkle {
    display: inline-block;
    animation: spinSparkle 4s linear infinite;
}

@keyframes spinSparkle {
    0% { transform: rotate(0deg) scale(0.9); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(0.9); }
}

/* 3. Rocket Button & Neon Outlines */
.fire-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(255, 159, 67, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fire-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 35px rgba(255, 159, 67, 0.55), 0 0 15px rgba(255, 202, 58, 0.4);
}

.btn-rocket {
    display: inline-block;
    transition: transform 0.3s ease;
}

.fire-button:hover .btn-rocket {
    transform: translate(-4px, -4px) rotate(-15deg);
}

.neon-outline {
    border: 1px solid rgba(115, 103, 240, 0.4);
    box-shadow: 0 0 15px rgba(115, 103, 240, 0.15);
    transition: all 0.3s ease;
}

.neon-outline:hover,
.neon-outline:focus,
.neon-outline:active {
    background: #7367f0;
    border-color: #7367f0;
    box-shadow: 0 0 25px rgba(115, 103, 240, 0.4);
    color: #fff;
    transform: translateY(-3px);
}

.arrow-bounce {
    display: inline-block;
    transition: transform 0.25s ease;
}

.neon-outline:hover .arrow-bounce {
    transform: translate(-3px, 3px);
}

/* 4. Mini Fireworks Burst around Terminal */
.firework-burst {
    position: absolute;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 1;
}

.burst-1 { top: 15%; right: 10%; animation: fireworkPop 4s infinite ease-out; }
.burst-2 { bottom: 20%; left: 8%; animation: fireworkPop 5s infinite ease-out 2s; }

.firework-burst i {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--yellow);
}

.firework-burst i:nth-child(1) { transform: translate(18px, -18px); background: #ff6b65; }
.firework-burst i:nth-child(2) { transform: translate(-22px, -12px); background: #50d890; }
.firework-burst i:nth-child(3) { transform: translate(14px, 20px); background: #7367f0; }
.firework-burst i:nth-child(4) { transform: translate(-16px, 18px); background: var(--coral); }
.firework-burst i:nth-child(5) { transform: translate(0, -25px); background: #ffd35c; }

@keyframes fireworkPop {
    0% { transform: scale(0.2); opacity: 0; }
    40% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 6px #ffd35c); }
    70%, 100% { transform: scale(2.2); opacity: 0; }
}

/* 5. Orbiting Planets & Floating Badges */
.orbit-item {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    z-index: 3;
}

.orbit-star {
    top: 5%;
    left: 20%;
    animation: orbitSpinFloat 8s ease-in-out infinite;
}

.orbit-planet {
    bottom: -10px;
    right: 30%;
    animation: orbitSpinFloat 9s ease-in-out infinite 3s;
}

@keyframes orbitSpinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(25deg); }
}

.badge-orbit-a {
    animation: floatOrbitA 5.5s ease-in-out infinite;
}

.badge-orbit-b {
    animation: floatOrbitB 6.5s ease-in-out infinite 1.5s;
}

@keyframes floatOrbitA {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatOrbitB {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}

.tag-ico-bounce {
    font-size: 22px;
    display: inline-block;
    animation: miniHop 2.5s ease-in-out infinite;
}

@keyframes miniHop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22) rotate(-8deg); }
}

/* 6. Glowing Cyber Terminal */
.cyber-terminal {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 25px rgba(115, 103, 240, 0.25) !important;
    border: 1px solid rgba(115, 103, 240, 0.35) !important;
    animation: terminalLevitate 6s ease-in-out infinite;
}

@keyframes terminalLevitate {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-12px) rotate(-0.5deg); }
}

.cursor-laser {
    box-shadow: 0 0 8px var(--coral);
}

.neon-badge {
    background: rgba(80, 216, 144, 0.15) !important;
    border: 1px solid rgba(80, 216, 144, 0.4);
    box-shadow: 0 0 10px rgba(80, 216, 144, 0.3);
}

.cyber-output {
    border: 1px solid rgba(80, 216, 144, 0.3) !important;
    box-shadow: 0 0 15px rgba(80, 216, 144, 0.15);
    background: rgba(80, 216, 144, 0.08) !important;
}

.run-icon-spin {
    display: inline-block;
    color: #ffca3a;
    margin-left: 6px;
    animation: spinSlow 3s linear infinite;
}

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

.online-indicator-glow {
    color: #50d890;
    margin-right: 5px;
    animation: pulseDotGlow 1.8s infinite;
}

@keyframes pulseDotGlow {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px #50d890); }
    50% { opacity: 0.35; filter: none; }
}

/* 7. Hover Card Tilt & Glowing Borders */
.card-cyber-hover {
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    position: relative;
}

.card-cyber-hover:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--coral) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 159, 67, 0.25);
}

.icon-levitate {
    transition: transform 0.3s ease;
}

.card-cyber-hover:hover .icon-levitate {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 20px rgba(115, 103, 240, 0.4);
}

.card-glow-interactive {
    transition: all 0.3s ease;
}

.card-glow-interactive:hover {
    transform: translateY(-6px);
    border-color: var(--yellow) !important;
    box-shadow: 0 15px 35px rgba(255, 202, 58, 0.15);
}

.pulse-num {
    animation: pulseNumGlow 3s infinite ease-in-out;
}

@keyframes pulseNumGlow {
    0%, 100% { text-shadow: 0 0 6px rgba(255, 159, 67, 0.3); }
    50% { text-shadow: 0 0 16px rgba(255, 159, 67, 0.8); }
}

/* 8. Stats Glowing Hover */
.hover-neon-box {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hover-neon-box:hover {
    transform: translateY(-5px);
}

.hover-neon-box:hover .counter-glow {
    filter: drop-shadow(0 0 10px var(--coral));
}

/* 9. Cyber Form Accents */
.cyber-form {
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 25px rgba(115, 103, 240, 0.15) !important;
}

.form-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9f43, #7367f0, #50d890, #ff9f43);
    background-size: 200% 100%;
    animation: flowLine 3s linear infinite;
}

@keyframes flowLine {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.sparkle-bullet {
    display: inline-block;
    color: var(--yellow);
    margin-left: 6px;
    animation: pulseBullet 2s infinite ease-in-out;
}

@keyframes pulseBullet {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Light Theme Support */
html[data-theme="light"] .cyber-terminal {
    box-shadow: 0 25px 50px rgba(23, 33, 59, 0.18), 0 0 25px rgba(115, 103, 240, 0.15) !important;
}

html[data-theme="light"] .card-cyber-hover:hover {
    box-shadow: 0 18px 40px rgba(23, 33, 59, 0.12), 0 0 20px rgba(255, 159, 67, 0.2);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .star-particle,
    .meteor-streak,
    .firework-burst,
    .orbit-item,
    .badge-orbit-a,
    .badge-orbit-b,
    .cyber-terminal,
    .shimmer-text,
    .tag-sparkle {
        animation: none !important;
        transform: none !important;
    }
}



/* ==========================================================================
   CURRICULUM QUEST PAGE ENHANCEMENTS
   ========================================================================== */

/* Hero mini statistics bar */
.curriculum-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.hero-mini-stat strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--coral);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-mini-stat span {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
}

.hero-stat-sep {
    width: 1px;
    height: 30px;
    background: var(--line);
}

.meta-badge-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Quest Levels Progression Stepper */
.quest-progression-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.quest-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.quest-level-tag {
    font-family: 'Manrope', 'Cairo', sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--coral);
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
}

.quest-icon {
    font-size: 18px;
}

.quest-step strong {
    font-size: 14.5px;
    color: var(--ink);
}

.quest-step p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.quest-connector {
    width: 36px;
    height: 2px;
    background: var(--line);
    position: relative;
}

.quest-connector span {
    position: absolute;
    top: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 8px var(--coral);
}

/* Filter Section Header */
.curriculum-filter-container {
    margin-bottom: 30px;
}

.filter-headline h3 {
    font-size: 15px;
    color: var(--ink);
    margin: 0 0 14px;
    font-weight: 800;
}

/* Enhanced CTA Glow */
.curriculum-cta-glow {
    background: linear-gradient(135deg, #1b1735, #100e20) !important;
    border: 1px solid rgba(115, 103, 240, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(115, 103, 240, 0.15) !important;
}

/* Light Theme Adjustments */
html[data-theme="light"] .quest-progression-bar {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 8px 24px rgba(23, 33, 59, 0.05);
}

html[data-theme="light"] .curriculum-cta-glow {
    background: linear-gradient(135deg, #f7f5ff, #ffffff) !important;
    border-color: #ebe9f1 !important;
    box-shadow: 0 10px 30px rgba(115, 103, 240, 0.1) !important;
}

/* Responsive Adaptation */
@media (max-width: 992px) {
    .quest-progression-bar {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quest-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .curriculum-hero-stats {
        gap: 14px;
    }

    .hero-stat-sep {
        display: none;
    }
}


/* ==========================================================================
   GAMIFIED CURRICULUM CARDS & WORKING FILTERS
   ========================================================================== */

/* 1. أزرار الفلتر التفاعلية */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 35px;
}

.filter-button {
    background: var(--navy);
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 12px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.filter-button:hover {
    border-color: var(--coral);
    color: var(--coral);
    transform: translateY(-2px);
}

.filter-button.active {
    background: linear-gradient(135deg, #7367f0, #9288ff);
    border-color: #7367f0;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(115, 103, 240, 0.4);
    transform: translateY(-3px);
}

/* 2. شبكة البطاقات */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* 3. كارت الكورس الجديد بتصميم الحجرة الرقمية */
.curriculum-gamified-card {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.curriculum-gamified-card:hover {
    transform: translateY(-8px);
    border-color: var(--coral);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 159, 67, 0.2);
}

/* ترويسة الكارت */
.card-top-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-seq-num {
    font-family: 'Manrope', monospace;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: 6px;
}

.card-grade-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--coral);
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

/* غرفة الصورة مع تأثير العزل والضوء (حل مشكلة الصور ذات الخلفية البيضاء) */
.card-visual-chamber {
    height: 160px;
    background: radial-gradient(circle at center, rgba(115, 103, 240, 0.18), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.chamber-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.35), transparent 70%);
    pointer-events: none;
    transition: transform 0.4s ease;
}

.curriculum-gamified-card:hover .chamber-glow {
    transform: scale(1.6);
}

.card-api-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.35s ease;
}

.curriculum-gamified-card:hover .card-api-img {
    transform: scale(1.08) translateY(-4px);
}

.card-fallback-icon {
    font-size: 54px;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* نصوص الكارت */
.card-info-pane {
    flex: 1;
    margin-bottom: 20px;
}

.card-main-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.35;
}

.card-main-desc {
    font-size: 13px;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}

/* الشريط السفلي وأزرار الإطلاق */
.card-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    gap: 8px;
}

.card-specs {
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
}

.card-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.3);
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.card-launch-btn:hover {
    background: var(--coral);
    color: #2b1f07;
    transform: translateX(-3px);
}

/* كرت عند عدم وجود نتائج */
.no-curriculum-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--navy);
    border: 1px dashed var(--line);
    border-radius: 22px;
}

.no-curriculum-box span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.no-curriculum-box h3 {
    color: var(--ink);
    font-size: 20px;
    margin: 0 0 8px;
}

.no-curriculum-box p {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0;
}

/* دعم الوضع الفاتح Light Mode */
html[data-theme="light"] .curriculum-gamified-card,
html[data-theme="light"] .filter-button {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 8px 24px rgba(23, 33, 59, 0.05);
}

html[data-theme="light"] .card-visual-chamber {
    background: #f8f7fd;
    border-color: #ebe9f1;
}

html[data-theme="light"] .card-main-title {
    color: #17213b;
}

/* تجاوب الشاشات */
@media (max-width: 992px) {
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    .filter-button {
        white-space: nowrap;
    }
}


/* ==========================================================================
   ABOUT PAGE REFINED STYLING & GLOW ENHANCEMENTS
   ========================================================================== */

.about-redesign {
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

/* Social Proof Avatars Glow */
.social-proof-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.proof-avatars {
    display: flex;
    direction: ltr;
}

.avatar-glow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(115, 103, 240, 0.15);
    border: 2px solid var(--cream);
    display: grid;
    place-items: center;
    font-size: 15px;
    margin-left: -10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.avatar-glow img {
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: contain;
}

.avatar-glow:hover {
    transform: translateY(-4px) scale(1.15);
    z-index: 2;
}

.counter-glow {
    color: var(--coral);
}

/* Radar Animation for Highlights */
.anim-radar {
    box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.4);
    animation: radarPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes radarPulse {
    to {
        box-shadow: 0 0 0 10px rgba(255, 159, 67, 0);
    }
}

/* Story Features List */
.story-feature-list {
    display: grid;
    gap: 16px;
}

.story-feature-item {
    display: flex;
    gap: 20px;
    padding: 24px 26px;
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 18px;
    position: relative;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.story-feature-item:hover {
    transform: translateX(-5px);
    border-color: var(--coral);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.feature-idx {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: var(--coral);
    margin-top: 3px;
    background: rgba(255, 159, 67, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.story-feature-item h3 {
    font-size: 18px;
    color: var(--ink);
    margin: 0 0 6px;
}

.story-feature-item p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

/* Light Theme Support */
html[data-theme="light"] .story-feature-item {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 8px 24px rgba(23, 33, 59, 0.05);
}

html[data-theme="light"] .avatar-glow {
    border-color: #ffffff;
    background: #f1effd;
}



/* ==========================================================================
   TESTIMONIALS PAGE ENHANCEMENTS
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--coral);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 159, 67, 0.15);
}

.testimonial-card .testimonial-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.testimonial-card .quote-mark {
    font-family: 'Manrope', serif;
    font-size: 42px;
    line-height: 1;
    color: var(--coral);
    display: block;
    margin-bottom: 8px;
    opacity: 0.8;
}

.testimonial-card > p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink);
    margin: 0 0 24px;
    font-weight: 600;
    flex: 1;
}

.testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.testimonial-card .story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.2), rgba(188, 185, 249, 0.2));
    border: 1px solid var(--coral);
    display: grid;
    place-items: center;
    color: var(--coral);
    font-size: 15px;
    font-weight: 900;
    flex-shrink: 0;
}

.testimonial-card .story-avatar img {
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: contain;
}

.testimonial-card footer strong {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
}

.testimonial-card footer small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Skeleton Loaders for Testimonials */
.testimonial-skeleton-card {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.skeleton-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

/* Light Theme Support */
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .testimonial-skeleton-card {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 8px 24px rgba(23, 33, 59, 0.05);
}

html[data-theme="light"] .skeleton-avatar-mini {
    background: rgba(0, 0, 0, 0.06);
}

/* Responsiveness */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========================================================================
   GAMIFIED LOGIN PORTAL PAGE STYLING
   ========================================================================== */

.login-page {
    padding-top: 60px;
    padding-bottom: 95px;
    position: relative;
    z-index: 1;
}

.login-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Kpata-kpata Grid fɔ di Login Pɔrtal dɛn */
.login-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1040px;
    margin: 0 auto 45px;
}

.login-portal-card {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.login-portal-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
}

/* Fɔ di Pɛrɛnt Kad */
.portal-parent:hover {
    border-color: #7367f0;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), 0 0 25px rgba(115, 103, 240, 0.25);
}

.portal-parent .portal-tag {
    background: rgba(115, 103, 240, 0.12);
    border: 1px solid rgba(115, 103, 240, 0.3);
    color: #a49aff;
}

.portal-parent .portal-status-dot {
    color: #7367f0;
}

.portal-parent .frame-ambient-glow {
    background: radial-gradient(circle, rgba(115, 103, 240, 0.35), transparent 70%);
}

.portal-parent .portal-action-cta {
    background: rgba(115, 103, 240, 0.12);
    border: 1px solid rgba(115, 103, 240, 0.3);
    color: #c5baff;
}

.portal-parent:hover .portal-action-cta {
    background: #7367f0;
    color: #ffffff;
}

/* Fɔ di Pikin Kad */
.portal-kid:hover {
    border-color: var(--coral);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 159, 67, 0.25);
}

.portal-kid .portal-tag {
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.3);
    color: var(--coral);
}

.portal-kid .portal-status-dot {
    color: var(--coral);
}

.portal-kid .frame-ambient-glow {
    background: radial-gradient(circle, rgba(255, 159, 67, 0.35), transparent 70%);
}

.portal-kid .portal-action-cta {
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.3);
    color: var(--coral);
}

.portal-kid:hover .portal-action-cta {
    background: var(--coral);
    color: #2b1f07;
}

/* Kad Header */
.portal-badge-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.portal-tag {
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.portal-status-dot {
    font-size: 11px;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    animation: pulseDot 2s infinite ease-in-out;
}

/* Foto Frem wit Glow */
.portal-image-frame {
    height: 220px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
}

.frame-ambient-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.login-portal-card:hover .frame-ambient-glow {
    transform: scale(1.6);
}

.portal-image-frame img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
    transition: transform 0.35s ease;
}

.login-portal-card:hover .portal-image-frame img {
    transform: scale(1.06) translateY(-4px);
}

/* Tekst Kɔntɛnt */
.portal-text-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portal-role-kicker {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
}

.portal-text-content h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 10px;
}

.portal-text-content p {
    font-size: 13px;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 24px;
    flex: 1;
}

.portal-action-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.portal-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.login-portal-card:hover .portal-arrow {
    transform: translateX(-5px);
}

/* Hɛlp Strip na di Bɔtɔm */
.login-help-strip {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

.help-bubble {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 202, 58, 0.12);
    border: 1px solid rgba(255, 202, 58, 0.25);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.login-help-strip > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-help-strip strong {
    font-size: 14px;
    color: var(--ink);
}

.login-help-strip small {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* Laayt Mod Sɔpɔt */
html[data-theme="light"] .login-portal-card,
html[data-theme="light"] .login-help-strip {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 8px 24px rgba(23, 33, 59, 0.05);
}

html[data-theme="light"] .portal-image-frame {
    background: #f7f6fd;
}

html[data-theme="light"] .portal-text-content h2 {
    color: #17213b;
}

/* Mobayl ɛn Tablɛt Skrin dɛn */
@media (max-width: 900px) {
    .login-options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .login-help-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
        gap: 16px;
    }

    .login-help-strip .button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   CUSTOM REFINED FOOTER (INSPIRED BY THE NEW MOCKUP)
   ========================================================================== */

.site-custom-footer {
    background: #0f0d1e;
    border-top: 1px solid var(--line);
    padding-top: 45px;
    padding-bottom: 25px;
    position: relative;
    z-index: 10;
}

/* 1. Header Row (Top Row) */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1.5px solid #7367f0;
    color: #7367f0;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.footer-contact-button .btn-arrow-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #7367f0;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    transition: transform 0.25s ease;
}

.footer-contact-button:hover {
    background: rgba(115, 103, 240, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(115, 103, 240, 0.25);
}

.footer-contact-button:hover .btn-arrow-icon {
    transform: rotate(45deg);
}

.footer-logo-box .logo-image {
    width: 145px;
    height: auto;
    object-fit: contain;
}

.footer-divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 35px;
}

/* 2. Middle Row (Contact + Links) */
.footer-middle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* جهة معلومات التواصل وأزرار السوشيال */
.footer-contact-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.contact-info-item .info-icon {
    font-size: 16px;
    color: #7367f0;
}

.contact-info-item .info-text b {
    color: var(--muted);
    font-weight: 700;
}

.contact-info-item:hover {
    color: var(--coral);
}

/* أزرار السوشيال ميديا */
.footer-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(115, 103, 240, 0.4);
    background: rgba(115, 103, 240, 0.05);
    color: #a49aff;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
}

.social-btn:hover {
    background: #7367f0;
    color: #ffffff;
    border-color: #7367f0;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(115, 103, 240, 0.35);
}

/* جهة روابط التنقل */
.footer-links-side {
    display: flex;
    gap: 80px;
}

.footer-col .col-title {
    font-size: 15px;
    font-weight: 800;
    color: #a49aff;
    margin: 0 0 18px 0;
}

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

.footer-col .col-links a {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-col .col-links a:hover {
    color: var(--coral);
    transform: translateX(-4px);
    display: inline-block;
}

/* 3. Bottom Row */
.footer-bottom-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 35px 0 20px 0;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-partners-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.partner-icon {
    font-size: 17px;
    color: var(--muted);
    opacity: 0.7;
    cursor: default;
    transition: opacity 0.2s ease;
}

.partner-icon:hover {
    opacity: 1;
}

.footer-copyright-text p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

/* 4. Light Mode Overrides */
html[data-theme="light"] .site-custom-footer {
    background: #f7f6fc;
    border-color: #ebe9f1;
}

html[data-theme="light"] .footer-divider-line,
html[data-theme="light"] .footer-bottom-divider {
    background: #ebe9f1;
}

html[data-theme="light"] .contact-info-item {
    color: #17213b;
}

html[data-theme="light"] .social-btn {
    background: #ffffff;
    border-color: rgba(115, 103, 240, 0.3);
    color: #7367f0;
}

html[data-theme="light"] .social-btn:hover {
    background: #7367f0;
    color: #ffffff;
}

/* 5. Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
    .footer-middle-row {
        flex-direction: column-reverse;
        gap: 35px;
    }

    .footer-links-side {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    #aboutMethods > .method-card {
        flex-direction: column;
        align-items: stretch;
    }

    #aboutMethods .method-card img {
        flex: none;
        width: 100%;
        height: 175px;
    }

    .footer-top-row {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
    }

    .footer-links-side {
        flex-direction: column;
        gap: 25px;
    }

    .footer-bottom-row {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Homepage video, partner, platform offer and WhatsApp chat sections
   -------------------------------------------------------------------------- */
.home-video-section,
.home-partners-section {
    padding-top: 85px;
    padding-bottom: 85px;
}

.home-video-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--navy);
    overflow: hidden;
}

.home-video-copy h2,
.home-platform-offers h2 {
    color: var(--ink);
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.3;
    margin: 0 0 15px;
}

.home-video-copy h2 em,
.home-platform-offers h2 em {
    color: var(--coral);
    font-style: normal;
}

.home-video-copy p {
    max-width: 460px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 24px;
}

.home-video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border: 1px solid rgba(255, 159, 67, 0.3);
    border-radius: 18px;
    background: #100e20;
}

.page-mascot {
    display: block;
    width: 100px;
    height: 110px;
    margin-inline-start: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(115, 103, 240, 0.22));
}

html[data-theme="light"] .page-mascot {
    filter: drop-shadow(0 8px 18px rgba(112, 79, 230, 0.16));
}

.home-partners-section {
    padding-top: 45px;
}

.payment-logo-slider {
    overflow: hidden;
    padding: 8px 0 22px;
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.payment-logo-track,
.payment-logo-group {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
}

.payment-logo-track {
    animation: payment-logo-scroll 28s linear infinite;
}

.payment-logo-slider:hover .payment-logo-track,
.payment-logo-slider:focus-within .payment-logo-track {
    animation-play-state: paused;
}

.payment-logo-card {
    display: grid;
    place-items: center;
    width: 190px;
    height: 112px;
    flex: 0 0 auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--navy);
}

.payment-logo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes payment-logo-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .payment-logo-track {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }

    .payment-logo-group[aria-hidden="true"] {
        display: none;
    }
    font-weight: 700;
}

.partner-avatar {
    position: absolute;
    width: 82px;
    height: 92px;
    object-fit: contain;
    inset-inline-end: -28px;
    bottom: -30px;
}

.home-platform-offers {
    padding: 85px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--navy);
}

.platform-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.platform-offer-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--cream);
    transition: transform var(--transition), border-color var(--transition);
}

.platform-offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--coral);
}

.platform-offer-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(115, 103, 240, 0.15);
    color: var(--coral);
    font: 800 25px 'Manrope', sans-serif;
}

.platform-scratch {
    background: rgba(255, 202, 58, 0.15);
    color: #e0a900;
}

.platform-offer-card h3 {
    margin: 18px 0 7px;
    color: var(--ink);
    font-size: 17px;
}

.platform-offer-card p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.platform-offer-card a {
    margin-top: auto;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
}

.platform-offer-card a span {
    margin-inline-start: 6px;
}


/* --------------------------------------------------------------------------
   Privacy policy layout & Fixed / Sticky Sidebar
   -------------------------------------------------------------------------- */
.privacy-content-layout {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    align-items: stretch;
    gap: 32px;
    padding-bottom: 90px;
}

.privacy-sidebar {
    min-width: 0;
    height: 100%;
    position: relative;
    z-index: 10;
}

.privacy-main-body {
    min-width: 0;
}

.sidebar-sticky-card,
.policy-card {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sidebar-sticky-card {
    position: -webkit-sticky;
    position: sticky;
    top: 32px;
    padding: 22px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.sidebar-sticky-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), #00cfe8, var(--yellow));
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-icon {
    font-size: 18px;
    line-height: 1;
}

.sidebar-title {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.sidebar-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--coral);
    background: rgba(115, 103, 240, 0.12);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(115, 103, 240, 0.25);
}

.privacy-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.privacy-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    position: relative;
    transition: all 0.22s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.privacy-nav .nav-link .nav-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: rgba(115, 103, 240, 0.1);
    color: var(--coral);
    font: 800 11px 'Manrope', sans-serif;
    transition: all 0.22s ease;
}

.privacy-nav .nav-link .nav-text {
    flex: 1 1 auto;
    transition: color 0.2s ease;
}

.privacy-nav .nav-link .nav-arrow {
    flex: 0 0 auto;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.22s ease;
    color: var(--coral);
}

.privacy-nav .nav-link:hover {
    background: rgba(115, 103, 240, 0.08);
    color: var(--ink);
    transform: translateX(-3px);
}

.privacy-nav .nav-link:hover .nav-arrow {
    opacity: 0.6;
    transform: translateX(0);
}

.privacy-nav .nav-link.active {
    background: rgba(115, 103, 240, 0.15);
    border-color: rgba(115, 103, 240, 0.35);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(115, 103, 240, 0.12);
}

.privacy-nav .nav-link.active .nav-num {
    background: var(--coral);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(115, 103, 240, 0.4);
}

.privacy-nav .nav-link.active .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-help-box {
    margin-top: 16px;
    padding: 13px;
    border-radius: 12px;
    background: rgba(115, 103, 240, 0.06);
    border: 1px dashed rgba(115, 103, 240, 0.25);
}

.sidebar-help-box .help-box-content {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.sidebar-help-box .help-icon {
    font-size: 18px;
    line-height: 1;
}

.sidebar-help-box .help-text strong {
    display: block;
    font-size: 11.5px;
    color: var(--ink);
    font-weight: 700;
}

.sidebar-help-box .help-text p {
    margin: 0;
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.4;
}

.sidebar-help-btn {
    display: block;
    text-align: center;
    padding: 6px 10px;
    border-radius: 7px;
    background: var(--coral);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sidebar-help-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.privacy-main-body {
    display: grid;
    gap: 18px;
}

.policy-card {
    padding: 28px;
    scroll-margin-top: 36px;
}

.card-badge-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.policy-num,
.policy-tag {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
}

.policy-num {
    padding: 4px 9px;
    background: rgba(115, 103, 240, 0.14);
    color: var(--coral);
}

.policy-tag {
    color: var(--muted);
}

.policy-card h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(20px, 2.3vw, 25px);
    line-height: 1.45;
}

.policy-card p,
.policy-list {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.policy-card p {
    margin: 0 0 14px;
}

.policy-list {
    margin: 0;
    padding-inline-start: 22px;
}

.policy-list li + li {
    margin-top: 10px;
}

.policy-note,
.support-contact-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(115, 103, 240, 0.22);
    border-radius: 12px;
    background: rgba(115, 103, 240, 0.08);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.8;
}

.note-icon,
.contact-mail-icon,
.type-icon,
.r-icon {
    flex: 0 0 auto;
    font-size: 20px;
}

.data-types-grid,
.refund-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.data-type-box,
.refund-step {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
}

.data-type-box h4,
.refund-step strong,
.support-contact-box strong {
    display: block;
    margin: 8px 0 5px;
    color: var(--ink);
    font-size: 13px;
}

.data-type-box p,
.refund-step p,
.support-contact-box p {
    margin: 0;
    font-size: 12px;
}

.refund-highlight-card {
    border-color: rgba(115, 103, 240, 0.4);
}

.support-contact-box {
    margin-top: 18px;
}

.email-badge {
    display: inline-block;
    margin-top: 8px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

html[data-theme="light"] .sidebar-sticky-card,
html[data-theme="light"] .policy-card {
    background: #ffffff;
    border-color: #ebe9f1;
    box-shadow: 0 10px 30px rgba(23, 33, 59, 0.06);
}

html[data-theme="light"] .sidebar-header {
    border-color: #ebe9f1;
}

html[data-theme="light"] .privacy-nav .nav-link {
    color: #636578;
}

html[data-theme="light"] .privacy-nav .nav-link:hover {
    background: #f7f6fc;
    color: var(--coral-dark);
}

html[data-theme="light"] .privacy-nav .nav-link.active {
    background: #f0edff;
    border-color: rgba(115, 103, 240, 0.35);
    color: var(--coral-dark);
    box-shadow: 0 4px 14px rgba(115, 103, 240, 0.08);
}

html[data-theme="light"] .sidebar-help-box {
    background: #faf9ff;
    border-color: #e4e0fa;
}

html[data-theme="light"] .data-type-box,
html[data-theme="light"] .refund-step {
    background: #f7f6fc;
    border-color: #ebe9f1;
}

/* --------------------------------------------------------------------------
   Enhanced Legal & Policy Components (Terms, Guarantees, Refund Policy)
   -------------------------------------------------------------------------- */

/* Language switcher */
.policy-lang-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(115, 103, 240, 0.1);
    border: 1px solid rgba(115, 103, 240, 0.25);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 4px;
    margin-top: 18px;
    backdrop-filter: blur(8px);
}

.policy-lang-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.policy-lang-btn:hover {
    color: var(--ink);
}

.policy-lang-btn.active {
    background: var(--coral);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(115, 103, 240, 0.35);
}

/* Document Meta Line */
.doc-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--line);
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(115, 103, 240, 0.14);
    color: var(--coral);
    border: 1px solid rgba(115, 103, 240, 0.25);
}

.doc-badge.badge-guarantee {
    background: rgba(0, 207, 232, 0.12);
    color: #00cfe8;
    border-color: rgba(0, 207, 232, 0.3);
}

.doc-badge.badge-financial {
    background: rgba(254, 169, 39, 0.12);
    color: #fea927;
    border-color: rgba(254, 169, 39, 0.3);
}

.doc-date-info {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Clause List (01 - 10) */
.policy-clauses-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.policy-clause-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: all 0.22s ease;
}

.policy-clause-item:hover {
    border-color: rgba(115, 103, 240, 0.35);
    background: rgba(115, 103, 240, 0.04);
    transform: translateY(-2px);
}

.clause-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    background: var(--coral);
    color: #ffffff;
    font: 800 13px 'Manrope', sans-serif;
    box-shadow: 0 3px 10px rgba(115, 103, 240, 0.3);
}

.clause-body {
    flex: 1 1 auto;
    min-width: 0;
}

.clause-title {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.clause-text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

/* Guarantees 4-Grid */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.guarantee-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarantee-card:hover {
    border-color: #00cfe8;
    box-shadow: 0 8px 24px rgba(0, 207, 232, 0.12);
    transform: translateY(-3px);
}

.guarantee-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(0, 207, 232, 0.16);
    color: #00cfe8;
    font: 800 12px 'Manrope', sans-serif;
}

.guarantee-card h3 {
    margin: 0;
    font-size: 15px;
    color: var(--ink);
    font-weight: 800;
}

.guarantee-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    color: var(--muted);
}

/* In short 4-Grid */
.in-short-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.short-box {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(115, 103, 240, 0.04);
    transition: all 0.2s ease;
}

.short-box:hover {
    border-color: rgba(115, 103, 240, 0.35);
    background: rgba(115, 103, 240, 0.07);
}

.short-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.short-box-icon {
    font-size: 18px;
    line-height: 1;
}

.short-box-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}

.short-box-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted);
}

/* Refund Formula Banner */
.refund-formula-banner {
    padding: 22px 20px;
    margin: 20px 0;
    border: 2px dashed rgba(115, 103, 240, 0.4);
    border-radius: 16px;
    background: rgba(115, 103, 240, 0.08);
    text-align: center;
    box-shadow: 0 4px 20px rgba(115, 103, 240, 0.08);
}

.formula-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.formula-equation {
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 800;
    color: var(--ink);
    direction: ltr;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(115, 103, 240, 0.2);
}

.formula-equation.ar-eq {
    direction: rtl;
}

/* Policy Callout Boxes */
.policy-callout-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    margin: 18px 0;
    font-size: 13px;
    line-height: 1.8;
}

.callout-amber {
    background: rgba(254, 169, 39, 0.1);
    border: 1px solid rgba(254, 169, 39, 0.35);
    color: var(--ink);
}

.callout-purple {
    background: rgba(115, 103, 240, 0.09);
    border: 1px solid rgba(115, 103, 240, 0.3);
    color: var(--ink);
}

.callout-icon {
    font-size: 20px;
    flex: 0 0 auto;
    line-height: 1.2;
}

/* 4-Step Refund Application Process */
.refund-process-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.process-step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: all 0.22s ease;
}

.process-step-item:hover {
    border-color: rgba(115, 103, 240, 0.35);
    transform: translateY(-2px);
}

.process-step-num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--coral);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 800 13px 'Manrope', sans-serif;
    box-shadow: 0 3px 10px rgba(115, 103, 240, 0.35);
}

.process-step-body {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.85;
    color: var(--muted);
}

.process-step-body strong {
    color: var(--ink);
    display: block;
    margin-bottom: 4px;
}

/* Policy Support Banner */
.policy-support-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.12), rgba(0, 207, 232, 0.08));
    border: 1px solid rgba(115, 103, 240, 0.28);
    margin-top: 24px;
}

.policy-support-banner a {
    color: var(--coral);
    font-weight: 700;
}

/* Light mode overrides for legal components */
html[data-theme="light"] .policy-clause-item,
html[data-theme="light"] .guarantee-card,
html[data-theme="light"] .process-step-item {
    background: #ffffff;
    border-color: #ebe9f1;
}

html[data-theme="light"] .policy-clause-item:hover,
html[data-theme="light"] .guarantee-card:hover,
html[data-theme="light"] .process-step-item:hover {
    background: #faf9ff;
    border-color: rgba(115, 103, 240, 0.3);
}

html[data-theme="light"] .short-box {
    background: #f7f6fc;
    border-color: #ebe9f1;
}

html[data-theme="light"] .formula-equation {
    background: #ffffff;
    border-color: #e4e0fa;
    color: #17213b;
}

html[data-theme="light"] .refund-formula-banner {
    background: #f4f2ff;
    border-color: rgba(115, 103, 240, 0.35);
}

html[data-theme="light"] .callout-amber {
    background: #fff9ed;
    border-color: #fdd88a;
}

html[data-theme="light"] .callout-purple {
    background: #f5f3ff;
    border-color: #d6d0fa;
}

html[data-theme="light"] .policy-support-banner {
    background: linear-gradient(135deg, #f5f3ff, #eef9fb);
    border-color: #dcd7fa;
}

/* LTR Support for English view */
.privacy-page-wrap[data-active-lang="en"] {
    direction: ltr;
    text-align: left;
}

.privacy-page-wrap[data-active-lang="en"] .privacy-nav .nav-arrow {
    transform: rotate(180deg);
}

.privacy-page-wrap[data-active-lang="en"] .privacy-nav .nav-link:hover .nav-arrow,
.privacy-page-wrap[data-active-lang="en"] .privacy-nav .nav-link.active .nav-arrow {
    transform: rotate(180deg) translateX(0);
}

.privacy-page-wrap[data-active-lang="en"] .page-hero-content {
    text-align: left;
}

@media (max-width: 992px) {
    .privacy-content-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .privacy-sidebar {
        position: static;
    }

    .sidebar-help-box {
        display: none;
    }

    .privacy-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .privacy-nav .nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .privacy-nav .nav-link .nav-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .policy-card {
        padding: 20px 16px;
    }

    .data-types-grid,
    .refund-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .support-contact-box {
        padding: 13px;
    }
}

@media (max-width: 360px) {
    .canvas-ambient-light,
    .canvas-glow {
        width: min(280px, calc(100vw - 40px));
        height: min(280px, calc(100vw - 40px));
    }
}

html[data-theme="light"] .curriculum-quest-page .filter-button.active,
html[data-theme="light"] .curriculum-quest-page .filter-button.active:hover {
    background: linear-gradient(135deg, #7367f0, #9288ff);
    border-color: #7367f0;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(115, 103, 240, 0.3);
}

.page-studio-hero,
.home-hero-section,
.about-hero-section,
.login-heading {
    animation: sectionEntrance 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.reveal-card {
    animation: cardEntrance 550ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    animation-delay: calc(var(--card-index, 0) * 60ms);
}

.curriculum-quest-page .quest-step {
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.curriculum-quest-page .quest-step:hover {
    transform: translateY(-5px);
    border-color: var(--coral);
    box-shadow: 0 14px 30px rgba(115, 103, 240, 0.16);
}

.curriculum-quest-page .filter-button:focus-visible,
.curriculum-quest-page .card-launch-btn:focus-visible {
    outline: 3px solid rgba(115, 103, 240, 0.45);
    outline-offset: 3px;
}

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

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .page-studio-hero,
    .home-hero-section,
    .about-hero-section,
    .login-heading,
    .reveal-card,
    .curriculum-quest-page .filter-button,
    .curriculum-quest-page .quest-step {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .home-video-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
    }

    .platform-offer-grid {
        grid-template-columns: 1fr;
    }

    .payment-logo-card {
        width: 150px;
        height: 92px;
    }

    .home-video-section,
    .home-partners-section,
    .home-platform-offers {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .live-chat {
        inset-inline-start: 14px;
        bottom: 14px;
    }
}

/* ==============================================================================
   EDUKID COOKIE CONSENT & SPEED BOOSTER BANNER (Luxury Cyber Floating Card)
   ============================================================================== */
.edukid-cookie-banner {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    left: auto !important;
    z-index: 2147483640 !important;
    max-width: 440px !important;
    width: calc(100vw - 56px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(32px) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s ease !important;
    pointer-events: none;
    direction: rtl !important;
    text-align: right !important;
}

.edukid-cookie-banner.banner-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Ambient Diffused Glow Behind Modal */
.cookie-banner-ambient-glow {
    position: absolute !important;
    inset: -12px !important;
    border-radius: 34px !important;
    background: radial-gradient(circle at 75% 20%, rgba(115, 103, 240, 0.45), rgba(255, 202, 58, 0.2) 48%, transparent 72%) !important;
    filter: blur(28px) !important;
    pointer-events: none !important;
    z-index: -1 !important;
    animation: ambientGlowPulse 5s ease-in-out infinite alternate !important;
}

@keyframes ambientGlowPulse {
    0% { transform: scale(0.96); opacity: 0.75; }
    100% { transform: scale(1.04); opacity: 1; }
}

/* Main Card Surface */
.cookie-banner-inner {
    background: rgba(18, 15, 36, 0.95) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(115, 103, 240, 0.45) !important;
    border-radius: 22px !important;
    padding: 24px 22px 18px 22px !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7),
                0 0 35px rgba(115, 103, 240, 0.22),
                inset 0 1px 1px rgba(255, 255, 255, 0.16) !important;
    color: #f1f0fa !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

html[data-theme="light"] .cookie-banner-inner {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(115, 103, 240, 0.35) !important;
    box-shadow: 0 20px 50px rgba(48, 43, 89, 0.18),
                0 0 24px rgba(115, 103, 240, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    color: #2e3248 !important;
}

/* Holographic Neon Accent Line */
.cookie-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #7367f0 0%, #ffca3a 45%, #00cfe8 100%);
    opacity: 0.95;
}

/* Circular Frosted Close Button */
.cookie-close-btn {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #c2c0d8 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    z-index: 5 !important;
}

html[data-theme="light"] .cookie-close-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #4b4f63 !important;
}

.cookie-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.08) !important;
}

html[data-theme="light"] .cookie-close-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #100e20 !important;
}

/* Header Area */
.cookie-banner-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
    padding-left: 36px !important;
}

.cookie-icon-wrapper {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.3), rgba(255, 202, 58, 0.25)) !important;
    border: 1px solid rgba(255, 202, 58, 0.45) !important;
    box-shadow: 0 4px 15px rgba(115, 103, 240, 0.3) !important;
    flex-shrink: 0 !important;
}

.cookie-icon-rings {
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    border: 1px dashed rgba(255, 202, 58, 0.4);
    animation: ringRotate 14s linear infinite;
    pointer-events: none;
}

@keyframes ringRotate {
    100% { transform: rotate(360deg); }
}

.cookie-icon-emoji {
    font-size: 22px !important;
    line-height: 1 !important;
    display: block !important;
    animation: iconBounce 2.5s infinite ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.1) rotate(5deg); }
}

.cookie-header-text {
    flex: 1 !important;
    min-width: 0 !important;
}

.cookie-title-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 3px !important;
}

.cookie-title {
    margin: 0 !important;
    font-size: 15.5px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
}

html[data-theme="light"] .cookie-title {
    color: #171529 !important;
}

.cookie-speed-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ffca3a !important;
    background: rgba(255, 202, 58, 0.16) !important;
    border: 1px solid rgba(255, 202, 58, 0.4) !important;
    padding: 2.5px 9px !important;
    border-radius: 999px !important;
    line-height: 1.2 !important;
}

html[data-theme="light"] .cookie-speed-pill {
    color: #946400 !important;
    background: rgba(255, 202, 58, 0.22) !important;
    border-color: rgba(255, 202, 58, 0.5) !important;
}

.cookie-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00cfe8;
    box-shadow: 0 0 8px #00cfe8;
    animation: liveDotPulse 1.8s infinite ease-in-out;
}

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

.cookie-subtitle {
    margin: 0 !important;
    font-size: 11.5px !important;
    color: var(--muted, #aaa7c2) !important;
    font-weight: 600 !important;
}

/* Feature Highlight Chips (Interactive Look) */
.cookie-features-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin-bottom: 18px !important;
}

.cookie-feat-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

html[data-theme="light"] .cookie-feat-item {
    background: rgba(0, 0, 0, 0.025) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.cookie-feat-item:hover {
    background: rgba(115, 103, 240, 0.08) !important;
    border-color: rgba(115, 103, 240, 0.25) !important;
}

.feat-badge-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.feat-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.feat-text strong {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #f1f0fa !important;
    line-height: 1.3 !important;
}

html[data-theme="light"] .feat-text strong {
    color: #202334 !important;
}

.feat-text span {
    font-size: 11px !important;
    color: var(--muted, #aaa7c2) !important;
    line-height: 1.3 !important;
}

/* Actions Row */
.cookie-banner-actions {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin-bottom: 14px !important;
}

/* Primary Accept Button (Cyber Glow & Shimmer) */
.cookie-btn-accept {
    all: unset !important;
    box-sizing: border-box !important;
    flex: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #7367f0 0%, #8c52ff 50%, #ff7849 100%) !important;
    color: #ffffff !important;
    padding: 11px 18px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(115, 103, 240, 0.45),
                0 2px 6px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(115, 103, 240, 0.65),
                0 0 15px rgba(255, 120, 73, 0.35) !important;
}

.cookie-btn-accept .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: btnShineSweep 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes btnShineSweep {
    0%, 65% { left: -100%; }
    100% { left: 200%; }
}

.cookie-btn-accept .btn-icon {
    font-size: 14px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
}

.cookie-btn-accept:hover .btn-icon {
    transform: scale(1.2) rotate(10deg) !important;
}

/* Secondary Button */
.cookie-btn-essential {
    all: unset !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #f1f0fa !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] .cookie-btn-essential {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.14) !important;
    color: #3b4055 !important;
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="light"] .cookie-btn-essential:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Footer Meta Row */
.cookie-banner-footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 11px !important;
}

html[data-theme="light"] .cookie-banner-footer-row {
    border-top-color: rgba(0, 0, 0, 0.06) !important;
}

.cookie-policy-anchor {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--muted, #aaa7c2) !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.cookie-policy-anchor:hover {
    color: var(--primary-light, #7964EE) !important;
    text-decoration: underline !important;
}

.cookie-meta-secure {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .cookie-meta-secure {
    color: rgba(0, 0, 0, 0.45) !important;
}

.secure-check {
    color: #28c76f !important;
    font-weight: 900 !important;
}

/* Footer Link for Cookie Settings */
.footer-cookie-link {
    all: unset !important;
    cursor: pointer !important;
    display: inline !important;
    color: var(--primary-soft, #bcb9f9) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    margin-right: 6px !important;
    transition: color 0.2s ease !important;
}

.footer-cookie-link:hover {
    color: #ffca3a !important;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .edukid-cookie-banner {
        right: 12px !important;
        left: 12px !important;
        bottom: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: none !important;
    }
    
    .cookie-banner-inner {
        padding: 20px 18px 16px 18px !important;
        border-radius: 20px !important;
    }

    .cookie-banner-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .cookie-btn-accept,
    .cookie-btn-essential {
        width: 100% !important;
        text-align: center !important;
    }
}