/* Reset & Base Styles */
:root {
  --bg-dark: #0a0a0c;
  --bg-panel: rgba(20, 20, 25, 0.7);
  --primary-accent: #00f3ff; /* Neon Cyan */
  --secondary-accent: #ffd700; /* Gold */
  --text-main: #e0e0e0;
  --text-muted: #888;
  --border-glow: rgba(0, 243, 255, 0.3);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  text-shadow: 0 0 8px var(--primary-accent);
}

/* Utilities */
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(0, 243, 255, 0.1);
  border-left: 3px solid var(--primary-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  animation: slideIn 0.3s ease-out;
  backdrop-filter: blur(5px);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.history-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-mono);
}

.history-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.history-tab.active {
  background: var(--primary-accent);
  color: #000;
  border-color: var(--primary-accent);
  font-weight: 700;
}

/* Dashboard Mode */
.dashboard-mode .hero-section,
.dashboard-mode .newsletter-examples,
.dashboard-mode .testimonials,
.dashboard-mode .pricing-section,
.dashboard-mode .faq-section {
  display: none !important;
}

.dashboard-mode .panel-header {
  display: none !important;
}

.dashboard-mode .command-center {
  padding-top: 100px;
}

.dashboard-header {
  display: none;
  text-align: left;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.dashboard-mode .dashboard-header {
  display: block;
}

.dashboard-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 5px;
}

.dashboard-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.dashboard-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.stat-item {
  background: rgba(255,255,255,0.05);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.stat-item span {
  color: var(--primary-accent);
  font-weight: bold;
}

.dashboard-mode .landing-only {
  display: none !important;
}

.dashboard-mode .dashboard-only {
  display: inline-block !important;
}

.dashboard-mode .step-num {
  display: none;
}

.dashboard-mode h3 .icon {
  display: none;
}

.dashboard-mode .prompt-panel h3,
.dashboard-mode .user-panel h3 {
  font-size: 1.1rem;
  color: #fff;
  border-left: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.dashboard-mode .prompt-panel h3::before,
.dashboard-mode .user-panel h3::before {
  content: '';
}

.dashboard-quick-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.dashboard-quick-actions button {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.dashboard-quick-actions button:hover {
  background: var(--primary-accent);
  color: #000;
  box-shadow: 0 0 15px var(--primary-accent);
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 20px;
  }
  .dashboard-header h1 {
    font-size: 1.8rem;
  }
  .dashboard-stats {
    flex-direction: column;
    gap: 10px;
  }
  .dashboard-quick-actions {
    flex-direction: column;
  }
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.briefing-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s;
}

.briefing-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
}

.briefing-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary-accent);
}

.briefing-card h4 {
  font-size: 1rem;
  color: #fff;
}

.briefing-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.settings-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 25px 0;
}

.dashboard-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  padding: 20px;
}

.info-card h3 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 10px;
  border-left: none;
  padding-left: 0;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .dashboard-info-row {
    grid-template-columns: 1fr;
  }
}

.header-buttons {
  display: flex;
  gap: 10px;
}

#aiInstructionPrompt {
  min-height: 200px;
}

.settings-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--primary-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.full-width {
  width: 100%;
}

.settings-group select,
.settings-group textarea,
.settings-group input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.settings-group select:focus,
.settings-group textarea:focus,
.settings-group input:focus {
  border-color: var(--primary-accent);
  outline: none;
}

/* Day Picker Styles */
.day-picker-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-days-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
}

