/* Skillkul public site styles */
:root {
    /* Brand colours - Violet Premium theme */
    --primary: #7c3aed;        /* violet */
    --primary-dark: #6d28d9;
    --primary-soft: #f3e8ff;
    --primary-line: #e4d4fb;
    --accent: #ec4899;         /* modern rose */
    --accent-dark: #db2777;
    --accent-soft: #fce7f3;
    --green: #059669;
    --green-soft: #ecfdf5;
    --amber-soft: #fff7e6;
    --red: #e11d48;
    --text: #1e1b2e;
    --muted: #6b6880;
    --border: #e9e6f1;
    --bg: #faf9fd;
    --bg-alt: #f3f1fa;
    --surface: #ffffff;
    --surface-2: #f6f4fc;
    --dark: #2a1259;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* top progress bar for instant navigation */
.sk-nav-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left center;
              background: linear-gradient(90deg, var(--accent), var(--primary)); z-index: 9999; opacity: 0; transition: transform .25s ease, opacity .3s ease; pointer-events: none; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.lead { font-size: 1.12rem; color: #374151; }
.hp { position: absolute !important; left: -9999px !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.25em; border-radius: 10px; border: 1px solid var(--primary);
       background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: .15s; text-align: center; line-height: 1.2; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-sm { padding: .5em .9em; font-size: .875rem; border-radius: 8px; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); border-color: #d1d5db; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--primary-dark); }
.btn-light { background: var(--surface); color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text); }
.logo img { height: 34px; width: auto; }
.logo-stack { display: flex; flex-direction: column; line-height: 1; }
/* sits under the "skillkul" wordmark (the play icon is ~28% of the logo width) */
.logo-tagline { margin: 5px 0 0 44px; font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
                color: var(--accent-dark); white-space: nowrap; }
.logo-light img { height: 32px; }
.main-nav { display: flex; align-items: center; gap: 14px; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: .4em .55em; border-radius: 8px; color: #374151; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.main-nav ul a:hover, .main-nav ul a.active { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 1200px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column;
                align-items: stretch; padding: 12px 20px 20px; gap: 12px; display: none; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav > ul > li > a { padding: .6em .2em; font-size: 1rem; }
    .nav-actions { flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
    .nav-actions .btn { flex: 1; }
}

/* Alerts */
.flash-wrap { padding-top: 16px; }
.alert { padding: .85em 1.1em; border-radius: 10px; margin-bottom: 12px; border: 1px solid; font-size: .95rem; }
.alert-success { background: var(--green-soft); border-color: #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }
.alert-warning { background: var(--amber-soft); border-color: #fde68a; color: #92400e; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 32px 0 64px; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 .2em; }
.section-head p { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.link-arrow { font-weight: 600; }
.page-hero { background: linear-gradient(180deg, var(--primary-soft), #fff); padding: 48px 0 24px; }
.page-hero h1 { margin-bottom: .2em; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #e4e2f3 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, var(--accent-soft) 0%, transparent 55%); padding: 72px 0 80px; }
.hero h1 { color: var(--primary); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
.badge { display: inline-block; padding: .35em .9em; background: var(--accent-soft); border: 1px solid #f7d58e; color: var(--primary); border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.badge-warn { background: var(--amber-soft); border-color: #fde68a; color: #92400e; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 1.6rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .9rem; }
.hero-visual img { border-radius: 20px; box-shadow: var(--shadow); }
.hero-illustration { position: relative; padding: 30px; }
.code-card { background: var(--primary); color: #e4e2f3; border-radius: 18px; padding: 22px 26px; box-shadow: 0 30px 60px rgba(31, 26, 94, .3); transform: rotate(-2deg); border-top: 4px solid var(--accent); }
.code-card .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #f87171; margin-right: 6px; }
.code-card .dot:nth-child(2) { background: #fbbf24; }
.code-card .dot:nth-child(3) { background: #34d399; }
.code-card pre { margin: 18px 0 0; font-size: 1.05rem; line-height: 1.8; white-space: pre-wrap; }
.code-card code { background: none; padding: 0; }
.float-card { position: absolute; background: var(--surface); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; }
.fc1 { top: 0; right: 0; }
.fc2 { bottom: 0; left: 0; color: var(--green); }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.card-media.small { aspect-ratio: 16 / 8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* Auto-generated branded cover (used when no image is uploaded). Sizes use container units so it scales anywhere. */
.thumb-placeholder { position: relative; width: 100%; height: 100%; container-type: inline-size; overflow: hidden; color: #fff; text-align: left;
                     background: radial-gradient(60% 90% at 100% 0%, rgba(236, 72, 153, .22), transparent 70%), linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.thumb-placeholder.v1 { background: radial-gradient(60% 90% at 100% 0%, rgba(236, 72, 153, .2), transparent 70%), linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%); }
.thumb-placeholder.v2 { background: radial-gradient(60% 90% at 100% 0%, rgba(236, 72, 153, .25), transparent 70%), linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.thumb-placeholder::before { content: ''; position: absolute; inset: 0; opacity: .5;
                             background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px); background-size: 4.5cqw 4.5cqw; }
.tp-play { position: absolute; right: -9cqw; top: 50%; transform: translateY(-50%); width: 0; height: 0;
           border-top: 26cqw solid transparent; border-bottom: 26cqw solid transparent; border-left: 40cqw solid rgba(255, 255, 255, .07); }
.tp-dot { position: absolute; top: 7cqw; right: 8cqw; width: 5.5cqw; height: 5.5cqw; border-radius: 1.2cqw; background: var(--accent); }
.card-media .thumb-placeholder img.tp-logo, .thumb-placeholder img.tp-logo { position: absolute; top: 7cqw; left: 7cqw; width: auto; height: 5cqw; object-fit: contain; opacity: .95; }
.tp-body { position: absolute; left: 7cqw; right: 22cqw; bottom: 7cqw; display: flex; flex-direction: column; gap: 2cqw; }
.tp-bar { width: 10cqw; height: 1.1cqw; border-radius: 1cqw; background: var(--accent); }
.tp-kicker { font-size: 3.4cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); line-height: 1.2; }
.tp-title { font-size: 6.6cqw; font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.buy-thumb.thumb-wrap { aspect-ratio: 16 / 9; }

/* ---- Banner-style course cover (auto-generated when no image is uploaded) ---- */
.cover { position: relative; width: 100%; height: 100%; container-type: inline-size; overflow: hidden; color: #fff; text-align: left;
         background: radial-gradient(55% 80% at 82% 45%, rgba(236, 72, 153, .28), transparent 70%), linear-gradient(120deg, #581c87 0%, #7c3aed 55%, #6d28d9 100%); }
.cover.v1 { background: radial-gradient(55% 80% at 82% 45%, rgba(236, 72, 153, .32), transparent 70%), linear-gradient(120deg, #581c87 0%, #7c3aed 55%, #7c3aed 100%); }
.cover.v2 { background: radial-gradient(55% 80% at 82% 45%, rgba(236, 72, 153, .3), transparent 70%), linear-gradient(120deg, #581c87 0%, #6d28d9 55%, #7c3aed 100%); }
.cover::before { content: ''; position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px); background-size: 3.6cqw 3.6cqw; }
.card-media .cover img.cv-logo, .cover img.cv-logo { position: absolute; top: 4.5cqw; left: 5cqw; width: auto; height: 4.4cqw; object-fit: contain; }
.cv-text { position: absolute; left: 5cqw; top: 13cqw; width: 58cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6cqw; }
.cv-kicker { font-size: 2.9cqw; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: .5cqw 1.8cqw; border: .3cqw solid rgba(255, 255, 255, .6); border-radius: 1cqw; }
.cv-title { font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-title em { font-style: normal; color: var(--accent); }
.cv-xl { font-size: 10.5cqw; } .cv-l { font-size: 8cqw; } .cv-m { font-size: 6.4cqw; } .cv-s { font-size: 5.2cqw; }
.cv-lang { font-size: 2.6cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: var(--primary); padding: .5cqw 1.6cqw; border-radius: .8cqw; }
.cv-art { position: absolute; right: 4cqw; top: 9cqw; width: 34cqw; height: 34cqw; display: grid; place-items: center; }
.cv-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 60%);
           border: .5cqw solid rgba(255, 255, 255, .18); box-shadow: 0 0 8cqw rgba(236, 72, 153, .35); }
.cv-icon { position: relative; font-size: 15cqw; line-height: 1; filter: drop-shadow(0 1.5cqw 2cqw rgba(0, 0, 0, .35)); }
.cv-play { position: absolute; right: 1cqw; top: 1cqw; width: 7cqw; height: 7cqw; border-radius: 1.6cqw; background: var(--accent); }
.cv-play::after { content: ''; position: absolute; left: 2.6cqw; top: 1.8cqw; border-top: 1.7cqw solid transparent; border-bottom: 1.7cqw solid transparent; border-left: 2.6cqw solid var(--primary); }
.cv-chips { position: absolute; left: 5cqw; bottom: 4.5cqw; display: flex; gap: 1.4cqw; max-width: 64cqw; flex-wrap: wrap; }
.cv-chips span { display: inline-flex; align-items: center; gap: .9cqw; font-size: 2.5cqw; font-weight: 600; background: rgba(255, 255, 255, .12);
                 border: .2cqw solid rgba(255, 255, 255, .22); padding: .8cqw 1.6cqw; border-radius: 1.2cqw; white-space: nowrap; }
.cv-chips i { font-style: normal; color: var(--accent); }
.cv-offer { position: absolute; right: 4cqw; bottom: 4cqw; background: var(--surface); color: var(--primary); border-radius: 2cqw; padding: 1.4cqw 2.4cqw 1.6cqw; text-align: center;
            box-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, .3); border: .5cqw solid var(--accent); line-height: 1; }
.cv-offer small { display: block; font-size: 1.9cqw; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: var(--primary);
                  margin: -1.4cqw -2.4cqw 1.2cqw; padding: .7cqw 1.4cqw; border-radius: 1.4cqw 1.4cqw 0 0; }
.cv-offer b { font-size: 6.6cqw; font-weight: 800; }
.cv-offer span { font-size: 3cqw; font-weight: 800; margin-left: .5cqw; }
.cv-free b { color: var(--green); }
.card-media:has(.ribbon) .cv-play { display: none; }

/* ---- Course card (marketplace style) ---- */
.course-card { position: relative; }
.course-card .card-body { padding: 16px 18px 6px; }
.course-card .card-title { font-size: 1.08rem; line-height: 1.35; margin: 0 0 8px; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: .9rem; margin-bottom: 4px; }
.rating-line strong { color: #b26b00; }
.stars-bar { position: relative; display: inline-block; color: #d6d4e4; letter-spacing: 1px; font-size: .95rem; line-height: 1; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
.tag-new { background: var(--accent-soft); color: #b26b00; }
.instructor-line { color: var(--muted); font-size: .9rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { justify-content: flex-start; gap: 10px; padding-top: 8px; flex-wrap: wrap; }
.price-row .price { font-size: 1.3rem; color: var(--primary); }
.price-row .price.free { color: var(--green); }
.price-row .price-old { font-size: 1rem; font-weight: 600; }
/* Reviews */
.hero-rating { display: inline-block; color: #e4e2f3; }
.hero-rating .muted { color: #b9b6d8; }
.hero-rating strong { color: var(--accent); }
.review-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.review-avg { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.review-summary .stars-bar { font-size: 1.25rem; }
.review-form { margin-bottom: 20px; gap: 10px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: #d6d4e4; cursor: pointer; line-height: 1; display: inline; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.review-list { display: grid; gap: 16px; }
.review-item { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.review-item p { margin: 6px 0 0; color: #3b3960; }
.off-tag { font-size: .78rem; font-weight: 700; color: #b26b00; background: var(--accent-soft); padding: .2em .55em; border-radius: 6px; }
.ribbon { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--accent); color: var(--primary); font-size: .75rem; font-weight: 700; padding: .25em .7em; border-radius: 6px; }
.card-body { padding: 18px 18px 8px; flex: 1; }
.card-title { font-size: 1.05rem; margin: .4em 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-text { color: var(--muted); font-size: .9rem; margin-bottom: .6em; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .8rem; }
.card-foot { padding: 14px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .2em .65em; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: var(--amber-soft); color: #b45309; }
.price { font-weight: 800; font-size: 1.15rem; }
.price.free { color: var(--green); }
.price-old { color: var(--muted); font-size: .9rem; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: .2s; }
.cat-card:hover { border-color: var(--primary-line); background: var(--primary-soft); color: var(--text); }
.cat-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem; background: var(--bg-alt); border-radius: 12px; }
.cat-card small { display: block; color: var(--muted); }

.feature { background: var(--surface); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.feature-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--primary); font-weight: 800; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.testimonial { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 10px 0 18px; flex: 1; color: #374151; }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial small { display: block; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; flex-shrink: 0; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.8rem; }

.faq-list { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq[open] summary::after { content: 'âˆ’'; }
.faq div { padding-bottom: 16px; color: #4b5563; }

.cta-band { background: radial-gradient(500px 300px at 100% 0%, rgba(236, 72, 153, .35), transparent 70%), var(--primary); color: #fff; border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; opacity: .9; }

/* Filters / chips / pagination */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select { padding: .65em .9em; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--surface); min-width: 0; }
.filters input[type=search] { flex: 1 1 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { padding: .4em .95em; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; color: #374151; background: var(--surface); }
.chip:hover, .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip small { opacity: .65; margin-left: 2px; font-weight: 600; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination .dots { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 0 8px; }
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .dots { border: 0; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }

/* Course page */
.course-hero { background: var(--dark); color: #e5e7eb; padding: 48px 0; }
.course-hero h1 { color: #fff; }
.course-hero .lead { color: #cbd5e1; }
.course-hero .crumbs a { color: var(--accent); }
.course-hero-grid { max-width: 760px; margin-right: auto; }
.crumbs { font-size: .875rem; margin-bottom: 12px; color: var(--muted); }
.course-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0; font-size: .92rem; }
.course-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.course-main > h2 { margin-top: 36px; }
.course-side { margin-top: -220px; position: sticky; top: 90px; }
.buy-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.buy-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.buy-body { padding: 22px; }
.buy-price { margin-bottom: 16px; }
.buy-price .price { font-size: 1.8rem; }
.buy-body h4 { margin-top: 22px; }
.box { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.box-warn { background: var(--amber-soft); border-color: #fde68a; margin-bottom: 32px; }
.sticky { position: sticky; top: 90px; }
.checklist, .bullets { padding: 0; margin: 0; list-style: none; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before { content: 'âœ“'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.checklist.two-col { columns: 2; column-gap: 32px; }
.checklist.two-col li { break-inside: avoid; }
.bullets li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.bullets li::before { content: '\2022'; position: absolute; left: 4px; color: var(--primary); }
.curriculum { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.curr-section + .curr-section { border-top: 1px solid var(--border); }
.curr-section summary { cursor: pointer; padding: 16px 20px; background: var(--bg-alt); font-weight: 700; display: flex; justify-content: space-between; gap: 10px; list-style: none; }
.curr-section summary small { font-weight: 500; color: var(--muted); }
.curr-section ul { list-style: none; margin: 0; padding: 6px 0; }
.curr-section li { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: .95rem; }
.curr-section li small { margin-left: auto; }
.lesson-ico { color: var(--muted); font-size: .8rem; width: 16px; }
.lock { font-size: .8rem; }
.instructor { display: flex; gap: 20px; align-items: flex-start; }
.instructor img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.progress { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #10b981); border-radius: 99px; }

/* Video */
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Learn page */
.learn-layout { display: grid; grid-template-columns: 1fr 360px; min-height: calc(100vh - 70px); }
.learn-main { min-width: 0; }
.learn-top { display: flex; justify-content: space-between; padding: 12px 24px; border-bottom: 1px solid var(--border); }
.learn-content { padding: 28px; max-width: 900px; }
.learn-content h1 { font-size: 1.6rem; }
.learn-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.learn-side { border-left: 1px solid var(--border); background: var(--bg-alt); padding: 20px; overflow-y: auto; max-height: calc(100vh - 70px); position: sticky; top: 70px; }
.ls-section h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 0 8px; }
.ls-section ul { list-style: none; margin: 0; padding: 0; }
.ls-section li { display: flex; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 8px; font-size: .92rem; }
.ls-section li a { color: var(--text); flex: 1; }
.ls-section li small { color: var(--muted); }
.ls-section li.current { background: var(--primary-soft); }
.ls-section li.current a { color: var(--primary); font-weight: 600; }
.ls-check { width: 16px; font-size: .75rem; color: var(--muted); }
.ls-section li.done .ls-check { color: var(--green); }
.learn-page .site-footer { display: none; }

/* Prose (admin-entered HTML) */
.prose { font-size: 1.02rem; color: #1f2937; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 12px; margin: 1em 0; height: auto; }
.prose pre { background: var(--dark); color: #e5e7eb; padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 4px solid var(--primary); margin: 1em 0; padding: .4em 1em; background: var(--bg-alt); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px; }
.post-img, .resource-img { border-radius: var(--radius); margin: 16px 0 24px; width: 100%; }
.resource-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { width: 100%; padding: .75em .9em; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-weight: 400; background: var(--surface); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 26, 94, .15); }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.form label.check input { width: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form h3 { margin: 10px 0 0; }
.auth-card { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 38px 34px; box-shadow: 0 2px 8px rgba(16,24,40,.06), 0 16px 48px rgba(16,24,40,.12); }
.section:has(> .auth-card), .section:has(> .container > .auth-card) { background: radial-gradient(900px 360px at 50% -8%, var(--primary-soft), transparent 70%); }
.auth-card.wide { max-width: 620px; }
.auth-page { background: var(--bg-alt); min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-page .auth-card { width: 100%; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-item > span { width: 44px; height: 44px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 12px; flex-shrink: 0; }
.info-item strong { display: block; }
.info-item p { margin: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-actions { display: flex; gap: 8px; }
.pending-list { padding-left: 18px; }
.dash-stats { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.dash-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 18px; min-width: 130px; }
.dash-stats strong { display: block; font-size: 1.5rem; color: var(--primary); line-height: 1.2; }
.dash-stats span { color: var(--muted); font-size: .85rem; }
.dash-stats .warn { background: var(--amber-soft); border-color: #f7d58e; }
.ribbon-green { background: var(--green); color: #fff; }
.ribbon-amber { background: var(--surface); color: #b26b00; border: 1px solid #f7d58e; }
.course-card.is-pending .card-media { filter: saturate(.75); }
.pay-box { margin-top: 32px; }
.pay-box .btn { margin: 6px 6px 0 0; }
.pay-line { margin: 0 0 6px; }
.nav-actions .btn.active { box-shadow: 0 0 0 3px var(--primary-soft); }

/* Footer */
.site-footer { background: var(--dark); color: #a9a6c9; border-top: 4px solid var(--accent); padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d6d3ec; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { margin: 14px 0; font-size: .92rem; }
.social { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .9rem; }
.subscribe-form { display: flex; gap: 6px; margin-bottom: 12px; }
.subscribe-form input { flex: 1; min-width: 0; padding: .55em .8em; border-radius: 8px; border: 1px solid #3a3570; background: #221d55; color: #fff; font: inherit; }
.footer-bottom { border-top: 1px solid #2a2563; margin-top: 40px; padding: 20px; font-size: .85rem; text-align: center; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 40; }
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }

.resource-layout aside .btn + .btn, .resource-layout aside .center + .btn { margin-top: 10px; }

/* ---- Announcement bar ---- */
.announce-bar { background: var(--accent); color: var(--primary); font-size: .9rem; font-weight: 600; }
.announce-bar .container { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; position: relative; text-align: center; flex-wrap: wrap; }
.announce-bar a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.announce-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--primary); }

/* ---- Header dropdown menus ---- */
.main-nav li.has-sub { position: relative; }
.main-nav .caret { font-size: .7em; opacity: .7; }
.main-nav ul.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
                   box-shadow: var(--shadow); padding: 6px; flex-direction: column; gap: 2px; z-index: 60; }
.main-nav li.has-sub:hover > ul.sub, .main-nav li.has-sub:focus-within > ul.sub { display: flex; }
@media (max-width: 1200px) {
    .main-nav ul.sub { position: static; box-shadow: none; border: 0; padding: 2px 0 6px 14px; min-width: 0; display: flex; }
    .main-nav li.has-sub > a { font-weight: 600; }
    .main-nav .caret { display: none; }
    .main-nav ul.sub a { color: var(--muted); font-weight: 500; font-size: .92rem; }
    .main-nav ul.sub a:hover, .main-nav ul.sub a.active { color: var(--primary); }
}

/* ---- Homepage banner slider ---- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .slides { display: grid; }
.hero-slider .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; padding: 64px 0 76px; }
.hero-slider .slide.active { opacity: 1; visibility: visible; }
.slide.theme-light { background: radial-gradient(1200px 500px at 85% -10%, #e4e2f3 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, var(--accent-soft) 0%, transparent 55%); }
.slide.theme-navy { background: radial-gradient(700px 400px at 90% 10%, rgba(236, 72, 153, .25), transparent 65%), var(--primary); color: #e4e2f3; }
.slide.theme-navy .slide-title, .slide.theme-navy .lead { color: #fff; }
.slide.theme-navy .badge { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.slide.theme-navy .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.slide.theme-navy .btn-outline:hover { background: rgba(255, 255, 255, .1); }
.slide.theme-accent { background: radial-gradient(700px 400px at 90% 10%, rgba(255, 255, 255, .35), transparent 65%), var(--accent); }
.slide.theme-accent .btn-accent { background: var(--primary); border-color: var(--primary); color: #fff; }
.slide.theme-accent .badge { background: rgba(255, 255, 255, .6); border-color: transparent; }
.slide-title { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; line-height: 1.15; color: var(--primary); margin: 0 0 .5em; }
.hero-slider .hero-visual img { width: 100%; height: auto; }
.hero-slider .slide.layout-image { padding: 0; }
.slide-image-link, .slide-image-link img { display: block; width: 100%; }
.slide-image-link img { max-height: 560px; object-fit: cover; }
.slide-mini { display: none; }
.badge-live { position: relative; padding-left: 20px; }
.badge-live::before { content: ""; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 3px rgba(255, 77, 109, .25); }
@media (max-width: 640px) {
    .slide.layout-image .slide-image-link { display: none; }
    .slide.layout-image { padding: 30px 0 38px; }
    .slide-mini { display: block; }
    .slide-mini .badge { margin-bottom: 14px; }
    .slide-mini .slide-title { font-size: 2.1rem; line-height: 1.12; margin: 0 0 10px; }
    .slide-mini .lead { margin: 0 0 20px; max-width: 32ch; }
    .slide-mini .btn { margin-top: 2px; }
}
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
                             color: var(--primary); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 3; }
.slider-prev { left: 16px; } .slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: var(--surface); color: var(--accent-dark); }
.slider-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slider-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(31, 26, 94, .35); cursor: pointer; padding: 0; transition: .3s; }
.slider-dots button.active { width: 28px; background: var(--accent); }
.stats-strip { border-bottom: 1px solid var(--border); padding: 22px 0; background: var(--surface); }
.stats-strip .stats { justify-content: center; gap: 60px; }
@media (max-width: 760px) {
    .hero-slider .slide { padding: 40px 0 64px; }
    .slider-prev, .slider-next { display: none; }
    .stats-strip .stats { gap: 28px; }
}

/* ---- Live Classes ---- */
.nav-badge { display: inline-block; background: #e11d48; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; vertical-align: 2px; margin-left: 2px;
             animation: live-blink 2s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .nav-badge, .pulse { animation: none !important; } }
.live-pill { display: inline-block; background: #e11d48; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.live-pill.big { font-size: .8rem; padding: 5px 12px; margin-bottom: 14px; }
.tba { color: var(--muted); font-style: italic; font-weight: 500; }
.preview-notice { margin-top: 12px; background: var(--amber-soft); border: 1px solid #f7d58e; color: #92400e; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.live-hero { background: radial-gradient(700px 400px at 90% 0%, rgba(236, 72, 153, .25), transparent 65%), radial-gradient(600px 400px at 0% 100%, rgba(225, 29, 72, .18), transparent 60%), var(--primary);
             color: #e4e2f3; padding: 56px 0 64px; }
.live-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.live-hero .h1-sub { display: block; font-size: .55em; color: var(--accent); font-weight: 700; margin-top: 4px; }
.live-hero .lead { color: #d6d3ec; }
.live-hero .crumbs a { color: var(--accent); }
.live-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.live-hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.live-hero-points li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 14px 18px; font-weight: 600; color: #fff; }
.hero-facts { display: grid; gap: 2px; padding: 8px 20px; color: var(--text); }
.hero-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hero-facts > div:last-child { border-bottom: 0; }
.hero-facts span { color: var(--muted); }
.hero-facts .fee { font-size: 1.2rem; color: var(--primary); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.compare-table th { background: var(--bg-alt); }
.compare-table td:first-child { font-weight: 600; color: var(--muted); }
.compare-table .hl { background: #fff7e6; font-weight: 600; }
.compare-table th.hl { background: var(--accent); color: var(--primary); }
.live-card { position: relative; }
.live-card-top { position: relative; height: 130px; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(236, 72, 153, .35), transparent 60%), linear-gradient(135deg, var(--primary), #6d28d9); }
.live-card-top img { width: 100%; height: 100%; object-fit: cover; }
.live-icon { font-size: 3.2rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.live-card-top .live-pill { position: absolute; top: 12px; left: 12px; }
.live-facts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .88rem; }
.live-facts li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.live-facts li:last-child { border-bottom: 0; }
.live-facts span { color: var(--muted); }
.live-facts strong { text-align: right; }
.batch-table td small { font-weight: 500; }
.btn.disabled { opacity: .6; pointer-events: none; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--primary); font-weight: 800; margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.get-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.get-item { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; font-weight: 600; background: var(--surface); }
.get-item span { font-size: 1.5rem; }
.instructor-box { display: flex; gap: 28px; align-items: center; }
.instructor-box img, .photo-placeholder { width: 180px; height: 180px; border-radius: 20px; object-fit: cover; flex-shrink: 0; }
.photo-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, #ecebf5 10px, #ecebf5 20px);
                     border: 2px dashed var(--primary-line); color: var(--muted); font-weight: 700; }
.instructor-box h3 { font-size: 1.4rem; margin: 8px 0 2px; }
.live-cta { background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.demo-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.demo-box h2 { margin-bottom: 4px; }
.demo-form { margin-top: 18px; }
.demo-thanks { text-align: center; padding: 20px 0; }
.demo-thanks span { font-size: 2.6rem; }
.demo-thanks h3 { font-size: 1.4rem; margin: 10px 0 4px; color: var(--green); }
.live-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.live-main > h2 { margin-top: 34px; }
.live-main > h2:first-child { margin-top: 0; }
.outcome-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.outcome-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg-alt); border-radius: 12px; }
.outcome-list li span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.chips.tools .chip { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); font-weight: 600; }
.chips.tools .chip:hover { background: var(--primary-soft); color: var(--primary); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.project { padding: 16px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; font-weight: 600; background: var(--surface); }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.batch-card { display: grid; gap: 12px; }
.batch-head { display: flex; justify-content: space-between; align-items: center; }
.side-fee { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin: 4px 0 12px; }
.live-side .btn + .btn { margin-top: 8px; }
.sticky-cta { display: none; }
.home-live-cta { margin-top: 26px; }
.live-batch-box { margin-bottom: 20px; }
.lb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lb-head h2 { font-size: 1.2rem; margin-bottom: 2px; }
.live-batch-box h3 { font-size: 1rem; margin: 22px 0 8px; }
.session-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.session-list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; flex-wrap: wrap; }
.s-date { font-weight: 700; color: var(--primary); min-width: 170px; font-size: .9rem; }
.s-title { flex: 1; min-width: 160px; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, .6); } 70% { box-shadow: 0 0 0 12px rgba(236, 72, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); } }
@media (max-width: 1024px) {
    .live-detail { grid-template-columns: 1fr; }
    .live-side .sticky { position: static; }
    .steps, .get-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .live-hero-grid { grid-template-columns: 1fr; }
    .live-hero { padding: 36px 0 44px; }
    .instructor-box { flex-direction: column; align-items: flex-start; }
    .demo-box { padding: 22px 16px; }
    /* mobile: sticky Enroll Now bar at the bottom of course pages */
    .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border);
                  box-shadow: 0 -8px 24px rgba(16, 24, 40, .1); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
    .sticky-cta small { display: block; color: var(--muted); font-size: .75rem; }
    .sticky-cta strong { color: var(--primary); }
    .has-sticky-cta .whatsapp-float { bottom: 84px; }
    .has-sticky-cta .site-footer { padding-bottom: 70px; }
    /* schedule table becomes cards */
    .batch-table thead { display: none; }
    .batch-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
    .batch-table td { border: 0; padding: 0; }
    .batch-table td:first-child { grid-column: 1 / -1; }
    .batch-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
    .batch-table td:last-child { grid-column: 1 / -1; }
    .batch-table td:last-child .btn { width: 100%; }
    .steps, .get-grid { grid-template-columns: 1fr; }
}

/* ---- Free tools ---- */
.tools-section { margin-bottom: 34px; }
.res-heading { margin: 0 0 14px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tool-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); color: var(--text);
             background: linear-gradient(135deg, #fff, var(--primary-soft)); border: 1px solid var(--primary-line); transition: .2s; }
.tool-card:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.tool-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.7rem; flex-shrink: 0; }
.tool-text { flex: 1; display: grid; gap: 3px; }
.tool-text small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tool-go { font-size: 1.4rem; color: var(--accent-dark); font-weight: 800; }

/* ---- Image compressor ---- */
.privacy-note { display: inline-block; background: var(--green-soft); color: #065f46; padding: 6px 12px; border-radius: 999px; font-size: .88rem; margin: 6px 0 0; }
.ic-layout { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; }
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 16px; border: 2px dashed var(--primary-line); border-radius: 14px; background: var(--bg-alt); cursor: pointer; transition: .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-ico { font-size: 2.4rem; }
.drop strong { word-break: break-all; }
.ic-settings { display: grid; gap: 16px; margin-top: 18px; }
.ic-field { display: grid; gap: 8px; }
.ic-label { font-weight: 700; font-size: .92rem; }
.ic-field select, .ic-field input[type=number] { padding: .65em .8em; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; background: var(--surface); width: 100%; }
.ic-size { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.ic-chips { margin: 0; }
.ic-chips .chip { cursor: pointer; font: inherit; font-size: .85rem; }
.ic-dims { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ic-dims input[type=number] { width: 110px; }
.ic-dims label.check { display: flex; align-items: center; gap: 6px; }
.ic-right { min-height: 380px; }
.ic-empty { display: grid; place-items: center; text-align: center; color: var(--muted); min-height: 340px; }
.ic-empty span { font-size: 3rem; }
.ic-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ic-compare figure { margin: 0; display: grid; gap: 8px; }
.ic-compare figcaption { font-weight: 700; }
.ic-compare img { width: 100%; height: 260px; object-fit: contain; background: repeating-conic-gradient(#f1f0f7 0 25%, #fff 0 50%) 0 0 / 20px 20px; border: 1px solid var(--border); border-radius: 12px; }
.ic-meta { font-size: .88rem; color: var(--muted); font-weight: 600; }
.ic-summary { margin: 16px 0; }
.ic-summary p { margin: 0 0 6px; }
.ic-ok { color: #065f46; background: var(--green-soft); padding: 10px 14px; border-radius: 10px; }
.ic-warn { color: #92400e; background: var(--amber-soft); padding: 10px 14px; border-radius: 10px; }
.ic-working { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 340px; font-weight: 700; color: var(--primary); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--primary-line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.ic-faq { margin-top: 28px; }
@media (max-width: 900px) {
    .ic-layout { grid-template-columns: 1fr; }
    .steps.steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .ic-compare { grid-template-columns: 1fr; }
    .ic-compare img { height: 220px; }
}

/* ---- Image Tools studio ---- */
.it-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.it-tabs button { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-weight: 700; font-size: .9rem; color: #3b3960; cursor: pointer; }
.it-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.it-info { margin: 12px 0 0; color: var(--green); font-weight: 600; }
.it-panel h2 { margin-bottom: 12px; }
.it-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; margin-bottom: 14px; }
.it-grid label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.it-grid label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.it-grid input, .it-grid select { padding: .6em .8em; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-weight: 400; background: var(--surface); }
.it-grid input[type=range] { padding: 0; }
.it-field { display: grid; gap: 6px; margin-bottom: 14px; max-width: 420px; }
.it-field select, .it-field input[type=number] { padding: .6em .8em; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; background: var(--surface); }
.cv-outs .chip { cursor: pointer; font: inherit; font-weight: 700; }
.it-result .ic-compare { margin-top: 4px; }
.it-result .ic-ok { margin: 16px 0; }
/* crop */
.crop-stage { position: relative; display: inline-block; max-width: 100%; margin: 6px 0 14px; touch-action: none; user-select: none; }
.crop-stage canvas { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.crop-box { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(15, 12, 50, .45); cursor: move; }
.crop-box .ch { position: absolute; width: 16px; height: 16px; background: var(--surface); border: 2px solid var(--accent); border-radius: 50%; }
.crop-box .ch[data-h=nw] { left: -9px; top: -9px; cursor: nwse-resize; }
.crop-box .ch[data-h=ne] { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-box .ch[data-h=sw] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.crop-box .ch[data-h=se] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.crop-dim { position: absolute; left: 0; top: -26px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
/* rotate / removebg preview */
.ro-preview, .rb-stage { margin: 8px 0 14px; display: grid; place-items: center; background: repeating-conic-gradient(#f1f0f7 0 25%, #fff 0 50%) 0 0 / 20px 20px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.ro-preview canvas, .rb-stage canvas { max-width: 100%; }
.rb-stage canvas { cursor: crosshair; border-radius: 8px; }
.icon-previews { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.icon-previews figure { margin: 0; text-align: center; display: grid; gap: 6px; justify-items: center; }
.icon-previews img { border: 1px solid var(--border); border-radius: 8px; }
.icon-previews figcaption { font-size: .8rem; color: var(--muted); }
.fv-code { margin-top: 14px; }
.fv-code pre { background: var(--dark); color: #e5e7eb; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: .82rem; }

/* ---- Typing test ---- */
.tt-tabs { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.tt-tabs button { padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-weight: 700; color: #3b3960; cursor: pointer; }
.tt-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tt-setup h2 { margin-bottom: 14px; }
.tt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tt-grid label, .tt-options label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.tt-grid .tt-wide { grid-column: 1 / -1; }
.tt-grid select, .tt-grid input { padding: .65em .8em; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-weight: 400; background: var(--surface); width: 100%; }
.tt-options { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0 6px; }
.tt-options label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tt-hindi-note { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; }
.tt-stats { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 14px; }
.tt-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 16px; min-width: 110px; box-shadow: 0 4px 12px rgba(16, 24, 40, .05); }
.tt-stats > div span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tt-stats strong { font-size: 1.5rem; color: var(--primary); }
.tt-stats small { color: var(--muted); margin-left: 4px; }
.tt-stats > div.low strong { color: var(--red); }
.tt-stats .btn { margin-left: auto; align-self: center; }
.tt-passage { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; height: 230px; overflow-y: auto; font-size: 1.22rem; line-height: 2.05;
              color: #2c2a4f; position: relative; user-select: none; -webkit-user-select: none; }
.tt-passage .w { border-radius: 4px; padding: 1px 1px; }
.tt-passage .w.cur { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.tt-passage .w.ok { color: var(--green); }
.tt-passage .w.bad { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; }
.tt-input { width: 100%; margin-top: 14px; padding: 16px 18px; border: 2px solid var(--primary-line); border-radius: 14px; font: inherit; font-size: 1.15rem; line-height: 1.8; resize: vertical; }
.tt-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 26, 94, .12); }
.tt-score { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.score-main { width: 180px; height: 180px; border-radius: 50%; border: 10px solid var(--accent); display: grid; place-items: center; align-content: center; text-align: center; }
.score-main.pass { border-color: var(--green); }
.score-main strong { font-size: 2.8rem; color: var(--primary); line-height: 1; }
.score-main span { color: var(--muted); font-weight: 700; font-size: .85rem; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sg { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }
.sg span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.sg strong { color: var(--primary); }
.tt-score .target, .tt-score .btn-row, .tt-score #ttSaved { grid-column: 1 / -1; margin: 0; }
.target { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.target.ok { background: var(--green-soft); color: #065f46; }
.target.no { background: var(--amber-soft); color: #92400e; }
.tt-mistakes { margin-top: 16px; }
.mist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mist-list > div { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: .95rem; flex-wrap: wrap; }
.mist-list .exp { color: var(--green); font-weight: 700; }
.mist-list .got { color: var(--red); text-decoration: line-through; }
.mist-list .arr { color: var(--muted); }
.lesson-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lesson { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; display: grid; gap: 2px; }
.lesson:hover { border-color: var(--accent); background: var(--accent-soft); }
.lesson small { color: var(--muted); }
.pr-run { margin-top: 18px; }
.pr-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.pr-text { font-family: ui-monospace, Consolas, monospace; font-size: 1.35rem; line-height: 1.9; background: var(--bg-alt); border-radius: 12px; padding: 14px 18px; word-break: break-word; }
.pr-text .ok { color: var(--green); }
.pr-text .bad { color: #fff; background: var(--red); border-radius: 3px; }
.pr-text .cur { background: var(--accent); color: var(--primary); border-radius: 3px; }
.pr-input { width: 100%; margin: 12px 0; padding: 12px 14px; border: 2px solid var(--primary-line); border-radius: 12px; font: inherit; font-size: 1.1rem; }
.kb { display: grid; gap: 6px; justify-content: center; margin-top: 6px; user-select: none; }
.kb-row { display: flex; gap: 6px; justify-content: center; }
.kb-row.r1 { padding-left: 22px; } .kb-row.r2 { padding-left: 34px; }
.key { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 8px; background: var(--surface); font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: #3b3960; padding: 0 8px; }
.key.bump { text-decoration: underline; }
.key.wide { min-width: 76px; font-family: inherit; font-size: .8rem; }
.key.space { min-width: 300px; font-family: inherit; font-size: .8rem; }
.key.next { background: var(--accent); border-color: var(--accent-dark); color: var(--primary); transform: translateY(1px); }
.pr-done { margin-top: 14px; padding: 12px 14px; background: var(--green-soft); border-radius: 10px; color: #065f46; }
.pr-done .btn-row { margin-top: 8px; }
.res-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 16px; }
.res-summary > div { background: var(--bg-alt); border-radius: 12px; padding: 12px 14px; }
.res-summary strong { display: block; font-size: 1.5rem; color: var(--primary); }
.res-summary span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) {
    .tt-grid, .score-grid, .res-summary { grid-template-columns: repeat(2, 1fr); }
    .tt-score { grid-template-columns: 1fr; justify-items: center; }
    .tt-score .score-grid { width: 100%; }
    .kb { display: none; }
    .tt-passage { font-size: 1.05rem; height: 200px; }
    .tt-stats > div { min-width: 0; flex: 1; padding: 6px 10px; }
    .tt-stats .btn { margin-left: 0; width: 100%; }
}

/* ---- Header icons ---- */
.icon-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--primary); font-size: 1.35rem; line-height: 1; }
.icon-link:hover, .icon-link.active { background: var(--primary-soft); color: var(--primary); }
.icon-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--primary);
              font-size: .7rem; font-weight: 800; display: grid; place-items: center; }

/* ---- Account tabs ---- */
.account-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.account-nav a { padding: .45em 1em; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: #3b3960; font-size: .9rem; font-weight: 600; }
.account-nav a:hover { border-color: var(--primary-line); color: var(--primary); }
.account-nav a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- Wishlist heart ---- */
.wish-form { margin: 0 0 0 auto; position: relative; z-index: 2; }
.wish-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.wish-btn:hover { border-color: #f3a3a3; color: #e11d48; }
.wish-btn.saved { color: #e11d48; border-color: #fbc4c4; background: #fff1f2; }
.buy-wish { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.buy-wish .wish-form { margin: 0; }
.buy-buttons { display: grid; gap: 10px; }
.coupon-hint { color: #b26b00; margin-top: 12px; }

/* ---- Cart / orders ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; align-items: start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cart-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .cover img.cv-logo { width: auto; }
.cart-info h3 { font-size: 1.05rem; margin: 0 0 4px; }
.cart-info h3 a { color: var(--text); }
.cart-info p { margin: 0 0 4px; }
.cart-actions form { display: flex; gap: 16px; margin-top: 6px; }
.cart-price { text-align: right; }
.cart-price strong { display: block; font-size: 1.2rem; color: var(--primary); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--red); }
.cart-summary { position: sticky; top: 90px; display: grid; gap: 10px; }
.cart-summary h2 { font-size: 1.15rem; margin: 0 0 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; }
.sum-row.green { color: var(--green); }
.sum-row.total { font-size: 1.25rem; font-weight: 800; color: var(--primary); border-top: 1px dashed var(--border); padding-top: 10px; }
.save-note { margin: 0; color: var(--green); font-weight: 600; font-size: .9rem; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; padding: .55em .8em; border: 1px dashed #c9c6e3; border-radius: 8px; font: inherit; }
.coupon-applied { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: var(--green-soft); color: #065f46; padding: 8px 10px; border-radius: 8px; font-size: .88rem; }
.order-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-line:last-child { border-bottom: 0; }
.order-line-right { display: flex; align-items: center; gap: 12px; }
.tag-red { background: #fef2f2; color: var(--red); }
.box.no-pad { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg-alt); padding: 12px 16px; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table .titles { color: var(--muted); max-width: 360px; }
@media (max-width: 860px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: 110px 1fr; }
    .cart-price { grid-column: 2; text-align: left; }
}

/* ---- Quizzes & assignments ---- */
.quiz-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quiz-facts span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3em .9em; font-size: .85rem; font-weight: 600; color: #3b3960; }
.quiz-form { display: grid; gap: 16px; }
.question { margin: 0 0 14px; }
.question legend, .q-title { font-weight: 700; font-size: 1.02rem; padding: 0; margin-bottom: 10px; display: flex; gap: 10px; }
fieldset.question { border: 1px solid var(--border); }
.q-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; cursor: pointer; }
label.option:hover { border-color: var(--primary-line); background: var(--primary-soft); }
label.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option input { margin-top: 4px; accent-color: var(--primary); }
.option.correct { border-color: #86efac; background: var(--green-soft); color: #065f46; }
.option.wrong { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.q-ok { border-left: 4px solid var(--green); }
.q-wrong { border-left: 4px solid var(--red); }
.explanation { background: var(--accent-soft); padding: 8px 12px; border-radius: 8px; margin: 10px 0 0; }
.quiz-timer { position: sticky; top: 80px; z-index: 5; margin-left: auto; width: max-content; background: var(--primary); color: #fff; font-weight: 800; padding: .5em 1em; border-radius: 999px; margin-bottom: 12px; }
.quiz-timer.low { background: var(--red); }
.quiz-result { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.quiz-result.pass { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4, #fff); }
.quiz-result.fail { border-color: #fde68a; background: linear-gradient(135deg, var(--amber-soft), #fff); }
.score-ring { width: 120px; height: 120px; border-radius: 50%; border: 8px solid var(--primary); display: grid; place-items: center; align-content: center; text-align: center; background: var(--surface); }
.pass .score-ring { border-color: var(--green); }
.fail .score-ring { border-color: var(--accent); }
.score-ring strong { font-size: 1.8rem; line-height: 1; color: var(--primary); }
.score-ring small { color: var(--muted); font-size: .75rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.submission-status .marks { font-size: 1.1rem; }
.feedback { background: var(--primary-soft); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.feedback p { margin: 6px 0 0; }
.answer-text { background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; margin: 10px 0; white-space: normal; }
.box + .box { margin-top: 18px; }
.ls-section li.activity { background: var(--surface); border: 1px dashed var(--border); margin-top: 6px; }
.ls-section li.activity.done { border-style: solid; border-color: #bbf7d0; }
.curr-section li.activity { font-weight: 600; }
.ls-cert { margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.ls-cert.earned { border-color: var(--accent); background: var(--accent-soft); }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.req-list li::before { content: 'â—‹ '; color: var(--muted); }
.req-list li.ok::before { content: 'âœ” '; color: var(--green); }
.req-list li.ok { color: #065f46; }
.cert-link { position: relative; z-index: 2; flex-shrink: 0; }

/* ---- Certificates ---- */
.cert-card { text-align: center; display: grid; gap: 6px; justify-items: center; }
.cert-card-ico { font-size: 2.4rem; }
.cert-card h3 { margin: 0; }
.cert-progress-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cert-progress h3 { font-size: 1rem; }
h2.mt { margin-top: 36px; }
.cert-section { background: var(--bg-alt); }
.cert-toolbar { display: grid; gap: 10px; margin-bottom: 20px; }
.verified { color: var(--green); font-weight: 700; }
.cert-wrap { max-width: 1050px; margin: 0 auto; }
.cert { container-type: inline-size; aspect-ratio: 297 / 210; background: var(--surface); box-shadow: 0 20px 60px rgba(31, 26, 94, .18); position: relative; overflow: hidden;
        background-image: radial-gradient(60% 50% at 100% 0%, rgba(236, 72, 153, .12), transparent 70%), radial-gradient(50% 45% at 0% 100%, rgba(31, 26, 94, .08), transparent 70%); }
.cert-frame { position: absolute; inset: 2.6cqw; border: .45cqw solid var(--primary); outline: .15cqw solid var(--accent); outline-offset: -1.2cqw;
              display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4cqw 7cqw 2.4cqw; }
.corner { position: absolute; width: 5cqw; height: 5cqw; background: var(--accent); }
.corner.tl { top: -.45cqw; left: -.45cqw; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner.tr { top: -.45cqw; right: -.45cqw; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner.bl { bottom: -.45cqw; left: -.45cqw; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner.br { bottom: -.45cqw; right: -.45cqw; clip-path: polygon(100% 0, 0 100%, 100% 100%); }
.cert-logo { height: 4.6cqw; width: auto; margin-bottom: 2cqw; }
.cert-title { font-size: 2.4cqw; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); }
.cert-intro { font-size: 1.6cqw; color: var(--muted); margin-top: 2.2cqw; }
.cert-name { font-family: 'Playfair Display', Georgia, serif; font-size: 5.2cqw; font-weight: 700; color: var(--primary); line-height: 1.15; margin-top: 1cqw;
             padding: 0 4cqw .6cqw; border-bottom: .25cqw solid var(--accent); }
.cert-body { font-size: 1.6cqw; color: var(--muted); margin-top: 1.8cqw; }
.cert-course { font-size: 2.8cqw; font-weight: 800; color: var(--text); margin-top: .8cqw; max-width: 80cqw; line-height: 1.2; }
.cert-meta { font-size: 1.3cqw; color: var(--muted); margin-top: .8cqw; }
.cert-bottom { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3cqw; }
.cert-col { display: grid; gap: .3cqw; font-size: 1.25cqw; color: var(--muted); border-top: .12cqw solid #c9c6e3; padding-top: .8cqw; }
.cert-col strong { font-size: 1.45cqw; color: var(--text); }
.cert-sign { font-family: 'Great Vibes', cursive; font-size: 3.2cqw; color: var(--primary); line-height: 1; margin-bottom: -.6cqw; }
.cert-sign-img { max-height: 5cqw; width: auto; margin: 0 auto -.4cqw; }
.cert-col:has(.cert-sign, .cert-sign-img) { border-top: 0; padding-top: 0; }
.cert-col:has(.cert-sign, .cert-sign-img) strong { border-top: .12cqw solid #c9c6e3; padding-top: .8cqw; }
.cert-seal { width: 9cqw; height: 9cqw; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 55%, var(--accent-dark) 56% 60%, var(--accent) 61%);
             display: grid; place-items: center; align-content: center; color: var(--primary); box-shadow: 0 .6cqw 1.8cqw rgba(236, 72, 153, .4); }
.cert-seal span { font-size: 3cqw; font-weight: 800; line-height: 1; }
.cert-seal small { font-size: .9cqw; font-weight: 800; letter-spacing: .15em; }
.cert-foot { font-size: 1cqw; color: #9a98b8; margin-top: 1.6cqw; letter-spacing: .02em; }
@media print {
    @page { size: A4 landscape; margin: 0; }
    body.cert-page { background: var(--surface); }
    .cert-page .site-header, .cert-page .site-footer, .cert-page .whatsapp-float, .cert-toolbar, .cert-page .flash-wrap { display: none !important; }
    .cert-section { padding: 0 !important; background: var(--surface); }
    .cert-section .container { padding: 0; max-width: none; }
    .cert-wrap { max-width: none; width: 297mm; }
    .cert { width: 297mm; height: 210mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Print / "Save as PDF" - only the resource content */
@media print {
    .site-header, .site-footer, .whatsapp-float, .resource-layout aside, .section-alt, .crumbs, .flash-wrap { display: none !important; }
    .resource-layout { display: block; }
    .section { padding: 0; }
    body { font-size: 11pt; }
    .prose pre { background: #f4f3fa !important; color: #1e1b38 !important; border-left: 4px solid #7c3aed; white-space: pre-wrap; }
    a { color: inherit; }
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .course-layout, .resource-layout { grid-template-columns: 1fr; }
    .course-side { margin-top: 0; position: static; order: -1; }
    .learn-layout { grid-template-columns: 1fr; }
    .learn-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 56px; }
    .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
    .checklist.two-col { columns: 1; }
    .form-row { grid-template-columns: 1fr; }
    .cta-band { padding: 32px 24px; }
    .learn-content { padding: 20px 16px; }
    .learn-top { padding: 10px 16px; }
    .container { padding: 0 16px; }
    .auth-card { padding: 24px 18px; }
}
@media (max-width: 520px) {
    .grid-4, .cat-grid, .footer-grid { grid-template-columns: 1fr; }
    .filters > * { flex: 1 1 100%; }
    .hero-illustration { padding: 30px 0; }
}

/* ---------------- On-Page SEO Checker (/tools/seo-checker) ---------------- */
.seo-form .seo-field { display: block; }
.seo-input-row { display: flex; gap: 10px; margin-top: 6px; }
.seo-input-row input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; }
.seo-input-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,159,5,.18); }
.seo-error { border-color: #f1c0c0; background: #fff6f6; color: #8a1f1f; }
.seo-intro-list { margin: 10px 0 0; padding-left: 18px; line-height: 1.9; }

.seo-result { margin-top: 18px; }
.seo-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.seo-gauge { --size: 128px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
    background: conic-gradient(var(--g) calc(var(--pct) * 1%), #edecf4 0); }
.seo-gauge.good { --g: #1f9d55; }
.seo-gauge.ok { --g: #e0920a; }
.seo-gauge.bad { --g: #d6453d; }
.seo-gauge-inner { width: calc(var(--size) - 22px); height: calc(var(--size) - 22px); border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.seo-gauge-inner strong { font-size: 30px; line-height: 1; color: var(--text); }
.seo-gauge-inner strong span { font-size: 13px; color: var(--muted); }
.seo-gauge-inner em { display: block; font-style: normal; font-size: 12px; font-weight: 600; margin-top: 3px; color: var(--muted); }
.seo-head-info { flex: 1 1 260px; }
.seo-head-info h2 { margin: 0 0 8px; font-size: 20px; }
.seo-url { color: var(--primary); word-break: break-all; }
.seo-tally { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.seo-pill { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.seo-pill.pass { background: #e4f6ec; color: #1f7a45; }
.seo-pill.warn { background: #fdf0d9; color: #a66a06; }
.seo-pill.fail { background: #fbe4e2; color: #b23a32; }
.seo-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #edecf4; margin-top: 10px; }
.seo-bar-pass { background: #1f9d55; }
.seo-bar-warn { background: #e0920a; }
.seo-bar-fail { background: #d6453d; }

.seo-group { margin-top: 22px; }
.seo-group h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.seo-check { display: flex; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.seo-check.seo-pass { border-left: 4px solid #1f9d55; }
.seo-check.seo-warn { border-left: 4px solid #e0920a; }
.seo-check.seo-fail { border-left: 4px solid #d6453d; }
.seo-ico { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }
.seo-pass .seo-ico { background: #1f9d55; }
.seo-warn .seo-ico { background: #e0920a; }
.seo-fail .seo-ico { background: #d6453d; }
.seo-check-body { flex: 1 1 auto; min-width: 0; }
.seo-check-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seo-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.seo-detail { margin: 4px 0 0; color: var(--text); font-size: 14.5px; word-break: break-word; }
.seo-fix { margin: 6px 0 0; font-size: 14px; color: #4a4860; background: #f7f7fb; border-radius: 8px; padding: 8px 10px; }
.seo-fix strong { color: var(--primary); }
.seo-foot { margin-top: 16px; }
@media (max-width: 520px) {
    .seo-input-row { flex-direction: column; }
    .seo-head { gap: 16px; }
    .seo-gauge { --size: 108px; }
}

/* ---------------- Excel -> Dashboard generator (/tools/data-dashboard) ---------------- */
.dd-upload .drop.drag { border-color: var(--accent); background: #fff8ec; }
.dd-sheet-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.dd-sheet-row label { font-size: 14px; color: var(--muted); }
.dd-sheet-row select { margin-left: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text); }
.dd-status { margin-top: 12px; }
.dd-status.dd-err { color: #b23a32; }
.dd-intro { margin-top: 18px; }
.dd-steps { margin: 10px 0 0; padding-left: 20px; line-height: 1.9; }
.dd-steps li { margin-bottom: 4px; }

.dd-result { margin-top: 4px; }
.dd-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.dd-detected { flex: 1 1 240px; }
.dd-detected b { color: var(--primary); font-weight: 600; }
.dd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dd-actions .btn-light { border: 1px solid var(--border); color: var(--primary); }
.dd-actions .btn-light:hover { background: var(--surface-2); }
.dd-frame { width: 100%; height: 80vh; min-height: 560px; border: 1px solid var(--border); border-radius: var(--radius); background: #f4f4f9; box-shadow: var(--shadow); }
@media (max-width: 640px) {
    .dd-bar { flex-direction: column; align-items: stretch; }
    .dd-actions { justify-content: stretch; }
    .dd-actions .btn { flex: 1 1 auto; }
    .dd-frame { height: 70vh; }
}

/* Screen-reader-only (visually hidden but present for SEO/accessibility) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------- Background Remover (/tools/background-remover) ---------------- */
.br-upload .drop.drag { border-color: var(--accent); background: #fff8ec; }
.br-note { margin-top: 12px; }
.br-progress { margin-top: 14px; height: 8px; border-radius: 999px; background: #edecf4; overflow: hidden; }
.br-progress span { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .25s; }
.br-result { margin-top: 4px; }
.br-stage { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: start; }
.br-view { border: 1px solid var(--border); border-radius: var(--radius); min-height: 340px; display: grid; place-items: center; padding: 16px; box-shadow: var(--shadow); }
.br-view.checker { background: repeating-conic-gradient(#e9e9f0 0 25%, #fff 0 50%) 50% / 22px 22px; }
.br-view img { max-width: 100%; max-height: 62vh; display: block; }
.br-side h3 { margin: 0 0 10px; font-size: 14px; }
.br-bgs { display: flex; flex-wrap: wrap; gap: 8px; }
.br-bg { width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--border); cursor: pointer; padding: 0; position: relative; }
.br-bg.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(31,26,94,.18); }
.br-bg-custom { display: grid; place-items: center; overflow: hidden; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); }
.br-bg-custom input { width: 150%; height: 150%; border: 0; padding: 0; cursor: pointer; opacity: 0; }
.br-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.br-actions .btn-light { border: 1px solid var(--border); }
@media (max-width: 680px) {
    .br-stage { grid-template-columns: 1fr; }
    .br-side { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
    .br-actions { flex-direction: row; margin-top: 0; }
}

/* ---------------- PDF & Image converter (/tools/pdf-tools) ---------------- */
.pdf-settings { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.pdf-settings .ic-field { display: flex; flex-direction: column; gap: 5px; }
.pdf-settings select { padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; color: var(--text); background: var(--surface); }
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.pdf-thumb { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; display: grid; place-items: center; cursor: grab; }
.pdf-thumb.dragging { opacity: .4; }
.pdf-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.pdf-num { position: absolute; top: 6px; left: 6px; z-index: 2; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.pdf-x { position: absolute; top: 5px; right: 5px; z-index: 2; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(214,69,61,.92); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.pdf-dl { position: absolute; bottom: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 15px; box-shadow: var(--shadow); }
.pdf-dl:hover { color: #fff; }

/* ---------------- Free Tools: resources-page callout + long header dropdown ---------------- */
.tools-callout { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), #fff); box-shadow: var(--shadow); margin-bottom: 22px; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tools-callout:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.tools-callout .tc-ico { font-size: 30px; line-height: 1; flex: 0 0 auto; }
.tools-callout .tc-text { flex: 1 1 auto; display: flex; flex-direction: column; }
.tools-callout .tc-text strong { font-size: 17px; }
.tools-callout .tc-text small { color: var(--muted); font-size: 13.5px; }
.tools-callout .tc-go { flex: 0 0 auto; font-weight: 600; color: var(--primary); white-space: nowrap; }
@media (max-width: 560px) {
    .tools-callout { flex-wrap: wrap; }
    .tools-callout .tc-go { width: 100%; }
}
/* let a long tools dropdown scroll instead of running off-screen (desktop) */
@media (min-width: 1201px) {
    .main-nav .sub { max-height: 72vh; overflow-y: auto; }
}

/* Right-align the Free Tools dropdown so a long menu never runs off the right edge */
@media (min-width: 1201px) {
    .main-nav .sub-right > .sub { left: auto; right: 0; }
}

/* ---------------- Free Tools mega-menu ---------------- */
.main-nav .mega { display: none; position: absolute; top: 100%; right: 0; width: min(720px, 92vw); max-height: min(78vh, 600px); overflow-y: auto; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; z-index: 60; }
.main-nav li.has-sub:hover > .mega, .main-nav li.has-sub:focus-within > .mega { display: block; }
.mega-cols { display: flex; gap: 18px; }
.mega-colwrap { flex: 1 1 0; min-width: 0; }
.mega-col { margin-bottom: 8px; }
.mega-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 6px 8px; }
.mega-item { display: flex; gap: 11px; align-items: flex-start; padding: 9px 8px; border-radius: 11px; color: var(--text); transition: background .12s; }
.mega-item:hover { background: var(--surface-2); color: var(--text); }
.mega-item.active { background: #efeefb; }
.mega-ico { font-size: 19px; line-height: 1.15; flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; background: var(--surface-2); border-radius: 9px; }
.mega-item:hover .mega-ico { background: var(--surface); }
.mega-text { display: flex; flex-direction: column; min-width: 0; }
.mega-text strong { font-size: 14px; font-weight: 600; line-height: 1.2; }
.mega-text small { color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.mega-badge { font-size: 10px; font-weight: 700; color: #1f7a45; background: #e4f6ec; border-radius: 6px; padding: 1px 5px; margin-left: 2px; vertical-align: middle; }
.mega-foot { display: block; text-align: right; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 600; color: var(--primary); }
.mega-foot:hover { color: var(--accent); }
@media (max-width: 1200px) {
    .main-nav .mega { position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 2px 0 6px 10px; }
    .main-nav li.has-sub:hover > .mega { display: none; }
    .main-nav li.has-sub.open > .mega { display: block; }
    .mega-cols { flex-direction: column; gap: 0; }
    .mega-foot { text-align: left; }
    .mega-ico { background: transparent; }
}

/* ================= AI Prompt Library (/prompts) ================= */
.prompt-chips { margin-bottom: 20px; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }

.prompt-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pc-top { display: flex; gap: 12px; align-items: flex-start; }
.pc-ico { font-size: 24px; line-height: 1; width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; }
.pc-head { flex: 1 1 auto; min-width: 0; }
.pc-head h3 { margin: 0; font-size: 17px; }
.pc-head h3 a { color: var(--text); }
.pc-head h3 a:hover { color: var(--primary); }
.pc-cat { font-size: 12px; color: var(--muted); }
.pc-badge, .pc-badge { font-size: 10px; font-weight: 700; color: #a66a06; background: #fdf0d9; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.pc-desc { margin: 12px 0 6px; color: var(--muted); font-size: 14px; }

.pc-ba { display: grid; gap: 8px; margin: 8px 0 14px; }
.pc-sample { border-radius: 10px; padding: 10px 12px; position: relative; }
.pc-sample-tag { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.pc-sample-body { font-size: 13px; line-height: 1.5; max-height: 92px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); white-space: pre-wrap; }
.pc-before { background: var(--surface-2); border: 1px solid var(--border); }
.pc-before .pc-sample-tag { color: #8a8799; }
.pc-before .pc-sample-body { color: #76748c; }
.pc-after { background: #eefaf3; border: 1px solid #c9ecd8; }
.pc-after .pc-sample-tag { color: #1f7a45; }
.pc-after .pc-sample-body { color: #1d5236; }

.pc-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.pc-actions .btn { flex: 1 1 auto; }
.btn[data-copy-prompt].is-copied { background: #1f9d55 !important; border-color: #1f9d55 !important; color: #fff !important; }
.btn[data-copy-prompt].is-copyfail { background: #d6453d !important; border-color: #d6453d !important; color: #fff !important; }

/* ---- prompt detail (/prompts/slug) ---- */
.prompt-detail { max-width: 860px; }
.pd-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.pd-sample { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--border); }
.pd-sample-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.pd-sample-body { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.pd-before { background: var(--surface-2); } .pd-before .pd-sample-head { color: #8a8799; } .pd-before .pd-sample-body { color: #6d6b83; }
.pd-after { background: #eefaf3; border-color: #c9ecd8; } .pd-after .pd-sample-head { color: #1f7a45; } .pd-after .pd-sample-body { color: #1d5236; }

.pd-prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pd-prompt-head h2 { margin: 0; font-size: 18px; }
.prompt-full { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; margin: 0 0 10px; }
.pd-open { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.pd-related { margin-top: 30px; }
.pd-related h2 { font-size: 18px; margin-bottom: 14px; }

@media (max-width: 640px) {
    .prompt-grid { grid-template-columns: 1fr; }
    .pd-ba { grid-template-columns: 1fr; }
}

/* ================= PDF Tools suite (/tools/pdf) ================= */
.pdf-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pdf-tool-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.pdf-tool-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.ptc-ico { font-size: 24px; width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; }
.ptc-text { display: flex; flex-direction: column; min-width: 0; }
.ptc-text strong { font-size: 16px; }
.ptc-text small { color: var(--muted); font-size: 13px; margin-top: 2px; }

.pdf-suite .drop.drag { border-color: var(--accent); background: #fff8ec; }
.ps-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ps-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 13px; max-width: 100%; }
.ps-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.ps-chip button { border: 0; background: #e3e1ef; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; color: #555; }
.ps-opts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.ps-opts > p { flex-basis: 100%; margin: 0; }
.ps-field { display: flex; flex-direction: column; gap: 5px; }
.ps-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ps-field input[type=text], .ps-field input[type=number], .ps-field select { padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; min-width: 190px; color: var(--text); background: var(--surface); }
.ps-field input[type=color] { width: 46px; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 9px; }
.ps-go-row { margin-top: 20px; }
.ps-status { margin-top: 12px; }
.ps-status.dd-err { color: #b23a32; }
.ps-result { margin-top: 18px; }
.ps-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #eefaf3; border: 1px solid #c9ecd8; border-radius: 12px; padding: 14px 16px; }
.ps-done span { font-weight: 600; color: #1d7a45; }
.ps-outlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ps-outitem { font-size: 13px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--primary); }
.pdf-more { margin-top: 18px; }

/* organize: page thumbnails */
.ps-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; width: 100%; }
.ps-page { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: grab; display: grid; place-items: center; padding: 6px; }
.ps-page canvas { max-width: 100%; height: auto; display: block; }
.ps-page.ps-drag { opacity: .4; }
.ps-page.ps-page-del { opacity: .3; outline: 2px solid #d6453d; }
.ps-page-n { position: absolute; top: 5px; left: 5px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; z-index: 2; }
.ps-page-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(214,69,61,.92); color: #fff; font-size: 15px; cursor: pointer; z-index: 2; }

/* Safety: never allow sideways page scroll */
html, body { overflow-x: clip; }


/* ================= Mini tools (text / calculators / utilities) ================= */
.mt-box { max-width: 760px; }
.mt-area { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; line-height: 1.6; resize: vertical; font-family: inherit; }
.mt-area:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,159,5,.15); }
.mt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 16px; }
.mt-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; text-align: center; }
.mt-stat strong { display: block; font-size: 22px; color: var(--primary); }
.mt-stat span { font-size: 12px; color: var(--muted); }
.mt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mt-btns .btn { border: 1px solid var(--border); }
.mt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.mt-field { display: flex; flex-direction: column; gap: 6px; }
.mt-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.mt-field input[type=text], .mt-field input[type=number], .mt-field input[type=date], .mt-field select, .mt-grid2 input, .mt-pc-row input {
    padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; color: var(--text); background: var(--surface); }
.mt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.mt-grid2 .mt-field input { width: 100%; }
.mt-result { margin-top: 16px; background: #eefaf3; border: 1px solid #c9ecd8; border-radius: 14px; padding: 16px 18px; }
.mt-result.dd-err { background: #fff6f6; border-color: #f1c0c0; color: #8a1f1f; }
.mt-big { font-size: 28px; font-weight: 700; color: #1d7a45; }
.mt-statrow { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; color: var(--text); font-size: 14px; }
.mt-statrow b { color: var(--primary); }

/* password */
.mt-pw-out { display: flex; gap: 8px; }
.mt-pw-out input { flex: 1 1 auto; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 18px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.mt-pw-strength { height: 8px; border-radius: 999px; background: #edecf4; overflow: hidden; margin: 12px 0 4px; position: relative; }
.mt-pw-strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.mt-pw-strength::after { content: attr(data-label); position: absolute; right: 2px; top: 10px; font-size: 11px; color: var(--muted); }
.mt-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 18px 0; }
.mt-field input[type=range] { width: 100%; }
#pwLen { margin-top: 4px; }

/* qr */
.mt-qr { margin-top: 16px; display: grid; place-items: center; min-height: 40px; }
.mt-qr img, .mt-qr canvas { border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--surface); }

/* percentage */
.mt-pc { display: flex; flex-direction: column; gap: 12px; }
.mt-pc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.mt-pc-row input { width: 100px; }
.mt-pc-row b { margin-left: auto; font-size: 18px; color: var(--primary); }

/* marks */
.mt-sub { padding: 16px 0; border-bottom: 1px solid var(--border); }
.mt-sub:last-child { border-bottom: 0; }
.mt-sub h3 { margin: 0 0 12px; font-size: 16px; }

@media (max-width: 560px) { .mt-grid2 { grid-template-columns: 1fr; } .mt-pc-row b { margin-left: 0; width: 100%; } }

/* ================= Gamification widget + leaderboard ================= */
.gami { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border: 0; }
.gami-top { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.gami-streak { display: flex; align-items: center; gap: 10px; }
.gami-flame { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(242,159,5,.6)); }
.gami-streak strong { font-size: 30px; }
.gami-streak span { font-size: 13px; opacity: .85; line-height: 1.2; }
.gami-streak small { opacity: .7; }
.gami-xp-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 7px; }
.gami-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.gami-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ec4899, #ffcf6b); border-radius: 999px; transition: width .4s; }
.gami-xp small { display: block; margin-top: 6px; color: rgba(255,255,255,.7) !important; }
.gami-rank { text-align: center; color: #fff; background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 16px; }
.gami-rank:hover { color: #fff; background: rgba(255,255,255,.2); }
.gami-rank span { display: block; font-size: 22px; font-weight: 700; }
.gami-rank small { font-size: 11px; opacity: .85; }
.gami-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.gami-badge { text-align: center; width: 76px; }
.gami-badge span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 4px; border-radius: 14px; font-size: 24px; background: rgba(255,255,255,.14); }
.gami-badge small { font-size: 10.5px; line-height: 1.2; display: block; opacity: .9; }
.gami-badge.off span { filter: grayscale(1); opacity: .35; }
.gami-badge.off small { opacity: .45; }
.gami-badge.on span { background: rgba(242,159,5,.3); box-shadow: 0 0 0 2px rgba(242,159,5,.5); }
.gami-hint { color: rgba(255,255,255,.7) !important; margin: 14px 0 0; }
@media (max-width: 680px) {
    .gami-top { grid-template-columns: 1fr 1fr; }
    .gami-xp { grid-column: 1 / -1; order: 3; }
    .gami-rank { order: 2; }
}

.lb-wrap { max-width: 720px; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-list + .lb-you { margin-top: 10px; }
.lb-row { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.lb-head { background: transparent; border: 0; padding: 4px 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.lb-rank { font-size: 20px; font-weight: 700; text-align: center; color: var(--primary); }
.lb-top .lb-rank { font-size: 24px; }
.lb-name { display: flex; flex-direction: column; min-width: 0; }
.lb-name strong { font-size: 15px; }
.lb-name small { font-size: 12px; color: var(--muted); }
.lb-streak { color: #a66a06; font-weight: 600; font-size: 14px; white-space: nowrap; }
.lb-pts { font-size: 18px; font-weight: 700; color: var(--primary); }
.lb-me { border-color: var(--accent); background: #fff8ec; box-shadow: 0 0 0 2px rgba(242,159,5,.2); }
.lb-top { background: linear-gradient(90deg, var(--surface-2), #fff); }
.lb-cta { margin-top: 16px; }
.lb-note { margin-top: 16px; }
@media (max-width: 480px) { .lb-head .lb-streak { display: none; } .lb-row { grid-template-columns: 40px 1fr auto; } .lb-row .lb-streak { display: none; } }

/* ================= Referral (Refer & Earn) ================= */
.gami-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.gami-foot .gami-hint { margin: 0; flex: 1 1 240px; }
.gami-refer { flex: 0 0 auto; }

.rf-wrap { max-width: 680px; }
.rf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.rf-stat { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border-radius: 14px; padding: 18px; text-align: center; }
.rf-stat strong { display: block; font-size: 30px; }
.rf-stat span { font-size: 13px; opacity: .85; }
.rf-link-box { margin-bottom: 16px; }
.rf-link-row { display: flex; gap: 8px; margin: 6px 0 14px; }
.rf-link-row input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--surface-2); }
.rf-share { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; }
.btn-wa:hover { background: #1fbd5a; color: #fff; }
.rf-share .btn-light { border: 1px solid var(--border); }
.rf-how { margin-bottom: 16px; }
.rf-how h2, .rf-list h2 { font-size: 17px; margin: 0 0 12px; }
.rf-steps { margin: 0; padding-left: 20px; line-height: 1.9; }
.rf-friend { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rf-friend:last-child { border-bottom: 0; }
.rf-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.rf-friend strong { flex: 1 1 auto; }
.rf-friend small { color: var(--muted); }
@media (max-width: 480px) { .rf-link-row { flex-direction: column; } }

/* ================= Global search (/search) ================= */
.gs-form { display: flex; gap: 8px; max-width: 640px; margin-top: 12px; }
.gs-form input { flex: 1 1 auto; min-width: 0; padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 16px; }
.gs-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,159,5,.15); }
.gs-wrap { max-width: 720px; }
.gs-hint { font-size: 15px; }
.gs-count { margin: 0 0 14px; }
.gs-group { margin-bottom: 22px; }
.gs-group h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.gs-item { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--surface); color: var(--text); transition: border-color .12s, transform .12s; }
.gs-item:hover { border-color: var(--accent); transform: translateX(2px); color: var(--text); background: var(--surface-2); }
.gs-ico { font-size: 20px; width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; background: var(--surface-2); border-radius: 9px; }
.gs-text { display: flex; flex-direction: column; min-width: 0; }
.gs-text strong { font-size: 15px; }
.gs-text small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }

/* ================= Notifications bell + panel ================= */
.notif-wrap { position: relative; }
.notif-bell { position: relative; background: none; border: 0; cursor: pointer; padding: 6px; }
.notif-count { position: absolute; top: -2px; right: -2px; }
.notif-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: 92vw; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow); z-index: 70; overflow: hidden; }
.notif-top { padding: 12px 16px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-item { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid #f0eff6; color: var(--text); align-items: flex-start; }
a.notif-item:hover { background: var(--surface-2); color: var(--text); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--surface-2); }
.notif-item.unread::before { content: ''; position: absolute; }
.notif-ico { font-size: 20px; width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; background: #f0eff8; border-radius: 10px; }
.notif-item.unread .notif-ico { background: rgba(242,159,5,.18); }
.notif-body { display: flex; flex-direction: column; min-width: 0; }
.notif-body strong { font-size: 14px; line-height: 1.3; }
.notif-body small { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin: 2px 0; }
.notif-body time { color: #9b99b3; font-size: 11px; }
@media (max-width: 1200px) {
    .notif-panel { position: static; width: auto; max-width: none; box-shadow: none; border: 0; border-radius: 0; margin: 4px 0 0; background: var(--surface-2); }
    .notif-wrap { width: 100%; }
    .notif-bell { width: auto; }
}

/* ================= Dark mode ================= */
:root[data-theme="dark"] {
    --primary: #c4b5fd; --primary-dark: #ddd6fe; --primary-soft: #2a1b52; --primary-line: #40306b;
    --accent: #f472b6; --accent-dark: #f9a8d4; --accent-soft: #3a1526;
    --green: #34d399; --green-soft: #10281f; --amber-soft: #2e2512; --red: #f87171;
    --text: #e8e7f1; --muted: #a6a3bd; --border: #302c48;
    --bg: #121020; --bg-alt: #1a1832; --surface: #1c1933; --surface-2: #242146; --dark: #0c0a17;
    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.5);
    color-scheme: dark;
}
:root[data-theme="dark"] body { background: var(--bg); }
:root[data-theme="dark"] .site-header { background: rgba(18, 16, 32, .9); }
:root[data-theme="dark"] .lead { color: #c6c4da; }
:root[data-theme="dark"] .main-nav ul a { color: #cbc9df; }
:root[data-theme="dark"] .main-nav ul a:hover, :root[data-theme="dark"] .main-nav ul a.active { color: #fff; background: var(--primary-soft); }
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select { background: var(--surface-2); color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] .btn-light { background: var(--surface-2); color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] .btn-ghost { color: var(--text); }
:root[data-theme="dark"] code { background: var(--surface-2); }
:root[data-theme="dark"] .announce-bar { background: var(--primary-soft); color: var(--text); }
:root[data-theme="dark"] .logo-tagline { color: var(--muted); }
:root[data-theme="dark"] .pc-before, :root[data-theme="dark"] .pd-before { background: var(--surface-2); }
:root[data-theme="dark"] .pc-before .pc-sample-body, :root[data-theme="dark"] .pd-before .pd-sample-body { color: #b9b7cf; }
:root[data-theme="dark"] .pc-after, :root[data-theme="dark"] .pd-after { background: #16331f; border-color: #1f5236; }
:root[data-theme="dark"] .pc-after .pc-sample-body, :root[data-theme="dark"] .pd-after .pd-sample-body, :root[data-theme="dark"] .mt-big, :root[data-theme="dark"] .ps-done span { color: #5fd698; }
:root[data-theme="dark"] .mt-result:not(.dd-err), :root[data-theme="dark"] .ps-done, :root[data-theme="dark"] .pc-after, :root[data-theme="dark"] .rf-how, :root[data-theme="dark"] .lb-top { background: #16331f; }
:root[data-theme="dark"] .seo-before, :root[data-theme="dark"] .notif-item.unread { background: var(--surface-2); }
:root[data-theme="dark"] .lb-me { background: #2e2512; }
:root[data-theme="dark"] .tag, :root[data-theme="dark"] .chip { color: var(--text); }
/* keep white where white is required (QR codes, PDF/image page previews) */
.mt-qr img, .mt-qr canvas, .pdf-thumb img { background: #fff; }
/* theme toggle button */
.theme-toggle { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--text); display: grid; place-items: center; }
.theme-toggle .moon { display: block; } .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; } :root[data-theme="dark"] .theme-toggle .sun { display: block; }

/* ================= Course Q&A / community ================= */
.qa-ask { margin: 10px 0 18px; }
.qa-ask label { display: block; margin-bottom: 10px; font-weight: 600; font-size: .95rem; }
.qa-ask input[type=text], .qa-ask textarea, .qa-reply textarea { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-weight: 400; color: var(--text); background: var(--surface); }
.qa-list { display: flex; flex-direction: column; gap: 14px; }
.qa-q { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.qa-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-meta .avatar { width: 30px; height: 30px; font-size: 13px; }
.qa-staff { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 7px; }
.qa-title { margin: 10px 0 4px; font-size: 1.05rem; }
.qa-body { margin: 0; color: var(--text); }
.qa-del { margin-left: auto; }
.qa-del button { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.qa-del button:hover { background: var(--red); color: #fff; }
.qa-answers { margin: 12px 0 6px; padding-left: 14px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.qa-a { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }
.qa-a p { margin: 6px 0 0; }
.qa-a-staff { background: var(--accent-soft); border: 1px solid var(--accent); }
.qa-reply { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.qa-reply textarea { flex: 1 1 auto; }
.qa-empty { padding: 16px 0; }
:root[data-theme="dark"] .qa-a-staff { background: #33290f; }

/* PWA install button in the header */
.install-btn { white-space: nowrap; }
@media (max-width: 1200px) { .install-btn { width: 100%; } }

/* Floating "Install app" pill (kept out of the header so the header is identical on every page) */
.install-float { position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 2px;
    background: var(--primary); color: #fff; border-radius: 999px; padding: 4px 4px 4px 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.install-float-btn { background: var(--accent); color: var(--primary-dark); border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.install-float-btn:hover { background: var(--accent-dark); }
.install-float-x { background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 8px; opacity: .85; }
.install-float-x:hover { opacity: 1; }
.has-sticky-cta .install-float { bottom: 84px; }
@media (max-width: 560px) { .install-float { left: 12px; bottom: 12px; } .install-float-btn { font-size: .82rem; padding: 8px 13px; } }

/* Hindi <-> English translator */
.mt-trans-dir { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mt-trans-dir select { flex: 1 1 auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: var(--surface); color: var(--text); }
.mt-swap { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; font-size: 18px; cursor: pointer; color: var(--primary); }
.mt-swap:hover { background: var(--primary-soft); }
.mt-trans-out { margin-top: 16px; }
.mt-trans-result { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); font-size: 16px; line-height: 1.6; min-height: 48px; white-space: pre-wrap; margin: 6px 0 10px; color: var(--text); }

/* ================= UI polish pass (site-wide, theme-safe) ================= */
/* smooth, springy interactions */
.btn { transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { box-shadow: 0 4px 14px rgba(242,159,5,.32); }
.btn-accent:hover { box-shadow: 0 9px 22px rgba(242,159,5,.42); }
.btn:not(.btn-accent):not(.btn-ghost):not(.btn-light):not(.btn-outline) { box-shadow: 0 4px 14px rgba(31,26,94,.22); }

/* content cards: lift + deeper shadow + image zoom */
.card, .tool-card, .cat-card, .feature, .pdf-tool-card, .prompt-card, .lb-row, .resource-card, .testimonial, .faq { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(16,24,40,.14); border-color: var(--primary-line); }
.cat-card:hover, .feature:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,24,40,.12); }
.card .card-media, .card .cover, .card .thumb-placeholder { overflow: hidden; }
.card .card-media img, .card .cover img { transition: transform .5s ease; }
.card:hover .card-media img, .card:hover .cover img { transform: scale(1.05); }

/* cards pop a touch more */
.box, .card { border-radius: 16px; }

/* inputs: consistent, friendly focus ring everywhere */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus,
textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,159,5,.18); }

/* chips & tags: softer, rounder */
.chip { transition: transform .15s ease, box-shadow .15s ease; }
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(16,24,40,.08); }

/* section headings: a subtle accent underline */
.section-head h2::after, .page-hero h1::after { content: ''; display: block; width: 52px; height: 4px; margin-top: 12px;
    background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 999px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* links in content: smooth */
a { transition: color .15s ease; }

/* soft gradient depth on alternating sections */
.section-alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }

/* avatars / round images a bit nicer */
.avatar { box-shadow: 0 2px 6px rgba(16,24,40,.12); }

/* gentle fade-up for cards on first paint */
@keyframes sk-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .course-grid .card, .cat-grid .cat-card, .tools-grid .tool-card, .grid-4 > *, .prompt-grid > *, .pdf-hub > * { animation: sk-fade-up .5s ease both; }
}
