/* ============================================
   FUSION PLATFORM - MAIN STYLESHEET
   Dark terminal + modern dashboard aesthetic
   ============================================ */

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

:root {
  --bg:        #0a0a0a;
  --bg-1:      #111111;
  --bg-2:      #181818;
  --bg-3:      #222222;
  --bg-4:      #2a2a2a;
  --border:    #2a2a2a;
  --border-2:  #333333;
  --text:      #e8e8e8;
  --text-2:    #999999;
  --text-3:    #555555;
  --accent:    #00ff88;
  --accent-dim:#00cc6a;
  --accent-bg: rgba(0, 255, 136, 0.08);
  --accent-glow: rgba(0, 255, 136, 0.2);
  --red:       #ff4444;
  --red-bg:    rgba(255, 68, 68, 0.1);
  --yellow:    #ffaa00;
  --yellow-bg: rgba(255, 170, 0, 0.1);
  --blue:      #4488ff;
  --blue-bg:   rgba(68, 136, 255, 0.1);
  --purple:    #aa44ff;
  --purple-bg: rgba(170, 68, 255, 0.1);
  --sidebar-w: 220px;
  --radius:    8px;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  --font-ui:   'Syne', system-ui, sans-serif;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; overflow: hidden; }

.hidden { display: none !important; }

/* ── SCROLLBARS ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

/* ── AUTH SCREEN ── */
.auth-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.auth-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(0,255,136,0.04) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(68,136,255,0.04) 0%, transparent 60%), var(--bg); }
.auth-container { position: relative; width: 380px; background: var(--bg-1); border: 1px solid var(--border-2); border-radius: 12px; padding: 40px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; font-family: var(--font-ui); font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.auth-tab { background: none; border: none; color: var(--text-3); padding: 8px 16px 10px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-tab:hover:not(.active) { color: var(--text-2); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.optional { font-weight: 400; text-transform: none; opacity: 0.6; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-mono); font-size: 13px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder { color: var(--text-3); }
.form-group textarea { min-height: 80px; resize: vertical; font-size: 12px; }
.form-group select { appearance: none; cursor: pointer; }
.form-error { background: var(--red-bg); border: 1px solid var(--red); border-radius: var(--radius); padding: 10px 12px; color: var(--red); font-size: 12px; margin-bottom: 16px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius); font-family: var(--font-ui); font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-arrow { margin-left: 2px; transition: transform .15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dim); }
.btn-secondary { background: var(--bg-3); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--bg-4); border-color: var(--border-2); }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: rgba(255,68,68,0.2); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }
.btn-icon { padding: 6px; width: 32px; height: 32px; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── MAIN LAYOUT ── */
#app { height: 100vh; display: flex; }
#main-app { display: flex; width: 100%; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--bg-1);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  height: 100vh; overflow-y: auto; overflow-x: hidden;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 20px 16px 16px; font-family: var(--font-ui); font-size: 18px; font-weight: 800; letter-spacing: -0.5px; border-bottom: 1px solid var(--border); }
.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px;
  color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500;
  transition: all .12s; cursor: pointer;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-3); color: var(--text); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); }
.nav-item.active svg { stroke: var(--accent); }
.nav-divider { height: 1px; background: var(--border); margin: 8px 4px; }

.sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--border); }
.user-pill { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; background: var(--bg-2); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #000; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-info > span { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-badge { font-size: 10px !important; font-weight: 600 !important; color: var(--text-3) !important; text-transform: uppercase; letter-spacing: .05em; }
.logout-btn { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 2px; display: flex; }
.logout-btn:hover { color: var(--red); }

/* ── MAIN CONTENT ── */
.main-content { flex: 1; overflow-y: auto; background: var(--bg); }

/* ── PAGE HEADER ── */
.page-header { padding: 28px 32px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.page-subtitle { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.page-body { padding: 24px 32px; }

/* ── CARDS ── */
.card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.card-body { padding: 20px; }

/* ── STATS GRID ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; font-family: var(--font-ui); letter-spacing: -1px; }
.stat-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.stat-accent { color: var(--accent); }
.stat-red { color: var(--red); }
.stat-yellow { color: var(--yellow); }
.stat-blue { color: var(--blue); }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.service-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: all .15s; text-decoration: none; display: block; }
.service-card:hover { border-color: var(--border-2); background: var(--bg-2); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.service-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.service-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.service-slug { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.service-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.service-domain { font-family: var(--font-mono); font-size: 11px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.service-type-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px; background: var(--bg-3); color: var(--text-2); }

/* ── STATUS BADGES ── */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-running { background: rgba(0,255,136,0.1); color: var(--accent); }
.status-running::before { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: pulse 2s infinite; }
.status-stopped { background: var(--bg-3); color: var(--text-3); }
.status-stopped::before { background: var(--text-3); }
.status-deploying, .status-building { background: var(--yellow-bg); color: var(--yellow); }
.status-deploying::before, .status-building::before { background: var(--yellow); animation: pulse 1s infinite; }
.status-failed, .status-crashed { background: var(--red-bg); color: var(--red); }
.status-failed::before, .status-crashed::before { background: var(--red); }
.status-inactive { background: var(--bg-3); color: var(--text-3); }
.status-inactive::before { background: var(--text-3); }
.status-success { background: rgba(0,255,136,0.1); color: var(--accent); }
.status-success::before { background: var(--accent); }
.status-pending { background: var(--blue-bg); color: var(--blue); }
.status-pending::before { background: var(--blue); animation: pulse 1.5s infinite; }
.status-online { background: rgba(0,255,136,0.1); color: var(--accent); }
.status-online::before { background: var(--accent); }
.status-offline { background: var(--red-bg); color: var(--red); }
.status-offline::before { background: var(--red); }
.status-cancelled { background: var(--bg-3); color: var(--text-3); }
.status-cancelled::before { background: var(--text-3); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); border-bottom: 1px solid var(--border); }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-2); }
.font-mono { font-family: var(--font-mono); font-size: 12px; }

