/* ========================================
   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: #3b82f6;
  --accent-secondary: #64748b;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  --accent-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --accent-glow: 0 0 35px rgba(59, 130, 246, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.3);
  --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%;
}

/* Performance optimized static background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Removed expensive animations */

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.9);
  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: none;
}

.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(37, 99, 235, 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: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-transform: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  color: white;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(255, 255, 255, 0.05));
  color: #22d3ee;
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(255, 255, 255, 0.08));
  border-color: #06b6d4;
  box-shadow: none;
  transform: translateY(-2px);
  color: #ffffff;
}

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

.btn-success:hover {
  box-shadow: none;
  transform: translateY(-3px);
}

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

.btn-danger:hover {
  box-shadow: none;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 36px;
  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)
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: none;
  color: white;
}

.btn-icon.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.btn-icon.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--danger);
  box-shadow: none;
  color: white;
}

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

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

.card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: none;
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.card-header:hover .card-title {
  color: var(--accent-primary);
}

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

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

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1.5px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  outline: none;
}

.form-input:hover,
.form-select:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}

.form-input:focus,
.form-select:focus {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(255, 255, 255, 0.08));
  border-color: #06b6d4;
  box-shadow: none;
}

.form-input::placeholder {
  color: rgba(100, 116, 139, 0.6);
}

.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: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* ========================================
   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;
}

/* Simplified performance-friendly decoration */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.1;
}

.hero::before {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 15%;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.hero::after {
  width: 300px;
  height: 300px;
  bottom: 15%;
  right: 10%;
  background: radial-gradient(circle, var(--info), transparent 70%);
}

.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(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  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
}

@media(max-width: 640px) {
  .section {
    padding: 60px 1rem;
  }
}


.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(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
  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: none;
}

.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;
}

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

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


.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
}

.pricing-card.featured {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: none;
}

.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: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media(max-width: 640px) {
  .dashboard {
    padding: 80px 1rem 30px;
  }
}


.dashboard-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

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

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


.stat-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(25, 35, 70, 0.5), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: none;
}

.stat-card:hover::before {
  top: -25%;
  right: -25%;
}

.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(37, 99, 235, 0.08);
  transition: all var(--transition-fast);
}

.data-table tbody tr {
  transition: background-color var(--transition-fast) ease;
}

.data-table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.04);
}

/* ========================================
   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)
}

.badge-expired {
  background: rgba(239, 68, 68, 0.2);
  color: #ff8a8a;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 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)
  }
}

/* Priority & Status Badge Colors */
.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-primary {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-secondary {
  background: rgba(100, 116, 139, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

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

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

.toast {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 300px;
  max-width: 450px;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

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

@keyframes toastProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

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

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

/* Deposit Success Modal */
.deposit-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.deposit-success-overlay.active {
  opacity: 1;
}

.deposit-success-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.deposit-success-overlay.active .deposit-success-card {
  transform: scale(1) translateY(0);
}

.deposit-success-icon {
  margin-bottom: 16px;
  animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.deposit-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.deposit-success-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.deposit-success-amount {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deposit-success-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #22c55e;
}

.deposit-success-balance {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deposit-success-balance-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.deposit-success-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Balance highlight animation */
.balance-card.balance-updated {
  animation: balancePulse 0.6s ease;
  box-shadow: none;
}

@keyframes balancePulse {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.05);
  }

  60% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

.balance-card.balance-updated .value {
  color: #22c55e !important;
  transition: color 0.5s ease;
}

.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;
}

/* Custom Success Notification (White theme like in user reference) */
.custom-notif-overlay {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 99999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.custom-notif-overlay.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.custom-notif-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 28px;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 420px;
  cursor: pointer;
  animation: notifPulse 2s infinite ease-in-out;
}

@keyframes notifPulse {
  0% {
    box-shadow: none;
  }

  50% {
    box-shadow: none;
  }

  100% {
    box-shadow: none;
  }
}

.custom-notif-icon {
  width: 36px;
  height: 36px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: none;
}

.custom-notif-text {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

/* ========================================
   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;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 0% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 100% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 800px at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle 600px at 80% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.auth-page > * {
  position: relative;
  z-index: 1;
}

.auth-card {
  max-width: 440px;
  width: 100%;
  padding: 48px 40px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  box-shadow: 
    0 0 60px rgba(6, 182, 212, 0.15),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: slideUpIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), transparent 30%, transparent 70%, rgba(34, 211, 238, 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;
  opacity: 0.8;
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card .card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card .card-header h2 {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-card .card-header p {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: #94a3b8;
  padding-top: 24px;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
}

.auth-footer a {
  color: #06b6d4;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.auth-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.auth-footer a:hover {
  color: #22d3ee;
}

.auth-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ========================================
   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(37, 99, 235, 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.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: linear-gradient(135deg, rgba(25, 35, 70, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

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

/* ========================================
   Preorder Styling
   ======================================== */

.preorder-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-primary);
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preorder-checkbox:checked {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: var(--accent-secondary);
  box-shadow: none;
}

.preorder-checkbox:hover {
  border-color: var(--accent-secondary);
  box-shadow: none;
}

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

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

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

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

@keyframes fadeInDown {
  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: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.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: 270px;
  background: linear-gradient(180deg, rgba(7, 12, 33, 0.98) 0%, rgba(3, 7, 18, 1) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1001;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
}

#sidebar::-webkit-scrollbar {
  display: none;
}

/* Simplified sidebar (no glow) */
#sidebar::after {
  display: none;
}

@media (max-width: 767px) {
  #sidebar {
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    width: 280px;
    transform: translateX(-100%);
    background: #0a1128; /* Solid background on mobile to prevent bleed */
    box-shadow: none;
    z-index: 2000;
  }

  #sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 20px 0 80px rgba(0, 0, 0, 0.8);
  }

  #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: 12px 20px;
    gap: 16px;
  }

  .hamburger-btn {
    display: flex;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  #app {
    margin-left: 0 !important;
    width: 100%;
  }

  #app {
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

#sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  margin-bottom: 20px
}

#sidebar-user .avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Removed avatar pulse */
#sidebar-user .avatar::after {
  display: none;
}

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

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

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

/* Simplified Balance Card */
.balance-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
}

/* Removed shimmer */
.balance-card::before {
  display: none;
}

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

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

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

#sidebar-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 8px 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  border: 1px solid transparent;
  margin-bottom: 4px;
  line-height: 1;
}

