/* ════════════════════════════════════════
   WEBINAR SUITE — UI COMPONENTS v3
   Public + Admin Specific Components
═════════════════════════════════════════ */

/* ══════════════════════════════════════
   TOP NAVBAR
══════════════════════════════════════ */
.top-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.public-theme .top-shell {
  background: rgba(10,14,26,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
body.admin-theme .top-shell {
  background: rgba(246,248,255,0.92);
  border-bottom: 1px solid var(--adm-border);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

.shell-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-chip {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.public-theme .brand-chip {
  background: linear-gradient(135deg, var(--pub-accent), var(--pub-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.admin-theme .brand-chip { color: var(--adm-accent); }

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pub-green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ══════════════════════════════════════
   ADMIN LAYOUT — SIDEBAR
══════════════════════════════════════ */
.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 62px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  gap: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  background: var(--adm-sidebar);
  border-radius: var(--radius-lg);
  border: 1px solid var(--adm-border);
  box-shadow: var(--adm-shadow);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-muted);
  padding: 6px 12px 4px;
  margin-top: 8px;
}
.sidebar-section-label:first-child { margin-top: 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--adm-ink2);
  transition: all var(--transition);
  position: relative;
}
.nav-link svg { flex-shrink: 0; opacity: 0.65; }
.nav-link:hover {
  background: rgba(79,70,229,0.07);
  color: var(--adm-accent);
}
.nav-link:hover svg { opacity: 1; }
.nav-link.active {
  background: rgba(79,70,229,0.1);
  color: var(--adm-accent);
  font-weight: 700;
}
.nav-link.active svg { opacity: 1; }
.nav-link.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--adm-accent);
  border-radius: 2px 0 0 2px;
}

.nav-link.danger { color: var(--adm-red); }
.nav-link.danger:hover { background: rgba(220,38,38,0.07); }

.admin-content { min-width: 0; }

/* ══════════════════════════════════════
   CARD (Admin)
══════════════════════════════════════ */
body.admin-theme .card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--adm-shadow);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--adm-border);
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--adm-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title svg { color: var(--adm-accent); }

/* ══════════════════════════════════════
   KPI STAT CARDS (Admin Dashboard)
══════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.07;
  transform: translate(20px, -20px);
}
.kpi.accent::before { background: var(--adm-accent); }
.kpi.green::before { background: var(--adm-green); }
.kpi.purple::before { background: #7c3aed; }
.kpi.orange::before { background: #ea580c; }
.kpi.blue::before { background: #0284c7; }
.kpi.pink::before { background: #db2777; }

.kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--adm-shadow-hover);
}

.kpi .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.kpi .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--adm-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi .sub { font-size: 12px; color: var(--adm-muted); margin-top: 4px; }
.kpi-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi.accent .kpi-icon { background: rgba(79,70,229,0.1); color: var(--adm-accent); }
.kpi.green .kpi-icon { background: rgba(5,150,105,0.1); color: var(--adm-green); }
.kpi.purple .kpi-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }
.kpi.orange .kpi-icon { background: rgba(234,88,12,0.1); color: #ea580c; }
.kpi.blue .kpi-icon { background: rgba(2,132,199,0.1); color: #0284c7; }
.kpi.pink .kpi-icon { background: rgba(219,39,119,0.1); color: #db2777; }

/* ══════════════════════════════════════
   CHART / BARS (Analytics)
══════════════════════════════════════ */
.bars {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  align-items: end;
  height: 140px;
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-md);
  padding: 12px 10px 28px;
}
.bar-col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.bar-col i {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(79,70,229,0.8), rgba(79,70,229,0.4));
  min-height: 3px;
  transition: background 0.2s;
}
.bar-col:hover i { background: linear-gradient(180deg, var(--adm-accent), rgba(79,70,229,0.6)); }
.bar-col b {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 500;
  color: var(--adm-muted);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   FILTER BAR (Admin)
══════════════════════════════════════ */
.filter-bar {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════
   SECTION HEADER (Admin)
══════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--adm-ink);
}

/* ══════════════════════════════════════
   PAGE HEADER (Admin)
══════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--adm-border);
}
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--adm-ink);
  letter-spacing: -0.01em;
}
.page-subtitle { font-size: 14px; color: var(--adm-muted); margin-top: 2px; }

/* ══════════════════════════════════════
   SPLIT LAYOUT (Admin)
══════════════════════════════════════ */
.split-2 { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; }

