/* ===== ADMIN PANEL STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background: #0f1117; color: #e2e8f0; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }
:root {
  --bg:        #0f1117;
  --sidebar:   #161b22;
  --card:      #1e2530;
  --card2:     #252d3a;
  --border:    #2d3748;
  --accent:    #3b82f6;
  --accent2:   #2563eb;
  --green:     #22c55e;
  --red:       #ef4444;
  --orange:    #f59e0b;
  --purple:    #a855f7;
  --text:      #e2e8f0;
  --text1:     #e2e8f0;   /* light — primary text on dark cards (inbox, score events, help) */
  --text2:     #94a3b8;
  --text3:     #64748b;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, #1e3a5f 0%, #0f1117 60%);
  padding: 20px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-text { font-size: 26px; font-weight: 900; font-style: italic; color: #d00; }
.login-logo-sub  { font-size: 13px; color: var(--text2); font-weight: 600; margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }

.login-title  { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-sub    { font-size: 13px; color: var(--text2); margin-bottom: 24px; }

.form-group   { margin-bottom: 16px; }
.form-label   { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input   {
  width: 100%; padding: 10px 12px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 14px; transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.form-input::placeholder { color: var(--text3); }

.form-textarea {
  width: 100%; padding: 10px 12px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 14px; resize: vertical; min-height: 80px;
  transition: border-color 0.15s;
}
.form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

.form-select {
  width: 100%; padding: 10px 12px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 14px; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--accent); }

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

.form-error { color: var(--red); font-size: 12px; margin-top: 6px; }
.form-hint  { color: var(--text3); font-size: 11px; margin-top: 4px; }

.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.form-check span  { font-size: 13px; color: var(--text2); }

.color-input-wrap { display: flex; align-items: center; gap: 8px; }
.color-swatch { width: 36px; height: 36px; border-radius: 6px; border: 1.5px solid var(--border); cursor: pointer; padding: 0; }
.color-text   { flex: 1; }

.login-btn {
  width: 100%; padding: 12px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 6px; transition: background 0.15s;
  letter-spacing: 0.3px;
}
.login-btn:hover { background: var(--accent2); }

.login-hint { margin-top: 16px; padding: 12px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); border-radius: 6px; font-size: 12px; color: var(--text2); text-align: center; }
.login-hint code { color: var(--accent); font-family: monospace; }

/* ===== ADMIN LAYOUT ===== */
.admin-layout { display: flex; min-height: 100vh; }

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

.sidebar-brand {
  padding: 20px 16px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand-logo { font-size: 20px; font-weight: 900; font-style: italic; color: #d00; }
.sidebar-brand-text { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); line-height: 1.3; }
.sidebar-brand-badge { font-size: 9px; background: var(--accent); color: #fff; padding: 1px 5px; border-radius: 3px; font-weight: 700; letter-spacing: 0.5px; margin-left: auto; }

.sidebar-user {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-name  { font-size: 13px; font-weight: 600; }
.sidebar-user-role  { font-size: 11px; color: var(--text2); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-section-label {
  font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase;
  letter-spacing: 1px; padding: 12px 16px 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
  color: var(--text2); cursor: pointer; transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover                { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-item.active               { color: var(--accent); background: rgba(59,130,246,0.08); border-left-color: var(--accent); font-weight: 600; }
.nav-item .nav-icon            { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item .nav-badge           { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.nav-item .nav-badge.blue      { background: var(--accent); }
.nav-item .nav-badge.green     { background: var(--green); }

.sidebar-footer {
  border-top: 1px solid var(--border); padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-footer-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  font-size: 13px; color: var(--text2); border-radius: 6px; transition: all 0.15s; width: 100%; text-align: left;
}
.sidebar-footer-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* ===== MAIN CONTENT ===== */
.admin-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.admin-topbar {
  background: var(--sidebar); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 56px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.admin-content { padding: 24px; flex: 1; }

/* ===== STAT CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: flex-start; gap: 14px;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.stat-icon.blue   { background: rgba(59,130,246,0.15); }
.stat-icon.green  { background: rgba(34,197,94,0.15); }
.stat-icon.orange { background: rgba(245,158,11,0.15); }
.stat-icon.red    { background: rgba(239,68,68,0.15); }
.stat-icon.purple { background: rgba(168,85,247,0.15); }
.stat-icon.teal   { background: rgba(20,184,166,0.15); }

.stat-label { font-size: 12px; color: var(--text2); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-sub   { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.section-title { font-size: 18px; font-weight: 700; }
.section-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  transition: all 0.15s; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-success   { background: var(--green); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning   { background: var(--orange); color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-ghost     { background: rgba(255,255,255,0.05); color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: #fff; }
.btn:disabled  { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--card2); color: var(--text); }
.btn-sm        { padding: 5px 10px; font-size: 12px; }
.btn-xs        { padding: 3px 8px; font-size: 11px; }
.btn-icon      { padding: 6px; }

/* ===== SEARCH / FILTER BAR ===== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.search-input {
  padding: 8px 12px 8px 36px; background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-size: 13px; width: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M11 19a8 8 0 100-16 8 8 0 000 16z' stroke='%2364748b' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.filter-select {
  padding: 8px 28px 8px 10px; background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-size: 13px; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; cursor: pointer;
}

/* ===== DATA TABLE ===== */
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--card2); padding: 10px 14px; text-align: left; font-size: 11px;
  font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid rgba(45,55,72,0.5); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.table-empty { text-align: center; padding: 40px; color: var(--text3); font-size: 14px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.badge-blue    { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.badge-green   { background: rgba(34,197,94,0.15);   color: #4ade80; }
.badge-red     { background: rgba(239,68,68,0.15);   color: #f87171; }
.badge-orange  { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.badge-purple  { background: rgba(168,85,247,0.15);  color: #c084fc; }
.badge-gray    { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ===== ROLE BADGES ===== */
.role-admin     { background: rgba(239,68,68,0.15);  color: #f87171; }
.role-sub_admin { background: rgba(245,158,11,0.15); color: #fbbf24; }
.role-moderator { background: rgba(168,85,247,0.15); color: #c084fc; }
.role-tipping_pro { background: rgba(59,130,246,0.15); color: #60a5fa; }
.role-user      { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ===== STATUS DOT ===== */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.status-active   .status-dot { background: var(--green); }
.status-banned   .status-dot { background: var(--red); }
.status-suspended .status-dot { background: var(--orange); }
.status-inactive .status-dot { background: var(--text3); }

/* ===== ACTION ROW ===== */
.action-row { display: flex; gap: 4px; }

/* ===== AVATAR ===== */
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* ===== TEAM COLOR SWATCH ===== */
.team-swatch { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }

/* ===== CARDS GRID (teams) ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.team-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.15s;
}
.team-card:hover { border-color: var(--accent); }
.team-card-banner { height: 48px; display: flex; align-items: center; justify-content: center; }
.team-card-logo { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.team-card-body { padding: 10px 12px; }
.team-card-name { font-size: 13px; font-weight: 700; }
.team-card-meta { font-size: 11px; color: var(--text2); margin-top: 2px; }
.team-card-actions { padding: 8px 12px; border-top: 1px solid var(--border); display: flex; gap: 6px; }

/* ===== AD CARDS ===== */
.ad-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ad-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ad-card-header { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-card-name { font-size: 13px; font-weight: 700; }
.ad-card-type { font-size: 10px; color: var(--text2); margin-top: 1px; }
.ad-preview-wrap { padding: 12px 14px; }
.ad-preview { border-radius: 6px; overflow: hidden; min-height: 60px; }
.ad-card-actions { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; gap: 6px; align-items: center; }
.ad-toggle-label { font-size: 12px; color: var(--text2); margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ===== TOGGLE ===== */
.toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--border); border-radius: 22px; cursor: pointer; transition: background 0.2s; }
.toggle-track::before { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::before { transform: translateX(16px); }

/* ===== CONTENT TABS ===== */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.tab-btn {
  padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text2);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; cursor: pointer;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== CONTENT CARDS ===== */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.content-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.content-card-img { height: 120px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.content-card-body { padding: 12px 14px; }
.content-card-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 4px; }
.content-card-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.content-card-summary { font-size: 12px; color: var(--text2); line-height: 1.5; }
.content-card-meta { font-size: 11px; color: var(--text3); margin-top: 8px; display: flex; gap: 8px; }
.content-card-actions { padding: 8px 14px; border-top: 1px solid var(--border); display: flex; gap: 6px; align-items: center; }

/* ===== GENERIC CARD PANEL ===== */
.card         { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-header  { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.card-title   { font-size: 14px; font-weight: 700; }
.card-body    { padding: 16px; }

/* ===== PILL TOGGLES (ladder column selector etc.) ===== */
.pill-toggle-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-toggle {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--border); background: transparent; color: var(--text2);
  cursor: pointer; transition: all 0.15s;
}
.pill-toggle:hover { border-color: var(--accent); color: var(--text); }
.pill-toggle.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== PINNED TEAM ROWS (ladder teams list) ===== */
.pinned-team-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.pinned-team-row:last-child { border-bottom: none; }

/* ===== SETTINGS FORM ===== */
.settings-sections { display: grid; gap: 20px; }
.settings-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.settings-card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.settings-card-title { font-size: 14px; font-weight: 700; }
.settings-card-sub   { font-size: 12px; color: var(--text2); margin-top: 2px; }
.settings-card-body  { padding: 20px; display: grid; gap: 16px; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 1000; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  width: 100%; max-width: 560px; box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease; max-height: 90vh; display: flex; flex-direction: column;
}
.modal-lg { max-width: 720px; }
.modal-sm { max-width: 400px; }

@keyframes modalIn { from { transform: scale(0.92) translateY(-10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-title  { font-size: 15px; font-weight: 700; }
.modal-close  { color: var(--text2); font-size: 22px; line-height: 1; padding: 4px; transition: color 0.15s; }
.modal-close:hover { color: var(--text); }
.modal-body   { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* ===== CONFIRM DIALOG ===== */
.confirm-dialog { max-width: 380px; }
.confirm-icon { font-size: 40px; text-align: center; margin-bottom: 12px; }
.confirm-msg  { font-size: 14px; color: var(--text2); text-align: center; line-height: 1.6; margin-bottom: 4px; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  display: flex; align-items: center; gap: 8px; max-width: 300px; pointer-events: auto;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid var(--accent); }
.toast.warning { border-left: 4px solid var(--orange); }
@keyframes toastIn  { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; pointer-events: none; } }

/* ===== ACTIVITY LOG ===== */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(45,55,72,0.5); }
.activity-item:last-child { border-bottom: none; }
.activity-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex-shrink: 0; }
.activity-text { font-size: 12px; line-height: 1.4; }
.activity-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ===== AD PREVIEW MINI ===== */
.ad-preview-top-banner {
  padding: 8px 12px; border-radius: 4px; display: flex; align-items: center; gap: 10px; font-size: 11px;
}
.ad-preview-infeed {
  padding: 10px; border-radius: 4px; text-align: center; font-size: 11px;
}
.ad-preview-sidebar {
  padding: 10px 12px; border-radius: 4px; font-size: 11px;
}

/* ===== QUICK STATS ROW ===== */
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.quick-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.quick-card-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text2); margin-bottom: 12px; }

/* ===== MAINTENANCE BANNER ===== */
.maintenance-banner { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; color: var(--orange); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .tab-btn { padding: 8px 12px; font-size: 12px; }
}
