/* ============================================================
   Binat Hosting Panel — Design System v3.0
   Powered by Byflash
   Dark theme matching landing page
   Font: Outfit + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #070B14;
    --bg-2: #0D1220;
    --bg-3: #111827;
    --bg-4: #161D2E;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(0, 255, 178, 0.25);
    --accent: #00FFB2;
    --accent-dim: rgba(0, 255, 178, 0.10);
    --accent-glow: rgba(0, 255, 178, 0.35);
    --accent-hover: #00e8a2;
    --text: #F0F6FF;
    --text-muted: #8895A7;
    --text-dim: #3D4A5C;
    --green: #00FFB2;
    --red: #FF4757;
    --orange: #FFB347;
    --blue: #4FC3F7;
    --purple: #A78BFA;
    --font: 'Outfit', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --r: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --sidebar-w: 240px;
    --topbar-h: 60px;
    --transition: all 0.18s ease;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 14px;
}

.bg-pattern {
    display: none;
}

.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

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

.panel-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    margin-bottom: 8px;
}

.sidebar-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070B14;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-logo.small {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.sidebar-nav {
    flex: 1;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
    font-family: var(--font);
}

.nav-item i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.nav-item span {
    flex: 1;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.nav-item.active {
    background: rgba(0, 255, 178, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 178, 0.12);
}

.nav-item.active i {
    color: var(--accent);
}

.nav-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
    font-family: var(--mono);
}

.nav-badge.red {
    background: rgba(255, 71, 87, 0.15);
    color: #FF6B7A;
}

.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.sidebar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #070B14;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.sidebar-logout:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
    border-color: rgba(255, 71, 87, 0.2);
}

/* MAIN */
.panel-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.panel-topbar {
    height: var(--topbar-h);
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.topbar-new-btn {
    width: auto;
}

.panel-content {
    flex: 1;
    padding: 24px;
}

/* ============================================================
   OVERVIEW
   ============================================================ */

.overview-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(0, 255, 178, 0.08) 0%, rgba(79, 195, 247, 0.05) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-xl);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(0, 255, 178, 0.06);
}

