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

/* ═══════════════════════════════════════════════════════════════════════════
   SOS VIDEOS — Dark Gold Theme
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Gold ──────────────────────────────────────────────────────────────── */
  --gold:          #c9a227;
  --gold-dark:     #9a7a0e;
  --gold-light:    #f0c040;
  --gold-gradient: linear-gradient(135deg, #a07010 0%, #d4a820 40%, #f0c040 100%);
  --gold-faint:    rgba(201,162,39,.08);
  --gold-glow:     rgba(201,162,39,.22);
  --gold-border:   rgba(201,162,39,.22);

  /* ── Surfaces ──────────────────────────────────────────────────────────── */
  --bg:        #080808;
  --surface:   #111111;
  --surface-2: #191919;
  --surface-3: #242424;
  --border:    rgba(255,255,255,.07);

  /* ── Text ──────────────────────────────────────────────────────────────── */
  --text:   #f0ead8;
  --text-2: #a89880;
  --text-3: #5a4c38;

  /* ── Status ────────────────────────────────────────────────────────────── */
  --success:    #4ade80;
  --success-bg: rgba(74,222,128,.1);
  --danger:     #f87171;
  --danger-bg:  rgba(248,113,113,.12);
  --warning:    #fbbf24;
  --warning-bg: rgba(251,191,36,.1);
  --info:       #818cf8;
  --info-bg:    rgba(129,140,248,.1);

  /* ── Compat aliases (used in HTML inline styles) ───────────────────────── */
  --primary:       var(--gold);
  --primary-dark:  var(--gold-dark);
  --primary-light: var(--gold-faint);
  --gray-50:  var(--surface);
  --gray-100: var(--surface-2);
  --gray-200: var(--border);
  --gray-400: var(--text-3);
  --gray-600: var(--text-2);
  --gray-800: var(--text);
  --success-light: var(--success-bg);
  --danger-light:  var(--danger-bg);
  --warning-light: var(--warning-bg);

  /* ── Shape / Shadow ────────────────────────────────────────────────────── */
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.7);
  --shadow-gold: 0 4px 24px rgba(201,162,39,.18);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  letter-spacing: -.3px;
  line-height: 1.3;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   AUTH PAGES (login / change-password / terms)
   ══════════════════════════════════════════════════════════════════════════ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201,162,39,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(201,162,39,.04) 0%, transparent 60%);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201,162,39,.04);
  animation: fadeUp .35s ease both;
}

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

.auth-card .logo { text-align: center; margin-bottom: 32px; }

.auth-card .logo h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.auth-card .logo h1 span {
  -webkit-text-fill-color: inherit;
}

.auth-card .logo p { color: var(--text-2); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */
.navbar {
  background: rgba(8,8,8,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.4px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.navbar-brand span { -webkit-text-fill-color: inherit; }

.navbar-links { display: flex; gap: 2px; }
.navbar-links a {
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  border: 1px solid transparent;
}
.navbar-links a:hover { color: var(--gold); background: var(--gold-faint); }
.navbar-links a.active {
  color: var(--gold);
  background: var(--gold-faint);
  border-color: var(--gold-border);
}

.navbar-user { display: flex; align-items: center; gap: 8px; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
.container { max-width: 1140px; margin: 0 auto; padding: 28px 24px; }

.page-header { margin-bottom: 28px; }
.page-header h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-header p  { color: var(--text-2); margin-top: 5px; font-size: 13px; }

.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
  line-height: 1;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--gold-gradient);
  color: #0a0a0a;
  box-shadow: 0 2px 14px var(--gold-glow);
}
.btn-primary:hover:not(:disabled) {
  opacity: .9;
  box-shadow: 0 4px 22px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-success { background: var(--success); color: #000; font-weight: 700; }
.btn-success:hover:not(:disabled) { opacity: .85; }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,.25);
}
.btn-danger:hover:not(:disabled) { background: rgba(248,113,113,.2); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--text-2);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}

.btn-sm  { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 7px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.1);
  background: var(--surface-3);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a4c38' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
select option { background: var(--surface-2); color: var(--text); }
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

/* ── Custom Checkbox ──────────────────────────────────────────────────────── */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: background .18s, border-color .18s, box-shadow .18s;
  vertical-align: middle;
}
input[type="checkbox"]:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
}
input[type="checkbox"]:checked {
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: 0 2px 10px var(--gold-glow);
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #0a0a0a;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* label wrapper for checkbox */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  user-select: none;
}
.checkbox-label:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--gold-border); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════════════════════ */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  line-height: 1.4;
}
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(248,113,113,.22); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(74,222,128,.22);  }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251,191,36,.22);  }
.alert-info    { background: var(--gold-faint);  color: var(--gold);    border: 1px solid var(--gold-border);    }

