/* ══════════════════════════════════════════════════════════════════════════════
   NekoHost — Style System
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:   #0a0a12;
  --bg-secondary: #12121e;
  --bg-tertiary:  #1a1a2e;
  --bg-card:      #16162a;
  --bg-hover:     #1e1e3a;
  --bg-input:     #12121e;
  --border:       rgba(139, 92, 246, 0.15);
  --border-hover: rgba(139, 92, 246, 0.35);

  --text-primary:   #f0f0f5;
  --text-secondary: #9896b0;
  --text-muted:     #6b6985;

  --accent:        #8b5cf6;
  --accent-hover:  #a78bfa;
  --accent-glow:   rgba(139, 92, 246, 0.4);
  --accent-bg:     rgba(139, 92, 246, 0.08);

  --green:   #34d399;
  --red:     #f87171;
  --yellow:  #fbbf24;
  --blue:    #60a5fa;
  --pink:    #f472b6;

  --gradient-primary: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-card:    linear-gradient(135deg, rgba(139,92,246,0.06), rgba(236,72,153,0.04));

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(139,92,246,0.15);

  --sidebar-width: 260px;
  --topbar-height: 60px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
}

body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent-hover); }

/* ═══════════════════════ AUTH SCREEN ═══════════════════════ */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); position: relative; overflow: hidden;
}

.auth-particles {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.auth-particles::before, .auth-particles::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15;
}
.auth-particles::before {
  width: 500px; height: 500px; background: var(--accent); top: -150px; right: -100px;
  animation: float 12s ease-in-out infinite;
}
.auth-particles::after {
  width: 400px; height: 400px; background: var(--pink); bottom: -100px; left: -80px;
  animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.auth-container {
  position: relative; z-index: 1; width: 420px; max-width: 95vw;
  background: rgba(22, 22, 42, 0.85); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 48px 40px; box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-logo { margin-bottom: 8px; animation: bounce 2s ease-in-out infinite; }
.auth-logo img { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 4px 24px rgba(139,92,246,0.5)); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.auth-brand h1 { font-size: 32px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-brand p { color: var(--text-secondary); margin-top: 4px; font-size: 14px; }

.auth-form h2 { font-size: 20px; margin-bottom: 20px; text-align: center; }

.input-group {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0 16px; margin-bottom: 14px;
  transition: border var(--transition);
}
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }
.input-group .material-symbols-rounded { color: var(--text-muted); font-size: 20px; }
.input-group input {
  flex: 1; background: none; border: none; outline: none; color: var(--text-primary);
  padding: 14px 0; font-size: 14px; font-family: inherit;
}
.input-group input::placeholder { color: var(--text-muted); }

.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-secondary); }

/* ═══════════════════════ BUTTONS ═══════════════════════ */
.btn-primary {
  width: 100%; padding: 14px 24px; background: var(--gradient-primary); color: #fff;
  border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition); font-family: inherit;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  padding: 10px 20px; background: var(--bg-tertiary); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px;
  font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition); font-family: inherit;
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); }

.btn-danger {
  padding: 12px 24px; background: rgba(248,113,113,0.1); color: var(--red);
  border: 1px solid rgba(248,113,113,0.3); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; transition: all var(--transition); font-family: inherit;
}
.btn-danger:hover { background: rgba(248,113,113,0.2); border-color: var(--red); }

.btn-icon {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm); transition: all var(--transition);
}
.btn-icon:hover { color: var(--text-primary); background: var(--bg-hover); }

.btn-icon-sm {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  padding: 4px; border-radius: 6px; transition: all var(--transition); display: flex;
}
.btn-icon-sm:hover { color: var(--text-primary); }

.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-glow { animation: glow 3s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.2); }
  50% { box-shadow: 0 0 40px rgba(139,92,246,0.4), 0 0 80px rgba(236,72,153,0.1); }
}

/* ═══════════════════════ TOPBAR ═══════════════════════ */
.topbar {
  height: var(--topbar-height); background: rgba(18,18,30,0.85); backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(139,92,246,0.3)); }
.brand-name { font-size: 20px; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 4px; }

/* ═══════════════════════ SIDEBAR ═══════════════════════ */
.app-body { display: flex; min-height: calc(100vh - var(--topbar-height)); }

