@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
  --primary: #FACC15;
  --primary-dark: #EAB308;
  --primary-light: #FDE68A;
  --secondary: #FFFFFF;
  --accent: #F59E0B;
  --success: #22C55E;
  --warning: #FACC15;
  --danger: #EF4444;
  --bg-dark: #000000;
  --bg-card: #0A0A0A;
  --bg-input: #111111;
  --bg-hover: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #A3A3A3;
  --text-muted: #525252;
  --border: #1F1F1F;
  --border-light: #2A2A2A;
  --gradient-1: linear-gradient(135deg, #FACC15 0%, #F59E0B 100%);
  --gradient-2: linear-gradient(135deg, #FFFFFF 0%, #A3A3A3 100%);
  --gradient-3: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 40px rgba(250,204,21,0.15);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ================================================================
   1. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(250,204,21,0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

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

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

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) #000;
}

/* ================================================================
   2. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary);
}

strong, b {
  font-weight: 700;
}

/* ================================================================
   3. NAVBAR
   ================================================================ */
.navbar {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.nav-brand .logo {
  width: 42px;
  height: 42px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(250,204,21,0.3);
}

.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* ================================================================
   4. HERO
   ================================================================ */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 160%;
  height: 160%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(250,204,21,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.02) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero h1 .gradient,
.hero h1 .gold-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.hero-stats .stat-item,
.stats-bar-item {
  text-align: center;
}

.hero-stats .stat-item .number,
.stats-bar-item .number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stats .stat-item .label,
.stats-bar-item .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* ================================================================
   5. CARDS
   ================================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ================================================================
   6. STATS GRID
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.purple::before { background: var(--gradient-1); }
.stat-card.blue::before { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.stat-card.green::before { background: var(--gradient-3); }
.stat-card.red::before { background: linear-gradient(135deg, #F87171, #EF4444); }

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card.purple .stat-icon { background: rgba(250,204,21,0.1); }
.stat-card.blue .stat-icon { background: rgba(96,165,250,0.1); }
.stat-card.green .stat-icon { background: rgba(34,197,94,0.1); }
.stat-card.red .stat-icon { background: rgba(248,113,113,0.1); }

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ================================================================
   7. FORMS
   ================================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  direction: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250,204,21,0.1);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A3A3A3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

input[type="file"].form-control {
  padding: 8px;
}

.form-control.invalid {
  border-color: var(--danger);
}

.form-control.valid {
  border-color: var(--success);
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.input-group .form-control {
  padding-left: 42px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.field-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

/* ================================================================
   8. BUTTONS
   ================================================================ */
.nav-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--gradient-1);
  color: #000000;
  box-shadow: 0 4px 20px rgba(250,204,21,0.35);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(250,204,21,0.5);
  color: #000000;
}

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

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

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

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239,68,68,0.4);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #000;
  font-weight: 700;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34,197,94,0.4);
  color: #000;
}

.btn-warning {
  background: linear-gradient(135deg, #FACC15, #EAB308);
  color: #000;
  font-weight: 700;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(250,204,21,0.4);
  color: #000;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
}

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

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* ================================================================
   9. DASHBOARD LAYOUT
   ================================================================ */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 72px);
}

.sidebar {
  width: 270px;
  background: #050505;
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  transition: all 0.25s;
  font-weight: 600;
  font-size: 0.92rem;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  color: var(--primary);
  background: rgba(250,204,21,0.06);
  border-right: 3px solid var(--primary);
}

.sidebar-menu li a .icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

/* ================================================================
   10. TABLES
   ================================================================ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

th {
  background: #080808;
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

tr:hover {
  background: var(--bg-hover);
}

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

/* ================================================================
   11. BADGES
   ================================================================ */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

