/* ============================================================
   ALPM BILLING PANEL — ENTERPRISE CLOUD DEVELOPER THEME
   Authentic High-Performance Infrastructure Aesthetic (DigitalOcean / AWS / Vultr)
   ============================================================ */
:root {
  /* Surface Layers (Sampled directly from user's reference image: Clean Obsidian Graphite) */
  --bg-0: #0a0a0a;
  --bg-1: #0e1011;
  --bg-2: #111214;
  --bg-3: #161819;
  --bg-elev: #1e2023;
  
  /* Borders (Subtle Architectural Hairlines, Exact match to reference image) */
  --border: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.28);

  /* Typography (High Contrast, Human Authentic Readability) */
  --text-0: #ffffff;
  --text-1: #e4e4e7;
  --text-2: #8a8d91;
  --text-muted: #636366;

  /* Primary Brand Accent (Monochrome Obsidian, High-End SaaS) */
  --accent: #ffffff;
  --accent-hover: #f4f4f5;
  --accent-2: #e4e4e7;
  --accent-glow: transparent;
  --accent-subtle: rgba(255, 255, 255, 0.08);

  /* Semantic Status Colors (Sophisticated Human Palette) */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #0284c7;
  --info-bg: rgba(2, 132, 199, 0.1);

  /* Metrics & Geometry (Human Modern Dimensions) */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-glow: none;
  --transition: 0.15s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; background: #0a0a0a; }

body {
  font-family: var(--font);
  background-color: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: none;
}

a { color: var(--text-0); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-2); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  flex: 1;
  padding: 40px 0 64px;
}

@keyframes fadeInUp {
  from { opacity: 0.8; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0.8; } to { opacity: 1; } }
@keyframes slideInRight {
  from { opacity: 0.8; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(37, 99, 235, 0.15); }
  50% { box-shadow: 0 0 32px rgba(37, 99, 235, 0.3); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CLIENT PORTAL SIDEBAR & LAYOUT (Crafted to Match Reference Design)
   ============================================================ */
:root {
  --client-sidebar-w: 240px;
}

.client-shell {
  display: flex;
  min-height: 100vh;
  background: #0a0a0a;
  position: relative;
  width: 100%;
}

/* Sidebar Container */
.client-sidebar {
  width: var(--client-sidebar-w);
  background: #0e1011;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform var(--transition);
}

/* Brand Header */
.client-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.15s ease;
}
.client-sidebar__brand:hover {
  opacity: 0.95;
  color: #ffffff;
}
.client-sidebar__brand .brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #181a1c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: none;
  flex-shrink: 0;
}
.client-sidebar__brand .brand-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.client-sidebar__brand .brand-txt-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-sidebar__brand .brand-txt-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #71717a;
}

/* Navigation List */
.client-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.client-sidebar__nav::-webkit-scrollbar {
  width: 4px;
}
.client-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.client-sidebar__group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #52525b;
  font-weight: 700;
  padding: 14px 10px 6px;
}
.client-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #8a8d91;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.12s ease;
  border: 1px solid transparent;
  position: relative;
}
.client-sidebar__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}
/* Exact Match to "Billing & Usage" active item in user's image */
.client-sidebar__link.active {
  color: #ffffff;
  background: #1e2023;
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.client-sidebar__link .ico {
  width: 16px;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: #71717a;
  display: grid;
  place-items: center;
  transition: color 0.12s ease;
}
.client-sidebar__link:hover .ico,
.client-sidebar__link.active .ico {
  color: #ffffff;
}
.client-sidebar__link .badge-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Footer */
.client-sidebar__footer {
  padding: 12px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0e1011;
}
.client-sidebar__wallet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: #141517;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.client-sidebar__wallet-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
  font-weight: 600;
}
.client-sidebar__wallet-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--mono);
  line-height: 1.2;
}
.client-sidebar__wallet-btn {
  font-size: 0.74rem;
  font-weight: 600;
  background: #222226;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.client-sidebar__wallet-btn:hover {
  background: #2c2c32;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.client-sidebar__user-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 0;
}
.client-sidebar__user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.client-sidebar__avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #222428;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.client-sidebar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.client-sidebar__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ededed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-sidebar__email {
  font-size: 0.7rem;
  color: #636366;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- CLIENT MAIN AREA ---------- */
.client-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--client-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0a0a0a;
  position: relative;
}

/* Client Topbar */
.client-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.client-sidebar-toggle {
  display: none;
  background: #141517;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  height: 34px;
  width: 34px;
  padding: 0;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.client-sidebar-toggle:hover {
  background: #222428;
  border-color: rgba(255, 255, 255, 0.2);
}
.client-topbar__title {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.client-topbar__title-txt {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.client-topbar__title-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #71717a;
}
.client-topbar__spacer {
  flex: 1;
}
.client-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.client-topbar__wallet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #141517;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.client-topbar__wallet:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1e2023;
  color: #ffffff;
}
.client-topbar__wallet .mono {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
}
.client-topbar__wallet-add {
  font-size: 0.68rem;
  background: #222226;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.client-topbar__admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  background: #141517;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e4e4e7;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.client-topbar__admin-btn:hover {
  background: #1e2023;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.client-topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 5px;
  border-radius: 8px;
  background: #141517;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.client-topbar__user:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1e2023;
  color: #ffffff;
}
.client-topbar__avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #222226;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
}
.client-topbar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.client-topbar__username {
  font-weight: 600;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-topbar__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #141517;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e4e4e7;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  position: relative;
}
.client-topbar__cart-btn:hover {
  background: #1e2023;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.client-topbar__cart-btn .nav-badge {
  background: #10b981;
  color: #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}
.client-topbar__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #8a8d91;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.client-topbar__logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Client Content */
.client-content {
  flex: 1;
  padding: 28px 0 48px;
  min-height: calc(100vh - 64px - 56px);
  background: #0a0a0a;
}
.client-content .container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

/* Client Footer */
.client-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0e1011;
  padding: 16px 0;
  font-size: 0.82rem;
  color: #71717a;
  margin-top: auto;
}
.client-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}
.client-footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.client-footer__links a {
  color: #8a8d91;
  text-decoration: none;
  transition: color 0.15s ease;
}
.client-footer__links a:hover {
  color: #ffffff;
}

/* Backdrop for Mobile */
.client-sidebar-backdrop {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  :root {
    --client-sidebar-w: 230px;
  }
  .client-content .container,
  .client-footer__inner {
    padding: 0 20px;
  }
}

@media (max-width: 900px) {
  .client-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .client-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  }
  .client-main {
    margin-left: 0;
  }
  .client-sidebar-toggle {
    display: inline-flex;
  }
  .client-topbar {
    padding: 0 16px;
    height: 60px;
    gap: 12px;
  }
  .hide-tablet {
    display: none !important;
  }
  .client-sidebar-backdrop.open {
    display: block !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .client-content .container,
  .client-footer__inner {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .client-topbar {
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }
  .client-topbar__title-sub {
    display: none !important;
  }
  .client-topbar__title-txt {
    font-size: 0.95rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .client-topbar__actions {
    gap: 6px;
  }
  .client-topbar__wallet {
    padding: 0 8px;
    height: 32px;
    font-size: 0.78rem;
    gap: 5px;
  }
  .client-topbar__wallet-add {
    display: none !important;
  }
  .client-topbar__admin-btn {
    display: none !important;
  }
  .client-topbar__cart-btn {
    padding: 0 8px;
    height: 32px;
  }
  .client-topbar__user {
    padding: 0 4px;
    height: 32px;
  }
  .client-topbar__logout-btn {
    padding: 0 8px;
    height: 32px;
  }
  .client-sidebar-toggle {
    height: 32px;
    width: 32px;
  }
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  user-select: none;
}
.brand:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand-img-logo {
  height: 32px;
  width: 32px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #000000;
  transition: var(--transition);
  flex-shrink: 0;
}
.brand:hover .brand-logo {
  opacity: 0.9;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  line-height: 1;
}

.brand-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap !important;
}

.brand-subtitle {
  color: #8a8d91;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  white-space: nowrap !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap !important;
  text-decoration: none;
  line-height: 1.2;
}

.nav-links a:hover {
  color: var(--text-0);
  background: var(--bg-2);
  border-color: var(--border);
}

.nav-links a.active {
  color: #ffffff;
  background: #1e2023;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.nav-actions .btn {
  white-space: nowrap !important;
}

.nav-toggle {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-0);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.nav-toggle:hover { border-color: var(--border-hover); background: var(--bg-3); }

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.4);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.98); }