.sidebar {
  width: var(--sidebar-width); background: var(--bg-secondary); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height)); overflow-y: auto; transition: all 0.3s ease;
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section { margin-bottom: 24px; }
.nav-section-title {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-muted); padding: 0 12px; margin-bottom: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-md); color: var(--text-secondary); font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all var(--transition); position: relative;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-item .material-symbols-rounded { font-size: 20px; }
.nav-badge {
  margin-left: auto; background: var(--gradient-primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}

.sidebar-footer {
  padding: 16px; border-top: 1px solid var(--border);
}
.server-stats { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }

/* ═══════════════════════ CONTENT ═══════════════════════ */
.content { flex: 1; padding: 28px; overflow-y: auto; }
.view { display: none; animation: fadeIn 0.3s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.view-header { margin-bottom: 28px; }
.view-header h1 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.view-header h1 .material-symbols-rounded { color: var(--accent); }
.view-header p { color: var(--text-secondary); margin-top: 4px; font-size: 14px; }

/* ─── Welcome Banner ─── */
.welcome-banner {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.welcome-text h1 { font-size: 28px; font-weight: 800; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.welcome-text p { color: var(--text-secondary); margin-top: 6px; font-size: 15px; }
.welcome-stats { display: flex; gap: 16px; }
.stat-card {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 24px; display: flex; align-items: center; gap: 14px;
}
.stat-card .material-symbols-rounded { font-size: 28px; color: var(--accent); }
.stat-number { display: block; font-size: 22px; font-weight: 700; }
.stat-label { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Section Header ─── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: 18px; font-weight: 600; }

/* ─── Server Grid ─── */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

.server-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden;
}
.server-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary); opacity: 0; transition: opacity var(--transition);
}
.server-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 20px rgba(139,92,246,0.08); }
.server-card:hover::before { opacity: 1; }

.server-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.server-card-title-row { display: flex; align-items: center; gap: 10px; }
.server-card-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; background: var(--accent-bg); flex-shrink: 0;
}
.server-card-icon .material-symbols-rounded { font-size: 18px; color: var(--accent); }
.server-card-name { font-size: 15px; font-weight: 600; }
.server-card-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.server-card-status.running { background: rgba(52,211,153,0.1); color: var(--green); }
.server-card-status.offline { background: rgba(107,105,133,0.1); color: var(--text-muted); }
.server-card-status.starting { background: rgba(251,191,36,0.1); color: var(--yellow); }
.server-card-status.stopping { background: rgba(248,113,113,0.1); color: var(--red); }
.server-card-status.installing { background: rgba(96,165,250,0.1); color: var(--blue); }

.server-card-status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.server-card-status.running::before { animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.server-card-divider { height: 1px; background: var(--border); margin: 14px 0; }

.server-card-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.server-card-stat {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 80px;
  padding: 8px 10px; background: var(--bg-tertiary); border-radius: var(--radius-sm);
}
.server-card-stat .material-symbols-rounded { font-size: 16px; color: var(--accent); flex-shrink: 0; }
.server-card-stat div { display: flex; flex-direction: column; }
.server-card-stat .stat-val { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.server-card-stat .stat-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

.empty-state { text-align: center; padding: 60px 20px; grid-column: 1 / -1; }
.empty-state .material-symbols-rounded { font-size: 64px; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }
.empty-state .btn-primary { width: auto; display: inline-flex; }

/* ═══════════════════════ CREATE SERVER ═══════════════════════ */
.create-form-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px;
  font-family: inherit; transition: border var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-secondary); color: var(--text-primary); }

.egg-vars { margin-bottom: 20px; }
.egg-var-item { margin-bottom: 12px; }
.egg-var-item label { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; display: block; }
.egg-var-item small { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }

.form-info {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--accent-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-secondary); margin-bottom: 20px;
}
.form-info .material-symbols-rounded { color: var(--accent); font-size: 18px; }

.create-form-card > .btn-primary { width: auto; display: inline-flex; }

/* ═══════════════════════ PREMIUM ═══════════════════════ */
.premium-container { max-width: 900px; }

.premium-input-area {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px;
}
.premium-input-area textarea {
  width: 100%; padding: 16px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px;
  font-family: inherit; resize: vertical; outline: none; margin-bottom: 16px;
  transition: border var(--transition);
}
.premium-input-area textarea:focus { border-color: var(--accent); }
.premium-input-area .btn-primary { width: auto; display: inline-flex; }

.premium-result {
  background: var(--bg-card); border: 1px solid var(--accent); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px; animation: fadeIn 0.5s ease;
}
.result-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.result-header .material-symbols-rounded { color: var(--accent); font-size: 24px; }
.result-header h3 { font-size: 18px; font-weight: 600; }