.sidebar-link .icon {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.sidebar-link .icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-link:hover .icon {
  opacity: 1;
  color: var(--accent-primary);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
  color: #fff;
  font-weight: 700;
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px 12px 12px 4px;
}

.sidebar-link.active .icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Clean indicator for active (Removed in favor of border-left) */
.sidebar-link.active::before {
  display: none;
}

.sidebar-wallet-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.06) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 20px !important;
  padding: 18px !important;
  margin: 10px 0 24px !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  transition: all 0.3s ease !important;
}

.sidebar-wallet-label {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.4) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.sidebar-wallet-value {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 16px !important;
  display: block !important;
}

.sidebar-wallet-btn {
  width: 100% !important;
  background: var(--accent-gradient) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 10px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2) !important;
}

.sidebar-balance-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  filter: brightness(1.1);
}

.balance-updated {
  animation: balancePulse 0.6s ease-out;
}

@keyframes balancePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); border-color: var(--success); }
  100% { transform: scale(1); }
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 16px 8px;
  opacity: 0.8;
}

/* ========================================
   Upgrade Page Premium UI
   ======================================== */

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

.plan-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.plan-card-mini:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: none;
}

.plan-card-mini.current {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.05), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--accent-primary);
  box-shadow: none;
}

.stock-badge-premium {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.stock-badge-premium.available {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.05);
}

.stock-badge-premium.low {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.stock-badge-premium.out {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.05);
}

.plan-price-large {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 16px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.capacity-info {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

#app {
  flex-grow: 1;
  padding: 24px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  min-width: 0;
}

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

/* ========================================
   Simple & Professional Dashboard UI
   ======================================== */

.dash-header {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-left: 5px solid #3b82f6;
  border-radius: 24px;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.dash-header::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(30px);
}

.dash-avatar-box {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.dash-user-info h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.dash-user-meta {
  display: flex;
  gap: 32px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dash-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.8);
}

.dash-stat-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
}

/* --- Discord Community Card --- */
.discord-card {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border-radius: 20px;
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

@media (max-width: 768px) {
  .dash-header {
    padding: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .dash-avatar-box {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    border-radius: 16px;
  }

  .dash-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dash-user-info h2 {
    font-size: 1.3rem;
    justify-content: center;
    margin-bottom: 8px;
  }

  .dash-user-meta {
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
  }

  .dash-stat-value {
    font-size: 1rem;
  }

  .loyalty-card {
    padding: 20px;
    gap: 16px;
  }

  .loyalty-badge-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    border-radius: 14px;
  }

  .loyalty-tier-name {
    font-size: 1.4rem;
  }

  .loyalty-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .loyalty-badge-box {
    flex-direction: column;
    gap: 12px;
  }

  .loyalty-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .loyalty-stat-item {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .loyalty-stat-label {
    margin-bottom: 0;
  }

  .loyalty-stat-value {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .dash-header {
    border-radius: 20px;
  }
  
  .dash-action-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


.discord-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.discord-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
  max-width: 80%;
}

.discord-card .btn-discord {
  background: white;
  color: #5865F2;
  font-weight: 800;
  border-radius: 12px;
  padding: 10px 20px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.discord-card .btn-discord:hover {
  background: #f1f3f5;
  transform: scale(1.05);
}

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

.dash-action-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-action-box:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
}

.dash-action-icon {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-action-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.dash-action-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.dash-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dash-table-card {
  background: rgba(25, 35, 70, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 24px;
}

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

.dash-table-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

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

.dash-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-table td {
  padding: 16px 8px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

@media (max-width: 1024px) {
  .dash-split-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Loyalty Program Dashboard Card
   ======================================== */
.loyalty-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.loyalty-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--tier-color-alpha, rgba(99, 102, 241, 0.15)) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.loyalty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.loyalty-badge-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.loyalty-badge-icon {
  width: 64px;
  height: 64px;
  background: var(--tier-color, #3b82f6);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: none;
}

.loyalty-tier-info h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.loyalty-tier-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.loyalty-progress-section {
  position: relative;
  z-index: 1;
}

.loyalty-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.loyalty-progress-container {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.loyalty-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tier-color, #3b82f6), var(--next-tier-color, #3b82f6));
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.loyalty-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.loyalty-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.loyalty-stat-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.loyalty-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.loyalty-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
}

@media (max-width: 768px) {
  .loyalty-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .loyalty-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

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

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

@media (max-width: 1024px) {

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

.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
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 600px;
}

/* ========================================
   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(37, 99, 235, 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: none;
}

.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(37, 99, 235, 0.3);
  transform: translateY(-2px)
}

.spec-icon-modern {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 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
}

/* Desktop: show payment in sidebar, hide from main area */
.checkout-payment-mobile {
  display: none;
}

.checkout-payment-desktop {
  display: block;
}

.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(37, 99, 235, 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(37, 99, 235, 0.1);
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  border: 2px solid rgba(37, 99, 235, 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;
  background-clip: text;
}

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

.plan-pricing-card {
  background: rgba(15, 23, 42, 0.8);
  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;
  width: 100%;
}

@media (max-width: 1100px) {
  .plan-content-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.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(37, 99, 235, 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(37, 99, 235, 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: linear-gradient(135deg, rgba(25, 35, 70, 0.4), rgba(15, 23, 42, 0.6));
  border: 1.5px solid rgba(59, 130, 246, 0.15) !important;
  padding: 18px !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  transition: all var(--transition-normal) !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);
  box-shadow: none;
}

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

.payment-method::before,
.preset-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.05));
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.payment-method:hover,
.preset-item:hover {
  border-color: var(--accent-primary) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.08)) !important;
  transform: translateY(-4px) !important;
  box-shadow: none;
}

.payment-method::before:hover,
.preset-item::before:hover {
  opacity: 1;
}

.payment-method.active,
.preset-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.15)) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: none;
  position: relative;
}

.payment-method.active::after,
.preset-item.active::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  animation: checkMarkPulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkMarkPulse {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.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;
  margin-top: 24px;
}

.deposit-grid .card {
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all var(--transition-normal);
}

.deposit-grid .card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: none;
}

.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 removed - handled by index.html tailwind classes */

/* Sidebar visibility on touch devices is now controlled by width only to support 'Desktop Site' mode */
/* @media (pointer: coarse) removed */

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  animation: fadeIn 0.3s ease;
}

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

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

@media(max-width:640px) {
  #navbar {
    padding: 0 70px 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
  }

  #app {
    padding: 74px 16px 20px;
  }

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

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

  /* On mobile: show payment in main area, hide from sidebar */
  .checkout-payment-desktop {
    display: none !important;
  }

  .checkout-payment-mobile {
    display: block !important;
  }

  .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(37, 99, 235, 0.2);
  border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 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);
}

