/* ==========================================================================
   VIOLET Tebex Template — shared.css
   Accent: #C585FF
   --------------------------------------------------------------------------
   All colours live in the :root block below. Change --accent and the whole
   store follows.
   ========================================================================== */

:root {
    --accent:        #C585FF;
    --accent-bright: #D8A9FF;
    --accent-dark:   #9B5FD9;
    --accent-deep:   #7C3FB5;
    --accent-ink:    #17091F;   /* text colour used ON the accent */
    --accent-soft:   rgba(197, 133, 255, 0.10);
    --accent-line:   rgba(197, 133, 255, 0.25);
    --accent-glow:   rgba(197, 133, 255, 0.28);

    --bg-base:       #0A0810;
    --bg-card:       #100D18;
    --bg-card2:      #161222;
    --bg-input:      #1A1526;

    --text-primary:  #E9E6EE;
    --text-muted:    rgba(255, 255, 255, 0.45);
    --text-dim:      rgba(255, 255, 255, 0.30);
    --border:        rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    --success:       #22c55e;
    --danger:        #ef4444;
    --gold:          #f59e0b;

    --radius:        0.6rem;
    --radius-lg:     1rem;
    --shadow:        0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 10px 28px rgba(197, 133, 255, 0.12);

    --max-width:     1400px;
}

/* ==========================================================================
   BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

a { text-decoration: none !important; transition: 0.2s; color: inherit; }
img { max-width: 100%; }
canvas { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #2b2338; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

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

.text-accent { color: var(--accent) !important; }
.bg-card     { background: var(--bg-card); }
.mr-auto     { margin-right: auto; }
.hidden, [hidden] { display: none !important; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.topbar {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(16, 13, 24, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    height: 66px;
    display: flex;
    align-items: center;
    width: calc(100% - 2rem);
    max-width: var(--max-width);
}

/* On pages without a hero the bar flows in the document instead of floating
   over it, so it never overlaps the content underneath. */
body.no-hero .topbar {
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    margin: 0.75rem auto 0.75rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 0.03em;
}
.topbar-logo:hover { color: var(--accent); }
.topbar-logo img { height: 30px; width: auto; border-radius: 0.35rem; }

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar-nav a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.topbar-nav a:hover,
.topbar-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.05); }
.topbar-nav a.active { color: var(--accent); }

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Logged-in user chip + dropdown */
.user-chip-wrap { position: relative; }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.32rem 0.7rem 0.32rem 0.35rem;
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    max-width: 210px;
}
.user-chip:hover,
.user-chip.open { border-color: var(--accent-line); background: var(--accent-soft); }
.user-chip img {
    width: 26px;
    height: 26px;
    border-radius: 0.3rem;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.user-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-chip i { color: var(--text-muted); font-size: 0.75rem; transition: transform 0.2s; }
.user-chip.open i { transform: rotate(180deg); color: var(--accent); }

.user-chip-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.35rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 10;
}
.user-chip-menu.open { display: block; }
.user-chip-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: calc(var(--radius) - 0.2rem);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.user-chip-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.user-chip-menu a i { width: 16px; text-align: center; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-accent,
.button-primary {
    background: transparent;
    color: var(--accent) !important;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.2;
}
.btn-accent:hover,
.button-primary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-bright);
    color: var(--accent-bright) !important;
    box-shadow: 0 0 18px rgba(197, 133, 255, 0.18);
}

.btn-accent-solid,
.button-success {
    background: var(--accent);
    color: var(--accent-ink) !important;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.55rem 1.3rem;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1.2;
}
.btn-accent-solid:hover,
.button-success:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    box-shadow: 0 0 22px rgba(197, 133, 255, 0.35);
}

.btn-ghost,
.button-dark {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid var(--border-strong) !important;
    border-radius: var(--radius);
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1;
}
.btn-ghost:hover,
.button-dark:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-line) !important;
    color: var(--accent) !important;
}

.btn-icon {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    line-height: 1;
}
.btn-icon:hover { background: var(--accent-soft); color: var(--accent); }

.btn-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 99px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

button:disabled,
a[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.wide { width: 100%; }
.half { width: calc(50% - 0.3rem); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-base);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* violet wash over the hero art so the background reads as part of the theme */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 8, 16, 0.18) 0%, rgba(10, 8, 16, 0.32) 38%, rgba(10, 8, 16, 0.86) 100%),
        linear-gradient(90deg, rgba(24, 12, 38, 0.62) 0%, rgba(14, 9, 22, 0.36) 42%, rgba(10, 8, 16, 0.14) 100%),
        radial-gradient(90% 70% at 50% 8%, rgba(197, 133, 255, 0.18) 0%, transparent 62%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, var(--bg-base) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    padding: 3rem 2rem 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 2rem;
}