.premium-config { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.config-item {
  background: var(--bg-tertiary); border-radius: var(--radius-sm); padding: 14px;
}
.config-item .config-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.config-item .config-value { font-size: 16px; font-weight: 600; }
.config-item.highlight { border: 1px solid var(--accent); }
.config-item.full { grid-column: 1 / -1; }
.config-features { list-style: none; padding: 0; margin: 0; }
.config-features li { padding: 4px 0; font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.config-features li .material-symbols-rounded { font-size: 16px; color: var(--green); }

.premium-tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 32px; }

.tier-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; position: relative; transition: all var(--transition);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier-card.premium { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.tier-badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.tier-card.free .tier-badge { background: var(--bg-tertiary); color: var(--text-secondary); }
.tier-card.premium .tier-badge { background: var(--gradient-primary); color: #fff; }
.tier-card.ultimate { border-color: #f59e0b; box-shadow: 0 0 30px rgba(245,158,11,0.15), 0 0 60px rgba(245,158,11,0.05); }
.tier-card.ultimate:hover { box-shadow: 0 0 40px rgba(245,158,11,0.25), 0 0 80px rgba(245,158,11,0.08); }
.tier-card.ultimate .tier-badge { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.tier-card.current-plan { border-width: 2px; }
.tier-card h3 { font-size: 20px; margin-bottom: 8px; }
.tier-price { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.tier-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.tier-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.tier-card ul li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid rgba(139,92,246,0.05);
}
.tier-card ul li .material-symbols-rounded { font-size: 18px; color: var(--green); }
.tier-card .btn-primary { width: auto; display: inline-flex; }
.tier-card .btn-secondary { cursor: default; opacity: 0.6; }

/* ═══════════════════════ CONSOLE (REDESIGNED) ═══════════════════════ */
.console-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.console-top-left { display: flex; align-items: center; gap: 14px; }
.console-top-left h2 { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.console-top-right { display: flex; align-items: center; gap: 10px; }

.console-status {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border);
}
.console-status .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.console-status.running .status-dot { background: var(--green); animation: pulse-dot 1.5s infinite; }
.console-status.starting .status-dot { background: var(--yellow); }
.console-status.stopping .status-dot { background: var(--red); }
.console-status .status-text { font-size: 12px; font-weight: 600; text-transform: capitalize; }

.server-address-chip {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--accent); cursor: pointer; transition: all var(--transition);
}
.server-address-chip:hover { border-color: var(--accent); background: var(--accent-bg); }
.server-address-chip .material-symbols-rounded { font-size: 16px; }

/* Resource Cards */
.resource-cards-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.resource-card {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.resource-card:hover { border-color: var(--border-hover); }
.resource-card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.resource-card-icon .material-symbols-rounded { font-size: 20px; }
.resource-card-icon.cpu { background: rgba(96,165,250,0.1); color: var(--blue); }
.resource-card-icon.ram { background: rgba(139,92,246,0.1); color: var(--accent); }
.resource-card-icon.disk { background: rgba(52,211,153,0.1); color: var(--green); }
.resource-card-icon.uptime { background: rgba(251,191,36,0.1); color: var(--yellow); }
.resource-card-info { display: flex; flex-direction: column; }
.resource-card-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.resource-card-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }

@media (max-width: 768px) {
  .resource-cards-row { grid-template-columns: repeat(2, 1fr); }
}

/* Power Controls */
.power-controls { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.power-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
  font-size: 13px; font-weight: 500; transition: all var(--transition);
}
.power-btn .material-symbols-rounded { font-size: 18px; }
.power-btn:hover { border-color: var(--border-hover); }
.power-start:hover { color: var(--green); border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.05); }
.power-restart:hover { color: var(--yellow); border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.05); }
.power-stop:hover { color: var(--red); border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.05); }
.power-kill:hover { color: #ff4444; border-color: rgba(255,68,68,0.4); background: rgba(255,68,68,0.05); }

/* Console Terminal */
.console-terminal {
  background: #0d0d18; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.console-terminal-header {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(20,20,35,0.9); border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots .dot.red { background: #ff5f56; }
.terminal-dots .dot.yellow { background: #ffbd2e; }
.terminal-dots .dot.green { background: #27c93f; }
.terminal-title { flex: 1; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.btn-icon-sm {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4px; border-radius: 4px; display: flex; align-items: center;
}
.btn-icon-sm:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-icon-sm .material-symbols-rounded { font-size: 18px; }

.console-output {
  height: 420px; overflow-y: auto; padding: 16px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 13px; line-height: 1.7; color: #ccc; white-space: pre-wrap; word-break: break-all;
}
.console-output::-webkit-scrollbar { width: 6px; }
.console-output::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

.console-input-wrap {
  display: flex; align-items: center; border-top: 1px solid var(--border);
  padding: 0 16px; background: rgba(10,10,18,0.6);
}
.console-prompt { color: var(--green); font-family: 'JetBrains Mono', monospace; font-weight: 700; margin-right: 8px; font-size: 14px; }
.console-input-wrap input {
  flex: 1; background: none; border: none; outline: none; color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 14px 0;
}
.btn-send-cmd {
  background: var(--accent); border: none; color: white; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius-sm); display: flex;
  align-items: center; transition: all var(--transition);
}
.btn-send-cmd:hover { background: var(--accent-hover); }
.btn-send-cmd .material-symbols-rounded { font-size: 16px; }

/* ═══════════════════════ SFTP SECTION ═══════════════════════ */
.sftp-section { max-width: 700px; }
.sftp-hero {
  text-align: center; padding: 30px 20px 24px;
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 24px;
}
.sftp-hero-icon { font-size: 48px; color: var(--accent); margin-bottom: 12px; display: block; }
.sftp-hero h2 { font-size: 20px; margin-bottom: 8px; }
.sftp-hero p { font-size: 13px; color: var(--text-secondary); max-width: 400px; margin: 0 auto; }

.sftp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.sftp-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; transition: all var(--transition);
}
.sftp-card:hover { border-color: var(--border-hover); }
.sftp-card-icon {
  width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 10px;
  background: var(--accent-bg);
}
.sftp-card-icon .material-symbols-rounded { font-size: 18px; color: var(--accent); }
.sftp-card label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.sftp-value {
  display: block; font-size: 14px; font-weight: 600; color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace; word-break: break-all;
}
.sftp-copy-btn {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 4px;
  transition: all var(--transition);
}
.sftp-copy-btn:hover { color: var(--accent); background: var(--accent-bg); }
.sftp-copy-btn .material-symbols-rounded { font-size: 16px; }

.sftp-quickconnect {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
}
.sftp-quickconnect label { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.sftp-quickconnect-box {
  padding: 12px 16px; background: var(--bg-tertiary); border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--accent); word-break: break-all;
}

/* ═══════════════════════ PLUGINS / MODS ═══════════════════════ */
.plugins-loading {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.plugins-loading .material-symbols-rounded { font-size: 48px; display: block; margin-bottom: 12px; }

.plugins-info-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 20px;
}
.plugins-info-banner .material-symbols-rounded { font-size: 28px; color: var(--accent); flex-shrink: 0; }
.plugins-info-banner p { font-size: 13px; color: var(--text-secondary); }
.plugins-info-banner strong { color: var(--text-primary); }

.plugins-type-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 16px;
}

.plugins-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.plugin-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.plugin-item:hover { border-color: var(--border-hover); }
.plugin-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--accent-bg);
}
.plugin-icon .material-symbols-rounded { font-size: 20px; color: var(--accent); }
.plugin-info { flex: 1; }
.plugin-name { font-size: 14px; font-weight: 600; }
.plugin-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.plugin-path {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted);
  margin-top: 4px; background: var(--bg-tertiary); padding: 4px 8px; border-radius: 4px;
  display: inline-block;
}