.badge-success { background: rgba(34,197,94,0.12); color: #22C55E; }
.badge-danger { background: rgba(239,68,68,0.12); color: #EF4444; }
.badge-warning { background: rgba(250,204,21,0.12); color: #FACC15; }
.badge-info { background: rgba(96,165,250,0.12); color: #60A5FA; }
.badge-purple { background: rgba(250,204,21,0.12); color: #FACC15; }

/* ================================================================
   12. BOT CARDS
   ================================================================ */
.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bot-card:hover {
  border-color: rgba(250,204,21,0.3);
  box-shadow: 0 0 30px rgba(250,204,21,0.05);
}

.bot-card-header,
.bot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bot-card-name,
.bot-name {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bot-status.running {
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

.bot-status.stopped {
  background: var(--text-muted);
}

.bot-status.error {
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
}

.bot-status.crashed {
  background: #FACC15;
  box-shadow: 0 0 8px #FACC15;
}

.bot-actions,
.bot-card-actions {
  display: flex;
  gap: 8px;
}

.bot-card-info {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.83rem;
  margin-top: 0.5rem;
}

.bot-card-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ================================================================
   13. PLANS
   ================================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-card {
  background: #0A0A0A;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.plan-card.featured::before {
  content: '\2B50 \0627\0644\0623\0643\062B\0631 \0634\0639\0628\064A\0629';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-1);
  color: #000;
  text-align: center;
  padding: 7px 0;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.plan-card.featured .plan-name,
.plan-card.featured .plan-tier-name {
  margin-top: 1rem;
}

.plan-name,
.plan-tier-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.3rem;
  letter-spacing: -1px;
  line-height: 1;
}

.plan-period {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: right;
  padding: 0;
}

.plan-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.plan-features li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-features li .feat-icon {
  color: var(--primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ================================================================
   14. LOG VIEWER
   ================================================================ */
.log-viewer {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  color: #22C55E;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  direction: ltr;
  text-align: left;
  line-height: 1.6;
}

/* ================================================================
   15. MODALS
   ================================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #0A0A0A;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

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

/* ================================================================
   16. ALERTS
   ================================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #22C55E;
}

.alert-danger {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #EF4444;
}

.alert-warning {
  background: rgba(250,204,21,0.08);
  border: 1px solid rgba(250,204,21,0.25);
  color: #FACC15;
}

.alert-info {
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.25);
  color: #60A5FA;
}

/* ================================================================
   17. TOAST
   ================================================================ */
.toast-container {
  position: fixed;
  top: 90px;
  left: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0A0A0A;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  min-width: 300px;
}

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

/* ================================================================
   18. LOADING
   ================================================================ */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  flex-direction: column;
  gap: 1rem;
}

.loading-overlay.active {
  display: flex;
}

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

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

/* ================================================================
   19. UPLOAD AREA
   ================================================================ */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: rgba(250,204,21,0.03);
}

.upload-area .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-area p {
  color: var(--text-secondary);
}

/* ================================================================
   20. PROGRESS BAR
   ================================================================ */
.progress-bar-fill {
  width: 100%;
  background: var(--bg-input);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-1);
  transition: width 0.6s ease;
}

/* ================================================================
   21. CHECKOUT / BILLING
   ================================================================ */
.checkout-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.checkout-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
}

.checkout-form-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Multi-step progress */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.progress-step.active .progress-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(250,204,21,0.4);
}

.progress-step.done .progress-circle {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.progress-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s;
  white-space: nowrap;
}

.progress-step.active .progress-label {
  color: var(--primary);
}

.progress-step.done .progress-label {
  color: #22c55e;
}

.progress-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px;
  z-index: 1;
}

.progress-line.done {
  background: #22c55e;
}

/* Step views */
.step-view {
  display: none;
  animation: fadeUp 0.35s ease;
}

.step-view.active {
  display: block;
}

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

.step-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: 900;
}

.step-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Duration tabs */
.duration-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.duration-tab {
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
}

.duration-tab:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.duration-tab.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  font-weight: 800;
}

.duration-tab .discount-badge {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 4px;
  font-weight: 700;
  vertical-align: middle;
}

/* Plan card selected state */
.plan-card.selected {
  border-color: var(--primary);
  background: rgba(250,204,21,0.04);
  box-shadow: 0 0 40px rgba(250,204,21,0.1);
}

.plan-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
}

.plan-card.selected::after {
  content: none;
}

.plan-tier-starter .plan-tier-name { color: #22c55e; }
.plan-tier-pro .plan-tier-name { color: var(--primary); }
.plan-tier-advanced .plan-tier-name { color: #8b5cf6; }
.plan-tier-business .plan-tier-name { color: #f87171; }

.plan-price-row {
  margin-bottom: 0.3rem;
}

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

.plan-original-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}

.plan-savings {
  display: inline-block;
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 1rem;
  min-height: 1.1em;
}

/* Order sidebar */
.order-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  position: sticky;
  top: 92px;
}

.order-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.order-plan-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding: 14px;
  background: var(--bg-input);
  border-radius: 12px;
}

.order-plan-badge .ob-name {
  font-weight: 800;
  font-size: 1rem;
}