.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: none;
}

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

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

.service-detail-page {
  width: 100%;
  padding: 20px;
}

.service-back-row {
  margin-bottom: 24px;
}

.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: none;
}

.service-header-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 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;
  min-width: 0;
}

.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: none;
}

.service-icon-box-compact {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  border-radius: 16px;
  margin-bottom: 0;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.service-page-title {
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.service-plan-meta {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.service-header-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.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: none;
}

.detail-card-accent {
  border-color: rgba(37, 99, 235, 0.2);
}

.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(37, 99, 235, 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;
}

/* ========================================
   Server Monitoring
   ======================================== */

.server-monitoring {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  border: 1px solid var(--border-color);
}

.monitor-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monitor-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.monitor-label span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.monitor-label span:last-child {
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.monitor-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.monitor-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  box-shadow: none;
}

@media(max-width: 600px) {
  .server-monitoring {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


.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;
}

/* Service Detail Responsiveness */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  width: 100%;
}

.detail-main {
  min-width: 0;
  /* Prevents grid items from overflowing */
}

.connection-panel {
  background: rgba(37, 99, 235, 0.03);
  padding: 28px;
  border-radius: 20px;
  border: 1px dashed rgba(37, 99, 235, 0.2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.connection-panel-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 100px;
  opacity: 0.03;
  pointer-events: none;
}

.connection-panel-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.connection-label,
.connection-sub-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.connection-label {
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.connection-hostname {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.connection-port-block {
  margin-top: 20px;
}

.connection-sub-label {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.connection-port-value {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.connection-copy-btn {
  height: fit-content;
  padding: 10px 20px;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.power-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.power-control-btn {
  min-height: 104px;
  padding: 16px;
  font-weight: 700;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.power-control-btn span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.power-control-btn-neutral {
  background: rgba(255, 255, 255, 0.05);
}

.service-monitoring-grid {
  margin-bottom: 24px;
}

.metric-card {
  margin-bottom: 0;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 55%);
  pointer-events: none;
}

.metric-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.metric-card-label {
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-card-value {
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.metric-progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.metric-progress-bar {
  width: 0%;
  height: 100%;
  transition: width 0.5s cubic-bezier(0.1, 0.7, 1, 0.1);
}

.metric-progress-bar-cpu {
  background: linear-gradient(90deg, var(--accent-primary), #38bdf8);
}

.metric-progress-bar-ram {
  background: linear-gradient(90deg, #38bdf8, #2dd4bf);
}

.metric-card-meta {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  position: relative;
  z-index: 1;
}

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

/* Missing Layout Classes */
.card-title-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.spec-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-item-premium {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

@media (max-width: 768px) {

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

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

@media(max-width: 768px) {
  .service-detail-page {
    padding: 16px;
  }

  .service-header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
  }

  .service-header-side {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .service-info-main {
    gap: 16px;
    width: 100%;
    align-items: flex-start;
  }

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

  .service-title-row {
    gap: 10px;
  }

  .service-page-title {
    font-size: 1.55rem;
  }

  .detail-card {
    padding: 24px;
  }

  .connection-panel {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }

  .connection-copy-btn {
    width: 100%;
  }

  .power-controls-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .power-control-btn {
    min-height: 96px;
    padding: 14px 10px;
  }

  .metric-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-card-meta {
    text-align: left;
  }

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

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

/* ========================================
   Web Console Component (Top Level)
   ======================================== */

.console-container {
  background: #020617;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 12px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.console-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dot-pulse.active {
  background: var(--success);
  box-shadow: none;
  animation: pulseGhost 2s infinite;
}

@keyframes pulseGhost {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.terminal-wrapper {
  background: transparent;
  padding: 8px;
  min-height: 300px;
  max-height: 450px;
  border-radius: 12px;
  width: 100%;
  overflow-x: hidden;
}

.terminal-wrapper .xterm {
  padding: 10px;
}

.xterm-viewport {
  background-color: transparent !important;
}

.xterm-rows {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.command-input-group {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.command-input-group .command-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  padding: 8px 12px;
  outline: none !important;
  box-shadow: none;
}

.command-btn {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.3) !important;
  color: #fff !important;
  padding: 8px 24px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.command-btn:hover {
  background: var(--accent-gradient) !important;
  border-color: transparent !important;
}

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

@media (max-width: 768px) {
  .monitoring-grid-responsive {
    grid-template-columns: 1fr !important;
  }

  .console-container {
    padding: 8px;
    border-radius: 12px;
  }

  .terminal-wrapper {
    min-height: 250px;
  }
}

@media(max-width: 640px) {
  .service-detail-page {
    padding: 12px;
  }

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

  .service-info-main {
    flex-direction: column;
  }

  .service-icon-box-compact {
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
  }

  .service-id-badge {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .detail-card {
    padding: 20px;
    border-radius: 20px;
  }

  .card-title-premium {
    margin-bottom: 20px;
  }

  .connection-hostname {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .power-controls-grid {
    grid-template-columns: 1fr;
  }

  .power-control-btn {
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 16px;
  }

  .power-control-btn span {
    font-size: 0.82rem;
  }

  .metric-card {
    padding: 20px;
  }

  .details-table-premium {
    border-spacing: 0 10px;
  }

  .details-table-premium tr {
    display: grid;
    gap: 4px;
  }

  .details-table-premium .dt-value {
    text-align: left;
  }
}

@media(min-width: 1280px) {
  .service-detail-wrapper {
    max-width: 1280px;
  }

  .service-detail-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
  }

}

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

/* Port Selection Cards & Configuration UI */
.port-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.port-card.available:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: none;
}

.port-card.available:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
  pointer-events: none;
}

.port-card.unavailable {
  opacity: 0.6;
  filter: grayscale(0.5);
  cursor: not-allowed;
}

.port-card.available input[type="checkbox"]:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

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

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

/* Knowledge Base Styles */
.kb-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.kb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.kb-category-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
}

.kb-category-title {
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kb-article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kb-article-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.kb-article-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.kb-article-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-article-info {
  flex: 1;
}

.kb-article-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.kb-article-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kb-article-arrow {
  color: var(--text-muted);
}

.kb-article-view {
  padding: 40px;
  border-radius: 24px;
}

.kb-article-header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kb-article-header h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kb-article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.kb-article-body {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Markdown Styles for KB --- */
.kb-article-body {
  line-height: 1.7;
  color: var(--text-secondary);
}

.kb-article-body h1,
.kb-article-body h2,
.kb-article-body h3 {
  color: #fff;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
}

.kb-article-body h1 {
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.kb-article-body h2 {
  font-size: 1.5rem;
}

.kb-article-body h3 {
  font-size: 1.2rem;
}

.kb-article-body p {
  margin-bottom: 16px;
}

.kb-article-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style-type: disc;
}

.kb-article-body li {
  margin-bottom: 8px;
}

.kb-article-body code {
  font-family: 'Consolas', 'Monaco', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-primary);
  font-size: 0.9em;
}

.kb-article-body pre {
  background: #0f172a;
  /* Darker background for code blocks */
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-article-body pre code {
  background: transparent;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.kb-article-body blockquote {
  border-left: 4px solid var(--accent-primary);
  background: rgba(37, 99, 235, 0.1);
  margin: 0 0 20px 0;
  padding: 16px;
  border-radius: 0 12px 12px 0;
  color: #fff;
  font-style: italic;
}

.kb-article-body hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 32px 0;
}

.kb-article-body strong {
  color: #fff;
  font-weight: 700;
}

/* ========================================
   UI Refresh Layer (2026)
   ======================================== */

:root {
  --bg-primary: #030816;
  --bg-secondary: #0b1328;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 62, 0.94);
  --bg-input: rgba(255, 255, 255, 0.08);
  --accent-primary: #3b82f6;
  --accent-secondary: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --accent-gradient-hover: linear-gradient(135deg, #93c5fd 0%, #67e8f9 100%);
  --accent-glow: 0 10px 36px rgba(59, 130, 246, 0.28);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.48);
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.55) rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(34, 211, 238, 0.8));
  border-radius: 99px;
  border: 2px solid rgba(2, 6, 23, 0.45);
}

body {
  background:
    radial-gradient(ellipse 75% 45% at 10% -10%, rgba(59, 130, 246, 0.2), transparent 65%),
    radial-gradient(ellipse 65% 40% at 90% 110%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg-primary);
}

#navbar {
  background: rgba(3, 8, 22, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

#sidebar {
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.97) 0%, rgba(7, 14, 33, 0.92) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

#app {
  padding-top: 32px;
}

.card {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(59, 130, 246, 0.18), transparent 45%, rgba(34, 211, 238, 0.12));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: none;
}

.card:hover::before {
  opacity: 1;
}

.btn {
  letter-spacing: 0.01em;
}

.btn-primary {
  box-shadow: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.25) 50%, transparent 85%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
}

.form-input,
.form-select {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.12);
}

.form-input:hover,
.form-select:hover {
  border-color: rgba(59, 130, 246, 0.34);
}

.sidebar-link {
  border: 1px solid transparent;
}

.sidebar-link:hover {
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.04));
  border-color: rgba(59, 130, 246, 0.35);
}

.table-container {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
}

.data-table th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.data-table tr:hover td {
  background: rgba(59, 130, 246, 0.08);
}

.hero h1,
.section-header h2,
.dashboard-header h1,
.plan-header-text h1 {
  letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
  #app {
    padding: 22px 22px 32px;
  }
}

@media (max-width: 768px) {
  #app {
    padding: 16px 14px 28px;
  }

  .card {
    border-radius: 16px;
    padding: 18px;
  }

  .btn {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   Clean Mode Override (No Gradient / Less Animation)
   ======================================== */

:root {
  --accent-gradient: var(--accent-primary);
  --accent-gradient-hover: var(--accent-primary);
}

body,
.modern-hero,
.cta-content,
#sidebar,
.card,
.welcome-banner,
.feature-icon,
.plan-header-icon,
.data-table th,
.form-input,
.form-select {
  background-image: none !important;
}

.balance-card {
  background: rgba(59, 130, 246, 0.08) !important;
}

body {
  background: var(--bg-primary) !important;
}

.gradient-text,
.hero h1 .gradient-text,
.kb-article-header h1 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text-primary) !important;
}

body::before,
body::after,
.hero::before,
.hero::after,
.card::before,
.balance-card::before,
.btn-primary::after {
  content: none !important;
  display: none !important;
}

.animate-in,
.toast,
.skeleton,
.dot-pulse.active,
.badge-active::before {
  animation: none !important;
}

* {
  transition-duration: 0.12s !important;
}

.card:hover,
.pricing-card:hover,
.action-card:hover,
.sidebar-link:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: none !important;
}

.sidebar-link.active {
  background: rgba(59, 130, 246, 0.12) !important;
}

.btn-primary {
  background: var(--accent-primary) !important;
}

*::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.7) !important;
}

/* ========================================
   In-App Notifications (Premium UI)
   ======================================== */

.notif-count-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: none;
  border: 2px solid var(--bg-primary);
  animation: notifPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes notifPulse {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: none;
  }
}

.notif-panel {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.95);
  width: 440px !important;
  max-width: calc(100% - 40px);
  height: auto;
  max-height: 85vh;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 20px rgba(124, 58, 237, 0.1);
  z-index: 10001;
  overflow: hidden;
  display: none !important;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notif-panel.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.notif-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.notif-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .notif-panel {
    width: calc(100% - 32px) !important;
    max-height: 85vh;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes panelSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.notif-list {
  max-height: 420px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.notif-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.notif-item:hover {
  background: rgba(124, 58, 237, 0.05);
  padding-left: 28px;
}

.notif-item:hover::before {
  opacity: 1;
}

.notif-item.unread {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-left: 4px solid var(--accent-primary);
  padding-left: 12px;
  position: relative;
}

.notif-item.unread::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  box-shadow: none;
}

.notif-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.notif-msg {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ========================================
   Spec Calculator Page v2
   ======================================== */

.calc-v2 {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  align-items: start;
}

.calc-v2-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section */
.calc-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.calc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text-primary);
}

.calc-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calc-section-row .calc-section-title {
  margin: 0;
}

/* Badge */
.calc-badge {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.calc-badge-accent {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-primary);
  border-color: rgba(59, 130, 246, 0.25);
  font-size: 0.9rem;
  padding: 6px 16px;
}

/* Type Grid */
.calc-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.calc-type-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
}

.calc-type-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.calc-type-card.selected {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  box-shadow: none;
}

.calc-type-card.selected .calc-type-name,
.calc-type-card.selected .calc-type-sub {
  color: #4ade80;
}

.calc-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.calc-type-card:hover .calc-type-icon {
  transform: scale(1.1);
}

.calc-type-name {
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.calc-type-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

/* Slider */
.calc-slider-container {
  padding: 0 4px;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  outline: none;
  cursor: pointer;
  position: relative;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--accent-secondary);
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--accent-secondary);
  cursor: pointer;
  box-shadow: none;
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Estimate Card */
.calc-estimate-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.calc-estimate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calc-estimate-header strong {
  font-size: 0.95rem;
}

.calc-estimate-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
}

.calc-estimate-bar {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transition: width 0.4s ease;
}

.calc-estimate-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Recommendation Card (Sidebar) ---- */
.calc-v2-sidebar {
  position: sticky;
  top: 20px;
}

.calc-rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  min-height: 200px;
}

