/* ============================================================
   SMM Panel — custom styles layered on top of Bootstrap 5
   ============================================================ */
:root {
  --brand: #6c5ce7;
  --brand-dark: #5a4bd1;
  --brand-light: #a29bfe;
  --accent: #00cec9;
  --dark: #0f0f23;
  --dark-2: #1a1a35;
  --dark-3: #25254a;
  --grad: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --grad-purple: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #2d2d44; overflow-x: hidden; }
a { text-decoration: none; }
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
.navbar-custom {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(108,92,231,0.08);
  padding: 0.7rem 0;
}
.navbar-custom .navbar-brand { font-weight: 800; font-size: 1.5rem; color: var(--brand); }
.navbar-custom .navbar-brand .logo-dot { color: var(--accent); }
.navbar-custom .nav-link { font-weight: 600; color: #444; margin: 0 .15rem; transition: color .2s; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active { color: var(--brand); }
.btn-brand { background: var(--grad); color: #fff; border: none; font-weight: 600; padding: .55rem 1.3rem; border-radius: 50px; transition: transform .2s, box-shadow .2s; }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(108,92,231,.35); color:#fff; }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); font-weight: 600; border-radius: 50px; padding: .45rem 1.2rem; background: transparent; transition: all .2s; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,92,231,.35), transparent 70%);
  top: -200px; right: -150px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,206,201,.25), transparent 70%);
  bottom: -200px; left: -100px;
  border-radius: 50%;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; position: relative; z-index: 2; }
.hero p.lead { font-size: 1.2rem; opacity: .85; position: relative; z-index: 2; max-width: 600px; }
.hero .badge-cheap { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--accent); padding: .5rem 1rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; position: relative; z-index: 2; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--grad); color: #fff; padding: 2.5rem 0; }
.stats-strip .num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stats-strip .lbl { opacity: .85; font-size: .9rem; }

/* ---------- Section ---------- */
.section { padding: 4.5rem 0; }
.section-title { font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 800; margin-bottom: .5rem; }
.section-sub { color: #777; margin-bottom: 3rem; }

/* ---------- Cards ---------- */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  height: 100%;
  border: 1px solid #eee;
  transition: all .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(108,92,231,.12); border-color: var(--brand-light); }