.plugins-empty {
  text-align: center; padding: 40px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.plugins-empty .material-symbols-rounded { font-size: 48px; color: var(--text-muted); display: block; margin-bottom: 12px; }
.plugins-empty h3 { font-size: 16px; margin-bottom: 8px; }
.plugins-empty p { font-size: 13px; color: var(--text-muted); max-width: 400px; margin: 0 auto; }

.plugins-not-mc {
  text-align: center; padding: 60px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.plugins-not-mc .material-symbols-rounded { font-size: 48px; color: var(--text-muted); display: block; margin-bottom: 12px; }
.plugins-not-mc h3 { font-size: 16px; margin-bottom: 8px; }
.plugins-not-mc p { font-size: 13px; color: var(--text-muted); }

/* Plugin Delete Button */
.plugin-delete-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 6px; border-radius: 6px; transition: all var(--transition); flex-shrink: 0;
}
.plugin-delete-btn:hover { color: var(--red); background: rgba(248,113,113,0.1); }

/* ═══════════════════════ MODRINTH ═══════════════════════ */
.modrinth-search-bar {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.modrinth-search-bar input {
  flex: 1; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; outline: none;
  transition: border var(--transition);
}
.modrinth-search-bar input:focus { border-color: var(--accent); }
.modrinth-search-bar input::placeholder { color: var(--text-muted); }

.modrinth-section {
  margin-top: 4px;
}
.modrinth-section-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  color: var(--text-primary);
}
.modrinth-section-header .material-symbols-rounded { font-size: 22px; color: var(--green); }
.modrinth-section-header h3 { font-size: 16px; font-weight: 600; }

.modrinth-results {
  display: flex; flex-direction: column; gap: 12px;
}
.modrinth-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.modrinth-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.modrinth-card-icon {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: var(--bg-tertiary);
}
.modrinth-card-info { flex: 1; min-width: 0; }
.modrinth-card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.modrinth-card-author { font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.modrinth-card-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.modrinth-card-meta {
  display: flex; gap: 16px; margin-top: 8px; font-size: 11px; color: var(--text-muted);
}
.modrinth-card-meta span { display: flex; align-items: center; gap: 4px; }
.modrinth-install-btn {
  flex-shrink: 0; padding: 8px 14px !important; font-size: 12px !important;
  align-self: center;
}

/* ═══════════════════════ EULA MODAL ═══════════════════════ */
.eula-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease;
}
.eula-modal {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px 28px; max-width: 480px; width: 90%;
  box-shadow: var(--shadow-lg);
}
.eula-modal h2 {
  font-size: 18px; font-weight: 700; margin: 0 0 14px; color: var(--text-primary);
}
.eula-modal p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0;
}
.eula-modal a { color: var(--blue); text-decoration: none; }
.eula-modal a:hover { text-decoration: underline; }
.eula-buttons {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px;
}
.eula-buttons .btn-secondary {
  background: transparent; border: none; color: var(--text-secondary);
  font-weight: 600; font-size: 13px; letter-spacing: 0.5px; cursor: pointer;
  padding: 8px 16px;
}
.eula-buttons .btn-secondary:hover { color: var(--text-primary); }
.eula-buttons .btn-primary {
  font-weight: 600; font-size: 13px; letter-spacing: 0.5px;
  padding: 8px 20px;
}