/* Primary Button: Solid Enterprise Cloud Blue */
.btn-primary {
  background: #ffffff;
  color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover {
  background: #f4f4f5;
  border-color: #ffffff;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.12);
}
.btn-primary .svg-icon,
.btn-primary svg {
  stroke: #0a0a0a !important;
  color: #0a0a0a !important;
}

/* Secondary Button (Matches "Edit payment method" button in reference image) */
.btn-secondary {
  background: #222226;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-secondary:hover {
  background: #2c2c32;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

/* Semantic Action Buttons */
.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.btn-success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.btn-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.btn-warning:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.4);
  color: #ffffff;
}

.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-lg { padding: 12px 24px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- CARDS (Matches Reference Image: Clean Matte Dark Slate #111214) ---------- */
.card {
  background: #111214;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-0);
}
.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 2px;
}

/* ---------- STATS GRID ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #111214;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  font-weight: 700;
}
.stat-value {
  font-size: 1.95rem;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.stat-value.accent { color: #ffffff; }
.stat-value.success { color: #10b981; }
.stat-value.warning { color: #fbbf24; }
.stat-value.danger { color: #f87171; }

/* ---------- TABLES ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #111214;
}
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; }
thead th {
  text-align: left;
  padding: 12px 16px;
  background: #161819;
  color: #71717a;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-1);
  vertical-align: middle;
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody td strong, tbody td .mono { color: var(--text-0); }
.mono { font-family: var(--mono); font-size: 0.82rem; }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-success {
  background: var(--success-bg);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.badge-warning {
  background: var(--warning-bg);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.badge-danger {
  background: var(--danger-bg);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.badge-info {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
}
.badge-accent {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border-color: rgba(255, 255, 255, 0.16);
}
.badge-muted {
  background: var(--bg-3);
  color: var(--text-2);
  border-color: var(--border);
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 8px;
}
.form-control,
.form-select,
textarea.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.25);
  background: #0d0e11;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-hint { font-size: 0.78rem; color: var(--text-2); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- ALERTS / FLASH ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  border: 1px solid;
  animation: slideInRight 0.35s ease;
}
.alert-success { background: var(--success-bg); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error, .alert-danger { background: var(--danger-bg); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.alert-warning { background: var(--warning-bg); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #ffffff; }

/* ---------- PAGE HEADER ---------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-0);
}
.page-subtitle { color: var(--text-2); font-size: 0.92rem; margin-top: 4px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.84rem; color: var(--text-2); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text-0); }

/* ---------- HERO / LANDING ---------- */
.hero {
  text-align: center;
  padding: 64px 0 44px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  animation: pulseGlow 3s ease infinite;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-0);
}
.hero h1 .gradient {
  background: linear-gradient(180deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.08rem;
  color: var(--text-1);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- PLAN CARDS ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.plan-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.plan-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.plan-card:hover::after { opacity: 1; }
.plan-card.featured { border-color: rgba(255, 255, 255, 0.35); }
.plan-badge-featured {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #222226;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.plan-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.plan-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-1);
}
.plan-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  display: inline-block;
}
.plan-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  font-weight: 700;
  margin-bottom: 0;
}
.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text-0);
}
.plan-desc {
  font-size: 0.86rem;
  color: var(--text-2);
  margin-bottom: 18px;
  min-height: 40px;
}
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 22px; }
.plan-price .amount {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-0);
}
.plan-price .cycle { color: var(--text-2); font-size: 0.88rem; }
.plan-specs { display: grid; gap: 10px; margin-bottom: 26px; }
.plan-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-1);
  line-height: 1.4;
}
.plan-spec strong { color: var(--text-0); }
.plan-spec .icon {
  color: #ffffff;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plan-spec .icon svg {
  width: 16px;
  height: 16px;
}
.plan-card .btn { margin-top: auto; }

/* ---------- AUTH ---------- */
.auth-wrap {
  max-width: 440px;
  margin: 50px auto 70px;
  padding: 0 16px;
}
.auth-card {
  background: #0d0e11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 38px 32px 30px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.75), 0 1px 1px rgba(255, 255, 255, 0.04);
  position: relative;
}
.auth-brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.auth-header { text-align: center; margin-bottom: 26px; }
.auth-header h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 6px;
}
.auth-header p {
  color: #8a8d96;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}
.auth-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 7px;
  display: block;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.15s ease;
}
.auth-input {
  width: 100%;
  background: #060709;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 14px 11px 40px;
  font-size: 0.92rem;
  color: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: #08090c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.auth-input-wrap:focus-within .auth-input-icon {
  color: #ffffff;
}
.auth-input::placeholder {
  color: #52525b;
}
.auth-input.has-toggle {
  padding-right: 42px;
}
.auth-submit-btn {
  width: 100%;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}
.auth-submit-btn:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.14);
}
.auth-submit-btn:active {
  transform: translateY(0);
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 18px;
  color: #52525b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.auth-divider span {
  padding: 0 12px;
}
.auth-footer-nav {
  text-align: center;
  font-size: 0.86rem;
  color: #8a8d96;
}
.auth-footer-nav a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-footer-nav a:hover {
  text-decoration: underline;
}
.auth-trust-strip {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.74rem;
  color: #71717a;
  flex-wrap: wrap;
}
.auth-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pw-strength-bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pw-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.pw-bar.active-weak { background: #ef4444; }
.pw-bar.active-fair { background: #f59e0b; }
.pw-bar.active-good { background: #3b82f6; }
.pw-bar.active-strong { background: #10b981; }

/* ---------- VPS CARDS ---------- */
.vps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.vps-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.vps-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.vps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.vps-name { font-weight: 700; font-size: 1.08rem; color: var(--text-0); }
.vps-meta { display: grid; gap: 9px; font-size: 0.86rem; }
.vps-meta-row { display: flex; justify-content: space-between; gap: 12px; }
.vps-meta-row .label { color: var(--text-2); }
.vps-meta-row .value { color: var(--text-0); font-weight: 500; text-align: right; }
.vps-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- TIMELINE / ACTIVITY ---------- */
.activity-list { display: grid; gap: 12px; }
.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.activity-item:hover { border-color: var(--border-hover); background: var(--bg-2); }
.activity-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-3);
  color: #ffffff;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 0.92rem; font-weight: 600; color: var(--text-0); }
.activity-time { font-size: 0.76rem; color: var(--text-2); margin-top: 2px; }

/* ---------- ORDER / INVOICE ROWS ---------- */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  transition: var(--transition);
  flex-wrap: wrap;
}
.list-item:hover { border-color: var(--border-hover); background: var(--bg-2); }
.list-item-main { flex: 1; min-width: 180px; }
.list-item-title { font-weight: 600; font-size: 0.95rem; color: var(--text-0); }
.list-item-sub { font-size: 0.8rem; color: var(--text-2); margin-top: 2px; }
.list-item-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- SUMMARY / TOTALS ---------- */
.summary { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text-1); }
.summary-row.total {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-0);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.summary-row.total .value { color: #ffffff; }
.discount { color: #34d399; }

/* ---------- TABS ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tab:hover { color: var(--text-0); border-color: var(--border-hover); }
.tab.active {
  background: #1e2023;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ---------- EMPTY STATE ---------- */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-2);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 14px; opacity: 0.7; }
.empty h3 { color: var(--text-0); font-size: 1.15rem; margin-bottom: 6px; }
.empty p { font-size: 0.88rem; margin-bottom: 18px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  padding: 32px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-2);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text-0); }

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .card[style*="position:sticky"],
  .card[style*="position: sticky"] {
    position: static !important;
    top: auto !important;
  }
}

