/* ==========================================================================
   TikVie - Design System & Modern Aesthetics
   Main Theme Color: #6b34eb (Electric Violet)
   Instant Dark & Light Mode Support (Default: Dark)
   ========================================================================== */

/* ── COLOR SYSTEM & THEME TOKENS ── */
:root,
html[data-theme="dark"] {
  --primary: #6b34eb;
  --primary-hover: #5826cc;
  --primary-light: #8b5cf6;
  --accent: #6b34eb;
  --accent-hover: #5826cc;
  --accent-glow: rgba(107, 52, 235, 0.4);
  --cyan: #06b6d4;
  --green: #10b981;

  --bg-primary: #0a0914;
  --bg-secondary: #121024;
  --bg-card: rgba(19, 17, 36, 0.82);
  --bg-card-hover: rgba(26, 23, 48, 0.95);
  --bg-glass: rgba(14, 12, 28, 0.75);

  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(107, 52, 235, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.04);

  --text-main: #ffffff;
  --text-muted: #9997b0;
  --text-dim: #64627d;

  --nav-bg: rgba(10, 9, 20, 0.85);
  --dropdown-bg: #141228;
  --dropdown-hover: rgba(107, 52, 235, 0.15);
  --modal-bg: rgba(15, 13, 30, 0.96);
  --glow-color: rgba(107, 52, 235, 0.18);
  --input-bg: rgba(255, 255, 255, 0.05);

  --theme-icon-sun-display: block;
  --theme-icon-moon-display: none;
}

html[data-theme="light"] {
  --primary: #6b34eb;
  --primary-hover: #5826cc;
  --primary-light: #8b5cf6;
  --accent: #6b34eb;
  --accent-hover: #5826cc;
  --accent-glow: rgba(107, 52, 235, 0.25);
  --cyan: #0891b2;
  --green: #059669;

  --bg-primary: #f7f6fd;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border: rgba(107, 52, 235, 0.12);
  --border-focus: rgba(107, 52, 235, 0.7);
  --border-subtle: rgba(0, 0, 0, 0.06);

  --text-main: #13112a;
  --text-muted: #575472;
  --text-dim: #8b87a6;

  --nav-bg: rgba(255, 255, 255, 0.88);
  --dropdown-bg: #ffffff;
  --dropdown-hover: rgba(107, 52, 235, 0.08);
  --modal-bg: rgba(255, 255, 255, 0.98);
  --glow-color: rgba(107, 52, 235, 0.12);
  --input-bg: rgba(0, 0, 0, 0.03);

  --theme-icon-sun-display: none;
  --theme-icon-moon-display: block;
}

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Background Atmosphere */
.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 520px;
  background: radial-gradient(circle, var(--glow-color) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s;
}

.nav-brand:hover .nav-logo-icon {
  transform: scale(1.05);
}

.nav-brand-title {
  font-weight: 800;
}

.nav-brand-accent {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-search-container {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.nav-search-form {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search-form:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav-search-icon {
  color: var(--text-dim);
  margin-right: 6px;
  font-size: 0.9rem;
}

.nav-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.88rem;
  width: 100%;
}

.nav-search-input::placeholder {
  color: var(--text-dim);
}

.nav-search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.nav-search-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  background: var(--dropdown-hover);
  transform: rotate(15deg);
}

.theme-icon-sun {
  display: var(--theme-icon-sun-display);
}

.theme-icon-moon {
  display: var(--theme-icon-moon-display);
}

/* ── RECENT SEARCHES DROPDOWN ── */
.search-field-container {
  position: relative;
  max-width: 560px;
  margin: 0 auto 30px;
}

.recent-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 60;
  overflow: hidden;
  animation: dropdownFadeIn 0.18s ease-out;
}

.recent-dropdown.nav-dropdown {
  top: calc(100% + 6px);
  min-width: 320px;
}

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

.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--border-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.recent-clear-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.recent-clear-btn:hover {
  color: var(--primary-light);
  background: var(--dropdown-hover);
}

.recent-list {
  max-height: 260px;
  overflow-y: auto;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text-main);
  text-align: left;
}

.recent-item:hover {
  background: var(--dropdown-hover);
}

.recent-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item-icon {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.recent-item-text {
  font-size: 0.92rem;
  font-weight: 500;
}

.recent-delete-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.recent-delete-btn:hover {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.12);
  transform: scale(1.1);
}

/* ── LAYOUT CONTAINER ── */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 100px;
  position: relative;
  z-index: 1;
}

/* ── HERO VIEW ── */
.hero-view {
  text-align: center;
  padding: 70px 20px 110px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(107, 52, 235, 0.12);
  border: 1px solid rgba(107, 52, 235, 0.3);
  color: var(--primary-light);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-search-wrap {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  width: 100%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero-search-icon {
  color: var(--text-dim);
  margin-right: 12px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

.hero-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  flex: 1;
}

.hero-search-input::placeholder {
  color: var(--text-dim);
}

.hero-search-btn {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.hero-search-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 22px var(--accent-glow);
}

.popular-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.popular-chip {
  color: var(--text-muted);
  text-decoration: none;
  background: var(--input-bg);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.popular-chip:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: var(--dropdown-hover);
  transform: translateY(-1px);
}

/* ── LOADING BOX ── */
.loading-box {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(107, 52, 235, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── PROFILE CARD ── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: background 0.25s, border-color 0.25s;
}

.profile-main-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.avatar-container {
  position: relative;
  flex-shrink: 0;
}

.avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 6px 20px var(--accent-glow);
  background: #1e1b38;
}

.verified-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--cyan);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  border: 2px solid var(--bg-primary);
}

