:root {
  --bg: #fff6f6;
  --bg-2: #f7e3e3;
  --card: #ffffff;
  --card-2: #f5e9e9;
  --border: #efd8d8;
  --text: #2c687b;
  --muted: #6e8b96;
  --primary: #db1a1a;
  --primary-2: #a81212;
  --gold: #2c687b;
  --red: #c41313;
  --blue: #2c687b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(44, 104, 123, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #d6e9e7 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 246, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo-img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 2px 10px rgba(219, 26, 26, 0.28); flex-shrink: 0; }
.logo-text { display: flex; align-items: baseline; gap: 7px; line-height: 1; }
.logo-accent { color: var(--primary); }
.logo-pak {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 20px;
}
.nav-links { display: flex; align-items: center; gap: 3px; list-style: none; }
.nav-links a {
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12.5px;
  transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--card-2);
  text-decoration: none;
}
.nav-soc { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex-shrink: 0; }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.nav-back .ic, .nav-back svg { width: 15px; height: 15px; }
.nav-back:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }

.coin-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--card-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
}
.coin-pill .c { width: 18px; height: 18px; }

/* ---------- Floating action menu (mobile nav) ---------- */
.fab-wrap { display: none; flex-shrink: 0; }
.fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(44, 104, 123, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.fab:active { transform: scale(0.92); }
.fab-icon { display: flex; align-items: center; justify-content: center; }
.fab-icon svg { width: 22px; height: 22px; }
.fab-icon-close { display: none; }
.fab.active .fab-icon-open { display: none; }
.fab.active .fab-icon-close { display: flex; }
.fab-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  max-width: calc(100vw - 40px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(44, 104, 123, 0.18);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-14px) scale(0.95);
  transform-origin: top right;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fab-menu.open { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.fab-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
}
.fab-menu a:hover, .fab-menu a.active { background: var(--primary); color: #fff; text-decoration: none; }
.fab-divider { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); padding: 10px 12px 4px; }
.fab-socials { display: flex; gap: 6px; padding: 4px 12px 10px; }

.ic { display: inline-flex; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; vertical-align: -0.18em; flex-shrink: 0; }
.ic svg { width: 100%; height: 100%; }
.btn .ic { margin-right: 2px; }
.f-icon svg { width: 24px; height: 24px; }
.m-icon svg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s;
  text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-gold { background: linear-gradient(135deg, #2c687b, #1d4d5e); color: #fff; }
.btn-gold:hover { filter: brightness(1.08); text-decoration: none; }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 50px; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #db1a1a, #2c687b, #8cc7c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 24px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .stat h3 { font-size: 26px; color: var(--gold); }
.hero-stats .stat span { color: var(--muted); font-size: 13px; }

/* ---------- Cards / sections ---------- */
.section { padding: 44px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 26px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.feature .f-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  background: var(--card-2);
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.step .num {
  position: absolute;
  top: -14px; left: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.step h3 { margin: 10px 0 6px; font-size: 15px; }
.step p { color: var(--muted); font-size: 13px; }

/* ---------- Forms ---------- */
.auth-wrap {
  max-width: 420px;
  margin: 60px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.auth-wrap h1 { font-size: 26px; margin-bottom: 6px; }
.auth-wrap .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field input.invalid { border-color: var(--red); }
.ref-hint { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--primary); background: rgba(219, 26, 26, 0.08); border: 1px dashed rgba(219, 26, 26, 0.35); border-radius: 8px; padding: 7px 10px; }

.alert { display: none; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; border: 1px solid; line-height: 1.5; }
.alert.show { display: flex; animation: alertPop 0.35s cubic-bezier(0.34, 1.3, 0.64, 1); }
.alert-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.alert-icon .ic, .alert-icon svg { width: 18px; height: 18px; }
.alert-msg { flex: 1; }
.alert-success { background: linear-gradient(135deg, rgba(44, 104, 123, 0.12), rgba(138, 199, 196, 0.12)); border-color: rgba(44, 104, 123, 0.35); color: #1f5367; }
.alert-success .alert-icon { background: linear-gradient(135deg, #2c687b, #4a9aaa); box-shadow: 0 4px 12px rgba(44, 104, 123, 0.3); }
.alert-error { background: linear-gradient(135deg, rgba(196, 19, 19, 0.08), rgba(196, 19, 19, 0.03)); border-color: rgba(196, 19, 19, 0.35); color: #9e1a1a; }
.alert-error .alert-icon { background: linear-gradient(135deg, #c41313, #e04040); box-shadow: 0 4px 12px rgba(196, 19, 19, 0.3); }
.alert-info { background: linear-gradient(135deg, rgba(44, 104, 123, 0.12), rgba(138, 199, 196, 0.12)); border-color: rgba(44, 104, 123, 0.35); color: #1f5367; }
.alert-info .alert-icon { background: linear-gradient(135deg, #2c687b, #4a9aaa); box-shadow: 0 4px 12px rgba(44, 104, 123, 0.3); }
.alert-warning { background: linear-gradient(135deg, rgba(185, 120, 31, 0.12), rgba(224, 168, 74, 0.1)); border-color: rgba(185, 120, 31, 0.4); color: #8a5c12; }
.alert-warning .alert-icon { background: linear-gradient(135deg, #b7791f, #e0a84a); box-shadow: 0 4px 12px rgba(185, 120, 31, 0.3); }
@keyframes alertPop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.auth-footer { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-card .label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-card .value { font-size: 24px; font-weight: 800; margin-top: 4px; }
.stat-card.gold .value { color: var(--gold); }
.stat-card.green .value { color: var(--primary); }
.stat-card.blue .value { color: var(--blue); }
.stat-card .hint { color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ---------- Withdraw requirements ---------- */
.req-list { display: flex; flex-direction: column; gap: 10px; }
.req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  transition: 0.2s;
}
.req-item .req-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--card-2);
  color: var(--muted);
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.req-item.ok { color: var(--text); border-style: solid; border-color: rgba(219, 26, 26, 0.35); }
.req-item.ok .req-check { background: var(--primary); border-color: var(--primary); color: #fff; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.panel h3 { margin-bottom: 10px; font-size: 16px; }

/* ---------- Dashboard ---------- */
.dash-hero {
  background: linear-gradient(135deg, #2c687b, #17404f);
  border-radius: var(--radius);
  padding: 16px 24px;
  color: #fff6f6;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  margin-top: 22px;
}
.dash-hero-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 230px; }
.avatar {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.avatar-img {
  display: inline-flex; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.55); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: inline-flex; flex-shrink: 0; vertical-align: middle; }
.avatar-sm svg { width: 100%; height: 100%; display: block; }
.dash-hero h1 { font-size: 19px; margin: 0 0 2px; color: #fff6f6; }
.dash-hero-info p { color: rgba(255, 246, 246, 0.85); font-size: 12px; }
.dash-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-hero-actions .btn { white-space: nowrap; padding: 9px 18px; }

.dash-cols { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-top: 16px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; }

.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.action-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  transition: 0.2s;
}
.action-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.action-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.action-icon.green { background: rgba(219, 26, 26, 0.12); color: var(--primary); }
.action-icon.gold { background: rgba(44, 104, 123, 0.14); color: var(--gold); }
.action-icon.blue { background: rgba(44, 104, 123, 0.12); color: var(--blue); }
.action-icon svg { width: 22px; height: 22px; }
.action-card strong { display: block; font-size: 14px; }
.action-card small { color: var(--muted); font-size: 11px; }
.action-card .arrow { margin-left: auto; color: var(--muted); font-size: 16px; }

.bonus-card { text-align: center; }
.bonus-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #2c687b, #1d4d5e);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 10px;
}
.bonus-icon svg { width: 24px; height: 24px; }
.bonus-card h3 { margin-bottom: 4px; font-size: 16px; }
.bonus-card p { color: var(--muted); font-size: 12px; margin-bottom: 12px; }

/* ---------- Watch page ---------- */
.watch-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 24px 0; }
.watch-layout > * { min-width: 0; }

.earn-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.earn-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.earn-box .video-title { font-weight: 700; margin: 12px 0 0; font-size: 15px; word-break: break-word; }
.reward-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--border); border-radius: 30px; padding: 7px 16px; font-weight: 700; color: var(--gold); }

.progress-track { background: var(--bg-2); border-radius: 30px; height: 10px; overflow: hidden; margin: 14px 0; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), #8cc7c4); transition: width 0.3s; border-radius: 30px; }

.timer-big { font-size: 30px; font-weight: 900; color: var(--primary); }
.earn-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.earn-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; display: flex; align-items: flex-start; gap: 6px; }

.video-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.video-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.video-item:hover, .video-item.active { border-color: var(--primary); }
.video-item .thumb { width: 90px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.video-item .v-info { flex: 1; min-width: 0; }
.video-item .v-info .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-item .v-info .r { font-size: 12px; color: var(--gold); font-weight: 700; }
.video-item .v-meta { margin-left: auto; flex-shrink: 0; }
.video-item .v-meta .dur-badge {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 20px;
  font-size: 11px; font-weight: 700; color: var(--muted); padding: 3px 9px; white-space: nowrap;
}
.video-item.watched { opacity: 0.55; cursor: default; }
.video-item.watched:hover { border-color: var(--border); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 25, 30, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 300; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 420px; max-height: calc(100vh - 40px); overflow: auto;
  position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.97); transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.5); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; z-index: 2;
}
.modal-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 16px 16px 0 0; background: var(--bg-2); }
.modal-body { padding: 20px 22px 22px; }
.modal-body .video-title { font-weight: 700; font-size: 16px; word-break: break-word; }
.modal-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.earn-toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-90px);
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--text);
  padding: 10px 18px 10px 10px; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(20, 40, 50, 0.22), 0 0 0 1px rgba(44, 104, 123, 0.1);
  opacity: 0; transition: 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
  z-index: 300; font-weight: 700; font-size: 14px;
  max-width: calc(100% - 32px);
}
.earn-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-icon { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.toast-icon .ic, .toast-icon svg { width: 20px; height: 20px; }
.toast-text { line-height: 1.35; }
.toast-success .toast-icon { background: linear-gradient(135deg, #2c687b, #4a9aaa); box-shadow: 0 4px 14px rgba(44, 104, 123, 0.4); }
.toast-error .toast-icon { background: linear-gradient(135deg, #c41313, #e04040); box-shadow: 0 4px 14px rgba(196, 19, 19, 0.4); }
.toast-info .toast-icon { background: linear-gradient(135deg, #2c687b, #4a9aaa); box-shadow: 0 4px 14px rgba(44, 104, 123, 0.4); }
.toast-warning .toast-icon { background: linear-gradient(135deg, #b7791f, #e0a84a); box-shadow: 0 4px 14px rgba(185, 120, 31, 0.4); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; font-size: 14px; }
th { color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
td { border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--card-2); }
.tbl-rank { font-weight: 800; }
.rank-1 { color: var(--gold); }
.rank-2 { color: #9aa08c; }
.rank-3 { color: #7a5c1e; }

/* ---------- Nav logout ---------- */
.nav-links a.nav-logout, .nav-logout { color: var(--red) !important; }
.nav-links a.nav-logout:hover { background: rgba(196, 19, 19, 0.08); color: var(--red) !important; }
.fab-menu .nav-logout { color: var(--red); }
.fab-menu .nav-logout:hover { background: var(--red); color: #fff; }
.nav-logout svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }

/* ---------- Social icons (nav) ---------- */
.soc {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.soc:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); text-decoration: none; }
.soc svg { width: 18px; height: 18px; }
.soc-nav { width: 30px; height: 30px; }
.fab-socials .soc { width: 36px; height: 36px; }

/* ---------- Profile ---------- */
.profile-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #2c687b, #17404f);
  border-radius: var(--radius);
  padding: 22px 24px; color: #fff6f6;
  box-shadow: var(--shadow); margin-top: 22px;
}
.profile-head .avatar-img { border-color: rgba(255, 246, 246, 0.55); }
.profile-head h1 { font-size: 21px; margin: 0; color: #fff6f6; }
.profile-head p { color: rgba(255, 246, 246, 0.85); font-size: 13px; }
.profile-head .tag { margin-left: auto; }
.profile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; margin-top: 16px; align-items: start; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: 0.2s; }
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-q { width: 30px; height: 30px; border-radius: 9px; background: var(--card-2); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.faq-item summary .faq-q svg { width: 16px; height: 16px; }
.faq-item summary .faq-arrow { margin-left: auto; color: var(--muted); transition: 0.2s; flex-shrink: 0; }
.faq-item[open] summary .faq-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-item .faq-body { padding: 0 18px 18px 60px; color: var(--muted); font-size: 14px; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; margin-top: 22px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px;
}
.contact-item .ci-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--card-2); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-item .ci-icon svg { width: 21px; height: 21px; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item small { color: var(--muted); font-size: 12px; }
.contact-item a { font-size: 13px; font-weight: 600; }

/* ---------- Wallet ---------- */
.wallet-hero {
  background: linear-gradient(135deg, #2c687b, #17404f);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff6f6;
  box-shadow: var(--shadow);
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.wallet-hero .wl-label { font-size: 13px; color: rgba(255, 246, 246, 0.85); font-weight: 600; }
.wallet-hero .wl-balance { font-size: 40px; font-weight: 900; line-height: 1.1; }
.wallet-hero .wl-balance small { font-size: 18px; font-weight: 700; opacity: 0.9; }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.tx-row:last-child { border-bottom: none; }
.tx-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.tx-icon.credit { background: rgba(44, 104, 123, 0.14); color: #2c687b; }
.tx-icon.debit { background: rgba(196, 19, 19, 0.1); color: var(--red); }
.tx-icon svg { width: 19px; height: 19px; }
.tx-note { flex: 1; min-width: 0; }
.tx-note strong { display: block; font-size: 14px; }
.tx-note small { color: var(--muted); font-size: 12px; }
.tx-amount { font-weight: 800; font-size: 15px; flex-shrink: 0; }
.tx-amount.plus { color: var(--gold); }
.tx-amount.minus { color: var(--red); }
.tx-filters { display: flex; gap: 8px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 30px; }
.filter { background: var(--card-2); border: 1px solid var(--border); color: var(--muted); }
.filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Toast / misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-pending { background: rgba(44, 104, 123, 0.14); color: #2c687b; }
.badge-paid { background: rgba(219, 26, 26, 0.14); color: var(--primary); }
.badge-rejected { background: rgba(196, 19, 19, 0.12); color: var(--red); }

/* ---------- Support tickets ---------- */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-top strong { font-size: 13.5px; }
.ticket-msg { margin: 6px 0; font-size: 13px; color: var(--text); line-height: 1.5; }
.ticket-meta { color: var(--muted); font-size: 12px; }

.mb-10 { margin-bottom: 10px; }.mt-20 { margin-top: 20px; }
.gold-text { color: var(--gold); }
.green-text { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  .logo-pak { display: none; }
  .dash-cols { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .fab-wrap { display: block; }
  .coin-pill { font-size: 13px; padding: 5px 10px; }
  .hide-mobile { display: none; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 24px; }
  .auth-wrap { margin: 30px 16px; padding: 26px 20px; }
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .value { font-size: 22px; }
  .panel { padding: 18px; }
  .video-item .thumb { width: 76px; height: 44px; }
  .watch-layout { margin: 16px 0; gap: 16px; }
  .earn-box { padding: 16px; }
  .timer-big { font-size: 26px; }
  .earn-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  #earnStatus { text-align: left; }
  th, td { padding: 9px 10px; font-size: 12px; }
  .hero-btns .btn { width: 100%; max-width: 260px; }
  .logo-text { font-size: 17px; }
  .logo-img { width: 32px; height: 32px; }
  .logo-pak { display: none; }
  .profile-grid, .support-grid { grid-template-columns: 1fr; }
  .profile-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wallet-hero .wl-balance { font-size: 32px; }
}

@media (max-width: 460px) {
  .faq-item .faq-body { padding-left: 18px; }
}

@media (max-width: 400px) {
  .dash-grid { grid-template-columns: 1fr; }
  .coin-pill { display: none; }
  .hero-stats { gap: 18px; }
  .hero-stats .stat h3 { font-size: 22px; }
}
