:root {
    --blue: #08235f;
    --blue-2: #0c3a88;
    --gold: #a97108;
    --gold-2: #f3c65d;
    --gold-3: #fff4cc;
    --ink: #101828;
    --muted: #667085;
    --line: #d7e1f4;
    --paper: #ffffff;
    --bg: #f6f8fc;
    --radius: 8px;
    --shadow-soft: 0 18px 46px rgba(8, 35, 95, .1);
    --shadow-strong: 0 30px 80px rgba(8, 35, 95, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    --scroll-progress: 0;
    --hero-x: 0px;
    --hero-y: 0px;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.landing-page {
    background:
        linear-gradient(180deg, #f7faff 0%, #ffffff 38%, #f8fbff 100%);
}

.landing-page::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-2), var(--blue-2));
    transform: scaleX(var(--scroll-progress));
    transform-origin: left;
    box-shadow: 0 0 18px rgba(243, 198, 93, .7);
    pointer-events: none;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.icon {
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 auto;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(8, 35, 95, .07);
    animation: navDrop .55s ease both;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand .brand-mark {
    width: 44px;
    height: 44px;
}

.brand-title {
    display: grid;
    gap: 4px;
    min-width: 0;
    line-height: 1.08;
}

.brand-title span {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
    font-size: clamp(19px, 1.9vw, 25px);
    letter-spacing: 0;
    line-height: 1.05;
}

.brand-title strong,
.brand-title b {
    font-weight: 900;
}

.brand-title b {
    color: #d79a12;
}

.brand-title small {
    color: #496281;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    border: 2px solid var(--gold-2);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(8, 35, 95, .18);
    overflow: hidden;
}

.brand-mark.logo-mark {
    background: #fff;
}

.brand-mark .icon {
    width: 19px;
    height: 19px;
    stroke-width: 2.2;
}

.brand-mark img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    background: #fff;
    border: 1px solid rgba(215, 225, 244, .95);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(8, 35, 95, .08);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}

.nav-links .icon {
    width: 16px;
    height: 16px;
}
.nav-links a:hover {
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(8, 35, 95, .13);
}
.nav-links a:focus-visible { outline: 3px solid rgba(243, 198, 93, .7); outline-offset: 3px; }
.nav-links a.active {
    color: var(--blue);
    background: var(--gold-3);
    border-color: rgba(243, 198, 93, .75);
    box-shadow: 0 10px 22px rgba(169, 113, 8, .14);
}
.nav-links a[href="#bayar"],
.nav-links a[href="pricing.php#bayar"],
.nav-links a[href="login.php"],
.nav-links a.nav-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    border-color: rgba(8, 35, 95, .25);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    min-height: 44px;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(215, 225, 244, .95);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(8, 35, 95, .08);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--blue);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
}

.lang-switch a.active {
    color: #fff;
    background: var(--blue);
}

.user-login-panel .lang-switch {
    justify-self: start;
    align-self: start;
    min-height: 38px;
    padding: 4px;
    gap: 2px;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .22);
    border-radius: 999px;
    box-shadow: none;
}

.user-login-panel .lang-switch a {
    min-width: 38px;
    min-height: 30px;
    padding: 0 10px;
    color: #fff;
    border-radius: 999px;
}

.user-login-panel .lang-switch a.active {
    color: var(--blue);
    background: #fff;
}

.dashboard-lang-switch {
    margin-left: auto;
    min-height: 38px;
    box-shadow: none;
}

.dashboard-lang-switch a {
    min-height: 30px;
}

.status-filter .dashboard-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    margin-left: auto;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(8, 35, 95, .06);
}

.status-filter .dashboard-lang-switch a {
    min-width: 38px;
    min-height: 30px;
    padding: 0 10px;
    color: var(--blue);
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    line-height: 1;
}

.status-filter .dashboard-lang-switch a.active {
    color: #fff;
    background: var(--blue);
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    min-height: calc(100dvh - 66px);
    padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 80px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .08) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f1f6ff 58%, #fff8e6 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(243, 198, 93, .18) 43%, transparent 46%),
        repeating-linear-gradient(115deg, transparent 0 74px, rgba(8, 35, 95, .045) 75px, transparent 77px);
    background-size: 220% 100%, auto;
    animation: heroSweep 9s ease-in-out infinite;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -8vw -12vw 42vw;
    height: 44vw;
    min-height: 420px;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .94), rgba(12, 58, 136, .9)),
        linear-gradient(90deg, transparent 0 18%, rgba(243, 198, 93, .24) 18% 20%, transparent 20% 100%);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: clamp(40px, 5.8vw, 74px);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    color: var(--blue);
    font-size: 20px;
    line-height: 1.25;
}

.lead {
    max-width: 620px;
    color: #344054;
    font-size: clamp(17px, 1.6vw, 20px);
}

.hero-copy {
    animation: fadeUp .7s ease .1s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(8, 35, 95, .1);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: -30% auto -30% -40%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: skewX(-18deg);
    transition: left .55s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 112%;
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn.small {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 35, 95, .18);
}
.btn:focus-visible { outline: 3px solid rgba(242, 193, 78, .7); outline-offset: 3px; }
.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 12px 28px rgba(8, 35, 95, .22);
}
.secondary { color: var(--blue); background: #fff; border-color: var(--line); }
.secondary:hover { border-color: rgba(169, 113, 8, .45); box-shadow: 0 10px 24px rgba(8, 35, 95, .08); }
.danger { color: #fff; background: #b42318; }
.full { width: 100%; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-row span, .tag, .badge, .status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.trust-row .icon,
.tag .icon,
.badge .icon {
    width: 14px;
    height: 14px;
}

.trust-row span, .tag { color: var(--blue); background: #fff; border: 1px solid var(--line); }

.hero-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, .35);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    animation: floatIn .8s ease .18s both;
}

.hero-media img {
    width: 100%;
    min-height: clamp(340px, 44vw, 610px);
    object-fit: cover;
    transform: scale(1.02) translate3d(var(--hero-x), var(--hero-y), 0);
    transition: transform .25s ease-out;
}

.hero-media figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 3px;
    max-width: min(310px, calc(100% - 32px));
    padding: 14px 16px;
    color: #fff;
    background: rgba(8, 35, 95, .88);
    border: 1px solid rgba(243, 198, 93, .44);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.hero-media figcaption strong {
    color: var(--gold-2);
    font-size: 13px;
    text-transform: uppercase;
}

.hero-media figcaption span {
    font-weight: 800;
}

.section {
    scroll-margin-top: 78px;
    padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.reveal-ready .section-head,
.reveal-ready .copy-block,
.reveal-ready .question-card,
.reveal-ready .feature-card,
.reveal-ready .price-card,
.reveal-ready .process-grid > div,
.reveal-ready .payment-card,
.reveal-ready .order-form,
.reveal-ready .footer-main,
.reveal-ready .footer-bottom {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}

.section-head.is-visible,
.copy-block.is-visible,
.question-card.is-visible,
.feature-card.is-visible,
.price-card.is-visible,
.process-grid > div.is-visible,
.payment-card.is-visible,
.order-form.is-visible,
.footer-main.is-visible,
.footer-bottom.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 34px;
    background: #fff;
}

.copy-block {
    color: #344054;
    font-size: 17px;
}

.section-head {
    max-width: 780px;
    margin-bottom: 28px;
}

.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.question-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, var(--blue) 0%, #0a2c73 100%);
}

.feature-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(135deg, transparent 0 48px, rgba(243, 198, 93, .08) 49px, transparent 51px);
    animation: lineDrift 14s linear infinite;
}

