/* public/css/app.css — VEXHOST Design System */

/* ═══════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════ */
:root {
  --purple:   #8B2FC9;
  --pink:     #C0266A;
  --red:      #E8163A;
  --grad:     linear-gradient(135deg, #8B2FC9 0%, #C0266A 55%, #E8163A 100%);
  --grad-90:  linear-gradient(90deg, #8B2FC9, #C0266A, #E8163A);

  --bg:       #0A0810;
  --bg2:      #0F0C18;
  --bg3:      #131020;
  --surface:  #160F2A;
  --surface2: #1C1530;
  --surface3: #221840;

  --border:   rgba(139,47,201,0.15);
  --border2:  rgba(139,47,201,0.30);
  --border3:  rgba(139,47,201,0.50);

  --text:     #F0EBF8;
  --text2:    #C4B5D4;
  --muted:    #8A7FA0;
  --muted2:   #6B5F7A;

  --success:  #22c55e;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --info:     #a855f7;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-purple: 0 8px 32px rgba(139,47,201,0.25);

  --nav-height: 64px;
  --sidebar-w:  240px;

  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.grad-text {
  background: var(--grad-90);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
.text-muted   { color: var(--muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-purple  { color: var(--info); }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.text-lg  { font-size: 18px; }
.text-xl  { font-size: 22px; }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.font-mono   { font-family: var(--font-mono); }
.text-center { text-align: center; }
.uppercase   { text-transform: uppercase; letter-spacing: .7px; }

/* ═══════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════ */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm  { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.container-xs  { max-width: 480px;  margin: 0 auto; padding: 0 24px; }
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-col      { display: flex; flex-direction: column; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.auto-grid-sm  { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.auto-grid-md  { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.auto-grid-lg  { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 20px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-0   { padding: 0 !important; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════
   COMPONENTS — CARD
═══════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border2); }
.card-sm  { padding: 16px; border-radius: var(--radius); }
.card-lg  { padding: 32px; border-radius: var(--radius-xl); }

/* ═══════════════════════════════════════
   COMPONENTS — BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: all .18s;
  text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-sm  { padding: 7px 14px; font-size: 13px; border-radius: 7px; }
.btn-lg  { padding: 13px 30px; font-size: 15px; border-radius: 10px; }
.btn-xl  { padding: 16px 40px; font-size: 16px; border-radius: 12px; }
.btn-full{ width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139,47,201,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(139,47,201,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--purple); color: #fff; background: rgba(139,47,201,0.1); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.btn-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-success { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.btn-success:hover { background: rgba(34,197,94,0.25); }

.btn-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.btn-warning:hover { background: rgba(245,158,11,0.25); }

/* ═══════════════════════════════════════
   COMPONENTS — FORM
═══════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text2);
}
.form-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,47,201,0.15);
}
.form-input::placeholder { color: var(--muted2); }
.form-input:disabled { opacity: .6; cursor: not-allowed; }
.form-input[type="select"],
select.form-input { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

/* ═══════════════════════════════════════
   COMPONENTS — BADGE / TAG
═══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px;
  font-weight: 700; letter-spacing: .5px;
}
.badge-purple { background: rgba(139,47,201,0.15); color: #c084fc; border: 1px solid rgba(139,47,201,0.3); }
.badge-success{ background: rgba(34,197,94,0.12); color: #86efac;  border: 1px solid rgba(34,197,94,0.25); }
.badge-danger { background: rgba(239,68,68,0.12); color: #fca5a5;  border: 1px solid rgba(239,68,68,0.25); }
.badge-warning{ background: rgba(245,158,11,0.12);color: #fcd34d;  border: 1px solid rgba(245,158,11,0.25);}
.badge-muted  { background: rgba(138,127,160,0.1); color: var(--muted); border: 1px solid var(--border); }

.tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  background: rgba(139,47,201,0.12); border: 1px solid rgba(139,47,201,0.28);
  color: #c084fc;
}

/* ═══════════════════════════════════════
   COMPONENTS — ALERT
═══════════════════════════════════════ */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius); font-size: 13px; line-height: 1.6;
}
.alert-success { background: rgba(34,197,94,0.08);  border: 1px solid rgba(34,197,94,0.25);  color: #86efac; }
.alert-danger  { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.25);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #fcd34d; }
.alert-info    { background: rgba(139,47,201,0.08); border: 1px solid rgba(139,47,201,0.25); color: #c084fc; }

/* ═══════════════════════════════════════
   COMPONENTS — PROGRESS BAR
═══════════════════════════════════════ */
.progress-wrap { }
.progress-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.progress-track { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 3px; background: var(--grad); transition: width .4s ease; }
.progress-fill.warn   { background: linear-gradient(90deg, var(--warning), #ea580c); }
.progress-fill.danger { background: linear-gradient(90deg, var(--danger), #dc2626); }

/* ═══════════════════════════════════════
   COMPONENTS — STATUS DOT
═══════════════════════════════════════ */
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  display: inline-block;
}
.status-dot.online    { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.6); animation: pulse-green 2s infinite; }
.status-dot.offline   { background: var(--muted); }
.status-dot.expired   { background: var(--danger); }
.status-dot.suspended { background: var(--warning); }
.status-dot.installing{ background: var(--info); animation: pulse-purple 1.5s infinite; }

@keyframes pulse-green  { 0%,100%{box-shadow:0 0 6px rgba(34,197,94,.5)} 50%{box-shadow:0 0 12px rgba(34,197,94,.9)} }
@keyframes pulse-purple { 0%,100%{box-shadow:0 0 6px rgba(139,47,201,.5)} 50%{box-shadow:0 0 12px rgba(139,47,201,.9)} }

/* ═══════════════════════════════════════
   COMPONENTS — TABLE
═══════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid rgba(139,47,201,0.07); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(139,47,201,0.04); }

/* ═══════════════════════════════════════
   COMPONENTS — TOAST
═══════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 18px; font-size: 13px;
  min-width: 260px; max-width: 360px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .22s ease;
  pointer-events: all;
}
.toast.leaving { animation: toastOut .22s ease forwards; }
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.info    { border-color: rgba(139,47,201,0.4); }
.toast.warning { border-color: rgba(245,158,11,0.4); }
@keyframes toastIn  { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); }    to { opacity:0; transform:translateX(16px); } }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(10,8,16,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer; flex-shrink: 0;
}
.navbar-logo img   { height: 34px; width: 34px; object-fit: contain; }
.navbar-logo-text  { font-size: 17px; font-weight: 900; }
.navbar-logo-text em { font-style: normal; color: var(--red); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--bg2); z-index: 899; flex-direction: column;
  padding: 24px; gap: 6px; overflow-y: auto;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px; font-weight: 600; color: var(--muted);
  padding: 13px 16px; border-radius: var(--radius-sm);
  transition: all .15s; cursor: pointer;
}
.mobile-nav a:hover { color: var(--text); background: rgba(139,47,201,0.1); }
.mobile-nav .divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ═══════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════ */
.section      { padding: 88px 5%; }
.section-alt  { padding: 88px 5%; background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag { margin-bottom: 14px; }
.section-header h2 {
  font-size: clamp(26px, 4vw, 42px); font-weight: 900;
  letter-spacing: -.5px; margin-bottom: 14px;
}
.section-header p { font-size: 16px; color: var(--muted); max-width: 500px; margin: 0 auto; }

/* ═══════════════════════════════════════
   LANDING — HERO
═══════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-height) + 60px) 5% 80px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(139,47,201,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(232,22,58,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 50% 110%, rgba(192,38,106,0.07) 0%, transparent 55%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(139,47,201,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,47,201,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 10%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 900; line-height: 1.08; letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero-desc { font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); margin-bottom: 36px; max-width: 480px; }
.hero-cta  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats{ display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num  { font-size: clamp(22px,3vw,30px); font-weight: 900; }
.stat-label{ font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ═══════════════════════════════════════
   PRICING CARDS
═══════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border2); box-shadow: var(--shadow-purple); }
.price-card.featured {
  border-color: rgba(139,47,201,0.45);
  box-shadow: 0 0 0 1px rgba(139,47,201,0.2), 0 16px 48px rgba(139,47,201,0.18);
}
.price-card.featured::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(139,47,201,0.12) 0%, transparent 65%);
}
.featured-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--grad); color: #fff;
  font-size: 10px; font-weight: 800; padding: 4px 11px; border-radius: 20px; letter-spacing: .5px;
}
.price-plan   { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.price-amount { font-size: 34px; font-weight: 900; margin-bottom: 3px; line-height: 1; }
.price-amount span{ font-size: 13px; font-weight: 500; color: var(--muted); }
.price-cpu    { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.price-cpu strong { color: #c084fc; }
.price-divider{ height: 1px; background: var(--border); margin: 20px 0; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.price-features li::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4L6 11 3 8' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4L6 11 3 8' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price-features li.dim { color: var(--muted); }
.price-features li.dim::before { background: var(--muted2); }

/* ═══════════════════════════════════════
   FEATURE CARDS
═══════════════════════════════════════ */
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.feat-icon {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 16px;
  background: rgba(139,47,201,0.12); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feat-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feat-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 18px 22px; font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .15s;
}
.faq-q:hover { background: rgba(139,47,201,0.05); }
.faq-icon { font-size: 12px; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
  font-size: 14px; color: var(--muted); padding: 0 22px; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 60px 5% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 220px; line-height: 1.7; }
.footer-col h4  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text2); }
.footer-col a   { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; transition: color .2s; cursor: pointer; }
.footer-col a:hover { color: var(--text); }
.footer-bottom  { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p{ font-size: 12px; color: var(--muted2); }

/* ═══════════════════════════════════════
   AUTH LAYOUT
═══════════════════════════════════════ */
.auth-layout {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-height) + 40px) 20px 40px;
}
.auth-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 20% 40%, rgba(139,47,201,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(232,22,58,0.07) 0%, transparent 55%);
}
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-logo img { height: 52px; width: 52px; object-fit: contain; }
.auth-logo h2  { font-size: 20px; font-weight: 900; }
.auth-logo p   { font-size: 13px; color: var(--muted); margin-top: -4px; }
.auth-divider  { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.auth-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.auth-footer a { color: #c084fc; cursor: pointer; }
.auth-footer a:hover { text-decoration: underline; }
.oauth-btn {
  width: 100%; padding: 11px; border-radius: 9px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg3); color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color .2s, background .2s; margin-bottom: 10px; font-family: inherit;
}
.oauth-btn:hover { border-color: var(--border2); background: rgba(139,47,201,0.08); }

/* OTP inputs */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-digit {
  width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 700;
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg3);
  color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-mono);
}
.otp-digit:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,47,201,0.2); }

/* Flash messages */
.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.flash-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.flash-success { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: #86efac; }
.flash-info    { background: rgba(139,47,201,0.1); border: 1px solid rgba(139,47,201,0.3); color: #c084fc; }

/* ═══════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════ */
.dash-layout { display: flex; min-height: calc(100vh - var(--nav-height)); padding-top: var(--nav-height); }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  position: fixed; top: var(--nav-height); left: 0; bottom: 0;
  overflow-y: auto; padding: 20px 0; z-index: 100;
  transition: transform .28s ease;
}
.sidebar-section { padding: 0 12px; margin-bottom: 6px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; color: var(--muted2);
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0 8px; margin-bottom: 6px; margin-top: 14px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all .16s; text-decoration: none;
  border-left: 2px solid transparent; margin-left: 0;
}
.sidebar-item:hover { background: rgba(139,47,201,0.09); color: var(--text); }
.sidebar-item.active {
  background: rgba(139,47,201,0.14); color: var(--text);
  border-left-color: var(--purple);
}
.sidebar-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto; font-size: 10px; font-weight: 800;
  background: var(--grad); color: #fff; border-radius: 10px; padding: 1px 7px;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99;
}
.sidebar-overlay.show { display: block; }

.dash-main { margin-left: var(--sidebar-w); flex: 1; padding: 32px 36px; min-width: 0; }
.dash-topbar {
  display: none; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.dash-topbar-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 8px 12px; cursor: pointer; font-size: 16px;
}
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: clamp(20px, 3vw, 26px); font-weight: 900; }
.dash-header p  { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat-card-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.stat-card-val   { font-size: clamp(22px,3vw,30px); font-weight: 900; line-height: 1; }
.stat-card-sub   { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* Server VCards */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 16px; }
.server-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
  cursor: pointer; transition: all .2s; text-decoration: none; display: block;
}
.server-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow-purple); }
.server-card.expired { opacity: .65; }
.sc-head   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sc-name   { font-size: 15px; font-weight: 700; font-family: var(--font-mono); }
.sc-pkg    { font-size: 11px; color: var(--muted); margin-top: 3px; }
.sc-meta   { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.sc-row    { display: flex; justify-content: space-between; font-size: 12px; }
.sc-row .key { color: var(--muted); }
.sc-row .val { font-family: var(--font-mono); font-size: 11px; color: var(--text2); }

/* ═══════════════════════════════════════
   SERVER PANEL
═══════════════════════════════════════ */
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.panel-server-name { font-size: clamp(18px,3vw,22px); font-weight: 900; display: flex; align-items: center; gap: 10px; }
.panel-server-ip   { font-size: 13px; color: var(--muted); font-family: var(--font-mono); margin-top: 4px; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-btn {
  padding: 9px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); display: inline-flex; align-items: center; gap: 6px;
  transition: all .18s; font-family: inherit;
}
.panel-btn:hover  { border-color: var(--border2); }
.panel-btn.start  { border-color: rgba(34,197,94,0.4);  color: var(--success); }
.panel-btn.start:hover  { background: rgba(34,197,94,0.1); }
.panel-btn.stop   { border-color: rgba(239,68,68,0.4);  color: var(--danger); }
.panel-btn.stop:hover   { background: rgba(239,68,68,0.1); }
.panel-btn.restart{ border-color: rgba(245,158,11,0.4); color: var(--warning); }
.panel-btn.restart:hover{ background: rgba(245,158,11,0.1); }

.res-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.res-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.res-label{ font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.res-val  { font-size: 20px; font-weight: 800; margin-bottom: 8px; }

/* Panel tabs */
.panel-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.panel-tab  {
  padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent; transition: all .2s;
  margin-bottom: -1px; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.panel-tab.active { color: var(--text); border-bottom-color: var(--purple); }
.panel-tab:hover  { color: var(--text); }

/* Console */
.console-wrap { background: #060410; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.console-bar  { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.console-dot  { width: 10px; height: 10px; border-radius: 50%; }
.console-title{ font-size: 12px; color: var(--muted); margin-left: 8px; font-family: var(--font-mono); }
.console-out  {
  padding: 14px 16px; height: 320px; overflow-y: auto;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.9;
}
.console-line { display: block; }
.cl-ts   { color: #3d3360; margin-right: 8px; }
.cl-info { color: #6ee7b7; }
.cl-warn { color: #fcd34d; }
.cl-err  { color: #fca5a5; }
.cl-plain{ color: #c4b5d4; }
.console-input-row {
  display: flex; align-items: center; padding: 10px 14px;
  background: var(--surface2); border-top: 1px solid var(--border); gap: 10px;
}
.console-prompt { font-family: var(--font-mono); font-size: 12px; color: #c084fc; flex-shrink: 0; }
.console-input  {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
}

/* ═══════════════════════════════════════
   ORDER / CONFIGURE PAGE
═══════════════════════════════════════ */
.config-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.config-options { display: flex; flex-direction: column; gap: 16px; }
.config-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.config-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text2); text-transform: uppercase; letter-spacing: .6px; }

.price-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: calc(var(--nav-height) + 16px); }
.summary-line { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; padding-top: 14px; }

/* ═══════════════════════════════════════
   ADMIN LAYOUT
═══════════════════════════════════════ */
.admin-layout { display: flex; min-height: calc(100vh - var(--nav-height)); padding-top: var(--nav-height); }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  position: fixed; top: var(--nav-height); left: 0; bottom: 0; overflow-y: auto; padding: 16px 0;
}
.admin-main { margin-left: 220px; flex: 1; padding: 32px 36px; }

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* Large tablet */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .config-layout { grid-template-columns: 1fr; }
  .price-summary { position: static; }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-240px); width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 20px 20px; }
  .admin-sidebar { transform: translateX(-220px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px 20px; }
  .dash-topbar { display: flex; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding-left: 6%; padding-right: 6%; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-height: 58px; }
  .section, .section-alt { padding: 64px 5%; }
  .navbar { padding: 0 4%; }
  .hero { padding: calc(var(--nav-height) + 40px) 4% 60px; }
  .hero h1 { font-size: clamp(28px, 9vw, 44px); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px; }
  .otp-digit { width: 40px; height: 50px; font-size: 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .panel-header { flex-direction: column; }
  .panel-actions { width: 100%; }
  .panel-btn { flex: 1; justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .toast-container { bottom: 16px; right: 12px; left: 12px; }
  .toast { min-width: auto; width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dash-main { padding: 16px 14px; }
  .server-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: 10px 12px; }
}

/* Very small */
@media (max-width: 380px) {
  .otp-inputs { gap: 6px; }
  .otp-digit  { width: 36px; height: 46px; font-size: 18px; }
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeIn    { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.anim-fade  { animation: fadeIn .3s ease both; }
.anim-slide { animation: slideDown .3s ease both; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface3) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ═══════════════════════════════════════
   FILE MANAGER
═══════════════════════════════════════ */
.fm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.fm-breadcrumb {
  font-family: monospace;
  font-size: 13px;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  flex: 1;
  min-width: 160px;
  overflow-x: auto;
  white-space: nowrap;
}
.fm-crumb { color: var(--info); cursor: pointer; }
.fm-crumb:hover { text-decoration: underline; }
.fm-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.fm-list { padding: 0; overflow: hidden; }
.fm-header-row, .fm-row {
  display: grid;
  grid-template-columns: 1fr 90px 140px;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
}
.fm-header-row {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.fm-row { border-bottom: 1px solid var(--border); font-size: 13.5px; }
.fm-row:last-child { border-bottom: none; }
.fm-row:hover { background: var(--surface2); }

.fm-name {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fm-name:hover { color: var(--info); }
.fm-icon { display: flex; align-items: center; color: var(--muted); flex-shrink: 0; }
.fm-size { color: var(--muted); font-size: 12.5px; }

.fm-actions { display: flex; gap: 6px; justify-content: flex-end; }
.fm-btn {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.fm-btn:hover { border-color: var(--purple); color: #fff; }
.fm-btn-danger:hover { border-color: var(--danger); color: #fca5a5; background: rgba(239,68,68,0.1); }

.fm-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.fm-error { color: #fca5a5; }

/* File editor modal */
.fm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fm-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text2);
}
.fm-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.fm-modal-close:hover { color: #fff; }
.fm-editor-textarea {
  flex: 1;
  min-height: 320px;
  background: var(--bg);
  color: var(--text);
  border: none;
  outline: none;
  resize: none;
  padding: 16px 18px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}
.fm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .fm-header-row, .fm-row { grid-template-columns: 1fr; }
  .fm-header-row > div:nth-child(2), .fm-header-row > div:nth-child(3) { display: none; }
  .fm-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 10px;
  }
  .fm-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .fm-btn {
    flex: 1 1 auto;
    min-width: 64px;
    text-align: center;
    font-size: 12px;
    padding: 7px 8px;
  }
}

/* ═══════════════════════════════════════
   SERVER PANEL HERO HEADER
═══════════════════════════════════════ */
.srv-hero {
  position: relative;
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
  overflow: hidden;
}
.srv-hero-glow {
  position: absolute;
  top: -60%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: var(--grad);
  opacity: 0.12;
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}
.srv-hero-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.srv-hero-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.srv-hero-badge {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.srv-hero-name {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.srv-hero-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.srv-hero-dotsep { color: var(--border2); }
.srv-hero-ip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.15s;
  width: fit-content;
}
.srv-hero-ip:hover { border-color: var(--purple); }
.srv-hero-copy-hint {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
  border-left: 1px solid var(--border);
  padding-left: 8px;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text2);
  text-transform: capitalize;
}
.status-pill-online      { border-color: rgba(34,197,94,0.4);  color: #86efac; background: rgba(34,197,94,0.1); }
.status-pill-offline     { border-color: var(--border);         color: var(--muted); }
.status-pill-expired     { border-color: rgba(239,68,68,0.4);  color: #fca5a5; background: rgba(239,68,68,0.1); }
.status-pill-suspended   { border-color: rgba(245,158,11,0.4); color: #fcd34d; background: rgba(245,158,11,0.1); }
.status-pill-installing  { border-color: rgba(139,47,201,0.4); color: #c084fc; background: rgba(139,47,201,0.1); }
.status-pill .status-dot { width: 7px; height: 7px; }

/* Resource cards with icon header */
.res-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.res-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.res-icon-cpu  { background: rgba(139,47,201,0.15); color: #c084fc; }
.res-icon-mem  { background: rgba(236,72,153,0.15); color: #f9a8d4; }
.res-icon-disk { background: rgba(59,130,246,0.15); color: #93c5fd; }

/* Console live indicator */
.console-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.console-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  animation: pulse-green 2s infinite;
}

/* Dashboard stat card icon + accent */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.stat-card-accent-purple::before { background: var(--purple); }
.stat-card-accent-danger::before { background: var(--danger); }
.stat-card-accent-gold::before   { background: #eab308; }
.stat-card-accent-info::before   { background: var(--info); }
.stat-card-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  margin-bottom: 12px;
}

/* Server card icon + head layout */
.sc-head-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sc-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   MINIMALIST OVERRIDE — flatten panel UI
   (less gradient/glow, more whitespace, softer tone)
═══════════════════════════════════════ */
.srv-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 26px;
  margin-bottom: 22px;
}
.srv-hero-glow { display: none; }
.srv-hero-badge {
  background: var(--surface3);
  color: var(--text2);
  box-shadow: none;
  border: 1px solid var(--border);
}
.srv-hero-name { font-size: 18px; font-weight: 700; gap: 12px; }
.srv-hero-ip {
  background: transparent;
  border: 1px solid var(--border);
  margin-top: 20px;
  padding: 10px 14px;
}
.srv-hero-ip:hover { border-color: var(--border2); background: var(--surface2); }

.status-pill {
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
}
.status-pill-online     { border-color: var(--border);  color: var(--success); background: transparent; }
.status-pill-expired    { border-color: var(--border);  color: var(--danger);  background: transparent; }
.status-pill-suspended  { border-color: var(--border);  color: var(--warning); background: transparent; }
.status-pill-installing { border-color: var(--border);  color: var(--info);    background: transparent; }

.panel-actions { gap: 10px; }
.panel-btn {
  background: transparent;
  font-weight: 600;
  box-shadow: none;
}
.panel-btn.start    { background: transparent; }
.panel-btn.stop      { background: transparent; }
.panel-btn.restart   { background: transparent; }

.res-grid { gap: 16px; margin: 22px 0; }
.res-card {
  box-shadow: none;
  padding: 22px;
}
.res-icon { background: var(--surface3) !important; color: var(--muted) !important; }
.res-val { font-size: 22px; font-weight: 700; }

.stat-card { box-shadow: none; padding: 20px; }
.stat-card::before { display: none; }
.stat-card-icon { background: transparent; border: 1px solid var(--border); color: var(--muted); }

.server-card {
  box-shadow: none;
}
.server-card:hover {
  box-shadow: none;
  border-color: var(--border2);
  transform: none;
  background: var(--surface2);
}
.sc-icon { background: transparent; border: 1px solid var(--border); color: var(--muted); }

.console-wrap { box-shadow: none; }

.btn-primary {
  box-shadow: none;
}

/* Generous spacing rhythm */
.dash-main { padding: 28px 24px; }
.panel-tabs { margin: 20px 0; }
.card { box-shadow: none; }

/* ═══════════════════════════════════════
   TICKET THREAD
═══════════════════════════════════════ */
.ticket-msg {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ticket-msg:last-of-type { border-bottom: none; }
.ticket-msg-admin {
  background: var(--surface2);
  margin: 0 -20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.ticket-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