.hero-copy { text-align: center; max-width: 420px; margin: 0 auto; }

.hero-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 99px;
    padding: 0.3rem 1rem;
}

.hero-title {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 24px rgba(197, 133, 255, 0.25);
}
.hero-title span { color: var(--accent); }

.hero-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 8, 16, 0.62);
    border: 1px solid var(--border-strong);
    border-radius: 0.8rem;
    padding: 0.62rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    backdrop-filter: blur(10px);
}
.hero-ip:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(197, 133, 255, 0.18);
}
.hero-ip i { color: var(--accent); font-size: 0.8rem; }

.hero-buttons { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.hero-logo-wrapper { display: flex; justify-content: center; }

.hero-logo-avatar {
    width: 157px;
    height: 157px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: transparent;
    border: 1px solid var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 42px rgba(197, 133, 255, 0.14);
}

.hero-skin-wrap { display: flex; justify-content: flex-end; }

.hero-skin-card {
    position: relative;
    width: 275px;
    min-height: 422px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(197, 133, 255, 0.06) 0%, rgba(10, 8, 16, 0.0) 60%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    padding: 0.75rem 0.75rem 0;
}

.hero-skin-name {
    position: relative;
    z-index: 2;
    margin-bottom: 0.15rem;
    font-size: 0.96rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.hero-skin-canvas {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 366px;
    cursor: grab;
}

.hero-skin-fallback {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 366px;
}
.hero-skin-fallback img { image-rendering: pixelated; max-height: 320px; }

/* ==========================================================================
   STATS BAR
   ========================================================================== */

.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.stat-item i { color: var(--accent); }
.stat-item strong { color: var(--text-primary); }
.stat-item a:hover { color: var(--accent) !important; }

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    display: inline-block;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.stat-item.status-hidden { display: none !important; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.main-wrapper.no-sidebar { grid-template-columns: 1fr; }

.content-area { min-width: 0; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.sidebar-card:hover {
    border-color: var(--accent-line);
    box-shadow: 0 0 18px rgba(197, 133, 255, 0.06);
}

.sidebar-card-header {
    padding: 0.85rem 1.2rem 0.6rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.sidebar-card-header i { color: var(--accent); margin-right: 0.35rem; }

.user-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.2rem;
}
.user-box img {
    width: 48px;
    height: 48px;
    border-radius: 0.3rem;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.user-box .avatar-gray { filter: grayscale(1); opacity: 0.6; }
.user-box .user-info { flex: 1; min-width: 0; }
.user-box .user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-box .user-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.user-box .user-sub a { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.user-box .user-sub a:hover { color: var(--accent-bright); }

.sidebar-nav { list-style: none; margin: 0; padding: 0.5rem 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
    transition: 0.2s;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.03); color: var(--text-primary); }
.sidebar-nav a.active {
    border-left-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.sidebar-nav a i { width: 18px; text-align: center; font-size: 0.9rem; }
.sidebar-nav .nav-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

/* ==========================================================================
   SIDEBAR WIDGETS (Tebex modules)
   ========================================================================== */

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.widget:hover {
    border-color: var(--accent-line);
    box-shadow: 0 0 18px rgba(197, 133, 255, 0.06);
}
.widget + .widget { margin-top: 1rem; }

.widget-header {
    padding: 0.85rem 1.2rem 0.6rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.widget-header i { color: var(--accent); margin-right: 0.35rem; }

.widget-content { padding: 0.9rem 1.2rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.widget-content a { color: var(--accent); font-weight: 600; }
.widget-content strong { color: var(--text-primary); }

.widget-empty {
    padding: 0.9rem 1.2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.widget-empty i { color: var(--danger); margin-right: 0.4rem; }

/* Top donator */
.top-donator-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.2rem; }
.top-donator-skin {
    width: 40px;
    height: 40px;
    border-radius: 0.3rem;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.top-donator-info { flex: 1; min-width: 0; }
.top-donator-name { font-weight: 700; font-size: 0.88rem; color: #fff; }
.top-donator-text { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
.top-donator-text strong { color: var(--accent); }

/* Recent payments */
.payments-payment {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.2rem;
    transition: 0.2s;
}
.payments-payment:hover { background: rgba(255, 255, 255, 0.03); }
.payments-avatar {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.payments-body { flex: 1; min-width: 0; }
.payments-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.payments-price { color: var(--accent); margin-left: 0.4rem; font-weight: 700; }
.payments-tag {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.08rem 0.5rem;
    margin-top: 0.2rem;
    margin-right: 0.25rem;
}

/* Server status */
.server-status-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.server-status { color: var(--success); display: inline-flex; align-items: center; gap: 0.45rem; }
.server-status-offline { color: var(--danger); display: inline-flex; align-items: center; gap: 0.45rem; }
.server-player-count { color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.server-player-count i { color: var(--accent); }

.server-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 1.2rem 1rem;
    padding: 0.55rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.server-info:hover { border-color: var(--accent); color: var(--accent); }
.server-info i { color: var(--accent); }

/* Goals */
.goal-body { padding: 0.9rem 1.2rem; }
.goal-bar {
    height: 8px;
    width: 100%;
    background: var(--bg-input);
    border-radius: 99px;
    overflow: hidden;
    margin: 0.6rem 0 0.5rem;
}
.goal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent));
    border-radius: 99px;
    box-shadow: 0 0 12px rgba(197, 133, 255, 0.4);
    transition: width 0.4s ease;
}
.goal-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.goal-meta strong { color: var(--accent); }

/* Gift card balance */
.giftcard-form { padding: 0.9rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }

/* ==========================================================================
   SECTION HEADING
   ========================================================================== */

.section-heading { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.section-heading h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.section-heading .section-line { flex: 1; height: 1px; background: var(--border); }

/* ==========================================================================
   CATEGORY TABS
   ========================================================================== */

.category-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.category-tab {
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.02em;
}
.category-tab:hover { color: var(--text-primary); border-color: var(--border-strong); }
.category-tab.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 0 18px rgba(197, 133, 255, 0.25);
}

/* ==========================================================================
   CATEGORY CARDS (home)
   ========================================================================== */

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    min-width: 0;
}
.package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 133, 255, 0.35);
    box-shadow: var(--shadow-accent);
}

.category-card {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1rem;
    gap: 0.7rem;
    min-height: 148px;
}
.category-card-icon { font-size: 2rem; color: var(--accent); opacity: 0.8; }
.category-card-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: pixelated;
}
.package-card-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }

.package-card,
.package-card-name,
.package-card-desc,
.info-card,
.user-name,
.top-donator-name,
.hero-skin-name,
.pkg-row-name { overflow-wrap: anywhere; word-break: break-word; }

/* ==========================================================================
   PACKAGE ROWS (category listing)
   ========================================================================== */

.pkg-list { display: flex; flex-direction: column; gap: 1rem; }

.pkg-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pkg-row:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 133, 255, 0.35);
    box-shadow: var(--shadow-accent);
}

.pkg-row-img {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pkg-row-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.pkg-row-img i { font-size: 1.6rem; color: var(--accent-line); }

.pkg-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.pkg-row-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    cursor: pointer;
    max-width: 100%;
}
.pkg-row-name:hover { color: var(--accent); }

.pkg-row-price { font-size: 1rem; font-weight: 800; color: var(--accent); }
.pkg-row-price del { color: var(--text-dim); font-weight: 600; font-size: 0.82rem; margin-right: 0.4rem; }

.pkg-row-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.popular-tag {
    position: absolute;
    top: -9px;
    left: 1.1rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.18rem 0.6rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 0 16px rgba(197, 133, 255, 0.4);
}

.countdown {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 99px;
    padding: 0.1rem 0.55rem;
}

/* ==========================================================================
   PACKAGE PAGE
   ========================================================================== */

.package-view {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.package-view-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    background: var(--bg-card2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.package-view-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }

.package-view-name { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.package-view-price { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin: 0.6rem 0 1.1rem; }
.package-view-price del { font-size: 0.95rem; color: var(--text-dim); font-weight: 600; margin-right: 0.5rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    cursor: pointer;
}
.back-link:hover { color: var(--accent); }

/* ==========================================================================
   TEXT CONTENT (package / page descriptions)
   ========================================================================== */

.text-content { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }
.text-content h1, .text-content h2, .text-content h3,
.text-content h4, .text-content h5 { color: #fff; margin: 1.2rem 0 0.6rem; line-height: 1.3; }
.text-content h1 { font-size: 1.4rem; }
.text-content h2 { font-size: 1.2rem; }
.text-content h3 { font-size: 1.05rem; }
.text-content p { margin: 0 0 0.6rem; }
.text-content strong, .text-content b { color: #fff; }
.text-content a { color: var(--accent); font-weight: 600; }
.text-content a:hover { color: var(--accent-bright); }
.text-content ul, .text-content ol { padding-left: 1.2rem; margin: 0 0 0.75rem; }
.text-content li { margin-bottom: 0.25rem; }
.text-content hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.text-content img { border-radius: var(--radius); }

.page-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.category-desc-block {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   QUANTITY FIELD
   ========================================================================== */

.quantity-field {
    display: inline-flex;
    align-items: stretch;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.quantity-field .adjust {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 34px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.quantity-field .adjust:hover { background: var(--accent-soft); color: var(--accent); }
.quantity-field .quantity {
    width: 52px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}
.quantity-field .quantity::-webkit-outer-spin-button,
.quantity-field .quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-field .quantity:focus { outline: none; }
.quantity-field .open-basket {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--accent);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.85rem;
    cursor: pointer;
}
.quantity-field.with-open-basket { display: flex; }

/* ==========================================================================
   MODAL (package details / gifting)
   ========================================================================== */

.vt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55000;
    background: rgba(5, 3, 9, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1.5rem;
    overflow-y: auto;
}
.vt-modal.active { display: flex; align-items: center; justify-content: center; }

.vt-modal-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 520px;
    max-width: 100%;
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7), 0 0 60px rgba(197, 133, 255, 0.08);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.vt-modal-title { font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: -0.01em; }
.vt-modal-title i { color: var(--accent); margin-right: 0.4rem; }

.vt-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: 0.2s;
}
.vt-modal-close:hover { color: #fff; }

.vt-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
}

.vt-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.vt-modal-price { font-size: 1.15rem; font-weight: 800; color: var(--accent); }

/* ==========================================================================
   LOGIN OVERLAY
   ========================================================================== */

.login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60000;
    background: rgba(5, 3, 9, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1.5rem;
}
.login-overlay.active { display: flex; align-items: center; justify-content: center; }

.login-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 480px;
    max-width: 100%;
    max-height: calc(100vh - 3rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7), 0 0 60px rgba(197, 133, 255, 0.08);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.login-panel-title { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.login-panel-title i { color: var(--accent); margin-right: 0.4rem; }

.login-panel-body { padding: 2rem 1.5rem; }

.login-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

#avatar-wrapper { position: relative; flex-shrink: 0; }
#avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 0.3rem;
    image-rendering: pixelated;
    border: 1px solid var(--border);
}
#avatar-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 16, 0.7);
    border-radius: 0.3rem;
    color: var(--accent);
}
#avatar-wrapper.loading #avatar-loader { display: flex; }

.login-input-group { flex: 1; min-width: 0; }
.login-input-group input,
.vt-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input-group input:focus,
.vt-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.login-input-group input::placeholder,
.vt-input::placeholder { color: var(--text-dim); }

.login-error { font-size: 0.78rem; color: var(--danger); display: none; margin-bottom: 0.75rem; }
.login-error.visible { display: block; }

.login-submit {
    width: auto;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.55rem 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.03em;
    font-family: inherit;
}
.login-submit:hover {
    background: var(--accent-soft);
    border-color: var(--accent-bright);
    color: var(--accent-bright);
}
.login-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Standalone /login page */
.login-page { max-width: 480px; margin: 0 auto; }
.login-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.login-page-header { padding: 1.5rem 1.5rem 0; text-align: center; }
.login-title { font-size: 1.35rem; font-weight: 800; color: #fff; }
.login-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }
.login-page-body { padding: 1.5rem; }

/* ==========================================================================
   OPTIONS PAGE (server choice / variables / pay-what-you-want)
   ========================================================================== */

.options-page { max-width: 560px; margin: 0 auto; }

.options-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.options-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.options-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.options-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.options-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.options-title { font-size: 1.15rem; font-weight: 800; color: #fff; margin-top: 0.15rem; }

.options-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.15rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); line-height: 1.5; }
.field label strong { color: var(--accent); }

.field-inline { display: flex; align-items: center; gap: 0.6rem; }
.field-suffix { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }

select.vt-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.4) 50%),
                      linear-gradient(135deg, rgba(255,255,255,0.4) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
    cursor: pointer;
}
select.vt-input option { background: var(--bg-card); color: var(--text-primary); }

.options-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.25rem; }
.options-link { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.options-link:hover { color: var(--accent); }

/* ==========================================================================
   BASKET
   ========================================================================== */

.basket-title-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.basket-title-row .basket-icon { color: var(--accent); font-size: 1.05rem; }
.basket-text { font-size: 1.15rem; font-weight: 700; color: #fff; }

.basket-items { display: flex; flex-direction: column; gap: 0.85rem; }

.basket-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    transition: border-color 0.2s;
}
.basket-item:hover { border-color: var(--accent-line); }

.basket-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.basket-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }

.basket-item-body { flex: 1; min-width: 0; }
.basket-package-name { font-weight: 700; font-size: 0.95rem; color: #fff; }
.basket-package-name:hover { color: var(--accent); }
.basket-package-price { font-weight: 800; font-size: 0.95rem; color: var(--accent); }

.basket-item-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.package-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: 0.2s;
}
.package-del:hover { color: var(--danger); border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); }

.option-line { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.option-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.12rem 0.6rem;
}
.option-tag-expire { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.basket-summary {
    margin-top: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.basket-summary-left { display: flex; align-items: center; gap: 0.85rem; }
.basket-avatar { width: 44px; height: 44px; border-radius: 0.3rem; image-rendering: pixelated; }
.basket-name-text { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.basket-name { font-weight: 700; font-size: 0.95rem; color: #fff; }
.basket-total-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.basket-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

.tebex-desc {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.5;
}
.tebex-desc img { height: 16px; opacity: 0.6; }

.basket-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.basket-empty i { font-size: 2.5rem; display: block; margin-bottom: 0.9rem; color: var(--accent-line); }

/* Cart flyout */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50000;
    background: rgba(5, 3, 9, 0.72);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
}
.cart-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding-top: 5rem; }

.cart-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 480px;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.cart-panel-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.cart-panel-title { font-weight: 700; font-size: 1.1rem; flex: 1; }
.cart-panel-title i { color: var(--accent); margin-right: 0.4rem; }
.cart-panel-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: 0.2s;
}
.cart-panel-close:hover { color: #fff; }
.cart-panel-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 2rem 0; font-size: 0.9rem; }
.cart-empty i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; color: var(--accent-line); }
.cart-panel-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 1rem; }
.cart-total-price { font-size: 1.2rem; color: var(--accent); }

