/* ========================================
   ZelpStore Billing — Premium Design System v3
   Violet/Sky dark premium theme
   ======================================== */

:root {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(22, 33, 62, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.07);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #8b5cf6;
  --accent-secondary: #0ea5e9;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #0ea5e9 100%);
  --accent-gradient-hover: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
  --accent-glow: 0 0 35px rgba(139, 92, 246, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.4);
  --font-family: 'Outfit', -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.15s cubic-bezier(.4, 0, .2, 1);
  --transition-normal: 0.3s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: 0.5s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100vh;
}

#layout-container {
  overflow-x: hidden;
  width: 100%;
}

/* Animated mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: meshShift 20s ease-in-out infinite alternate;
}

/* Noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

@keyframes meshShift {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%
  }

  100% {
    background-position: 100% 20%, 0% 80%, 30% 70%
  }
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: var(--transition-fast)
}

a:hover {
  color: #22d3ee
}

/* ========================================
   Navbar
   ======================================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 7, 17, 0.8);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-family);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-input)
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.15)
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px
}

.nav-balance {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem
}

.btn-block {
  width: 100%
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important
}

.btn-topup {
  width: 100%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  font-size: 0.8rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-family);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.btn-topup:hover {
  background: rgba(16, 185, 129, 0.2)
}

/* ========================================
   Cards
   ======================================== */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-normal);
  position: relative;
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color)
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary)
}

/* ========================================
   Forms
   ======================================== */

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-normal);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted)
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2394a3b8'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary)
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 6px
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 60px;
  position: relative;
  overflow: hidden;
}

/* Floating orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero::before {
  width: 500px;
  height: 500px;
  top: 10%;
  left: 15%;
  background: rgba(124, 58, 237, 0.15);
}

.hero::after {
  width: 400px;
  height: 400px;
  bottom: 15%;
  right: 10%;
  background: rgba(6, 182, 212, 0.12);
  animation-delay: -6s;
  animation-direction: alternate-reverse;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(30px, -40px) scale(1.1)
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95)
  }

  100% {
    transform: translate(15px, -15px) scale(1.05)
  }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: -2px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.modern-hero {
  padding-top: 160px
}

/* Trust bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 80px 2rem;
  position: relative;
  z-index: 1
}

.section-container {
  max-width: 1200px;
  margin: 0 auto
}

.section-header {
  text-align: center;
  margin-bottom: 60px
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  text-align: center
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6
}

/* ========================================
   Pricing
   ======================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.pricing-card.featured {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(124, 58, 237, 0.3);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 40px
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 4px
}

.pricing-price .currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary)
}

.pricing-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px
}

.pricing-specs {
  text-align: left;
  margin-bottom: 28px
}

.pricing-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.pricing-spec:last-child {
  border-bottom: none
}

.pricing-spec .spec-label {
  color: var(--text-secondary)
}

.pricing-spec .spec-value {
  font-weight: 600;
  color: var(--text-primary)
}

/* ========================================
   Dashboard Layout
   ======================================== */

.dashboard {
  padding: 84px 2rem 40px;
  max-width: 1200px;
  margin: 0 auto
}

.dashboard-header {
  margin-bottom: 32px
}

.dashboard-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px
}

.dashboard-header p {
  color: var(--text-secondary)
}

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

.stat-card {
  padding: 20px
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 4px
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  float: right;
  margin-top: -4px
}

/* ========================================
   Tables
   ======================================== */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg)
}

.data-table {
  width: 100%;
  border-collapse: collapse
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-glass);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.data-table tr:last-child td {
  border-bottom: none
}

.data-table tr:hover td {
  background: rgba(124, 58, 237, 0.03)
}

/* ========================================
   Badges
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning)
}

.badge-active,
.badge-paid {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success)
}

.badge-suspended {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger)
}

.badge-cancelled {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted)
}

.badge-unpaid {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger)
}

/* Active badge pulse */
.badge-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4)
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0)
  }
}

/* ========================================
   Toast Notifications
   ======================================== */

#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  animation: slideInRight 0.3s ease;
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.4;
  animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%
  }

  to {
    width: 0%
  }
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171
}

.toast-info {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa
}

/* ========================================
   Auth Pages
   ======================================== */

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

.auth-card {
  max-width: 440px;
  width: 100%;
  padding: 40px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), transparent, rgba(14, 165, 233, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-card .card-header {
  text-align: center
}

.auth-card .card-header h2 {
  font-size: 1.5rem;
  font-weight: 800
}

.auth-card .card-header p {
  color: var(--text-secondary);
  font-size: 0.9rem
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary)
}

.auth-footer a {
  color: var(--accent-primary);
  font-weight: 600;
  cursor: pointer
}

