/* =============================================
   BOOST SMM Panel — Asosiy CSS
   ============================================= */

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

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

:root {
  --bg:      #07070d;
  --bg2:     #0d0d18;
  --s1:      #111120;
  --s2:      #16162a;
  --border:  rgba(255,255,255,0.055);
  --border2: rgba(255,255,255,0.1);
  --a:       #7b6ff0;
  --a2:      #00dde0;
  --a3:      #ff6b9d;
  --text:    #eeeeff;
  --muted:   rgba(238,238,255,0.4);
  --muted2:  rgba(238,238,255,0.18);
  --sw:      240px;
  --green:   #2dffa0;
  --yellow:  #ffcf40;
  --red:     #ff5f7e;
  --radius:  14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: var(--a2); transition: opacity .2s; }
a:hover { opacity: .8; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sw);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}

.s-logo {
  padding: 26px 24px 22px;
  border-bottom: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 19px; letter-spacing: 5px;
  background: linear-gradient(120deg, var(--a), var(--a2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.s-nav { padding: 14px 10px; flex: 1; overflow-y: auto; }

.s-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; margin-bottom: 1px;
  text-decoration: none; border: 1px solid transparent;
}
.s-item:hover { background: rgba(255,255,255,0.03); color: var(--text); opacity: 1; }
.s-item.active { background: rgba(123,111,240,0.1); border-color: rgba(123,111,240,0.22); color: var(--text); }
.s-item .ico { width: 18px; text-align: center; font-size: 15px; }
.s-sep { height: 1px; background: var(--border); margin: 10px 14px; }
.s-item.logout { color: rgba(255,95,126,0.5); }
.s-item.logout:hover { color: var(--red); background: rgba(255,95,126,0.06); }

.s-bal {
  margin: 0 10px 16px;
  background: linear-gradient(135deg, rgba(123,111,240,0.1), rgba(0,221,224,0.06));
  border: 1px solid rgba(123,111,240,0.18);
  border-radius: 12px; padding: 14px 16px;
}
.s-bal-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.s-bal-val { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--a2); }
.s-bal-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── MAIN CONTENT ── */
.main {
  margin-left: var(--sw);
  flex: 1;
  padding: 32px 36px;
  min-height: 100vh;
}

.layout { display: flex; }

/* ── TOPBAR ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.tb-left h1 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; }
.tb-left p { color: var(--muted); font-size: 13px; margin-top: 2px; }

.tb-user {
  display: flex; align-items: center; gap: 10px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 16px 7px 7px;
}
.tb-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--a2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.tb-name { font-size: 13px; font-weight: 500; }

/* ── CARD ── */
.card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(123,111,240,0.15); }
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 600;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title a { font-size: 12px; font-weight: 400; color: var(--a); font-family: 'Outfit', sans-serif; }

/* ── FORM ELEMENTS ── */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.field label .hint {
  font-size: 11px; color: var(--muted2);
  text-transform: none; letter-spacing: 0; font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 14px;
  outline: none; transition: all .2s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(238,238,255,0.25)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 38px; cursor: pointer;
}
.field select option { background: #1a1a2e; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(123,111,240,0.45);
  background: rgba(123,111,240,0.04);
  box-shadow: 0 0 0 3px rgba(123,111,240,0.07);
}
.field textarea { resize: none; height: 90px; line-height: 1.6; }

.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--a), #a78bfa);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(123,111,240,0.4); transform: translateY(-1px); opacity: 1; }

.btn-secondary {
  background: var(--s2); border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--border2); opacity: 1; }

.btn-success { background: rgba(45,255,160,0.12); color: var(--green); border: 1px solid rgba(45,255,160,0.2); }
.btn-danger  { background: rgba(255,95,126,0.1);  color: var(--red);   border: 1px solid rgba(255,95,126,0.18); }
.btn-warning { background: rgba(255,207,64,0.1);  color: var(--yellow); border: 1px solid rgba(255,207,64,0.2); }
.btn-info    { background: rgba(0,221,224,0.1);   color: var(--a2);    border: 1px solid rgba(0,221,224,0.18); }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-full { width: 100%; }

