:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #0f172a;
  --dark-navy: #1e1b4b;
  --space-blue: #1e3a8a;
  --cosmic-purple: #5b21b6;
  --light: #f8fafc;
  --border: #334155;
  --glow: #818cf8;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================
   SPACE ANIMATED BACKGROUND - STARS CONTAINER
================================ */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
  animation: shoot 3s linear infinite;
  opacity: 0;
}

.shooting-star:nth-child(152) {
  top: 20%;
  left: 80%;
  animation-delay: 0s;
}

.shooting-star:nth-child(153) {
  top: 60%;
  left: 70%;
  animation-delay: 1s;
}

.shooting-star:nth-child(154) {
  top: 40%;
  left: 90%;
  animation-delay: 2s;
}

@keyframes shoot {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-300px) translateY(300px);
  }
}

.planet {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite ease-in-out;
  opacity: 0.15;
}

.planet-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.planet-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: 20%;
  right: 10%;
  animation-delay: -5s;
}

.planet-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #ec4899, transparent);
  top: 50%;
  right: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 40px) scale(0.9);
  }
  75% {
    transform: translate(40px, 20px) scale(1.05);
  }
}

/* ================================
   CONTAINER
================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.auth-box {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.2);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.auth-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  animation: borderRotate 3s linear infinite;
  background-size: 300% 300%;
}

.auth-box:hover::before {
  opacity: 0.5;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-logo svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.auth-box h1 {
  text-align: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.auth-box h2 {
  text-align: center;
  color: #94a3b8;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 30px;
}

/* ================================
   FORM ELEMENTS
================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--light);
  font-size: 14px;
}

.form-group label svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  font-size: 16px;
  color: var(--light);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.3);
}

.form-control::placeholder {
  color: #64748b;
}

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

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

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
  background: rgba(100, 116, 139, 0.2);
  color: white;
  border: 2px solid rgba(100, 116, 139, 0.5);
}

.btn-secondary:hover {
  background: rgba(100, 116, 139, 0.4);
  border-color: rgba(100, 116, 139, 0.8);
}

.btn-block {
  width: 100%;
}

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

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ================================
   ALERTS
================================ */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid;
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border-color: #10b981;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: #ef4444;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border-color: #f59e0b;
}

.alert-info {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: #6366f1;
}

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

.sidebar {
  width: 280px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(99, 102, 241, 0.2);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.sidebar-header h1 {
  font-size: 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.sidebar-header span {
  font-size: 12px;
  color: #64748b;
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  margin: 4px 10px;
  border-radius: 12px;
}

.sidebar-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(99, 102, 241, 0.1);
  color: white;
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
  opacity: 1;
}

.sidebar-menu a svg {
  margin-right: 12px;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
  min-height: 100vh;
}

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

.page-header h1 {
  font-size: 32px;
  color: var(--light);
  font-weight: 700;
}

/* ================================
   CARDS
================================ */
.card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 18px;
  color: var(--light);
  font-weight: 600;
}

.card-body {
  padding: 24px;
}

/* ================================
   STATS GRID
================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
}

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

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.stat-card h3 {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-card .value {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card.primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(99, 102, 241, 0.5);
}

.stat-card.primary .value {
  -webkit-text-fill-color: white;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* ================================
   TABLES
================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

table th,
table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  white-space: nowrap;
}

table th {
  background: rgba(99, 102, 241, 0.05);
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  position: sticky;
  top: 0;
  z-index: 10;
}

table tr {
  transition: all 0.3s ease;
}

table tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

table td {
  color: #cbd5e1;
}

/* ================================
   BADGES
================================ */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

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

.badge-info {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ================================
   PACKAGES GRID
================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.package-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.package-card:hover {
  border-color: rgba(99, 102, 241, 0.8);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.package-card .sms-count {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.package-card .sms-label {
  color: #94a3b8;
  margin-bottom: 20px;
  font-size: 14px;
}

.package-card .price {
  font-size: 28px;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 25px;
}

/* ================================
   SMS BALANCE WIDGET
================================ */
.sms-balance {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.sms-balance h3 {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 15px;
  color: #a5b4fc;
}

.sms-balance .balance {
  font-size: 52px;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
}

.sms-balance .label {
  opacity: 0.8;
  color: #cbd5e1;
}

/* ================================
   PAYMENT INSTRUCTIONS
================================ */
.payment-box {
  background: rgba(99, 102, 241, 0.05);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0;
}

.payment-box h3 {
  color: #a5b4fc;
  margin-bottom: 20px;
  font-size: 18px;
}

.payment-steps {
  list-style: none;
  counter-reset: step;
}

.payment-steps li {
  padding: 12px 0;
  padding-left: 40px;
  position: relative;
  color: #cbd5e1;
}

.payment-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ================================
   CONTACT IMPORT
================================ */
.import-zone {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 50px;
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(99, 102, 241, 0.02);
}

.import-zone:hover {
  border-color: rgba(99, 102, 241, 0.8);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.import-zone input[type="file"] {
  display: none;
}

.import-zone label {
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
}

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

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

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

.modal {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 20px;
  color: var(--light);
}

.modal-close {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

/* ================================
   MOBILE MENU
================================ */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 35px rgba(99, 102, 241, 0.7);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
}

/* ================================
   TEXTAREA
================================ */
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ================================
   CHARACTER COUNTER
================================ */
.char-counter {
  text-align: right;
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* ================================
   CONTACT LIST
================================ */
.contact-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

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

.contact-item input[type="checkbox"] {
  margin-right: 14px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.select-all {
  background: rgba(99, 102, 241, 0.1);
  padding: 12px 18px;
  font-weight: 600;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

/* ================================
   AUTH LINKS
================================ */
.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links p {
  color: #94a3b8;
  font-size: 14px;
}

.auth-links a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #6366f1;
}

/* ================================
   DASHBOARD GRID
================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ================================
   ACTION BUTTONS GROUP
================================ */
.action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ================================
   RESPONSIVE STYLES
================================ */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }

  .sidebar-overlay.active {
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }

  .sidebar.active {
    left: 0;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5);
  }

  .main-content {
    margin-left: 0;
    padding: 90px 20px 30px 20px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .page-header h1 {
    font-size: 26px;
  }

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

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

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

  .auth-box {
    margin: 15px;
    padding: 35px 25px;
  }

  .auth-box h1 {
    font-size: 28px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px;
    padding: 0 24px;
  }

  table {
    min-width: 700px;
  }

  table th,
  table td {
    padding: 12px;
    font-size: 14px;
  }

  .action-btns {
    flex-direction: column;
  }

  .action-btns .btn {
    width: 100%;
  }

  .card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 80px 15px 25px 15px;
  }

  .mobile-menu-btn {
    width: 48px;
    height: 48px;
  }

  .hamburger span {
    width: 22px;
  }

  .stat-card .value {
    font-size: 32px;
  }

  .auth-box h1 {
    font-size: 24px;
  }

  .card-body {
    padding: 16px;
  }

  .table-responsive {
    margin: 0 -16px;
    padding: 0 16px;
  }
}

/* ================================
   SCROLLBAR STYLING
================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6, #ec4899);
}
