/* ══════════════════════════════════════════════════════════
   SWAMI SAMARTH SHORTS AGENT — PREMIUM DASHBOARD STYLES
   ══════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --bg-primary: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: rgba(255, 153, 51, 0.04);
  --bg-card-hover: rgba(255, 153, 51, 0.08);

  --border-card: rgba(255, 153, 51, 0.15);
  --border-card-hover: rgba(255, 153, 51, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --accent-saffron: #FF9933;
  --accent-gold: #FFD700;
  --accent-gradient: linear-gradient(135deg, #FF9933, #FFD700);
  --accent-gradient-h: linear-gradient(90deg, #FF9933, #FFD700);

  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;

  --success: #00C853;
  --warning: #FFB300;
  --error: #FF5252;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-devanagari: 'Noto Sans Devanagari', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --blur: blur(20px);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 153, 51, 0.15);
  --shadow-glow-strong: 0 0 50px rgba(255, 153, 51, 0.25);

  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;

  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 153, 51, 0.2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 153, 51, 0.4);
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(255, 153, 51, 0.3);
  color: var(--text-primary);
}

/* ─── BACKGROUND EFFECTS ─── */
.bg-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 153, 51, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.01) 0%, transparent 50%);
  opacity: 1;
}

.bg-watermark::before {
  content: '🕉️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40vw;
  opacity: 0.012;
  pointer-events: none;
  user-select: none;
}

.bg-gradient-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}

.bg-gradient-orb--top {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.06) 0%, transparent 70%);
}

.bg-gradient-orb--bottom {
  bottom: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo {
  font-size: 32px;
  display: flex;
  align-items: center;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.header__title-group {
  display: flex;
  flex-direction: column;
}

.header__title {
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.header__subtitle {
  font-family: var(--font-devanagari);
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ─── NAV TABS ─── */
.header__nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 153, 51, 0.08);
}

.nav-tab--active {
  color: var(--accent-saffron);
  background: rgba(255, 153, 51, 0.12);
}

.nav-tab--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent-gradient-h);
  border-radius: var(--radius-full);
}

.nav-tab__icon {
  font-size: 16px;
}

.nav-tab__label {
  font-size: 13px;
}

/* ─── SCHEDULER BADGE ─── */
.header__scheduler {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.scheduler-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.scheduler-dot--running {
  background: var(--success);
  box-shadow: 0 0 8px rgba(0, 200, 83, 0.5);
  animation: dotPulse 2s ease-in-out infinite;
}

.scheduler-dot--stopped {
  background: var(--error);
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.3);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.scheduler-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.scheduler-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-card);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-saffron);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.scheduler-toggle:hover {
  background: rgba(255, 153, 51, 0.15);
  border-color: var(--accent-saffron);
}

/* ─── MOBILE MENU ─── */
.header__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__mobile-menu span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── MOBILE NAV OVERLAY ─── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav-overlay--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.mobile-nav-overlay--open .mobile-nav {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 48px;
}

.mobile-nav__tabs .nav-tab {
  justify-content: flex-start;
  padding: 12px 16px;
  width: 100%;
  font-size: 15px;
}

.mobile-nav__tabs .nav-tab--active::after {
  display: none;
}

.mobile-nav__scheduler {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height) - 80px);
}

/* ─── TAB PANELS ─── */
.tab-panel {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.tab-panel--active {
  display: block;
}

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

/* ─── SECTION HEADER ─── */
.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   CARDS & GLASSMORPHISM
   ═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), transparent 50%, rgba(255, 215, 0, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

.card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card--wide {
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════
   GROWTH TRACKER
   ═══════════════════════════════════════════ */
/* ─── MONETIZATION PROGRESS ─── */
.monetization-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--blur);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.progress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient-h);
  opacity: 0.6;
}

.progress-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-glow);
}

