/* =========================================================
   VloScripts — maroon / burgundy theme
   ========================================================= */

:root {
    --bg:            #120508;
    --bg-2:          #180509;
    --surface:       #1e0a10;
    --surface-2:     #260c14;
    --border:        #3a1620;
    --border-soft:   #2c1019;

    --maroon:        #8e1d2d;
    --maroon-deep:   #5e0f1b;
    --maroon-bright: #cf3149;
    --maroon-hot:    #e0405f;
    --glow:          rgba(207, 49, 73, .35);

    --text:          #f6e9ec;
    --muted:         #b98f98;
    --muted-2:       #8f6b74;

    --radius:        14px;
    --radius-sm:     10px;
    --maxw:          1200px;
    --ease:          cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 600px at 50% -10%, rgba(142, 29, 45, .28), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Subtle grid overlay, like the reference */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.accent-text {
    background: linear-gradient(120deg, var(--maroon-hot), var(--maroon-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Promo bar ---------- */
.promo-bar {
    position: relative;
    z-index: 3;
    background: linear-gradient(90deg, var(--maroon-deep), var(--maroon), var(--maroon-deep));
    color: #fff;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.promo-track {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
    padding: 8px 0;
    animation: marquee 32s linear infinite;
}
.promo-track span { display: inline-flex; align-items: center; gap: 26px; }
.promo-dot { color: #ffd7dd; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(18, 5, 8, .72);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { filter: drop-shadow(0 0 10px var(--glow)); }
.brand-name { font-weight: 900; letter-spacing: .04em; font-size: 18px; }
.brand-name span { color: var(--maroon-hot); }

.nav { margin-left: 14px; }
.nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 600;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--maroon-hot), var(--maroon-bright));
}
.tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(207, 49, 73, .16);
    color: var(--maroon-hot);
    border: 1px solid rgba(207, 49, 73, .35);
}

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.currency { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
    --pad: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: var(--pad);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --pad: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { --pad: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(120deg, var(--maroon-bright), var(--maroon));
    color: #fff;
    box-shadow: 0 8px 26px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 12px 34px -8px var(--glow); filter: brightness(1.06); }
.btn-ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--maroon); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 70px 0 40px; text-align: center; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-glow {
    position: absolute;
    top: -120px; left: 50%;
    width: 640px; height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--glow), transparent 62%);
    filter: blur(30px);
    z-index: -1;
}
.hero-orbit {
    position: relative;
    width: 210px; height: 210px;
    margin-bottom: 26px;
}
.orbit-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        radial-gradient(closest-side, rgba(94, 15, 27, .45), transparent 78%) padding-box,
        conic-gradient(from 210deg, transparent, var(--maroon-hot), transparent 55%) border-box;
    box-shadow: inset 0 0 60px rgba(207, 49, 73, .25);
}
.orbit-dot {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--maroon-hot);
    box-shadow: 0 0 14px var(--maroon-hot);
    animation: spin 14s linear infinite;
    transform-origin: 105px 105px;
}
.orbit-dot.d1 { top: 4px; left: 99px; }
.orbit-dot.d2 { top: 4px; left: 99px; animation-delay: -4.6s; background: var(--maroon-bright); }
.orbit-dot.d3 { top: 4px; left: 99px; animation-delay: -9.3s; width: 8px; height: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border-radius: 40px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}
.pill-badge {
    padding: 4px 11px;
    border-radius: 30px;
    background: linear-gradient(120deg, var(--maroon-bright), var(--maroon));
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
}
.hero-title { font-size: clamp(38px, 7vw, 74px); letter-spacing: -.03em; }
.hero-sub {
    max-width: 640px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 17px;
}
.hero-sub strong { color: var(--maroon-hot); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- Features ---------- */
.features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 60px auto;
}
.feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border-soft);
}
.feature-icon {
    flex: none;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 12px;
    font-size: 22px;
    background: rgba(207, 49, 73, .12);
    border: 1px solid rgba(207, 49, 73, .3);
    box-shadow: inset 0 0 18px rgba(207, 49, 73, .15);
}
.feature h3 { font-size: 17px; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: 40px 0; }
.section-title { font-size: clamp(26px, 4vw, 38px); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 8px; margin-bottom: 34px; }

.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