/* ---------- CLEAN NAVBAR ON MOBILE & TABLET ---------- */
@media (max-width: 640px) {
  .nav-inner {
    height: 58px;
    gap: 8px;
  }
  .brand-img-logo {
    height: 28px;
    width: 28px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: 34px;
  }
}

@media (max-width: 400px) {
  .nav-inner {
    gap: 6px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .nav-links a {
    padding: 5px 8px;
    font-size: 0.78rem;
  }
  .nav-actions .btn {
    padding: 5px 10px;
    font-size: 0.76rem;
  }
}

@media (max-width: 640px) {
  .main-content { padding: 20px 0 36px; }
  .container { padding: 0 14px; }
  .page-title { font-size: 1.45rem; letter-spacing: -0.02em; }
  .hero { padding: 36px 0 20px; }
  .card { padding: 16px; border-radius: var(--radius-sm); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.35rem; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .auth-card { padding: 24px 16px; }
  .plans-grid, .vps-grid { grid-template-columns: 1fr; gap: 14px; }
  .table-wrap { border-radius: var(--radius-sm); width: 100%; -webkit-overflow-scrolling: touch; }
  thead th, tbody td { padding: 10px 12px; font-size: 0.82rem; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: inline-block !important; }
  .list-item { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; }
  .list-item-side { justify-content: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .form-control, .form-select, textarea.form-control { font-size: 16px; }
  .btn { min-height: 40px; }
  .btn-lg { min-height: 46px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-header > div:last-child { width: 100%; }
  .page-header .btn { width: 100%; justify-content: center; }
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.text-success { color: #34d399; }
.text-danger { color: #f87171; }
.text-warning { color: #fbbf24; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Flexbox System */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; min-width: 0; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gap-05 { gap: 4px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-100, .w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- PAYMENT METHODS COMPONENT ---------- */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.payment-method-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
  user-select: none;
}
.payment-method-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
}
.payment-method-card.active,
.payment-method-card:has(input[type="radio"]:checked) {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}
.payment-method-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  outline: none;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  transition: all 0.18s ease;
  background: transparent;
}
.payment-method-card input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
.payment-method-card input[type="radio"]:checked::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}
.pm-content {
  flex: 1;
  min-width: 0;
}
.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.45;
}
.w-100 { width: 100%; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f4a; }

/* ---------- LOADING SPINNER ---------- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- SVG ICONS ---------- */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.brand-logo .svg-icon {
  width: 22px;
  height: 22px;
  color: #000000;
}
.hero-badge .svg-icon {
  vertical-align: -2px;
  margin-right: 6px;
  color: #ffffff;
}
.plan-spec .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  width: 18px;
}
.plan-spec .icon .svg-icon {
  width: 16px;
  height: 16px;
}
.activity-icon .svg-icon {
  width: 18px;
  height: 18px;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-icon .svg-icon {
  width: 48px;
  height: 48px;
  color: var(--text-2);
}
.btn .svg-icon {
  vertical-align: -2px;
  margin-right: 6px;
}
.btn .svg-icon:only-child {
  margin-right: 0;
}
.nav-toggle .svg-icon {
  display: block;
}

/* ---------- SERVER METRICS & USAGE BARS ---------- */
.metric-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.metric-box:hover {
  border-color: var(--border-hover);
}
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.metric-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-0);
}
.metric-title .svg-icon {
  color: #ffffff;
}
.metric-val {
  font-weight: 700;
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
  background: linear-gradient(90deg, #ffffff, #d4d4d8);
}
.progress-bar-fill.success {
  background: linear-gradient(90deg, #10b981, #059669);
}
.progress-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.progress-bar-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.metric-sub {
  margin-top: 7px;
  font-size: 0.76rem;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
}

/* ---------- STATUS PILLS (LIVE VPS STATE) ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.status-pill.running {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.status-pill.stopped {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.status-pill.suspended {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.status-pill.pending {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- PRINT STYLES (INVOICES & RECEIPTS) ---------- */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
  }
  .navbar,
  .footer,
  .breadcrumb,
  .btn,
  button,
  .toast-container,
  form,
  .nav-backdrop {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-content {
    padding: 0 !important;
  }
  .grid-2 {
    display: block !important;
  }
  .card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    color: #111827 !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid;
  }
  .card-title {
    color: #111827 !important;
  }
  .text-muted {
    color: #6b7280 !important;
  }
  .page-title {
    color: #111827 !important;
  }
  .page-subtitle {
    color: #6b7280 !important;
  }
  .summary-row {
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px 0 !important;
    color: #374151 !important;
  }
  .summary-row.total {
    border-top: 2px solid #111827 !important;
    border-bottom: 2px solid #111827 !important;
    color: #111827 !important;
    font-size: 1.15rem !important;
  }
  .summary-row .value {
    color: #111827 !important;
  }
  .badge {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
  }
  .badge-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
  }
  .badge-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
  }
}

/* ============================================================
   ENTERPRISE CLOUD PLANS CATALOG & SERVER CARDS
   ============================================================ */
.mc-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4e4e7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.mc-category-carousel-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mc-category-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 6px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  white-space: nowrap;
}
.mc-category-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
@media (min-width: 1280px) {
  .mc-category-tabs.is-centered {
    justify-content: center;
  }
}
.mc-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #8a8d91;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.mc-tab-item:hover {
  background: #161819;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}
.mc-tab-item.active {
  background: #1e2023;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.mc-tab-item.active .mc-tab-badge {
  background: #2a2c30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.mc-tab-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}
.mc-tab-badge {
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #8a8d91;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1;
}

/* Plans Grid */
.mc-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .mc-plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Individual Plan Card */
.mc-plan-card {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.mc-plan-card:hover {
  background: #141517;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Card Topbar */
.mc-card-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mc-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mc-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #161819;
}
.mc-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}
.mc-popular-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.mc-card-subtitle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #8a8d91;
  margin-top: 2px;
}

/* Card Like Button - Hidden for professional enterprise cloud hosting */
.mc-card-like-btn {
  display: none !important;
}

/* Location and Stock Row */
.mc-card-loc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mc-loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #d4d4d8;
  font-weight: 600;
}
.mc-flag-img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}
.mc-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
}
.mc-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* 4-Metrics Hardware Grid */
.mc-specs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.mc-spec-stat {
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.15s ease;
}
.mc-spec-stat:hover {
  background: #1a1c1e;
  border-color: rgba(255, 255, 255, 0.09);
}
.mc-stat-icon {
  color: #8a8d91;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mc-stat-meta {
  min-width: 0;
}
.mc-stat-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}
.mc-stat-lbl {
  font-size: 0.7rem;
  color: #8a8d91;
  line-height: 1.2;
}

/* Feature Checklist */
.mc-feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mc-feature-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #a1a1aa;
  font-weight: 500;
}
.mc-check-icon {
  color: #10b981;
  flex-shrink: 0;
}