.welcome-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.welcome-text h2 span {
    color: var(--accent);
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.welcome-illustration {
    font-size: 3.5rem;
    color: rgba(0, 255, 178, 0.15);
}

.wave-icon {
    display: inline-block;
    animation: wave 1.5s ease-in-out;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(20deg)
    }

    75% {
        transform: rotate(-10deg)
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-tile {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-tile:hover {
    border-color: var(--border-hover);
    background: var(--bg-3);
}

.stat-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: var(--transition);
}

.stat-tile:hover::after {
    opacity: 1;
}

.stat-tile[data-page="web"]::after {
    background: var(--blue);
}

.stat-tile[data-page="vps"]::after {
    background: var(--accent);
}

.stat-tile[data-page="billing"]::after {
    background: var(--purple);
}

.stat-tile[data-page="support"]::after {
    background: var(--orange);
}

.stat-tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.stat-tile-icon.web {
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
}

.stat-tile-icon.vps {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.stat-tile-icon.billing {
    background: rgba(167, 139, 250, 0.1);
    color: var(--purple);
}

.stat-tile-icon.support {
    background: rgba(255, 179, 71, 0.1);
    color: var(--orange);
}

.stat-tile-value {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    font-family: var(--mono);
}

.stat-tile-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.stat-tile-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.overview-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.section-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-card-header h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 600;
}

.section-card-header h3 i {
    color: var(--accent);
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font);
    padding: 0;
    font-weight: 500;
}

.link-btn:hover {
    text-decoration: underline;
}

.link-btn-sm {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.mini-item:last-child {
    border-bottom: none;
}

.mini-item:hover {
    opacity: 0.7;
}

.mini-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.mini-item-icon.web {
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
}

.mini-item-icon.vps {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.mini-item-info {
    flex: 1;
    min-width: 0;
}

.mini-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-item-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.active {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

.status-dot.suspended {
    background: var(--orange);
}

.status-dot.installing {
    background: var(--blue);
    animation: pulse-ins 1s infinite;
}

@keyframes pulse-ins {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.empty-mini {
    color: var(--text-dim);
    font-size: 0.82rem;
    padding: 12px 0;
    text-align: center;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */

.page-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.section-toolbar h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-sub {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.service-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: var(--transition);
    background: linear-gradient(90deg, var(--accent), var(--blue));
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.service-card-icon.web {
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
}

.service-card-icon.vps {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.service-card-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.service-card-url {
    font-size: 0.72rem;
    color: var(--accent);
    font-family: var(--mono);
    word-break: break-all;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.card-date {
    font-size: 0.68rem;
    color: var(--text-dim);
}

/* Status badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--mono);
}

.status-badge.active {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.status-badge.suspended {
    background: rgba(255, 179, 71, 0.1);
    color: var(--orange);
}

.status-badge.installing {
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
}

.status-badge.deleted {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
}

/* SSL chip */
.ssl-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.63rem;
    font-weight: 600;
    font-family: var(--mono);
}

.ssl-chip.active {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.ssl-chip.inactive {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
}

/* Add card */
.add-card {
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    align-items: center;
    justify-content: center;
    gap: 6px !important;
    padding: 36px 18px !important;
}

.add-card:hover {
    border-color: rgba(0, 255, 178, 0.25) !important;
    background: rgba(0, 255, 178, 0.04) !important;
}

.add-card::before {
    display: none;
}

.add-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.add-card-icon.vps {
    color: var(--accent);
}

.add-card:hover .add-card-icon {
    color: var(--accent);
    background: rgba(0, 255, 178, 0.08);
    transform: scale(1.1);
}

.add-card-text {
    font-weight: 600;
    font-size: 0.85rem;
}

.add-card-sub {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* VPS card */
.vps-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 0.67rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.vps-quick-actions {
    display: flex;
    gap: 4px;
}

.vps-qa-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.vps-qa-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.vps-qa-btn.stop:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
    border-color: rgba(255, 71, 87, 0.2);
}

.vps-qa-btn.start:hover {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
    border-color: var(--border-accent);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state-hero {
    text-align: center;
    padding: 60px 20px;
}

.empty-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 255, 178, 0.08);
    color: var(--accent);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 1px solid var(--border-accent);
}

.empty-hero-icon.support {
    background: rgba(255, 179, 71, 0.08);
    color: var(--orange);
    border-color: rgba(255, 179, 71, 0.2);
}

.empty-state-hero h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.empty-state-hero p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 22px;
}

/* ============================================================
   BILLING PAGE
   ============================================================ */

.billing-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.billing-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.billing-stat {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 22px;
}

.billing-stat.warning .billing-stat-value {
    color: var(--orange);
}

.billing-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--mono);
}

.billing-stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-family: var(--mono);
}

.invoices-list {
    display: flex;
    flex-direction: column;
}

.invoice-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.invoice-row:last-child {
    border-bottom: none;
}

.invoice-id {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    min-width: 80px;
}

.invoice-desc {
    flex: 1;
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-date {
    min-width: 85px;
    color: var(--text-dim);
    font-size: 0.72rem;
}

.invoice-amount {
    min-width: 65px;
    font-weight: 700;
    font-family: var(--mono);
    text-align: right;
}

.invoice-status {
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--mono);
}

.invoice-status.paid {
    background: rgba(0, 255, 178, 0.08);
    color: var(--accent);
}

.invoice-status.unpaid {
    background: rgba(255, 71, 87, 0.08);
    color: var(--red);
}

.invoice-status.refunded {
    background: rgba(79, 195, 247, 0.08);
    color: var(--blue);
}

.payment-methods-card {
    margin-top: 4px;
}

.payment-methods-placeholder {
    text-align: center;
    padding: 36px 20px;
}

.pm-icon {
    font-size: 2.5rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.payment-methods-placeholder p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.payment-methods-placeholder small {
    color: var(--text-dim);
    font-size: 0.75rem;
}

/* Stripe payment form */
#stripe-card-element {
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    padding: 13px 14px;
    transition: var(--transition);
    color: var(--text);
}

#stripe-card-element.StripeElement--focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.08);
}

#stripe-card-element.StripeElement--invalid {
    border-color: var(--red);
}

.stripe-notice {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 10px 12px;
    background: rgba(0, 255, 178, 0.04);
    border: 1px solid rgba(0, 255, 178, 0.1);
    border-radius: var(--r);
}

.stripe-notice i {
    color: var(--accent);
    flex-shrink: 0;
}

.stripe-error {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 8px;
    display: none;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.support-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tickets-list {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ticket-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-priority-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ticket-priority-dot.low {
    background: var(--accent);
}

.ticket-priority-dot.normal {
    background: var(--blue);
}

.ticket-priority-dot.high {
    background: var(--orange);
}

.ticket-priority-dot.urgent {
    background: var(--red);
    animation: pulse-ins 1s infinite;
}

.ticket-subject {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.ticket-meta {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.ticket-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-status {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--mono);
}

.ticket-status.open {
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
}

.ticket-status.closed {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
}

.ticket-status.pending {
    background: rgba(255, 179, 71, 0.1);
    color: var(--orange);
}

.ticket-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    max-height: 240px;
    overflow-y: auto;
}

.ticket-message-bubble {
    padding: 12px 14px;
    border-radius: var(--r-md);
}

.ticket-message-bubble.user {
    background: rgba(0, 255, 178, 0.06);
    border: 1px solid rgba(0, 255, 178, 0.1);
    margin-right: 30px;
}

.ticket-message-bubble.support {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    margin-left: 30px;
}

.msg-author {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: var(--mono);
}

.msg-content {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.ticket-waiting {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.78rem;
    padding: 10px;
}

.ticket-reply-form {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

/* ============================================================
   VPS WIZARD
   ============================================================ */

.vps-wizard-modal {
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
}

.wizard-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.wizard-step.active {
    color: var(--accent);
    font-weight: 600;
}

.wizard-step.done {
    color: var(--accent);
}

.ws-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: var(--mono);
}

.wizard-step.active .ws-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #070B14;
}

.wizard-step.done .ws-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #070B14;
}

.wizard-step-arrow {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.vps-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vps-step.hidden {
    display: none;
}

.config-section {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.config-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* OS grid */
.os-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 11px 7px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-muted);
}

.os-card i {
    font-size: 1.3rem;
}

.os-card:hover {
    border-color: rgba(0, 255, 178, 0.2);
    color: var(--text);
}

.os-card.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* Custom slider */
.slider-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-dim);
}

.slider-current {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    font-family: var(--mono);
}

.custom-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1.5px var(--accent), 0 0 8px var(--accent-glow);
    cursor: grab;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    color: var(--text-dim);
    padding: 0 1px;
    font-family: var(--mono);
}