.feature-card .icon { width: 60px; height: 60px; border-radius: 14px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.platform-card { text-align: center; padding: 1.5rem; border-radius: 16px; background: #fff; border: 1px solid #eee; transition: all .3s; height:100%; }
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.platform-card .ic { font-size: 2.5rem; margin-bottom: .8rem; }

/* ---------- Service table ---------- */
.service-table { background:#fff; border-radius:16px; overflow:hidden; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.service-table thead { background: var(--dark); color:#fff; }
.service-table thead th { font-weight:600; padding:1rem; border:0; font-size:.85rem; text-transform:uppercase; letter-spacing:.5px; }
.service-table tbody td { padding:.9rem 1rem; vertical-align: middle; border-color:#f0f0f5; }
.service-table tbody tr { transition: background .15s, box-shadow .15s; }
.service-table tbody tr:hover { background:#faf6ff; box-shadow: inset 4px 0 0 var(--brand); }
/* Service name + platform icon get vivid colour */
.service-table tbody td strong { color: var(--dark); }
.badge-rate {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  padding: .4rem .75rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(108,92,231,.30);
  font-size: .85rem;
  white-space: nowrap;
}
/* Vivid platform icons shown next to service names */
.svc-pf-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #fff; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.svc-name-cell { display: flex; align-items: flex-start; gap: .65rem; min-width: 220px; }
.svc-name-cell > span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
/* Category chip — coloured instead of plain grey */
.badge.badge-cat { background: rgba(0,206,201,.12); color: #00a39e; font-weight: 600; padding: .35rem .6rem; border-radius: 7px; }

/* ---------- Steps ---------- */
.step-card { text-align: center; padding: 2rem 1rem; position: relative; }
.step-num { width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b8b8d4; padding: 4rem 0 2rem; }
.footer h5 { color: #fff; font-weight: 700; margin-bottom: 1.2rem; }
.footer a { color: #b8b8d4; display: block; padding: .3rem 0; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem; font-size: .9rem; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark); padding: 2rem 1rem; position: relative; overflow: hidden; }
.auth-wrap::before { content:''; position:absolute; width:500px;height:500px; background:radial-gradient(circle,rgba(108,92,231,.3),transparent 70%); top:-150px;right:-150px;border-radius:50%; }
.auth-card { background: #fff; border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.3); position: relative; z-index: 2; }
.auth-card .form-control { padding: .8rem 1rem; border-radius: 10px; }
.auth-card .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(108,92,231,.15); }

/* ---------- Dashboard ---------- */
.dash-wrap { min-height: 100vh; background: #f5f6fa; }
.dash-sidebar {
  background: var(--dark);
  color: #fff;
  width: 250px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform .3s;
}
.dash-sidebar .brand { padding: 1.3rem 1.5rem; font-weight: 800; font-size: 1.4rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-sidebar .brand .dot { color: var(--accent); }
.dash-sidebar .nav-link { color: #b8b8d4; padding: .8rem 1.5rem; border-radius: 0; display: flex; align-items: center; gap: .8rem; font-weight: 500; transition: all .2s; }
.dash-sidebar .nav-link i { width: 22px; text-align: center; }
.dash-sidebar .nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.dash-sidebar .nav-link.active { background: var(--grad); color: #fff; }
.dash-sidebar .section-label { color: #6c6c8c; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; padding: 1.2rem 1.5rem .5rem; font-weight: 700; }
.dash-main { margin-left: 250px; padding: 1.5rem 2rem; transition: margin .3s; }
.dash-topbar { background: #fff; border-radius: 14px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.04); display:flex; align-items:center; justify-content:space-between; }
.stat-card { background:#fff; border-radius:16px; padding:1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.04); height:100%; transition: transform .2s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-card .ic { width:48px;height:48px;border-radius:12px; display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.3rem;margin-bottom:.8rem; }
.stat-card .val { font-size:1.8rem;font-weight:800;color:var(--dark); }
.stat-card .lbl { color:#888;font-size:.85rem; }
.card-box { background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 2px 12px rgba(0,0,0,.04); }
.table-clean thead th { background:#f8f7ff;color:var(--brand);font-weight:700;font-size:.8rem;text-transform:uppercase;border:0;padding:1rem; }
.table-clean tbody td { padding:.85rem 1rem;border-color:#f0f0f5;vertical-align:middle; }
.table-clean tbody tr:hover { background:#faf9ff; }
.table-clean .service-name-cell {
  min-width: 180px;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}

.status-pill { display:inline-block;padding:.3rem .7rem;border-radius:50px;font-size:.75rem;font-weight:700; }
.status-pending,.status-processing,.status-in_progress { background:#fff3cd;color:#856404; }
.status-completed { background:#d4edda;color:#155724; }
.status-canceled,.status-refunded { background:#f8d7da;color:#721c24; }
.status-partial { background:#d1ecf1;color:#0c5460; }

/* ---------- Admin ---------- */
.admin-sidebar { background: linear-gradient(180deg,#0f0f23,#1a1a35); }
.admin-sidebar .nav-link.active { background: var(--grad-purple); }
.admin-stat .ic { background: var(--grad-purple); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 1rem; }
  .dash-topbar .menu-toggle { display: inline-flex !important; }
}
@media (max-width: 575.98px) {
  .hero { padding: 4rem 0 5rem; }
  .section { padding: 3rem 0; }
  .stats-strip .num { font-size: 1.6rem; }
  .auth-card { padding: 1.5rem; }
  .service-table { font-size: .85rem; }
  .service-table thead th, .service-table tbody td { padding: .6rem .5rem; }
  .table-clean .service-name-cell { min-width: 140px; max-width: 240px; }
  .svc-name-cell { min-width: 180px; }
}
.menu-toggle { display:none; background:transparent;border:0;color:var(--brand);font-size:1.5rem; }
.dash-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:999; }
.dash-overlay.show { display:block; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 950;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.whatsapp-float:hover {
  color: #fff;
  background: #1ebe5d;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 14px 34px rgba(37, 211, 102, .45);
}
@media (max-width: 575.98px) {
  .whatsapp-float {
    right: 14px;
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }
}

/* misc */
.shadow-soft { box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
.avatar-circle { width:40px;height:40px;border-radius:50%;background:var(--grad);display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700; }
textarea.code { font-family: 'Fira Code', monospace; font-size:.85rem; background:#1e1e2e;color:#cdd6f4; }