.feature-band h2 {
    color: #fff;
}

.feature-band .eyebrow {
    color: var(--gold-2);
}

.feature-grid, .process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 24px;
    color: #dbe8ff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
}

.feature-card::after,
.price-card::after,
.question-card::after,
.payment-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, .34) 45%, transparent 55% 100%);
    transform: translateX(-115%);
    transition: transform .7s ease;
    pointer-events: none;
}

.feature-card:hover::after,
.price-card:hover::after,
.question-card:hover::after,
.payment-card:hover::after {
    transform: translateX(115%);
}

.feature-card h3 {
    color: #fff;
}

.feature-card p {
    margin-bottom: 0;
}

.feature-number {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: #1d2738;
    background: var(--gold-2);
    border-radius: var(--radius);
    font-weight: 900;
}

.feature-number .icon {
    width: 23px;
    height: 23px;
}

.question-card, .price-card, .payment-card, .order-form, .status-card, .order-row, .document-panel, .document-card, .module-card, .module-admin-card, .module-access-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.question-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.question-card:hover {
    transform: translateY(-6px);
    border-color: rgba(169, 113, 8, .38);
    box-shadow: 0 22px 52px rgba(8, 35, 95, .14);
}

.price-section {
    background: linear-gradient(180deg, #fff 0%, #edf4ff 100%);
}

.price-section .section-head {
    margin-bottom: 34px;
}

.price-section .pricing-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    align-items: stretch;
}

.price-card {
    position: relative;
    min-height: 300px;
    padding: 32px 28px 28px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    align-content: start;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 62px rgba(8, 35, 95, .16);
}

.price-card.featured {
    border: 2px solid var(--gold-2);
    transform: none;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 72%);
    box-shadow: 0 24px 58px rgba(8, 35, 95, .14);
}

.price-card.featured:hover {
    transform: translateY(-6px);
}

.price-card h3 {
    margin: 0;
    padding-right: 104px;
    font-size: 20px;
}

.price {
    margin: 4px 0 0;
    color: var(--blue);
    font-size: clamp(38px, 3.2vw, 48px);
    font-weight: 900;
    line-height: 1;
}

.price-card .muted {
    max-width: 30ch;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.55;
}

.module-type {
    margin: 0;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.resource-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.resource-chip-row span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    color: var(--blue);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.extra-module-head {
    margin-top: 34px;
}

.extra-module-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.price-card .btn {
    margin-top: auto;
    width: 100%;
}

.muted, .note { color: var(--muted); }
.price-card .badge {
    position: absolute;
    top: 24px;
    right: 24px;
    width: auto;
    min-height: 28px;
    padding: 5px 10px;
    color: #281900;
    background: var(--gold-2);
    border-radius: 999px;
    font-size: 11px;
}
.price-card .badge.soft { color: var(--blue); background: #e9f0ff; }

.process-section {
    background: #fff;
}

.process-grid div {
    display: grid;
    gap: 8px;
    padding: 22px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.process-grid span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--blue);
    background: var(--gold-2);
    border-radius: var(--radius);
    font-weight: 900;
}

.process-grid span .icon {
    width: 19px;
    height: 19px;
}

.process-grid strong {
    color: var(--blue);
    font-size: 19px;
}

.process-grid p {
    margin: 0;
    color: var(--muted);
}

.payment-wrap {
    display: grid;
    grid-template-columns: minmax(0, 980px);
    justify-content: center;
    gap: 22px;
    align-items: start;
    background: linear-gradient(180deg, #f8fbff 0%, #fff8e6 100%);
}

.payment-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
    gap: 22px;
    align-items: start;
    padding: 26px;
    overflow: hidden;
}

.payment-card:hover,
.order-form:hover {
    box-shadow: 0 28px 64px rgba(8, 35, 95, .14);
}

.bank-box {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.bank-box div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.bank-box div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; font-weight: 900; color: var(--blue); }

.qr-box {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: 1fr;
    gap: 4px;
    width: 210px;
    height: 210px;
    padding: 14px;
    background: #fff;
    border: 8px solid var(--blue);
    border-radius: var(--radius);
}

.qr-box span { background: #e9eef8; border-radius: 2px; }
.qr-box span:nth-child(3n), .qr-box span:nth-child(7n), .qr-box span:nth-child(11n) { background: var(--blue); }
.qr-box strong {
    position: absolute;
    inset: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--blue);
    background: var(--gold-2);
    border-radius: 8px;
    transform: translate(-50%, -50%);
}

.payment-card .qr-box {
    width: 100%;
    max-width: 210px;
    aspect-ratio: 1;
    height: auto;
    justify-self: end;
}

.payment-qr {
    width: 100%;
    max-width: 210px;
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
    justify-self: end;
    padding: 10px;
    background: #fff;
    border: 8px solid var(--blue);
    border-radius: var(--radius);
}

.order-form {
    display: grid;
    gap: 14px;
    padding: 26px;
}

.payment-wrap .order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.payment-wrap .form-head,
.payment-wrap .order-form input[type="hidden"],
.payment-wrap .order-form .full,
.payment-wrap .order-form .note {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 7px;
    color: var(--blue);
    font-weight: 800;
}

input, select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus { outline: 3px solid rgba(242, 193, 78, .55); border-color: var(--gold); }

.footer {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 26px;
    padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 72px) 24px;
    color: #d9e6ff;
    background:
        linear-gradient(135deg, #061b4f 0%, var(--blue) 58%, #0c3a88 100%);
    border-top: 1px solid rgba(243, 198, 93, .28);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 44%, rgba(243, 198, 93, .12) 45%, transparent 49%),
        repeating-linear-gradient(135deg, transparent 0 58px, rgba(255, 255, 255, .045) 59px, transparent 61px);
    animation: footerDrift 18s linear infinite;
    pointer-events: none;
}

.footer-main,
.footer-bottom {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: start;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 560px;
}

.footer-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-color: var(--gold-2);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

.footer-brand strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
}

.footer p {
    margin: 0;
    color: #d9e6ff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    max-width: 520px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 13px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    background: rgba(243, 198, 93, .18);
    border-color: rgba(243, 198, 93, .38);
}