/* ── TERMINAL / LOG VIEWER ── */
.terminal {
  background: #050505; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
  color: #cccccc; padding: 16px; overflow-y: auto; min-height: 200px;
  white-space: pre-wrap; word-break: break-all;
}
.terminal .log-error { color: var(--red); }
.terminal .log-warn { color: var(--yellow); }
.terminal .log-success { color: var(--accent); }
.terminal .log-info { color: var(--blue); }
.terminal-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ── CONSOLE ── */
.console-wrap { position: relative; height: 400px; }
.console-output { height: calc(100% - 40px); overflow-y: auto; padding: 12px 16px; background: #050505; font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.console-input-row { display: flex; align-items: center; border-top: 1px solid var(--border); background: var(--bg-2); padding: 0 12px; height: 40px; }
.console-prompt { color: var(--accent); margin-right: 8px; font-family: var(--font-mono); font-size: 13px; }
.console-input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--font-mono); font-size: 13px; outline: none; }

/* ── METRICS CHART ── */
.chart-wrap { position: relative; height: 100px; }
.chart-svg { width: 100%; height: 100%; overflow: visible; }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn { background: none; border: none; color: var(--text-3); padding: 10px 16px 12px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .12s; }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text-2); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; min-width: 240px; max-width: 360px; display: flex; align-items: flex-start; gap: 10px; animation: toastIn .2s ease; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--yellow); }
.toast.info { border-left: 3px solid var(--blue); }
.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-msg { flex: 1; }
.toast-close { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 16px; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-box { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: 12px; width: 100%; max-width: 560px; max-height: 80vh; overflow-y: auto; }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 20px; line-height: 1; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ── DEPLOY LOG VIEWER ── */
.deploy-log { height: 360px; overflow-y: auto; background: #050505; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }

/* ── ENV EDITOR ── */
.env-row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.env-row input { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 6px; color: var(--text); font-family: var(--font-mono); font-size: 12px; padding: 7px 10px; outline: none; transition: border-color .12s; }
.env-row input:focus { border-color: var(--accent); }
.env-row input.key-input { color: var(--accent); }
.env-delete { background: none; border: none; color: var(--text-3); cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.env-delete:hover { background: var(--red-bg); color: var(--red); }

/* ── METRICS MINI CHART ── */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-block { background: var(--bg-2); border-radius: var(--radius); padding: 14px; }
.metric-name { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 8px; }
.metric-val { font-size: 22px; font-weight: 700; font-family: var(--font-ui); }
.metric-bar { height: 4px; background: var(--bg-3); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.metric-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.metric-bar-fill.warn { background: var(--yellow); }
.metric-bar-fill.crit { background: var(--red); }

/* ── SERVER CARDS ── */
.server-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.server-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.server-name { font-size: 15px; font-weight: 700; }
.server-hostname { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 2px; }
.server-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--text-2); }
.server-spec { display: flex; justify-content: space-between; }
.server-spec-val { color: var(--text); font-family: var(--font-mono); }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); text-decoration: none; transition: color .12s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-3); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ── EMPTY STATE ── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-sub { color: var(--text-2); font-size: 14px; max-width: 360px; }

/* ── LOADING SKELETON ── */
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-line { height: 14px; margin-bottom: 8px; }
.skel-card { height: 120px; border-radius: var(--radius); margin-bottom: 16px; }