/* Price preview */
.price-preview {
    background: rgba(0, 255, 178, 0.06);
    border: 1px solid rgba(0, 255, 178, 0.15);
    border-radius: var(--r-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-preview-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-preview-val {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--accent);
    font-family: var(--mono);
}

.price-preview-val span {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 3px;
}

/* Config summary */
.config-summary {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px;
}

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

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.summary-item i {
    font-size: 1rem;
    color: var(--accent);
}

.summary-item span {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.summary-item strong {
    font-size: 0.82rem;
    font-family: var(--mono);
}

/* Checkout */
.checkout-box {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    align-items: center;
}

.checkout-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    align-items: center;
}

.checkout-total-val {
    font-size: 1.5rem;
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 900;
}

.promo-row {
    display: flex;
    gap: 7px;
    align-items: center;
}

.promo-row .form-input {
    flex: 1;
}

/* Payment methods toggle */
.payment-methods-toggle {
    display: flex;
    gap: 7px;
}

.pm-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-muted);
}

.pm-option input {
    display: none;
}

.pm-option:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.pm-option.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.card-payment-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Wizard controls */
.wizard-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    align-items: center;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 178, 0.06), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.5s ease-out;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent);
    color: #070B14;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.auth-logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-tabs {
    display: flex;
    gap: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 4px;
    margin-bottom: 22px;
}

.auth-tab {
    flex: 1;
    padding: 9px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: var(--font);
}

.auth-tab.active {
    background: var(--accent);
    color: #070B14;
    font-weight: 700;
}

.auth-tab:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.verify-hint {
    background: rgba(0, 255, 178, 0.06);
    border: 1px solid rgba(0, 255, 178, 0.15);
    border-radius: var(--r);
    padding: 11px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 18px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 10px 13px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.88rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.07);
    background: var(--bg-4);
}

.form-input::placeholder {
    color: var(--text-dim);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    cursor: pointer;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: var(--r);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: #070B14;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.btn-danger {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 71, 87, 0.15);
}

.btn-google {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1.5px solid var(--border);
    margin-top: 10px;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 0.75rem;
}

.btn-xs {
    padding: 5px 9px;
    font-size: 0.7rem;
}

.btn-logout {
    padding: 7px 12px;
    background: rgba(255, 71, 87, 0.08);
    color: var(--red);
    border: 1px solid rgba(255, 71, 87, 0.15);
    border-radius: var(--r);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 71, 87, 0.14);
}

.vps-power-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--r);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text-muted);
    transition: var(--transition);
}

