/* ============================================================
   XMPanels Dashboard — Style
   Theme: Terminal HQ (Identik index.html)
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink, #0a0a0d);
  color: var(--text, #f0f0f0);
  overflow-x: hidden;
  max-width: 100vw;
}

html.light-theme, body.light-theme {
  background: #f7f5ef !important;
  background-color: #f7f5ef !important;
  color: #0a0a0d !important;
}

/* Preloader identik index.html */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink, #0a0a0d);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.preloader[style*="opacity: 0"],
.preloader[style*="display: none"] {
  pointer-events: none !important;
}

html.light-theme .preloader, body.light-theme .preloader {
  background: #f7f5ef !important;
}

.loader-text {
  font-family: var(--mono, monospace);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.loader-xm {
  color: var(--orange, #ff6a00);
}

.loader-panels {
  color: var(--text, #f0f0f0);
  opacity: 0.7;
}

html.light-theme .loader-panels {
  color: #0a0a0d !important;
}

.dash-wrapper {
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px;
  min-height: calc(100vh - 220px);
}

/* Login Terminal Card */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: 20px 0;
}

.login-terminal {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.login-terminal-head {
  background: var(--ink-3);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.login-terminal-body {
  padding: 32px 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

/* OTP Inputs Box */
.otp-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.otp-grid input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  color: var(--orange);
}

.otp-grid input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.wa-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #0a0a0d !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: var(--rad-sm);
  text-decoration: none;
  width: 100%;
  margin-bottom: 18px;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* Dashboard Header & Stats */
.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  padding: 22px 28px;
  border-radius: var(--rad);
}

.dash-user-info h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.dash-user-info p {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 22px;
}

.stat-box .title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-box .num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--orange);
}

/* Tabs Navigation */
.dash-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.dash-nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 16px;
  color: var(--text-dim);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--rad-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--ink-2);
}

.tab-btn.active {
  color: var(--orange);
  background: var(--ink-2);
  border-color: var(--line-2);
  font-weight: 600;
}

/* Server Cards Grid */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.server-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 24px;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.server-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.server-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.server-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.server-id {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.badge-status {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-suspended { background: rgba(255, 77, 109, 0.15); color: var(--rose); border: 1px solid var(--rose); }
.badge-active { background: rgba(177, 234, 96, 0.15); color: var(--lime); border: 1px solid var(--lime); }
.badge-error { background: rgba(255, 170, 0, 0.15); color: var(--amber, #ffaa00); border: 1px solid var(--amber, #ffaa00); }

/* Light theme: badge tetap terbaca di latar terang */
html.light-theme .badge-active, body.light-theme .badge-active { background: rgba(22, 163, 74, 0.12); color: #15803d; border-color: #16a34a; }
html.light-theme .badge-suspended, body.light-theme .badge-suspended { background: rgba(220, 38, 38, 0.10); color: #b91c1c; border-color: #dc2626; }

/* Suspended Server Card State & Alert */
.server-card.is-suspended {
  border-color: rgba(255, 77, 109, 0.45);
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.05) 0%, var(--ink-2) 100%);
}
.server-card.is-suspended:hover {
  border-color: var(--rose);
}

.server-suspended-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: var(--rad-sm);
  padding: 9px 12px;
  margin: 10px 0 12px 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rose);
  line-height: 1.4;
}

.server-suspended-alert i {
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--rose);
}

.badge-suspend-mini {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 77, 109, 0.18);
  color: var(--rose);
  border: 1px solid rgba(255, 77, 109, 0.4);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Static Server Specs Strip */
.server-static-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 10px;
  margin: 14px 0;
  text-align: center;
}

.static-spec-item .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.static-spec-item .val {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

/* Resource Bars */
.res-metric {
  margin-bottom: 12px;
}

.res-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.res-bar-wrap {
  height: 6px;
  background: var(--ink-3);
  border-radius: 3px;
  overflow: hidden;
}

.res-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Server Actions Collapsible Wrapper (1 Tombol Muncul Semua Aksi) */
.server-actions-wrap {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.btn-srv-toggle {
  width: 100%;
  padding: 11px 14px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  color: var(--text);
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.25s ease;
  user-select: none;
  box-sizing: border-box;
}

.btn-srv-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
  color: var(--orange);
}

.btn-srv-toggle.active {
  border-color: var(--orange);
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.18);
}

.btn-srv-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.btn-srv-toggle-left i {
  color: var(--orange);
  font-size: 0.95rem;
}

.btn-srv-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

.toggle-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-srv-toggle.active .toggle-arrow {
  transform: rotate(180deg);
  color: var(--orange);
}

.server-actions-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.25s ease;
  margin-top: 0;
}

.server-actions-drawer.open {
  max-height: 800px;
  opacity: 1;
  margin-top: 12px;
}

