/* ==========================================================================
   Scully's Development — Tebex theme
   Layered on top of Bootstrap 4.6 (grid, utilities, JS components).
   ========================================================================== */

:root {
    --accent: #2ea3f7;
    --accent-hover: #4fb3fa;
    --accent-strong: #1689e0;
    --accent-soft: rgba(46, 163, 247, .12);
    --accent-line: rgba(46, 163, 247, .35);
    --accent-glow: rgba(46, 163, 247, .28);

    --bg: #070b12;
    --bg-elev: #0b111b;
    --surface: #0e1521;
    --surface-2: #131c2b;
    --surface-3: #1a2537;
    --border: rgba(148, 178, 214, .10);
    --border-strong: rgba(148, 178, 214, .18);

    --text: #e8eef6;
    --text-2: #b4c0d1;
    --muted: #7d8ba0;

    --success: #3ddc97;
    --warning: #ffc053;
    --danger: #ff5c7a;
    --bundle: #ffa94d;
    --source: #7ee787;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.bg-glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 900px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(600px 380px at 78% 120px, rgba(46, 163, 247, .16), transparent 70%),
        radial-gradient(520px 320px at 8% 0, rgba(46, 163, 247, .08), transparent 70%);
}

.bg-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 178, 214, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 178, 214, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 0, #000 30%, transparent 75%);
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text);
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

a { color: var(--accent); transition: color .15s ease; }
a:hover { color: var(--accent-hover); text-decoration: none; }

hr { border-color: var(--border); }
code, pre, kbd { font-family: var(--mono); }
code { color: var(--accent-hover); background: var(--accent-soft); padding: .15em .4em; border-radius: 6px; font-size: .85em; }
pre { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; color: var(--text-2); }
pre code { background: none; padding: 0; color: inherit; }

.text-white { color: var(--text) !important; }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--accent) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.bg-dark { background-color: var(--bg-elev) !important; }
.bg-primary { background-color: var(--accent) !important; }
.border, .border-bottom, .border-top { border-color: var(--border) !important; }
.hidden, .hide { display: none; }

.container { position: relative; z-index: 1; }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

.site-main { flex: 1 0 auto; padding: 40px 0 80px; position: relative; z-index: 1; }
.page-index .site-main { padding-top: 0; }