/* ══════════════════════════════════════
   PANEL SECTION (Admin - backward compat)
══════════════════════════════════════ */
.panel-section {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--adm-shadow);
  margin-bottom: 20px;
}

/* ══════════════════════════════════════
   PAGINATION — MODERN
══════════════════════════════════════ */
.pagination-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--adm-border);
  margin-top: 16px;
}

/* Page Size Selector */
.page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--adm-muted);
}
.page-size-selector label { font-weight: 500; }
.page-size-selector select {
  padding: 6px 10px;
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-sm);
  background: var(--adm-surface);
  color: var(--adm-ink);
  font-size: 12px;
  cursor: pointer;
  min-width: 60px;
}
.page-size-selector select:focus {
  outline: none;
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}
.page-size-selector .total-info {
  font-size: 11px;
  color: var(--adm-muted);
  margin-right: 8px;
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-btn,
.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}
.pagination-btn {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  color: var(--adm-ink2);
  padding: 0 6px;
}
.pagination-btn:hover:not(.disabled) {
  background: rgba(79,70,229,0.08);
  color: var(--adm-accent);
  border-color: rgba(79,70,229,0.25);
}
.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--adm-border);
}

/* Page Numbers */
.page-numbers {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 4px;
}
.page-number {
  background: transparent;
  border: 1px solid transparent;
  color: var(--adm-ink2);
  min-width: 28px;
  height: 28px;
  font-size: 12px;
}
.page-number:hover {
  background: rgba(79,70,229,0.06);
  color: var(--adm-accent);
  border-color: rgba(79,70,229,0.15);
}
.page-number.active {
  background: var(--adm-accent);
  color: #fff;
  border-color: var(--adm-accent);
  font-weight: 600;
}
.page-ellipsis {
  padding: 0 4px;
  color: var(--adm-muted);
  font-size: 12px;
  user-select: none;
}

/* Jump to Page */
.jump-to-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--adm-muted);
}
.jump-to-page .jump-input {
  width: 50px;
  padding: 6px 8px;
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-sm);
  background: var(--adm-surface);
  color: var(--adm-ink);
  font-size: 13px;
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
.jump-to-page .jump-input::-webkit-outer-spin-button,
.jump-to-page .jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.jump-to-page .jump-input:focus {
  outline: none;
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}
.jump-to-page .of-pages {
  font-size: 11px;
}

/* Simple Pagination Info (single page) */
.pagination-info {
  font-size: 12px;
  color: var(--adm-muted);
}

/* ══════════════════════════════════════
   PUBLIC — LANDING PAGE
══════════════════════════════════════ */
.pub-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.session-hero {
  text-align: center;
  margin-bottom: 32px;
}

.session-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16/7;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pub-border-light);
}
.session-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.session-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.7) 0%, transparent 50%);
}

.session-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--pub-ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.session-subtitle {
  font-size: 14px;
  color: var(--pub-muted);
  line-height: 1.7;
}

.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pub-border-light);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  backdrop-filter: blur(20px);
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.auth-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pub-accent), var(--pub-accent2));
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.auth-card-title { font-size: 15px; font-weight: 700; color: var(--pub-ink); }
.auth-card-sub { font-size: 12px; color: var(--pub-muted); margin-top: 2px; }

.auth-field { margin-bottom: 16px; }

.otp-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pub-border);
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.otp-hint {
  font-size: 12px;
  color: var(--pub-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.otp-input-wrap { position: relative; }
.otp-input-digits {
  letter-spacing: 0.15em;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

#msg {
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
  transition: all 0.3s ease;
}

/* ══════════════════════════════════════
   PUBLIC — POLICY MODAL
══════════════════════════════════════ */
.overlay-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.overlay-card {
  width: min(560px, 100%);
  background: #12172a;
  border: 1px solid var(--pub-border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.overlay-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(167,139,250,0.2));
  border: 1px solid rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}
.overlay-card h3 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--pub-ink);
}
.overlay-card .sub {
  text-align: center;
  color: var(--pub-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.policy-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.policy-rules li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--pub-muted);
  line-height: 1.6;
}
.policy-rule-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 10px;
  color: var(--pub-accent2);
}

