/* Apex SMS - Premium SMS Verification Service */
/* Theme: Green, Black & White */

:root {
  /* Primary Colors - Green Theme */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.4);
  
  /* Secondary Colors */
  --secondary: #06b6d4;
  --secondary-light: #67e8f9;
  
  /* Accent Colors */
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  
  /* Success/Warning/Danger */
  --success: #10b981;
  --success-light: #34d399;
  --success-dark: #047857;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --danger: #ef4444;
  --danger-light: #f87171;
  --info: #3b82f6;
  --info-light: #60a5fa;
  
  /* Dark Theme Base */
  --dark: #000000;
  --dark-light: #0a0a0a;
  --dark-lighter: #111111;
  --dark-card: #0f0f0f;
  --dark-border: #1a1a1a;
  
  /* Text Colors */
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --text-dark: #52525b;
  
  /* Borders */
  --border: #27272a;
  --border-light: #3f3f46;
  --border-hover: #52525b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-success: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
  --gradient-dark: linear-gradient(180deg, var(--dark-lighter) 0%, var(--dark) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.2);
  --shadow-glow-strong: 0 0 60px rgba(16, 185, 129, 0.3);
  
  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--dark);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: var(--text);
}

/* ========== LANDING PAGE ========== */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Landing Header */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.landing-header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.landing-logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.landing-nav a:hover {
  color: var(--text);
}

.landing-nav-buttons {
  display: flex;
  gap: 12px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 32px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Services Preview Section */
.services-preview {
  padding: 100px 24px;
  background: var(--dark-light);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-preview-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}

.service-preview-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-preview-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.service-preview-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-preview-price {
  font-size: 12px;
  color: var(--primary-light);
}

/* Features Section */
.features-section {
  padding: 100px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  background: var(--gradient-glow);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Footer */
.landing-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-footer p {
  color: var(--text-dim);
  font-size: 14px;
}

/* ========== AUTH PAGES ========== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.auth-box {
  background: var(--dark-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.auth-logo-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.auth-logo h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-logo p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

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

.auth-tab:hover:not(.active) {
  color: var(--text);
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
}

.form-input:hover {
  border-color: var(--border-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input.success {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-hint.success {
  color: var(--success-light);
}

.form-hint.error {
  color: var(--danger-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

.btn-secondary {
  background: var(--dark-lighter);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.1);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* Alert Messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success-light);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger-light);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--info-light);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--warning-light);
}

/* ========== DASHBOARD ========== */
.dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 14px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.header-brand-text h1 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.header-brand-text span {
  font-size: 11px;
  color: var(--text-muted);
}

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

.nav-link {
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: white;
  background: rgba(16, 185, 129, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  color: var(--success-light);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.balance-badge:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.user-info {
  text-align: right;
}

.user-info .name {
  font-size: 14px;
  font-weight: 600;
}

.user-info .role {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-logout {
  padding: 10px 18px;
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--danger);
  border-color: var(--danger);
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.stat-info h3 {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-icon.green { 
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.stat-icon.blue { 
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.stat-icon.yellow { 
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.stat-icon.purple { 
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Cards */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.card-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-body {
  padding: 24px;
}

/* Tabs */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

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

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

.table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

/* Badges */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-light);
}

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

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

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info-light);
}

.badge-secondary {
  background: var(--dark-lighter);
  color: var(--text-muted);
}

/* Number Cards */
.number-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.number-card:hover {
  border-color: var(--border-light);
}

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

.number-display {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}

.number-meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.country-badge, .service-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.country-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.service-badge {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.timer {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--warning);
  transition: var(--transition);
}

.timer.warning {
  color: var(--danger);
  animation: pulse 1s infinite;
}

.code-display {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 32px;
  font-weight: 800;
  color: var(--success);
  letter-spacing: 4px;
}

.number-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
}

.wait-timer {
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--warning-light);
  font-weight: 600;
}

.success-received {
  margin-top: 20px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius);
  color: var(--success-light);
  display: flex;
  align-items: center;
  gap: 14px;
}

.success-icon {
  font-size: 24px;
}

/* Progress Bar */
.progress-bar {
  height: 4px;
  background: var(--dark);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg {
  max-width: 800px;
}

.modal-xl {
  max-width: 1100px;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.service-card.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.service-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Country Select */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.country-option {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.country-option:hover {
  border-color: var(--primary);
}

.country-option.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

.country-flag {
  font-size: 28px;
  margin-bottom: 6px;
}

.country-name {
  font-size: 12px;
  font-weight: 500;
}

.country-price {
  font-size: 11px;
  color: var(--primary-light);
  margin-top: 4px;
}

/* Topup Modal */
.topup-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.topup-amount {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.topup-amount:hover {
  border-color: var(--primary);
}

.topup-amount.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

.topup-amount .amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.topup-amount .currency {
  font-size: 11px;
  color: var(--text-muted);
}

/* Help Section */
.help-section {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.help-video {
  aspect-ratio: 16/9;
  background: var(--dark);
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.help-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.help-video-placeholder {
  text-align: center;
  padding: 40px;
}

.help-video-placeholder .icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.help-contact {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.help-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #25D366;
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

.guide-box {
  background: var(--dark);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 24px;
}

.guide-box h3 {
  font-size: 14px;
  margin-bottom: 16px;
}

.guide-box ol {
  color: var(--text-muted);
  padding-left: 20px;
  line-height: 2;
  font-size: 14px;
}

.guide-box li {
  margin-bottom: 8px;
}

.guide-warning {
  margin-top: 16px;
  padding: 14px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.guide-warning p {
  color: var(--warning-light);
  font-size: 13px;
}

/* ========== ADMIN PANEL ========== */
.admin-header {
  background: rgba(0, 0, 0, 0.95);
}

.admin-header .header-logo {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Service Management */
.service-management-card {
  margin-bottom: 16px;
}

.service-management-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-management-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.service-management-info h3 {
  font-size: 16px;
  font-weight: 700;
}

.service-management-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Icon Selector */
.icon-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.icon-option {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-lighter);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 24px;
  transition: var(--transition);
}

.icon-option:hover {
  border-color: var(--border-light);
}

.icon-option.selected {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

/* Activity Filter */
.activity-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.activity-filters .form-input {
  width: auto;
  min-width: 180px;
}

/* User Detail Modal */
.user-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.user-detail-stat {
  background: var(--dark);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.user-detail-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.user-detail-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* SMS Hero Code Guide */
.code-guide {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.code-guide h4 {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.code-guide-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.code-guide-item code {
  background: var(--dark-lighter);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .landing-nav {
    display: none;
  }
  
  .header-content {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
  
  .main-content {
    padding: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-box {
    padding: 24px;
  }
  
  .modal {
    margin: 16px;
    max-height: calc(100vh - 32px);
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .topup-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .number-display {
    font-size: 20px;
  }
  
  .code-display {
    font-size: 24px;
  }
  
  .user-detail-stats {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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