:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --ink: #172033;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #c99a35;
    --danger: #9f1239;
    --ok: #166534;
    --warn: #92400e;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
    --max: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, textarea, select { font-family: inherit; }

.wrap {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 88px;
}

.brand {
    flex: 0 0 auto;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--muted);
    font-size: 14px;
}

.nav a.is-active { color: var(--ink); font-weight: 600; }

.page { padding: 36px 0 64px; }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
}

.page-head h1,
.panel h1,
.auth-card h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.4;
}

.lede, .muted { color: var(--muted); }

.lede { margin: 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-link { display: block; height: 100%; color: inherit; }

.card-link:hover { border-color: #d1d5db; }

.cover {
    aspect-ratio: 16 / 10;
    background: #eceff3 center/cover no-repeat;
}

.cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 32px;
    font-weight: 700;
    background: #fbf4e1;
}

.card-body, .panel { padding: 18px 18px 20px; }

.card h2, .row-title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.card p { margin: 0; color: var(--muted); font-size: 13px; }

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
}

.price { font-weight: 700; color: var(--ink); }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.buybox { position: sticky; top: 84px; }

.hero-cover {
    aspect-ratio: 16 / 8;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid var(--line);
}

.stack { display: flex; flex-direction: column; gap: 10px; }

.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover { background: #0f1b40; }

.btn-block { width: 100%; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover { background: #f8fafc; }

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: #fecdd3;
}

.btn-danger:hover { background: #fff1f2; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lesson-list { display: flex; flex-direction: column; }

.lesson-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.lesson-row:first-child { border-top: 0; }

.lesson-row span { color: var(--muted); font-size: 12px; }

.lock { color: var(--muted); }

.field { margin-bottom: 16px; }

.field label, .check-row {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.input, textarea.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafafa;
    color: var(--ink);
    font-size: 14px;
}

.input:focus, textarea.input:focus {
    outline: none;
    border-color: #93a4cf;
    background: white;
}

.check { width: auto; margin-left: 8px; }

.hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.errorlist, .form-error {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: var(--danger);
    font-size: 13px;
}

.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.message {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-size: 14px;
}

.message.success { background: #f0fdf4; color: var(--ok); border-color: #bbf7d0; }
.message.error { background: #fff1f2; color: var(--danger); border-color: #fecdd3; }
.message.info, .message.warning { background: #fffbeb; color: var(--warn); border-color: #fde68a; }

.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--muted);
    font-size: 12px;
}

.status.ok { background: #f0fdf4; color: var(--ok); }
.status.wait { background: #fffbeb; color: var(--warn); }
.status.no { background: #fff1f2; color: var(--danger); }

.rows { display: flex; flex-direction: column; gap: 10px; }

.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.pay-card {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.pay-card:first-child { border-top: 0; padding-top: 0; }

.card-number {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.08em;
    font-weight: 700;
    direction: ltr;
    text-align: right;
}

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0 18px;
}

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prose p { margin: 0 0 1em; }

.auth-wrap {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 24px;
}

.account {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.avatar, .avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.avatar-fallback, .avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbf4e1;
    color: var(--accent);
    font-weight: 700;
}

.avatar-empty {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 12px;
    font-size: 28px;
}

.center { text-align: center; }

.empty { padding: 28px 8px; color: var(--muted); }

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    padding: 18px 0 28px;
}

.split { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

@media (max-width: 800px) {
    .detail { grid-template-columns: 1fr; }
    .buybox { position: static; }
    .page-head, .row, .account { align-items: stretch; flex-direction: column; }
    .page-head h1 { font-size: 24px; }
}

.cyber-atmosphere,
#cyber-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cyber-atmosphere { z-index: -3; overflow: hidden; }
#cyber-particles { z-index: -2; }

.circuit-board {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.34;
}

.circuit-traces,
.circuit-components {
    fill: none;
    stroke: url(#circuit-gradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.circuit-traces {
    stroke-dasharray: 7 15;
    animation: circuit-flow 24s linear infinite;
}

.circuit-components { stroke-width: 1.2; opacity: 0.8; }

.circuit-nodes {
    fill: #e2b960;
    filter: drop-shadow(0 0 5px rgba(226, 185, 96, 0.9));
}

.cyber-grid {
    position: absolute;
    inset: -30%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    transform: perspective(700px) rotateX(58deg) translateY(24%);
    transform-origin: center bottom;
    mask-image: linear-gradient(to bottom, transparent 8%, black 55%, transparent 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.45;
    animation: orb-float 14s ease-in-out infinite alternate;
}

.orb-one {
    width: 320px;
    height: 320px;
    top: 8%;
    right: -120px;
    background: radial-gradient(circle, rgba(226, 185, 96, 0.20), transparent 68%);
}

.orb-two {
    width: 440px;
    height: 440px;
    bottom: -180px;
    left: -160px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.16), transparent 68%);
    animation-delay: -5s;
}

.orb-three {
    width: 220px;
    height: 220px;
    top: 48%;
    left: 58%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
    animation-delay: -9s;
}


@media (prefers-reduced-motion: reduce) {
    .circuit-traces { animation: none; }
}

.catalog-hero {
    position: relative;
    min-height: 460px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    margin-bottom: 18px;
    padding: clamp(28px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 82% 50%, rgba(226, 185, 96, 0.06), transparent 48%),
        linear-gradient(120deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px rgba(255, 255, 255, 0.8);
}

.catalog-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: 32%;
    bottom: -280px;
    border: 1px solid rgba(226, 185, 96, 0.20);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(226, 185, 96, 0.08);
    pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }

.hero-copy .catalog-kicker {
    display: inline-block;
    letter-spacing: 0;
}

.hero-copy h1 { font-size: clamp(38px, 5vw, 62px); }

.hero-copy p {
    max-width: 440px;
    font-size: 15px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Hero poster (Mobile First) ---------- */
.hero-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
}

.hero-poster {
    display: block;
    width: min(100%, 360px);
    margin-inline: auto;
}

.hero-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 1px solid rgba(226, 185, 96, 0.38);
    box-shadow: 0 26px 60px rgba(2, 7, 18, 0.6), 0 0 40px rgba(226, 185, 96, 0.08);
}

.hero-course-count {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid rgba(226, 185, 96, 0.35);
    border-radius: 999px;
    background: rgba(7, 15, 32, 0.55);
    color: #dfe7f2;
    font-size: 12px;
}

.hero-course-count strong {
    color: #e2b960;
    font: 700 18px/1 Consolas, monospace;
}


.catalog-kicker,
.welcome-kicker {
    color: #e2b960;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.catalog-hero h1 {
    margin: 10px 0 16px;
    max-width: 620px;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.catalog-hero h1 span {
    color: #e2b960;
    text-shadow: 0 0 28px rgba(226, 185, 96, 0.16);
}

.catalog-hero p {
    max-width: 560px;
    margin: 0 0 24px;
    color: var(--muted);
}

.catalog-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 28px;
}

.catalog-features article {
    position: relative;
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 18, 42, 0.66);
}

.catalog-features article span {
    display: block;
    margin-bottom: 28px;
    color: var(--accent, #9a7420);
    font-size: 11px;
}

.catalog-features article strong { display: block; }
.catalog-features article p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(18px);
    animation: welcome-fade 350ms ease both;
}

.welcome-overlay.is-leaving {
    opacity: 0;
    transition: opacity 420ms ease;
}

.welcome-card {
    width: min(500px, 100%);
    padding: 42px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(226, 185, 96, 0.14), transparent 260px),
        linear-gradient(145deg, rgba(13, 28, 58, 0.98), rgba(8, 15, 34, 0.98));
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 60px rgba(226, 185, 96, 0.08);
    animation: welcome-pop 520ms cubic-bezier(.22, 1, .36, 1) both;
}

.welcome-logo {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid rgba(226, 185, 96, 0.42);
    border-radius: 20px;
    color: #f7e6bd;
    font-size: 34px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(226, 185, 96, 0.22), rgba(201, 154, 53, 0.30));
    box-shadow: 0 16px 40px rgba(226, 185, 96, 0.12);
}

.welcome-card h1 {
    margin: 8px 0 12px;
    font-size: 32px;
}

.welcome-card p:not(.welcome-kicker) {
    margin: 0 0 24px;
    color: var(--muted);
}

.welcome-close { min-width: 180px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(226, 185, 96, 0.32);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 35%, rgba(226, 185, 96, 0.18), transparent 68%),
        linear-gradient(145deg, rgba(226, 185, 96, 0.12), rgba(201, 154, 53, 0.3)),
        #0b1530;
    box-shadow: 0 0 34px rgba(226, 185, 96, 0.13), inset 0 1px rgba(255, 255, 255, 0.10);
    animation: brand-float 4s ease-in-out infinite;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(226, 185, 96, 0.24);
    border-left-color: transparent;
    border-radius: 24px;
    animation: brand-spin 9s linear infinite;
}

.brand-mark svg {
    width: 54px;
    height: 54px;
    overflow: visible;
}

.brand-mark-frame,
.brand-mark-letter,
.brand-mark-trace {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-mark-frame {
    stroke: url(#amanj-logo-gradient);
    stroke-width: 1.5;
    stroke-dasharray: 120 18;
    animation: brand-trace 7s linear infinite;
}

.brand-mark-letter {
    stroke: #e0fbff;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(226, 185, 96, 0.72));
}

.brand-mark-trace {
    stroke: rgba(226, 185, 96, 0.8);
    stroke-width: 1.3;
}

.brand-mark-node {
    fill: #e2b960;
    filter: drop-shadow(0 0 4px rgba(226, 185, 96, 0.9));
}

.brand-copy {
    display: grid;
    gap: 3px;
    line-height: 1.2;
}

.brand-copy strong {
    color: #dffaff;
    font-size: clamp(24px, 3vw, 31px);
    letter-spacing: -0.06em;
    text-shadow: 0 0 22px rgba(226, 185, 96, 0.3);
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

@keyframes brand-spin {
    to { transform: rotate(360deg); }
}

@keyframes brand-trace {
    to { stroke-dashoffset: -276; }
}

@keyframes brand-float {
    50% { transform: translateY(-3px); }
}

@media (max-width: 800px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 10px 0 12px;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .brand-mark svg { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-mark,
    .brand-mark::before,
    .brand-mark-frame { animation: none; }
}

.course-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.old-price {
    color: #8fa7c2;
    font-size: 12px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.sale-price {
    color: #e2b960 !important;
    font-weight: 800;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(251, 146, 60, 0.30);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
    font-size: 11px;
    font-weight: 800;
}

.detail-price { margin-bottom: 12px; }

.support-fab {
    position: fixed;
    z-index: 50;
    left: 22px;
    bottom: 22px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(226, 185, 96, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 22, 38, 0.98), rgba(201, 154, 53, 0.98));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 16px 38px rgba(226, 185, 96, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.support-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(226, 185, 96, 0.30);
}

.support-fab-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.support-fab-icon::before,
.support-fab-icon::after {
    content: "";
    position: absolute;
    background: #fff;
}

.support-fab-icon::before {
    width: 12px;
    height: 8px;
    left: 8px;
    top: 8px;
    border-radius: 6px;
}

.support-fab-icon::after {
    width: 5px;
    height: 5px;
    left: 11px;
    bottom: 5px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.support-shell {
    min-height: 520px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 15, 34, 0.82);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.support-info {
    position: relative;
    padding: 34px 28px;
    border-left: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 80%, rgba(226, 185, 96, 0.12), transparent 180px),
        linear-gradient(145deg, rgba(15, 29, 58, 0.96), rgba(8, 15, 34, 0.92));
}

.support-status-dot {
    width: 10px;
    height: 10px;
    display: block;
    margin-bottom: 34px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.8);
}

.support-kicker {
    color: #e2b960;
    font-size: 11px;
    font-weight: 800;
}

.support-info h1 {
    margin: 10px 0 12px;
    font-size: 27px;
    line-height: 1.35;
}

.support-info p:last-child {
    color: var(--muted);
    font-size: 13px;
}

.support-chat {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.support-chat-head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.support-chat-head div {
    display: grid;
}

.support-chat-head div span {
    color: var(--muted);
    font-size: 11px;
}

.support-messages {
    max-height: 390px;
    overflow-y: auto;
    padding: 18px;
}

.support-message {
    max-width: 78%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px 14px 14px 4px;
    background: #f8fafc;
}

.support-message.is-user {
    margin-right: auto;
    border-color: rgba(226, 185, 96, 0.22);
    background: linear-gradient(135deg, rgba(15, 22, 38, 0.24), rgba(201, 154, 53, 0.18));
}

.support-message strong {
    display: block;
    margin-bottom: 5px;
    color: #e2b960;
    font-size: 11px;
}

.support-message p {
    margin: 0;
    white-space: normal;
}

.support-message time {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
}

.support-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
}

.support-form textarea {
    width: 100%;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(3, 9, 28, 0.72);
    color: var(--ink);
}

.support-error {
    margin: 12px 14px 0;
    color: #fda4af;
    font-size: 13px;
}

.support-empty {
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.support-welcome {
    width: min(460px, calc(100% - 32px));
    padding: 34px;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(226, 185, 96, 0.16), transparent 220px),
        linear-gradient(145deg, rgba(13, 28, 58, 0.99), rgba(8, 15, 34, 0.99));
    color: var(--ink);
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 50px rgba(226, 185, 96, 0.12);
}

.support-welcome::backdrop {
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(10px);
}

.support-welcome-logo {
    margin: 0 auto 16px;
    transform: none;
}

.support-welcome h2 {
    margin: 8px 0 10px;
    font-size: 24px;
}

.support-welcome p:not(.support-kicker) {
    margin: 0 0 22px;
    color: var(--muted);
}

.about-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 36px;
    background:
        radial-gradient(circle at 100% 0, rgba(226, 185, 96, 0.14), transparent 300px),
        linear-gradient(145deg, #f8fafc, rgba(8, 15, 34, 0.86));
}

.about-logo {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    transform: none;
}

.about-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(26px, 4vw, 38px);
}

.about-hero .lede { max-width: 650px; }
.about-actions { margin-top: 22px; }
.about-features { margin-bottom: 22px; }

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-inner a { color: #f0d089; }
.footer-inner a:hover { color: #dff8ff; }

.course-reviews {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    padding: clamp(20px, 4vw, 34px);
    border-color: rgba(226, 185, 96, 0.22);
    background:
        radial-gradient(ellipse at 100% 0, rgba(226, 185, 96, 0.05), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.review-heading,
.review-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.review-heading {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.review-heading-copy .catalog-kicker { margin: 0; }
.review-heading h2 { margin: 4px 0 2px; font-size: clamp(20px, 3vw, 25px); }
.review-heading-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }

.review-score {
    min-width: 190px;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 12px 20px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
}

.review-score-value { display: flex; align-items: baseline; gap: 5px; }
.review-score-value strong { color: #fff1b8; font-size: 30px; line-height: 1.2; }
.review-score-value span,
.review-score > span:last-child { color: var(--muted); font-size: 11px; }
.review-score-stars { color: #fbbf24; font-size: 17px; letter-spacing: 3px; line-height: 1.4; }
.review-score-stars .is-empty { color: rgba(148, 163, 184, 0.5); }
.review-score-empty { min-height: 91px; border-color: var(--line); background: #f1f5f9; }
.review-score-empty .review-score-stars { color: rgba(148, 163, 184, 0.58); font-size: 22px; }

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 14px;
}

.review-card {
    position: relative;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-author { justify-content: flex-start; }
.review-author > div { display: grid; gap: 2px; }
.review-author strong { font-size: 13px; }
.review-author time {
    margin-right: auto;
    padding: 3px 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.review-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 2px solid rgba(226, 185, 96, 0.3);
    border-radius: 15px;
    object-fit: cover;
}

.review-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(226, 185, 96, 0.2), rgba(226, 185, 96, 0.25));
    color: #f7e6bd;
    font-weight: 800;
}

.verified-review { color: #86efac; font-size: 10px; }
.verified-review span { margin-left: 2px; }
.review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 15px;
    color: #fbbf24;
    font-size: 15px;
    letter-spacing: 1px;
}
.review-rating .is-empty { color: rgba(148, 163, 184, 0.5); }
.review-rating-label {
    margin-right: 7px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0;
}
.review-body {
    position: relative;
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #d7e5f5;
    font-size: 13px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.review-empty {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 28px 16px;
    border: 1px dashed rgba(125, 211, 252, 0.22);
    border-radius: 18px;
    background: rgba(3, 9, 28, 0.28);
    text-align: center;
}

.review-empty-icon { color: #e2b960; font-size: 24px; }
.review-empty strong { font-size: 14px; }
.review-empty p { margin: 0; color: var(--muted); font-size: 12px; }

.review-compose {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(226, 185, 96, 0.17);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(8, 47, 73, 0.24), rgba(30, 27, 75, 0.2));
}

.review-compose-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-compose h3 { margin: 0; font-size: 16px; }
.review-compose-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.review-compose-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(226, 185, 96, 0.25);
    border-radius: 13px;
    background: rgba(226, 185, 96, 0.1);
    color: #a5f3fc;
    font-size: 20px;
}
.review-pending {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    background: rgba(146, 64, 14, 0.14);
    color: #fcd34d;
    font-size: 12px;
}

.review-form { max-width: 660px; }
.review-form .field { margin-bottom: 12px; }
.review-form textarea { resize: vertical; }
.review-form .input { border-radius: 12px; }
.review-form textarea.input { min-height: 120px; }
.review-form .field label { font-size: 12px; }
.review-form .btn { margin-top: 2px; }
.review-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 8px;
    margin: 4px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.review-consent label { cursor: pointer; }
.review-consent small { grid-column: 2; }
.review-access-note {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}
.review-access-note p { margin: 0; }
.review-access-note a { color: #f0d089; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
    .support-shell { grid-template-columns: 1fr; }
    .support-info {
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }
    .support-status-dot { margin-bottom: 12px; }
    .support-form { grid-template-columns: 1fr; }
    .support-fab { left: 12px; bottom: 12px; }
    .about-hero { padding: 28px 22px; }
    .course-reviews { padding: 20px 16px; }
    .review-heading { align-items: stretch; flex-direction: column; }
    .review-score { width: 100%; }
    .review-compose { padding: 16px; }
}

@keyframes welcome-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes welcome-pop {
    from { opacity: 0; transform: translateY(24px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 800px) {
    .catalog-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 24px;
        min-height: 0;
        padding: 22px;
    }
    .hero-scene {
        grid-row: 1;
    }
    .hero-poster { width: min(100%, 320px); }
    .hero-copy { grid-row: 2; }
    .hero-copy h1 { font-size: clamp(36px, 8vw, 52px); }
    .catalog-features { grid-template-columns: 1fr; }
    .welcome-card { padding: 32px 22px; }
}

@media (max-width: 480px) {
    .catalog-hero { padding: 14px; border-radius: 20px; }
    .hero-poster { width: min(100%, 280px); }
    .hero-poster img { border-radius: 16px; }
}

.learning-journal {
    margin-top: 72px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.journal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.journal-heading h2,
.journal-cta h2 {
    margin: 6px 0;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.45;
}

.journal-heading p,
.journal-cta p {
    margin: 0;
    color: var(--muted);
}

.journal-mark {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(226, 185, 96, 0.26);
    border-radius: 22px;
    background: rgba(226, 185, 96, 0.08);
    color: #e2b960;
    font: 700 22px/1 monospace;
    transform: rotate(-6deg);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.journal-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(13, 27, 55, 0.94), rgba(7, 13, 31, 0.9));
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.journal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 185, 96, 0.42);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.journal-card-featured {
    border-color: rgba(226, 185, 96, 0.3);
    background:
        radial-gradient(circle at 100% 0, rgba(226, 185, 96, 0.09), transparent 44%),
        linear-gradient(155deg, rgba(13, 27, 55, 0.96), rgba(7, 13, 31, 0.92));
}

.journal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.journal-category {
    color: #e2b960;
    font-size: 12px;
    font-weight: 600;
}

.journal-number {
    color: rgba(155, 180, 207, 0.62);
    font: 600 13px/1 monospace;
}

.journal-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.7;
}

.journal-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.journal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 8px;
    color: #f0d089;
    font-size: 13px;
    font-weight: 600;
}

.journal-link span {
    transition: transform 180ms ease;
}

.journal-link:hover span {
    transform: translateX(-4px);
}

.journal-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 26px 30px;
    border: 1px solid rgba(226, 185, 96, 0.24);
    border-radius: 20px;
    background:
        radial-gradient(circle at 10% 110%, rgba(226, 185, 96, 0.12), transparent 35%),
        rgba(10, 18, 42, 0.82);
}

@media (max-width: 800px) {
    .learning-journal { margin-top: 52px; }
    .journal-grid { grid-template-columns: 1fr; }
    .journal-card { min-height: 0; }
    .journal-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.dashboard-circuit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-block: 12px 30px;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid rgba(226, 185, 96, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0, rgba(226, 185, 96, 0.10), transparent 48%),
        radial-gradient(ellipse at 100% 100%, rgba(226, 185, 96, 0.10), transparent 42%),
        linear-gradient(145deg, rgba(7, 15, 35, 0.82), rgba(5, 10, 26, 0.72));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.04);
}

.dashboard-circuit-art {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.72;
}

.circuit-traces {
    fill: none;
    stroke: rgba(68, 211, 244, 0.30);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.circuit-nodes {
    fill: #e2b960;
    filter: drop-shadow(0 0 5px rgba(226, 185, 96, 0.9));
}

.circuit-chips {
    fill: rgba(226, 185, 96, 0.08);
    stroke: rgba(226, 185, 96, 0.34);
    stroke-width: 1.5;
}

.dashboard-content {
    position: relative;
    z-index: 1;
}

.dashboard-circuit .account { margin-bottom: 24px; }

@media (max-width: 600px) {
    .dashboard-circuit {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .dashboard-circuit-art { opacity: 0.48; }
}

html { color-scheme: light; }

body {
    position: relative;
    overflow-x: hidden;
    background: var(--bg, #fff);
    color: var(--ink);
}

.cyber-atmosphere { display: none; }

/* Decorative background: white stays white, only soft tints and a dot grid are added. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(201, 154, 53, 0.085) 1.2px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 6% 14%, rgba(226, 185, 96, 0.16), transparent 22rem),
        radial-gradient(circle at 94% 84%, rgba(240, 208, 137, 0.14), transparent 24rem),
        radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.08), transparent 20rem);
}


#cyber-particles {
    z-index: 0;
}

.site-header,
.page,
.site-footer {
    z-index: 1;
}

.page,
.site-footer {
    position: relative;
}

.site-header {
    background: color-mix(in srgb, var(--surface, #fff) 94%, transparent);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.brand,
.brand-copy strong {
    color: var(--ink, #172033);
    text-shadow: none;
}

.brand-mark {
    border-color: #f5e7c6;
    background: linear-gradient(145deg, #fbf4e1, #f0f9ff);
    box-shadow: 0 5px 16px rgba(201, 154, 53, 0.08);
}

.brand-mark::before { border-color: #eed9a3; border-left-color: transparent; }
.brand-mark-letter { stroke: var(--accent, #c99a35); filter: none; }
.brand-mark-trace { stroke: #d4a53f; }
.brand-mark-node { fill: #d4a53f; filter: none; }
.nav a:hover,
.nav a.is-active { color: var(--accent, #8a6a1c); }
.nav a.is-active::after { background: #d4a53f; box-shadow: none; }

.card,
.panel,
.auth-card,
.row,
.catalog-hero,
.catalog-features article,
.about-hero,
.course-reviews,
.review-score,
.review-score-empty,
.review-card,
.review-card:hover,
.review-compose,
.review-empty,
.journal-card,
.journal-card-featured,
.journal-cta,
.dashboard-circuit,
.support-shell,
.support-info,
.support-welcome,
.welcome-card {
    background: var(--surface, #fff);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.catalog-hero {
    background:
        radial-gradient(ellipse at 82% 50%, rgba(212, 165, 63, 0.07), transparent 48%),
        var(--surface, #fff);
}

.dashboard-circuit { overflow: hidden; }
.dashboard-circuit-art { display: none; }

.card:hover,
.review-card:hover,
.journal-card:hover {
    border-color: #eed9a3;
    box-shadow: 0 16px 36px rgba(201, 154, 53, 0.09);
}

.cover-fallback,
.avatar-fallback,
.avatar-empty,
.review-avatar-fallback,
.review-compose-icon,
.journal-mark {
    color: var(--accent, #c99a35);
    background: #fbf4e1;
    border-color: #f5e7c6;
}

.catalog-kicker,
.welcome-kicker,
.catalog-hero h1 span,
.sale-price,
.support-kicker,
.support-message strong,
.journal-category,
.journal-link,
.review-empty-icon,
.review-access-note a,
.footer-inner a {
    color: var(--accent, #c99a35) !important;
    text-shadow: none;
}

.catalog-hero h1 span { color: var(--accent, #8a6a1c) !important; }
.review-body { color: var(--ink); }
.review-score-value strong { color: var(--ink); }
.verified-review { color: #15803d; }

.input,
textarea.input,
.support-form textarea {
    background: var(--surface, #fff);
    color: var(--ink);
    border-color: var(--line);
}

.input:focus,
textarea.input:focus {
    background: var(--surface, #fff);
    border-color: var(--accent, #e3b95f);
    box-shadow: 0 0 0 3px rgba(212, 165, 63, 0.12);
}

.btn,
button.btn {
    border-color: var(--btn-from, #c99a35);
    background: linear-gradient(135deg, var(--btn-from, #c99a35), var(--btn-to, #b8862b));
    color: var(--btn-text, #fff);
    box-shadow: 0 7px 18px rgba(201, 154, 53, 0.16);
}

.btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(201, 154, 53, 0.2);
}

.btn-ghost {
    background: var(--surface, #fff);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}

.message,
.status {
    background: #f8fafc;
    border-color: var(--line);
}

.review-pending {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.support-message { background: #f8fafc; }
.support-message.is-user { background: #fbf4e1; }
.support-error { color: #be123c; }
.welcome-overlay { background: rgba(15, 23, 42, 0.3); }
.welcome-card,
.support-welcome { background: #fff; }

.site-footer {
    border-top: 1px solid var(--line);
}

.footer-inner a:hover,
.journal-link:hover { color: #7a5c14 !important; }


.card {
    position: relative;
}


.journal-mark,
.review-compose-icon,
.welcome-logo {
    animation: sticker-float 4s ease-in-out infinite;
}

.journal-card:nth-child(2) .journal-number {
    color: var(--accent, #c99a35);
}

@keyframes sticker-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-4px) rotate(0); }
}


@media (max-width: 600px) {
}

.course-progress { display: grid; gap: 8px; }

.course-progress-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.2);
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c99a35, #e3b95f);
    transition: width 240ms ease;
}

.course-progress > p,
.course-progress > span { margin: 0; font-size: 12px; }

.certificate-ready,
.student-course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.certificate-ready {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid rgba(201, 154, 53, 0.32);
    border-radius: 12px;
    background: rgba(201, 154, 53, 0.08);
}

.student-course-info {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 10px;
}

.lesson-completion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.lesson-completion p { margin: 0; }
.completion-done { color: #15803d; font-weight: 700; }

.certificate-verification { max-width: 760px; margin-inline: auto; }

.verification-status {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-weight: 700;
}

.verification-status.is-valid {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
}

.verification-status.is-revoked {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.certificate-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.certificate-details > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.certificate-details dt { color: var(--muted); }
.certificate-details dd { margin: 0; font-weight: 600; }

@media (max-width: 600px) {
    .student-course-row,
    .certificate-ready,
    .lesson-completion { align-items: stretch; flex-direction: column; }
    .certificate-details > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.certificate-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 24px;
    margin: 0 0 30px;
    padding: clamp(22px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(232, 197, 114, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 12%, rgba(201, 154, 53, 0.2), transparent 35%),
        linear-gradient(120deg, #07152f, #0b2450 72%, #0b3470);
    color: #fff;
    box-shadow: 0 20px 46px rgba(7, 21, 47, 0.18);
}

.certificate-promo-copy { max-width: 720px; }

.certificate-eyebrow {
    color: #e2b960;
    font-size: 12px;
    font-weight: 700;
}

.certificate-promo h2 {
    margin: 7px 0 10px;
    font-size: clamp(20px, 3vw, 29px);
    line-height: 1.5;
}

.certificate-promo p {
    margin: 0;
    color: #d7e5f7;
    font-size: 14px;
}

.certificate-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #e2b960;
    font-size: 13px;
    font-weight: 700;
}

.certificate-promo-link:hover { color: #fff; }

.certificate-promo-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 175px;
}

.certificate-art-paper {
    position: relative;
    display: flex;
    width: 118px;
    height: 148px;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 10px;
    background: linear-gradient(145deg, #fff, #e6f4ff);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    transform: rotate(-7deg);
}

.certificate-art-seal {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid #c99a35;
    border-radius: 50%;
    color: #0b3470;
    font-size: 16px;
    font-weight: 700;
}

.certificate-art-line {
    width: 62%;
    height: 4px;
    border-radius: 5px;
    background: #b7cde4;
}

.certificate-art-line-long { width: 82%; background: #c99a35; }

.certificate-art-qr {
    align-self: flex-end;
    margin-top: 2px;
    color: #07152f;
    font-size: 25px;
    line-height: 1;
}

.certificate-art-check {
    position: absolute;
    right: 12px;
    bottom: 20px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid #07152f;
    border-radius: 50%;
    background: #e3b95f;
    color: #07152f;
    font-size: 22px;
    font-weight: 700;
}

.certificate-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 9px;
    border: 1px solid rgba(232, 197, 114, 0.34);
    border-radius: 999px;
    background: rgba(201, 154, 53, 0.12);
    color: #0b3470;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================================
   Certificate Showcase Card — Luxury / Modern / Premium
   (course detail page — section: .cert-showcase)
   Palette: deep navy · royal blue · soft gold · warm white
   ============================================================ */

.cert-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
    gap: clamp(24px, 4vw, 54px);
    margin: 44px 0 48px;
    padding: clamp(28px, 4.5vw, 54px) clamp(24px, 4.5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(214, 178, 94, 0.26);
    border-radius: 30px;
    background:
        radial-gradient(920px 420px at 90% -12%, rgba(45, 92, 188, 0.5), transparent 62%),
        radial-gradient(700px 420px at -10% 120%, rgba(214, 178, 94, 0.13), transparent 58%),
        linear-gradient(152deg, #0d1c3e 0%, #0a142e 54%, #111f44 100%);
    box-shadow:
        0 34px 74px -32px rgba(3, 9, 26, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    animation: cert-showcase-enter 650ms cubic-bezier(.22, 1, .36, 1) both;
}

.cert-showcase::before {
    position: absolute;
    top: 0;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238, 205, 126, 0.8), transparent);
    content: "";
}

/* ---------- copy column ---------- */

.cert-showcase-body { min-width: 0; }

.cert-showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border: 1px solid rgba(232, 197, 114, 0.4);
    border-radius: 999px;
    background: rgba(232, 197, 114, 0.08);
    color: #f0d089;
    font-size: 12px;
    font-weight: 700;
}

.cert-showcase-eyebrow svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.cert-showcase-title {
    margin: 16px 0 10px;
    color: #f7fafd;
    font-size: clamp(21px, 2.7vw, 31px);
    font-weight: 800;
    line-height: 1.62;
    letter-spacing: -0.01em;
}

.cert-showcase-title span {
    display: block;
    background: linear-gradient(95deg, #f7e3a8 0%, #d9ab52 55%, #f4dd9d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #e9c46a;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) and (color: rgb(0 0 0 / 50%)) {
    .cert-showcase-title span { color: transparent; }
}

.cert-showcase-text {
    margin: 0;
    max-width: 46ch;
    color: #b7c6dd;
    font-size: 14.5px;
    line-height: 2.05;
}

/* ---------- features ---------- */

.cert-showcase-features {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.cert-showcase-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid rgba(158, 188, 228, 0.16);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.cert-showcase-features li:hover {
    transform: translateX(-5px);
    border-color: rgba(232, 197, 114, 0.45);
    background: rgba(232, 197, 114, 0.06);
}

.cert-feature-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid rgba(232, 197, 114, 0.35);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(240, 213, 140, 0.16), rgba(30, 58, 120, 0.38));
    color: #ecc876;
}

.cert-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cert-feature-copy { min-width: 0; }

.cert-feature-copy strong {
    display: block;
    color: #f4f7fc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.cert-feature-copy small {
    display: block;
    color: #9fb2cd;
    font-size: 12px;
    line-height: 1.75;
}

/* ---------- certificate artwork ---------- */

.cert-showcase-art {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 12px 0 18px;
}

.cert-showcase-art::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 82%;
    height: 68%;
    transform: translate(-50%, -46%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 116, 214, 0.34), rgba(232, 197, 114, 0.1) 55%, transparent 72%);
    content: "";
}

.cert-paper-svg {
    position: relative;
    display: block;
    width: min(100%, 468px);
    height: auto;
    overflow: visible;
    transform: rotate(-3.4deg);
    animation: cert-paper-float 7s ease-in-out infinite;
}

.cert-paper-svg text {
    font-family: Vazirmatn, Tahoma, sans-serif;
}

@keyframes cert-showcase-enter {
    from { opacity: 0; transform: translateY(14px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cert-paper-float {
    0%, 100% { transform: translateY(0) rotate(-3.4deg); }
    50% { transform: translateY(-9px) rotate(-3.4deg); }
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
    .cert-showcase {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .cert-showcase-art { order: -1; }
    .cert-paper-svg { width: min(100%, 430px); }
}

@media (max-width: 600px) {
    .cert-showcase {
        margin: 30px 0 34px;
        padding: 22px 18px 28px;
        border-radius: 24px;
    }
    .cert-showcase-title { margin-top: 13px; line-height: 1.55; }
    .cert-showcase-text { font-size: 13.5px; }
    .cert-showcase-features { gap: 10px; margin-top: 20px; }
    .cert-showcase-features li { padding: 11px 12px; gap: 11px; }
    .cert-feature-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
    .cert-feature-copy strong { font-size: 13px; }
    .cert-feature-copy small { font-size: 11.5px; }
    .cert-paper-svg { transform: rotate(-2deg); animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cert-showcase,
    .cert-paper-svg,
    .cert-showcase-features li {
        animation: none;
        transition: none;
    }
}

@media (max-width: 600px) {
    .certificate-promo { grid-template-columns: 1fr; }
    .certificate-promo-art { display: none; }
    .certificate-course-badge { font-size: 10px; }
}