.actions-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  box-sizing: border-box;
}

.actions-section-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.actions-block-header {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.actions-block-header i {
  color: var(--orange);
  font-size: 0.72rem;
}

/* Primary Action: Buka Panel */
.btn-primary-action {
  width: 100% !important;
  background: rgba(255, 106, 0, 0.12) !important;
  border: 1px solid var(--orange) !important;
  color: var(--orange) !important;
  padding: 11px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: var(--rad-sm) !important;
  justify-content: center !important;
}

.btn-primary-action:hover:not(:disabled) {
  background: var(--orange) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.35) !important;
}

/* Action Bars inside Drawer */
.server-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.btn-srv-action {
  padding: 10px 6px;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--rad-sm);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
  min-width: 0;
  box-sizing: border-box;
}

.btn-srv-action i,
.btn-srv-action span,
.btn-srv-manage i,
.btn-srv-manage span {
  pointer-events: none;
}

.btn-srv-action:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-srv-action.start:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); background: rgba(177, 234, 96, 0.08); }
.btn-srv-action.restart:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); background: rgba(255, 170, 0, 0.08); }
.btn-srv-action.stop:hover:not(:disabled) { border-color: var(--rose); color: var(--rose); background: rgba(255, 77, 109, 0.08); }

/* Server Manage Bar (Renew, Upgrade, Rename) */
.server-manage-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 0;
}

.btn-srv-manage {
  padding: 10px 6px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--rad-sm);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-srv-manage:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-srv-manage.rename:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); background: rgba(255, 106, 0, 0.08); }
.btn-srv-manage.renew:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); background: rgba(0, 212, 176, 0.08); }
.btn-srv-manage.upgrade:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); background: rgba(255, 170, 0, 0.08); }

/* Tombol Perpanjang saat server suspend: aktif & mencolok */
.btn-srv-manage.renew.renew-suspended-highlight {
  border-color: var(--teal) !important;
  color: #fff !important;
  background: var(--teal) !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(0, 212, 176, 0.45);
  animation: pulse-renew-btn 2.2s infinite;
}

.btn-srv-manage.renew.renew-suspended-highlight:hover {
  background: #00f0c7 !important;
  color: #0a0a0d !important;
  box-shadow: 0 0 18px rgba(0, 212, 176, 0.7) !important;
  transform: translateY(-1px);
}

@keyframes pulse-renew-btn {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 176, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 212, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 176, 0); }
}

/* Manage Modal */
.manage-modal-content {
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
}

.manage-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.manage-modal-head h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0;
}

.manage-close-btn {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  z-index: 50;
  padding: 0;
  flex-shrink: 0;
}

.manage-close-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(255, 77, 109, 0.15);
}

.manage-close-btn:active {
  transform: scale(0.92);
}

.manage-close-btn i {
  pointer-events: none;
  font-size: 0.95rem;
}