/* ══════════════════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info);    }
.badge-gray    { background: rgba(255,255,255,.05); color: var(--text-2); }

/* ══════════════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  padding: 11px 14px;
  background: var(--surface-2);
  color: var(--text-3);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gold-faint); }

/* ══════════════════════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 11px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--gold); }
.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 600;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .2s ease; }

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

/* ══════════════════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeUp .25s ease both;
}
.modal h3 { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: var(--text); }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--text-2);
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   VIDEOS
   ══════════════════════════════════════════════════════════════════════════ */
.date-group { margin-bottom: 32px; }
.date-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  flex-wrap: wrap;
  gap: 8px;
}
.date-group-header h3 { font-size: 14px; font-weight: 600; color: var(--gold); }
.date-group-header small { color: var(--text-2); font-size: 12px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  transition: all .22s;
  position: relative;
  overflow: hidden;
}
.video-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 6px 28px rgba(0,0,0,.5), var(--shadow-gold);
  transform: translateY(-3px);
}
.video-card.downloaded { border-left: 3px solid var(--success); }


.video-card-title { font-size: 13px; font-weight: 500; margin-bottom: 6px; word-break: break-word; color: var(--text); line-height: 1.4; }
.video-card-meta  { font-size: 11px; color: var(--text-2); margin-bottom: 10px; }
.video-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════════════
   PROGRESS
   ══════════════════════════════════════════════════════════════════════════ */