/* Card Footer: Price & CTA */
.mc-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mc-pricing-meta {
  display: flex;
  flex-direction: column;
}
.mc-price-group {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.mc-price-curr {
  font-size: 1rem;
  font-weight: 700;
  color: #a1a1aa;
}
.mc-price-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mc-price-freq {
  font-size: 0.78rem;
  color: #71717a;
  font-weight: 500;
  margin-left: 2px;
}
.mc-setup-meta {
  margin-top: 2px;
}
.mc-free-setup-tag {
  font-size: 0.64rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.04em;
}
.mc-btn-cta {
  background: #ffffff;
  color: #0a0a0a !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
}
.mc-btn-cta:hover {
  background: #f4f4f5;
  border-color: #ffffff;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.12);
}
.mc-btn-cta svg,
.mc-btn-cta .svg-icon {
  stroke: #0a0a0a !important;
  color: #0a0a0a !important;
}

/* ============================================================
   MODERN PLAN DETAIL PAGE
   ============================================================ */
.mc-detail-wrapper {
  max-width: 1200px;
  margin: 0 auto 60px auto;
}
.mc-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #71717a;
  margin-bottom: 24px;
}
.mc-detail-breadcrumbs a {
  color: #a1a1aa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}
.mc-detail-breadcrumbs a:hover {
  color: #ffffff;
}
.mc-crumb-sep {
  color: #3f3f46;
}
.mc-crumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* 2-Column Split Layout */
.mc-detail-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 992px) {
  .mc-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Main Left Column */
.mc-detail-main {
  min-width: 0;
}

/* Plan Hero Card */
.mc-plan-hero-card {
  background: linear-gradient(180deg, #111116 0%, #0c0c0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.mc-hero-card-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
@media (max-width: 600px) {
  .mc-hero-card-header {
    flex-direction: column;
  }
}
.mc-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #18181c;
}
.mc-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-hero-header-text {
  flex: 1;
  min-width: 0;
}
.mc-hero-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mc-badge-category {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.mc-badge-instock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.mc-hero-plan-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.mc-hero-plan-desc {
  font-size: 0.9rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin: 0;
}

/* Datacenter Bar inside Hero Card */
.mc-detail-dc-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
@media (max-width: 700px) {
  .mc-detail-dc-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.mc-dc-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mc-dc-flag {
  width: 38px;
  height: 25px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.mc-dc-icon {
  color: #8a8d91;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mc-dc-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  font-weight: 600;
}
.mc-dc-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1px;
}

/* Section Titles */
.mc-section-title-wrap {
  margin-bottom: 16px;
}
.mc-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px 0;
}
.mc-section-sub {
  font-size: 0.82rem;
  color: #71717a;
}

/* Detail Metrics Grid */
.mc-detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.mc-detail-metric-card {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.15s ease;
}
.mc-detail-metric-card:hover {
  background: #161819;
  border-color: rgba(255, 255, 255, 0.12);
}
.mc-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mc-metric-icon {
  color: #8a8d91;
}
.mc-metric-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #71717a;
  letter-spacing: 0.06em;
}
.mc-metric-main-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mc-metric-sub-val {
  font-size: 0.78rem;
  color: #a1a1aa;
  margin-top: 4px;
}

/* Included Features Detail Grid */
.mc-features-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.mc-feature-box {
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s ease;
}
.mc-feature-box:hover {
  background: #1a1c1e;
  border-color: rgba(255, 255, 255, 0.1);
}
.mc-feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e2023;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mc-feature-content {
  min-width: 0;
}
.mc-feature-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f4f4f5;
  line-height: 1.3;
}
.mc-feature-desc {
  font-size: 0.74rem;
  color: #71717a;
  margin-top: 2px;
}

/* OS Showcase Card */
.mc-os-showcase-card {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px;
}
.mc-os-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.mc-os-card-desc {
  font-size: 0.82rem;
  color: #71717a;
  margin: 0 0 14px 0;
}
.mc-os-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mc-os-badge {
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d4d4d8;
}

/* ==========================================
   STICKY ORDER SIDEBAR
   ========================================== */
.mc-detail-sidebar {
  position: sticky;
  top: 85px;
}
.mc-order-sticky-card {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.mc-order-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mc-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.mc-order-card-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}
.mc-order-specs-chip {
  font-size: 0.8rem;
  color: #a1a1aa;
}

/* Form Fields */
.mc-form-field {
  margin-bottom: 18px;
}
.mc-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d4d4d8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mc-field-opt {
  font-size: 0.72rem;
  color: #71717a;
  text-transform: none;
  font-weight: 400;
}

/* Billing Cycle Options */
.mc-cycle-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-cycle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.mc-cycle-card input {
  display: none;
}
.mc-cycle-card:hover {
  background: #1a1c1e;
  border-color: rgba(255, 255, 255, 0.12);
}
.mc-cycle-card.selected {
  background: #1e2023;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.mc-cycle-radio-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.mc-cycle-card.selected .mc-cycle-radio-circle {
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: none;
}
.mc-cycle-info {
  flex: 1;
  min-width: 0;
}
.mc-cycle-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
}
.mc-cycle-calc {
  font-size: 0.76rem;
  color: #71717a;
}
.mc-cycle-save-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Input with Icon */
.mc-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mc-input-icon {
  position: absolute;
  left: 12px;
  color: #71717a;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.mc-form-input {
  width: 100%;
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.86rem;
  padding: 10px 14px 10px 38px;
  outline: none;
  transition: all 0.15s ease;
}
.mc-form-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

/* Quantity Stepper */
.mc-qty-stepper {
  display: flex;
  align-items: center;
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  width: 140px;
}
.mc-qty-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.1rem;
  font-weight: 700;
  width: 42px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.mc-qty-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.mc-qty-val {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  outline: none;
}