.day-tag {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-tag .remove-day {
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.day-tag .remove-day:hover {
  opacity: 1;
}

.day-picker-dropdown {
  width: 100%;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #fff;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Header */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--primary-accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Hide links on mobile for simplicity, or add hamburger later */
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--secondary-accent);
  text-shadow: 0 0 10px var(--secondary-accent);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Hero Section */
.hero-section {
  padding-top: 120px;
  padding-bottom: 40px;
  text-align: center;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.glitch-text {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 10px;
  position: relative;
}

#subtitleContainer {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--primary-accent);
  font-size: 1.1rem;
}

.cursor {
  animation: blink 1s infinite;
  margin-left: 5px;
  color: var(--primary-accent);
}

@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  color: var(--text-muted);
  margin-top: 15px;
  font-size: 1rem;
}

/* Command Center (Main Form) */
.command-center {
  margin-top: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.panel-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.status-indicator {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #0f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #0f0;
  border-radius: 50%;
  box-shadow: 0 0 5px #0f0;
}

.auth-only {
  display: none !important;
}

body.logged-in .auth-only {
  display: flex !important;
}

.user-panel.auth-only {
  display: none !important;
}

body.logged-in .user-panel.auth-only {
  display: flex !important;
}

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

.grid-layout.unauthenticated {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .grid-layout { grid-template-columns: 1fr; }
  .glitch-text { font-size: 2.5rem; }
}

.prompt-panel, .user-panel {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

#previewView, #settingsView, #scheduleView {
  display: flex;
  flex-direction: column;
  flex: 1;
}

h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 15px;
  border-left: 3px solid var(--primary-accent);
  padding-left: 10px;
}

/* Inputs */
input, select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-family: var(--font-main);
  transition: all 0.3s;
  margin-bottom: 10px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

/* Prompt Input */
.prompt-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0 10px;
  margin-bottom: 20px;
}

.prompt-prefix {
  color: var(--primary-accent);
  font-family: var(--font-mono);
  font-weight: bold;
  margin-right: 10px;
}

.prompt-input-wrapper input {
  border: none;
  background: transparent;
  margin-bottom: 0;
  padding: 12px 0;
}

.btn-icon {
  background: var(--primary-accent);
  border: none;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

/* Lists */
.scroll-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.editable-list li {
  background: rgba(255,255,255,0.05);
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 2px solid var(--secondary-accent);
}

.editable-list li button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.suggested-list li {
  display: inline-block;
  margin: 5px;
}

.suggested-list label {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.suggested-list label:hover {
  background: rgba(255,255,255,0.1);
}

.suggested-list input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* User Fields */
.input-row {
  display: flex;
  gap: 10px;
}

.field-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -5px;
  margin-bottom: 15px;
  font-style: italic;
}

/* Buttons */
.btn-primary {
  background: var(--primary-accent);
  color: #000;
  border: none;
  padding: 14px;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-mono);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--primary-accent);
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.text-link {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
  width: 100%;
}

/* Examples */
.examples-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.example-card {
  width: 150px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.example-card:hover {
  transform: translateY(-5px);
}

.img-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 10px;
}

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

.example-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Style Options */
.style-options {
  margin-bottom: 20px;
}

.style-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.style-row label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.style-row select {
  width: 65%;
  margin-bottom: 0;
  padding: 8px;
}

#aiInstructions {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-family: var(--font-main);
  resize: vertical;
  font-size: 0.9rem;
}

/* Newsletter Preview */
.newsletter-preview {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 40px 50px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  height: 350px;
  overflow-y: auto;
  background: #fff;
  color: #1a1a1a;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.newsletter-preview img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.newsletter-preview.dark-preview {
  background: #111;
  color: #eee;
}

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

.preview-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-controls-grid .setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-controls-grid label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.preview-controls-grid select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.preview-controls-grid select:hover {
  border-color: var(--primary-accent);
  background-color: rgba(0, 0, 0, 0.3);
}

.preview-controls-grid select:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.dark-preview {
  background: #111;
  color: #eee;
  border-color: #333;
}

.light-preview {
  background: #f4f6f8;
  color: #333;
  border-color: #ccc;
}

.yellow-preview {
  background: #000;
  color: #ffd700;
  border: 1px solid #ffd700;
}

.preview-header {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.preview-line {
  height: 2px;
  background: currentColor;
  margin-bottom: 10px;
  opacity: 0.5;
}

.preview-text {
  font-size: 0.8rem;
  margin-bottom: 5px;
  opacity: 0.9;
}

/* Animations */
@keyframes scrollLeft {
  0% { 
    transform: translateX(0); 
    -webkit-transform: translateX(0);
  }
  100% { 
    transform: translateX(-50%); 
    -webkit-transform: translateX(-50%);
  }
}

/* Section Header Row */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-suggestions-popover {
  position: relative;
}

.btn-mini-text {
  background: transparent;
  border: none;
  color: var(--primary-accent);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
  padding: 0;
}

.btn-mini-text:hover {
  opacity: 1;
  text-decoration: underline;
}

.popover-content {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  padding: 12px;
  margin-top: 8px;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-height: 300px;
  overflow-y: auto;
}

.popover-content h5 {
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--secondary-accent);
}