.progress-bar-wrap {
  background: var(--surface-2);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 20px;
  transition: width .3s;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ══════════════════════════════════════════════════════════════════════════
   TUTORIALS
   ══════════════════════════════════════════════════════════════════════════ */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.tutorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all .22s;
}
.tutorial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity .22s;
}
.tutorial-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), var(--shadow-gold);
}
.tutorial-card:hover::before { opacity: 1; }
.tutorial-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); line-height: 1.4; }
.tutorial-card p  { color: var(--text-2); font-size: 13px; margin-bottom: 16px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════════════
   TERMS
   ══════════════════════════════════════════════════════════════════════════ */
.term-content {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  margin: 16px 0;
  color: var(--text-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.profile-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #0a0a0a;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,162,39,.25), var(--shadow-gold);
}
.profile-hero-info h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.profile-hero-info p  { font-size: 13px; color: var(--text-2); }

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color .2s;
}
.profile-card:hover { border-color: var(--gold-border); }

.profile-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.profile-card-header h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.profile-card-body { padding: 22px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-item label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.info-item .info-value { font-size: 14px; color: var(--text); font-weight: 500; }
.info-item .info-value.highlight { color: var(--gold); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.active   { background: var(--success-bg); color: var(--success); }
.status-badge.canceled { background: var(--warning-bg); color: var(--warning); }
.status-badge.expired  { background: var(--danger-bg);  color: var(--danger);  }
.status-badge.none     { background: rgba(255,255,255,.05); color: var(--text-2); }

.profile-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.profile-alert.success { background: var(--success-bg); border: 1px solid rgba(74,222,128,.25); color: var(--success); }
.profile-alert.error   { background: var(--danger-bg);  border: 1px solid rgba(248,113,113,.25); color: var(--danger); }

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 4px 0 28px;
  opacity: .3;
}

.btn-gold {
  display: block;
  width: 100%;
  background: var(--gold-gradient);
  color: #0a0a0a;
  font-weight: 700;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 14px var(--gold-glow);
  letter-spacing: .02em;
  font-family: inherit;
}
.btn-gold:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 4px 22px var(--gold-glow);
}
.btn-gold:disabled { opacity: .45; cursor: not-allowed; }

/* Password inputs inside profile */
.profile-card-body input[type="password"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════════════════════
   FILTER / SEARCH BAR
   ══════════════════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar input { max-width: 280px; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   MISC
   ══════════════════════════════════════════════════════════════════════════ */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-2); }
.empty-state p { font-size: 15px; }

.loading { text-align: center; padding: 40px; color: var(--text-2); font-size: 14px; }

.text-muted { color: var(--text-2); font-size: 12px; }
.mt-16 { margin-top: 16px; }

.tab-badge {
  background: var(--danger);
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 4px;
  font-weight: 700;
}

/* Pagination (kept for possible use) */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 16px; }
.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: all .2s;
}
.pagination button.active { background: var(--gold-gradient); color: #000; border-color: transparent; font-weight: 700; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════════════════
   HAMBURGER / MOBILE NAV
   ══════════════════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 38px;
  height: 38px;
  padding: 10px 9px;
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.nav-hamburger:hover { border-color: var(--gold); background: var(--gold-faint); }

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, background .2s;
}
.nav-hamburger.open span { background: var(--gold); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  background: rgba(8,8,8,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
  z-index: 99;
  padding: 10px 12px 18px;
  flex-direction: column;
  gap: 2px;
  animation: slideDown .22s ease both;
}
.nav-mobile-menu.open { display: flex; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile-menu a,
.nav-mobile-menu button {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: color .18s, background .18s;
  font-family: inherit;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu button:hover  { color: var(--gold); background: var(--gold-faint); }
.nav-mobile-menu a.active      { color: var(--gold); background: var(--gold-faint); }
.nav-mobile-menu .mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE TABLE → CARDS  (subscribers admin)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .table-wrap.sub-cards          { border: none; background: none; overflow: visible; }
  .table-wrap.sub-cards table    { border: none; background: none; }
  .table-wrap.sub-cards thead    { display: none; }
  .table-wrap.sub-cards tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color .2s;
  }
  .table-wrap.sub-cards tbody tr:last-child { margin-bottom: 0; }
  .table-wrap.sub-cards tbody tr:hover      { border-color: var(--gold-border); }
  .table-wrap.sub-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    gap: 8px;
  }
  .table-wrap.sub-cards tbody td:last-child  { border-bottom: none; padding-bottom: 0; }
  .table-wrap.sub-cards tbody tr:hover td    { background: none; }
  .table-wrap.sub-cards tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    flex-shrink: 0;
    min-width: 72px;
  }
  /* Break long IDs/URLs cleanly inside cards */
  .table-wrap.sub-cards tbody td code,
  .table-wrap.sub-cards tbody td a {
    word-break: break-all;
    white-space: normal;
    max-width: 180px;
    display: inline-block;
  }
  /* Cells with white-space:nowrap need reset on mobile */
  .table-wrap.sub-cards tbody td[style*="white-space"] {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar            { padding: 0 16px; height: 54px; }
  .navbar-links      { display: none; }
  .navbar-user       { display: none; }
  .nav-hamburger     { display: flex; }
  .container         { padding: 20px 16px; }
  .auth-card         { padding: 32px 24px; }
  .form-row          { grid-template-columns: 1fr; }
  .video-grid        { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .tutorial-grid     { grid-template-columns: 1fr; }
  .info-grid         { grid-template-columns: 1fr; gap: 14px; }
  .profile-hero      { flex-direction: column; text-align: center; }
  .profile-container { padding: 20px 16px 40px; }
  .modal             { padding: 22px; }
  .page-header.flex-between { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .video-grid                  { grid-template-columns: 1fr; }
  .date-group-header           { flex-direction: column; align-items: flex-start; }
  .page-header h2              { font-size: 20px; }
  .auth-card                   { padding: 28px 18px; }
  .filter-bar                  { flex-direction: column; align-items: stretch; }
  .filter-bar input            { max-width: 100%; }
}