.manage-server-info {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.manage-srv-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.manage-srv-specs {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.manage-srv-specs i { margin-right: 4px; }

.manage-srv-exp {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.manage-section-title {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.manage-packages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manage-package-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 16px;
  transition: border-color 0.2s;
}

.manage-package-card.active { border-color: var(--teal); }
.manage-package-card:hover { border-color: var(--orange); }

.manage-pkg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.manage-pkg-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}

.manage-pkg-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.manage-pkg-badge.active { background: rgba(0, 212, 176, 0.15); color: var(--teal); }
.manage-pkg-badge.upgrade { background: rgba(255, 170, 0, 0.15); color: var(--amber); }

.manage-pkg-specs {
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.manage-pkg-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 12px;
}

.btn-manage-action {
  width: 100%;
  padding: 11px;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--rad-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-manage-action.renew {
  background: var(--teal);
  color: var(--bg);
}

.btn-manage-action.renew:hover { background: #00e6c0; transform: translateY(-1px); }

.btn-manage-action.upgrade {
  background: var(--amber);
  color: var(--bg);
}

.btn-manage-action.upgrade:hover { background: #ffb833; transform: translateY(-1px); }

/* Kode Diskon (Renew) */
.manage-promo-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--rad-sm);
  background: var(--ink-3);
}
.manage-promo-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manage-promo-label i { color: var(--orange); }
.manage-promo-row { display: flex; gap: 8px; }
.manage-promo-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--rad-sm);
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.manage-promo-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.btn-manage-promo {
  flex-shrink: 0;
  padding: 0 20px;
  border-radius: var(--rad-sm);
  border: none;
  cursor: pointer;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}
.btn-manage-promo:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-manage-promo:disabled { opacity: 0.6; cursor: not-allowed; }
.manage-promo-msg {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  min-height: 16px;
}

/* Checkout Confirmation */
.checkout-confirm {
  padding: 4px 0;
}

.checkout-confirm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.checkout-label {
  color: var(--text-dim);
}

.checkout-value {
  font-weight: 600;
  color: var(--text);
}

.checkout-price-box {
  background: var(--ink-3);
  border: 1px solid var(--orange);
  border-radius: var(--rad-sm);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.checkout-price-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.checkout-price-value {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
}
.checkout-price-original {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.checkout-price-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-checkout-cancel {
  flex: 1;
  padding: 12px;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--rad-sm);
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-checkout-cancel:hover { border-color: var(--text-dim); }

.btn-checkout-pay {
  flex: 1.5;
  padding: 12px;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--rad-sm);
  border: none;
  background: var(--lime);
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-checkout-pay:hover { background: #d4ff3c; transform: translateY(-1px); }
.btn-checkout-pay:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Invoice Cards */
.invoice-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.invoice-card:hover {
  border-color: var(--orange);
}

.invoice-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.invoice-id {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.invoice-type {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.invoice-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid;
}

.invoice-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.invoice-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.invoice-detail-row:last-child {
  border-bottom: none;
}

.invoice-detail-label {
  color: var(--text-dim);
}

.invoice-detail-value {
  font-weight: 600;
  color: var(--text);
}

.invoice-price {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
}

.btn-invoice-print {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-invoice-print:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
}

.btn-invoice-cancel {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--rose, #ef4444);
  padding: 0 12px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--mono);
  transition: all 0.2s;
}

.btn-invoice-cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--rose, #ef4444);
  color: #fff;
}

.btn-invoice-pay {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--lime, #10b981);
  padding: 0 12px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--mono);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-invoice-pay:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--lime, #10b981);
  color: #fff;
}

/* Referral System */
.referral-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.referral-stat-box {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-stat-icon {
  font-size: 1.3rem;
  color: var(--orange);
}

.referral-stat-num {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.referral-stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.referral-stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.referral-code-section,
.referral-create-section,
.referral-rewards-section,
.referral-howto {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 20px;
  margin-bottom: 16px;
}

.referral-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.referral-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.referral-badge.active { background: rgba(0, 212, 176, 0.15); color: var(--teal); }

.referral-code-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.referral-code-text {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
  flex: 1;
}

.referral-copy-btn {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.referral-copy-btn:hover { border-color: var(--orange); color: var(--orange); }

.referral-code-info {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.referral-create-form {
  display: flex;
  gap: 10px;
}

.referral-input {
  flex: 1;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 12px 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.referral-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15); }

.referral-create-btn {
  padding: 12px 20px;
  background: var(--lime);
  color: var(--bg);
  border: none;
  border-radius: var(--rad-sm);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.referral-create-btn:hover { background: #d4ff3c; transform: translateY(-1px); }
.referral-create-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.referral-reward-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.referral-reward-card.used { opacity: 0.5; }

.referral-reward-code {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

.referral-reward-discount {
  font-family: var(--display);
  font-weight: 700;
  color: var(--lime);
  font-size: 0.85rem;
}

.referral-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.referral-step-num {
  width: 28px;
  height: 28px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--orange);
  flex-shrink: 0;
}

/* Activity & Login Logs */
.logs-table-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
}

.log-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.log-item-row:last-child {
  border-bottom: none;
}

.log-badge-login {
  background: rgba(0, 212, 176, 0.15);
  color: var(--teal);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.log-badge-action {
  background: rgba(255, 106, 0, 0.15);
  color: var(--orange);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.toast-box {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--rad-sm);
  font-family: var(--mono);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.3s ease;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }
.modal-content {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  padding: 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal-btns { display: flex; gap: 10px; margin-top: 20px; }
.modal-btns button {
  flex: 1;
  padding: 11px;
  border-radius: var(--rad-sm);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  border: none;
}

/* RESPONSIVE OPTIMIZATIONS */
@media (max-width: 768px) {
  .servers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .referral-stats-row {
    grid-template-columns: 1fr;
  }
  .invoice-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .dash-nav-tabs {
    gap: 4px;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .server-card {
    padding: 16px;
  }
  .server-static-specs {
    grid-template-columns: 1fr 1fr;
  }
  .log-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  /* Badge status: wrap rapi saat nama server panjang di layar sempit */
  .server-card-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .badge-status {
    font-size: 0.68rem;
    padding: 3px 10px;
    white-space: nowrap;
  }
}
@media (max-width: 400px) {
  /* HP kecil: spesifikasi jadi 1 kolom agar angka tidak terpotong */
  .server-static-specs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
  }
  .static-spec-item .val {
    font-size: 0.75rem;
  }
  .server-name {
    font-size: 1.05rem;
  }
  .badge-status {
    font-size: 0.62rem;
    padding: 3px 8px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .servers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .referral-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MODE TOGGLE (segmented button, JS-driven slider) ===== */
.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  background: var(--ink-2);
  position: relative;
  padding: 3px;
  margin-right: 10px;
}
.mode-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: calc(var(--rad-sm) - 3px);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.mode-slider.user {
  background: var(--teal);
}
.mode-switch-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-dim);
  transition: color .3s ease;
  white-space: nowrap;
}
.mode-switch-btn.active {
  color: var(--bg);
}
.mode-switch-btn i {
  font-size: .72rem;
}

/* ============================================================
   RESPONSIVE POLISH — TABLET & MOBILE (dashboard, login, admin)
   ============================================================ */

/* TABLET (641px–1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .dash-wrapper {
    padding: 0 16px;
    margin: 24px auto 48px;
  }
  .login-terminal-body {
    padding: 28px 22px;
  }
  .otp-grid input {
    width: 46px;
    height: 54px;
    font-size: 1.4rem;
  }
}

/* MOBILE (≤768px) */
@media (max-width: 768px) {
  /* iOS: cegah auto-zoom saat fokus input (font < 16px) */
  .form-control,
  .otp-grid input,
  .input-wrapper input,
  .input-wrapper select {
    font-size: 16px;
  }
  .login-terminal-body {
    padding: 24px 18px;
  }
  .login-terminal {
    margin: 0 8px;
  }
  .dash-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
  }
  .dash-topbar > div[style] {
    width: 100%;
  }
  .dash-topbar .btn-primary,
  .dash-topbar .btn-ghost {
    flex: 1 1 auto;
    justify-content: center;
  }
  .toast-box {
    left: 14px;
    right: 14px;
    top: 70px;
  }
  .toast-msg {
    width: 100%;
    box-sizing: border-box;
  }
  .stat-box {
    padding: 18px;
  }
  .stat-box .num {
    font-size: 1.6rem;
  }
  .dash-user-info h1 {
    font-size: 1.2rem;
  }
  .modal-content {
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
  }
  .modal-btns {
    flex-direction: column;
  }
  .modal-btns button {
    width: 100%;
  }
}

/* HP KECIL (≤400px): 6 kotak OTP muat tanpa overflow */
@media (max-width: 400px) {
  .otp-grid input {
    width: 38px;
    height: 48px;
    font-size: 1.15rem;
  }
  .login-terminal-body {
    padding: 20px 14px;
  }
}

/* ============================================================
   NAVBAR RESPONSIF — MOBILE (dipakai dashboard & admin)
   Navbar pill awalnya dirancang desktop: logo + menu + mode-switch
   + lang + theme + hamburger membuat navbar overflow di layar kecil.
   ============================================================ */

/* TABLET & HP BESAR (≤768px) */
@media (max-width: 768px) {
  .navbar {
    top: 12px;
    width: calc(100% - 24px);
  }
  .nav-container {
    padding: 6px 6px 6px 14px;
    gap: 8px;
  }
  .nav-logo {
    font-size: .95rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-controls {
    gap: 6px;
    flex-shrink: 0;
  }
  .mode-switch {
    margin-right: 0;
  }
  .mode-switch-btn {
    padding: 6px 10px;
    font-size: .68rem;
    gap: 4px;
  }
  .mode-switch-btn i {
    font-size: .65rem;
  }
  .theme-toggle,
  .hamburger {
    width: 34px;
    height: 34px;
    font-size: .8rem;
    flex-shrink: 0;
  }
  .lang-current {
    height: 34px;
    padding: 0 9px;
    font-size: .72rem;
  }
}

/* HP KECIL (≤480px): semakin padat — mode-switch & kontrol menyusut */
@media (max-width: 480px) {
  .nav-container {
    padding: 5px 5px 5px 12px;
    gap: 6px;
  }
  .nav-logo {
    font-size: .88rem;
  }
  .nav-logo::before {
    width: 8px;
    height: 8px;
  }
  .nav-controls {
    gap: 4px;
  }
  .mode-switch-btn {
    padding: 5px 7px;
    font-size: .62rem;
    letter-spacing: 0;
    gap: 3px;
  }
  .theme-toggle,
  .hamburger {
    width: 32px;
    height: 32px;
    font-size: .75rem;
  }
  .lang-current {
    height: 32px;
    padding: 0 8px;
    font-size: .68rem;
  }
  .lang-current .lang-flag {
    font-size: .85rem;
  }
}

/* HP SANGAT KECIL (≤380px): sembunyikan teks label mode-switch (cukup ikon) */
@media (max-width: 380px) {
  .mode-switch-btn {
    font-size: 0;
    gap: 0;
    padding: 5px 9px;
  }
  .mode-switch-btn i {
    font-size: .7rem;
  }
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS — SERVER ACTIONS DRAWER & DASHBOARD
   ============================================================ */

/* TABLET & MOBILE (≤768px) */
@media (max-width: 768px) {
  .dash-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px;
  }
  .dash-topbar-actions {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .dash-topbar-actions button {
    flex: 1;
    justify-content: center;
  }
  .dash-user-info {
    width: 100%;
    min-width: 0;
  }
  #txtWelcome, #txtAccountEmail {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .btn-srv-toggle {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .actions-drawer-inner {
    padding: 10px;
    gap: 10px;
  }
  .btn-primary-action {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
  }
  .btn-srv-action {
    padding: 9px 4px;
    font-size: 0.78rem;
  }
  .btn-srv-manage {
    padding: 9px 4px;
    font-size: 0.78rem;
  }
}

/* MOBILE (≤480px) */
@media (max-width: 480px) {
  /* Sembunyikan hint kecil pada tombol toggle agar tetap 1 baris ramping */
  .btn-srv-toggle .toggle-hint {
    display: none;
  }
  .server-name {
    font-size: 1.05rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* Grid manage: 2 kolom untuk Perpanjang & Upgrade, Ganti Nama penuh di baris baru */
  .server-manage-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .server-manage-bar .btn-srv-manage:last-child {
    grid-column: span 2;
  }
  .server-actions-bar {
    gap: 6px;
  }
  .btn-srv-action {
    font-size: 0.75rem;
    padding: 8px 3px;
  }
  .btn-srv-manage {
    font-size: 0.76rem;
    padding: 8px 6px;
  }
  /* Stats telemetry: 3 kolom ringkas */
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat-box {
    padding: 12px 6px;
    text-align: center;
  }
  .stat-box .title {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
  }
  .stat-box .num {
    font-size: 1.35rem;
    margin-top: 4px;
  }
  /* Invoice actions responsive */
  .invoice-actions-row {
    flex-direction: column !important;
    width: 100%;
  }
  .invoice-actions-row a,
  .invoice-actions-row button {
    width: 100%;
    justify-content: center;
  }
  /* Referral create form */
  .referral-create-form {
    flex-direction: column;
  }
  .referral-create-btn {
    width: 100%;
    justify-content: center;
  }
}

/* HP SANGAT KECIL (≤360px) */
@media (max-width: 360px) {
  .dash-wrapper {
    padding: 0 10px;
    margin: 16px auto 36px;
  }
  .server-card {
    padding: 14px 10px;
  }
  .dash-topbar-actions {
    flex-direction: column;
    gap: 8px;
  }
  .dash-topbar-actions button {
    width: 100%;
  }
  .btn-srv-action {
    font-size: 0.7rem;
    padding: 7px 2px;
    gap: 3px;
  }
  .btn-srv-action i {
    font-size: 0.7rem;
  }
  .btn-srv-manage {
    font-size: 0.72rem;
    padding: 7px 4px;
  }
  .stat-box .title {
    font-size: 0.55rem;
  }
  .stat-box .num {
    font-size: 1.15rem;
  }
}

/* iOS: cegah auto-zoom saat fokus input yang memakai inline style
   (terutama form modal di admin.html) — font harus >= 16px di mobile */
@media (max-width: 768px) {
  .admin-modal input:not([type="checkbox"]):not([type="radio"]),
  .admin-modal select,
  .admin-modal textarea {
    font-size: 16px;
  }
  /* Modal admin lebih lega di HP */
  .admin-modal {
    width: calc(100% - 24px);
    padding: 18px 16px;
  }
}

/* Preferensi pengguna: kurangi animasi (aksesibilitas, semua halaman) */
@media (prefers-reduced-motion: reduce) {
  .server-card,
  .btn-srv-manage,
  .btn-srv-action,
  .mode-slider,
  .modal-content {
    transition: none !important;
    animation: none !important;
  }
}


/* ============================================================
   ENTERPRISE CLOUD DASHBOARD STYLES (V4)
   ============================================================ */

/* Topbar CTA Button */
.btn-deploy-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--rad-sm);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.4);
  transition: all 0.25s var(--ease);
  border: none;
  cursor: pointer;
}
.btn-deploy-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.55);
}

/* Status Indicator Dot with Pulse */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pill.online {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pill.offline {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}
.status-pill.suspended {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.online .live-dot {
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Days Expiration Warning Badges */
.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
}
.exp-badge.ok {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}
.exp-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 700;
}
.exp-badge.danger {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
  font-weight: 700;
}

/* Invoices Table Modern Styling */
.invoices-table-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.inv-modern-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  text-align: left;
}
.inv-modern-table th {
  padding: 16px 20px;
  background: var(--ink-3);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}
.inv-modern-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-soft);
}
.inv-modern-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.inv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.inv-badge.paid {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.inv-badge.unpaid {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.inv-badge.cancelled, .inv-badge.expired {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Empty State Modern Component */
.dash-empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 18px;
}
.empty-state-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-state-desc {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 420px;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* ============================================================
   DASHBOARD MULTI-DEVICE RESPONSIVE MASTER SUITE
   Breakpoints: 320px, 420px, 600px, 768px, 1024px, 1280px+
   ============================================================ */

/* 1. Large Displays (≥ 1280px) */
@media (min-width: 1280px) {
  .dash-wrapper {
    max-width: 1240px;
    padding: 0 28px;
  }
  .servers-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
  }
}

/* 2. Tablets (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .dash-topbar {
    padding: 22px 20px;
  }
  .servers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* 3. Mobile Screens (≤ 768px) */
@media (max-width: 768px) {
  .dash-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .dash-topbar-actions .btn-deploy-new {
    flex: 1 1 100%;
    order: -1;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.88rem;
  }
  .dash-topbar-actions button,
  .dash-topbar-actions .btn-ghost {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Swipeable Tab Navigation */
  .dash-nav-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    margin-bottom: 20px;
    gap: 6px;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  /* Stats Row 2 Columns on Tablet/Mobile */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-box {
    padding: 16px 14px;
  }
  .stat-box .num {
    font-size: 1.6rem;
  }

  /* Modal Dialog Full Fluid Mobile */
  .modal-overlay {
    padding: 12px;
  }
  .manage-modal-content {
    max-width: 100%;
    width: 100%;
    border-radius: var(--rad-sm);
    padding: 0;
  }
  .manage-modal-body {
    padding: 16px 14px;
  }
}

/* 4. Compact Mobile Phones (≤ 420px) */
@media (max-width: 420px) {
  .dash-wrapper {
    padding: 0 10px;
  }
  .stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .stat-box .num {
    margin-top: 0;
    font-size: 1.45rem;
  }
  .dash-topbar-actions button,
  .dash-topbar-actions .btn-ghost {
    flex: 1 1 100%;
  }
  .server-card {
    padding: 16px 12px;
  }
  .server-static-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px;
  }
  .static-spec-item .label {
    font-size: 0.62rem;
  }
  .static-spec-item .val {
    font-size: 0.75rem;
  }
}



/* ============================================================
   CONSOLE DASHBOARD SIDEBAR & ADVANCED SECTIONS (NEW)
   ============================================================ */
.dash-console-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  background: var(--ink, #0a0a0d);
  position: relative;
  box-sizing: border-box;
}

/* --- SIDEBAR --- */
.dash-sidebar {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  background: var(--ink-2, #121216);
  border-right: 1px solid var(--line-2, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.06));
}

.sidebar-brand .brand-logo {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text, #f0f0f0);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sidebar-brand .brand-logo span {
  color: var(--orange, #ff6a00);
}

.sidebar-brand .brand-pill {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange, #ff6a00);
  border: 1px solid rgba(255, 106, 0, 0.3);
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dim, #9aa0a6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.sidebar-user-card {
  margin: 14px 14px 8px;
  padding: 12px 14px;
  background: var(--ink-3, #18181f);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.06));
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 106, 0, 0.15);
  color: var(--orange, #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-meta-info {
  flex: 1 1 auto;
  min-width: 0;
}

.user-phone-number {
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text, #f0f0f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email-text {
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  color: var(--text-dim, #9aa0a6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Nav Menu Items */
.sidebar-nav {
  padding: 8px 12px;
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim, #71717a);
  padding: 14px 10px 4px;
  text-transform: uppercase;
}

.sidebar-nav-btn,
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim, #9aa0a6);
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: left;
  box-sizing: border-box;
}

.sidebar-nav-btn i,
.sidebar-nav-link i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: var(--text-dim, #9aa0a6);
  transition: color 0.2s ease;
}

.sidebar-nav-btn span:not(.nav-badge):not(.live-dot),
.sidebar-nav-link span {
  flex: 1 1 auto;
}

.sidebar-nav-btn:hover,
.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #f0f0f0);
}

.sidebar-nav-btn:hover i,
.sidebar-nav-link:hover i {
  color: var(--orange, #ff6a00);
}

.sidebar-nav-btn.active {
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange, #ff6a00);
  font-weight: 700;
}

.sidebar-nav-btn.active i {
  color: var(--orange, #ff6a00);
}

.nav-badge {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ink-3, #18181f);
  color: var(--text-dim, #9aa0a6);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
}

.nav-badge.new {
  background: rgba(255, 106, 0, 0.15);
  color: var(--orange, #ff6a00);
  border-color: rgba(255, 106, 0, 0.3);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.live-dot.online {
  background: var(--lime, #b1ea60);
  box-shadow: 0 0 8px var(--lime, #b1ea60);
}

.live-dot.offline {
  background: var(--rose, #ff4d6d);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.06));
  background: var(--ink-2, #121216);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-deploy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: var(--orange, #ff6a00);
  color: #fff;
  font-family: var(--mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px -4px rgba(255, 106, 0, 0.5);
  transition: transform 0.18s ease, background 0.2s ease;
}

.sidebar-deploy-btn:hover {
  background: var(--orange-2, #ff7f24);
  transform: translateY(-1px);
}

.sidebar-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-sub-btn {
  padding: 8px;
  border-radius: 8px;
  background: var(--ink-3, #18181f);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text-dim, #9aa0a6);
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sidebar-sub-btn:hover {
  color: var(--text, #f0f0f0);
  border-color: var(--text-dim, #9aa0a6);
}

.sidebar-sub-btn.logout {
  color: var(--rose, #ff4d6d);
  border-color: rgba(255, 77, 109, 0.25);
}

.sidebar-sub-btn.logout:hover {
  background: rgba(255, 77, 109, 0.1);
}

/* --- MAIN DASHBOARD CONTENT AREA --- */
.dash-main-area {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.dash-top-header {
  height: 64px;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.06));
  background: var(--ink-2, #121216);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
}

.dth-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  color: var(--text, #f0f0f0);
  padding: 7px 10px;
  font-size: 1rem;
  cursor: pointer;
}

.dth-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
}

.dth-root {
  color: var(--text-dim, #9aa0a6);
}

.dth-divider {
  color: var(--text-dim, #71717a);
}

.dth-current {
  color: var(--orange, #ff6a00);
  font-weight: 700;
}

.dth-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(177, 234, 96, 0.08);
  border: 1px solid rgba(177, 234, 96, 0.25);
  color: var(--lime, #b1ea60);
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.system-status-pill:hover {
  background: rgba(177, 234, 96, 0.16);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime, #b1ea60);
  box-shadow: 0 0 8px var(--lime, #b1ea60);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-top-deploy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--orange, #ff6a00);
  color: #fff;
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px -2px rgba(255, 106, 0, 0.5);
  transition: transform 0.18s ease;
}

.btn-top-deploy:hover {
  transform: translateY(-1px);
}

.dash-main-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Mobile Quick Tabs Switcher */
.dash-mobile-tabs {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.dash-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink-2, #121216);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text-dim, #9aa0a6);
  font-family: var(--mono, monospace);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-tab-btn.active {
  background: var(--orange, #ff6a00);
  color: #fff;
  border-color: var(--orange, #ff6a00);
  box-shadow: 0 4px 12px -2px rgba(255, 106, 0, 0.5);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim, #9aa0a6);
  margin: 0;
}

/* ============================================================
   TAB 2: STATUS SERVER VIEW
   ============================================================ */
.status-cluster-banner {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(177, 234, 96, 0.04));
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}

.scb-left {
  max-width: 600px;
}

.scb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(177, 234, 96, 0.12);
  color: var(--lime, #b1ea60);
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.scb-headline {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.scb-desc {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim, #9aa0a6);
  line-height: 1.45;
  margin: 0;
}

.scb-metrics {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.scb-metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.scb-metric-item .m-val {
  font-family: var(--mono, monospace);
  font-size: 1.4rem;
  font-weight: 800;
}

.scb-metric-item .m-lbl {
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  color: var(--text-dim, #9aa0a6);
  text-transform: uppercase;
}

.status-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.node-card {
  background: var(--ink-2, #121216);
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.nc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.nc-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nc-flag {
  font-size: 1.6rem;
}

.nc-title h4 {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.nc-region {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  color: var(--text-dim, #9aa0a6);
}

.nc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
}

.nc-status-badge.online {
  background: rgba(177, 234, 96, 0.12);
  color: var(--lime, #b1ea60);
}

.nc-status-badge.offline {
  background: rgba(255, 77, 109, 0.12);
  color: var(--rose, #ff4d6d);
}

.nc-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ink-3, #18181f);
  padding: 12px 14px;
  border-radius: 10px;
}

.nc-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono, monospace);
  font-size: 0.76rem;
  gap: 10px;
}

.nc-spec-row .lbl {
  color: var(--text-dim, #9aa0a6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nc-spec-row .val {
  color: var(--text, #f0f0f0);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.nc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  color: var(--text-dim, #9aa0a6);
  padding-top: 10px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.06));
}

.ping-tag i { color: var(--teal, #00d2d3); }
.uptime-tag i { color: var(--lime, #b1ea60); }

.status-services-card {
  background: var(--ink-2, #121216);
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 20px;
}

.ssc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ssc-head h3 {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssc-uptime {
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  color: var(--lime, #b1ea60);
  font-weight: 700;
}

.ssc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ssc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--ink-3, #18181f);
  border-radius: 10px;
}

.ssc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ssc-name {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text, #f0f0f0);
}

.ssc-desc {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  color: var(--text-dim, #9aa0a6);
}

.ssc-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--lime, #b1ea60);
}

/* ============================================================
   TAB 3: TIKET BANTUAN SUPPORT VIEW
   ============================================================ */
.ticket-info-banner {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.tib-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tib-text strong {
  display: block;
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.88rem;
  color: var(--text, #f0f0f0);
  margin-bottom: 2px;
}

.tib-text p {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.78rem;
  color: var(--text-dim, #9aa0a6);
  margin: 0;
  line-height: 1.4;
}

.ticket-layout-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.ticket-form-card,
.ticket-history-card {
  background: var(--ink-2, #121216);
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.tfc-head,
.thc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.06));
}

.tfc-head h3,
.thc-head h3 {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tfc-badge {
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.ticket-count-badge {
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ink-3, #18181f);
  color: var(--text-dim, #9aa0a6);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-ticket-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-ticket-state h4 {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.empty-ticket-state p {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.8rem;
  color: var(--text-dim, #9aa0a6);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 420px;
}

.ticket-card-item {
  background: var(--ink-3, #18181f);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tci-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tci-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-id-tag {
  font-family: var(--mono, monospace);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--orange, #ff6a00);
}

.ticket-priority-tag {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.priority-normal { background: rgba(177, 234, 96, 0.12); color: var(--lime, #b1ea60); }
.priority-high { background: rgba(255, 159, 67, 0.15); color: var(--amber, #f59e0b); }
.priority-critical { background: rgba(255, 77, 109, 0.15); color: var(--rose, #ff4d6d); }

.ticket-status-tag {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.status-open { background: rgba(245, 158, 11, 0.12); color: var(--amber, #f59e0b); }
.status-progress { background: rgba(0, 210, 211, 0.12); color: var(--teal, #00d2d3); }
.status-resolved { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.ticket-date {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  color: var(--text-dim, #9aa0a6);
}

.ticket-item-subject {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  margin: 0;
  color: var(--text, #f0f0f0);
}

.ticket-item-meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  color: var(--text-dim, #9aa0a6);
}

.ticket-item-msg {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim, rgba(255, 255, 255, 0.75));
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ticket-item-response {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  padding: 10px 12px;
  border-radius: 6px;
}

.tir-head {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 4px;
}

.tir-body {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.8rem;
  color: var(--text, #f0f0f0);
  line-height: 1.4;
}

.ticket-waiting-hint {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.74rem;
  color: var(--text-dim, #9aa0a6);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- RESPONSIVITAS SIDEBAR & CONSOLE --- */
@media (max-width: 1080px) {
  .ticket-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    height: 100vh;
    z-index: 99999;
    transform: translateX(-100%);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.6);
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: block;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-hamburger-btn {
    display: block;
  }

  .dash-mobile-tabs {
    display: flex;
  }

  .dash-main-scroll {
    padding: 18px 16px;
  }
}

@media (max-width: 768px) {
  .status-cluster-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }
  .scb-metrics {
    width: 100%;
    justify-content: space-between;
  }
  .scb-metric-item {
    align-items: flex-start;
  }
  .dth-right .btn-top-deploy .deploy-label {
    display: none;
  }
  .system-status-pill .ssp-text {
    display: none;
  }
  .status-nodes-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dash-top-header {
    padding: 0 14px;
    height: 56px;
    min-height: 56px;
  }
  .dash-main-scroll {
    padding: 14px 10px;
  }
  .tci-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Light Mode Overrides for Console & Sidebar */
body.light-theme .dash-console-container {
  background: #f7f5ef;
}
body.light-theme .dash-sidebar {
  background: #ffffff;
  border-right-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .sidebar-brand {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .sidebar-brand .brand-logo {
  color: #0a0a0d;
}
body.light-theme .sidebar-user-card {
  background: #f4f4f6;
  border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .user-phone-number {
  color: #0a0a0d;
}
body.light-theme .sidebar-footer {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .sidebar-sub-btn {
  background: #f4f4f6;
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.7);
}
body.light-theme .dash-top-header {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .node-card,
body.light-theme .status-services-card,
body.light-theme .ticket-form-card,
body.light-theme .ticket-history-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
body.light-theme .nc-specs,
body.light-theme .ssc-item,
body.light-theme .ticket-card-item {
  background: #f4f4f6;
}
body.light-theme .ticket-item-subject {
  color: #0a0a0d;
}
body.light-theme .ticket-item-msg {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.85);
}
body.light-theme .mobile-tab-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}
body.light-theme .mobile-tab-btn.active {
  background: var(--orange, #ff6a00);
  color: #fff;
}