.calc-rec-badge {
  display: inline-block;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  margin-bottom: 14px;
}

.calc-rec-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.calc-rec-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.calc-rec-price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.calc-rec-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Rec Spec Grid */
.calc-rec-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.calc-rec-spec {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.calc-rec-spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.calc-rec-spec-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Coverage */
.calc-rec-coverage {
  text-align: left;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.calc-rec-coverage-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.calc-rec-coverage-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.calc-rec-coverage-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.3s ease;
}

.calc-rec-coverage-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Features */
.calc-rec-features {
  text-align: left;
  margin-bottom: 20px;
}

.calc-rec-features strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.calc-rec-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.calc-rec-feature i,
.calc-rec-feature svg {
  color: #4ade80;
}

.calc-rec-extra-toggle {
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0 0;
  transition: color 0.2s;
}

.calc-rec-extra-toggle:hover {
  color: var(--accent-primary);
}

/* CTA */
.calc-rec-cta {
  padding: 14px !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
}

/* Empty state */
.calc-rec-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
  .calc-v2 {
    grid-template-columns: 1fr;
  }

  .calc-v2-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .calc-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .calc-type-card {
    padding: 14px 8px 12px;
  }

  .calc-type-name {
    font-size: 0.8rem;
  }

  .calc-rec-specs {
    grid-template-columns: 1fr 1fr;
  }

  .calc-v2 {
    padding: 16px 12px 60px;
  }
}