.progress-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-card__label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-card__value {
  font-size: 15px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-card__percent {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 600;
}

/* ─── PROGRESS BAR ─── */
.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar--sm {
  height: 6px;
  margin-top: 12px;
}

.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-bar__fill--subs {
  background: var(--accent-gradient-h);
}

.progress-bar__fill--views {
  background: linear-gradient(90deg, #00C853, #69F0AE);
}

.progress-bar__fill--llm {
  background: linear-gradient(90deg, #2979FF, #82B1FF);
}

.progress-bar__fill--gemini {
  background: linear-gradient(90deg, #AA00FF, #EA80FC);
}

/* ─── COUNTDOWN ─── */
.progress-card__countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

.countdown-number {
  font-size: 42px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── STATS GRID ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  backdrop-filter: var(--blur);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.stat-card__icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-card__label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── SKILL LEVEL ─── */
.skill-level-bar {
  padding: 8px 0;
}

.skill-level-bar__track {
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.skill-level-bar__fill {
  height: 100%;
  background: var(--accent-gradient-h);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-level-bar__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--accent-gold);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.skill-level-bar__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.skill-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.skill-label--active {
  color: var(--accent-saffron);
}

/* ─── LLM USAGE ─── */
.llm-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.llm-card {
  position: relative;
}

.llm-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.llm-stat:last-of-type {
  border-bottom: none;
}

.llm-stat__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.llm-stat__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── MINI CHART ─── */
.mini-chart {
  padding: 16px 0 0;
}

.mini-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-bottom: 4px;
}

.mini-chart__bar {
  flex: 1;
  background: var(--accent-gradient);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  opacity: 0.7;
}

.mini-chart__bar:hover {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 153, 51, 0.3);
}

.mini-chart__bar-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.mini-chart__bar:hover .mini-chart__bar-tooltip {
  opacity: 1;
}

.mini-chart__labels {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.mini-chart__label {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   SEO RESEARCH
   ═══════════════════════════════════════════ */
.research-actions {
  margin-bottom: 24px;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

/* ─── TREND ALERT ─── */
.trend-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.08), rgba(255, 153, 51, 0.08));
  border: 1px solid rgba(255, 82, 82, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
  0%, 100% { border-color: rgba(255, 82, 82, 0.25); }
  50% { border-color: rgba(255, 153, 51, 0.5); }
}

.trend-alert__icon {
  font-size: 24px;
  animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.trend-alert__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── KEYWORDS LIST ─── */
.keywords-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.keyword-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.keyword-item:hover {
  background: rgba(255, 153, 51, 0.06);
  border-color: var(--border-card);
}

.keyword-item__text {
  font-size: 13px;
  font-weight: 500;
}

.keyword-item__volume {
  display: flex;
  gap: 3px;
  align-items: center;
}

.keyword-item__volume-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent-saffron);
  transition: height var(--transition);
}

/* ─── DATA TABLE ─── */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.data-table tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(255, 153, 51, 0.04);
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px !important;
}

/* ─── SEO BRIEF ─── */
.seo-brief {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.seo-brief h4 {
  color: var(--accent-saffron);
  margin: 16px 0 8px;
  font-size: 14px;
}

.seo-brief ul {
  list-style: none;
  padding: 0;
}

.seo-brief li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.seo-brief li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-saffron);
  font-weight: bold;
}

/* ═══════════════════════════════════════════
   GENERATE
   ═══════════════════════════════════════════ */
.content-types {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.content-type-card {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.content-type-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.content-type-card--active {
  background: rgba(255, 153, 51, 0.1);
  border-color: var(--accent-saffron);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.content-type-card__icon {
  font-size: 32px;
}

.content-type-card__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── LANGUAGE TOGGLE ─── */
.language-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}

.lang-btn {
  padding: 10px 28px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-devanagari);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--accent-saffron);
  color: var(--text-primary);
}

.lang-btn--active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #0a0a0a;
  font-weight: 700;
}

/* ─── GENERATE BUTTON ─── */
.generate-action {
  text-align: center;
  margin-bottom: 32px;
}

.btn--generate {
  padding: 18px 56px;
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-gradient);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--generate:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn--generate:active {
  transform: translateY(0);
}

.btn--generate::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: inherit;
  z-index: -1;
  filter: blur(16px);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn--generate:hover::before {
  opacity: 0.5;
}

/* ─── PROGRESS STEPS ─── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 24px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--border-card);
  color: var(--text-muted);
  background: var(--bg-surface);
  transition: all var(--transition);
}

.step__label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.step--active .step__circle {
  border-color: var(--accent-saffron);
  color: var(--accent-saffron);
  box-shadow: 0 0 16px rgba(255, 153, 51, 0.3);
  animation: stepPulse 1.5s ease-in-out infinite;
}

.step--active .step__label {
  color: var(--accent-saffron);
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 153, 51, 0.2); }
  50% { box-shadow: 0 0 24px rgba(255, 153, 51, 0.5); }
}

.step--completed .step__circle {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #0a0a0a;
}

.step--completed .step__label {
  color: var(--accent-saffron);
}

.step__line {
  width: 40px;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 4px;
  margin-bottom: 22px;
  transition: background var(--transition);
}

.step__line--active {
  background: var(--accent-gradient-h);
}

/* ─── PREVIEW AREA ─── */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.video-player {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/16;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ═══════════════════════════════════════════
   HISTORY
   ═══════════════════════════════════════════ */
.history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent-saffron);
  color: var(--text-primary);
}