/* ═══════════════════════ RENEWAL BANNER ═══════════════════════ */
.renewal-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-radius: var(--radius-md); margin-bottom: 20px; animation: fadeIn 0.3s ease;
}
.renewal-banner.warning {
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3);
}
.renewal-banner.danger {
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.3);
}
.renewal-banner.success {
  background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3);
}
.renewal-banner .renewal-icon {
  font-size: 28px; flex-shrink: 0;
}
.renewal-banner.warning .renewal-icon { color: var(--yellow); }
.renewal-banner.danger .renewal-icon { color: var(--red); }
.renewal-banner.success .renewal-icon { color: var(--green); }
.renewal-banner .renewal-text { flex: 1; }
.renewal-banner .renewal-text h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.renewal-banner .renewal-text p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.renewal-banner .btn-primary { flex-shrink: 0; }

/* ═══════════════════════ FILES ═══════════════════════ */
.file-actions { display: flex; gap: 8px; }

.breadcrumb {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 16px; font-size: 13px;
}
.breadcrumb-item { color: var(--text-secondary); cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: all var(--transition); }
.breadcrumb-item:hover { color: var(--accent); background: var(--accent-bg); }
.breadcrumb-sep { color: var(--text-muted); }

.file-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.file-table { width: 100%; border-collapse: collapse; }
.file-table th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border); background: var(--bg-tertiary);
}
.file-table td { padding: 10px 16px; font-size: 13px; border-bottom: 1px solid rgba(139,92,246,0.05); }
.file-table tr:hover td { background: var(--bg-hover); }
.file-table tr { cursor: pointer; transition: background var(--transition); }

.file-name { display: flex; align-items: center; gap: 8px; }
.file-name .material-symbols-rounded { font-size: 20px; }
.file-name.folder .material-symbols-rounded { color: var(--yellow); }
.file-name.file .material-symbols-rounded { color: var(--blue); }

.file-table .file-actions-cell { text-align: right; }
.file-action-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4px 6px; border-radius: 4px; transition: all var(--transition);
}
.file-action-btn:hover { color: var(--red); background: rgba(248,113,113,0.1); }

/* Editor */
.editor-panel {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--bg-primary); display: flex; flex-direction: column; animation: fadeIn 0.2s ease;
}
.editor-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
.editor-header span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.editor-header div { display: flex; gap: 8px; }
.editor-file-info {
  font-size: 11px; color: var(--text-muted); padding: 4px 20px;
  background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
}
#editor-codemirror-wrap {
  flex: 1; overflow: hidden;
}
#editor-codemirror-wrap .CodeMirror {
  height: 100%; font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 14px; line-height: 1.6; background: var(--bg-primary);
}
#editor-codemirror-wrap .CodeMirror-gutters {
  background: var(--bg-secondary); border-right: 1px solid var(--border);
}
#editor-codemirror-wrap .CodeMirror-linenumber {
  color: var(--text-muted); padding: 0 8px;
}
#editor-codemirror-wrap .CodeMirror-activeline-background {
  background: rgba(139, 92, 246, 0.06);
}
#editor-codemirror-wrap .CodeMirror-cursor {
  border-left-color: var(--accent);
}
#editor-codemirror-wrap .CodeMirror-selected {
  background: rgba(139, 92, 246, 0.2) !important;
}
#editor-codemirror-wrap .CodeMirror-foldmarker {
  color: var(--accent); text-shadow: none;
}
.editor-textarea {
  flex: 1; width: 100%; padding: 20px; background: var(--bg-primary);
  color: var(--text-primary); border: none; outline: none; resize: none;
  font-family: 'JetBrains Mono', 'Cascadia Code', monospace; font-size: 14px; line-height: 1.7;
}