.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 500;
}
.badge-success  { background: rgba(45,255,160,0.1);  color: var(--green);  border: 1px solid rgba(45,255,160,0.2); }
.badge-warning  { background: rgba(255,207,64,0.1);  color: var(--yellow); border: 1px solid rgba(255,207,64,0.2); }
.badge-danger   { background: rgba(255,95,126,0.1);  color: var(--red);    border: 1px solid rgba(255,95,126,0.18); }
.badge-info     { background: rgba(0,221,224,0.1);   color: var(--a2);     border: 1px solid rgba(0,221,224,0.18); }
.badge-secondary{ background: rgba(255,255,255,0.06);color: var(--muted);  border: 1px solid var(--border); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: collapse;
}
.table th {
  text-align: left; font-size: 11px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
  padding: 0 12px 12px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px; vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── ALERT / FLASH ── */
.alert {
  padding: 12px 16px; border-radius: 10px;
  margin-bottom: 18px; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(45,255,160,0.08);  color: var(--green);  border: 1px solid rgba(45,255,160,0.18); }
.alert-danger  { background: rgba(255,95,126,0.08);  color: var(--red);    border: 1px solid rgba(255,95,126,0.16); }
.alert-warning { background: rgba(255,207,64,0.08);  color: var(--yellow); border: 1px solid rgba(255,207,64,0.18); }
.alert-info    { background: rgba(0,221,224,0.08);   color: var(--a2);     border: 1px solid rgba(0,221,224,0.16); }

/* ── STAT CARDS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 14px; margin-bottom: 20px;
}
.stat-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .2s;
}
.stat-card:hover { border-color: rgba(123,111,240,0.2); }
.stat-icon { font-size: 22px; margin-bottom: 12px; display: block; }
.stat-val { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; margin-bottom: 3px; }
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

/* ── FILTER TABS ── */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filter-tab {
  background: var(--s2); border: 1px solid var(--border);
  color: var(--muted); font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px;
  cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.filter-tab:hover { color: var(--text); border-color: var(--border2); opacity: 1; }
.filter-tab.active { background: rgba(123,111,240,0.12); border-color: rgba(123,111,240,0.3); color: var(--text); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; margin-top: 20px; justify-content: center; }
.page-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted); font-size: 13px;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.page-btn:hover { color: var(--text); border-color: var(--border2); opacity: 1; }
.page-btn.active { background: rgba(123,111,240,0.15); border-color: rgba(123,111,240,0.35); color: var(--text); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  width: 100%; max-width: 460px;
  animation: modalIn .3s cubic-bezier(.16,1,.3,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 0 4px; transition: color .2s; }
.modal-close:hover { color: var(--text); }

/* ── COPY BTN ── */
.copy-wrap { display: flex; gap: 8px; align-items: center; }
.copy-wrap input { flex: 1; }
.copy-btn {
  background: var(--s2); border: 1px solid var(--border);
  color: var(--muted); padding: 12px 14px;
  border-radius: 10px; cursor: pointer;
  font-size: 13px; transition: all .2s; white-space: nowrap;
}
.copy-btn:hover { color: var(--text); border-color: var(--border2); }

/* ── INFO BOX ── */
.info-box {
  background: rgba(123,111,240,0.05);
  border: 1px solid rgba(123,111,240,0.13);
  border-radius: 10px; padding: 13px 15px; margin-bottom: 16px;
}
.info-box-title { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--a); margin-bottom: 5px; }
.info-box p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── LOADING ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; display: block; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 16px; color: var(--text); margin-bottom: 6px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ── MOBILE MENU BTN ── */
.menu-toggle {
  display: none;
  position: fixed; top: 16px; left: 16px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
  cursor: pointer; z-index: 200; font-size: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.6); }
  .main { margin-left: 0 !important; padding: 16px; padding-top: 16px; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; z-index: 300; }
  .fields-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar { flex-wrap: wrap; gap: 8px; }
}

/* Sidebar ochiq bo'lganda orqa fon */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── GLOBAL MENU SCRIPT (inline for all pages) ── */