.popover-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popover-content li {
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: color 0.2s;
}

.popover-content li:hover {
  color: var(--primary-accent);
}

.popover-content li:last-child {
  border-bottom: none;
}

/* .prompt-suggestions-popover:hover .popover-content {
  display: block;
} */

.btn-mini-icon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.btn-mini-icon:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

#instructionPrompt {
  width: 100%;
  min-height: 100px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-family: var(--font-main);
  margin-bottom: 20px;
  resize: vertical;
}

#instructionPrompt:focus {
  outline: none;
  border-color: var(--primary-accent);
}

.modal-form input, .modal-form textarea {
  margin-bottom: 15px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-family: var(--font-main);
  margin-bottom: 15px;
  resize: vertical;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
}

.modal-form label {
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Scrollbar for Privacy Policy */
#popupPolicyContent div::-webkit-scrollbar {
  width: 4px;
}
#popupPolicyContent div::-webkit-scrollbar-thumb {
  background: var(--primary-accent);
  border-radius: 10px;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 20px;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border: 1px solid var(--primary-accent);
  background: rgba(0, 243, 255, 0.05);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.tier-badge.popular {
  background: var(--primary-accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
}

.pricing-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.features {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: 30px;
}

.features li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  gap: 10px;
}

.features li span {
  color: var(--primary-accent);
  font-weight: bold;
}

/* Feedback Modal Enhancements */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.star-label {
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.star-label:hover {
  transform: scale(1.2);
}

.star-label input {
  display: none;
}

.star-label span {
  color: var(--text-muted);
}

.star-label input:checked + span {
  color: var(--secondary-accent);
  text-shadow: 0 0 10px var(--secondary-accent);
}

/* Blog Preview Section */
.blog-preview-section {
  padding: 80px 20px;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.blog-preview-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s;
}

.blog-preview-card:hover {
  transform: translateY(-5px);
}

.blog-preview-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary-accent);
  letter-spacing: 1px;
}

.blog-preview-card h4 {
  font-size: 1.2rem;
  color: #fff;
}

.blog-preview-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.header-buttons {
  display: flex;
  gap: 8px;
}

.panel-title-row h3 {
  margin-bottom: 0 !important;
}

.btn-text-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-text-icon:hover {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--primary-accent);
  color: #fff;
}

/* Theme Modal Wide */
.theme-modal-wide {
  max-width: 800px !important;
  width: 95% !important;
  padding: 0 !important;
  overflow: hidden;
}

.theme-split-layout {
  display: flex;
  min-height: 400px;
}

