/* =================== DASHBOARD LAYOUT =================== */
.dash-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  padding-top: 0;
}

/* =================== SIDEBAR =================== */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}
.sidebar-logo {
  padding: 28px 24px 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-logo a { color: var(--text); }
.sidebar-logo span { color: var(--accent-2); }

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: none;
  background: none;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-item.active {
  color: var(--text);
  background: var(--accent-light);
}
.nav-item.active svg { color: var(--accent-2); }

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  display: none;
}
.nav-badge.show { display: block; }

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.logout-btn { color: var(--text-muted); }
.logout-btn:hover { color: #ef4444; background: rgba(239,68,68,0.08) !important; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 49;
}
.sidebar-overlay.show { display: block; }

/* =================== MOBILE TOPBAR =================== */
.dash-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 48;
}
.sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s;
}
.topbar-logo {
  font-size: 18px;
  font-weight: 800;
  flex: 1;
}
.topbar-logo span { color: var(--accent-2); }
.topbar-user {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =================== MAIN CONTENT =================== */
.dash-main {
  margin-left: 240px;
  flex: 1;
  padding: 32px 36px;
  max-width: calc(100% - 240px);
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.dash-page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.dash-page-sub { font-size: 14px; color: var(--text-muted); }

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
#userPill span { font-size: 14px; font-weight: 600; }

/* =================== PAGES =================== */
.page { display: none; }
.page.active { display: block; }

/* =================== OVERVIEW STATS =================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.dash-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-stat-icon.green { background: rgba(34,197,94,0.1); color: #22c55e; }
.dash-stat-icon.purple { background: var(--accent-light); color: var(--accent-2); }
.dash-stat-icon.blue { background: rgba(59,130,246,0.1); color: #60a5fa; }
.dash-stat-icon.yellow { background: rgba(234,179,8,0.1); color: #fbbf24; }
.dash-stat-val { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2px; }
.dash-stat-label { font-size: 12px; color: var(--text-muted); }

/* =================== QUICK ORDER CARD =================== */
.quick-order-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.quick-order-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.6), transparent);
}
.quick-order-left { display: flex; align-items: center; gap: 20px; }
.quick-order-icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.quick-order-left h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.quick-order-left p { font-size: 14px; color: var(--text-muted); }

/* =================== SECTION HEADER =================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* =================== MINI PLANS =================== */
.mini-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mini-plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.mini-plan:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}
.mini-plan.popular {
  border-color: rgba(124,58,237,0.4);
  background: linear-gradient(180deg, rgba(124,58,237,0.06) 0%, var(--bg-card) 100%);
}
.mini-plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.mini-plan-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.mini-plan-price {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.mini-plan-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.mini-plan-specs { font-size: 12px; color: var(--text-muted); }

/* =================== SERVERS LIST =================== */
.servers-list { display: flex; flex-direction: column; gap: 12px; }
.servers-table { display: flex; flex-direction: column; gap: 10px; }

.server-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.server-row:hover {
  border-color: var(--border-hover);
}
.server-row-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.server-row-status.online { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.server-row-status.offline { background: #6b7280; }
.server-row-status.pending { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; animation: pulse 1.5s infinite; }

.server-row-name { font-size: 15px; font-weight: 700; flex: 1; }
.server-row-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.server-row-info {
  display: flex;
  gap: 24px;
  align-items: center;
}
.server-row-spec { text-align: center; }
.server-row-spec-val { font-size: 14px; font-weight: 600; }
.server-row-spec-label { font-size: 11px; color: var(--text-muted); }

.server-row-ip {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.server-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-btn {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,0.04); }
.icon-btn.danger:hover { color: #ef4444; border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.08); }

/* =================== EMPTY STATE =================== */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}
.empty-state.mini { padding: 32px; }
.empty-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-muted);
}
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* =================== ORDER PAGE =================== */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.order-form-col { display: flex; flex-direction: column; gap: 20px; }
.order-summary-col { position: sticky; top: 24px; }

.order-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.order-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.order-step-header h2 { font-size: 16px; font-weight: 700; }
.step-circle {
  width: 28px; height: 28px;
  background: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  flex-shrink: 0;
}

/* Plan selector */
.plan-selector { display: flex; flex-direction: column; gap: 10px; }
.plan-option { cursor: pointer; }
.plan-option input { display: none; }
.plan-option-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.plan-option:hover .plan-option-inner { border-color: var(--border-hover); background: var(--accent-light); }
.plan-option input:checked ~ .plan-option-inner {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.15);
}
.plan-option-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.plan-option-specs { font-size: 12px; color: var(--text-muted); }
.plan-option-price { font-size: 16px; font-weight: 700; white-space: nowrap; }
.plan-option-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }

.inline-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Location grid */
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.loc-option { cursor: pointer; }
.loc-option input { display: none; }
.loc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.loc-option:hover .loc-inner { border-color: var(--border-hover); background: var(--accent-light); }
.loc-option input:checked ~ .loc-inner {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.15);
}
.loc-flag { font-size: 22px; }
.loc-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.loc-code { font-size: 11px; color: var(--text-muted); font-family: monospace; }

/* OS grid */
.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.os-option { cursor: pointer; }
.os-option input { display: none; }
.os-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.os-option:hover .os-inner { border-color: var(--border-hover); background: var(--accent-light); }
.os-option input:checked ~ .os-inner {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.15);
}
.os-logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.os-logo.ubuntu { background: #e95420; color: #fff; }
.os-logo.debian { background: #d70a53; color: #fff; }
.os-logo.centos { background: #932279; color: #fff; }
.os-logo.fedora { background: #51a2da; color: #fff; }
.os-logo.arch { background: #1793d1; color: #fff; }
.os-logo.windows { background: #0078d4; color: #fff; }
.os-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.os-ver { font-size: 11px; color: var(--text-muted); }

.input-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.order-summary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.6), transparent);
}
.summary-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.summary-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.summary-row span:first-child { color: var(--text-muted); }
.summary-row span:last-child { font-weight: 600; }

.summary-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.summary-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.summary-spec-row span:first-child { color: var(--text-muted); }
.summary-spec-row span:last-child { font-weight: 500; color: var(--text-dim); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
}
.total-price {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
  justify-content: center;
}
.summary-note svg { color: var(--accent-2); flex-shrink: 0; }

/* =================== BILLING =================== */
.billing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.balance-card {
  background: linear-gradient(160deg, rgba(124,58,237,0.15) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: sticky;
  top: 24px;
}
.balance-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.balance-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 40%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  line-height: 1;
}

.billing-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.billing-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.billing-item-desc { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.billing-item-date { font-size: 12px; color: var(--text-muted); }
.billing-item-amount { font-size: 16px; font-weight: 700; white-space: nowrap; }
.billing-item-amount.plus { color: #22c55e; }
.billing-item-amount.minus { color: #ef4444; }

/* Topup Modal */
.inline-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
}
.inline-modal-inner {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.inline-modal-inner h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.inline-modal-inner > p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.topup-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.topup-btn {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.topup-btn:hover, .topup-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-2);
}

/* =================== PROFILE =================== */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: sticky;
  top: 24px;
}
.profile-avatar-big {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
}
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.profile-since { font-size: 12px; color: var(--text-muted); }

.profile-details { display: flex; flex-direction: column; gap: 28px; }
.profile-form { display: flex; flex-direction: column; gap: 16px; }
.profile-msg { font-size: 13px; color: #22c55e; height: 20px; }
.danger-zone {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 20px;
}
.danger-zone h3 { font-size: 14px; font-weight: 700; color: #ef4444; margin-bottom: 12px; }
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: var(--radius-sm);
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

/* =================== SERVER DETAIL MODAL =================== */
.server-detail-modal { max-width: 560px; }
.server-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.server-detail-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}
.server-detail-status.online { color: #22c55e; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }
.server-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.server-detail-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.server-detail-item-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }
.server-detail-item-val { font-size: 15px; font-weight: 600; }
.ssh-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ssh-command { font-family: 'Courier New', monospace; font-size: 13px; color: var(--accent-2); word-break: break-all; }
.copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-hover); }
.server-detail-actions { display: flex; gap: 10px; }

/* =================== CONFIRM MODAL =================== */
.confirm-modal {
  max-width: 380px;
  text-align: center;
}
.confirm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.confirm-icon.danger { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.confirm-modal h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.confirm-modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* =================== TOAST =================== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  max-width: 360px;
  animation: slideIn 0.3s ease;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.info { border-color: rgba(124,58,237,0.3); }
.toast-icon { flex-shrink: 0; }
.toast.success .toast-icon { color: #22c55e; }
.toast.error .toast-icon { color: #ef4444; }
.toast.info .toast-icon { color: var(--accent-2); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
.toast.removing { animation: slideOut 0.3s ease forwards; }

/* =================== DEPLOYING ANIMATION =================== */
.deploying-card {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 16px;
}
.deploying-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(124,58,237,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
.deploying-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.deploying-card p { font-size: 13px; color: var(--text-muted); }
.deploy-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.deploy-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .order-summary-col { position: static; }
  .billing-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .balance-card { position: static; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dash-topbar { display: flex; }
  .dash-main { margin-left: 0; padding: 80px 16px 24px; max-width: 100%; }
  .dash-header { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .mini-plans { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: repeat(2, 1fr); }
  .server-row-info { display: none; }
  .server-row-ip { display: none; }
  .quick-order-card { flex-direction: column; align-items: flex-start; }
}