/* Cost Breakdown Box */
.mc-cost-box {
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.mc-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.mc-cost-label {
  color: #a1a1aa;
}
.mc-cost-value {
  color: #ffffff;
  font-weight: 600;
}
.mc-text-success {
  color: #10b981 !important;
}
.mc-cost-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}
.mc-cost-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.mc-total-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #71717a;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.mc-total-cycle {
  font-size: 0.72rem;
  color: #a1a1aa;
}
.mc-total-price {
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Deploy Button */
.mc-btn-deploy {
  width: 100%;
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.mc-btn-deploy:hover {
  background: #f4f4f5;
  border-color: #ffffff;
  transform: none;
  box-shadow: none;
}

/* Trust Badges */
.mc-trust-badges {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #71717a;
}
.mc-trust-item svg {
  color: #10b981;
}


/* ============================================================
   ENTERPRISE INVOICE SHEET & PDF PRINT STYLES
   ============================================================ */
.invoice-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.invoice-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-container {
  max-width: 960px;
  margin: 0 auto;
}

.invoice-sheet {
  background: #08080b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  color: #e4e4e7;
  position: relative;
}

/* Header Row */
.inv-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.inv-brand-col {
  flex: 1;
  min-width: 260px;
}
.inv-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.inv-brand-logo {
  color: #ffffff;
  display: flex;
}
.inv-brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.inv-brand-tagline {
  font-size: 0.82rem;
  color: #a1a1aa;
  margin-bottom: 8px;
}
.inv-brand-meta {
  font-size: 0.78rem;
  color: #71717a;
  line-height: 1.5;
}
.inv-brand-meta a {
  color: #a1a1aa;
  text-decoration: underline;
}

.inv-title-col {
  text-align: right;
  flex-shrink: 0;
}
.inv-doc-label {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.inv-doc-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-top: 3px;
}
.inv-stamp-wrap {
  margin-top: 10px;
}
.official-stamp {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
  transition: transform 0.2s ease;
}
.official-stamp:hover {
  transform: rotate(0deg);
}
.official-stamp.stamp-paid {
  border: 2px solid #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}
.official-stamp.stamp-due {
  border: 2px solid #f59e0b;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}
.official-stamp.stamp-muted {
  border: 2px solid #71717a;
  color: #a1a1aa;
  background: rgba(113, 113, 122, 0.1);
}
.stamp-main {
  font-size: 0.92rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stamp-sub {
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 2px;
}

.inv-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

/* Metadata Grid */
.inv-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.inv-meta-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
}
.inv-meta-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #71717a;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.inv-customer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}
.inv-customer-email {
  font-size: 0.82rem;
  color: #a1a1aa;
  margin-bottom: 4px;
}
.inv-customer-sub {
  font-size: 0.78rem;
  color: #71717a;
  margin-top: 2px;
}
.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.74rem;
  color: #ffffff;
}

.inv-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 0.82rem;
}
.inv-spec-row .lbl {
  color: #71717a;
}
.inv-spec-row .val {
  color: #ffffff;
}

/* Itemized Table */
.inv-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.inv-table {
  width: 100%;
  border-collapse: collapse;
}
.inv-table th {
  background: #111116;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
}
.inv-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  vertical-align: top;
}
.inv-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.inv-specs-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: #e4e4e7;
}
.inv-hostname-note {
  font-size: 0.76rem;
  margin-top: 3px;
}
.inv-features-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.inv-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: #a1a1aa;
}
.inv-location-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #e4e4e7;
}
.flag-mini-inline {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Summary Row */
.inv-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.inv-receipt-seal-box {
  flex: 1;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
}
.receipt-seal-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.receipt-seal-body {
  font-size: 0.8rem;
  line-height: 1.5;
}
.verified-icon {
  color: #10b981;
  display: flex;
}
.due-icon {
  color: #fbbf24;
  display: flex;
}
.receipt-detail-line {
  color: #a1a1aa;
}
.receipt-detail-line strong {
  color: #ffffff;
}
.receipt-security-stamp {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 7px;
  border-radius: 4px;
  margin-top: 6px;
  display: inline-block;
}

.inv-totals-box {
  width: 310px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
}
@media (max-width: 720px) {
  .inv-totals-box {
    width: 100%;
  }
}
.inv-calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.84rem;
  color: #a1a1aa;
}
.inv-calc-line .calc-value {
  color: #ffffff;
}
.inv-calc-line.discount {
  color: #f87171;
}
.inv-calc-line.discount .calc-value {
  color: #f87171;
}
.inv-calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}
.inv-calc-line.grand-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  padding-top: 6px;
}
.inv-calc-line.grand-total .calc-value {
  color: #ffffff;
  font-size: 1.18rem;
}
.inv-calc-line.balance-due {
  font-size: 0.92rem;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 5px;
}
.balance-due.unpaid-due {
  color: #fbbf24;
}
.balance-due.unpaid-due .calc-value {
  color: #fbbf24;
}
.balance-due.paid-settled {
  color: #10b981;
}
.balance-due.paid-settled .calc-value {
  color: #10b981;
}

/* Footer Block */
.inv-footer-block {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  font-size: 0.75rem;
  color: #71717a;
  line-height: 1.5;
}
.inv-footer-block a {
  color: #a1a1aa;
}
.inv-legal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ============================================================
   PRINT & CLIENT PDF RENDER STYLES (STRICT 1-PAGE A4 FORMAT)
   ============================================================ */
.pdf-render-mode {
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 16px 20px !important;
  max-width: 780px !important;
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  font-size: 8.5pt !important;
  line-height: 1.35 !important;
}
.pdf-render-mode .inv-head-row {
  gap: 12px !important;
}
.pdf-render-mode .inv-brand-title {
  font-size: 1.25rem !important;
  color: #0f172a !important;
}
.pdf-render-mode .inv-brand-tagline {
  font-size: 7.5pt !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
}
.pdf-render-mode .inv-brand-meta {
  font-size: 7pt !important;
  color: #64748b !important;
  line-height: 1.3 !important;
}
.pdf-render-mode .inv-brand-meta a {
  color: #0f172a !important;
  text-decoration: none !important;
}
.pdf-render-mode .inv-doc-label {
  font-size: 1.35rem !important;
  color: #0f172a !important;
}
.pdf-render-mode .inv-doc-num {
  font-size: 8.5pt !important;
  color: #64748b !important;
}
.pdf-render-mode .inv-stamp-wrap {
  margin-top: 6px !important;
}
.pdf-render-mode .official-stamp {
  padding: 4px 10px !important;
  font-size: 8pt !important;
  border-radius: 4px !important;
}
.pdf-render-mode .stamp-main {
  font-size: 8.5pt !important;
}
.pdf-render-mode .stamp-sub {
  font-size: 6pt !important;
}
.pdf-render-mode .official-stamp.stamp-paid {
  border: 1.5px solid #16a34a !important;
  color: #16a34a !important;
  background: #dcfce7 !important;
  box-shadow: none !important;
}
.pdf-render-mode .official-stamp.stamp-due {
  border: 1.5px solid #d97706 !important;
  color: #d97706 !important;
  background: #fef3c7 !important;
  box-shadow: none !important;
}
.pdf-render-mode .inv-divider {
  height: 1px !important;
  background: #e2e8f0 !important;
  margin: 10px 0 !important;
}
.pdf-render-mode .inv-meta-grid {
  gap: 12px !important;
  margin-bottom: 10px !important;
}
.pdf-render-mode .inv-meta-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
}
.pdf-render-mode .inv-meta-card-label {
  font-size: 6.5pt !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
}
.pdf-render-mode .inv-customer-name {
  font-size: 9.5pt !important;
  color: #0f172a !important;
}
.pdf-render-mode .inv-customer-email {
  font-size: 7.5pt !important;
  color: #64748b !important;
  margin-bottom: 2px !important;
}
.pdf-render-mode .inv-customer-sub {
  font-size: 7pt !important;
  color: #64748b !important;
  margin-top: 2px !important;
}
.pdf-render-mode .region-pill {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  padding: 1px 5px !important;
  font-size: 7pt !important;
}
.pdf-render-mode .inv-spec-row {
  padding: 1.5px 0 !important;
  font-size: 7.5pt !important;
}
.pdf-render-mode .inv-spec-row .lbl {
  color: #64748b !important;
}
.pdf-render-mode .inv-spec-row .val {
  color: #0f172a !important;
}
.pdf-render-mode .inv-table-wrap {
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 10px !important;
  border-radius: 6px !important;
}
.pdf-render-mode .inv-table th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  padding: 6px 10px !important;
  font-size: 7pt !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.pdf-render-mode .inv-table td {
  padding: 7px 10px !important;
  font-size: 7.5pt !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}