.theme-settings {
  flex: 1;
  padding: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.theme-preview-side {
  flex: 1.2;
  padding: 40px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.setting-group {
  margin-bottom: 20px;
}

.setting-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.setting-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-family: inherit;
}

@media (max-width: 768px) {
  .theme-split-layout {
    flex-direction: column;
  }
  .theme-settings {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Newsletter Preview Themes */
.preview-container {
  margin-top: 30px;
  margin-bottom: 30px;
}

.preview-container h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-preview {
  padding: 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  min-height: 150px;
  transition: all 0.3s ease;
}

.preview-header {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.preview-line {
  height: 2px;
  width: 40px;
  margin-bottom: 15px;
}

.preview-text {
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Theme Variants */
.dark-preview {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.dark-preview .preview-line { background: var(--primary-accent); }

.light-preview {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}
.light-preview .preview-line { background: #333; }

.yellow-preview {
  background: #f7df1e;
  color: #000;
  border: 2px solid #000;
}
.yellow-preview .preview-line { background: #000; }

.minimal-preview {
  background: #fff;
  color: #000;
  border: 1px solid #eee;
}
.minimal-preview .preview-line { background: #ccc; }

/* Simulate Button - Force Orange/Gold */
#simulateLoginBtn {
  border: 1px solid var(--secondary-accent) !important;
  color: var(--secondary-accent) !important;
  margin-right: 10px;
  font-weight: bold;
}

#simulateLoginBtn:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Grid Layout Fix */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

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

.welcome-user {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-accent);
  margin-left: -5px; /* Move slightly left towards simulate button */
  white-space: nowrap;
}

.prompt-panel, .user-panel {
  min-width: 0; /* Prevent flex/grid items from stretching beyond container */
  display: flex;
  flex-direction: column;
}

.user-panel > button#subscribe-btn {
  margin-top: auto; /* Push button to bottom if content is short */
}

/* Testimonials Fix */
.testimonial-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollLeft 60s linear infinite;
}

.testimonial-card {
  width: 350px;
  flex-shrink: 0;
  padding: 30px;
  border-left: 4px solid var(--secondary-accent);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-meta strong {
  font-size: 0.95rem;
  color: #fff;
}

.stars {
  color: var(--secondary-accent);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.testimonial-track:hover {
  animation-play-state: paused;
}

/* Trending Chips Animation */
.suggested-prompts {
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
  display: inline-flex;
  gap: 10px;
  white-space: nowrap;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.suggested-list li {
  display: inline-block;
}

/* Yearly Discount */
.yearly-discount {
  margin-top: -15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--secondary-accent);
}

.yearly-discount input {
  width: auto;
  margin-right: 8px;
}

/* Login Panel Refined */
.login-panel-refined {
  max-width: 400px !important;
  padding: 0 !important;
  overflow: hidden;
}

.login-branding {
  background: linear-gradient(135deg, #111, #000);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary-accent);
  margin-bottom: 15px;
  background: white;
  object-fit: contain;
}

.branding-text {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.branding-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-accent);
  opacity: 0.8;
}

.login-form {
  padding: 30px;
}

.login-form h3 {
  margin-bottom: 25px;
  text-align: center;
  border-left: none;
  padding-left: 0;
  font-size: 1.1rem;
  color: #fff;
}

.login-form .input-group {
  margin-bottom: 20px;
}

.login-form .field-label {
  margin-bottom: 6px;
  font-size: 0.7rem;
}

.login-form input {
  margin-bottom: 0;
}

.login-form .modal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Delivery Config Row */
.delivery-config-row {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.delivery-config-row .config-item {
  flex: 1;
}

.delivery-config-row select {
  margin-bottom: 0;
  font-size: 0.85rem;
  padding: 10px;
}

.yearly-config {
  display: flex;
  flex-direction: column;
}

.yearly-toggle-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.yearly-toggle-wrapper input {
  width: auto;
  margin: 0;
}

.yearly-toggle-wrapper label {
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .delivery-config-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* Popups & Modals */
.popup-overlay, .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 20px;
}

.popup {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#popupPolicyContent {
  max-width: 700px;
  width: 100%;
  padding: 50px;
  display: block;
  text-align: left;
}

#popupPolicyContent h3 {
  font-size: 1.4rem;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-accent);
  padding-left: 20px;
  color: #fff;
}

.policy-text-container {
  padding-right: 25px;
  margin-right: -10px;
}

.popup img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s;
  z-index: 10;
}

.close:hover {
  color: #fff;
}

.popup-overlay.hidden {
  display: none !important;
}

/* Fix for footer image */

img[src=""] {
  display: none;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 15px;
}

.faq-item {
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  padding: 15px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.faq-toggle .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-content {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 40px; /* Increased spacing */
}

.footer-link {
  color: var(--primary-accent);
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.footer-link:hover {
  opacity: 1;
  text-shadow: 0 0 8px var(--primary-accent);
}

/* Newsletter Preview Modal */
.preview-modal-content {
  max-width: 800px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.preview-toolbar {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-switcher {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
}

.theme-tab {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  font-weight: 500;
}

.theme-tab.active {
  background: var(--primary-accent);
  color: #000;
  font-weight: bold;
}

.newsletter-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  background: #fdfdfd; /* Default light for minimal */
}

.preview-footer {
  padding: 15px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- THEME: MINIMALIST (Beehiiv Style) --- */
.theme-minimal {
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  padding: 0 !important;
}

.theme-minimal .nl-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.02);
}

.theme-minimal .nl-pre-header {
  text-align: center;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
}

.theme-minimal .nl-header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 10px;
}

.theme-minimal .nl-banner {
  width: 100%;
  border-radius: 0;
  margin-bottom: 30px;
  border: 1px solid #e5e7eb;
  display: block;
}

.theme-minimal .nl-author-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.theme-minimal .nl-author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.theme-minimal .nl-author-info {
  font-size: 0.8rem;
  text-align: left;
}

.theme-minimal .nl-author-name {
  font-weight: 700;
  display: block;
  color: #111827;
}

.theme-minimal .nl-author-date {
  color: #6b7280;
}

.theme-minimal .nl-social-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.theme-minimal .nl-social-icon {
  width: 32px;
  height: 32px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s;
}

.theme-minimal .nl-social-icon:hover {
  transform: translateY(-2px);
}

.theme-minimal .nl-section-title {
  background: transparent;
  color: #6b7280;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 50px 0 25px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 0;
}

.theme-minimal .nl-section-title::before, 
.theme-minimal .nl-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.theme-minimal .nl-topic {
  margin-bottom: 35px;
  border: 2px solid #111827;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}

.theme-minimal .nl-topic-header {
  background: #111827;
  color: #fff;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.theme-minimal .nl-topic-content {
  padding: 24px;
  position: relative;
}

.theme-minimal .nl-topic-img {
  width: 100%;
  border-radius: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #111827;
  display: block;
}

.theme-minimal .nl-topic h2 {
  font-size: 1.85rem;
  margin-bottom: 18px;
  color: #111827;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.theme-minimal .nl-topic p {
  line-height: 1.65;
  color: #374151;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.theme-minimal .nl-topic ul {
  padding-left: 22px;
  margin-bottom: 20px;
  list-style-type: none;
}

.theme-minimal .nl-topic li {
  margin-bottom: 12px;
  color: #374151;
  line-height: 1.5;
  position: relative;
  padding-left: 5px;
}

.theme-minimal .nl-topic li::before {
  content: "•";
  color: #111827;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.theme-minimal .nl-cta-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 14px 32px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s;
  width: auto;
  max-width: none;
  margin: 0;
}

.theme-minimal .nl-cta-btn:hover {
  background: #333;
  opacity: 1;
}

.theme-minimal .nl-ad-spot {
  background: #fafafa;
  border: 2px solid #e5e7eb;
  padding: 25px;
  text-align: center;
  margin-bottom: 35px;
  position: relative;
  border-radius: 16px;
}

.theme-minimal .nl-ad-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  letter-spacing: 1.5px;
}

.theme-minimal .nl-ad-link {
  display: inline-block;
  color: #111827;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  border-bottom: 2px solid #111827;
  padding-bottom: 2px;
  margin-top: 10px;
}

.theme-minimal .nl-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
  gap: 15px;
}

.theme-minimal .nl-separator::before, 
.theme-minimal .nl-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.theme-minimal .nl-separator-img {
  width: 40px;
  height: 40px;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.theme-minimal .nl-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

.theme-minimal .nl-mini-card {
  border: 2px solid #e5e7eb;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
}

.theme-minimal .nl-mini-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.theme-minimal .nl-mini-card p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

.theme-minimal .nl-footer {
  background: #ffffff;
  color: #111827;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 0;
}

.theme-minimal .nl-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 40px;
  flex-direction: row;
}

.theme-minimal .nl-footer-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0;
  border: none;
  border-radius: 0;
}

.theme-minimal .nl-footer-link:hover {
  color: #111827;
}

/* Paywall Styles */
.theme-minimal .nl-paywall-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 40%, rgba(255,255,255,1) 100%);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  z-index: 10;
  text-align: center;
}

.theme-minimal .nl-paywall-btn {
  background: #ff40b4;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 64, 180, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-minimal .nl-paywall-text {
  margin-bottom: 15px;
  font-weight: 700;
  color: #111827;
  font-size: 1.1rem;
}

/* --- THEME: MASCULINE (Bold & Professional) --- */
.theme-masculine .nl-inner {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  padding: 40px;
  border-radius: 8px;
}

.theme-masculine .nl-header h1 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 4px solid #3b82f6;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.theme-masculine .nl-topic {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  margin: 25px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.theme-masculine .nl-topic-header {
  background: #0f172a;
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid #334155;
  padding: 10px 20px;
  font-size: 0.75rem;
}

.theme-masculine .nl-topic-content {
  padding: 25px;
}

.theme-masculine .nl-topic h2 { color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.theme-masculine .nl-topic p { color: #cbd5e1; font-size: 1.05rem; }
.theme-masculine .nl-topic li { color: #cbd5e1; }
.theme-masculine .nl-topic li::before { color: #3b82f6; }

.theme-masculine .nl-cta-btn {
  background: #3b82f6;
  color: #fff;
  border-radius: 4px;
  padding: 12px 24px;
}

.theme-masculine .nl-separator::before,
.theme-masculine .nl-separator::after { background: #334155; }

/* --- THEME: FEMININE (Soft & Bubbly) --- */
.theme-feminine .nl-inner {
  font-family: 'Playfair Display', serif;
  background: #fff0f5;
  color: #4a4a4a;
  padding: 40px;
  border-radius: 16px;
}

.theme-feminine .nl-header h1 {
  color: #be185d;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.theme-feminine .nl-topic {
  background: #fff;
  border: none;
  border-radius: 20px;
  margin: 30px 0;
  box-shadow: 0 10px 25px -5px rgba(219, 39, 119, 0.15);
  overflow: hidden;
}

.theme-feminine .nl-topic-header {
  background: #fce7f3;
  color: #be185d;
  text-align: center;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 12px;
  font-size: 0.7rem;
}

.theme-feminine .nl-topic-content {
  padding: 30px;
}

.theme-feminine .nl-topic h2 { color: #831843; font-weight: 700; }
.theme-feminine .nl-topic p { color: #525252; line-height: 1.8; }

.theme-feminine .nl-cta-btn {
  background: #f472b6;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(244, 114, 182, 0.4);
}

.theme-feminine .nl-separator-img {
  animation: float-feminine 4s ease-in-out infinite;
}

@keyframes float-feminine {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.1) rotate(3deg); }
}

/* --- THEME: ACADEMIC (Classic & Structured) --- */
.theme-academic .nl-inner {
  font-family: 'Georgia', serif;
  background: #fdfbf7;
  color: #292524;
  padding: 40px;
  border-radius: 4px;
  border: 1px solid #e7e5e4;
}

.theme-academic .nl-header h1 {
  font-family: 'Times New Roman', serif;
  text-align: center;
  border-bottom: 1px double #78350f;
  border-top: 1px double #78350f;
  padding: 15px 0;
  color: #451a03;
  letter-spacing: 1px;
}

.theme-academic .nl-topic {
  background: transparent;
  border-bottom: 1px solid #e7e5e4;
  border-radius: 0;
  margin: 30px 0;
  padding-bottom: 30px;
  box-shadow: none;
}

.theme-academic .nl-topic-header {
  background: transparent;
  color: #78350f;
  font-style: italic;
  font-weight: 600;
  padding: 0 0 10px 0;
  text-align: left;
  font-size: 0.8rem;
  border-bottom: none;
}

.theme-academic .nl-topic-content {
  padding: 10px 0;
}

.theme-academic .nl-topic h2 { color: #451a03; font-size: 1.3rem; }
.theme-academic .nl-topic p { color: #292524; font-size: 1.05rem; line-height: 1.7; text-align: justify; }

.theme-academic .nl-cta-btn {
  background: #166534;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-academic .nl-separator::before,
.theme-academic .nl-separator::after { background: #d1d5db; }
.theme-boxed {
  background: #0a0a0c;
  color: #e0e0e0;
  padding: 20px;
}

.theme-boxed .nl-header {
  text-align: center;
  margin-bottom: 30px;
}

.theme-boxed .nl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.theme-boxed .nl-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.theme-boxed .nl-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
}

.theme-boxed .nl-card h3 {
  color: var(--primary-accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-boxed .nl-card .content-blur {
  filter: blur(8px);
  user-select: none;
  opacity: 0.5;
}

.theme-boxed .nl-card .paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.theme-boxed .nl-card .btn-pay {
  background: var(--primary-accent);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 10px;
}

.theme-boxed .nl-card .btn-pay:hover {
  background: #fff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  padding: 30px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content h3 {
  border: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0c;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