.vps-power-btn.restart:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.25);
    color: var(--blue);
}

.vps-power-btn.stop:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.2);
    color: var(--red);
}

.vps-power-btn.start:hover {
    background: rgba(0, 255, 178, 0.1);
    border-color: var(--border-accent);
    color: var(--accent);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}

.modal {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 500px;
    padding: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
}

/* Service choice modal */
.service-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--transition);
}

.service-option:hover {
    border-color: var(--border-accent);
    background: rgba(0, 255, 178, 0.03);
}

.service-option i.ph-caret-right {
    margin-left: auto;
    color: var(--text-dim);
}

.service-option-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-option-icon.web {
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
}

.service-option-icon.vps {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.service-option h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.service-option p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.service-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 4px;
    font-family: var(--mono);
}

.service-badge.free {
    background: rgba(0, 255, 178, 0.08);
    color: var(--accent);
}

.service-badge.paid {
    background: rgba(79, 195, 247, 0.08);
    color: var(--blue);
}

.subdomain-preview {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 13px;
    text-align: center;
    margin: 12px 0;
    font-family: var(--mono);
    color: var(--accent);
    font-size: 0.85rem;
    line-height: 1.6;
}

.subdomain-preview small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font);
}

.hosting-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.feat-item i {
    color: var(--accent);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Code inputs */
.code-inputs {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin: 22px 0;
}

.code-inputs input {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    outline: none;
    transition: var(--transition);
    font-family: var(--mono);
}

.code-inputs input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.08);
}

/* ============================================================
   SITE DETAIL
   ============================================================ */

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 18px;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #070B14;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-email {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 18px;
    transition: var(--transition);
    font-family: var(--font);
}

.back-btn:hover {
    border-color: var(--border-accent);
    color: var(--accent);
}

.site-header {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vps-icon {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.site-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-header .url {
    color: var(--accent);
    font-size: 0.75rem;
    text-decoration: none;
    font-family: var(--mono);
}

.site-header .url:hover {
    text-decoration: underline;
}

.site-header-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.info-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 13px;
}

.info-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 5px;
    font-family: var(--mono);
}

.info-card-value {
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-all;
}

.info-card-value.copyable {
    cursor: pointer;
    transition: var(--transition);
}

.info-card-value.copyable:hover {
    color: var(--accent);
}

.domain-box {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 14px;
}

.domain-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.domain-box h4 i {
    color: var(--accent);
}

.domain-box p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.domain-box code {
    background: var(--bg-3);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: var(--mono);
    color: var(--accent);
}

.ip-input-group {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.ip-input-group input {
    flex: 1;
    padding: 9px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.ip-input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.07);
}

/* File Explorer */
.file-explorer {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.file-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
    flex-wrap: wrap;
    gap: 7px;
}

.file-toolbar-right {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--mono);
    font-size: 0.78rem;
}

.breadcrumb-item {
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
    cursor: default;
}

.breadcrumb-item:not(.active):hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--text-dim);
    padding: 0 1px;
}

.file-list {
    min-height: 100px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.file-item[onclick] {
    cursor: pointer;
}

.file-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.file-icon.folder {
    background: rgba(79, 195, 247, 0.08);
}

.file-icon.image {
    background: rgba(167, 139, 250, 0.08);
}

.file-icon.code {
    background: rgba(0, 255, 178, 0.06);
}

.file-icon.file {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    gap: 10px;
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-top: 1px;
    font-family: var(--mono);
}

.file-actions {
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: var(--transition);
}

.file-item:hover .file-actions {
    opacity: 1;
}

.file-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: var(--transition);
}

.file-action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.file-action-btn.delete:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
    border-color: rgba(255, 71, 87, 0.2);
}

.upload-zone {
    padding: 28px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-3);
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone.dragover {
    background: rgba(0, 255, 178, 0.04);
    border-color: var(--border-accent);
}

.upload-zone p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 7px;
}

.upload-zone small {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state p {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 9px;
}

/* ============================================================
   VPS DETAIL
   ============================================================ */

.vps-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.vps-detail-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.vdc-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.vdc-header i {
    color: var(--accent);
}

.vdc-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conn-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.conn-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    min-width: 75px;
    font-family: var(--mono);
}

.conn-value {
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: right;
    font-family: var(--mono);
}

.conn-value.copyable {
    cursor: pointer;
    transition: var(--transition);
}

.conn-value.copyable:hover {
    color: var(--accent);
}

.conn-value.copyable i {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.pass-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 2px;
    transition: var(--transition);
}