.pdf-render-mode .inv-item-title {
  font-size: 8.5pt !important;
  color: #0f172a !important;
  margin-bottom: 3px !important;
}
.pdf-render-mode .inv-specs-strip {
  gap: 4px !important;
  margin-bottom: 2px !important;
}
.pdf-render-mode .spec-chip {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-size: 6.5pt !important;
  padding: 1px 5px !important;
}
.pdf-render-mode .inv-hostname-note {
  font-size: 7pt !important;
  margin-top: 2px !important;
  color: #64748b !important;
}
.pdf-render-mode .inv-features-list {
  gap: 4px !important;
  margin-top: 3px !important;
}
.pdf-render-mode .inv-feature-tag {
  font-size: 6.5pt !important;
  color: #64748b !important;
}
.pdf-render-mode .inv-summary-row {
  gap: 12px !important;
  margin-bottom: 10px !important;
}
.pdf-render-mode .inv-receipt-seal-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
}
.pdf-render-mode .receipt-seal-title {
  font-size: 7pt !important;
  margin-bottom: 5px !important;
  color: #334155 !important;
}
.pdf-render-mode .receipt-seal-body {
  font-size: 7.5pt !important;
  line-height: 1.4 !important;
}
.pdf-render-mode .receipt-detail-line {
  color: #64748b !important;
}
.pdf-render-mode .receipt-detail-line strong {
  color: #0f172a !important;
}
.pdf-render-mode .receipt-security-stamp {
  background: #dcfce7 !important;
  color: #16a34a !important;
  border: 1px solid #86efac !important;
  font-size: 6.5pt !important;
  padding: 2px 6px !important;
  margin-top: 4px !important;
}
.pdf-render-mode .inv-totals-box {
  width: 270px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
}
.pdf-render-mode .inv-calc-line {
  padding: 2px 0 !important;
  font-size: 7.5pt !important;
  color: #64748b !important;
}
.pdf-render-mode .inv-calc-line .calc-value {
  color: #0f172a !important;
}
.pdf-render-mode .inv-calc-divider {
  margin: 4px 0 !important;
  background: #cbd5e1 !important;
}
.pdf-render-mode .inv-calc-line.grand-total {
  font-size: 10pt !important;
  padding-top: 4px !important;
  color: #0f172a !important;
}
.pdf-render-mode .inv-calc-line.grand-total .calc-value {
  font-size: 10.5pt !important;
  color: #0f172a !important;
}
.pdf-render-mode .inv-calc-line.balance-due {
  font-size: 8.5pt !important;
  padding-top: 4px !important;
  margin-top: 3px !important;
}
.pdf-render-mode .inv-footer-block {
  margin-top: 8px !important;
  padding-top: 6px !important;
  border-top: 1px solid #e2e8f0 !important;
  font-size: 6.5pt !important;
  color: #64748b !important;
  line-height: 1.35 !important;
}
.pdf-render-mode .inv-legal-foot {
  margin-top: 4px !important;
  font-size: 6pt !important;
  color: #94a3b8 !important;
}
.pdf-render-mode .text-white {
  color: #0f172a !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 8mm;
  }
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 8.5pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .navbar,
  .footer,
  .breadcrumb,
  .no-print,
  .btn,
  button,
  .invoice-header-actions,
  .toast-container,
  #paymentSection {
    display: none !important;
  }
  .invoice-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .invoice-sheet {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    padding: 16px 20px !important;
    border-radius: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .inv-brand-title { font-size: 1.25rem !important; color: #0f172a !important; }
  .inv-brand-tagline { font-size: 7.5pt !important; color: #64748b !important; margin-bottom: 4px !important; }
  .inv-brand-meta { font-size: 7pt !important; color: #64748b !important; line-height: 1.3 !important; }
  .inv-brand-meta a { color: #0f172a !important; text-decoration: none !important; }
  .inv-doc-label { font-size: 1.35rem !important; color: #0f172a !important; }
  .inv-doc-num { font-size: 8.5pt !important; color: #64748b !important; }
  .inv-stamp-wrap { margin-top: 6px !important; }
  .official-stamp { padding: 4px 10px !important; font-size: 8pt !important; }
  .stamp-main { font-size: 8.5pt !important; }
  .stamp-sub { font-size: 6pt !important; }
  .official-stamp.stamp-paid { border: 1.5px solid #16a34a !important; color: #16a34a !important; background: #dcfce7 !important; box-shadow: none !important; }
  .official-stamp.stamp-due { border: 1.5px solid #d97706 !important; color: #d97706 !important; background: #fef3c7 !important; box-shadow: none !important; }
  .inv-divider { height: 1px !important; background: #e2e8f0 !important; margin: 10px 0 !important; }
  .inv-meta-grid { gap: 12px !important; margin-bottom: 10px !important; }
  .inv-meta-card { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; padding: 10px 12px !important; border-radius: 6px !important; }
  .inv-meta-card-label { font-size: 6.5pt !important; color: #64748b !important; margin-bottom: 4px !important; }
  .inv-customer-name { font-size: 9.5pt !important; color: #0f172a !important; }
  .inv-customer-email { font-size: 7.5pt !important; color: #64748b !important; margin-bottom: 2px !important; }
  .inv-customer-sub { font-size: 7pt !important; color: #64748b !important; margin-top: 2px !important; }
  .region-pill { background: #e2e8f0 !important; color: #0f172a !important; padding: 1px 5px !important; font-size: 7pt !important; }
  .inv-spec-row { padding: 1.5px 0 !important; font-size: 7.5pt !important; }
  .inv-spec-row .lbl { color: #64748b !important; }
  .inv-spec-row .val { color: #0f172a !important; }
  .inv-table-wrap { border: 1px solid #e2e8f0 !important; margin-bottom: 10px !important; border-radius: 6px !important; }
  .inv-table th { background: #f1f5f9 !important; color: #334155 !important; padding: 6px 10px !important; font-size: 7pt !important; border-bottom: 1px solid #e2e8f0 !important; }
  .inv-table td { padding: 7px 10px !important; font-size: 7.5pt !important; border-top: 1px solid #e2e8f0 !important; color: #1e293b !important; }
  .inv-item-title { font-size: 8.5pt !important; color: #0f172a !important; margin-bottom: 3px !important; }
  .inv-specs-strip { gap: 4px !important; margin-bottom: 2px !important; }
  .spec-chip { background: #f1f5f9 !important; border: 1px solid #cbd5e1 !important; color: #334155 !important; font-size: 6.5pt !important; padding: 1px 5px !important; }
  .inv-hostname-note { font-size: 7pt !important; margin-top: 2px !important; color: #64748b !important; }
  .inv-features-list { gap: 4px !important; margin-top: 3px !important; }
  .inv-feature-tag { font-size: 6.5pt !important; color: #64748b !important; }
  .inv-summary-row { gap: 12px !important; margin-bottom: 10px !important; }
  .inv-receipt-seal-box { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; padding: 10px 12px !important; border-radius: 6px !important; }
  .receipt-seal-title { font-size: 7pt !important; margin-bottom: 5px !important; color: #334155 !important; }
  .receipt-seal-body { font-size: 7.5pt !important; line-height: 1.4 !important; }
  .receipt-detail-line { color: #64748b !important; }
  .receipt-detail-line strong { color: #0f172a !important; }
  .receipt-security-stamp { background: #dcfce7 !important; color: #16a34a !important; border: 1px solid #86efac !important; font-size: 6.5pt !important; padding: 2px 6px !important; margin-top: 4px !important; }
  .inv-totals-box { width: 270px !important; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; padding: 10px 14px !important; border-radius: 6px !important; }
  .inv-calc-line { padding: 2px 0 !important; font-size: 7.5pt !important; color: #64748b !important; }
  .inv-calc-line .calc-value { color: #0f172a !important; }
  .inv-calc-divider { margin: 4px 0 !important; background: #cbd5e1 !important; }
  .inv-calc-line.grand-total { font-size: 10pt !important; padding-top: 4px !important; color: #0f172a !important; }
  .inv-calc-line.grand-total .calc-value { font-size: 10.5pt !important; color: #0f172a !important; }
  .inv-calc-line.balance-due { font-size: 8.5pt !important; padding-top: 4px !important; margin-top: 3px !important; }
  .inv-footer-block { margin-top: 8px !important; padding-top: 6px !important; border-top: 1px solid #e2e8f0 !important; font-size: 6.5pt !important; color: #64748b !important; line-height: 1.35 !important; }
  .inv-legal-foot { margin-top: 4px !important; font-size: 6pt !important; color: #94a3b8 !important; }
  .text-white { color: #0f172a !important; }
}

/* ============================================================
   PASSWORD & SECURITY STYLES (/profile)
   ============================================================ */
.password-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}
.password-input-wrap .form-control {
  padding-right: 44px !important;
  width: 100% !important;
}
.btn-toggle-pw {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  color: #a1a1aa !important;
  cursor: pointer !important;
  padding: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  transition: color 0.15s, background 0.15s !important;
  z-index: 5 !important;
  line-height: 1 !important;
}
.btn-toggle-pw:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}
.btn-toggle-pw:focus {
  outline: none !important;
  color: #6366f1 !important;
}
  color: #6366f1;
}
.pw-strength-container {
  margin-top: 8px;
}
.pw-strength-track {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.25s ease, background-color 0.25s ease;
  border-radius: 2px;
}
.pw-strength-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.pw-match-badge {
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pw-match-badge.match-ok {
  color: #10b981;
}
.pw-match-badge.match-error {
  color: #ef4444;
}
.alpm-sync-card {
  background: #111214;
  border: 1px solid #1f2023;
  border-radius: 12px;
  padding: 20px;
}

/* ============================================================
   PROFILE AVATAR & IDENTITY COMPONENT
   ============================================================ */
.profile-avatar-card {
  background: #111214;
  border: 1px solid #1f2023;
  border-radius: 12px;
  padding: 20px;
}
.profile-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #1c1d22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   UNIVERSAL DARK THEME FILE INPUT & BUTTON STYLES
   ============================================================ */
input[type="file"].form-control,
.form-control[type="file"] {
  padding: 7px 12px;
  cursor: pointer;
  background: var(--bg-1, #0a0a0d);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-2, #94a3b8);
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="file"].form-control:hover,
input[type="file"].form-control:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-2, #101014);
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 14px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 12px;
  font-family: inherit;
  transition: all 0.15s ease;
}
input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* ============================================================
   UNIVERSAL DANGER CONFIRMATION MODAL (OLED DARK)
   ============================================================ */
.danger-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.danger-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.danger-modal-dialog {
  position: relative;
  background: linear-gradient(180deg, #15151c 0%, #0a0a0d 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 60px -10px rgba(239, 68, 68, 0.3), 0 30px 60px -15px rgba(0, 0, 0, 0.95);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 30px 26px 24px;
  text-align: center;
  transform: scale(0.92) translateY(14px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.danger-modal-backdrop.active .danger-modal-dialog {
  transform: scale(1) translateY(0);
}
.danger-modal-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ef4444, #f87171, #ef4444, transparent);
  box-shadow: 0 0 20px #ef4444;
}
.danger-modal-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  animation: dangerPulse 2s infinite ease-in-out;
}
@keyframes dangerPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.danger-modal-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.015em;
}
.danger-modal-desc {
  font-size: 0.9rem;
  color: #a1a1aa;
  line-height: 1.55;
  margin: 0 0 24px 0;
  word-break: break-word;
}
.danger-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.danger-modal-actions .btn {
  flex: 1;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}
.danger-modal-cancel {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #d4d4d8 !important;
}
.danger-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.danger-modal-confirm {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  border: 1px solid #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
}
.danger-modal-confirm:hover {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%) !important;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.65);
  transform: translateY(-1px);
}

/* --- Dynamic Action Modal Variants --- */
/* Success Variant (Payments, Confirm, Mark Paid, Provision, Verify) */
.danger-modal-dialog.modal-variant-success {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 60px -10px rgba(16, 185, 129, 0.35), 0 30px 60px -15px rgba(0, 0, 0, 0.95) !important;
}
.danger-modal-dialog.modal-variant-success .danger-modal-glow {
  background: linear-gradient(90deg, transparent, #10b981, #34d399, #10b981, transparent) !important;
  box-shadow: 0 0 24px #10b981 !important;
}
.danger-modal-dialog.modal-variant-success .danger-modal-icon {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  animation: successModalPulse 2s infinite ease-in-out !important;
}
.danger-modal-dialog.modal-variant-success .danger-modal-confirm {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45) !important;
}
.danger-modal-dialog.modal-variant-success .danger-modal-confirm:hover {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.65) !important;
}
@keyframes successModalPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Warning Variant (Suspend, Close Ticket, Restart) */
.danger-modal-dialog.modal-variant-warning {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 60px -10px rgba(245, 158, 11, 0.35), 0 30px 60px -15px rgba(0, 0, 0, 0.95) !important;
}
.danger-modal-dialog.modal-variant-warning .danger-modal-glow {
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent) !important;
  box-shadow: 0 0 24px #f59e0b !important;
}
.danger-modal-dialog.modal-variant-warning .danger-modal-icon {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  animation: warningModalPulse 2s infinite ease-in-out !important;
}
.danger-modal-dialog.modal-variant-warning .danger-modal-confirm {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #fbbf24 !important;
  color: #0b0f19 !important;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
}
.danger-modal-dialog.modal-variant-warning .danger-modal-confirm:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.65) !important;
}
@keyframes warningModalPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Primary / Info Variant (Standard Confirmation, Notice, Submit) */
.danger-modal-dialog.modal-variant-primary,
.danger-modal-dialog.modal-variant-info {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
.danger-modal-dialog.modal-variant-primary .danger-modal-glow,
.danger-modal-dialog.modal-variant-info .danger-modal-glow {
  background: none !important;
  box-shadow: none !important;
}
.danger-modal-dialog.modal-variant-primary .danger-modal-icon,
.danger-modal-dialog.modal-variant-info .danger-modal-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.danger-modal-dialog.modal-variant-primary .danger-modal-confirm,
.danger-modal-dialog.modal-variant-info .danger-modal-confirm {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #0a0a0a !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}
.danger-modal-dialog.modal-variant-primary .danger-modal-confirm:hover,
.danger-modal-dialog.modal-variant-info .danger-modal-confirm:hover {
  background: #f4f4f5 !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* Danger Variant (Delete, Wipe, Terminate) */
.danger-modal-dialog.modal-variant-danger {
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 60px -10px rgba(239, 68, 68, 0.3), 0 30px 60px -15px rgba(0, 0, 0, 0.95) !important;
}
.danger-modal-dialog.modal-variant-danger .danger-modal-glow {
  background: linear-gradient(90deg, transparent, #ef4444, #f87171, #ef4444, transparent) !important;
  box-shadow: 0 0 20px #ef4444 !important;
}
.danger-modal-dialog.modal-variant-danger .danger-modal-icon {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  animation: dangerPulse 2s infinite ease-in-out !important;
}
.danger-modal-dialog.modal-variant-danger .danger-modal-confirm {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  border: 1px solid #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45) !important;
}

/* ============================================================
   WORLD-CLASS MODERN DEVELOPER CLOUD HERO (Vercel / Railway / Supabase Style)
   ============================================================ */
.hero-wrapper {
  position: relative;
  width: 100%;
  margin-top: -10px;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Subtle top glow & mesh - clean, restrained architectural atmosphere */
.hero-glow-beam {
  display: none !important;
}
.hero-grid-matrix {
  display: none !important;
}

/* Announcement Pill (Refined enterprise indicator) */
.hero-announcement-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  margin-bottom: 26px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hero-announcement-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.pill-status-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}
.pill-status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: pillPing 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pillPing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pill-accent-badge {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.78rem;
}
.pill-divider-slash {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}
.pill-subtext {
  color: #94a3b8;
}
.pill-arrow-icon {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}
.hero-announcement-pill:hover .pill-arrow-icon {
  transform: translateX(3px);
  color: #ffffff;
}

/* Master-Class Typography */
.hero-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto 22px;
}
.hero-gradient-text {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: initial;
  display: inline;
}
.hero-accent-gradient {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: initial;
  display: inline;
}

.hero-subhead {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #94a3b8;
  max-width: 660px;
  margin: 0 auto 34px;
  line-height: 1.6;
  font-weight: 400;
}

/* Engineered Dual CTAs */
.hero-cta-bar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  color: #0a0a0a !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
}
.hero-btn-primary:hover {
  background: #f4f4f5;
  border-color: #ffffff;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.12);
}
.hero-btn-primary .svg-icon,
.hero-btn-primary svg {
  stroke: #0a0a0a !important;
  color: #0a0a0a !important;
}
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e4e4e7 !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
  color: #ffffff !important;
}
.hero-kbd-badge {
  display: inline-flex;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: #a1a1aa;
}

/* ============================================================
   CENTERPIECE: INTERACTIVE CLUSTER TERMINAL WINDOW (High-Tech Dark UI)
   ============================================================ */
.hero-terminal-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.terminal-window {
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 0 60px -15px rgba(99, 102, 241, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  text-align: left;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(20, 20, 26, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.terminal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; opacity: 0.85; }
.dot-yellow { background: #eab308; opacity: 0.85; }
.dot-green { background: #22c55e; opacity: 0.85; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #71717a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.terminal-content {
  padding: 22px 24px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #d4d4d8;
}
.term-line-cmd {
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.term-prompt {
  color: #38bdf8;
}
.term-check {
  color: #10b981;
  font-weight: 700;
  margin-right: 6px;
}
.term-label {
  color: #a1a1aa;
}
.term-val {
  color: #f4f4f5;
  font-weight: 600;
}
.term-dim {
  color: #71717a;
}
.term-success-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  color: #6ee7b7;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Cluster Micro Telemetry Grid Inside Terminal */
.terminal-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 680px) {
  .terminal-telemetry-row { grid-template-columns: 1fr; }
}
.telemetry-cell {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.telemetry-cell-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #71717a;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.telemetry-cell-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}
.telemetry-cell-sub {
  font-size: 0.74rem;
  color: #10b981;
}

/* Sleek Minimalist Metrics Bar Below Terminal */
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 960px;
  margin: 36px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
  .hero-metrics-bar { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
}
.metric-col {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.metric-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
  .metric-col:nth-child(2)::after { display: none; }
}
.metric-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.metric-title {
  font-size: 0.74rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 6px;
}

/* Category Filter Carousel Wrapper */
.landing-cat-carousel-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-cat-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 10px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.landing-cat-tabs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Hidden Scrollbar for Handcrafted Native Feel */
.landing-cat-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.landing-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #8a8d91;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.landing-cat-tab:hover {
  background: #161819;
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.landing-cat-tab.active {
  background: #1e2023;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.landing-cat-tab.active:hover {
  background: #25282c;
  color: #ffffff;
}

/* Left & Right Nav Scroll Buttons - Completely beside the tabs, no overlap */
.landing-cat-nav-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8d91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
  z-index: 2;
  margin-bottom: 4px;
}

.landing-cat-nav-btn:hover:not(:disabled):not(.is-hidden) {
  background: #1e2023;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.landing-cat-nav-btn:active:not(:disabled):not(.is-hidden) {
  transform: translateY(0);
}

.landing-cat-nav-btn:disabled,
.landing-cat-nav-btn.is-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .landing-cat-nav-btn {
    display: none !important;
  }
  .landing-cat-carousel-wrap {
    gap: 0;
  }
}

/* Features Grid */
.landing-section-title {
  text-align: center;
  margin: 60px 0 36px;
}
.landing-section-title h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.landing-section-title p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .landing-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .landing-features-grid { grid-template-columns: 1fr; }
}
.landing-feature-card {
  background: linear-gradient(180deg, #121218 0%, #0b0b0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 26px 22px;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}
.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.2);
}
.landing-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 18px;
}
.landing-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.landing-feature-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* Global Datacenters Strip */
.datacenter-strip {
  background: linear-gradient(180deg, #101015 0%, #09090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 24px;
  margin-bottom: 60px;
}
.dc-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.dc-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}
.dc-pill img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
.dc-latency {
  font-size: 0.75rem;
  color: #22c55e;
  font-family: 'JetBrains Mono', monospace;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: linear-gradient(180deg, #131319 0%, #0c0c0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
  user-select: none;
}
.faq-icon-arrow {
  transition: transform 0.25s ease;
  color: #94a3b8;
}
.faq-item.open .faq-icon-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 22px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 22px 18px;
  transition: max-height 0.35s ease-in-out, padding 0.3s ease;
}

/* Bottom CTA Banner */
.landing-cta {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.25), transparent 70%),
              linear-gradient(180deg, #13131b 0%, #08080b 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 50px -15px rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.landing-cta h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}
.landing-cta p {
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================================
   ACCOUNT CREDITS & WALLET TOP-UP STYLING
   ============================================================ */
.nav-credits-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 5px 10px !important;
}
.nav-credits-pill:hover {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  transform: translateY(-1px);
}
.wallet-hero-card {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}
.wallet-balance-display {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wallet-preset-btns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.wallet-preset-btn {
  background: #222226;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 7px 10px;
  color: #e4e4e7;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: center;
}
.wallet-preset-btn:hover, .wallet-preset-btn.active {
  background: #2c2c32;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.wallet-perk-card {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color 0.15s ease;
}
.wallet-perk-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.wallet-perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #161819;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  flex-shrink: 0;
}




/* ============================================================
   COMPREHENSIVE RESPONSIVE & MOBILE OVERRIDES (A TO Z)
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
.client-shell, .client-main, .client-content {
  max-width: 100%;
  overflow-x: hidden;
}

.vps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.server-power-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 992px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .mc-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .mc-detail-sidebar {
    position: static !important;
    width: 100% !important;
    top: auto !important;
  }
  .card[style*="position:sticky"],
  .card[style*="position: sticky"] {
    position: static !important;
  }
}

@media (max-width: 768px) {
  .client-content {
    padding: 16px 0 32px !important;
  }
  .client-content .container {
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .card, .vps-card, .wallet-hero-card {
    padding: 18px 14px !important;
    border-radius: 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
  }
  .page-header > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .vps-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .server-power-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .mc-plans-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .table-wrap, .inv-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }
  .table-wrap table {
    min-width: 540px !important;
  }
  .inv-table {
    min-width: 620px !important;
  }
  .mc-type-switcher-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 8px !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .mc-type-switcher-wrap::-webkit-scrollbar {
    display: none;
  }
  .mc-type-pill {
    flex-shrink: 0 !important;
  }
  .terminal-window {
    height: 280px !important;
    max-height: 50vh !important;
  }
  .inv-card {
    padding: 18px 14px !important;
  }
}

@media (max-width: 480px) {
  .client-topbar {
    padding: 0 10px !important;
    height: 54px !important;
  }
  .client-topbar__title-txt {
    font-size: 0.88rem !important;
    max-width: 120px !important;
  }
  .client-topbar__wallet {
    padding: 0 8px !important;
    font-size: 0.78rem !important;
    height: 30px !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .client-content .container {
    padding: 0 10px !important;
  }
  .card, .vps-card, .wallet-hero-card {
    padding: 16px 12px !important;
    border-radius: 10px !important;
  }
  .server-power-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .server-power-grid .btn {
    padding: 10px 4px !important;
    font-size: 0.80rem !important;
  }
  .deposit-quick-btns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .deposit-quick-btns button {
    width: 100% !important;
    min-height: 40px !important;
    font-size: 0.82rem !important;
  }
  .deposit-input-row {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .deposit-input-row input,
  .deposit-input-row button {
    width: 100% !important;
  }
  .deposit-input-row button {
    min-height: 42px !important;
  }
  .password-input-wrap input {
    font-size: 16px !important;
    padding-right: 44px !important;
  }
  .btn-toggle-pw {
    min-width: 42px !important;
    min-height: 42px !important;
  }
  .mc-hero-card-header {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .mc-detail-dc-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .mc-detail-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .btn-lg {
    font-size: 0.9rem !important;
    padding: 12px 16px !important;
  }
}
