@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');
@import url('accessibility.css');

:root {
  /* Light Theme (Natural Luxury Light) - Default */
  --bg: #FDFBF7;
  --surface: #FFFFFF;
  --surface-2: #F6F2EA;
  --text: #1A211E;
  --muted: #5C6560;
  --accent: #2E5257;
  --accent-hover: #1E373B;
  --accent-2: #B8860B;
  --accent-2-light: #D4AF37;
  --line: #E5E0D5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(253, 251, 247, 0.88);
  --btn-sec-hover: #EDE8DF;
  --hero-bg: linear-gradient(135deg, #F9F5EE 0%, #EFE9DD 100%);
  --hero-radial: radial-gradient(circle at 80% 30%, rgba(184, 134, 11, 0.15), transparent 45%);
  --max: 1180px;
  --radius: 22px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Rubik', Arial, sans-serif;
}

[data-theme="dark"] {
  /* Dark Theme (Obsidian Gold Luxury) */
  --bg: #0C1010;
  --surface: #141A18;
  --surface-2: #1D2522;
  --text: #F3EBDD;
  --muted: #A8B2AC;
  --accent: #486E72;
  --accent-hover: #5D8B90;
  --accent-2: #D7B56D;
  --accent-2-light: #EAD093;
  --line: #2C3833;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(12, 16, 16, 0.88);
  --btn-sec-hover: #26312C;
  --hero-bg: linear-gradient(135deg, #18201E 0%, #0C1010 100%);
  --hero-radial: radial-gradient(circle at 80% 30%, rgba(215, 181, 109, 0.2), transparent 45%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(92%, var(--max));
  margin: auto;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom-color: rgba(184, 134, 11, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 14px;
  width: 100%;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand span {
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-2);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle,
.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.lang-toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.nav-cta-btn {
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(184, 134, 11, 0.3);
  transition: all 0.25s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--accent-2);
  background: var(--accent-2);
  color: #FFFFFF !important;
  letter-spacing: 0.01em;
}

.nav-cta-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.45);
  background: var(--accent-2-light);
  color: #1A211E !important;
}

@media (max-width: 860px) {
  .nav-cta-btn {
    display: inline-flex !important;
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 4px;
  }
  
  .nav {
    min-height: 60px;
    gap: 6px;
  }
  
  .brand {
    font-size: 1.25rem;
  }

  .nav-actions {
    gap: 5px;
  }

  .lang-toggle,
  .theme-toggle,
  .menu-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav {
    min-height: 56px;
    gap: 4px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .nav-cta-btn {
    display: inline-flex !important;
    padding: 5px 9px;
    font-size: 0.74rem;
    gap: 2px;
  }

  .nav-actions {
    gap: 4px;
  }

  .lang-toggle,
  .theme-toggle,
  .menu-toggle {
    padding: 5px 8px;
    font-size: 0.75rem;
    gap: 2px;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 1rem;
  }

  .nav-cta-btn {
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  .lang-toggle,
  .theme-toggle,
  .menu-toggle {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
}

.menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 90px 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: min(92%, var(--max));
  margin: 0 auto;
}

.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 5;
}

html[dir="rtl"] .hero-content {
  align-items: flex-start;
}

/* Background image layer - 48% width dedicated to Nofar's portrait */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48%;
  background-image: url('../img/hero_stage.png');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transition: all 0.4s ease;
}

/* LTR (English): Image sits on the RIGHT 48% of screen */
html[dir="ltr"] .hero::before {
  right: 0;
  left: auto;
  transform: none;
}

/* RTL (Hebrew): Image sits on the LEFT 48% of screen, horizontally flipped */
html[dir="rtl"] .hero::before {
  left: 0;
  right: auto;
  transform: scaleX(-1);
}

/* Subtle Gradient Overlay connecting image side to text background */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48%;
  z-index: 1;
  pointer-events: none;
}

/* LTR (English): Gradient overlay on right 48% */
html[dir="ltr"] .hero::after {
  right: 0;
  left: auto;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(253, 251, 247, 0.4) 30%, transparent 70%);
}

html[dir="ltr"][data-theme="dark"] .hero::after {
  right: 0;
  left: auto;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(12, 16, 16, 0.5) 30%, transparent 70%);
}

/* RTL (Hebrew): Gradient overlay on left 48% */
html[dir="rtl"] .hero::after {
  left: 0;
  right: auto;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(253, 251, 247, 0.4) 30%, transparent 70%);
}

html[dir="rtl"][data-theme="dark"] .hero::after {
  left: 0;
  right: auto;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(12, 16, 16, 0.5) 30%, transparent 70%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 700;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  margin: 0.2em 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 680px;
  color: var(--muted);
  font-weight: 400;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(46, 82, 87, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 82, 87, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--btn-sec-hover);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-2-light));
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
  color: #FFFFFF;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
}

.section-head h2,
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0;
  font-weight: 700;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}