.profile-info-col {
  flex: 1;
  min-width: 280px;
}

.name-heading-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-name {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-handle {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1.05rem;
}

.profile-bio-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  max-width: 650px;
  line-height: 1.5;
}

.stats-ribbon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ribbon-box {
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 100px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}

.ribbon-box:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.ribbon-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.ribbon-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.value-highlight {
  color: var(--green) !important;
}

.cyan-highlight {
  color: var(--cyan) !important;
}

.profile-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.btn-ghost {
  background: var(--input-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--dropdown-hover);
}

/* ── TOOLBAR & TABS ── */
.toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabs-group {
  display: flex;
  gap: 8px;
  background: var(--input-bg);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.filter-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.caption-filter-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  min-width: 240px;
  transition: border-color 0.2s;
}

.caption-filter-input:focus {
  border-color: var(--border-focus);
}

/* ── 9:16 PORTRAIT VIDEO GRID ── */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.portrait-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141228;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.portrait-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px var(--accent-glow);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

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

.card-est-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-dur-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-caption {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.card-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.card-quick-dl-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.card-quick-dl-btn:hover {
  background: var(--primary-light);
  transform: scale(1.15);
}

/* ── MODAL PLAYER ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.15s;
}

.modal-close-icon:hover {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.4);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  max-height: 85vh;
}

.modal-video-col {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.modal-player-tag {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  outline: none;
}

.modal-info-col {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.modal-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.modal-author-name {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.modal-author-handle {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-desc-box {
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
  max-height: 120px;
  overflow-y: auto;
}

.modal-stat-ribbon {
  display: flex;
  gap: 10px;
  background: var(--input-bg);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.modal-stat-item {
  flex: 1;
  text-align: center;
}

.modal-stat-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.modal-stat-item strong {
  font-size: 1rem;
  color: var(--text-main);
}

.modal-download-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-btn-download {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.modal-btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.modal-btn-copy {
  background: var(--input-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-copy:hover {
  border-color: var(--primary);
  background: var(--dropdown-hover);
}

.modal-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.nav-arr-btn {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-arr-btn:hover {
  border-color: var(--primary);
  background: var(--dropdown-hover);
}

.modal-video-counter {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── TOAST NOTIFICATION ── */
.toast-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px var(--accent-glow);
  z-index: 1000;
  animation: toastFade 0.25s ease-out;
}

@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ── HOMEPAGE VALUABLE CONTENT & FAQ ── */
.home-section {
  margin-top: 60px;
  text-align: left;
}

.home-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.home-section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(107, 52, 235, 0.14);
  color: var(--primary-light);
  border: 1px solid rgba(107, 52, 235, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.home-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.home-section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 3-Step "How It Works" Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(107, 52, 235, 0.15);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6b34eb 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Core Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.22s, border-color 0.22s;
  backdrop-filter: blur(12px);
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.feature-icon-box {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.feature-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Accordion FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-card[open] {
  border-color: var(--primary);
}

.faq-summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "＋";
  font-size: 1.2rem;
  color: var(--primary-light);
  transition: transform 0.2s;
}

.faq-card[open] .faq-summary::after {
  content: "−";
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* Prominent Homepage Disclaimer Box */
.home-disclaimer-box {
  background: linear-gradient(135deg, rgba(107, 52, 235, 0.08) 0%, rgba(19, 17, 36, 0.8) 100%);
  border: 1px solid rgba(107, 52, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 50px auto 40px;
  max-width: 900px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .home-disclaimer-box {
  background: linear-gradient(135deg, rgba(107, 52, 235, 0.06) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(107, 52, 235, 0.2);
  box-shadow: 0 8px 30px rgba(107, 52, 235, 0.08);
}

.disclaimer-badge-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.disclaimer-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

.disclaimer-content a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FOOTER BAR ── */
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 46px 20px 40px;
  margin-top: 70px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ── RESPONSIVE ADAPTATIONS ── */
@media (max-width: 860px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .home-disclaimer-box {
    flex-direction: column;
    padding: 24px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-video-col {
    min-height: 340px;
  }
  .profile-main-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .name-heading-row {
    justify-content: center;
  }
  .stats-ribbon {
    justify-content: center;
  }
  .profile-actions-col {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .navbar {
    padding: 10px 14px;
  }
  .nav-search-container {
    max-width: 180px;
  }
  .portrait-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-section-title {
    font-size: 1.65rem;
  }
}

/* ── SHARED CONTENT PAGES (About, Contact, Privacy, Terms, Disclaimer) ── */
.page-header {
  text-align: center;
  padding: 50px 20px 36px;
  max-width: 820px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.content-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.content-card li {
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.contact-form-group {
  margin-bottom: 18px;
}

.contact-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-submit-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px var(--accent-glow);
  width: 100%;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 2.1rem;
  }
  .content-card {
    padding: 24px;
  }
}