/* ═══════════════════════ STARTUP ═══════════════════════ */
.startup-grid { display: grid; gap: 16px; }
.startup-var-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
}
.startup-var-card label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.startup-var-card small { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.startup-var-card input {
  width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px;
  font-family: 'JetBrains Mono', monospace; outline: none; transition: border var(--transition);
}
.startup-var-card input:focus { border-color: var(--accent); }
.startup-var-card .env-key { font-size: 11px; color: var(--accent); margin-top: 6px; font-family: monospace; }

/* ═══════════════════════ SETTINGS ═══════════════════════ */
.settings-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.settings-card h3 { font-size: 16px; margin-bottom: 16px; }
.danger-zone { border-color: rgba(248,113,113,0.2); }
.danger-zone h3 { color: var(--red); }
.danger-zone p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 2px; }
.info-item span { font-size: 14px; font-weight: 500; }

/* ═══════════════════════ AI CHAT ═══════════════════════ */
.ai-chat-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--gradient-primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md), 0 0 30px rgba(139,92,246,0.3);
  transition: all var(--transition);
}
.ai-chat-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-lg), 0 0 40px rgba(139,92,246,0.4); }
.ai-chat-toggle .material-symbols-rounded { font-size: 28px; }

.ai-chat-panel {
  position: fixed; bottom: 92px; right: 24px; z-index: 60;
  width: 380px; max-height: 520px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.ai-chat-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.ai-chat-title .material-symbols-rounded { color: var(--accent); }

.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  max-height: 360px; min-height: 200px;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 2px; }

.ai-msg { display: flex; gap: 10px; max-width: 90%; }
.ai-msg.user { margin-left: auto; flex-direction: row-reverse; }
.ai-msg-avatar { font-size: 24px; flex-shrink: 0; width: 28px; height: 28px; }
.ai-msg-avatar img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }
.ai-msg.user .ai-msg-avatar { display: none; }
.ai-msg-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap;
}
.ai-msg.bot .ai-msg-bubble { background: var(--bg-tertiary); color: var(--text-primary); border-bottom-left-radius: 4px; }
.ai-msg.user .ai-msg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }

.ai-typing { display: flex; align-items: center; gap: 4px; padding: 10px 14px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing 1.4s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.ai-chat-input-wrap {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.ai-chat-input-wrap input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px; color: var(--text-primary);
  font-size: 13px; outline: none; font-family: inherit; transition: border var(--transition);
}
.ai-chat-input-wrap input:focus { border-color: var(--accent); }

/* ═══════════════════════ TOAST ═══════════════════════ */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md); animation: toastIn 0.3s ease; min-width: 260px;
  display: flex; align-items: center; gap: 10px;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { background: rgba(52,211,153,0.15); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }
.toast.error { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.toast.info { background: rgba(96,165,250,0.15); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }

/* ═══════════════════════ LOADING ═══════════════════════ */
.loading-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,10,18,0.8);
  backdrop-filter: blur(4px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay span { color: var(--text-secondary); font-size: 14px; }

/* ═══════════════════════ SCROLLBAR ═══════════════════════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-tertiary); }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .sidebar { position: fixed; left: -280px; top: var(--topbar-height); z-index: 40; width: 280px; box-shadow: var(--shadow-lg); }
  .sidebar.open { left: 0; }
  .content { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .premium-tiers { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .premium-config { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; text-align: center; }
  .welcome-stats { justify-content: center; }
  .ai-chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
}

/* ═══════════ PLAN STATUS BANNER ═══════════ */
.plan-status-banner { display:none; padding:14px 20px; border-radius:12px; font-size:14px; margin-bottom:24px; gap:8px; align-items:center; font-weight:500; }
.plan-status-banner { display:flex; }
.plan-status-banner.premium-active { background:linear-gradient(135deg, rgba(255,184,0,.12), rgba(255,107,0,.08)); border:1px solid rgba(255,184,0,.3); color:var(--text-primary); }
.plan-status-banner .material-symbols-rounded { color:var(--amber); font-size:22px; }

/* ═══════════ PREMIUM BUILDER ═══════════ */
.premium-builder { margin-top:28px; }
.custom-config-card { background:var(--card-bg); border:1px solid var(--border); border-radius:16px; padding:28px; margin-bottom:24px; backdrop-filter:blur(10px); }
.custom-config-card h3 { margin-bottom:18px; font-size:17px; display:flex; align-items:center; gap:8px; }
.custom-config-card h3 .material-symbols-rounded { font-size:22px; color:var(--primary); }

/* ═══════════ SLIDERS ═══════════ */
.slider-group { margin-bottom:20px; }
.slider-group label { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:600; margin-bottom:8px; color:var(--text-primary); }
.slider-group label span:last-child { color:var(--primary); font-size:15px; font-weight:700; }
.slider-group input[type="range"] { -webkit-appearance:none; appearance:none; width:100%; height:8px; border-radius:8px; background:var(--border); outline:none; cursor:pointer; }
.slider-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%; background:var(--primary); cursor:pointer; box-shadow:0 0 8px rgba(139,92,246,.4); border:2px solid var(--bg); }
.slider-group input[type="range"]::-moz-range-thumb { width:22px; height:22px; border-radius:50%; background:var(--primary); cursor:pointer; box-shadow:0 0 8px rgba(139,92,246,.4); border:2px solid var(--bg); }
.slider-range { display:flex; justify-content:space-between; font-size:12px; color:var(--text-secondary); margin-top:4px; }

/* ═══════════ PREMIUM EGG VARS ═══════════ */
.egg-var-item { margin-bottom:14px; }
.egg-var-item label { display:block; font-size:13px; font-weight:600; margin-bottom:4px; color:var(--text-primary); }
.egg-var-item input { width:100%; padding:10px 14px; border-radius:10px; border:1px solid var(--border); background:var(--bg); color:var(--text-primary); font-size:14px; }
.egg-var-item input:focus { border-color:var(--primary); outline:none; box-shadow:0 0 0 3px rgba(139,92,246,.15); }
.egg-var-item small { display:block; margin-top:4px; color:var(--text-secondary); font-size:12px; }

/* ═══════════ BTN GLOW ═══════════ */
.btn-glow { animation: btnGlow 2s ease-in-out infinite; }
@keyframes btnGlow { 0%,100% { box-shadow: 0 0 8px rgba(139,92,246,.3); } 50% { box-shadow: 0 0 20px rgba(139,92,246,.6); } }
.btn-secondary { background:var(--card-bg); color:var(--text-secondary); border:1px solid var(--border); cursor:default; opacity:.7; }
.btn-danger { background:rgba(248,113,113,0.15); color:var(--red); border:1px solid rgba(248,113,113,0.3); padding:12px 24px; border-radius:var(--radius-md); cursor:pointer; font-size:14px; font-weight:600; display:inline-flex; align-items:center; gap:8px; transition:all var(--transition); }
.btn-danger:hover { background:rgba(248,113,113,0.25); border-color:rgba(248,113,113,0.5); }
.btn-danger-outline { background:transparent; color:var(--red); border:1px solid rgba(248,113,113,0.3); padding:10px 20px; border-radius:var(--radius-md); cursor:pointer; font-size:13px; font-weight:600; display:inline-flex; align-items:center; gap:6px; transition:all var(--transition); }
.btn-danger-outline:hover { background:rgba(248,113,113,0.1); border-color:rgba(248,113,113,0.5); }

.plan-management { margin-top:24px; padding:24px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); }
.plan-management h3 { font-size:16px; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.plan-management h3 .material-symbols-rounded { font-size:20px; color:var(--accent); }
.plan-actions { display:flex; gap:12px; flex-wrap:wrap; }

/* ═══════════ VERIFICATION FORM ═══════════ */
.verify-info { text-align:center; color:var(--text-secondary); font-size:14px; margin-bottom:20px; line-height:1.6; }
.verify-info b { color:var(--text-primary); }

#verify-code, #reset-code { font-family:'JetBrains Mono','Cascadia Code',monospace; }

/* ═══════════ REMEMBER DEVICE CHECKBOX ═══════════ */
.remember-device {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  margin: 12px 0 16px; padding: 10px 14px;
  background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.15);
  border-radius: 10px; user-select: none; transition: all 0.2s;
}
.remember-device:hover { border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.1); }
.remember-device input[type="checkbox"] { display: none; }
.remember-device .checkmark {
  width: 20px; height: 20px; border: 2px solid rgba(139,92,246,0.4);
  border-radius: 5px; position: relative; flex-shrink: 0; transition: all 0.2s;
  background: rgba(139,92,246,0.05);
}
.remember-device input[type="checkbox"]:checked + .checkmark {
  background: var(--accent); border-color: var(--accent);
}
.remember-device input[type="checkbox"]:checked + .checkmark::after {
  content: '✓'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: white; font-size: 13px; font-weight: 700;
}
.remember-label { font-size: 13px; color: var(--text-secondary); }
.remember-device:hover .remember-label { color: var(--text-primary); }