.pass-toggle:hover {
    color: var(--accent);
}

.pass-hidden,
.pass-shown {
    font-family: var(--mono);
    letter-spacing: 2px;
}

.ssh-cmd {
    background: #0a0f1c;
    border-radius: var(--r);
    padding: 9px 12px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 178, 0.1);
}

.ssh-cmd:hover {
    background: rgba(0, 255, 178, 0.04);
}

.ssh-cmd i {
    color: var(--text-dim);
}

.status-dot-text.active {
    color: var(--accent);
}

.status-dot-text.suspended {
    color: var(--orange);
}

.status-dot-text.installing {
    color: var(--blue);
}

.vps-resources-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 14px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-right: 1px solid var(--border);
}

.resource-item:last-child {
    border-right: none;
}

.resource-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(0, 255, 178, 0.08);
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    font-family: var(--mono);
    font-weight: 600;
}

.resource-val {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

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

.toast-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: var(--r-md);
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.25s ease;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 320px;
    border: 1px solid var(--border);
}

.toast.success {
    background: rgba(0, 255, 178, 0.08);
    border-color: rgba(0, 255, 178, 0.2);
    color: var(--accent);
}

.toast.error {
    background: rgba(255, 71, 87, 0.08);
    border-color: rgba(255, 71, 87, 0.2);
    color: var(--red);
}

.toast.info {
    background: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.2);
    color: var(--blue);
}

.toast.warning {
    background: rgba(255, 179, 71, 0.08);
    border-color: rgba(255, 179, 71, 0.2);
    color: var(--orange);
}

.toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-msg {
    flex: 1;
    color: var(--text);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   LOADERS
   ============================================================ */

.page-loader-full {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 255, 178, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
}

.loading-spinner.big {
    width: 34px;
    height: 34px;
    border-width: 3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   PAYMENT MODAL - STRIPE
   ============================================================ */

.payment-modal {
    max-width: 440px;
}

.card-input-wrap {
    position: relative;
}

.card-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.card-num-input {
    padding-left: 36px;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-cols {
        grid-template-columns: 1fr;
    }

    .vps-detail-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .resource-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar {
        display: none;
    }

    .panel-main {
        margin-left: 0;
    }

    .panel-content {
        padding: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .billing-stats {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .os-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ============================================================
   LAYOUT FIXES: topbar-left, section-header-row, ftb-icon
   ============================================================ */

.panel-topbar {
    height: var(--topbar-h);
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-new-btn {
    width: auto !important;
}

.section-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-header-row h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.section-header-row .section-sub {
    margin-top: 2px;
}

/* File toolbar compact icon buttons */
.file-toolbar {
    flex-wrap: nowrap !important;
    align-items: center;
}

.file-toolbar-right {
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 4px !important;
}

.ftb-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.ftb-icon:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border-color: var(--border-hover);
}

.breadcrumb {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* ============================================================
   FULLSCREEN PAGES — 100vw x 100vh
   ============================================================ */

#fullscreen-overlay {
    animation: fsIn 0.2s ease both;
}

@keyframes fsIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fsOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

.fs-page {
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

/* Fullscreen nav bar */
.fs-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.fs-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--r);
    transition: var(--transition);
    width: 80px;
}

.fs-back:hover {
    color: var(--accent);
    background: rgba(0, 255, 178, 0.05);
}

.fs-nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fs-price-badge {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.fs-price-badge #fs-price-live {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent);
}

.fs-price-mo {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Fullscreen body layout */
.fs-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.fs-hero {
    text-align: center;
    margin-bottom: 36px;
}

.fs-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.fs-hero-icon.web {
    background: rgba(79, 195, 247, 0.1);
    color: var(--blue);
}

.fs-hero-icon.vps {
    background: rgba(0, 255, 178, 0.1);
    color: var(--accent);
}

.fs-hero-icon.billing {
    background: rgba(167, 139, 250, 0.1);
    color: var(--purple);
}

.fs-hero-icon.support {
    background: rgba(255, 179, 71, 0.1);
    color: var(--orange);
}

.fs-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.fs-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.fs-form-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    width: 100%;
}

.fs-input {
    font-size: 1rem !important;
    padding: 13px 16px !important;
}

.fs-preview-url {
    background: var(--bg-3);
    border: 1px solid var(--border-accent);
    border-radius: var(--r);
    padding: 14px 16px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.fs-preview-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fs-preview-domain {
    font-family: var(--mono);
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 700;
}

.fs-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
}

.fs-feat {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.fs-feat i {
    color: var(--accent);
}

.fs-submit-btn {
    margin-top: 6px;
    font-size: 1rem;
    padding: 14px 24px;
}

/* VPS fullscreen layout */
.fs-vps-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 32px 24px;
}

.fs-vps-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.fs-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
}

.fs-step.active {
    color: var(--accent);
    font-weight: 700;
}

.fs-step.done {
    color: var(--accent);
}

.fs-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
}

.fs-step.active .fs-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #070B14;
}

.fs-step.done .fs-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #070B14;
}