/* ========================================
   Custom Dropdown Component
   ======================================== */

.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.custom-dropdown-trigger:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
}

.custom-dropdown-trigger.active {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.05);
}

.custom-dropdown-trigger::after {
  content: '▼';
  font-size: 0.7rem;
  color: #94a3b8;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.custom-dropdown-trigger.active::after {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 20, 35, 0.95);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: none;
  animation: dropdownSlideDown 0.2s ease;
  display: none;
}

.custom-dropdown-menu.active {
  display: flex;
  flex-direction: column;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.custom-dropdown-option {
  padding: 12px 16px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover {
  background: rgba(37, 99, 235, 0.15);
  color: #fff;
  padding-left: 20px;
}

.custom-dropdown-option.selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(99, 102, 241, 0.2));
  color: #e0e7ff;
  font-weight: 600;
  border-left: 3px solid #2563eb;
  padding-left: 13px;
}


/* Spinner animation for loading buttons */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Glass Morphism Utility Class
   ======================================== */

.glass {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
}

/* ========================================
   Calculator Responsive Adjustments
   ======================================== */

@media (max-width: 1100px) {
  .calc-v2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .calc-v2-sidebar {
    top: auto;
    position: static;
  }
}

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

  .calc-v2 {
    padding: 20px 16px 60px;
  }
}

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

  .calc-section {
    padding: 16px;
  }

  .calc-v2 {
    padding: 16px 12px 50px;
  }
}


/* ========================================
   Notification Button Enhancement
   ======================================== */

#notif-bell-btn {
  position: relative;
  overflow: visible;
}

#notif-bell-btn.unread-notif {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), transparent);
  border-color: rgba(37, 99, 235, 0.35);
}

#notif-bell-btn.unread-notif::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border-radius: 0 4px 4px 0;
  box-shadow: none;
}

#notif-bell-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

#notif-bell-btn:hover .icon {
  animation: bellRing 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bellRing {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-15deg);
  }

  45% {
    transform: rotate(15deg);
  }

  60% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

#notif-badge {
  position: relative;
  animation: badgeBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes badgeBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* Pulse effect for unread notifications */
.notif-item.unread .notif-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(37, 99, 235, 0.4);
  animation: notificationPulse 2s ease-in-out infinite;
  display: none;
}

@keyframes notificationPulse {
  0% {
    box-shadow: none;
  }

  70% {
    box-shadow: none;
  }

  100% {
    box-shadow: none;
  }
}

/* Improve notification panel scrollbar */
.notif-list::-webkit-scrollbar {
  width: 6px;
}

.notif-list::-webkit-scrollbar-track {
  background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: 3px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5);
}

/* ========================================
   Enhanced Mobile Responsiveness & UI v2
   ======================================== */

/* Mobile optimizations for cards */
@media(max-width: 768px) {
  .card {
    padding: 20px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: none;
  }

  .dashboard-header {
    margin-bottom: 24px !important;
  }

  .dashboard-header h1 {
    font-size: 1.75rem !important;
  }

  .dashboard-header p {
    font-size: 0.95rem !important;
  }

  /* Responsive dashboard sections */
  .dashboard-sections {
    grid-template-columns: 1fr !important;
  }

  .profile-sections {
    grid-template-columns: 1fr !important;
  }

  /* Better button spacing on mobile */
  .btn {
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-md) !important;
  }

  .btn-sm {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }

  /* Responsive flex for invoice items */
  [style*="display:flex"][style*="flex-wrap:wrap"] {
    gap: 12px !important;
  }

  /* Better table responsiveness */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 12px 8px !important;
  }
}