.order-plan-badge .ob-duration {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.order-line.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.order-line.total span:last-child {
  color: var(--primary);
}

.order-line .line-discount {
  color: #22c55e;
  font-size: 0.82rem;
}

.btn-next-step {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.btn-back {
  width: 100%;
  margin-top: 0.5rem;
}

/* Payment methods */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-method-card {
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background: var(--bg-card);
}

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

.payment-method-card.selected {
  border-color: var(--primary);
  background: rgba(250,204,21,0.04);
}

.payment-method-card .pm-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.payment-method-card .pm-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.payment-method-card .pm-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.payment-panel {
  display: none;
  animation: fadeUp 0.3s ease;
}

.payment-panel.active {
  display: block;
}

/* Stripe card form */
.stripe-card-form {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.stripe-card-form .card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* USDT payment */
.usdt-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.usdt-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0.5rem 0;
}

.usdt-wallet-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.usdt-wallet-address {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--primary);
  word-break: break-all;
  padding: 14px;
  border-radius: 10px;
  background: rgba(250,204,21,0.05);
  border: 1px dashed rgba(250,204,21,0.2);
  margin: 0.75rem 0;
  cursor: pointer;
  transition: background 0.2s;
}

.usdt-wallet-address:hover {
  background: rgba(250,204,21,0.1);
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 1.25rem auto;
  background: var(--bg-card);
  border: 2px dashed var(--border-light);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qr-placeholder .qr-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.qr-placeholder span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.usdt-warning {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.usdt-warning strong {
  color: var(--danger);
}

.timer-box {
  text-align: center;
  margin: 1.25rem 0;
  padding: 14px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.timer-display {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}

.timer-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Confirmation step */
.confirm-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
}

.confirm-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(34,197,94,0.1);
  border: 2px solid #22c55e;
}

.confirm-box h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.confirm-box p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.confirm-channels {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.confirm-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-input);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
}

.confirm-channel .ch-icon {
  font-size: 1.3rem;
}

/* Payment history */
.history-section {
  margin-top: 3rem;
}

.history-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.history-card th {
  background: var(--bg-input);
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-card td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.badge-paid {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pending {
  background: rgba(250,204,21,0.12);
  color: #FACC15;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-failed {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.empty-state .es-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* ================================================================
   22. DASHBOARD SPECIFIC
   ================================================================ */

/* Bot detail panel */
.detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1500;
  display: none;
  align-items: stretch;
  justify-content: flex-start;
}

.detail-overlay.active {
  display: flex;
}

.detail-panel {
  width: min(860px, 100%);
  background: #080808;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 2rem;
  animation: slideRight 0.3s ease;
}

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

/* Tabs */
.tab-nav,
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

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

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.tab-content {
  display: none;
}

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

/* Console viewer (WebSocket logs) */
.console-viewer,
.console-display {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  direction: ltr;
  text-align: left;
  line-height: 1.6;
}

.console-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.console-line.stdout { color: #22C55E; }
.console-line.stderr { color: #EF4444; }
.console-line.system { color: #FACC15; }
.console-line.info { color: #60A5FA; }

.console-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.console-status {
  margin-right: auto;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #525252;
}

.ws-dot.connected {
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
}

.console-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.console-input-wrap input {
  flex: 1;
}

/* File manager */
.file-manager,
.file-tree {
  direction: ltr;
  text-align: left;
}

.file-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s;
}

.file-tree-item:hover {
  background: var(--bg-hover);
}

.file-tree-item.active {
  background: rgba(250,204,21,0.08);
  color: var(--primary);
}

.file-tree-item .fi {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.file-tree-children {
  padding-right: 1.2rem;
}

.file-editor-area {
  width: 100%;
  min-height: 340px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: #22C55E;
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  direction: ltr;
  text-align: left;
  resize: vertical;
}

.file-editor-area:focus {
  outline: none;
  border-color: var(--primary);
}

.file-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Settings */
.env-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.env-row input {
  flex: 1;
}

/* Subscription */
.sub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sub-layout .full {
  grid-column: 1 / -1;
}

.plan-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.plan-feature-item .pf-icon {
  color: var(--primary);
  font-weight: 800;
}

/* ---- BILLING SECTION ---- */
.billing-current-card{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-card);padding:0}
.billing-current-card .bcc-head{padding:1.75rem 2rem 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem}
.billing-current-card .bcc-head h3{font-size:1.1rem;font-weight:800;margin:0}
.billing-current-card .bcc-body{padding:1.25rem 2rem 1.75rem;display:flex;gap:2rem;align-items:flex-start;flex-wrap:wrap}
.billing-current-card .bcc-plan-name{font-size:2rem;font-weight:900;color:var(--primary);line-height:1.1}
.billing-current-card .bcc-meta{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;flex:1;min-width:200px}
.billing-current-card .bcc-meta-item{display:flex;flex-direction:column;gap:2px}
.billing-current-card .bcc-meta-label{font-size:.78rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.billing-current-card .bcc-meta-val{font-size:.95rem;font-weight:700;color:var(--text-primary)}
.billing-current-card .bcc-actions{display:flex;gap:.6rem;flex-wrap:wrap;padding:0 2rem 1.5rem}
.billing-current-card .bcc-progress{margin-top:1rem}
.billing-current-card .bcc-progress-label{display:flex;justify-content:space-between;font-size:.8rem;color:var(--text-secondary);margin-bottom:5px}
.billing-current-card .bcc-progress-track{background:var(--bg-input);border-radius:8px;height:6px;overflow:hidden}
.billing-current-card .bcc-progress-fill{height:100%;border-radius:8px;transition:width .6s ease}

.billing-plans-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem}
.billing-plan-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;display:flex;flex-direction:column;position:relative;transition:all .3s ease}
.billing-plan-card:hover{border-color:var(--border-light);transform:translateY(-3px);box-shadow:var(--shadow)}
.billing-plan-card.is-current{border-color:var(--primary);box-shadow:0 0 30px rgba(250,204,21,.08)}
.billing-plan-card .bpc-badge{position:absolute;top:14px;right:14px}
.billing-plan-card .bpc-name{font-size:1.1rem;font-weight:800;margin-bottom:.25rem}
.billing-plan-card .bpc-price{font-size:1.7rem;font-weight:900;color:var(--primary);margin-bottom:.1rem;line-height:1.1}
.billing-plan-card .bpc-period{font-size:.8rem;color:var(--text-muted);margin-bottom:1rem}
.billing-plan-card .bpc-specs{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.25rem;flex:1}
.billing-plan-card .bpc-spec{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--text-secondary)}
.billing-plan-card .bpc-spec-icon{color:var(--primary);width:18px;text-align:center;font-size:.9rem}
.billing-plan-card .bpc-features{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.25rem;padding-top:.75rem;border-top:1px solid var(--border)}
.billing-plan-card .bpc-feature{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--text-secondary)}
.billing-plan-card .bpc-feature-check{color:var(--primary);font-weight:800;font-size:.85rem}
.billing-plan-card .bpc-btn{width:100%;padding:10px;text-align:center;font-size:.9rem}

.billing-plan-card.featured{border-color:rgba(250,204,21,.3)}
.billing-plan-card.featured::before{content:attr(data-popular-label);position:absolute;top:0;left:0;right:0;background:var(--gradient-1);color:#000;text-align:center;padding:5px 0;font-size:.72rem;font-weight:800;border-radius:var(--radius-lg) var(--radius-lg) 0 0}
.billing-plan-card.featured .bpc-name{margin-top:.75rem}

.billing-history-wrap{margin-top:0}

@media(max-width:768px){
  .billing-current-card .bcc-body{flex-direction:column}
  .billing-plans-grid{grid-template-columns:1fr}
  .billing-current-card .bcc-meta{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .billing-current-card .bcc-head{padding:1.25rem 1.25rem 0}
  .billing-current-card .bcc-body{padding:1rem 1.25rem 1.25rem}
  .billing-current-card .bcc-actions{padding:0 1.25rem 1.25rem}
  .billing-current-card .bcc-meta{grid-template-columns:1fr}
}

/* Usage bars */
.usage-bar-wrap {
  margin-top: 0.75rem;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.usage-track {
  background: var(--bg-input);
  border-radius: 6px;
  height: 5px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

/* Activity items */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot.green { background: #22C55E; }
.activity-dot.red { background: #EF4444; }
.activity-dot.yellow { background: #FACC15; }
.activity-dot.blue { background: #60A5FA; }

.activity-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.activity-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, rgba(250,204,21,0.08) 0%, rgba(250,204,21,0.02) 100%);
  border: 1px solid rgba(250,204,21,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(250,204,21,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-banner h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  position: relative;
}

.welcome-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

.quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  position: relative;
}

/* Bots grid */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* Dashboard stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.dash-stat-card.c-yellow::before { background: var(--gradient-1); }
.dash-stat-card.c-green::before { background: var(--gradient-3); }
.dash-stat-card.c-blue::before { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.dash-stat-card.c-red::before { background: linear-gradient(135deg, #F87171, #EF4444); }

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.dash-stat-card.c-yellow .dash-stat-icon { background: rgba(250,204,21,0.1); }
.dash-stat-card.c-green .dash-stat-icon { background: rgba(34,197,94,0.1); }
.dash-stat-card.c-blue .dash-stat-icon { background: rgba(96,165,250,0.1); }
.dash-stat-card.c-red .dash-stat-icon { background: rgba(248,113,113,0.1); }

.dash-stat-val {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.dash-stat-lbl {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1099;
}

.mobile-overlay.active {
  display: block;
}

/* ================================================================
   23. ADMIN SPECIFIC
   ================================================================ */
.admin-body {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  overflow-y: auto;
}

.admin-sidebar .sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-sidebar .sidebar-logo .logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-sidebar .sidebar-logo .logo-icon svg {
  width: 22px;
  height: 22px;
}

.admin-sidebar .sidebar-logo .logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-sidebar .sidebar-logo .logo-badge {
  margin-right: auto;
  background: var(--gradient-2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.sidebar-nav-label {
  padding: 8px 24px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-right: 3px solid transparent;
  margin: 2px 0;
}

.sidebar-nav ul li a svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  flex-shrink: 0;
}

.sidebar-nav ul li a:hover {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.07);
  border-right-color: rgba(108, 99, 255, 0.3);
}

.sidebar-nav ul li a:hover svg {
  opacity: 1;
}

.sidebar-nav ul li a.active {
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.12);
  border-right-color: var(--primary);
  font-weight: 600;
}

.sidebar-nav ul li a.active svg {
  opacity: 1;
}

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

.sidebar-footer .admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-footer .admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.sidebar-footer .admin-info .admin-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar-footer .admin-info .admin-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-footer .logout-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: 10px;
  color: var(--danger);
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sidebar-footer .logout-btn:hover {
  background: rgba(255, 82, 82, 0.15);
  border-color: var(--danger);
}

/* Admin main */
.admin-main {
  flex: 1;
  margin-right: 260px;
  padding: 0;
  min-height: 100vh;
}

.admin-topbar {
  height: 64px;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 800;
}

.admin-topbar .page-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar .topbar-time {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-content {
  padding: 28px 32px;
}

.admin-page-header {
  margin-bottom: 28px;
}

.admin-page-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.admin-page-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Admin stats grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.admin-stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.admin-stat-card .accent-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
}

.admin-stat-card .accent-bar.c1 { background: var(--gradient-1); }
.admin-stat-card .accent-bar.c2 { background: linear-gradient(135deg, #00D2FF, #0099FF); }
.admin-stat-card .accent-bar.c3 { background: var(--gradient-3); }
.admin-stat-card .accent-bar.c4 { background: var(--gradient-2); }

.admin-stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-stat-card .stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-card .stat-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.admin-stat-card.c-purple .stat-icon-wrap { background: rgba(108, 99, 255, 0.14); }
.admin-stat-card.c-purple .stat-icon-wrap svg { color: var(--primary); }
.admin-stat-card.c-blue .stat-icon-wrap { background: rgba(0, 210, 255, 0.14); }
.admin-stat-card.c-blue .stat-icon-wrap svg { color: var(--secondary); }
.admin-stat-card.c-green .stat-icon-wrap { background: rgba(0, 230, 118, 0.14); }
.admin-stat-card.c-green .stat-icon-wrap svg { color: var(--success); }
.admin-stat-card.c-red .stat-icon-wrap { background: rgba(255, 107, 107, 0.14); }
.admin-stat-card.c-red .stat-icon-wrap svg { color: var(--accent); }

.admin-stat-card .stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-card .stat-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Admin cards */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-card-head h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-head h3 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.admin-card-body {
  padding: 20px 24px;
}

.admin-card-body.no-pad {
  padding: 0;
}

/* Admin tables */
.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th {
  background: var(--bg-input);
  padding: 13px 20px;
  text-align: right;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: rgba(108, 99, 255, 0.04);
}

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

.admin-table .cell-main {
  font-weight: 600;
  color: var(--text-primary);
}

.admin-table .cell-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Admin badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.admin-badge.success { background: rgba(0, 230, 118, 0.12); color: var(--success); }
.admin-badge.success .dot { background: var(--success); }
.admin-badge.danger { background: rgba(255, 82, 82, 0.12); color: var(--danger); }
.admin-badge.danger .dot { background: var(--danger); }
.admin-badge.warning { background: rgba(255, 183, 77, 0.12); color: var(--warning); }
.admin-badge.warning .dot { background: var(--warning); }
.admin-badge.info { background: rgba(0, 210, 255, 0.12); color: var(--secondary); }
.admin-badge.info .dot { background: var(--secondary); }
.admin-badge.purple { background: rgba(108, 99, 255, 0.12); color: var(--primary-light); }
.admin-badge.purple .dot { background: var(--primary); }

/* Admin actions */
.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-btn svg {
  width: 14px;
  height: 14px;
}

.admin-btn.primary {
  background: var(--gradient-1);
  color: #fff;
}

.admin-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

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

.admin-btn.secondary:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.admin-btn.danger {
  background: rgba(255, 82, 82, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 82, 82, 0.2);
}

.admin-btn.danger:hover {
  background: rgba(255, 82, 82, 0.22);
}

.admin-btn.success {
  background: rgba(0, 230, 118, 0.12);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.admin-btn.success:hover {
  background: rgba(0, 230, 118, 0.22);
}

.admin-btn.warning {
  background: rgba(255, 183, 77, 0.12);
  color: var(--warning);
  border: 1px solid rgba(255, 183, 77, 0.2);
}

/* Admin modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.admin-modal-overlay.active {
  display: flex;
}

.admin-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
  border-radius: 20px 20px 0 0;
}

.admin-modal-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-modal-close:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.admin-modal-close svg {
  width: 16px;
  height: 16px;
}

.admin-modal-body {
  padding: 24px 28px;
}

/* Admin toast */
.admin-toast-container {
  position: fixed;
  top: 80px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: adminSlideIn 0.3s ease;
  min-width: 280px;
  font-size: 0.9rem;
}

.admin-toast .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-toast .toast-icon svg {
  width: 16px;
  height: 16px;
}

.admin-toast.success { border-right: 3px solid var(--success); }
.admin-toast.success .toast-icon { background: rgba(0, 230, 118, 0.12); color: var(--success); }
.admin-toast.error { border-right: 3px solid var(--danger); }
.admin-toast.error .toast-icon { background: rgba(255, 82, 82, 0.12); color: var(--danger); }
.admin-toast.info { border-right: 3px solid var(--secondary); }
.admin-toast.info .toast-icon { background: rgba(0, 210, 255, 0.12); color: var(--secondary); }

@keyframes adminSlideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Admin form */
.admin-form .form-group {
  margin-bottom: 20px;
}

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

.admin-form .form-group .form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.admin-form .form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.admin-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.admin-form .form-control::placeholder {
  color: var(--text-muted);
}

.admin-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0A0B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

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

.admin-form .btn-submit {
  padding: 13px 28px;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.admin-form .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
}

.admin-form .btn-submit.danger-btn {
  background: linear-gradient(135deg, #FF5252, #FF1744);
}

/* Admin activity list */
.activity-list .activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

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

.activity-list .activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-list .activity-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex: 1;
}

.activity-list .activity-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Info rows */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

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

.info-row .info-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-row .info-value {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Admin log viewer */
.log-viewer-admin {
  background: #0a0a1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  color: var(--success);
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  direction: ltr;
  text-align: left;
  line-height: 1.6;
}

/* Section panel (admin) */
.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

/* ================================================================
   24. UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.hidden { display: none; }
.w-full { width: 100%; }

/* ================================================================
   25. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    width: 220px;
    min-width: 220px;
  }

  .admin-main {
    margin-right: 220px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-content {
    padding: 1rem;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-right: 0;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .bots-grid {
    grid-template-columns: 1fr;
  }

  .sub-layout {
    grid-template-columns: 1fr;
  }

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

  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .detail-panel {
    width: 100%;
  }

  .progress-step .progress-label {
    display: none;
  }

  .progress-line {
    width: 30px;
  }

  .mobile-menu-btn {
    display: block;
  }
}

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

  .dash-main {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

  .stats-bar {
    gap: 1.5rem;
  }

  .stats-bar-item .number {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

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