/* Grids */
.grid {
  display: grid;
  gap: 28px;
}

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

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

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3, .card-body h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 10px 0;
}

.art {
  aspect-ratio: 1/1;
  background: linear-gradient(145deg, var(--accent), var(--surface-2) 70%, var(--accent-2));
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  padding: 24px;
  color: #FFFFFF;
  overflow: hidden;
}

.art.has-cover, .release-cover.has-cover {
  padding: 0 !important;
}

.art-fake-love, .release-fake-love {
  background: linear-gradient(135deg, #1A1315, #8A2D4F 60%, #D59B54);
  color: #FFFFFF;
}

.muted {
  color: var(--muted);
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 6px;
}

/* Quote */
.quote {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.25;
  font-style: italic;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--text);
}

/* Page Hero */
.page-hero {
  padding: 80px 0 40px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

/* Release Details Page */
.release-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 48px;
  align-items: center;
}

.release-cover {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-align: center;
  padding: 24px;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.platforms a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.platforms a:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
  color: var(--accent-2);
}

/* Clean List */
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Video Frame & Cards */
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-2);
}

.video-card h2, .video-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 12px 0 8px;
  text-align: center;
  width: 100%;
}

.video-card .badge {
  margin: 10px auto 6px auto;
  display: inline-block;
}

