@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  /* Brand Theme Tokens */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);

  /* Accents */
  --gold-start: #f59e0b;
  --gold-end: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;

  /* Surfaces & Backgrounds */
  --bg-main: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-sidebar: #0f172a;
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Radius */
  --border-color: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* App Layout */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}

.sidebar-title h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sidebar-title p {
  font-size: 11px;
  color: var(--text-light);
}

.sidebar-nav {
  padding: 20px 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(-3px);
}

.nav-item.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
}

/* Sidebar Backdrop (Mobile) */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}

.sidebar-backdrop.show {
  display: block;
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  height: 100vh;
}

/* Topbar */
.topbar {
  padding: 14px 28px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: #f1f5f9;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.server-badge.offline {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.server-badge.checking {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.server-text-short {
  display: none;
}

.server-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.server-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-red 1.5s infinite;
}

.server-dot.checking {
  background: #94a3b8;
  box-shadow: 0 0 8px #94a3b8;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.login-btn-short {
  display: none;
}

.content-body {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Glass Cards & KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-info h4 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.kpi-info .kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.kpi-blue { background: #eff6ff; color: #2563eb; }
.kpi-green { background: #ecfdf5; color: #10b981; }
.kpi-gold { background: #fffbeb; color: #f59e0b; }
.kpi-purple { background: #faf5ff; color: #9333ea; }

/* Sections */
.dashboard-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.dashboard-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.card-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #f8fafc;
}

/* Data Tables */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.data-table th {
  background: #f8fafc;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:hover {
  background: #f8fafc;
}

.license-key-badge {
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.license-key-badge:hover {
  background: #e2e8f0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.status-active { background: #ecfdf5; color: #059669; }
.status-pending { background: #fffbeb; color: #d97706; }
.status-blocked { background: #fef2f2; color: #dc2626; }

/* Plan Pricing Cards */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.plan-card {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-header h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin: 14px 0;
}

.plan-price small {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin: 16px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================
   Responsive Breakpoints (Mobile & Tablet)
   ========================================== */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    transform: translateX(100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  }

  .topbar {
    padding: 10px 16px;
  }

  .content-body {
    padding: 16px;
  }

  .server-text-full {
    display: none;
  }

  .server-text-short {
    display: inline;
  }

  .login-btn-full {
    display: none;
  }

  .login-btn-short {
    display: inline;
  }

  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 8px 12px;
    gap: 6px;
  }

  .server-badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Analytics & Profit Dashboard Enhancements */
.kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-emerald { background: #ecfdf5; color: #059669; }
.kpi-indigo { background: #e0e7ff; color: #4338ca; }
.kpi-rose { background: #ffe4e6; color: #e11d48; }

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}
.stat-pill-green { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.stat-pill-blue { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.stat-pill-gold { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.stat-pill-purple { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.periodic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.periodic-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}
.periodic-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.periodic-card .p-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.periodic-card .p-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.periodic-card .p-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.profit-card-highlight {
  background: linear-gradient(135deg, #064e3b, #065f46);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.25);
  position: relative;
  overflow: hidden;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  transition: width 0.6s ease;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
}
.rank-1 { background: #fef08a; color: #854d0e; }
.rank-2 { background: #e2e8f0; color: #475569; }
.rank-3 { background: #fed7aa; color: #9a3412; }
.rank-other { background: #f1f5f9; color: #64748b; }

/* ==========================================
   ESET IRAN SERVER MANUAL & GUIDE UI/UX REDESIGN (v3.0)
   ========================================== */
.guide-hero {
  background: linear-gradient(135deg, #090e17 0%, #0f172a 45%, #1e293b 85%, #0f2744 100%) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 36px 30px !important;
  margin-bottom: 28px !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4) !important;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.guide-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(37, 99, 235, 0.25) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
}

.guide-hero-title {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.45 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 12px !important;
}

.guide-hero-subtitle {
  color: #cbd5e1 !important;
  font-size: 14.5px !important;
  max-width: 860px !important;
  line-height: 1.85 !important;
  margin: 0 !important;
}

.guide-features-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 26px !important;
}

.guide-feature-box {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.guide-feature-box:hover {
  transform: translateY(-3px) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.guide-feature-icon {
  font-size: 28px !important;
  margin-bottom: 8px !important;
  display: inline-block !important;
}

.guide-feature-title {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin-bottom: 4px !important;
}

.guide-feature-desc {
  font-size: 12px !important;
  color: #94a3b8 !important;
  line-height: 1.7 !important;
}

/* Download Hub Card */
.guide-download-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 18px !important;
  padding: 24px 28px !important;
  margin-bottom: 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

.guide-download-info {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.guide-download-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
  flex-shrink: 0 !important;
}

.guide-download-meta {
  display: flex !important;
  gap: 8px !important;
  margin-top: 6px !important;
  flex-wrap: wrap !important;
}

.guide-download-tag {
  background: #e2e8f0 !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

/* Step Card Styles */
.guide-step-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 28px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03) !important;
  position: relative !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.guide-step-card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.07) !important;
}

.guide-step-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
  padding-bottom: 16px !important;
  border-bottom: 1.5px solid #f1f5f9 !important;
}

.guide-step-pill {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.guide-step-pill.step-0 {
  background: linear-gradient(135deg, #0f172a, #334155) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35) !important;
}

.guide-step-title {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.guide-step-subtitle {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin-top: 3px !important;
}

.guide-substep-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.guide-substep-item {
  background: #f8fafc !important;
  padding: 20px !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  transition: background 0.2s ease !important;
}

.guide-substep-item:hover {
  background: #f1f5f9 !important;
}

.guide-substep-top {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.guide-substep-num {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

.guide-substep-heading {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
}

.guide-substep-text {
  font-size: 13.5px !important;
  color: #334155 !important;
  line-height: 1.85 !important;
}

/* Modern Mockup Window Frame for Screenshots */
.mockup-window {
  background: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 32px -8px rgba(15, 23, 42, 0.15) !important;
  margin-top: 14px !important;
}

.mockup-header {
  background: #f1f5f9 !important;
  padding: 8px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.mockup-dots {
  display: flex !important;
  gap: 6px !important;
}

.mockup-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.mockup-dot-red { background: #ef4444 !important; }
.mockup-dot-yellow { background: #f59e0b !important; }
.mockup-dot-green { background: #10b981 !important; }

.mockup-title {
  font-size: 11px !important;
  color: #64748b !important;
  font-family: monospace !important;
  font-weight: 700 !important;
  direction: ltr !important;
}

.mockup-body {
  background: #ffffff !important;
  padding: 6px !important;
  text-align: center !important;
}

.mockup-body img {
  width: 100% !important;
  max-width: 720px !important;
  height: auto !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.2s ease !important;
}

.mockup-caption {
  background: #f8fafc !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  color: #475569 !important;
  font-weight: 600 !important;
  text-align: right !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.guide-img-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 14px !important;
}

/* Notice & Alert Boxes */
.guide-notice-box {
  background: #eff6ff !important;
  border-right: 4px solid #3b82f6 !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 16px 20px !important;
  margin-top: 18px !important;
  font-size: 13.5px !important;
  color: #1e40af !important;
  line-height: 1.85 !important;
}

.guide-notice-box.warning {
  background: #fffbeb !important;
  border-right-color: #f59e0b !important;
  color: #92400e !important;
}

.guide-notice-box.success {
  background: #f0fdf4 !important;
  border-right-color: #10b981 !important;
  color: #166534 !important;
}

/* FAQ Accordion UI */
.guide-faq-item {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
}

.guide-faq-item.active {
  border-color: #93c5fd !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08) !important;
}

.guide-faq-header {
  padding: 16px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  user-select: none !important;
  background: #f8fafc !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  transition: background 0.2s ease !important;
}

.guide-faq-header:hover {
  background: #f1f5f9 !important;
}

.guide-faq-arrow {
  font-size: 12px !important;
  color: #64748b !important;
  transition: transform 0.3s ease !important;
}

.guide-faq-item.active .guide-faq-arrow {
  transform: rotate(180deg) !important;
  color: #2563eb !important;
}

.guide-faq-body {
  padding: 20px !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  line-height: 1.9 !important;
  display: none;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
}

.guide-faq-item.active .guide-faq-body {
  display: block !important;
}

/* ==========================================
   Bulk Actions & High-Security Confirmation UI
   ========================================== */

.bulk-actions-toolbar {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: slideDownIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bulk-toolbar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-count-badge {
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.bulk-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.data-table-check {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #2563eb;
  vertical-align: middle;
}

.data-table tr.row-selected {
  background-color: #f0f7ff !important;
}

.data-table tr.row-selected:hover {
  background-color: #e0effe !important;
}

/* High-Security Confirmation Modal */
.security-warning-card {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.security-warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b91c1c;
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.security-warning-text {
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.8;
}

.security-code-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.security-pin-display {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #dc2626;
  background: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid #fca5a5;
  user-select: all;
}

.security-confirm-input {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  border: 2px solid #cbd5e1;
  transition: all 0.2s ease;
}

.security-confirm-input:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.security-confirm-input.is-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.btn-danger-secure:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* Table Pagination Component */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-info strong {
  color: var(--text-main);
}

.pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  cursor: default;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
  font-weight: 700;
  user-select: none;
}

/* ==========================================
   Sinusoidal Sales & Revenue Trend Chart
   ========================================== */
.chart-container-card {
  position: relative;
  overflow: hidden;
}

.chart-view-toggle {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  gap: 2px;
}

.chart-btn-tab {
  background: transparent;
  border: none;
  outline: none;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chart-btn-tab:hover:not(.active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.chart-btn-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.chart-range-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.range-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.range-pill:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.range-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.range-pill-custom {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--primary);
}

.range-pill-custom.active {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
}

.chart-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.chart-summary-item .cs-label {
  color: var(--text-muted);
}

.chart-summary-item .cs-val {
  font-weight: 700;
  font-size: 13px;
}

.chart-summary-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
}

@media (max-width: 768px) {
  .chart-summary-divider {
    display: none;
  }
  .chart-summary-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .chart-view-toggle {
    width: 100%;
    overflow-x: auto;
  }
  .chart-range-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