.fs-vps-step-content {
    flex: 1;
}

.fs-vps-step-content.hidden {
    display: none;
}

.fs-vps-config-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.fs-config-panel {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fs-config-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fs-config-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fs-config-val {
    color: var(--accent);
    font-family: var(--mono);
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.85rem;
    font-weight: 800;
}

.fs-os-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fs-os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.72rem;
    text-align: center;
    color: var(--text-muted);
}

.fs-os-card i {
    font-size: 1.4rem;
}

.fs-os-card:hover {
    border-color: rgba(0, 255, 178, 0.2);
    color: var(--text);
}

.fs-os-card.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.fs-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.fs-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2.5px solid var(--bg);
    box-shadow: 0 0 0 1.5px var(--accent), 0 0 10px var(--accent-glow);
    cursor: grab;
}

.fs-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    color: var(--text-dim);
    padding: 0 1px;
    font-family: var(--mono);
    margin-top: 4px;
}

.fs-summary-panel {
    background: var(--bg-2);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 80px;
}

.fs-summary-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-family: var(--mono);
}

.fs-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.fs-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.fs-sum-row span {
    color: var(--text-muted);
}

.fs-sum-row strong {
    font-family: var(--mono);
    color: var(--text);
}

.fs-sum-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.fs-sum-price {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--accent);
    font-family: var(--mono);
    line-height: 1;
    margin-bottom: 4px;
}

.fs-sum-price em {
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
    font-weight: 400;
}

/* Centered form for step 2 + 3 */
.fs-centered-form {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fs-centered-form .fs-form-card {
    width: 100%;
}

.fs-config-recap {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px;
}

.fs-recap-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fs-recap-chips span {
    background: rgba(0, 255, 178, 0.08);
    border: 1px solid rgba(0, 255, 178, 0.15);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-family: var(--mono);
    font-weight: 600;
}

.fs-checkout-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.fs-co-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.fs-co-row span {
    color: var(--text-muted);
}

.fs-co-row strong {
    font-weight: 600;
}

.fs-co-row.total strong {
    font-size: 1.3rem;
    font-family: var(--mono);
}

.fs-promo-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.fs-promo-row .form-input {
    flex: 1;
}

.fs-payment-methods {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}

.fs-pm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.fs-pm:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.fs-pm.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ============================================================
   FULLSCREEN TICKET CHAT
   ============================================================ */

.fs-chat {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.fs-chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    height: 64px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fs-chat-title {
    flex: 1;
    min-width: 0;
}

.fs-chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fs-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.chat-bubble {
    max-width: 72%;
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.55;
    animation: fadeUp 0.2s ease;
}

.chat-bubble.user {
    background: rgba(0, 255, 178, 0.07);
    border: 1px solid rgba(0, 255, 178, 0.12);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.support {
    background: var(--bg-3);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: var(--mono);
}

.chat-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: pre-wrap;
}

.chat-waiting {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fs-chat-input-area {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    background: var(--bg-2);
    flex-shrink: 0;
}

.fs-chat-input-box {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.fs-chat-textarea {
    flex: 1;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 12px 16px;
    outline: none;
    resize: none;
    line-height: 1.5;
    min-height: 44px;
    max-height: 120px;
    transition: var(--transition);
}

.fs-chat-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.06);
}

.fs-chat-textarea::placeholder {
    color: var(--text-dim);
}

.fs-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: #070B14;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.fs-chat-send:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.fs-chat-closed {
    text-align: center;
    padding: 16px;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}


/* ============================================================
   SPREAD HEADERS — title left, button right, full width
   ============================================================ */

.section-spread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}

.section-spread-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-spread-header .section-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.section-spread-header .btn {
    width: auto;
    flex-shrink: 0;
}

/* Topbar spread — title left, button right */
.topbar-spread {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topbar-spread .topbar-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.topbar-spread .topbar-new-btn {
    width: auto;
    flex-shrink: 0;
}