/* ==========================================================================
   INFO CARDS
   ========================================================================== */

.info-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.info-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    min-width: 0;
}
.info-card-wide { grid-column: 1 / -1; }
.info-card:hover {
    border-color: var(--accent-line);
    box-shadow: 0 0 18px rgba(197, 133, 255, 0.05);
}
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-primary); }
.info-card h3 i { color: var(--accent); margin-right: 0.5rem; }
.info-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.info-card p + p { margin-top: 0.75rem; }
.info-card strong { color: var(--text-primary); }
.info-card a { color: var(--accent); font-weight: 600; }
.info-card a:hover { color: var(--accent-bright); }

/* ==========================================================================
   ERROR / EMPTY BLOCK
   ========================================================================== */

.error-block {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.error-block-icon { color: var(--accent); font-size: 1.05rem; flex-shrink: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.footer-logo span { color: var(--accent); }
.footer-ip { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 1.25rem; }

.footer-social { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--bg-card2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.2s;
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 18px rgba(197, 133, 255, 0.18);
    transform: translateY(-2px);
}

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* ==========================================================================
   TOAST
   ========================================================================== */

.vt-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 70000;
    background: var(--bg-card);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius);
    padding: 0.85rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 32px rgba(197, 133, 255, 0.14);
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    max-width: calc(100vw - 2rem);
}
.vt-toast.visible { transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   SCROLL FADE-IN
   ========================================================================== */

.vt-fadein {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.vt-fadein.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .vt-fadein { opacity: 1; transform: none; transition: none; }
    .online-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .package-view { grid-template-columns: 1fr; }
    .package-view-img { max-width: 240px; }
}

@media (max-width: 767px) {
    html, body { overflow-x: hidden !important; max-width: 100% !important; }

    .topbar-nav { display: none; }
    .topbar { height: auto; min-height: 66px; }
    .topbar-inner { padding: 0.85rem 1rem; gap: 0.75rem; flex-wrap: wrap; }
    .topbar-logo { font-size: 1rem; }
    .topbar-actions { width: 100%; justify-content: space-between; }
    .topbar-actions .stat-item { display: none !important; }
    .user-chip { max-width: 150px; padding: 0.3rem 0.6rem 0.3rem 0.3rem; font-size: 0.78rem; }
    .options-body { padding: 1.15rem; }
    .options-header { padding: 1.1rem 1.15rem; }

    .hero { min-height: 520px; }
    .hero-bg-image { object-position: center 14%; }
    .hero-content { padding: 6.25rem 1rem 2.25rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-copy { max-width: none; }
    .hero-skin-wrap { justify-content: center; }
    .hero-skin-card { width: min(100%, 275px); }

    .stats-bar { padding: 0.8rem 0; }
    .stats-bar-inner { gap: 0.9rem 1.1rem; padding: 0 1rem; justify-content: center; }
    .stat-item { font-size: 0.78rem; }

    .main-wrapper { padding: 1.25rem 1rem 2.4rem; gap: 1rem; }
    .sidebar { gap: 0.85rem; }
    .user-box { padding: 0.95rem 1rem; }
    .sidebar-nav a { padding: 0.72rem 1rem; font-size: 0.84rem; }

    .section-heading { gap: 0.6rem; margin-bottom: 1rem; }
    .section-heading h2 { font-size: 1rem; }

    .category-tabs { gap: 0.45rem; margin-bottom: 1rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.2rem; }
    .category-tab { flex: 0 0 auto; font-size: 0.76rem; padding: 0.48rem 0.85rem; }

    .package-grid { grid-template-columns: 1fr !important; gap: 0.9rem; }
    .info-grid, .info-grid-home { grid-template-columns: 1fr !important; gap: 0.9rem; }
    .info-card-wide { grid-column: auto !important; }
    .info-card { padding: 1.1rem; }

    /* package rows stack */
    .pkg-row { flex-wrap: wrap; padding: 0.95rem 1rem; gap: 0.85rem; }
    .pkg-row-img { width: 56px; height: 56px; }
    .pkg-row-body { flex: 1 1 calc(100% - 9rem); }
    .pkg-row-name { font-size: 0.95rem; }
    .pkg-row-actions { width: 100%; }
    .pkg-row-actions .btn-accent,
    .pkg-row-actions .button-primary { width: 100%; }

    .package-view { padding: 1.15rem; gap: 1.15rem; }
    .package-view-img { max-width: none; }
    .package-view-name { font-size: 1.25rem; }

    .vt-modal, .login-overlay, .cart-overlay { padding: 0.75rem; }
    .cart-overlay.active { padding-top: 3.5rem; }
    .vt-modal-body { padding: 1.15rem; }
    .vt-modal-header, .vt-modal-footer { padding: 1rem 1.15rem; }
    .vt-modal-footer { flex-direction: column; align-items: stretch; gap: 0.8rem; }
    .vt-modal-footer > * { width: 100%; text-align: center; justify-content: center; }

    .basket-item { flex-wrap: wrap; padding: 0.9rem 1rem; }
    .basket-item-body { flex: 1 1 calc(100% - 4rem); }
    .basket-item-actions { width: 100%; justify-content: space-between; }
    .basket-item-actions .quantity-field { flex: 1; }
    .basket-item-actions .quantity { flex: 1; width: auto; }
    .basket-summary { flex-direction: column; align-items: stretch; text-align: left; }
    .basket-summary .button-success { width: 100%; }

    .login-row { flex-wrap: wrap; }
    .login-panel-body { padding: 1.35rem 1.15rem; }

    .footer { padding: 2rem 1rem 1.25rem; }
    .footer-links { gap: 0.35rem 1rem; margin-bottom: 1rem; }
    .footer-copy { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .hero { min-height: 480px; }
    .hero-content { padding: 6rem 0.9rem 1.8rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-logo-avatar { width: 120px; height: 120px; }
    .hero-skin-card { width: min(100%, 244px); min-height: 376px; }
    .hero-skin-canvas, .hero-skin-fallback { height: 325px; }

    .topbar-inner { padding: 0.75rem 0.85rem; }
    .main-wrapper { padding: 1rem 0.85rem 2rem; }

    .pkg-row-body { flex: 1 1 100%; }
    .basket-item-actions { flex-direction: column; align-items: stretch; }
    .basket-item-actions .package-del { width: 100%; height: 40px; }
    .pkg-row-actions { flex-direction: column; align-items: stretch; }
}