/* ---------- Products ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card { overflow: hidden; transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--maroon);
    box-shadow: 0 18px 40px -20px var(--glow);
}
.product-thumb {
    position: relative;
    height: 148px;
    display: grid; place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(207, 49, 73, .22), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--bg-2));
    border-bottom: 1px solid var(--border-soft);
}
.thumb-mark { width: 62px; height: 62px; filter: drop-shadow(0 6px 16px var(--glow)); }
.product-cat, .product-new {
    position: absolute; top: 12px;
    font-size: 11px; font-weight: 800;
    padding: 4px 9px; border-radius: 20px;
    letter-spacing: .04em;
}
.product-cat {
    left: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    color: var(--muted);
}
.product-new {
    right: 12px;
    background: linear-gradient(120deg, var(--maroon-bright), var(--maroon));
    color: #fff;
}
.product-body { padding: 18px; }
.product-body h3 { font-size: 18px; }
.product-body p { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 42px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { font-size: 20px; font-weight: 800; }

/* ---------- CTA banner ---------- */
.cta-banner { margin: 20px auto 70px; }
.cta-inner {
    text-align: center;
    padding: 52px 24px;
    border-radius: 22px;
    background:
        radial-gradient(600px 240px at 50% 0%, rgba(207, 49, 73, .22), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
}
.cta-inner h2 { font-size: clamp(24px, 4vw, 34px); }
.cta-inner p { color: var(--muted); margin-top: 10px; }
.cta-inner .hero-cta { margin-top: 26px; }

/* ---------- Auth pages ---------- */
.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 68px);
    display: grid;
    place-items: center;
    padding: 50px 20px;
}
.auth-card { width: 100%; max-width: 430px; padding: 34px; }
.auth-title { font-size: 26px; }
.auth-sub { color: var(--muted); margin-top: 8px; margin-bottom: 22px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus {
    outline: none;
    border-color: var(--maroon-bright);
    box-shadow: 0 0 0 3px rgba(207, 49, 73, .2);
}
.field input::placeholder { color: var(--muted-2); }
.auth-alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--maroon-hot); font-weight: 700; }

.alert { padding: 12px 15px; border-radius: 11px; margin-bottom: 18px; font-size: 14px; }
.alert p { margin: 2px 0; }
.alert-error {
    background: rgba(207, 49, 73, .12);
    border: 1px solid rgba(207, 49, 73, .4);
    color: #ffb9c4;
}

/* ---------- Account ---------- */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.info-card { padding: 22px 24px; }
.info-card h3 { font-size: 16px; margin-bottom: 14px; color: var(--maroon-hot); }
.info-list { margin: 0; display: grid; gap: 12px; }
.info-list > div { display: flex; justify-content: space-between; gap: 16px; }
.info-list dt { color: var(--muted); font-size: 14px; }
.info-list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
code {
    font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 13px;
    background: rgba(255, 255, 255, .05);
    padding: 2px 7px;
    border-radius: 6px;
    color: #ffd0d7;
}

.table-card { padding: 22px 24px; }
.table-card h3 { font-size: 16px; color: var(--maroon-hot); }
.table-card > .muted { font-size: 13.5px; margin: 6px 0 16px; }
.table-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border-soft); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); }
.data-table th { background: rgba(255, 255, 255, .03); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .ua { color: var(--muted); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.badge-ok { background: rgba(46, 160, 90, .16); color: #6ee7a0; border: 1px solid rgba(46, 160, 90, .4); }
.badge-fail { background: rgba(207, 49, 73, .16); color: #ff9aa8; border: 1px solid rgba(207, 49, 73, .4); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border-soft); background: rgba(12, 3, 5, .6); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding: 44px 22px 30px; }
.footer-brand .muted { margin-top: 12px; max-width: 300px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--text); font-size: 14px; padding: 5px 0; opacity: .85; transition: opacity .15s, color .15s; }
.footer-cols a:hover { opacity: 1; color: var(--maroon-hot); }
.footer-bottom { border-top: 1px solid var(--border-soft); }
.footer-bottom .container { display: flex; justify-content: space-between; padding: 16px 22px; font-size: 13px; color: var(--muted); }

/* ---------- Mobile nav ---------- */
.nav-toggle {
    display: none;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s var(--ease); }

@media (max-width: 900px) {
    .features { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .account-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 68px; left: 0; right: 0;
        margin: 0;
        background: rgba(18, 5, 8, .97);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s var(--ease);
    }
    .nav.open { max-height: 420px; }
    .nav-links { flex-direction: column; padding: 12px; }
    .nav-links a { padding: 12px; }
    .currency { display: none; }
    .header-inner { position: relative; }
    .nav-actions { margin-left: 0; }
}

@media (max-width: 520px) {
    .product-grid { grid-template-columns: 1fr; }
    .brand-name { font-size: 16px; }
    .footer-bottom .container { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .promo-track, .orbit-dot { animation: none; }
    html { scroll-behavior: auto; }
}