.footer-links .icon {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.footer-links a:hover .icon {
    transform: translateX(2px) scale(1.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    color: #b9c9ea;
    border-top: 1px solid rgba(255, 255, 255, .13);
    font-size: 13px;
}

.footer-bottom p {
    color: #b9c9ea;
}

.footer-bottom span {
    flex: 0 0 auto;
    color: var(--gold-2);
    font-weight: 900;
}

.footer-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.footer-meta a,
.footer-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.footer-meta .icon {
    width: 13px;
    height: 13px;
}

.status-page, .admin-page {
    min-height: 100dvh;
    padding: clamp(16px, 3vw, 32px);
    background: linear-gradient(135deg, #f8fbff, #fff8e2);
}

.user-login-page {
    display: grid;
    place-items: center;
    overflow-x: hidden;
    padding: clamp(18px, 4vw, 44px);
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .96), rgba(12, 58, 136, .88)),
        linear-gradient(180deg, #f8fbff, #fff8e2);
}

.user-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(243, 198, 93, .16) 39%, transparent 43%),
        repeating-linear-gradient(135deg, transparent 0 72px, rgba(255, 255, 255, .055) 73px, transparent 75px);
    animation: loginPatternShift 14s linear infinite;
    pointer-events: none;
}

.user-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    gap: 24px;
    width: min(1120px, 100%);
    align-items: stretch;
    animation: loginShellIn .55s ease both;
}

.user-login-panel,
.user-login-card {
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.user-login-panel {
    display: grid;
    align-content: space-between;
    gap: 40px;
    min-height: 560px;
    padding: clamp(26px, 4vw, 46px);
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .07));
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    animation: panelSlideIn .62s ease .08s both;
}

.user-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.user-login-brand .brand-mark {
    width: 42px;
    height: 42px;
}

.user-login-panel h1 {
    max-width: 640px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(38px, 4.8vw, 60px);
    line-height: 1.02;
}

.user-login-panel p:not(.eyebrow) {
    max-width: 580px;
    margin: 0;
    color: #d9e6ff;
    font-size: 17px;
}

.user-login-panel .eyebrow {
    color: var(--gold-2);
}

.user-login-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.user-login-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.user-login-benefits .icon {
    width: 15px;
    height: 15px;
}

.status-card, .admin-shell {
    width: min(980px, 100%);
    margin: 40px auto;
    padding: clamp(24px, 5vw, 44px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-page .admin-shell {
    width: min(1480px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-login-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 44px);
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .95), rgba(12, 58, 136, .9)),
        linear-gradient(180deg, #f8fbff, #fff8e2);
}

.admin-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(243, 198, 93, .14) 43%, transparent 47%),
        repeating-linear-gradient(135deg, transparent 0 70px, rgba(255, 255, 255, .055) 71px, transparent 73px);
    animation: loginPatternShift 14s linear infinite;
    pointer-events: none;
}

.admin-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .7fr);
    gap: 24px;
    width: min(1080px, 100%);
    align-items: stretch;
    animation: loginShellIn .55s ease both;
}

.admin-login-panel,
.admin-login-card {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.admin-login-panel {
    display: grid;
    align-content: space-between;
    gap: 40px;
    min-height: 560px;
    padding: clamp(26px, 4vw, 44px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .94), rgba(12, 58, 136, .86)),
        repeating-linear-gradient(135deg, transparent 0 66px, rgba(255, 255, 255, .08) 67px, transparent 69px);
    backdrop-filter: blur(12px);
    animation: panelSlideIn .62s ease .08s both;
}

.admin-login-panel .admin-lang-switch {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 16px 38px rgba(0, 0, 0, .16);
}

.admin-login-panel .admin-lang-switch a {
    color: #fff;
}

.admin-login-panel .admin-lang-switch a:hover {
    background: rgba(255, 255, 255, .16);
}

.admin-login-panel .admin-lang-switch a.active {
    color: var(--blue);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.admin-login-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.admin-login-brand .brand-mark {
    width: 42px;
    height: 42px;
}

.admin-login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.admin-login-back:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .34);
    transform: translateX(-2px);
}

.admin-login-back .icon {
    width: 15px;
    height: 15px;
}

.admin-login-panel h1 {
    max-width: 620px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(38px, 4.7vw, 58px);
    line-height: 1.02;
}

.admin-login-panel p:not(.eyebrow) {
    max-width: 560px;
    margin: 0;
    color: #d9e6ff;
    font-size: 17px;
}

.admin-login-panel .eyebrow {
    color: var(--gold-2);
}

.admin-login-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-login-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.admin-login-meta .icon {
    width: 15px;
    height: 15px;
}

.admin-login-card {
    align-self: center;
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3vw, 34px);
    background: rgba(255, 255, 255, .96);
    border-color: rgba(215, 225, 244, .95);
    animation: cardLiftIn .68s ease .14s both;
}

.admin-login-card:hover {
    box-shadow: 0 34px 94px rgba(0, 0, 0, .24);
}

.admin-login-card-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.admin-login-card-head h2 {
    margin-bottom: 6px;
    font-size: clamp(30px, 3vw, 40px);
}

.admin-login-lock {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--blue);
    background: var(--gold-2);
    border-radius: var(--radius);
    box-shadow: 0 14px 28px rgba(169, 113, 8, .22);
}

.admin-login-lock .icon {
    width: 24px;
    height: 24px;
}

.user-login-card {
    align-self: center;
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3vw, 34px);
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(215, 225, 244, .95);
    animation: cardLiftIn .68s ease .14s both;
}

.user-login-card:hover {
    box-shadow: 0 34px 94px rgba(0, 0, 0, .24);
}

.user-login-card-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.user-login-card-head h2 {
    margin-bottom: 6px;
    font-size: clamp(30px, 3vw, 40px);
}

.user-login-lock {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--blue);
    background: var(--gold-2);
    border-radius: var(--radius);
    box-shadow: 0 14px 28px rgba(169, 113, 8, .22);
}

.user-login-lock .icon {
    width: 24px;
    height: 24px;
}

.user-login-card label {
    font-size: 15px;
}

.user-login-card input {
    min-height: 54px;
}

.user-login-card .btn,
.admin-login-card .btn {
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.user-login-card .btn:active,
.admin-login-card .btn:active {
    transform: translateY(0) scale(.98);
}

.admin-login-card label {
    font-size: 15px;
}

.admin-login-card input {
    min-height: 54px;
}

.admin-page h1 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.admin-page h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.15;
}

.status-card.wide { width: min(1100px, 100%); }