/* ── DEPLOY INDICATOR ── */
.deploy-progress { display: flex; flex-direction: column; gap: 4px; }
.deploy-step { display: flex; align-items: center; gap: 8px; font-size: 12px; font-family: var(--font-mono); padding: 4px 0; }
.deploy-step-icon { width: 16px; text-align: center; flex-shrink: 0; }
.deploy-step.done .deploy-step-icon { color: var(--accent); }
.deploy-step.active .deploy-step-icon { color: var(--yellow); animation: pulse 1s infinite; }
.deploy-step.pending .deploy-step-icon { color: var(--text-3); }

/* ── SEARCH INPUT ── */
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-input { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--text); font-family: var(--font-mono); font-size: 13px; padding: 8px 12px 8px 34px; outline: none; transition: border-color .12s; width: 240px; }
.search-input:focus { border-color: var(--accent); }

/* ── RESOURCE USAGE BARS ── */
.resource-bar-wrap { margin: 8px 0; }
.resource-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); margin-bottom: 4px; }
.resource-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.resource-bar-fill { height: 100%; border-radius: 3px; transition: width .5s; }
.fill-green { background: var(--accent); }
.fill-yellow { background: var(--yellow); }
.fill-red { background: var(--red); }

/* ── BADGE ── */
.badge { display: inline-block; padding: 2px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.badge-free { background: var(--bg-3); color: var(--text-3); }
.badge-starter { background: var(--blue-bg); color: var(--blue); }
.badge-pro { background: var(--purple-bg); color: var(--purple); }
.badge-enterprise { background: var(--accent-bg); color: var(--accent); }
.badge-admin { background: var(--red-bg); color: var(--red); }
.badge-staff { background: var(--yellow-bg); color: var(--yellow); }

/* ── TOGGLE SWITCH ── */
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--bg-4); border-radius: 20px; transition: .2s; border: 1px solid var(--border-2); }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; bottom: 2px; background: var(--text-3); border-radius: 50%; transition: .2s; }
.toggle input:checked + .toggle-slider { background: var(--accent-bg); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(14px); background: var(--accent); }

/* ── CODE INLINE ── */
code { font-family: var(--font-mono); font-size: 11px; background: var(--bg-3); border-radius: 3px; padding: 2px 5px; color: var(--accent); }
pre { font-family: var(--font-mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --sidebar-w: 56px; }
  .sidebar-logo span, .nav-item span, .user-info, .nav-item > *:not(svg) { display: none; }
  .nav-item { justify-content: center; }
  .page-header, .page-body { padding-left: 16px; padding-right: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ── SCROLLABLE TABLE CONTAINER ── */
.table-container { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-container table { margin: 0; }

/* ── SECTION TITLE ── */
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* ── NEW SERVICE WIZARD ── */
.wizard-step { padding: 32px; }
.wizard-step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.ws-step { display: flex; align-items: center; gap: 8px; }
.ws-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--bg-3); color: var(--text-3); border: 2px solid var(--border); }
.ws-step.active .ws-num { background: var(--accent); color: #000; border-color: var(--accent); }
.ws-step.done .ws-num { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.ws-label { font-size: 12px; font-weight: 600; color: var(--text-3); }
.ws-step.active .ws-label, .ws-step.done .ws-label { color: var(--text); }
.ws-connector { flex: 1; height: 1px; background: var(--border); min-width: 20px; }
.ws-connector.done { background: var(--accent); }

/* ── PROVIDER BUTTONS ── */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.provider-btn { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: all .15s; }
.provider-btn:hover { border-color: var(--accent); background: var(--accent-bg); }
.provider-btn.selected { border-color: var(--accent); background: var(--accent-bg); }
.provider-btn svg, .provider-btn img { width: 32px; height: 32px; }
.provider-btn span { font-size: 13px; font-weight: 600; }

/* ── LIVE INDICATOR ── */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s infinite; display: inline-block; margin-right: 6px; }

/* ── FLOATING ACTION BUTTON ── */
.fab { position: fixed; bottom: 28px; right: 28px; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #000; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px var(--accent-glow); border: none; transition: all .15s; z-index: 100; }
.fab:hover { transform: scale(1.08); }

/* ── DETAIL GRID ── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 4px; }
.detail-item span { font-size: 13px; font-family: var(--font-mono); color: var(--text); }

/* ── NOTIFICATION DOT ── */
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); position: absolute; top: 2px; right: 2px; }

/* ── PLAN UPGRADE BANNER ── */
.upgrade-banner { background: linear-gradient(135deg, rgba(0,255,136,0.08), rgba(68,136,255,0.08)); border: 1px solid rgba(0,255,136,0.3); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.upgrade-text { font-size: 13px; }
.upgrade-text strong { color: var(--accent); }