/* ══════════════════════════════════════
   WEBINAR — ANIMATED SCENE BACKGROUND
══════════════════════════════════════ */
.wb-scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wb-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Floating ambient orbs */
.wb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbPulse 8s ease-in-out infinite;
}

.wb-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation-delay: 0s;
  animation-duration: 10s;
}

.wb-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation-delay: 3s;
  animation-duration: 12s;
}

.wb-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,211,165,0.12) 0%, transparent 70%);
  top: 40%; left: 30%;
  animation-delay: 6s;
  animation-duration: 14s;
}

.wb-orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 70%);
  bottom: 20%; right: 10%;
  animation-delay: 2s;
  animation-duration: 9s;
}

@keyframes orbPulse {
  0%   { opacity: 0;    transform: scale(0.85) translate(0px, 0px); }
  25%  { opacity: 1;    transform: scale(1.05) translate(20px, -15px); }
  50%  { opacity: 0.7;  transform: scale(0.95) translate(-10px, 20px); }
  75%  { opacity: 1;    transform: scale(1.08) translate(15px, 10px); }
  100% { opacity: 0;    transform: scale(0.85) translate(0px, 0px); }
}

/* Subtle dot-grid overlay */
.wb-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ══════════════════════════════════════
   PUBLIC — WEBINAR WRAP
══════════════════════════════════════ */
.webinar-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* ══════════════════════════════════════
   CINEMA PLAYER
══════════════════════════════════════ */
.cinema-player-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.07),
    0 0 80px rgba(99,102,241,0.15),
    0 0 160px rgba(99,102,241,0.08);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.4s ease;
}
.cinema-player-card:hover {
  box-shadow:
    0 32px 80px rgba(0,0,0,0.75),
    0 0 0 1px rgba(99,102,241,0.2),
    0 0 100px rgba(99,102,241,0.22),
    0 0 200px rgba(99,102,241,0.1);
}

/* Controls overlay at bottom */
.cinema-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 0 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.cinema-controls.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Progress track */
.cinema-progress-wrap {
  padding: 0 16px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cinema-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}
.cinema-progress-watched {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.4s ease;
}
.cinema-progress-played {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--pub-accent), var(--pub-accent2));
  border-radius: var(--radius-pill);
  width: 0%;
  z-index: 1;
  transition: width 0.5s linear;
}
.cinema-time {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* Bottom bar */
.cinema-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.cinema-left-controls { display: flex; gap: 8px; align-items: center; }
.cinema-icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background var(--transition);
  color: var(--pub-ink);
  margin-bottom: 4px;
}
.link-box p { font-size: 12px; color: var(--pub-muted); margin-bottom: 10px; line-height: 1.5; }
.link-box a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pub-accent2);
  transition: color var(--transition);
}
.link-box a:hover { color: var(--pub-ink); }
.link-box a svg { width: 12px; height: 12px; }

.link-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(8px);
  border-radius: 0;
}
.lock-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--pub-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pub-muted);
}
.lock-text {
  font-size: 11px;
  color: var(--pub-muted);
  text-align: center;
  line-height: 1.4;
}

/* ══════════════════════════════════════
   PUBLIC — WEBINAR SIDEBAR
══════════════════════════════════════ */
.webinar-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--pub-border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.side-card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pub-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-row:last-child { border-bottom: none; }
.stat-row-label { font-size: 13px; color: var(--pub-muted); }
.stat-row-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--pub-ink);
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--pub-muted);
  line-height: 1.5;
}
.rule-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pub-accent);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   PUBLIC — FINISH PAGE
══════════════════════════════════════ */
.finish-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.finish-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,165,0.2), rgba(34,211,165,0.08));
  border: 1px solid rgba(34,211,165,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.finish-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--pub-ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.finish-text {
  font-size: 15px;
  color: var(--pub-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.finish-action-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pub-border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.finish-action-label { font-size: 12px; color: var(--pub-muted); margin-bottom: 12px; }

/* ══════════════════════════════════════
   ADMIN LOGIN PAGE
══════════════════════════════════════ */
.login-wrap {
  max-width: 420px;
  margin: 80px auto;
  padding: 0 20px;
}
.login-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(79,70,229,0.08), 0 20px 48px rgba(15,23,42,0.06);
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--adm-accent), var(--adm-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  color: white;
}
.login-logo h1 { font-size: 18px; font-weight: 800; color: var(--adm-ink); }
.login-logo p { font-size: 13px; color: var(--adm-muted); margin-top: 4px; }
.login-field { margin-bottom: 16px; }
.login-field:last-of-type { margin-bottom: 20px; }

/* ══════════════════════════════════════
   INSTALL PAGE
══════════════════════════════════════ */
.install-wrap {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 20px;
}
.install-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--adm-shadow);
}
.install-header { margin-bottom: 28px; text-align: center; }
.install-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--adm-accent), var(--adm-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: white;
}
.install-header h1 { font-size: 22px; font-weight: 800; color: var(--adm-ink); }
.install-header p { font-size: 14px; color: var(--adm-muted); margin-top: 6px; line-height: 1.7; }
.install-divider {
  border: none;
  border-top: 1px solid var(--adm-border);
  margin: 24px 0;
}
.install-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adm-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.install-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--adm-border);
}
.install-field { margin-bottom: 14px; }