.status-card.dashboard-shell {
    width: min(1480px, calc(100vw - 48px));
    padding: clamp(22px, 3vw, 34px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
    border-color: rgba(215, 225, 244, .95);
    box-shadow: 0 24px 70px rgba(8, 35, 95, .12);
}

.compact { max-width: 440px; }
.login-card h1 {
    font-size: clamp(30px, 5vw, 42px);
}

.login-card .order-form {
    margin: 20px 0 14px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.dashboard-shell h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.dashboard-head, .dashboard-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-head {
    overflow: hidden;
    margin-bottom: 20px;
    padding: clamp(22px, 3vw, 30px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .98), rgba(12, 58, 136, .92)),
        repeating-linear-gradient(135deg, transparent 0 74px, rgba(255, 255, 255, .055) 75px, transparent 77px);
    border: 1px solid rgba(243, 198, 93, .22);
    border-radius: var(--radius);
    box-shadow: 0 20px 52px rgba(8, 35, 95, .18);
}

.dashboard-head h1,
.dashboard-head .eyebrow {
    color: #fff;
}

.dashboard-head .eyebrow {
    color: var(--gold-2);
}

.dashboard-head .muted {
    color: #d9e6ff;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.user-tabs {
    position: sticky;
    top: 10px;
    z-index: 5;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 22px;
    padding: 6px;
    background: rgba(248, 251, 255, .94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(8, 35, 95, .08);
    backdrop-filter: blur(12px);
}

.user-tabs > a {
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.user-tabs > a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(8, 35, 95, .09);
}

.user-tabs a.upgrade-tab {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    border-color: rgba(8, 35, 95, .25);
}

.user-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.user-action-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 190px;
    padding: 20px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.user-action-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 58%, rgba(243, 198, 93, .12) 59%, transparent 63%);
    transform: translateX(-110%);
    transition: transform .45s ease;
    pointer-events: none;
}

.user-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(243, 198, 93, .65);
    box-shadow: 0 24px 58px rgba(8, 38, 111, .14);
}

.user-action-card:hover::after {
    transform: translateX(110%);
}

.user-action-card span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.user-action-card strong {
    color: var(--blue);
    font-size: clamp(20px, 2.3vw, 26px);
    line-height: 1.15;
}

.user-action-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.dashboard-orders {
    display: grid;
    gap: 16px;
}

.buy-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .62fr);
    gap: 20px;
    align-items: start;
}

.buy-catalog {
    display: grid;
    gap: 16px;
}

.buy-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(8, 38, 111, .07);
}

.buy-section-head h2 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(22px, 2.5vw, 30px);
}

.buy-section-head span {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.buy-package-card {
    display: grid;
    gap: 16px;
}

.buy-package-card.selected {
    border-color: rgba(243, 198, 93, .75);
    background: #fffdf5;
}

.buy-package-top,
.buy-package-title {
    display: grid;
    gap: 8px;
}

.buy-package-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.buy-package-title h2 {
    margin: 0;
}

.buy-package-card > .btn {
    justify-self: start;
    min-width: 180px;
}

.buy-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.buy-detail-grid div,
.buy-summary-card {
    padding: 12px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.buy-detail-grid span,
.buy-summary-card span,
.buy-resource-list span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.buy-detail-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--blue);
    font-size: 14px;
    line-height: 1.35;
}

.buy-resource-list {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.buy-resource-list > strong {
    color: var(--blue);
}

.buy-resource-list div {
    display: grid;
    gap: 3px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(215, 225, 244, .85);
    border-radius: 8px;
}

.buy-resource-list b {
    color: var(--ink);
}

.buy-resource-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.buy-form {
    gap: 12px;
}

.buy-summary-card {
    display: grid;
    gap: 5px;
    background: #fffdf5;
    border-color: rgba(243, 198, 93, .55);
}

.buy-summary-card strong {
    color: var(--blue);
    font-size: 22px;
    line-height: 1.15;
}

.buy-summary-card b {
    color: var(--gold);
    font-size: 28px;
    line-height: 1;
}

.buy-summary-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.buy-payment-reference {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 180px);
    gap: 16px;
    align-items: start;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.buy-payment-reference .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.buy-payment-reference .bank-box {
    width: 100%;
    margin: 0;
}

.buy-payment-reference .bank-box div {
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 12px 14px;
}

.buy-payment-reference .bank-box div:nth-child(3) dd {
    white-space: nowrap;
}

.buy-form .payment-qr {
    width: min(170px, 100%);
    margin: 0;
    justify-self: end;
}

@media (max-width: 1180px) {
    .buy-payment-reference {
        grid-template-columns: 1fr;
    }
    .buy-form .payment-qr {
        width: min(200px, 100%);
        justify-self: start;
    }
}

.dashboard-order, .dashboard-empty {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.dashboard-order h2 {
    margin: 10px 0 6px;
    font-size: clamp(22px, 3vw, 30px);
}

.dashboard-empty h2 {
    font-size: clamp(24px, 4vw, 34px);
}

.analytics-hero, .analytics-panel {
    margin-bottom: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.metric-grid:not(.admin-metric-grid) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.metric-grid:not(.admin-metric-grid) .metric-card,
.dashboard-order,
.dashboard-empty,
.analytics-panel,
.download-card,
.module-access-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.metric-grid:not(.admin-metric-grid) .metric-card:hover,
.dashboard-order:hover,
.analytics-panel:hover,
.download-card:hover,
.module-access-card:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 58, 136, .22);
    box-shadow: 0 22px 56px rgba(8, 38, 111, .12);
}

.metric-grid:not(.admin-metric-grid) .metric-card span {
    display: inline-flex;
    width: max-content;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    color: var(--blue);
    background: #eef4ff;
    border-radius: 999px;
}

.dashboard-empty {
    display: grid;
    justify-items: start;
    gap: 10px;
    min-height: 220px;
    align-content: center;
}

.module-access-card,
.download-card {
    border-color: rgba(215, 225, 244, .95);
}

.analytics-hero h2 {
    margin-bottom: 6px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin-bottom: 0;
    font-size: clamp(22px, 2.8vw, 30px);
}

.analytics-bars {
    display: grid;
    gap: 12px;
}

.bar-row {
    display: grid;
    gap: 8px;
}

.bar-row div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.bar-row strong {
    color: var(--blue);
}

.bar-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.bar-row i {
    display: block;
    height: 10px;
    overflow: hidden;
    background: #eef4ff;
    border-radius: 999px;
}

.bar-row i::before {
    content: "";
    display: block;
    width: var(--bar-width);
    max-width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--blue), var(--gold-2));
    border-radius: 999px;
}

.progress-track {
    display: block;
    width: 100%;
    height: 14px;
    overflow: hidden;
    margin: 8px 0 12px;
    background: #eef4ff;
    border-radius: 999px;
}

.progress-track i {
    display: block;
    width: var(--bar-width);
    max-width: 100%;
    height: 14px;
    background: linear-gradient(90deg, var(--blue), var(--gold-2));
    border-radius: 999px;
}

.analytics-table {
    display: grid;
    gap: 10px;
}

.analytics-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
    gap: 4px 12px;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.analytics-table strong {
    color: var(--blue);
    overflow-wrap: anywhere;
}

.analytics-table span {
    grid-column: 1;
    color: var(--muted);
    font-size: 13px;
}