.text-gradient {
    background: linear-gradient(100deg, #8fd3ff 0%, var(--accent) 45%, #1677d2 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 163, 247, .55); }
    70% { box-shadow: 0 0 0 10px rgba(46, 163, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 163, 247, 0); }
}

.small-note { font-size: 13px; color: var(--muted); }
.label-sm { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .75rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    padding: .6rem 1.1rem;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px var(--accent-soft) !important; }
.btn-lg { font-size: 15px; padding: .85rem 1.5rem; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: .4rem .85rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn-block + .btn-block { margin-top: .6rem; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-success, .btn-blue {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-blue:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -10px rgba(46, 163, 247, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary.disabled, .btn-primary:disabled { background: var(--surface-3); border-color: var(--surface-3); color: var(--muted); box-shadow: none; }

.btn-ghost,
.btn-light, .btn-secondary, .btn-tertiary,
.btn-outline-primary, .btn-outline-muted, .btn-outline-secondary {
    background: rgba(255, 255, 255, .03);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover,
.btn-light:hover, .btn-secondary:hover, .btn-tertiary:hover,
.btn-outline-primary:hover, .btn-outline-muted:hover, .btn-outline-secondary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-line);
    color: #fff;
}

.btn-danger, .btn-outline-danger {
    background: rgba(255, 92, 122, .1);
    border-color: rgba(255, 92, 122, .35);
    color: #ff8aa0;
}
.btn-danger:hover, .btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn-in-basket { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .35); color: var(--success); }
.btn-in-basket:hover { background: rgba(61, 220, 151, .18); color: var(--success); }

.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; white-space: nowrap; }
.btn-discord:hover { background: #6d78f5; color: #fff; }

.btn-link { color: var(--accent); font-weight: 600; }
.btn-link:hover { color: var(--accent-hover); text-decoration: none; }
.btn-gift { color: var(--text-2); font-size: 14px; }

.btn-icon, .btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    transition: all .15s ease;
    position: relative;
    cursor: pointer;
}
.btn-icon:hover, .btn-icon[aria-expanded="true"] { color: #fff; border-color: var(--accent-line); background: var(--accent-soft); }
.btn-icon:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-icon.is-muted { color: var(--muted); cursor: default; }
.btn-icon.is-muted:hover { background: rgba(255, 255, 255, .03); border-color: var(--border); }
.btn-icon img { width: 20px; }
.btn-icon-sm { height: 32px; min-width: 32px; padding: 0 8px; font-size: 12px; border-radius: 8px; }
.btn-icon-sm:hover { color: #fff; border-color: var(--accent-line); background: var(--accent-soft); }
.btn-remove:hover { color: #fff; border-color: var(--danger); background: var(--danger); }

.dropdown-toggle::after {
    content: "";
    width: 6px; height: 6px;
    margin-left: .55rem;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .7;
    vertical-align: middle;
    display: inline-block;
}
.no-caret::after { display: none !important; }

.btn-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    width: 34px; height: 34px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s ease;
}
.btn-close:hover { color: #fff; border-color: var(--border-strong); background: var(--surface-3); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(7, 11, 18, .72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
            backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(7, 11, 18, .88); }

.header-bar {
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
    min-height: var(--header-h);
    flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-avatar {
    width: 42px; height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(46, 163, 247, .35));
    transition: transform .3s ease;
}
.brand:hover .brand-avatar { transform: rotate(-6deg) scale(1.06); }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -.02em; line-height: 1.1; }
.brand-name span { color: var(--accent); }

.header-nav { flex: 0 0 100%; order: 3; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links > li > a {
    display: flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 8px;
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-links > li.active > a { color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }

.header-actions { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.btn-login { height: 40px; }

.chip {
    display: inline-flex; align-items: center; gap: .5rem;
    height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 10px;
    font-family: var(--mono); font-size: 12px; color: var(--text-2);
}
.chip .server-ip-cp { color: var(--accent); font-weight: 600; text-transform: uppercase; }

.btn-basket .basket-count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    box-shadow: 0 0 0 3px var(--bg);
}

/* Desktop: brand + actions on the top row, categories on their own row underneath (wraps, never clips) */
@media (min-width: 992px) {
    .header-nav.collapse { display: block !important; height: auto !important; }
    .header-nav { border-top: 1px solid var(--border); padding: .55rem 0 .65rem; }
}

@media (max-width: 991.98px) {
    .header-bar { gap: .75rem; }
    .header-nav .nav-links { flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; gap: 2px; }
    .header-nav .dropdown-menu { position: static !important; transform: none !important; float: none; box-shadow: none; margin: 0 0 .5rem; }
    .brand-name { font-size: 15px; }
}
@media (max-width: 480px) {
    .brand-name { display: none; }
    .header-actions { gap: .35rem; }
    .btn-login { padding-left: .7rem; padding-right: .7rem; }
}

/* --------------------------------------------------------------------------
   Dropdowns, tooltips, modals
   -------------------------------------------------------------------------- */

.dropdown-menu {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 6px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 11rem;
    font-size: 14px;
}
.dropdown-item {
    color: var(--text-2);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.dropdown-item:hover, .dropdown-item:focus { background: rgba(255, 255, 255, .05); color: #fff; }
.dropdown-item.active, .dropdown-item:active { background: var(--accent-soft); color: var(--accent); }
.dropdown-item.logout:hover { color: var(--danger); }
.dropdown-divider { border-top-color: var(--border); margin: 6px 0; }
.dropdown-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .5rem .25rem; }

.dropdown-basket { width: 340px; padding: 10px; }
.basket-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.basket-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.basket-list li:last-child { border-bottom: 0; }
.basket-item-info { display: flex; flex-direction: column; min-width: 0; }
.basket-item-name { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-item-price { color: var(--muted); font-size: 13px; }
.basket-footer { padding: .75rem .5rem .25rem; border-top: 1px solid var(--border); margin-top: .25rem; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.basket-total span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.basket-total strong { color: var(--text); font-size: 18px; }
.basket-total small { color: var(--muted); font-size: 12px; }

.tooltip { font-family: var(--font); font-size: 12px; }
.tooltip-inner { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: .4rem .65rem; }
.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { border-bottom-color: var(--surface-3); }
.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { border-top-color: var(--surface-3); }

.modal-backdrop.show { opacity: .7; background: #02040a; }
.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-2);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 1.1rem 1.25rem; align-items: center; }
.modal-title { font-size: 17px; }
.modal-body { padding: 1.25rem; }
.modal-footer { border-top: 1px solid var(--border); }
.close { color: var(--text); text-shadow: none; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

label { color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: .45rem; }

.form-control, .custom-select {
    background-color: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    height: calc(1.5em + 1.5rem + 2px);
    padding: .75rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; }
.form-control::placeholder { color: var(--muted); opacity: 1; }
.form-control:focus, .custom-select:focus {
    background-color: var(--bg-elev);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-control:disabled, .form-control[readonly] { background-color: var(--surface-2); color: var(--muted); }
select.form-control {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8ba0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    padding-right: 2.4rem;
}
select.form-control option { background: var(--surface); color: var(--text); }

.input-group-text {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--muted);
    border-radius: 10px;
    padding: 0 .9rem;
}
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-append > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.input-group > .input-group-append > .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: -3px; margin-right: .4rem; }
.checkbox label { font-weight: 500; color: var(--text-2); }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.search-field { position: relative; margin: 0; min-width: 280px; }
.search-field .search-ico { position: absolute; display: flex; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.search-field input {
    width: 100%; height: 44px;
    padding: 0 1rem 0 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}
.search-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* --------------------------------------------------------------------------
   Alerts, badges, tables, progress, lists
   -------------------------------------------------------------------------- */

.alert { border-radius: 12px; border: 1px solid; font-size: 14px; padding: .85rem 1rem; }
.alert-success { background: rgba(61, 220, 151, .08); border-color: rgba(61, 220, 151, .3); color: #8ff0c4; }
.alert-danger, .alert-error { background: rgba(255, 92, 122, .08); border-color: rgba(255, 92, 122, .3); color: #ff9db0; }
.alert-warning { background: rgba(255, 192, 83, .08); border-color: rgba(255, 192, 83, .3); color: #ffd58a; }
.alert-info { background: var(--accent-soft); border-color: var(--accent-line); color: #9bd4ff; }

.badge { font-family: var(--font); font-weight: 600; border-radius: 6px; padding: .35em .6em; }
.badge-success { background: rgba(61, 220, 151, .15); color: var(--success); }
.badge-danger { background: rgba(255, 92, 122, .15); color: var(--danger); }
.badge-featured { background: var(--accent-soft); color: var(--accent); }

.table { color: var(--text-2); font-size: 14px; margin-bottom: 0; }
.table td, .table th { border-top: 1px solid var(--border); padding: .8rem; vertical-align: middle; }
.table thead td, .table thead th { border-bottom: 1px solid var(--border-strong); color: var(--text); }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 255, 255, .02); }
.table-hover tbody tr:hover { background: rgba(255, 255, 255, .04); color: var(--text); }

.progress { height: 10px; background: var(--surface-3); border-radius: 10px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--accent-strong), var(--accent), #8fd3ff); border-radius: 10px; }
.progress-label { display: flex; justify-content: space-between; margin: .6rem 0 0; font-size: 13px; color: var(--muted); }
.progress-label strong { color: var(--text); }

.list-group-item { background: transparent; border-color: var(--border); color: var(--text-2); }

/* --------------------------------------------------------------------------
   Cards & surfaces
   -------------------------------------------------------------------------- */

.card, .content-card, .module, .cta-card, .buy-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)) , var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
}
.card-body { padding: 1.25rem; }
.card-title h5 { font-size: 16px; }
.content-card { padding: 1.75rem; }
@media (max-width: 575.98px) { .content-card { padding: 1.25rem; } }
.content-card-title { font-size: 20px; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.card-head h5 { font-size: 15px; margin: 0; }
.count-pill { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 20px; padding: .25rem .65rem; }

.section { padding-top: 32px; padding-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.section-head h2 { font-size: 30px; margin: 0; }

.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 3rem 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}
.empty-state i { font-size: 28px; color: var(--surface-3); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: 72px 0 40px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.25rem; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin-bottom: 2rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 2.25rem 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-meta i { color: var(--accent); margin-right: .5rem; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero-avatar {
    position: relative; z-index: 2;
    width: min(360px, 80%);
    filter: drop-shadow(0 30px 50px rgba(46, 163, 247, .35));
    animation: float 6s ease-in-out infinite;
}
.hero-ring {
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 163, 247, .22), rgba(46, 163, 247, 0) 65%);
    border: 1px solid var(--accent-line);
}
.hero-ring-2 { width: 480px; height: 480px; background: none; border-color: var(--border); border-style: dashed; animation: spin 60s linear infinite; }
.hero-float {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem .9rem;
    background: rgba(14, 21, 33, .85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    font-size: 13px; font-weight: 600; color: var(--text);
    box-shadow: var(--shadow);
}
.hero-float .ico { flex-shrink: 0; color: var(--accent); width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.hero-float-1 { left: 0; top: 18%; animation: float 7s ease-in-out infinite .5s; }
.hero-float-2 { right: 0; bottom: 16%; animation: float 8s ease-in-out infinite 1s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
    .hero { padding-top: 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hero-art { min-height: 250px; order: -1; }
    .hero-ring { width: 220px; height: 220px; }
    .hero-ring-2 { width: 270px; height: 270px; }
    .hero-avatar { width: 190px; }
    .hero-float { display: none; }
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent-line);
    margin-bottom: 1rem; font-size: 17px;
}
.feature h3 { font-size: 17px; margin-bottom: .4rem; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 767.98px) { .feature-grid { grid-template-columns: 1fr; } }

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.category-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 1.4rem 1.4rem 1.25rem;
    min-height: 150px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.category-card::before {
    content: ""; position: absolute; inset: auto -40% -60% auto;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 163, 247, .18), transparent 70%);
    opacity: 0; transition: opacity .25s ease;
}
.category-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card:hover::before { opacity: 1; }
.category-index { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: auto; }
.category-name { color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin-top: 1.5rem; }
.category-sub { color: var(--muted); font-size: 13px; }
.category-arrow {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--muted); font-size: 12px;
    transition: all .2s ease;
}
.category-card:hover .category-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.cta-card {
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 240px at 100% 0, rgba(46, 163, 247, .18), transparent 70%),
        var(--surface);
    border-color: var(--accent-line);
}
.cta-card h2 { font-size: 28px; margin-bottom: .75rem; }
.cta-card p { max-width: 560px; margin-bottom: 1.5rem; }
.cta-card .eyebrow, .cta-card h2, .cta-card p, .cta-card .hero-actions { position: relative; z-index: 1; }
.cta-avatar {
    position: absolute;
    right: 2rem; bottom: -30px;
    width: 230px;
    filter: drop-shadow(0 20px 40px rgba(46, 163, 247, .3));
    transform: rotate(6deg);
}
@media (max-width: 767.98px) { .cta-avatar { display: none; } }

.module-grid { columns: 3 300px; column-gap: 1rem; }
.module-grid > .module, .module-grid > .card { break-inside: avoid; margin-bottom: 1rem !important; display: block; }

/* --------------------------------------------------------------------------
   Page head & breadcrumbs
   -------------------------------------------------------------------------- */

.page-head { padding: 8px 0 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.page-head-desc { margin-top: .6rem; max-width: 640px; color: var(--muted); }
.page-head-desc p:last-child { margin-bottom: 0; }

.crumbs { display: flex; align-items: center; gap: .55rem; font-size: 13px; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-size: 9px; opacity: .6; }
.crumbs span { color: var(--text-2); }

.back-link { display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 1.25rem; }
.back-link:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Packages
   -------------------------------------------------------------------------- */

.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.package-card {
    display: flex; flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.package-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(46, 163, 247, .35); }
.package-card.in-basket { border-color: rgba(61, 220, 151, .35); }

.package-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--bg-elev);
    overflow: hidden;
}
.package-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.package-card:hover .package-media img { transform: scale(1.04); }
.package-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 160px;
    color: var(--surface-3); font-size: 34px;
    background: radial-gradient(circle at 50% 40%, rgba(46, 163, 247, .1), transparent 60%), var(--bg-elev);
}
.package-ribbon {
    position: absolute; top: 12px; left: 12px;
    padding: .3rem .6rem;
    border-radius: 8px;
    background: rgba(255, 92, 122, .9);
    color: #fff; font-size: 12px; font-weight: 700;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.package-ribbon.is-sale { background: var(--accent); }

.package-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.15rem; }
.package-title { font-size: 16px; font-weight: 700; margin: 0 0 1rem; line-height: 1.35; }
.package-title a { color: var(--text); }
.package-title a:hover { color: var(--accent); }
.package-foot .btn { white-space: nowrap; flex-shrink: 0; }
.package-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--border); }

.price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price-now { color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.price-cur { color: var(--muted); font-size: 12px; font-weight: 600; }
.price-was { color: var(--danger); font-size: 13px; opacity: .85; }

.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; min-height: 0; }
.tag-row:empty { display: none; }
.tag {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: 11px; font-weight: 700;
    letter-spacing: .03em; text-transform: uppercase;
    padding: .25rem .55rem;
    border-radius: 6px;
    border: 1px solid;
}
.tag i { font-size: 10px; }
.tag-escrow { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.tag-source { color: var(--source); background: rgba(126, 231, 135, .08); border-color: rgba(126, 231, 135, .3); }
.tag-bundle { color: var(--bundle); background: rgba(255, 169, 77, .08); border-color: rgba(255, 169, 77, .3); }

/* List display type */
.package-grid.is-list { grid-template-columns: 1fr; gap: .75rem; }
.package-grid.is-list .package-card { flex-direction: row; align-items: stretch; }
.package-grid.is-list .package-media { width: 200px; flex-shrink: 0; aspect-ratio: auto; }
.package-grid.is-list .package-body { flex-direction: row; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.package-grid.is-list .package-title { margin: 0; flex: 1; }
.package-grid.is-list .package-foot { border: 0; padding: 0; margin: 0; }
@media (max-width: 575.98px) {
    .package-grid.is-list .package-card { flex-direction: column; }
    .package-grid.is-list .package-media { width: 100%; aspect-ratio: 16 / 10; }
}

/* Package page */
.package-page .crumbs { margin-bottom: 1.5rem; }
.package-hero-media {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.package-hero-media img { width: 100%; display: block; }
.package-hero-media .package-placeholder { aspect-ratio: 16 / 10; }

.buy-card { padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 20px); }
.buy-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding: 1rem 0 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.buy-price .price-now { font-size: 34px; }
.buy-price .price-cur { font-size: 14px; }
.buy-actions .btn-block + .btn-block { margin-top: .6rem; }
.buy-perks { list-style: none; padding: 1.25rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--border); font-size: 14px; }
.buy-perks li { display: flex; align-items: center; gap: .75rem; padding: .35rem 0; }
.buy-perks .ico { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; flex-shrink: 0; }
.gift-fields { margin-top: .75rem; }
.countdown-pill { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 8px; background: rgba(255, 92, 122, .12); color: var(--danger); font-weight: 600; font-size: 13px; }

@media (max-width: 991.98px) { .buy-card { position: static; } }

/* Rich text (descriptions, CMS pages, terms) */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.75rem 0 .75rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose iframe { aspect-ratio: 16 / 9; width: 100%; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: .75rem 1rem; border-radius: 0 8px 8px 0; color: var(--text); }
.prose table { width: 100%; }
.prose strong, .prose b { color: var(--text); }
.prose span[style*="color"] { color: inherit !important; }

/* --------------------------------------------------------------------------
   Sidebar modules
   -------------------------------------------------------------------------- */

.sidebar { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 991.98px) { .sidebar { margin-top: 2rem; } }
.sidebar > .card, .sidebar > .module { margin-bottom: 0 !important; }

.module { padding: 1.25rem; }
.module-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
    margin-bottom: 1rem;
}
.module-text { font-size: 14px; margin-bottom: 1rem; }

.module-featured .package-media { border-radius: 10px; margin-bottom: 1rem; }
.module-featured .package-title { margin-bottom: .75rem; }

.people-list { list-style: none; padding: 0; margin: 0; }
.people-list li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.people-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.people-list li:first-child { padding-top: 0; }
.people-list img { border-radius: 9px; background: var(--surface-2); }
.people-name { flex: 1; color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-amount { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .2rem .5rem; border-radius: 6px; }
.people-list .is-top .fa-crown { color: var(--warning); }

.status-pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 20px; }
.status-pill.is-online { background: rgba(61, 220, 151, .12); color: var(--success); }
.status-pill.is-offline { background: rgba(255, 92, 122, .12); color: var(--danger); }
.server-box { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); text-align: center; }
.server-box code { background: none; color: var(--text); font-size: 15px; padding: 0; }
.server-box span { font-size: 13px; color: var(--text-2); }

.module-discord { padding-bottom: 1rem; }
.module-discord iframe { display: block; width: 100%; border-radius: 10px; background: var(--bg-elev); }
.module-partner .partner-banner { display: block; margin-bottom: .85rem; border-radius: 10px; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border); }
.module-partner .partner-banner img { width: 100%; display: block; transition: transform .3s ease; }
.module-partner .partner-banner:hover img { transform: scale(1.03); }
.module-partner p { font-size: 14px; }
.promo-code { font-family: var(--mono); font-weight: 600; background: var(--accent-soft); border: 1px dashed var(--accent-line); padding: .05rem .4rem; border-radius: 6px; }

