* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #182435 0%, #0b1020 35%, #050814 100%);
    color: #e8eefc;
}
a { color: inherit; text-decoration: none; }
main { min-height: calc(100vh - 160px); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 20, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    z-index: 20;
}
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand strong { display: block; font-size: 1rem; }
.brand small { color: #8da0c4; }
.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #64d2ff, #7c3aed);
    box-shadow: 0 0 30px rgba(100, 210, 255, 0.7);
}
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a, .ghost-link {
    color: #d3dcf2;
    font-size: 0.95rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.35);
}
.inline-form { display: inline; }
.hero, .page-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    padding: 56px 0 28px;
}
.page-hero.compact { grid-template-columns: 1fr; padding-bottom: 10px; }
.hero-copy h1, .page-hero h1 { font-size: clamp(2.3rem, 4vw, 4.4rem); line-height: 1.04; margin: 0 0 14px; }
.lead { color: #b8c4df; font-size: 1.08rem; max-width: 760px; }
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #77d4ff;
    font-size: 0.78rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.7);
    color: #f4f8ff;
    font-weight: 600;
    cursor: pointer;
}
.button.primary {
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.18);
}
.button.secondary { background: rgba(255, 255, 255, 0.04); }
.button.tiny { min-height: 34px; border-radius: 10px; padding: 0 12px; font-size: 0.85rem; }
.button[disabled], .button.disabled { opacity: 0.62; cursor: not-allowed; box-shadow: none; }
.stretch { width: 100%; }
.card {
    background: linear-gradient(180deg, rgba(18, 27, 46, 0.88), rgba(10, 16, 30, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}
.hero-panel { align-self: start; }
.trust-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.trust-strip span, .pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #dce6ff;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.88rem;
}
.pill.subtle { opacity: 0.78; }
.feature-grid, .admin-summary-grid, .admin-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 16px auto 28px;
}
.admin-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-link {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
}
.tile-link {
    display: block;
}
.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0 12px;
}
.bundle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 40px;
}
.bundle-card h3 { margin: 14px 0 10px; font-size: 1.45rem; }
.bundle-topline { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.meta-label { display: block; color: #8fa3c9; font-size: 0.8rem; margin-bottom: 4px; }
.checksum-block code {
    display: block;
    overflow-wrap: anywhere;
    padding: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.bundle-description { color: #c7d4ef; min-height: 72px; }
.bundle-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.subtext, .sub-inline { color: #8fa3c9; font-size: 0.9rem; }
.notice {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid rgba(250, 204, 21, 0.2);
    background: rgba(250, 204, 21, 0.08);
}
.notice.danger { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.12); }
.notice.warning { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.12); }
.notice.success { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.12); }
.two-column {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    padding-bottom: 36px;
}
.media-card, .text-card, .status-card, .invoice-card, .account-card { margin-bottom: 28px; }
.video-placeholder {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    color: #8fa3c9;
}
.process-video { width: 100%; border-radius: 18px; display: block; }
.article-stack { display: grid; gap: 18px; padding-bottom: 40px; }
.auth-shell { display: grid; place-items: center; padding: 40px 0 56px; }
.auth-card { width: min(520px, 100%); }
.form-stack, .form-grid { display: grid; gap: 16px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
label { display: grid; gap: 8px; }
input, textarea, select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.48);
    color: #eef4ff;
    padding: 12px 14px;
    font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-row input { width: 18px; min-height: 18px; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left;
    vertical-align: top;
}
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-card { min-height: 240px; display: grid; place-items: center; text-align: center; }
.loader {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #64d2ff;
    animation: spin 1.1s linear infinite;
    margin: 22px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.invoice-shell { padding-bottom: 46px; }
.invoice-header, .invoice-grid, .invoice-total { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.invoice-grid { margin: 20px 0 26px; }
.invoice-total {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 1.12rem;
}
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 26px 0 36px;
    background: rgba(2, 6, 23, 0.42);
}
.footer-shell { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.bullet-list { padding-left: 18px; color: #cad7f2; }
.logs-grid .card { overflow: auto; }
.small-table th, .small-table td { font-size: 0.9rem; }
.no-print { }
@media (max-width: 980px) {
    .hero, .two-column, .feature-grid, .admin-summary-grid, .admin-links, .bundle-grid, .section-header, .form-grid {
        grid-template-columns: 1fr;
    }
    .hero, .page-hero { padding-top: 36px; }
    .site-nav { justify-content: flex-end; }
}
@media print {
    body { background: #ffffff; color: #111827; }
    .site-header, .site-footer, .no-print { display: none !important; }
    .invoice-card { box-shadow: none; border: 1px solid #d1d5db; background: #fff; color: #111827; }
    .data-table th, .data-table td { border-color: #d1d5db; }
}

.compact-stack { gap: 12px; }
.compact-stack article { display: grid; gap: 6px; }
.compact-stack code { display: block; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 14px; background: rgba(2, 6, 23, 0.35); border: 1px solid rgba(148, 163, 184, 0.12); }
.admin-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.embedded-shell {
    min-height: 560px;
}

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

#embedded-checkout {
    min-height: 460px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

#checkout-complete .status-ready,
#checkout-complete .status-waiting {
    text-align: center;
    padding: 28px 12px;
}


.progress-shell {
    width: min(360px, 100%);
    height: 10px;
    margin: 18px auto 0;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.16);
}

.progress-bar {
    width: 38%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 100%);
    animation: progress-slide 1.6s ease-in-out infinite;
}

@keyframes progress-slide {
    0% { transform: translateX(-120%); }
    50% { transform: translateX(190%); }
    100% { transform: translateX(190%); }
}