/* ══════════════════════════════════════
   ADMIN — LINK BOX FORM
══════════════════════════════════════ */
.link-box-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.link-box-card:hover { box-shadow: var(--adm-shadow-hover); }
.link-box-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--adm-surface2);
  border-bottom: 1px solid var(--adm-border);
}
.link-box-handle-title { font-size: 13px; font-weight: 600; color: var(--adm-ink2); display: flex; align-items: center; gap: 8px; }
.link-box-body { padding: 16px; display: grid; gap: 12px; }
.unlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: rgba(234,88,12,0.08);
  color: #ea580c;
  border: 1px solid rgba(234,88,12,0.15);
}

/* ══════════════════════════════════════
   USER EVENTS (Timeline)
══════════════════════════════════════ */
.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}
.event-play { background: rgba(5,150,105,0.1); color: var(--adm-green); }
.event-pause { background: rgba(234,88,12,0.1); color: #ea580c; }
.event-hb { background: rgba(2,132,199,0.1); color: #0284c7; }
.event-click { background: rgba(124,58,237,0.1); color: #7c3aed; }
.event-other { background: rgba(148,163,184,0.1); color: var(--adm-muted); }

/* ══════════════════════════════════════
   SMS SEND SECTION
══════════════════════════════════════ */
.sms-send-card {
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(124,58,237,0.04));
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sms-send-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--adm-ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--adm-ink2);
}
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--adm-accent);
}

/* ══════════════════════════════════════
   SETTINGS FORM GROUPS
══════════════════════════════════════ */
.settings-group {
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.settings-group-header {
  background: var(--adm-surface2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--adm-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--adm-ink2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-group-body {
  padding: 20px 16px;
  display: grid;
  gap: 14px;
}


/* ══════════════════════════════════════
   CINEMA PLAYER — NEW WEBINAR LAYOUT
══════════════════════════════════════ */
.cinema-player-card {
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.cinema-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 0 0 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.cinema-controls.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cinema-progress-wrap {
  padding: 0 18px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cinema-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.cinema-progress-watched {
  position: absolute; top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
}
.cinema-progress-played {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #818cf8, #6366f1);
  border-radius: 10px;
  width: 0%;
  z-index: 1;
  transition: width 0.5s linear;
}
.cinema-time {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cinema-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.cinema-left-controls { display: flex; gap: 8px; align-items: center; }
.cinema-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.2s;
}
.cinema-icon-btn:hover { background: rgba(255,255,255,0.2); }
.cinema-center-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}
.cinema-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
.cinema-no-seek-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.3);
  color: rgba(255,255,255,0.55);
}
/* Spinner */
.cinema-spinner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 8;
  background: rgba(0,0,0,0.25);
}
.spinner-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.85);
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Paused overlay */
.cinema-paused-overlay {
  position: absolute; inset: 0; z-index: 9;
  background: rgba(0,0,0,0.32);
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
  gap: 10px;
}
.cinema-big-play {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cinema-big-play:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.08);
}

