/* ===================================================
   RESTOMANAGER PRO — Admin Panel CSS
   Stack: Vanilla JS + PHP + Node + MariaDB
   =================================================== */

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

:root {
  --brand: #FF6B35;
  --brand-dark: #e55520;
  --brand-light: #fff3ee;
  --bg: #0f0f13;
  --bg-card: #16161d;
  --bg-card2: #1e1e28;
  --border: #2a2a38;
  --text: #f0f0f5;
  --text-2: #9090a8;
  --text-3: #5a5a70;
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #a855f7;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,.4);
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 64px;
  --topbar-h: 64px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
code { font-family: 'Courier New', monospace; font-size: .82em; background: #1a1a26; padding: 2px 6px; border-radius: 4px; color: var(--brand); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── LOGIN ─── */
.login-screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1000;
  background: var(--bg);
}
.login-bg { position: absolute; inset: 0; overflow: hidden; }
.login-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3;
}
.login-orb--1 { width: 500px; height: 500px; background: radial-gradient(circle, #FF6B35, transparent); top: -100px; left: -100px; }
.login-orb--2 { width: 400px; height: 400px; background: radial-gradient(circle, #a855f7, transparent); bottom: -80px; right: -80px; }
.login-orb--3 { width: 300px; height: 300px; background: radial-gradient(circle, #3b82f6, transparent); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .2;
}
.login-card {
  position: relative; z-index: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 40px; width: 420px; max-width: calc(100vw - 32px);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  animation: loginFadeIn .5s ease;
}
@keyframes loginFadeIn { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.login-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 28px; }
.login-logo strong { font-weight: 800; color: var(--brand); }
.login-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; }
.login-subtitle { color: var(--text-2); margin-bottom: 32px; }
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 20px; background: white; color: #1a1a2e; font-weight: 600; font-size: .95rem;
  border: none; border-radius: var(--radius); transition: all var(--transition);
}
.btn-google:hover { background: #f0f0f5; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,.1); }
.login-error { margin-top: 16px; padding: 12px 16px; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius-sm); color: var(--red); font-size: .88rem; }
.login-note { margin-top: 20px; color: var(--text-3); font-size: .82rem; text-align: center; }

/* ─── APP LAYOUT ─── */
.app { display: flex; min-height: 100vh; }

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w); min-height: 100vh; background: var(--bg-card);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: width var(--transition);
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .user-details { display: none; }
.sidebar.collapsed .user-info { justify-content: center; }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px; border-bottom: 1px solid var(--border);
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1rem; white-space: nowrap; overflow: hidden; }
.sidebar-logo b { color: var(--brand); }
.sidebar-toggle { background: transparent; border: none; color: var(--text-2); padding: 6px; border-radius: var(--radius-sm); transition: all var(--transition); }
.sidebar-toggle:hover { background: var(--bg-card2); color: var(--text); }

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-2); font-size: .9rem; font-weight: 500;
  transition: all var(--transition); white-space: nowrap; overflow: hidden; position: relative;
}
.nav-item:hover { background: var(--bg-card2); color: var(--text); }
.nav-item.active { background: rgba(255,107,53,.12); color: var(--brand); }
.nav-item.active svg { color: var(--brand); }
.nav-item svg { flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--brand); color: white; font-size: .72rem;
  font-weight: 700; padding: 2px 7px; border-radius: 20px; min-width: 22px; text-align: center;
}

.sidebar-footer {
  padding: 12px 8px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.user-info { display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--bg-card2); }