/* ═══════════ CUSTOM PRICE CARD ═══════════ */
.custom-price-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(52,211,153,0.05));
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; margin-top: 20px;
}
.price-header {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px;
}
.price-header .material-symbols-rounded { color: var(--green); }
.price-amount { font-size: 42px; font-weight: 800; color: var(--green); }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-breakdown {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 12px; font-size: 12px; color: var(--text-secondary);
}
.price-breakdown div { background: var(--bg-tertiary); padding: 4px 10px; border-radius: 6px; }

/* ═══════════ SUBSCRIPTION CARDS ═══════════ */
.sub-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 12px;
}
.sub-card-header { display: flex; align-items: center; justify-content: space-between; }

/* ═══════════ BILLING VIEW ═══════════ */
.billing-plan-summary { margin-bottom: 24px; }
.billing-summary-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.billing-summary-card .material-symbols-rounded { font-size: 32px; }
.billing-summary-card.free { background: var(--bg-card); }
.billing-summary-card.free .material-symbols-rounded { color: var(--text-muted); }
.billing-summary-card.active { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.04)); border-color: var(--accent); }
.billing-summary-card.active .material-symbols-rounded { color: var(--accent); }
.billing-summary-card.grace { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.3); }
.billing-summary-card.grace .material-symbols-rounded { color: var(--yellow); }

.billing-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.billing-table { width: 100%; border-collapse: collapse; }
.billing-table th {
  text-align: left; padding: 14px 20px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border); background: var(--bg-tertiary);
}
.billing-table td {
  padding: 14px 20px; font-size: 13px; border-bottom: 1px solid rgba(139,92,246,0.05);
  color: var(--text-secondary);
}
.billing-table tr:hover td { background: var(--bg-hover); }

.billing-status {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 10px; border-radius: 12px;
}
.billing-status-success { background: rgba(52,211,153,0.12); color: var(--green); }
.billing-status-cancelled { background: rgba(248,113,113,0.12); color: var(--red); }
.billing-status-refunded { background: rgba(96,165,250,0.12); color: var(--blue); }
.billing-status-pending { background: rgba(251,191,36,0.12); color: var(--yellow); }

/* ═══════════ GRACE PERIOD + CANCELLED BANNERS ═══════════ */
.plan-status-banner.grace-period {
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: var(--text-primary);
}
.plan-status-banner.grace-period .material-symbols-rounded { color: var(--yellow); }
.plan-status-banner.cancelled-plan {
  background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); color: var(--text-primary);
}
.plan-status-banner.cancelled-plan .material-symbols-rounded { color: var(--red); }

/* ═══════════ AD BLOCKER OVERLAY ═══════════ */
.adblock-overlay {
  position:fixed; inset:0; z-index:9999; background:rgba(10,10,18,0.96);
  backdrop-filter:blur(12px); display:flex; align-items:center; justify-content:center;
}
.adblock-card {
  max-width:440px; width:90%; background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-xl); padding:48px 40px; text-align:center;
  box-shadow:var(--shadow-lg), var(--shadow-glow);
}
.adblock-icon { font-size:64px; margin-bottom:16px; }
.adblock-card h2 { font-size:24px; font-weight:700; margin-bottom:12px; color:var(--red); }
.adblock-card p { color:var(--text-secondary); font-size:14px; line-height:1.7; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  margin-top: 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 48px 40px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  filter: drop-shadow(0 0 8px rgba(168,85,247,.35));
}
.footer-brand-name {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.footer-about p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-col ul li .material-symbols-rounded {
  font-size: 18px;
  color: var(--purple);
}
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.footer-col ul li a:hover {
  color: var(--purple);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width:768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Legal Modal ──────────────────────────────────────── */
.legal-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s;
}
.legal-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 90%; max-width: 700px; max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.legal-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.legal-modal-header h2 {
  font-size: 20px; font-weight: 700; margin: 0;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.legal-modal-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}
.legal-modal-body h3 {
  color: var(--text-primary);
  font-size: 16px; font-weight: 600;
  margin: 24px 0 8px;
}
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p { margin: 0 0 12px; }
.legal-modal-body ul { padding-left: 20px; margin: 0 0 12px; }
.legal-modal-body ul li { margin-bottom: 6px; }