/* Animated Watermark */
.cinema-player-wrap {
  position: relative;
  width: 100%;
  /* must have explicit height for absolute children */
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: visible;
}
.wm-float {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.09);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  animation: wmDrift 25s linear infinite;
  top: 15%;
  left: 10%;
  direction: ltr;
  user-select: none;
  white-space: nowrap;
  mix-blend-mode: screen;
}
@keyframes wmDrift {
  0%   { top: 10%; left: 8%; opacity: 0.07; }
  15%  { top: 48%; left: 52%; opacity: 0.1; }
  30%  { top: 18%; left: 38%; opacity: 0.07; }
  45%  { top: 62%; left: 10%; opacity: 0.1; }
  60%  { top: 30%; left: 66%; opacity: 0.07; }
  75%  { top: 55%; left: 28%; opacity: 0.1; }
  90%  { top: 12%; left: 55%; opacity: 0.07; }
  100% { top: 10%; left: 8%; opacity: 0.07; }
}

/* Watch Strip */
.watch-strip {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.watch-strip-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--pub-muted);
  margin-bottom: 8px;
}
.watch-strip-pct { font-weight: 800; color: #22c55e; }
.watch-strip-track {
  height: 5px; background: rgba(255,255,255,0.07);
  border-radius: 10px; overflow: hidden;
}
.watch-strip-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 10px; width: 0%;
  transition: width 0.5s ease;
}

/* ══════════════════════════════════════
   LINK BOXES — GLASSMORPHISM
══════════════════════════════════════ */
.wb-links-section { margin-top: 24px; }
.wb-links-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wb-links-title {
  font-size: 14px; font-weight: 700; color: var(--pub-ink);
  display: flex; align-items: center; gap: 8px;
}
.wb-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.wb-link-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  min-height: 130px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  isolation: isolate;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wb-link-box:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 8px 32px rgba(99,102,241,0.15), 0 0 0 1px rgba(99,102,241,0.12);
  transform: translate3d(0, -2px, 0);
}

.wb-link-content {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; height: 100%;
}
.wb-link-icon { font-size: 24px; line-height: 1; }
.wb-link-text { flex: 1; }
.wb-link-name { font-size: 13px; font-weight: 700; color: var(--pub-ink); margin-bottom: 4px; }
.wb-link-desc { font-size: 12px; color: var(--pub-muted); line-height: 1.5; }
.wb-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: #818cf8;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.22);
  transition: all 0.2s;
  align-self: flex-start; margin-top: auto;
}
.wb-link-btn:hover {
  background: rgba(99,102,241,0.22);
  color: #fff;
}