.filter-btn--active {
  background: rgba(255, 153, 51, 0.12);
  border-color: var(--accent-saffron);
  color: var(--accent-saffron);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.history-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.history-card__thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(255, 215, 0, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.history-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-card__body {
  padding: 16px;
}

.history-card__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.history-card__views {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.history-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}

.history-card__sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.sparkline-bar {
  width: 3px;
  border-radius: 1px;
  background: var(--accent-saffron);
  opacity: 0.6;
}

/* ─── STATUS BADGES ─── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge--draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.status-badge--published {
  background: rgba(0, 200, 83, 0.12);
  color: var(--success);
}

.status-badge--viral {
  background: rgba(255, 82, 82, 0.12);
  color: var(--error);
  animation: viralGlow 1s ease-in-out infinite;
}

@keyframes viralGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(255, 82, 82, 0.3); }
}

.history-card__actions {
  display: flex;
  gap: 8px;
}

.history-card__link {
  font-size: 12px;
  color: var(--accent-saffron);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.history-card__link:hover {
  color: var(--accent-gold);
}

.history-card__delete {
  font-size: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.history-card__delete:hover {
  color: var(--error);
}

/* ═══════════════════════════════════════════
   AGENT LEARNING
   ═══════════════════════════════════════════ */
.skill-progression {
  padding: 16px 0;
}

.skill-progression__bar {
  height: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-progression__fill {
  height: 100%;
  background: var(--accent-gradient-h);
  border-radius: var(--radius-full);
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-progression__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2.5s infinite;
}

.skill-progression__stages {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.skill-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.skill-stage__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.skill-stage--active .skill-stage__dot {
  background: var(--accent-saffron);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 153, 51, 0.4);
}

.skill-stage--completed .skill-stage__dot {
  background: var(--success);
  border-color: var(--success);
}

.skill-stage__name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.skill-stage--active .skill-stage__name {
  color: var(--accent-saffron);
}

.skill-stage--completed .skill-stage__name {
  color: var(--success);
}

.learning-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  margin-top: 28px;
}

/* ─── PATTERNS LIST ─── */
.patterns-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pattern-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.pattern-item:hover {
  background: rgba(255, 153, 51, 0.04);
  border-color: var(--border-card);
}

.pattern-item__name {
  font-size: 14px;
  font-weight: 500;
}

.pattern-item__score {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-saffron);
}

/* ─── DEPENDENCY CHART ─── */
.dependency-chart {
  padding: 16px 0;
}

/* ─── TRAINING LOG ─── */
.training-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.training-log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.training-log-entry__time {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.training-log-entry__msg {
  color: var(--text-secondary);
}

.training-actions {
  text-align: center;
}

/* ═══════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════ */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

/* ─── FORM ELEMENTS ─── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.input-password-wrapper {
  position: relative;
}

.input-password-wrapper .form-input {
  padding-right: 48px;
}

.input-toggle-vis {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.input-toggle-vis:hover {
  opacity: 1;
}

/* ─── TOGGLE SWITCH ─── */
.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.toggle__slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle input:checked + .toggle__slider {
  background: var(--accent-gradient);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(22px);
  background: #0a0a0a;
}

.schedule-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.schedule-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─── PILLAR ORDER ─── */
.pillar-order {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-tag {
  padding: 8px 16px;
  background: rgba(255, 153, 51, 0.08);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: grab;
  transition: all var(--transition);
  user-select: none;
}

.pillar-tag:hover {
  border-color: var(--accent-saffron);
  background: rgba(255, 153, 51, 0.15);
}

.pillar-tag:active {
  cursor: grabbing;
}

.pillar-tag.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.settings-save-row {
  text-align: center;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #0a0a0a;
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 153, 51, 0.1);
  color: var(--accent-saffron);
  border: 1px solid var(--border-card);
}

.btn--secondary:hover {
  background: rgba(255, 153, 51, 0.18);
  border-color: var(--accent-saffron);
}

.btn--lg {
  padding: 14px 40px;
  font-size: 16px;
}

.btn--danger {
  background: rgba(255, 82, 82, 0.12);
  color: var(--error);
}

.btn--danger:hover {
  background: rgba(255, 82, 82, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── SPINNER ─── */
.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn--loading .btn__spinner {
  display: block;
}

.btn--loading .btn__text {
  opacity: 0.7;
}

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

/* ═══════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton--list {
  height: 200px;
}

.skeleton--card {
  height: 280px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  animation: toastIn 0.4s ease;
  pointer-events: auto;
  max-width: 400px;
}

.toast--success {
  border-color: rgba(0, 200, 83, 0.3);
}

.toast--error {
  border-color: rgba(255, 82, 82, 0.3);
}

.toast--warning {
  border-color: rgba(255, 179, 0, 0.3);
}

.toast--info {
  border-color: rgba(41, 121, 255, 0.3);
}

.toast--removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
}

.toast__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast__message {
  flex: 1;
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color var(--transition);
}

.toast__close:hover {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   TEXT UTILITY
   ═══════════════════════════════════════════ */
.text-muted {
  color: var(--text-muted);
  font-size: 14px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-devanagari);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__mobile-menu {
    display: flex;
  }

  .header__scheduler {
    margin-left: auto;
  }

  .monetization-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .llm-usage-grid {
    grid-template-columns: 1fr;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .learning-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --header-height: 60px;
  }

  .header__inner {
    padding: 0 16px;
  }

  .header__title {
    font-size: 14px;
  }

  .header__subtitle {
    font-size: 10px;
  }

  .header__logo {
    font-size: 24px;
  }

  .header__scheduler .scheduler-label {
    display: none;
  }

  .main {
    padding: 20px 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .stats-grid,
  .learning-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card__value {
    font-size: 22px;
  }

  .content-types {
    gap: 8px;
  }

  .content-type-card {
    min-width: 90px;
    padding: 14px 10px;
  }

  .content-type-card__icon {
    font-size: 24px;
  }

  .content-type-card__label {
    font-size: 11px;
  }

  .btn--generate {
    padding: 14px 36px;
    font-size: 16px;
  }

  .progress-steps {
    flex-wrap: wrap;
    gap: 8px;
  }

  .step__line {
    width: 20px;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .card__title {
    font-size: 14px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }

  .schedule-slots {
    grid-template-columns: 1fr;
  }

  .preview-actions {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════
   PRINT (HIDE NON-ESSENTIAL)
   ═══════════════════════════════════════════ */
@media print {
  .header,
  .footer,
  .bg-watermark,
  .bg-gradient-orb,
  .toast-container,
  .mobile-nav-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