.video-frame, .video-embed {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  border-radius: calc(var(--radius) - 8px);
  display: block;
  border: 1px solid var(--line);
  color: var(--muted);
  overflow: hidden;
  margin: 0 auto 16px auto;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.video-frame iframe, .video-embed iframe, .video-facade {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
  margin: 0 auto;
}

/* Form Styles */
.form {
  display: grid;
  gap: 18px;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

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

.notice {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Audio Player Widget */
.audio-player-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.audio-player-bar .play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
  color: var(--muted);
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.badge {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface-2);
}

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
}

.social-links a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.footer-socials {
  grid-column: 1 / -1;
  padding-top: 12px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 96px;
  right: 30px;
  z-index: 999999;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent-2);
  padding: 14px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: min(90vw, 420px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .actions,
html[dir="rtl"] .platforms,
html[dir="rtl"] .social-links {
  direction: rtl;
}

html[dir="rtl"] .toast {
  right: auto;
  left: 30px;
  bottom: 96px;
}

@media (max-width: 480px) {
  .toast,
  html[dir="rtl"] .toast {
    left: 16px !important;
    right: 16px !important;
    bottom: 84px !important;
    max-width: calc(100vw - 32px);
    text-align: center;
    justify-content: center;
  }
}

/* Dashboard Edit Mode Indicators */
.form-editing-active {
  border: 2px solid var(--accent-2) !important;
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15) !important;
  background: rgba(184, 134, 11, 0.03) !important;
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.3s ease;
}

.editing-badge-banner {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.18), rgba(212, 175, 55, 0.12));
  border: 1px solid var(--accent-2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn-update-mode {
  background: linear-gradient(135deg, #B8860B 0%, #D4AF37 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #996515 !important;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.btn-update-mode:hover {
  background: linear-gradient(135deg, #996515 0%, #B8860B 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.5) !important;
}

.hide {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2, .stat-row, .footer-grid, .release-hero {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 4%;
    right: 4%;
    top: 76px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 88vh;
    min-height: 88svh;
    padding: 240px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }

  .hero .container {
    width: 100%;
    padding: 0 20px;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero::before,
  html[dir="ltr"] .hero::before,
  html[dir="rtl"] .hero::before {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-position: 72% 10% !important;
    background-size: cover !important;
    transform: none !important;
  }

  .hero::after,
  html[dir="ltr"] .hero::after,
  html[dir="rtl"] .hero::after {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(180deg, 
      rgba(253, 251, 247, 0.02) 0%, 
      rgba(253, 251, 247, 0.2) 28%, 
      rgba(253, 251, 247, 0.85) 52%, 
      var(--bg) 82%
    ) !important;
  }

  html[dir="ltr"][data-theme="dark"] .hero::after,
  html[dir="rtl"][data-theme="dark"] .hero::after {
    background: linear-gradient(180deg, 
      rgba(12, 16, 16, 0.08) 0%, 
      rgba(12, 16, 16, 0.35) 28%, 
      rgba(12, 16, 16, 0.88) 52%, 
      var(--bg) 82%
    ) !important;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 8.5vw, 3.2rem);
    margin-bottom: 8px;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    max-width: 440px;
    margin: 0 auto 24px;
    color: var(--text);
  }

  .hero .actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .hero .actions .btn {
    flex: 1 1 130px;
    text-align: center;
    padding: 11px 16px;
    font-size: 0.92rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --- Dashboard Specific Styles --- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-box {
  background: var(--surface);
  border: 1px solid var(--accent-2);
  padding: 40px;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.auth-form input {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.auth-error {
  color: #D9534F;
  font-size: 0.88rem;
  margin: 4px 0 0;
}

.dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dashboard-actions select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-trend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

.kpi-trend.positive {
  color: #2E7D32;
}

[data-theme="dark"] .kpi-trend.positive {
  color: #66BB6A;
}

.progress-list {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.progress-bar {
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
}

.table-responsive {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

html[dir="ltr"] .dash-table {
  text-align: left;
}

.dash-table th {
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.dash-table tr:hover td {
  background: var(--surface-2);
}

.badge-platform {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFF;
}

.badge-platform.meta { background: #E1306C; }
.badge-platform.google { background: #4285F4; }
.badge-platform.tiktok { background: #111111; border: 1px solid var(--line); }

.pixel-card {
  position: relative;
}

.pixel-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 8px;
}

[data-theme="dark"] .pixel-status {
  color: #66BB6A;
}

.pixel-event {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  display: block;
}

/* --- Media & Press Rotating Showcase / Carousel --- */
.press-carousel-section {
  position: relative;
}

.press-slide {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
}

.press-slide.active {
  opacity: 1;
  transform: translateY(0);
  display: grid;
}

.press-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.press-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.press-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.press-dot.active {
  background: var(--accent-2);
  width: 28px;
  border-radius: 12px;
}

.press-arrow-btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.press-arrow-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* --- Modern WordPress / SaaS Sidebar Layout for Dashboard --- */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.dash-sidebar {
  width: 270px;
  min-width: 270px;
  background: var(--surface);
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-brand span {
  color: var(--accent-2);
}

.sidebar-status {
  font-size: 0.78rem;
  color: #2e7d32;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46, 125, 50, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

[data-theme="dark"] .sidebar-status {
  color: #66bb6a;
  background: rgba(102, 187, 106, 0.15);
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 12px 10px 4px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-btn:hover {
  background: var(--surface-2);
  color: var(--accent-2);
  transform: translateX(2px);
}

html[dir="rtl"] .sidebar-btn:hover {
  transform: translateX(-2px);
}

.sidebar-btn.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-2);
  font-weight: 700;
  border-inline-start: 4px solid var(--accent-2);
}

.sidebar-btn .sidebar-icon {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.dash-top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.dash-top-header-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-content-area {
  padding: 28px;
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeInPane 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.mobile-sidebar-toggle-btn {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
}

@media (max-width: 900px) {
  .mobile-sidebar-toggle-btn {
    display: inline-flex;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    transform: translateX(100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }

  html[dir="ltr"] .dash-sidebar {
    transform: translateX(-100%);
  }

  .dash-sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .dash-content-area {
    padding: 18px 14px;
  }

  .dash-top-header {
    padding: 12px 16px;
  }
}

/* --- WhatsApp Channel Banner & Footer Integration --- */
.whatsapp-channel-banner {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.08) 100%);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .whatsapp-channel-banner {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(7, 94, 84, 0.2) 100%);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.whatsapp-channel-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.15);
}

.whatsapp-channel-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.whatsapp-icon-circle {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon-circle svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-btn {
  background: #25D366;
  color: #FFFFFF !important;
  border: 1px solid #25D366;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.whatsapp-btn:hover {
  background: #1EBE5D;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  color: #FFFFFF !important;
}

.social-links a.social-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.4);
  color: #128C7E;
  font-weight: 600;
}

[data-theme="dark"] .social-links a.social-whatsapp {
  color: #25D366;
  background: rgba(37, 211, 102, 0.15);
}

.social-links a.social-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

@media (max-width: 768px) {
  .whatsapp-channel-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
    gap: 18px;
  }

  .whatsapp-channel-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- EPK Highlights Ranking & Home Controls --- */
.epk-item-badge-home {
  background: rgba(46, 125, 50, 0.12);
  color: #2E7D32;
  border: 1px solid rgba(46, 125, 50, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .epk-item-badge-home {
  background: rgba(102, 187, 106, 0.15);
  color: #81C784;
}

.epk-item-badge-hidden {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- WYSIWYG Toolbar & Rich Text Editing --- */
.wysiwyg-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

.wysiwyg-btn {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.wysiwyg-btn:hover {
  background: var(--accent-2);
  color: #FFFFFF;
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.wysiwyg-btn.active {
  background: var(--accent-2);
  color: #FFFFFF;
}

.wysiwyg-preview {
  display: none;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -6px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
}

.wysiwyg-preview.show {
  display: block;
}

.wysiwyg-preview p {
  margin: 0 0 10px 0;
}

.wysiwyg-preview p:last-child {
  margin-bottom: 0;
}

.wysiwyg-textarea {
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

/* --- Ranking & Order Badges & Buttons --- */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  background: rgba(184, 134, 11, 0.15);
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
}

.reorder-btn {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.reorder-btn:hover:not(:disabled) {
  background: var(--accent-2);
  color: #FFFFFF;
  border-color: var(--accent-2);
  transform: scale(1.05);
}

.reorder-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