/* GLASSMORPHISM LOCK — frosted but opaque to hide content */
.wb-link-lock {
  position: absolute;
  inset: 0;
  /* Stronger blur with higher saturation for frosted effect */
  -webkit-backdrop-filter: blur(40px) saturate(1.8) brightness(0.4);
  backdrop-filter: blur(40px) saturate(1.8) brightness(0.4);
  /* More opaque background to completely hide underlying content */
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  /* GPU compositing for smooth animations */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  will-change: opacity, transform;
  /* Ensure content behind is not readable */
  overflow: hidden;
}
/* Extra overlay layer for complete opacity */
.wb-link-lock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  border-radius: inherit;
  pointer-events: none;
}
.wb-lock-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 16px; text-align: center;
  position: relative;
  z-index: 2;
}
.wb-lock-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
}
.wb-lock-title {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.75);
  max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-lock-countdown {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.wb-countdown-val {
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.wb-countdown-label {
  font-size: 10px; color: rgba(255,255,255,0.45); font-weight: 500;
}
@keyframes lockFadeOut {
  to { opacity: 0; transform: scale(1.05); }
}

/* ══════════════════════════════════════
   END OVERLAY — fullscreen modern
══════════════════════════════════════ */
.end-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(ellipse at 50% 30%, #1a1060 0%, #080b18 55%, #000 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.end-overlay-card {
  position: relative; z-index: 2;
  text-align: center;
  padding: 56px 44px 48px;
  max-width: 440px;
  width: 92%;
  transform: translateY(30px) scale(0.92); opacity: 0;
  transition: transform 0.55s cubic-bezier(.34,1.46,.64,1), opacity 0.4s ease;
}
.end-overlay-card.animate-in {
  transform: translateY(0) scale(1); opacity: 1;
}
/* Concentric rings behind check icon */
.end-overlay-rings {
  position: relative; width: 100px; height: 100px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
}
.end-ring {
  position: absolute; border-radius: 50%;
  animation: ringPulse 2.8s ease-out infinite;
}
.end-ring-1 {
  width: 100px; height: 100px;
  border: 1.5px solid rgba(99,102,241,0.25);
  animation-delay: 0s;
}
.end-ring-2 {
  width: 130px; height: 130px;
  border: 1px solid rgba(99,102,241,0.12);
  animation-delay: 0.5s;
}
@keyframes ringPulse {
  0%   { transform: scale(0.85); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.end-overlay-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg,#4f46e5 0%,#06b6d4 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(99,102,241,0.15), 0 0 40px rgba(99,102,241,0.5);
  animation: checkGlow 3s ease infinite;
  position: relative; z-index: 1;
}
@keyframes checkGlow {
  0%,100% { box-shadow: 0 0 0 8px rgba(99,102,241,0.15), 0 0 40px rgba(99,102,241,0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(99,102,241,0.08), 0 0 70px rgba(99,102,241,0.7); }
}
.end-overlay-badge {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 99px;
  padding: 4px 16px;
  font-size: 12px; font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.end-overlay-title {
  font-size: 28px; font-weight: 900;
  color: #f8fafc; margin: 0 0 14px; line-height: 1.25;
  text-shadow: 0 2px 20px rgba(99,102,241,0.3);
}
.end-overlay-text {
  font-size: 14.5px; color: rgba(248,250,252,0.55);
  line-height: 1.75; margin: 0 0 34px;
}
.end-overlay-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 15px 36px; border-radius: 99px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(79,70,229,0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.end-overlay-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(255,255,255,0.1) 0%,transparent 100%);
  border-radius: inherit;
}
.end-overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(79,70,229,0.6), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 30px rgba(79,70,229,0.4); }
  50%      { box-shadow: 0 0 60px rgba(79,70,229,0.7); }
}
.end-overlay-confetti {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(320px) rotate(540deg); opacity: 0; }
}

/* ══════════════════════════════════════
   POPUP MODAL BODY CONTENT
══════════════════════════════════════ */
.popup-body-content {
  font-size: 13.5px; color: rgba(255,255,255,0.7);
  line-height: 1.8; margin: 0 0 24px;
  text-align: right;
}

/* ══════════════════════════════════════
   ADMIN – KPI CARDS (user_events)
══════════════════════════════════════ */
.kpi-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.kpi-val {
  font-size: 22px; font-weight: 800;
  color: var(--adm-ink); line-height: 1;
}
.kpi-lbl {
  font-size: 12px; color: var(--adm-muted);
}

/* ══════════════════════════════════════
   ADMIN – BADGES EXTRA
══════════════════════════════════════ */
.badge.green  { background: #dcfce7; color: #059669; border-color: #bbf7d0; }
.badge.red    { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.badge.blue   { background: #dbeafe; color: #2563eb; border-color: #bfdbfe; }

/* ══════════════════════════════════════
   ADMIN – ALERT
══════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; border: 1px solid transparent; }
.alert-success { background: #dcfce7; color: #065f46; border-color: #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* ══════════════════════════════════════
   ADMIN – DETAILS/SUMMARY collapsible
══════════════════════════════════════ */
details.panel-section summary::-webkit-details-marker { display: none; }

/* ══════════════════════════════════════
   VIEWER-PER-MINUTE CHART canvas
══════════════════════════════════════ */
#vpmChart { display: block; }

/* ══════════════════════════════════════
   FINISH PAGE (public)
══════════════════════════════════════ */
.finish-page {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.finish-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.finish-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg,#4f46e5 0%,#059669 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; color: #fff;
  box-shadow: 0 0 50px rgba(79,70,229,0.35);
  animation: pulseGlow 3s ease infinite;
}
.finish-title {
  font-size: 28px; font-weight: 900;
  color: var(--pub-text); margin: 0 0 14px;
}
.finish-text {
  font-size: 15px; color: var(--pub-muted);
  line-height: 1.8; margin: 0 0 32px;
}
.finish-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  color: #fff; font-size: 16px; font-weight: 700;
  padding: 16px 40px; border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(79,70,229,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.finish-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(79,70,229,0.6); }

/* ══════════════════════════════════════
   RESPONSIVE OVERRIDES
══════════════════════════════════════ */
@media (max-width: 600px) {
  .wb-links-grid { grid-template-columns: 1fr; }
  .cinema-player-card { border-radius: 12px; }
  .wb-link-box { min-height: 100px; }
}
@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .shell-inner { padding: 0 16px; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 20px 16px; }
  .pub-wrapper { padding: 24px 16px 60px; }
}

/* ══════════════════════════════════════
   ADMIN — MOBILE RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  body.admin-theme .admin-wrap {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
    min-height: auto;
  }
  body.admin-theme .admin-sidebar {
    position: sticky;
    top: 72px;
    z-index: 80;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
  }
  body.admin-theme .sidebar-section-label { display: none; }
  body.admin-theme .nav-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    white-space: nowrap;
    font-size: 12.5px;
    gap: 8px;
  }
  body.admin-theme .nav-link.active { border-color: rgba(79,70,229,0.22); }
  body.admin-theme .nav-link::before { display: none; }
  body.admin-theme .admin-content { min-width: 0; overflow-x: hidden; }
}

@media (max-width: 640px) {
  body.admin-theme .top-shell { position: sticky; top: 0; z-index: 90; }
  body.admin-theme .shell-inner {
    height: 56px;
    padding: 0 12px;
  }
  body.admin-theme .brand-chip { font-size: 13px; }

  body.admin-theme .admin-wrap {
    padding: 10px;
    gap: 10px;
  }

  body.admin-theme .admin-sidebar {
    top: 62px;
    padding: 6px;
    border-radius: 10px;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(15,23,42,0.08);
  }
  body.admin-theme .nav-link {
    padding: 7px 10px;
    font-size: 11px;
    min-height: 34px;
  }
  body.admin-theme .nav-link svg {
    width: 14px;
    height: 14px;
  }
  body.admin-theme .nav-link.danger span { display: inline; }

  body.admin-theme .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  body.admin-theme .page-title { font-size: 18px; }
  body.admin-theme .page-subtitle { font-size: 12px; }
  body.admin-theme .page-header .btn { width: 100%; }

  body.admin-theme .filter-bar,
  body.admin-theme .panel-section,
  body.admin-theme .sms-send-card {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  body.admin-theme .settings-group-body { padding: 12px; gap: 10px; }
  body.admin-theme .settings-group-header { padding: 10px 12px; font-size: 12px; }

  body.admin-theme .row,
  body.admin-theme .row-3,
  body.admin-theme #addBlockedForm .row,
  body.admin-theme #addBlockedForm [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.admin-theme .btn {
    padding: 10px 14px;
    font-size: 12.5px;
  }
  body.admin-theme .btn.sm {
    padding: 7px 10px;
    font-size: 11px;
  }

  body.admin-theme .checkbox-group {
    flex-direction: column;
    gap: 8px;
  }

  body.admin-theme .link-box-handle {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  body.admin-theme table { font-size: 12px; min-width: 620px; }
  body.admin-theme th,
  body.admin-theme td { padding: 9px 10px; }
  body.admin-theme .panel-section div[style*="overflow-x:auto"],
  body.admin-theme .panel-section > div {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-theme .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  body.admin-theme .kpi-card { padding: 10px; }
  body.admin-theme .kpi-val { font-size: 17px; }

  body.admin-theme .pagination {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
  }
}

/* ══════════════════════════════════════
   FORM UTILITIES (aliases & helpers)
══════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 0; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--adm-ink2);
}

/* ══════════════════════════════════════
   PERSIAN (JALALI) DATE PICKER
══════════════════════════════════════ */
.persian-date-picker-popup {
    position: fixed;
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 10000;
    display: none;
    min-width: 280px;
    font-family: var(--font);
}
.pdp-nav-btn {
    background: var(--adm-accent);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: all .2s;
}
.pdp-nav-btn:hover {
    background: var(--adm-accent2);
}
.pdp-day-cell {
    font-size: 13px;
}
.pdp-day-cell:hover {
    background: var(--adm-border) !important;
}

/* ══════════════════════════════════════
   EMOJI EDITOR TOOLBAR (BOTTOM)
══════════════════════════════════════ */
.text-editor-wrap {
  position: relative;
  border: 1.5px solid var(--adm-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.text-editor-wrap:focus-within {
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.text-editor-wrap textarea {
  border: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: none;
  min-height: 90px;
  border-bottom: 1px solid var(--adm-border);
}
.text-editor-wrap textarea:focus {
  box-shadow: none;
  border-color: transparent;
}
.text-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.text-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  transition: all .15s;
}
.text-editor-toolbar button:hover {
  background: #fff;
  border-color: var(--adm-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
/* Emoji toggle button */
.emoji-toggle-btn {
  background: rgba(79,70,229,0.08) !important;
  border-color: rgba(79,70,229,0.2) !important;
}
.emoji-toggle-btn:hover {
  background: rgba(79,70,229,0.15) !important;
}
/* Scrollable emoji picker - HIDDEN BY DEFAULT */
.text-editor-wrap .emoji-picker {
  position: absolute;
  bottom: 42px;
  right: 10px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--adm-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  padding: 10px;
  display: none;
  visibility: hidden;
  opacity: 0;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: 280px;
  max-height: 220px;
  overflow-y: auto;
  transition: opacity .15s, visibility .15s;
}
.text-editor-wrap .emoji-picker.show {
  display: grid;
  visibility: visible;
  opacity: 1;
}
.emoji-picker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  transition: background .15s;
}
.emoji-picker span:hover {
  background: rgba(79,70,229,0.1);
}
/* .form-control → alias for .input / .textarea styles */
body.admin-theme .form-control {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  background: #fff;
  border: 1.5px solid var(--adm-border);
  color: var(--adm-ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
body.admin-theme .form-control:focus {
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
body.admin-theme textarea.form-control { min-height: 90px; resize: vertical; }
body.admin-theme select.form-control {
  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='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
}

/* ══════════════════════════════════════
   WATCH STRIP — REDESIGNED MINIMAL
══════════════════════════════════════ */
.watch-strip {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(99,102,241,0.07), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.watch-strip:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 0 40px rgba(99,102,241,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.watch-strip-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(241,245,249,0.5);
  margin-bottom: 9px;
  letter-spacing: 0.02em;
}
.watch-strip-pct {
  font-weight: 700;
  font-size: 14px;
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74,222,128,0.5);
}
.watch-strip-track {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.watch-strip-fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3a5, #4ade80, #a3e635);
  border-radius: 99px;
  width: 0%;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  position: relative;
}
.watch-strip-fill::after {
  content: '';
  position: absolute;
  right: 0; top: -2px;
  width: 10px; height: 9px;
  background: radial-gradient(circle, rgba(255,255,255,0.9), transparent);
  border-radius: 50%;
  animation: fillGlow 1.5s ease-in-out infinite;
}
@keyframes fillGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

/* ══════════════════════════════════════
   AJAX LOADING BAR
══════════════════════════════════════ */
#ajaxBar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--adm-accent), var(--adm-accent2));
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease, opacity .3s;
  opacity: 0;
}
#ajaxBar.loading { opacity: 1; animation: ajaxBarAnim 1.2s ease infinite; }
@keyframes ajaxBarAnim {
  0%   { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(0.6); transform-origin: right; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVENESS AND FIXES
══════════════════════════════════════ */
@media (max-width: 991px) {
  .admin-wrap {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
    min-height: auto;
  }
  .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .sidebar-section-label {
    grid-column: 1 / -1;
    margin-top: 10px;
    text-align: center;
  }
  .sidebar-section-label:first-child {
    margin-top: 0;
  }
  .nav-link {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 10px 4px;
    font-size: 11px;
    border-radius: var(--radius-sm);
  }
  .nav-link.active::before {
    display: none;
  }
  .nav-link.active {
    box-shadow: inset 0 -3px 0 var(--adm-accent);
  }
  .nav-link svg {
    margin: 0 auto;
  }
  .split-2 {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .admin-sidebar {
    grid-template-columns: repeat(3, 1fr);
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .top-shell .brand-chip {
    font-size: 13px;
  }
  .card, .panel-section {
    padding: 16px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  /* Table layout fixes */
  .table-responsive, table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* ══════════════════════════════════════
   BULK ACTION BAR 
══════════════════════════════════════ */
.bulk-action-bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.bulk-action-btn-wrap {
  flex-shrink: 0;
  width: 180px;
}
.bulk-action-btn {
  width: 100%;
  height: 48px;
  justify-content: center;
}

@media (max-width: 600px) {
  .bulk-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .bulk-action-btn-wrap {
    width: 100%;
  }
  .bulk-action-btn {
    height: 52px;
  }
}