/* ========================================
   Order Page
   ======================================== */

.order-page {
  padding: 84px 2rem 40px;
  max-width: 800px;
  margin: 0 auto
}

.plan-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px
}

.plan-summary .spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.plan-summary .spec-item .label {
  color: var(--text-secondary)
}

.plan-summary .spec-item .value {
  font-weight: 600
}

.order-total {
  text-align: center;
  padding: 24px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin: 24px 0
}

.order-total .total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px
}

.order-total .total-price {
  font-size: 2rem;
  font-weight: 900
}

/* ========================================
   Admin Tabs
   ======================================== */

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-glass);
  padding: 4px;
  border-radius: var(--radius-sm);
  overflow-x: auto
}

.tab {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: none;
  white-space: nowrap;
  font-family: var(--font-family);
}

.tab:hover {
  color: var(--text-primary)
}

.tab.active {
  background: var(--accent-gradient);
  color: white
}

/* ========================================
   Empty State
   ======================================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted)
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 20px
}

/* ========================================
   CTA & Footer
   ======================================== */

.cta-section {
  text-align: center;
  padding: 80px 2rem;
  position: relative
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.06), transparent);
  pointer-events: none;
}

.cta-content {
  max-width: 560px;
  margin: 0 auto;
  position: relative
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem
}

.footer {
  text-align: center;
  padding: 40px 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem
}

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  animation: scaleIn 0.2s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1
}

.modal-close:hover {
  color: var(--text-primary)
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.5
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease both
}

.animate-in:nth-child(1) {
  animation-delay: 0.05s
}

.animate-in:nth-child(2) {
  animation-delay: 0.1s
}

.animate-in:nth-child(3) {
  animation-delay: 0.15s
}

.animate-in:nth-child(4) {
  animation-delay: 0.2s
}

.animate-in:nth-child(5) {
  animation-delay: 0.25s
}

.animate-in:nth-child(6) {
  animation-delay: 0.3s
}

/* Page transition */
#app {
  animation: fadeIn 0.3s ease
}

/* ========================================
   Loading Skeleton
   ======================================== */

.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255, 255, 255, 0.06) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
  height: 20px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* ========================================
   Server Card
   ======================================== */

.server-card {
  padding: 20px;
  margin-bottom: 12px
}

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

.server-card .server-name {
  font-weight: 700;
  font-size: 1.05rem
}

.server-card .server-plan {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px
}

.server-card .server-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.server-card .server-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ========================================
   Sidebar & Layout
   ======================================== */

#layout-container {
  display: flex;
  min-height: 100vh
}

#sidebar {
  width: 280px;
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1001;
  transition: var(--transition-normal);
}

#sidebar.hidden {
  transform: translateX(-100%)
}

#sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin-bottom: 32px
}

#sidebar-user .avatar {
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--accent-glow);
  position: relative;
}

/* Avatar glow ring */
#sidebar-user .avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-md) + 3px);
  background: var(--accent-gradient);
  opacity: 0.3;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

#sidebar-user .user-info {
  display: flex;
  flex-direction: column
}

#sidebar-user .user-name {
  font-weight: 700;
  font-size: 0.95rem
}

#sidebar-user .user-role {
  font-size: 0.75rem;
  color: var(--text-muted)
}

/* Balance Card */
.balance-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  animation: shimmer 4s ease infinite;
  pointer-events: none;
}

.balance-card .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px
}

.balance-card .value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px
}

/* Sidebar Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.sidebar-link .icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary)
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), transparent);
  color: var(--accent-primary);
}

/* Left glow bar for active */
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background: var(--accent-gradient);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color)
}

#sidebar.hidden+#app {
  margin-left: 0
}

#app {
  flex-grow: 1;
  margin-left: 280px;
  padding: 24px 40px;
  transition: margin 0.3s ease
}

/* ========================================
   Dashboard Components
   ======================================== */

.welcome-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: meshShift 15s ease-in-out infinite alternate;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 40%;
  height: 150%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: meshShift 12s ease-in-out infinite alternate-reverse;
}

.welcome-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px
}

.welcome-info .status-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 10px;
  vertical-align: middle;
}

.user-meta {
  display: flex;
  gap: 24px;
  margin-top: 16px
}

.meta-item {
  display: flex;
  flex-direction: column
}

.meta-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px
}

.meta-item .value {
  font-weight: 700;
  font-size: 0.9rem
}

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

.action-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-normal);
}

.action-card:hover {
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.action-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.action-card h3 {
  font-size: 1rem;
  font-weight: 700
}

.action-card p {
  font-size: 0.8rem;
  color: var(--text-muted)
}

.dashboard-sections {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px
}

.section-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px
}

.section-box-title {
  font-weight: 700;
  font-size: 1rem
}

.view-all {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600
}