.analytics-table b {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--blue);
    text-align: right;
}

.compact-set-overview {
    margin: 14px 0 0;
}

.active-access {
    margin-bottom: 20px;
}

.upgrade-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 18px;
    align-items: start;
}

.reject-note {
    padding: 12px;
    color: #7a271a;
    background: #fff4ed;
    border: 1px solid #f9dbaf;
    border-radius: var(--radius);
}

.reject-field {
    width: 100%;
    min-width: 220px;
    color: var(--blue);
    font-size: 13px;
}

.reject-field textarea {
    min-height: 92px;
    font-size: 13px;
}

.review-actions {
    align-content: start;
}

.review-state {
    display: grid;
    gap: 6px;
    min-width: 220px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbff;
}

.review-state strong {
    color: var(--blue);
}

.review-state span {
    color: var(--muted);
    font-size: 13px;
}

.approved-state {
    border-color: #abefc6;
    background: #f6fef9;
}

.rejected-state {
    border-color: #fecdca;
    background: #fffbfa;
}
.error { color: #b42318; font-weight: 800; }
.success {
    padding: 12px 14px;
    color: #067647;
    background: #dcfae6;
    border: 1px solid #abefc6;
    border-radius: var(--radius);
    font-weight: 800;
}
.empty { color: var(--muted); }

.admin-head, .order-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.admin-head {
    align-items: center;
    margin-bottom: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.admin-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.admin-lang-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(8, 35, 95, .04), 0 10px 24px rgba(8, 35, 95, .08);
}

.admin-lang-switch a {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    min-height: 38px;
    padding: 0 12px;
    color: var(--blue);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.admin-lang-switch a:hover {
    transform: translateY(-1px);
    background: #eef4ff;
}

.admin-lang-switch a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 8px 18px rgba(8, 35, 95, .18);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding: 10px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--blue);
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.admin-nav a.active {
    color: #fff;
    background: var(--blue);
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: clamp(22px, 3vw, 32px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .96), rgba(12, 58, 136, .9)),
        repeating-linear-gradient(135deg, transparent 0 58px, rgba(243, 198, 93, .08) 59px, transparent 61px);
    border: 1px solid rgba(243, 198, 93, .28);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(8, 35, 95, .16);
}

.admin-dashboard-hero .eyebrow {
    color: var(--gold-2);
}

.admin-dashboard-hero h2 {
    max-width: 720px;
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
}

.admin-dashboard-hero p {
    margin-bottom: 0;
    color: #d9e6ff;
}

.admin-dashboard-summary {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 160px;
    padding: 20px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
}

.admin-dashboard-summary span {
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-dashboard-summary strong {
    color: #fff;
    font-size: 52px;
    line-height: 1;
}

.admin-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.admin-metric-card {
    min-height: 190px;
    padding: 20px;
}

.admin-metric-card span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    color: var(--blue);
    background: #eef4ff;
    border-radius: 999px;
}

.admin-metric-card p + p,
.admin-action-card p + p {
    margin-top: 6px;
}

.admin-metric-card b,
.admin-action-card b {
    color: var(--blue);
}

.metric-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--blue);
    font-size: 34px;
    line-height: 1;
}

.metric-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.metric-card.urgent {
    border-color: rgba(184, 134, 11, .45);
    background: #fffaf0;
}

.admin-link-card {
    display: grid;
    gap: 8px;
    min-height: 180px;
    padding: 22px;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
    text-decoration: none;
}

.admin-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-action-card {
    min-height: 230px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.admin-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(243, 198, 93, .48);
    box-shadow: 0 24px 58px rgba(8, 35, 95, .14);
}

.admin-action-card strong {
    line-height: 1.2;
}

.admin-link-card span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-link-card strong {
    color: var(--blue);
    font-size: 22px;
}

.admin-link-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.order-list {
    display: grid;
    gap: 12px;
}