.side-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: .55rem .75rem;
    border-radius: 8px;
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
}
.side-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.side-nav-link.active { color: var(--accent); background: var(--accent-soft); }
.side-nav-link.nav-child { padding-left: 1.5rem; font-weight: 500; font-size: 13px; }
.side-nav-link .fa-chevron-down { font-size: 10px; transition: transform .2s ease; }
.side-nav-link:not(.collapsed) .fa-chevron-down { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout h4 { font-size: 17px; }
.checkout-aside .content-card { padding: 1.4rem; }

.review-item { display: grid; grid-template-columns: 1fr auto 64px auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.review-item:first-child { padding-top: 0; }
.review-item .name a { color: var(--text); font-weight: 600; font-size: 14px; }
.review-item .name a:hover { color: var(--accent); }
.review-item .options, .review-item .attribute { color: var(--muted); }
.review-item .price { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.review-item .price small { color: var(--muted); }
.review-item .quantity .form-control { height: 34px; padding: 0 .25rem; border-radius: 8px; }
.review-item .actions { display: flex; gap: .35rem; }
.review-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; }
.review-total span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.review-total strong { color: var(--text); font-size: 24px; letter-spacing: -.02em; }
.review-total small { color: var(--muted); font-size: 13px; }
@media (max-width: 575.98px) {
    .review-item { grid-template-columns: 1fr 56px auto; }
    .review-item .price { grid-column: 1; grid-row: 2; }
}

.coupon-list { list-style: none; padding: 0; margin: 0; }
.coupon-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border: 1px dashed var(--accent-line); border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
.coupon-list li + li { margin-top: .5rem; }
.coupon-code { font-family: var(--mono); color: var(--text); font-weight: 600; }
.coupon-desc { flex: 1; color: var(--muted); }

.gateways { display: flex; flex-wrap: wrap; gap: .75rem; }
.gateway-option label { margin: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.gateway-option input { position: absolute; opacity: 0; pointer-events: none; }
.gateway_img { padding: .75rem 1rem; height: 64px; min-width: 120px; object-fit: contain; border-radius: 10px; background: #fff; border: 2px solid transparent; transition: border-color .15s ease, box-shadow .15s ease; }
.gateway-option input:checked + .gateway_img { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.discord-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(88, 101, 242, .08);
    border: 1px solid rgba(88, 101, 242, .3);
    margin-bottom: 1rem;
}
.discord-link.is-linked { background: rgba(61, 220, 151, .06); border-color: rgba(61, 220, 151, .3); }
.discord-link-icon { width: 44px; height: 44px; border-radius: 12px; background: #5865f2; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.discord-link-body { flex: 1; }
.discord-link-body strong { color: var(--text); display: block; margin-bottom: .15rem; }
.discord-link-body p { margin: 0; font-size: 13px; color: var(--muted); }
.discord-link-body b { color: var(--text-2); }
@media (max-width: 575.98px) { .discord-link { flex-wrap: wrap; } .discord-link .btn { width: 100%; } }

/* Status pages */
.status-card { text-align: left; }
.status-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.status-icon.is-success { background: rgba(61, 220, 151, .12); color: var(--success); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .35); }
.status-title { text-align: center; font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-bottom: 2rem; }

/* Tiered categories */
.store-products-tiered { gap: 1.25rem; }
.store-product-tiered { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.store-product-tiered.subscribed { border-color: var(--accent); }
.store-product-tiered .image { width: 100%; border-radius: 10px; margin-bottom: 1rem; }
.store-product-tiered .product-title { font-size: 18px; }
.store-product-tiered .price strong { color: var(--text); font-size: 22px; }
.btn.wide { width: 100%; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: var(--bg-elev); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 320px; margin: 1rem 0 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--text-2); transition: all .15s ease; }
.footer-social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.site-footer h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-bottom a { color: var(--text-2); }

@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Icon wrappers (Font Awesome kits may swap <i> for <svg>, so size the wrapper)
   -------------------------------------------------------------------------- */

.category-arrow svg, .category-arrow i,
.hero-float .ico svg, .buy-perks .ico svg, .search-ico svg { width: 1em; height: 1em; }
.category-arrow { font-size: 13px; line-height: 1; }

/* --------------------------------------------------------------------------
   Product page layout
   -------------------------------------------------------------------------- */

.package-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
        "head  aside"
        "media aside"
        "desc  aside";
    grid-template-rows: auto auto 1fr;
    column-gap: 2rem;
    row-gap: 1.5rem;
    align-items: start;
}
.package-head { grid-area: head; }
.package-hero-media { grid-area: media; }
.package-aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + 64px); }
.package-desc { grid-area: desc; }
.package-name { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.package-head .tag-row { margin-bottom: .75rem; }
.package-head .countdown-pill { margin-top: .9rem; }
.package-aside .buy-card { position: static; padding: 1.5rem; }
.package-aside .buy-price { padding-top: 0; }
.buy-perks li > span:last-child { flex: 1; }

@media (max-width: 991.98px) {
    .package-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head" "media" "aside" "desc";
        grid-template-rows: auto;
    }
    .package-aside { position: static; }
}

/* --------------------------------------------------------------------------
   Home: partner spotlight + community
   -------------------------------------------------------------------------- */

.partner-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-line);
    background:
        radial-gradient(600px 300px at 85% 50%, rgba(255, 170, 40, .14), transparent 70%),
        radial-gradient(500px 260px at 0% 0%, rgba(46, 163, 247, .16), transparent 70%),
        var(--surface);
    color: var(--text-2);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.partner-spotlight:hover { color: var(--text-2); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 30px 60px -30px rgba(46, 163, 247, .45); }