@media(max-width: 640px) {
  .card {
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
  }

  .dashboard-header h1 {
    font-size: 1.5rem !important;
  }

  .nav-container {
    padding: 0 12px !important;
    height: 56px !important;
  }

  .nav-links {
    gap: 4px !important;
  }

  .nav-link {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
  }

  /* Better spacing for forms */
  .form-group {
    margin-bottom: 16px !important;
  }

  .form-input {
    padding: 12px 14px !important;
    font-size: 16px !important;
    /* Prevents zoom on iOS */
    border-radius: var(--radius-md) !important;
  }

  .form-label {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }

  /* Responsive grid layout for lists */
  [style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Better pagination on mobile */
  [style*="display:flex"][style*="justify-content:center"] {
    gap: 8px !important;
    padding: 20px 12px !important;
  }

  /* Improve button visibility on mobile */
  .btn {
    min-height: 44px !important;
    /* Touch-friendly size */
    padding: 12px 16px !important;
  }

  /* Responsive text sizing */
  [style*="font-size:1.6rem"] {
    font-size: 1.3rem !important;
  }

  [style*="font-size:2.5rem"] {
    font-size: 1.8rem !important;
  }

  /* Better invoice card layout */
  [style*="text-align: right"] {
    text-align: left !important;
  }
}

@media(max-width: 480px) {
  .card {
    padding: 14px !important;
  }

  .dashboard-header h1 {
    font-size: 1.3rem !important;
  }

  .dashboard-header {
    margin-bottom: 20px !important;
  }

  /* Stack buttons vertically on small screens */
  [style*="display:flex"][style*="gap:"]>.btn:not(.ticket-send-btn) {
    width: 100% !important;
  }

  /* Improve navbar usability */
  #navbar {
    padding: 0 12px !important;
  }

  .nav-container {
    padding: 0 !important;
  }

  .nav-links {
    display: none;
    /* Hide desktop nav on very small screens */
  }

  /* Better text wrapping */
  div[style*="display:flex"][style*="flex-wrap"] {
    flex-direction: column !important;
  }

  /* Responsive font sizing */
  [style*="font-size:1.1rem"] {
    font-size: 0.95rem !important;
  }

  [style*="font-size:0.9rem"] {
    font-size: 0.85rem !important;
  }

  /* Better padding for touch targets */
  button {
    padding: 12px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Improve payment method selection layout */
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Admin-specific responsive helpers */
  .admin-filter-stack {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-filter-stack>div {
    width: 100% !important;
    min-width: 0 !important;
  }


  /* Premium Admin Card (Mobile) */
  .admin-card-mobile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .admin-card-mobile:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
  }

  .admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
  }

  .admin-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .admin-card-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

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

  .admin-card-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
  }

  .admin-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
  }

  .admin-card-actions>* {
    flex: 1;
    min-width: 100px;
  }
}

/* ========================================
   Enhanced UI Styling
   ======================================== */

/* Improved card styling with better depth */
.card {
  background: linear-gradient(135deg,
      rgba(25, 35, 70, 0.6) 0%,
      rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.18),
    0 12px 32px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Glass effect enhancement */

/* Better button styling */
.btn {
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary)) !important;
  box-shadow: none;
}

.btn-primary:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Badge styling improvements */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

/* Form improvements */
.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: none;
  outline: none;
}

.form-input::placeholder {
  color: rgba(100, 116, 139, 0.6);
}

/* Empty state improvements */
.empty-state {
  text-align: center;
  padding: 60px 20px !important;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: rgba(37, 99, 235, 0.08);
  border: 2px dashed rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.empty-state:hover .empty-icon {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
  transform: scale(1.05);
}

/* Improve skeleton loading */
.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-lg);
}

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

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