.user-details { overflow: hidden; }
.user-name { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { display: block; font-size: .75rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-logout { background: transparent; border: none; color: var(--text-3); padding: 6px; border-radius: var(--radius-sm); transition: all var(--transition); flex-shrink: 0; }
.btn-logout:hover { color: var(--red); background: rgba(239,68,68,.1); }

/* ─── MAIN CONTENT ─── */
.main-content {
  margin-left: var(--sidebar-w); flex: 1; padding: 0;
  transition: margin-left var(--transition);
  min-height: 100vh; display: flex; flex-direction: column;
}
.sidebar.collapsed ~ .main-content { margin-left: var(--sidebar-w-collapsed); }

/* ─── TOPBAR ─── */
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--border); background: var(--bg-card);
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; flex-direction: column; gap: 1px; }
.page-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.page-subtitle { font-size: .78rem; color: var(--text-2); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.server-status { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-2); padding: 6px 12px; background: var(--bg-card2); border-radius: 20px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot--checking { background: var(--yellow); animation: pulse 1.5s infinite; }
.status-dot--online { background: var(--green); }
.status-dot--offline { background: var(--red); }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

/* ─── VIEWS ─── */
.view { display: none; padding: 24px 28px; flex: 1; }
.view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media(max-width:1100px){ .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px){ .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card--orange .stat-icon { background: rgba(255,107,53,.15); color: var(--brand); }
.stat-card--green .stat-icon { background: rgba(34,197,94,.15); color: var(--green); }
.stat-card--blue .stat-icon { background: rgba(59,130,246,.15); color: var(--blue); }
.stat-card--purple .stat-icon { background: rgba(168,85,247,.15); color: var(--purple); }
.stat-card--dark .stat-icon { background: var(--bg-card2); color: var(--text-2); }
.stat-value { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-2); margin-top: 4px; display: block; }

/* ─── CARDS ─── */
.section-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.section-header h3, .section-header h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
  border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: .88rem;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: white; }
.btn--primary:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); }
.btn--secondary { background: var(--bg-card2); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--border); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { color: var(--text); background: var(--bg-card2); }
.btn--success { background: var(--green); color: white; }
.btn--success:hover { background: #16a34a; }
.btn--sm { padding: 6px 12px; font-size: .8rem; }

/* ─── TOOLBAR ─── */
.toolbar {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; flex-wrap: wrap;
}
.search-box { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; }
.search-box svg { color: var(--text-3); flex-shrink: 0; }
.search-input { flex: 1; background: transparent; border: none; color: var(--text); font-size: .88rem; outline: none; }
.toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select-filter { background: var(--bg-card2); border: 1px solid var(--border); color: var(--text); padding: 7px 12px; border-radius: var(--radius-sm); font-size: .85rem; outline: none; cursor: pointer; }

/* ─── TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.data-table th { padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); background: var(--bg-card2); border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 16px; font-size: .88rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.empty-row { text-align: center; color: var(--text-3); padding: 40px !important; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: .76rem; font-weight: 600; }
.badge--active { background: rgba(34,197,94,.15); color: var(--green); }
.badge--pending { background: rgba(234,179,8,.15); color: var(--yellow); }
.badge--setup { background: rgba(59,130,246,.15); color: var(--blue); }
.badge--inactive { background: var(--bg-card2); color: var(--text-3); }

/* ─── QUICK ACTIONS ─── */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
@media(max-width:768px){ .quick-actions { grid-template-columns: 1fr; } }
.quick-action {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: left; transition: all var(--transition);
}
.quick-action:hover { border-color: var(--brand); background: rgba(255,107,53,.06); transform: translateY(-1px); }
.quick-action strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.quick-action small { color: var(--text-2); font-size: .78rem; }
.qa-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qa-icon--orange { background: rgba(255,107,53,.15); color: var(--brand); }
.qa-icon--blue { background: rgba(59,130,246,.15); color: var(--blue); }
.qa-icon--green { background: rgba(34,197,94,.15); color: var(--green); }

/* ─── PROJECTS LIST ─── */
.projects-list { padding: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 20px; color: var(--text-3); text-align: center; }

.project-row {
  display: grid; grid-template-columns: 1fr 1fr auto auto auto; gap: 12px; align-items: center;
  padding: 13px 16px; background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; transition: all var(--transition);
}
.project-row:hover { border-color: var(--border); background: rgba(255,255,255,.03); }
.project-name { font-weight: 600; font-size: .9rem; }
.project-domain { font-size: .82rem; color: var(--brand); }
.project-actions { display: flex; gap: 6px; }

/* ─── WIZARD ─── */
.wizard-container { max-width: 900px; }
.wizard-steps {
  display: flex; gap: 0; margin-bottom: 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 4px;
}
.wizard-step {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-3); font-size: .82rem; font-weight: 600;
  transition: all var(--transition); cursor: default; white-space: nowrap;
}
.wizard-step.active { background: var(--brand); color: white; }
.wizard-step.completed { color: var(--green); }
.step-num {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: .75rem;
  flex-shrink: 0;
}
.wizard-step.active .step-num { background: rgba(255,255,255,.25); }
@media(max-width:768px){ .wizard-steps { overflow-x: auto; } .step-label { display: none; } }