.partner-spotlight h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; }
.partner-spotlight p { max-width: 480px; margin-bottom: 1.5rem; }
.partner-deal { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.partner-discount { font-size: 15px; font-weight: 700; color: var(--text); }
.partner-discount strong { font-size: 34px; font-weight: 800; color: #ffb347; letter-spacing: -.03em; margin-right: .2rem; }
.partner-code-label { color: var(--muted); font-size: 14px; }
.partner-code {
    font-family: var(--mono); font-weight: 600; font-size: 18px; letter-spacing: .12em;
    color: var(--text);
    padding: .45rem .9rem;
    border-radius: 10px;
    border: 1.5px dashed var(--accent);
    background: var(--accent-soft);
}
.partner-art {
    display: flex; align-items: center; justify-content: center;
    min-height: 220px;
    padding: 2rem;
    border-radius: var(--radius);
    background: radial-gradient(circle at 50% 50%, rgba(46, 163, 247, .12), transparent 70%), var(--bg-elev);
    border: 1px solid var(--border);
}
.partner-art img { width: 100%; max-width: 420px; transition: transform .3s ease; }
.partner-spotlight:hover .partner-art img { transform: scale(1.04); }
@media (max-width: 991.98px) {
    .partner-spotlight { grid-template-columns: 1fr; padding: 1.5rem; }
    .partner-art { order: -1; min-height: 160px; }
}

.community-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; align-items: stretch; }
.community-grid .cta-card { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 991.98px) { .community-grid { grid-template-columns: 1fr; } }