/* Animation improvements */
.animate-in {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Improve scrollbar styling globally */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Better disabled state */
button:disabled,
input:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ========================================
   Enhanced Mobile Responsive Design
   ======================================== */

/* Plan Detail Container Mobile */
@media (max-width: 768px) {
  .plan-detail-container {
    padding: 16px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .plan-detail-container {
    padding: 12px;
  }
}

/* Plan Header Card Mobile - Stack Vertically */
@media (max-width: 1024px) {
  .plan-header-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .plan-header-card {
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

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

  .plan-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .plan-info-main {
    width: 100%;
    min-width: auto;
  }

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

  .plan-specs-short {
    justify-content: center;
  }

  .plan-pricing-card {
    min-width: auto;
    width: 100%;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .plan-header-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .plan-hero {
    gap: 20px;
  }

  .plan-icon-large {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }

  .plan-info-main h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .plan-info-main p {
    font-size: 0.95rem;
  }

  .plan-specs-short {
    gap: 8px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 6px 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plan-pricing-card {
    padding: 20px;
    margin-top: 16px;
  }

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

  .price-header .period {
    font-size: 0.95rem;
  }

  .deploy-btn {
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
  }

  .trust-icons {
    gap: 12px;
    font-size: 0.75rem;
    flex-wrap: wrap;
  }
}

/* Back Button Mobile */
@media (max-width: 768px) {
  .back-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-bottom: 20px;
  }
}

/* Specs Grid Mobile */
@media (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .spec-icon {
    min-width: 44px;
  }

  .spec-label {
    font-size: 0.75rem;
  }

  .spec-value {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .specs-grid {
    gap: 12px;
  }

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

  .spec-icon {
    width: 40px;
    height: 40px;
  }
}

/* About Plan Section Mobile */
@media (max-width: 768px) {
  .about-plan-section {
    padding: 24px;
    margin-bottom: 24px;
  }

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

  .about-plan-section p {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .about-plan-section {
    padding: 16px;
  }

  .about-plan-section h3 {
    font-size: 1.1rem;
  }
}

/* Perks Card Mobile */
@media (max-width: 768px) {
  .perks-card {
    padding: 24px;
    position: relative;
    top: auto;
  }

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

  .perks-list {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .perks-card {
    padding: 16px;
    border-radius: 16px;
  }

  .perks-card h3 {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .perk-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .perks-list li strong {
    font-size: 0.9rem;
  }

  .perks-list li p {
    font-size: 0.8rem;
  }
}

/* Plan Content Grid Sidebar Mobile */
@media (max-width: 1100px) {
  .plan-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .plan-sidebar-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .plan-content-grid {
    gap: 16px;
  }

  .plan-sidebar-info {
    order: 0;
  }
}

/* Modal Mobile Optimization */
@media (max-width: 768px) {
  .modal {
    width: calc(100% - 32px);
    max-height: calc(100vh - 100px);
    border-radius: 20px;
  }

  .modal-header {
    padding: 20px;
  }

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

@media (max-width: 640px) {
  .modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 80px);
    border-radius: 16px;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  .modal-close {
    font-size: 1.5rem;
  }
}

/* Button Group Mobile */
@media (max-width: 640px) {

  .btn-group,
  [style*="display:flex;gap:12px"] {
    flex-direction: column;
  }

  .btn-group .btn,
  [style*="display:flex;gap:12px"] .btn:not(.ticket-send-btn) {
    width: 100% !important;
  }
}

/* Text adaptations for mobile */
@media (max-width: 768px) {
  h1 {
    line-height: 1.2;
  }

  h3 {
    line-height: 1.3;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .plan-detail-container {
    padding: 8px;
  }

  .plan-header-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .plan-icon-large {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

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

  .badge {
    font-size: 0.7rem;
    padding: 5px 10px !important;
  }

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

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

  .trust-icons {
    gap: 8px;
    font-size: 0.65rem;
  }

  .specs-grid {
    gap: 10px;
  }

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

  .perks-card {
    padding: 12px;
  }

  .price-header .period {
    font-size: 0.95rem;
  }
}

/* Additional styling for plan components */
.spec-detail-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.about-plan-section {
  border-radius: 24px;
}

.about-plan-section h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 16px;
}

.about-plan-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-plan-section hr {
  margin: 32px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .about-plan-section h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .about-plan-section p {
    font-size: 0.95rem;
  }

  .spec-label {
    font-size: 0.75rem;
  }

  .spec-value {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .spec-detail-box {
    padding: 16px;
    gap: 16px;
  }

  .about-plan-section h3 {
    font-size: 1.1rem;
  }
}

/* ========================================
   TOS Page — Mobile Responsive
   ======================================== */

.tos-card {
  padding: 40px;
  border-top: 4px solid var(--accent-primary);
}

.tos-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.tos-section {
  margin-bottom: 32px;
}

.tos-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tos-section-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tos-section-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.tos-section-content {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 48px;
}

.tos-rule-card {
  border-radius: 12px;
  padding: 16px;
}

@media (max-width: 640px) {
  .tos-card {
    padding: 20px 16px;
  }

  .tos-title {
    font-size: 1.5rem;
  }

  .tos-section-content {
    padding-left: 0;
  }

  .tos-section-title {
    font-size: 1.05rem;
  }

  .tos-rule-card {
    padding: 12px;
  }

  .tos-rule-card p {
    word-break: break-word;
  }

  .tos-page {
    padding: 16px 12px !important;
  }
}

/* ========================================
   Support Page — Mobile Responsive
   ======================================== */

.support-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #fff;
}

.support-filters {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-filter-row {
  display: flex;
  gap: 12px;
}

@media (max-width: 640px) {
  .support-hero-title {
    font-size: 1.8rem;
  }

  .support-filter-row {
    flex-direction: column;
  }

  .support-hero {
    padding: 24px 16px !important;
    border-radius: 20px !important;
    margin-bottom: 24px !important;
  }
}

/* ========================================
   Admin Tickets — Mobile Card View
   ======================================== */

.admin-tickets-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.admin-ticket-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-ticket-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.admin-ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-ticket-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .admin-tickets-desktop {
    display: none !important;
  }

  .admin-tickets-mobile {
    display: flex;
  }

  /* Admin tabs: make scrollable on mobile without wrapping */
  .tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px !important;
  }

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

  .tabs .tab {
    padding: 10px 14px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }

  /* Admin header responsive */
  .dashboard-header h1 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .admin-ticket-card-meta {
    gap: 6px;
  }

  .admin-ticket-card-meta .badge {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
  }
}

/* ─── Ticket Detail Mobile Responsive ─── */
@media (max-width: 768px) {
  .detail-page .row {
    flex-direction: column-reverse !important;
    gap: 16px !important;
  }

  .detail-page .col-main {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .detail-page .col-side {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .detail-page .ticket-chat-card {
    height: 60vh !important;
  }

  .detail-page .chat-header {
    padding: 14px 16px !important;
  }

  .detail-page .chat-header h3 {
    font-size: 1rem !important;
  }

  .detail-page #messages-container {
    padding: 14px !important;
    gap: 12px !important;
  }

  .detail-page .message-bubble-wrapper {
    max-width: 90% !important;
  }

  .detail-page .message-bubble {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    border-radius: 14px !important;
  }

  .detail-page .chat-input {
    padding: 10px 12px !important;
  }

  .detail-page .ticket-reply-textarea {
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
  }

  .detail-page .ticket-send-btn {
    min-width: 42px !important;
    width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }
}

/* === Admin Tabs Scrollbar === */
.admin-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}

.admin-tabs-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.admin-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

.admin-tabs-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

.admin-tabs-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
  position: relative;
}

/* Scroll fade indicators wrapper */
.admin-tabs-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.admin-tabs-wrapper::before,
.admin-tabs-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 32px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.admin-tabs-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), transparent);
  opacity: 0;
}

.admin-tabs-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(15, 23, 42, 0.9), transparent);
  opacity: 1;
}

.admin-tabs-wrapper.scrolled-start::before {
  opacity: 1;
}

.admin-tabs-wrapper.scrolled-end::after {
  opacity: 0;
}

.admin-tabs-scroll .tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-primary) !important;
}

/* === KB Article Body Typography === */
.kb-article-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.kb-article-body h1,
.kb-article-body h2,
.kb-article-body h3 {
  color: #fff;
  font-weight: 700;
  margin: 24px 0 12px;
}

.kb-article-body h1 {
  font-size: 1.6rem;
}

.kb-article-body h2 {
  font-size: 1.3rem;
}

.kb-article-body h3 {
  font-size: 1.1rem;
}

.kb-article-body code {
  background: rgba(59, 130, 246, 0.1);
  color: #bfdbfe;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-family: 'JetBrains Mono', monospace;
}

.kb-article-body pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 16px 0;
}

.kb-article-body pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.85rem;
}

.kb-article-body blockquote {
  border-left: 3px solid #3b82f6;
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-muted);
  font-style: italic;
}

.kb-article-body ul,
.kb-article-body ol {
  padding-left: 24px;
  margin: 12px 0;
}

.kb-article-body li {
  margin: 4px 0;
}

.kb-article-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}

.kb-article-body strong {
  color: #fff;
}

/* === Admin Dashboard Overflow Containment === */
.dashboard {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
}

.dashboard>* {
  max-width: 100%;
  box-sizing: border-box;
}

.admin-header {
  max-width: 100%;
  box-sizing: border-box;
}

/* Admin content area */
#admin-content {
  max-width: 100%;
  overflow: hidden;
}