.wizard-panel { display: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.wizard-panel.active { display: block; animation: fadeIn .25s ease; }
.panel-header { margin-bottom: 28px; }
.panel-header h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.panel-header p { color: var(--text-2); font-size: .9rem; }

/* ─── FORMS ─── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 24px; }
@media(max-width:640px){ .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-label { font-size: .83rem; font-weight: 600; color: var(--text-2); }
.required { color: var(--brand); }
.form-input {
  background: var(--bg-card2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem;
  outline: none; transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--brand); }
.form-input::placeholder { color: var(--text-3); }
.form-hint { font-size: .77rem; color: var(--text-3); }
.panel-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--border); margin-top: 8px; }

/* ─── TEMPLATE SELECTOR ─── */
.template-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media(max-width:640px){ .template-selector { grid-template-columns: repeat(2, 1fr); } }
.template-option { cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); transition: all var(--transition); }
.template-option:hover { border-color: var(--text-2); }
.template-option.selected { border-color: var(--brand); }
.template-option span { display: block; text-align: center; padding: 6px; font-size: .8rem; font-weight: 600; background: var(--bg-card2); }
.template-preview { height: 80px; }
.tp--elegante { background: linear-gradient(135deg, #1a0a00 50%, #FF6B35 50%); }
.tp--moderno { background: linear-gradient(135deg, #0a0a1a 40%, #3b82f6 40%); }
.tp--rustico { background: linear-gradient(135deg, #1a1208 50%, #a16207 50%); }
.tp--minimalista { background: linear-gradient(135deg, #f5f5f5 50%, #1a1a1a 50%); }

/* ─── COLOR PICKER ─── */
.color-picker-group { display: flex; align-items: center; gap: 8px; }
.color-picker { width: 42px; height: 42px; border: none; padding: 0; border-radius: var(--radius-sm); cursor: pointer; background: none; }
.color-hex { flex: 1; }

/* ─── TAGS INPUT ─── */
.tags-input {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; min-height: 44px; cursor: text;
}
.tags-input:focus-within { border-color: var(--brand); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(255,107,53,.15);
  color: var(--brand); padding: 3px 8px; border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.tag button { background: none; border: none; color: var(--brand); cursor: pointer; font-size: .9rem; line-height: 1; padding: 0; }
.tag-input { background: transparent; border: none; color: var(--text); font-size: .88rem; outline: none; min-width: 80px; }

/* ─── TOGGLES ─── */
.toggles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media(max-width:640px){ .toggles-grid { grid-template-columns: 1fr; } }
.toggle-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: .88rem; transition: all var(--transition); }
.toggle-item:hover { border-color: var(--brand); }
.toggle-item input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }

/* ─── DEPLOY CHECKLIST ─── */
.deploy-log-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media(max-width:768px){ .deploy-log-container { grid-template-columns: 1fr; } }
.deploy-checklist { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.check-item.running { border-color: var(--blue); background: rgba(59,130,246,.06); }
.check-item.done { border-color: var(--green); background: rgba(34,197,94,.06); }
.check-item.error { border-color: var(--red); background: rgba(239,68,68,.06); }
.check-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.check-icon--pending { color: var(--text-3); }
.check-info strong { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 2px; }
.check-info code { font-size: .76rem; }

/* ─── TERMINAL ─── */
.terminal-output { background: #0a0a10; border: 1px solid #1e1e28; border-radius: var(--radius); overflow: hidden; }
.terminal-header { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #111118; border-bottom: 1px solid #1e1e28; font-size: .78rem; color: var(--text-3); }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot--red { background: #ff5f57; }
.t-dot--yellow { background: #febc2e; }
.t-dot--green { background: #28c840; }
.terminal-body { padding: 14px 16px; font-family: 'Courier New', monospace; font-size: .82rem; min-height: 180px; max-height: 280px; overflow-y: auto; color: #c8c8d8; line-height: 1.7; }
.t-prompt { color: var(--brand); font-weight: bold; }
.t-text { color: #c8c8d8; }
.t-success { color: var(--green); }
.t-error { color: var(--red); }
.t-info { color: var(--blue); }

/* ─── NGINX PREVIEW ─── */
.nginx-preview { margin-top: 16px; }
.code-block { background: #0a0a10; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-family: 'Courier New', monospace; font-size: .8rem; color: #c8d0e8; overflow-x: auto; line-height: 1.7; }

/* ─── CLOUDFLARE INSTRUCTIONS ─── */
.instructions-list { display: flex; flex-direction: column; gap: 12px; }
.instruction-step {
  display: flex; gap: 16px; padding: 16px; background: var(--bg-card2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.inst-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.inst-content { flex: 1; }
.inst-content strong { display: block; font-size: .9rem; margin-bottom: 6px; }
.inst-content p { color: var(--text-2); font-size: .85rem; }
.link { color: var(--brand); text-decoration: underline; }
.dns-record { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dns-field { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 100px; }
.dns-field span { font-size: .72rem; color: var(--text-3); text-transform: uppercase; }
.dns-field strong { font-size: .88rem; font-family: monospace; }
.copyable { cursor: pointer; color: var(--brand); }
.dns-status { margin-top: 10px; font-size: .85rem; }

/* ─── SUMMARY CARD ─── */
.summary-card {
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.summary-item { }
.summary-item label { display: block; font-size: .75rem; color: var(--text-3); text-transform: uppercase; margin-bottom: 4px; }
.summary-item span { font-size: .9rem; font-weight: 600; }

/* ─── SUCCESS BANNER ─── */
.success-banner {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--radius); margin-top: 16px;
}
.success-banner strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.success-banner p { color: var(--text-2); font-size: .85rem; }

/* ─── SERVER COMMANDS ─── */
.server-commands { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.cmd-btn {
  padding: 7px 14px; background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-2); font-size: .82rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer;
}
.cmd-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; animation: modalIn .2s ease; }
@keyframes modalIn { from{opacity:0;transform:scale(.95);} to{opacity:1;transform:scale(1);} }
.modal-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

/* ─── TOAST ─── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,.4); font-size: .88rem;
  animation: toastIn .25s ease;
  min-width: 260px; max-width: 360px;
}
@keyframes toastIn { from{opacity:0;transform:translateX(16px);} to{opacity:1;transform:translateX(0);} }
.toast--success { border-left: 3px solid var(--green); }
.toast--error { border-left: 3px solid var(--red); }
.toast--info { border-left: 3px solid var(--blue); }
.toast--warning { border-left: 3px solid var(--yellow); }
.toast.removing { animation: toastOut .25s ease forwards; }
@keyframes toastOut { to{opacity:0;transform:translateX(16px);} }

/* ─── UTILITIES ─── */
.hidden { display: none !important; }
.text-brand { color: var(--brand); }
.text-muted { color: var(--text-2); }
.mt-0 { margin-top: 0 !important; }