/* ========================================
   Plan Detail Page
   ======================================== */

.plan-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px
}

.plan-detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.plan-detail-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  z-index: 0;
}

.plan-header-info {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1
}

.plan-header-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.plan-header-text h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 4px
}

.plan-header-text p {
  color: var(--text-secondary);
  font-size: 1rem
}

.plan-header-pricing {
  text-align: right;
  position: relative;
  z-index: 1
}

.plan-price-value {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px
}

.plan-price-value span {
  font-size: 1rem;
  color: var(--text-muted)
}

.plan-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-glass);
  padding: 6px;
  border-radius: var(--radius-md);
  width: fit-content
}

.plan-tab {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary)
}

.plan-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1)
}

.spec-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px
}

.spec-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-normal);
}

.spec-card-modern:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px)
}

.spec-icon-modern {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.spec-info-modern .spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px
}

.spec-info-modern .spec-value {
  font-size: 1.2rem;
  font-weight: 800
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px
}

.why-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color)
}

.why-icon {
  color: var(--success);
  font-size: 1.2rem
}

/* ========================================
   Checkout
   ======================================== */

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 2rem 40px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px
}

.checkout-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px
}

.checkout-card {
  margin-bottom: 24px
}

.order-sidebar {
  position: sticky;
  top: 84px
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem
}

.summary-row.total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 1.25rem;
  font-weight: 800
}

.promo-input-group {
  display: flex;
  gap: 8px;
  margin-top: 20px
}

.checkout-plan-summary {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 24px
}

.checkout-plan-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem
}

.checkout-plan-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px
}

.checkout-plan-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary)
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

/* Plan header card (alt) */
.plan-header-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(30, 41, 59, 1) 100%);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  transition: all 0.2s;
  font-family: var(--font-family);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1)
}

.plan-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2
}

.plan-icon-large {
  font-size: 5rem;
  background: rgba(124, 58, 237, 0.1);
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  border: 2px solid rgba(124, 58, 237, 0.2);
}

.plan-info-main {
  flex: 1
}

.plan-info-main h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-specs-short {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500
}

.plan-pricing-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 320px;
  text-align: center;
}

.price-header {
  margin-bottom: 24px
}

.price-header .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff
}

.price-header .period {
  color: var(--text-secondary);
  font-size: 1.1rem
}

.deploy-btn {
  width: 100%;
  padding: 16px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted)
}

.plan-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px
}

.spec-detail-box {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

.spec-detail-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.2)
}

.spec-icon {
  font-size: 2rem;
  margin-bottom: 20px
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px
}

.spec-value {
  font-size: 1.5rem;
  font-weight: 700
}

.about-plan-section h3 {
  font-size: 1.5rem;
  margin-bottom: 16px
}

.about-plan-section p {
  color: var(--text-secondary);
  line-height: 1.8
}

.perks-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border-color)
}

.perks-card h3 {
  margin-bottom: 24px;
  font-size: 1.2rem
}

.perks-list {
  list-style: none;
  padding: 0
}

.perks-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px
}

.perk-icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.perks-list strong {
  display: block;
  margin-bottom: 4px
}

.perks-list p {
  font-size: 0.85rem;
  color: var(--text-secondary)
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  display: inline-block;
}

@keyframes rotate {
  to {
    transform: rotate(360deg)
  }
}

/* ========================================
   Payment & Preset Selection
   ======================================== */

.payment-methods,
.preset-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 12px !important
}

.preset-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important
}

.payment-method,
.preset-item {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  padding: 16px !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  text-align: left !important;
  position: relative;
  z-index: 10;
  font-family: var(--font-family);
}

.preset-item {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important
}

.payment-method:hover,
.preset-item:hover {
  border-color: var(--accent-primary) !important;
  background: rgba(124, 58, 237, 0.05) !important;
  transform: translateY(-2px) !important
}

.payment-method.active,
.preset-item.active {
  background: rgba(124, 58, 237, 0.12) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15) !important
}

.method-name,
.preset-val {
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: var(--text-primary) !important
}

.method-desc {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important
}

/* Deposit grid */
.deposit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.input-with-symbol {
  display: flex;
  align-items: center;
  gap: 0
}

.input-with-symbol .symbol {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-right: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.input-with-symbol .form-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0
}

/* ========================================
   Hamburger Menu (Mobile)
   ======================================== */