.order-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.order-list-head p {
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-payment-preview {
    align-self: start;
}

.admin-payment-preview .bank-box {
    margin-bottom: 0;
}

.document-panel {
    margin-bottom: 24px;
    padding: clamp(24px, 2.5vw, 36px);
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.document-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    box-shadow: none;
}

.document-card strong {
    display: block;
    color: var(--blue);
}

.doc-status {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 8px;
    color: #b42318;
    background: #fee4e2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.doc-status.ok {
    color: #067647;
    background: #dcfae6;
}

.file-label {
    font-size: 13px;
}

.document-card input[type="file"] {
    min-height: auto;
    padding: 9px;
    font-size: 13px;
}

.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.order-main {
    padding: 18px;
}

.order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.order-card-head h2 {
    margin: 8px 0 0;
    font-size: clamp(22px, 2.6vw, 30px);
    overflow-wrap: anywhere;
}

.order-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.order-amount {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 24px;
    line-height: 1;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.order-meta-grid div {
    min-width: 0;
    padding: 10px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.order-meta-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-meta-grid strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.order-review-panel {
    display: grid;
    align-content: start;
    padding: 18px;
    background: #fbfdff;
    border-left: 1px solid var(--line);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status { color: #344054; background: #eef4ff; }
.status.under_review { color: #93370d; background: #fff4d6; }
.status.approved { color: #067647; background: #dcfae6; }
.status.rejected { color: #b42318; background: #fee4e2; }
.access-input { margin-top: 10px; font-size: 13px; }
.access-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}
.order-row p { margin-bottom: 8px; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.download-card {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 16px;
    color: var(--blue);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
}

.download-card span { color: var(--muted); }
.download-card.disabled {
    pointer-events: none;
    opacity: .6;
}

.exercise-card {
    align-content: start;
}

.exercise-card .btn {
    margin-top: 8px;
}

.exercise-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.exercise-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.answer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.module-page {
    padding: 0;
    background:
        linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #fff8e6 100%);
}

.module-shop-shell {
    display: grid;
    gap: 20px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(16px, 4vw, 44px);
}

.module-shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    gap: 24px;
    align-items: end;
    padding: clamp(24px, 5vw, 46px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .96), rgba(12, 58, 136, .92)),
        repeating-linear-gradient(135deg, transparent 0 52px, rgba(243, 198, 93, .12) 53px, transparent 55px);
    border: 1px solid rgba(243, 198, 93, .32);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
}

.module-shop-hero .eyebrow {
    color: var(--gold-2);
}

.module-shop-hero h1 {
    max-width: 720px;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
}

.module-shop-hero .lead {
    max-width: 680px;
    margin: 0;
    color: #dbe8ff;
}

.module-hero-panel {
    display: grid;
    gap: 10px;
}

.module-hero-panel div {
    display: grid;
    gap: 2px;
    padding: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
}

.module-hero-panel span {
    color: var(--gold-2);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.module-hero-panel strong {
    color: #fff;
    font-size: 13px;
}

.module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(8, 35, 95, .08);
}

.module-toolbar .eyebrow {
    margin-bottom: 4px;
}

.module-toolbar strong {
    color: var(--blue);
}

.module-filter {
    justify-content: flex-end;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.module-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    min-height: 100%;
    padding: 18px;
    border-color: rgba(215, 225, 244, .95);
    box-shadow: 0 14px 34px rgba(8, 35, 95, .09);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(169, 113, 8, .36);
    box-shadow: 0 24px 56px rgba(8, 35, 95, .14);
}

.module-card h2 {
    margin-bottom: 0;
    font-size: clamp(24px, 2.5vw, 32px);
}

.module-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.module-card-body {
    display: grid;
    gap: 8px;
}

.module-price {
    color: var(--blue);
    font-size: 32px;
    line-height: 1;
    white-space: nowrap;
}

.module-card-footer {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    gap: 12px;
    align-items: center;
    align-self: end;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.resource-list {
    display: grid;
    gap: 8px;
}

.module-resource-list {
    align-content: start;
}

.resource-group-list {
    display: grid;
    gap: 14px;
}

.resource-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.resource-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.resource-group-head h4 {
    margin: 0;
    color: var(--blue);
    font-size: 15px;
}

.resource-group-head span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.resource-list div,
.resource-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    color: var(--ink);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.resource-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
    padding: 6px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.resource-actions .btn {
    width: auto;
}

.resource-mode {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 10px;
    color: var(--blue);
    background: #eef4ff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.resource-view-shell {
    gap: 16px;
}

.resource-view-head {
    margin-bottom: 0;
}

.view-only-badge {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
}

.pdf-viewer-frame {
    overflow: hidden;
    min-height: min(78vh, 860px);
    height: 78vh;
    background: #101828;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 56px rgba(8, 35, 95, .12);
}

.pdf-viewer-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #101828;
}

.pdf-viewer-note {
    margin: 0;
}

.upload-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.pdf-upload-list {
    display: grid;
    gap: 10px;
}

.pdf-upload-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.15fr) minmax(140px, .75fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.pdf-upload-row input {
    font-size: 13px;
}

.pdf-remove {
    min-height: 48px;
    min-width: 76px;
}

.resource-editor {
    display: grid;
    gap: 12px;
}

.resource-editor-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.resource-editor-head .note {
    margin: 0;
}

.resource-grid-head,
.resource-edit-row {
    display: grid;
    grid-template-columns: minmax(90px, .6fr) minmax(135px, .9fr) minmax(170px, 1.15fr) minmax(180px, 1.05fr) minmax(130px, .7fr) auto;
    gap: 10px;
}

.resource-grid-head {
    align-items: center;
    padding: 0 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.resource-edit-row {
    align-items: end;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.module-access-grid {
    display: grid;
    gap: 10px;
}

.module-access-row {
    grid-template-columns: minmax(190px, 1fr) minmax(120px, 180px) auto;
    align-items: center;
}

.resource-field {
    display: grid;
    gap: 0;
}

.resource-field > span {
    display: none;
}

.resource-edit-row .resource-description {
    grid-column: auto;
}

.resource-edit-row input,
.resource-edit-row textarea {
    font-size: 13px;
}

.resource-edit-row textarea {
    min-height: 48px;
}

.resource-remove {
    min-width: 76px;
    min-height: 48px;
}

.resource-list span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-list strong {
    color: var(--blue);
}

.resource-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.module-access-list,
.module-admin-list {
    display: grid;
    gap: 12px;
}

.module-access-card,
.module-admin-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.module-admin-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.module-admin-card h3 {
    margin: 8px 0 4px;
}

.module-admin-card form {
    display: inline;
}

.module-admin-grid {
    align-items: start;
    grid-template-columns: 1fr;
}

.module-admin-grid .settings-form,
.module-admin-grid .module-admin-list {
    width: 100%;
}

.checkbox-row {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
}

.access-resource-panel {
    margin-top: 22px;
}

.access-resource-panel h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.question-admin-card, .quiz-question, .result-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.set-switcher {
    min-width: 220px;
}

.set-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.set-pill {
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 10px;
    color: var(--blue);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.set-pill strong {
    font-size: 15px;
}

.set-pill span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.set-pill.ready {
    border-color: #abefc6;
    background: #f6fef9;
}

.set-pill.active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.set-pill.active span {
    color: #d9e6ff;
}

.question-form {
    box-shadow: none;
}

.question-section {
    margin-bottom: 24px;
}

.question-form-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.question-form-panel summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    min-height: 72px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.question-form-panel summary::-webkit-details-marker {
    display: none;
}

.question-form-panel summary .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.question-form-panel summary strong {
    color: var(--blue);
    font-size: 24px;
}

.question-form-panel summary span {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--blue);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.question-form-panel[open] summary {
    border-bottom: 1px solid var(--line);
}

.question-form-panel .question-form {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.add-question-section {
    width: 100%;
}

.list-question-section {
    width: 100%;
}

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

.question-list {
    display: grid;
    gap: 14px;
    align-content: start;
}

.list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.list-head h2 {
    margin-bottom: 0;
}

.question-admin-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px;
}

.question-admin-card.editing {
    border-color: rgba(184, 134, 11, .45);
    background: #fffdf6;
}

.question-admin-card h3 {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.question-image {
    display: block;
    width: min(100%, 760px);
    max-height: 420px;
    margin: 14px 0;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.question-image-admin {
    width: min(100%, 520px);
    max-height: 260px;
}

.question-image-edit {
    display: grid;
    gap: 10px;
}

.question-compact-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.answer-badge {
    display: inline-flex;
    min-height: 30px;
    padding: 5px 10px;
    color: #067647;
    background: #dcfae6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.question-detail {
    margin-top: 12px;
}

.question-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 110px;
}

.question-actions .btn {
    width: 100%;
}

.question-detail summary {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 11px;
    color: var(--blue);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.inline-edit-form {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}

.question-filter {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.pagination a {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    color: var(--blue);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.pagination a.active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.option-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding-left: 22px;
}

.option-list li {
    padding: 8px 10px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.option-list li.correct {
    color: #067647;
    background: #dcfae6;
    border-color: #abefc6;
    font-weight: 800;
}

.quiz-shell h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.quiz-shell {
    padding: clamp(22px, 3vw, 34px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
    border-color: rgba(215, 225, 244, .95);
    box-shadow: 0 24px 70px rgba(8, 35, 95, .12);
}

.quiz-shell > .eyebrow {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 10px;
    color: var(--blue);
    background: var(--gold-3);
    border-radius: 999px;
}

.quiz-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.quiz-question {
    padding: 20px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.quiz-question:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 58, 136, .22);
    box-shadow: 0 22px 56px rgba(8, 38, 111, .12);
}

.quiz-question h2 {
    margin-top: 10px;
    font-size: clamp(20px, 2.8vw, 28px);
}

.quiz-options {
    display: grid;
    gap: 10px;
}

.quiz-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    color: var(--ink);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.quiz-option input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.quiz-option.correct {
    background: #dcfae6;
    border-color: #abefc6;
}

.quiz-option.wrong {
    background: #fee4e2;
    border-color: #fecdca;
}

.explanation {
    margin: 14px 0 0;
    padding: 12px;
    color: #344054;
    background: #fff8e2;
    border: 1px solid rgba(184, 134, 11, .28);
    border-radius: 8px;
}

.result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    color: var(--blue);
}

.result-card strong {
    font-size: 22px;
}

.result-card span {
    color: var(--gold);
    font-size: 28px;
    font-weight: 900;
}

.order-command {
    display: grid;
    grid-template-columns: minmax(260px, .55fr) minmax(520px, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(8, 38, 111, .08);
}

.order-command-head h2 {
    margin-bottom: 6px;
}

.order-control-panel {
    display: grid;
    gap: 14px;
}

.order-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto) auto;
    gap: 8px;
    align-items: end;
}

.order-search label {
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.order-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
    gap: 12px;
    align-items: end;
}

.status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.order-tabs {
    justify-content: flex-start;
    padding: 4px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.order-tabs a {
    background: #fff;
}

.status-filter a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--blue);
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.status-filter a.active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.status-filter span {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    min-height: 26px;
    padding: 0 7px;
    color: var(--blue);
    background: #fff;
    border-radius: 999px;
}

.sort-control {
    width: 100%;
    justify-self: end;
}

.sort-control label {
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.order-pagination {
    justify-content: center;
}

.page-summary {
    display: inline-grid;
    place-items: center;
    min-height: 42px;
    padding: 0 14px;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.pagination .disabled-page {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    color: var(--muted);
    background: #f2f4f7;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
    opacity: .7;
}

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

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

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroSweep {
    0%, 100% {
        background-position: 120% 0, 0 0;
        opacity: .72;
    }
    50% {
        background-position: -20% 0, 0 0;
        opacity: 1;
    }
}

@keyframes lineDrift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 180px 0;
    }
}

@keyframes loginPatternShift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 240px 0, 180px 0;
    }
}

@keyframes loginShellIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardLiftIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes footerDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 260px 0, 180px 0;
    }
}

/* Admin UI refresh: shared visual layer only, no workflow changes. */
.admin-page {
    min-height: 100vh;
    color: #12213d;
    background:
        radial-gradient(circle at 12% -8%, rgba(243, 198, 93, .14), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #eef4ff 42%, #f8fbff 100%);
}

.admin-page .admin-shell {
    display: grid;
    gap: 18px;
    width: min(1480px, calc(100vw - 40px));
    padding-block: clamp(18px, 2.4vw, 32px) 42px;
}

.admin-head {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    padding: clamp(18px, 2.2vw, 28px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 35, 95, .98), rgba(12, 58, 136, .94)),
        repeating-linear-gradient(135deg, transparent 0 64px, rgba(243, 198, 93, .08) 65px, transparent 67px);
    border-color: rgba(243, 198, 93, .28);
    box-shadow: 0 24px 64px rgba(8, 35, 95, .18);
}

.admin-head h1,
.admin-head .eyebrow {
    color: #fff;
}

.admin-head .eyebrow {
    color: var(--gold-2);
    margin-bottom: 6px;
}

.admin-head-actions .btn.secondary {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: none;
}

.admin-head-actions .btn.secondary:hover {
    background: rgba(255, 255, 255, .18);
}

.admin-lang-switch {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .7);
}

.admin-nav {
    position: sticky;
    top: 12px;
    z-index: 9;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, .86);
    border-color: rgba(215, 225, 244, .96);
    box-shadow: 0 18px 42px rgba(8, 35, 95, .1);
    backdrop-filter: blur(16px);
}

.admin-nav a {
    justify-content: center;
    color: #344054;
    transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-nav a:hover {
    color: var(--blue);
    background: #eef4ff;
    border-color: rgba(12, 58, 136, .16);
}

.admin-nav a.active {
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 12px 28px rgba(8, 35, 95, .18);
}

.admin-dashboard-hero,
.metric-card,
.admin-link-card,
.order-command,
.order-row,
.document-panel,
.document-card,
.module-admin-card,
.question-admin-card,
.question-form-panel,
.list-head,
.question-filter,
.analytics-panel,
.payment-card.admin-payment-preview,
.order-form.settings-form {
    border-color: rgba(215, 225, 244, .96);
    box-shadow: 0 18px 46px rgba(8, 35, 95, .09);
}

.admin-dashboard-hero {
    margin-bottom: 0;
}

.admin-card-grid,
.metric-grid,
.analytics-grid,
.order-list,
.question-list,
.module-admin-list {
    gap: 16px;
}

.admin-metric-card,
.admin-action-card {
    min-height: 0;
}

.admin-metric-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.admin-metric-card span,
.admin-link-card span,
.panel-head .eyebrow,
.form-head .eyebrow {
    letter-spacing: .02em;
}

.admin-link-card,
.module-admin-card,
.question-admin-card,
.order-row,
.analytics-panel {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-link-card:hover,
.module-admin-card:hover,
.question-admin-card:hover,
.order-row:hover,
.analytics-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 58, 136, .18);
    box-shadow: 0 24px 58px rgba(8, 35, 95, .13);
}

.order-command {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
}

.order-search input,
.sort-control select,
.set-switcher select,
.question-filter select,
.settings-form input,
.settings-form select,
.settings-form textarea,
.question-form input,
.question-form select,
.question-form textarea {
    min-height: 46px;
}

.settings-form label,
.question-form label,
.order-search label,
.sort-control label,
.set-switcher label,
.question-filter label {
    font-weight: 850;
}

.settings-form input::placeholder,
.settings-form textarea::placeholder,
.question-form textarea::placeholder,
.order-search input::placeholder {
    color: #98a2b3;
}

.order-list-head,
.list-head,
.question-filter,
.pagination {
    background: rgba(255, 255, 255, .9);
}

.status-filter a,
.pagination a,
.disabled-page,
.page-summary {
    min-height: 44px;
}

.status-filter a span {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    padding: 0 7px;
    color: inherit;
    background: rgba(255, 255, 255, .72);
    border-radius: 999px;
    font-size: 12px;
}

.status-filter a.active span {
    color: var(--blue);
    background: #fff;
}

.module-admin-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
}

.resource-edit-row,
.pdf-upload-row {
    border-color: rgba(215, 225, 244, .96);
    background: rgba(248, 251, 255, .78);
}

.question-form-panel summary:hover,
.set-pill:hover,
.question-detail summary:hover {
    background: #eef4ff;
}

.analytics-panel {
    background: rgba(255, 255, 255, .94);
}

.bar-row {
    padding: 12px 0;
}

.analytics-table > div {
    min-height: 58px;
    border-radius: 8px;
}

@media (min-width: 1500px) {
    .admin-page .admin-shell {
        width: min(1640px, calc(100vw - 64px));
    }

    .status-card.dashboard-shell {
        width: min(1640px, calc(100vw - 64px));
    }

    .set-overview {
        grid-template-columns: repeat(15, minmax(74px, 1fr));
    }

    .add-question-section .option-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding-inline: 16px;
    }
    .nav-links {
        display: flex;
        gap: 8px;
        margin-inline: -16px;
        padding: 0 16px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links a {
        min-height: 40px;
        flex: 0 0 auto;
        padding: 0 12px;
        font-size: 13px;
    }
    .lang-switch {
        flex: 0 0 auto;
        min-height: 40px;
    }
    .lang-switch a {
        min-height: 30px;
        padding: 0 9px;
    }
    .brand .brand-mark {
        width: 40px;
        height: 40px;
    }
    .brand-title span {
        font-size: clamp(18px, 5.4vw, 22px);
        line-height: 1.06;
    }
    .brand-title small {
        font-size: 7px;
        letter-spacing: .8px;
        line-height: 1.25;
    }
    .hero, .split, .payment-wrap, .payment-card, .upgrade-grid, .buy-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .buy-form {
        position: static;
    }
    .buy-section-head,
    .buy-package-top {
        grid-template-columns: 1fr;
    }
    .buy-section-head {
        display: grid;
        align-items: start;
    }
    .buy-detail-grid {
        grid-template-columns: 1fr;
    }
    .buy-payment-reference {
        grid-template-columns: 1fr;
    }
    .buy-form .payment-qr {
        width: min(190px, 100%);
    }
    .buy-package-card > .btn {
        width: 100%;
    }
    .payment-wrap .order-form {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: auto;
        padding-top: 44px;
    }
    .hero::after,
    .feature-band::before {
        animation: none;
        opacity: .45;
    }
    .hero::before {
        inset: auto -40vw -18vw 8vw;
        height: 62vw;
        min-height: 280px;
        opacity: .12;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
    }
    .hero-media img {
        min-height: 300px;
    }
    .hero-media figcaption {
        position: static;
        max-width: none;
        border-radius: 0;
        background: var(--blue);
    }
    .question-grid, .pricing-grid, .feature-grid, .process-grid {
        grid-template-columns: 1fr;
    }
    .price-section .pricing-grid {
        width: min(420px, 100%);
    }
    .price-card,
    .price-card.featured {
        min-height: 0;
    }
    .price-card h3 {
        padding-right: 110px;
    }
    .qr-box { width: min(240px, 100%); height: min(240px, 70vw); justify-self: start; }
    .payment-qr { width: min(240px, 100%); height: auto; justify-self: start; }
    .footer, .admin-head, .order-row { flex-direction: column; }
    .admin-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-links {
        justify-content: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-meta {
        justify-content: flex-start;
    }
    .module-shop-hero,
    .module-toolbar {
        grid-template-columns: 1fr;
    }
    .module-shop-hero {
        align-items: start;
    }
    .module-toolbar {
        display: grid;
    }
    .module-filter {
        justify-content: flex-start;
    }
    .module-card-footer {
        grid-template-columns: 1fr;
    }
    .module-card-footer .btn {
        width: 100%;
    }
    .admin-login-shell,
    .user-login-shell {
        grid-template-columns: 1fr;
    }
    .admin-login-panel,
    .user-login-panel {
        min-height: auto;
    }
    .admin-login-card,
    .user-login-card {
        align-self: stretch;
    }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-dashboard-hero,
    .admin-metric-grid,
    .admin-action-grid {
        grid-template-columns: 1fr;
    }
    .order-row { grid-template-columns: 1fr; }
    .builder-head, .result-card { flex-direction: column; }
    .question-form-panel { position: static; }
    .question-admin-card { grid-template-columns: 1fr; }
    .module-admin-card { grid-template-columns: 1fr; }
    .resource-editor-head { flex-direction: column; }
    .resource-editor-head .btn { width: 100%; }
    .resource-grid-head { display: none; }
    .resource-edit-row { grid-template-columns: 1fr; }
    .resource-field { gap: 6px; }
    .resource-field > span {
        display: block;
        color: var(--blue);
        font-size: 12px;
        font-weight: 900;
    }
    .pdf-upload-row { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: 1fr; }
    .set-switcher { min-width: 0; width: 100%; }
    .order-command { grid-template-columns: 1fr; }
    .order-filter-row { grid-template-columns: 1fr; }
    .order-search { grid-template-columns: 1fr; }
    .order-search .btn { width: 100%; }
    .sort-control { width: 100%; }
    .order-row { grid-template-columns: 1fr; }
    .order-review-panel { border-left: 0; border-top: 1px solid var(--line); }
    .order-meta-grid { grid-template-columns: 1fr; }
    .order-card-head { flex-direction: column; }
    .order-list-head { align-items: flex-start; flex-direction: column; }
    .dashboard-head, .dashboard-order-head, .dashboard-actions { flex-direction: column; }
    .dashboard-actions { width: 100%; }
    .dashboard-actions .btn { width: 100%; }
    .user-action-grid { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: 1fr; }
    .panel-head { flex-direction: column; }
    .analytics-table > div { grid-template-columns: 1fr; }
    .analytics-table b { grid-column: 1; grid-row: auto; text-align: left; }
    .status-filter { justify-content: flex-start; }
    .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-nav a {
        justify-content: center;
        text-align: center;
    }
}

@media (min-width: 861px) and (max-width: 1180px) {
    .admin-metric-grid,
    .admin-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .admin-nav {
        grid-template-columns: 1fr;
    }
    .admin-head {
        padding: 18px;
    }
    .document-panel, .order-form, .payment-card {
        padding: 18px;
    }
    .price-card {
        padding: 26px 20px 22px;
    }
    .price-card .badge {
        top: 18px;
        right: 18px;
    }
    .price-card h3 {
        padding-right: 96px;
    }
    .admin-login-page,
    .user-login-page {
        padding: 14px;
    }
    .admin-login-panel,
    .admin-login-card,
    .user-login-panel,
    .user-login-card {
        padding: 22px;
    }
    .admin-login-card-head,
    .user-login-card-head {
        grid-template-columns: 1fr;
    }
    .admin-login-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-login-back {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, html {
        animation: none !important;
        scroll-behavior: auto;
        transition: none !important;
    }
    .reveal-ready .section-head,
    .reveal-ready .copy-block,
    .reveal-ready .question-card,
    .reveal-ready .feature-card,
    .reveal-ready .price-card,
    .reveal-ready .process-grid > div,
    .reveal-ready .payment-card,
    .reveal-ready .order-form,
    .reveal-ready .footer-main,
    .reveal-ready .footer-bottom {
        opacity: 1;
        transform: none;
    }
    .landing-page::before {
        display: none;
    }
    .hero-media img {
        transform: none;
    }
}