#admin-content>.card {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#admin-content .table-container {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* === Admin Panel Mobile Responsive === */
@media (max-width: 768px) {
  .admin-header {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }

  .admin-header-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .admin-header h1 {
    font-size: 1.35rem !important;
  }

  .admin-header-badges {
    width: 100%;
  }

  .admin-header-badges>div {
    flex: 1;
    justify-content: center;
  }

  /* Tabs */
  .admin-tabs-scroll {
    gap: 2px !important;
    padding: 2px !important;
  }

  .admin-tabs-scroll .tab {
    padding: 8px 12px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }

  .admin-tabs-scroll .tab svg {
    width: 12px !important;
    height: 12px !important;
  }

  .admin-tabs-scroll>div[style*="width:1px"] {
    display: none !important;
  }

  /* Stats grids */
  .admin-stats-primary {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .admin-stats-primary>div {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  .admin-stats-secondary {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-stats-secondary>div {
    padding: 16px !important;
    border-radius: 14px !important;
  }
}

/* ========================================
   ZelpModal System Styles
   ======================================== */

.zelp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.zelp-modal {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 3px solid var(--accent-primary);
  border-radius: 24px;
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}

.zelp-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zelp-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.zelp-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.zelp-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.zelp-modal-body {
  padding: 24px;
}

.zelp-modal-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.zelp-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.zelp-modal-btn {
  padding: 10px 22px;
  font-weight: 750;
  font-size: 0.9rem;
  border-radius: 12px;
  min-width: 90px;
}

.zelp-modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  color: #fff !important;
  font-size: 1rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
}

.zelp-modal-input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: none;
}

/* Bedrock Comparison Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Global Announcements */
.global-announcement {
  position: relative;
  z-index: 1500;
  width: 100%;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: slideDownFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

.global-announcement.type-info {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
}

.global-announcement.type-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.2);
}

.global-announcement.type-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.2);
}

.global-announcement.type-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.2);
}

.announcement-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.announcement-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: scale(1.05);
}

body.has-announcement #sidebar {
  top: 56px;
}

body.has-announcement #hamburger-btn {
  top: calc(15px + 56px);
}

@keyframes slideDownFade {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

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

@media (max-width: 768px) {
  .global-announcement {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  body.has-announcement #sidebar {
    top: 62px;
  }

  body.has-announcement #hamburger-btn {
    top: calc(15px + 62px);
  }
}

/* Visibility Utilities */
.hide-mobile {
  display: block;
}

.hide-desktop {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .hide-desktop {
    display: block !important;
  }
}
/* ========================================
   Update Notification
   ======================================== */

.update-notify-overlay {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  pointer-events: none;
}

.update-notify-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  box-shadow: none;
  max-width: 450px;
}

.update-notify-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  color: white;
  flex-shrink: 0;
}

.update-notify-body {
  flex-grow: 1;
}

.update-notify-title {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}

.update-notify-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .update-notify-overlay {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
  .update-notify-card {
    max-width: none;
    padding: 14px;
    gap: 14px;
  }
  .update-notify-icon {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   Admin Optimization Classes
   ======================================== */

.admin-glass-header {
  background: var(--accent-gradient);
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.admin-header-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), 
              radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.admin-badge-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.stat-card-premium {
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  position: relative;
  overflow: hidden;
}

.stat-card-premium .icon-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.stat-card-premium .stat-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.stat-card-premium .stat-value {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-card-premium .stat-progress-bg {
  margin-top: 20px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.stat-card-premium .stat-progress-bar {
  height: 100%;
  border-radius: 10px;
}

/* ========================================
   Mobile Responsiveness Overrides
   ======================================== */
@media (max-width: 768px) {
  .dashboard-redesign {
    padding: 16px 12px !important;
  }
  
  /* Prevent inputs from being squashed in flex containers */
  [style*="display:flex"] > .form-input,
  [style*="display:flex"] > .co-input,
  .input-with-symbol {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
  
  [style*="display:flex"]:has(> .form-input):not(.no-stack),
  [style*="display:flex"]:has(> .co-input):not(.no-stack) {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  [style*="display:flex"]:has(> .form-input) > button,
  [style*="display:flex"]:has(> .co-input) > button {
    width: 100% !important;
    height: 48px !important;
  }
  
  .deposit-grid, .calc-v2 > div {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .preset-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ========================================
   Auth V2 Redesign (Premium Split Screen)
   ======================================== */

.auth-page-v2 {
  min-height: 100vh;
  display: flex;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-container {
  display: flex;
  width: 100%;
  max-width: 100vw;
}

/* Left Side: Branding & Info */
.auth-info-side {
  flex: 1.2;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
              var(--bg-primary);
  display: flex;
  flex-direction: column;
  padding: 60px;
  position: relative;
  border-right: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .auth-info-side {
    display: none;
  }
}

.auth-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
  margin: 0 auto;
}

.auth-logo-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.logo-icon-v2 {
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.logo-text-v2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.auth-tagline {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.auth-subtext {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 48px;
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon-v2 {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-info-footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Right Side: Form */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--bg-primary);
}

@media (max-width: 640px) {
  .auth-form-side {
    padding: 20px 10px;
  }
}

.auth-card-v2 {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .auth-card-v2 {
    padding: 24px 16px;
    border-radius: 24px;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
}

.auth-header-v2 {
  text-align: center;
  margin-bottom: 40px;
}

.auth-mobile-logo {
  display: inline-flex;
  margin-bottom: 24px;
}

.auth-header-v2 h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

@media (max-width: 640px) {
  .auth-header-v2 h2 {
    font-size: 1.75rem;
  }
}

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

@media (max-width: 640px) {
  .auth-header-v2 {
    margin-bottom: 24px;
  }
  .auth-mobile-logo {
    margin-bottom: 16px;
  }
  .logo-icon-v2 {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .auth-header-v2 p {
    font-size: 0.85rem;
  }
}

.auth-form-v2 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 640px) {
  .auth-form-v2 {
    gap: 16px;
  }
}

.form-group-v2 label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .form-group-v2 label {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }
}

.input-wrapper-v2 {
  position: relative;
}

.input-wrapper-v2 input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

@media (max-width: 640px) {
  .input-wrapper-v2 input {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

.input-wrapper-v2 input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.forgot-link-v2 {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.forgot-link-v2:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.btn-auth-v2 {
  width: 100%;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 18px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
  margin-top: 8px;
}

@media (max-width: 640px) {
  .btn-auth-v2 {
    padding: 14px;
    border-radius: 12px;
    margin-top: 4px;
  }
}

.btn-auth-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
  background: var(--accent-gradient-hover);
}

.btn-auth-v2:active {
  transform: translateY(0);
}

.btn-auth-v2:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

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

@media (max-width: 640px) {
  .auth-footer-v2 {
    margin-top: 20px;
    font-size: 0.85rem;
  }
}

.auth-footer-v2 a {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.auth-footer-v2 a:hover {
  text-decoration: underline;
}