.hamburger-btn {
  display: none;
  position: fixed;
  top: 10px;
  right: 16px;
  /* Moved to right to avoid logo collision */
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:active {
  transform: scale(0.9);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

/* ========================================
   Responsive
   ======================================== */

@media(max-width:1024px) {
  #sidebar {
    width: 80px;
    padding: 24px 10px
  }

  #sidebar .user-info,
  #sidebar .sidebar-link span,
  #sidebar .balance-card {
    display: none
  }

  #app {
    margin-left: 80px
  }

  .dashboard-sections {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  #navbar {
    padding: 0 1rem
  }

  .nav-links {
    display: none
  }

  .section {
    padding: 60px 1rem
  }

  .dashboard {
    padding: 74px 1rem 30px
  }

  .auth-page {
    padding: 74px 1rem 30px
  }

  .order-page {
    padding: 74px 1rem 30px
  }

  .hero {
    padding: 100px 1rem 40px
  }

  .hero h1 {
    font-size: 2.5rem
  }

  .pricing-grid {
    grid-template-columns: 1fr
  }

  .features-grid {
    grid-template-columns: 1fr
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .plan-summary {
    grid-template-columns: 1fr
  }

  .tabs {
    overflow-x: auto
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 0.8rem
  }

  #sidebar {
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  }

  #sidebar.mobile-open {
    transform: translateX(0);
    width: 280px !important;
  }

  #sidebar.mobile-open .user-info,
  #sidebar.mobile-open .sidebar-link span,
  #sidebar.mobile-open .balance-card,
  #sidebar.mobile-open .sidebar-footer span {
    display: block !important;
  }

  #sidebar.mobile-open .sidebar-link {
    justify-content: flex-start;
    padding: 14px 24px;
    gap: 16px;
  }

  .hamburger-btn {
    display: flex
  }

  .sidebar-backdrop.active {
    display: block
  }

  #app {
    margin-left: 0 !important;
    padding: 74px 16px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px
  }

  .checkout-container {
    grid-template-columns: 1fr
  }

  .config-grid {
    grid-template-columns: 1fr
  }

  .deposit-grid {
    grid-template-columns: 1fr
  }

  .plan-detail-header {
    flex-direction: column;
    gap: 24px;
    text-align: center
  }

  .plan-header-pricing {
    text-align: center
  }

  .plan-header-info {
    flex-direction: column;
    text-align: center
  }
}

@media(max-width:480px) {
  .stats-grid {
    grid-template-columns: 1fr
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center
  }

  .hero h1 {
    font-size: 2rem
  }
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
  width: 8px
}

::-webkit-scrollbar-track {
  background: var(--bg-primary)
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.2);
  border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.4)
}

/* Avatar base style */
.avatar {
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  border-radius: var(--radius-md);
}

/* Subscriptions Filters */
.filters-bar {
  background: var(--bg-glass);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.filters-bar .btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s ease;
}

.filters-bar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Service Detail (Premium UI)
   ======================================== */

.service-detail-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.service-header-banner {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.service-header-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.service-info-main {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-icon-box {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.service-title-area h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
}

.service-id-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: monospace;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.detail-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title-premium {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.card-title-premium lucide-icon,
.card-title-premium svg {
  color: var(--accent-primary);
}

/* Spec Box Grid */
.spec-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.spec-item-premium {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.spec-item-premium:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.spec-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.spec-item-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* Actions List */
.action-list-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.action-btn-premium:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.action-btn-p-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.action-btn-text h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.action-btn-text p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Product Detail Table */
.details-table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.details-table-premium td {
  padding: 0;
}

.details-table-premium .dt-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.details-table-premium .dt-value {
  text-align: right;
  font-weight: 600;
  color: #fff;
}

.badge-status-lg {
  padding: 10px 24px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

@media(max-width: 992px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  .service-header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
  }

  .service-info-main {
    gap: 16px;
  }

  .service-icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .service-title-area h1 {
    font-size: 1.6rem;
  }

  .detail-card {
    padding: 24px;
  }

  .monitoring-grid-responsive {
    grid-template-columns: 1fr !important;
  }
}

@media(max-width: 480px) {
  .service-title-area h1 {
    font-size: 1.4rem;
  }

  .spec-grid-premium {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 18px;
  }

  .service-header-banner {
    border-radius: 20px;
  }
}

/* Plan Detail Mobile Responsiveness */
@media (max-width: 900px) {
  .plan-hero {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .plan-icon-large {
    margin: 0 auto;
    width: 120px;
    height: 120px;
    font-size: 4rem;
  }

  .plan-info-main h1 {
    font-size: 2.5rem;
  }

  .plan-content-grid {
    grid-template-columns: 1fr;
  }

  .plan-pricing-card {
    min-width: 100%;
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .plan-info-main h1 {
    font-size: 2rem;
  }

  .specs-grid {
    gap: 16px;
  }

  .spec-detail-box {
    padding: 20px;
  }

  .plan-pricing-card {
    padding: 24px;
  }

  .price-header .price {
    font-size: 2rem;
  }

  .dashboard {
    padding: 84px 1.5rem 40px;
  }
}