/* ==========================================================================
   smoesj.es - CSS Design System & Visual Engine
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Default Colors (Gemini Dark Slate / Blue-Purple-Teal) */
  --bg-color: #080d16;
  --bg-stats: #0a1120;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #090d16;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --panel-bg: rgba(16, 22, 38, 0.6);
  --panel-bg-solid: #101626;
  --accent-gradient: linear-gradient(135deg, #24b4fb, #6563ff, #b563ff);
  --accent-color: #6563ff;
  --accent-color-glow: rgba(101, 99, 255, 0.15);
  
  /* Font Stacks */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(101, 99, 255, 0.35);
  
  /* Accent selection overrides */
  --accent-primary: #6563ff;
  --accent-secondary: #24b4fb;
  --accent-tertiary: #b563ff;
}

/* --- Theme overrides: Light Mode --- */
body.theme-light {
  --bg-color: #f2f5fa;
  --bg-stats: #eaeff8;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-inverse: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-bg-solid: #ffffff;
  --accent-gradient: linear-gradient(135deg, #0288d1, #4f46e5, #8b5cf6);
  --accent-color: #4f46e5;
  --accent-color-glow: rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.15);
}

/* --- Theme overrides: Weed Mode (Hidden Easter Egg) --- */
body.theme-weed {
  --bg-color: #03140b;
  --bg-stats: #051d11;
  --text-main: #ecfdf5;
  --text-muted: #a7f3d0;
  --text-inverse: #03140b;
  --border-color: rgba(16, 185, 129, 0.15);
  --border-hover: rgba(52, 211, 153, 0.3);
  --panel-bg: rgba(8, 32, 21, 0.7);
  --panel-bg-solid: #092116;
  --accent-gradient: linear-gradient(135deg, #10b981, #d97706, #fbbf24);
  --accent-color: #10b981;
  --accent-color-glow: rgba(16, 185, 129, 0.15);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);
  --accent-primary: #10b981;
  --accent-secondary: #fbbf24;
  --accent-tertiary: #34d399;
}

/* --- Accent Colors Overrides (Applied by custom palette picker) --- */
body.accent-blue {
  --accent-gradient: linear-gradient(135deg, #24b4fb, #6563ff, #b563ff);
  --accent-color: #6563ff;
  --accent-color-glow: rgba(101, 99, 255, 0.15);
  --shadow-glow: 0 0 20px rgba(101, 99, 255, 0.3);
}
body.accent-emerald {
  --accent-gradient: linear-gradient(135deg, #10b981, #059669, #34d399);
  --accent-color: #10b981;
  --accent-color-glow: rgba(16, 185, 129, 0.15);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
}
body.accent-sunset {
  --accent-gradient: linear-gradient(135deg, #ff5e62, #ff9966, #ffb347);
  --accent-color: #ff5e62;
  --accent-color-glow: rgba(255, 94, 98, 0.15);
  --shadow-glow: 0 0 20px rgba(255, 94, 98, 0.3);
}
body.accent-neon {
  --accent-gradient: linear-gradient(135deg, #00f2fe, #4facfe, #8a2387);
  --accent-color: #00f2fe;
  --accent-color-glow: rgba(0, 242, 254, 0.15);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.3);
}
body.accent-cotton {
  --accent-gradient: linear-gradient(135deg, #ff758c, #ff7eb3, #ffccd5);
  --accent-color: #ff758c;
  --accent-color-glow: rgba(255, 117, 140, 0.15);
  --shadow-glow: 0 0 20px rgba(255, 117, 140, 0.3);
}

/* --- CSS Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background-color var(--transition-slow), color var(--transition-normal);
}

/* --- Decorative Ambient Orbs --- */
.glow-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  transition: background var(--transition-slow);
}

body.theme-light .glow-orb {
  opacity: 0.08;
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 45vw;
  height: 45vw;
  background: var(--accent-gradient);
  animation: floatOrb1 25s infinite alternate ease-in-out;
}

.orb-2 {
  top: 30%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: linear-gradient(135deg, #c31432, #240b36);
  animation: floatOrb2 20s infinite alternate ease-in-out;
}

body.theme-weed .orb-2 {
  background: linear-gradient(135deg, #059669, #fbbf24);
}

.orb-3 {
  bottom: -10%;
  left: -5%;
  width: 35vw;
  height: 35vw;
  background: linear-gradient(135deg, #12c2e9, #c471ed, #f64f59);
  animation: floatOrb1 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 30px) scale(0.9); }
}

/* --- Simulated Top Stats Banner --- */
.top-bar-stats {
  background-color: var(--bg-stats);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  position: relative;
  z-index: 10;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--transition-normal), border var(--transition-normal);
}

.stats-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 8px var(--accent-color);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--accent-color); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* --- Layout Shell --- */
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

/* --- Custom Glassmorphic Panels --- */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at top right, var(--accent-color-glow), transparent 60%);
  z-index: 0;
}

/* --- Header Section --- */
.app-header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.header-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.gemini-sparkle {
  width: 32px;
  height: 32px;
  color: var(--accent-color);
  animation: spinSlow 8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gemini-sparkle svg {
  width: 100%;
  height: 100%;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-text span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.15rem;
}

.icon-btn:hover {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.theme-toggle-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.theme-toggle-btn span {
  position: absolute;
  transition: transform var(--transition-normal);
  font-size: 1.25rem;
}

body.theme-dark .sun-icon { transform: translateY(40px); }
body.theme-dark .moon-icon { transform: translateY(0); }

body.theme-light .sun-icon { transform: translateY(0); }
body.theme-light .moon-icon { transform: translateY(-40px); }

body.theme-weed .sun-icon { transform: translateY(40px); }
body.theme-weed .moon-icon { transform: translateY(0); }

/* --- Color Palette Selector Menu --- */
.color-picker-wrapper {
  position: relative;
}

.palette-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  background: var(--panel-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  min-width: 180px;
  animation: slideDownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.palette-dropdown.active {
  display: block;
}

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

.palette-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.palette-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: var(--text-main);
  transform: scale(1.1);
}

/* --- Hero Intro Section --- */
.hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(100deg, var(--text-main) 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Interactive Core Prompt Card --- */
.interactive-card {
  padding: 32px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .interactive-card { padding: 20px; }
}

/* --- Google Gemini-Style Prompt Text Bar --- */
.prompt-bar-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 10px 10px 10px 24px;
  gap: 16px;
  margin-bottom: 32px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

body.theme-light .prompt-bar-container {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.prompt-bar-container:focus-within {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow);
}

.prompt-icon {
  font-size: 1.4rem;
  opacity: 0.7;
}

.prompt-textarea {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: var(--font-body);
  resize: none;
  min-height: 28px;
  max-height: 160px;
  line-height: 1.5;
  padding: 4px 0;
  display: flex;
  align-items: center;
}

.prompt-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.generate-btn {
  background: var(--accent-gradient);
  border: none;
  color: var(--text-inverse);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(101, 99, 255, 0.25);
  flex-shrink: 0;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(101, 99, 255, 0.4);
}

.arrow-svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.generate-btn:hover .arrow-svg {
  transform: translateX(3px);
}

/* --- Mobile: stack the prompt bar so the textarea isn't squished --- */
@media (max-width: 768px) {
  .prompt-bar-container {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius-lg);
    gap: 14px;
  }
  .prompt-icon {
    display: none;
  }
  .prompt-textarea {
    width: 100%;
    font-size: 1rem;
  }
  .generate-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
}

/* --- Option Controls Grid --- */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-group.full-width {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .control-group.full-width {
    grid-column: span 1;
  }
}

.control-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Interactive Chips Row --- */
.chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.theme-light .chip {
  background: rgba(0, 0, 0, 0.02);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

body.theme-light .chip:hover {
  background: rgba(0, 0, 0, 0.04);
}

.chip.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--text-inverse);
  font-weight: 600;
  box-shadow: 0 4px 12px var(--accent-color-glow);
}

/* --- Custom Range Slider --- */
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.value-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  transition: all var(--transition-fast);
}

.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: background var(--transition-fast);
}

body.theme-light .custom-slider {
  background: rgba(0, 0, 0, 0.08);
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-color);
  transition: transform var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Loading Shimmer Typing Indicator --- */
.loading-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  animation: fadeIn 0.4s ease;
}

.gemini-shimmer-bubble {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.shimmer-sparkle {
  font-size: 1.5rem;
  color: var(--accent-color);
  animation: pulseSparkle 1.5s infinite;
}

@keyframes pulseSparkle {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.shimmer-lines {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.shimmer-line {
  height: 12px;
  background: linear-gradient(90deg, 
    var(--border-color) 25%, 
    rgba(255,255,255,0.06) 50%, 
    var(--border-color) 75%
  );
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmerAnim 1.8s infinite linear;
}

body.theme-light .shimmer-line {
  background: linear-gradient(90deg, 
    var(--border-color) 25%, 
    rgba(0,0,0,0.03) 50%, 
    var(--border-color) 75%
  );
  background-size: 200% 100%;
}

.line-1 { width: 90%; }
.line-2 { width: 75%; animation-delay: 0.3s; }
.line-3 { width: 50%; animation-delay: 0.6s; }

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

/* --- Results List & Alternate Bubble Cards --- */
.results-container {
  margin-bottom: 60px;
  animation: slideUp 0.5s ease;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

/* Keep the leaderboard's UGC cards in a single readable column. */
.leaderboard-list-wrap.results-grid,
.leaderboard-list-wrap {
  grid-template-columns: 1fr;
}

.result-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 4px solid var(--accent-color);
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.result-card:nth-child(2) {
  animation-delay: 0.15s;
}

.result-card:nth-child(3) {
  animation-delay: 0.3s;
}

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

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.option-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.risk-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

body.theme-light .risk-indicator {
  background: rgba(0, 0, 0, 0.05);
}

.risk-indicator.risk-low { color: #10b981; }
.risk-indicator.risk-medium { color: #f59e0b; }
.risk-indicator.risk-high { color: #ef4444; }

.result-text-container {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-color);
}

body.theme-light .result-text-container {
  background: rgba(255, 255, 255, 0.6);
}

.result-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

body.theme-light .action-btn {
  background: rgba(0, 0, 0, 0.02);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
}

body.theme-light .action-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.action-btn.copy-btn {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  border: none;
}

.action-btn.copy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* --- Backstory sidebar drawer & mobile slide-up --- */
.info-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 990;
  display: none;
  animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.info-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  z-index: 1000;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border-right: none;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.info-drawer.active {
  right: 0;
}

/* Drawer Mobile Slide-Up Adaptation */
@media (max-width: 768px) {
  .info-drawer {
    right: 0 !important;
    bottom: -100%;
    top: auto;
    width: 100vw;
    height: 80vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: bottom var(--transition-normal);
  }
  
  .info-drawer.active {
    bottom: 0;
  }
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.close-drawer-btn:hover {
  color: var(--text-main);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tab Switching inside Drawer */
.drawer-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
}

.drawer-tab-btn {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-tab-btn.active {
  background: var(--bg-color);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.drawer-tab-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn var(--transition-fast);
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-sub-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* --- Backstory Consistency Elements --- */
.risk-score-wrapper {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.risk-num-badge {
  font-family: var(--font-mono);
  color: var(--accent-color);
}

.risk-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-gradient);
  transition: width 0.5s ease;
}

.risk-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.backstory-quote {
  background: var(--accent-color-glow);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px;
  font-size: 0.98rem;
  line-height: 1.5;
  font-style: italic;
}

.qna-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qna-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.qna-item:last-child {
  border-bottom: none;
}

.qna-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  gap: 6px;
}

.qna-answer {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 20px;
}

/* --- Smoesjesadvocaat Coach Style --- */
.coach-avatar-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coach-avatar {
  font-size: 2.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-info {
  display: flex;
  flex-direction: column;
}

.coach-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.coach-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.coach-tip-bubble {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.coach-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coach-rules li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- Minimalist Ads Sidebar & stats widget --- */
.sidebar-ads-panel {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .sidebar-ads-panel {
    flex-direction: column;
  }
}

.sidebar-ads-panel > div {
  flex: 1;
  padding: 24px;
}

.ad-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ad-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ad-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.ad-btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-inverse);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}

.ad-btn:hover {
  opacity: 0.9;
}

.badge-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- SEO Landing Pages Replacements --- */
.seo-back-container {
  margin-bottom: 24px;
}

.back-link {
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-color);
  transition: transform var(--transition-fast);
  display: inline-block;
}

.back-link:hover {
  transform: translateX(-4px);
}

.seo-article-card {
  padding: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .seo-article-card {
    padding: 24px;
  }
}

.seo-title-header {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.seo-body-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.seo-body-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 18px;
}

.seo-body-content ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-sub-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* FAQ Collapsible Items */
.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  background: rgba(255,255,255,0.02);
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

body.theme-light .faq-question {
  background: rgba(0,0,0,0.01);
}

.faq-answer {
  padding: 0 24px;
  height: 0;
  overflow: hidden;
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
  padding: 18px 24px;
  height: auto;
  border-top: 1px solid var(--border-color);
}

.faq-arrow {
  transition: transform var(--transition-normal);
  font-size: 0.8rem;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* --- Global Footer Section --- */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .app-footer {
    flex-direction: column;
    text-align: center;
  }
}

.footer-seo-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-seo-links {
    justify-content: center;
  }
}

.footer-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Floating Dice Excuse Roulette FAB --- */
.roulette-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 8px 30px rgba(101, 99, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  transition: all var(--transition-fast);
}

.roulette-fab:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 10px 35px rgba(101, 99, 255, 0.5);
}

.roulette-dice {
  font-size: 2rem;
  color: var(--text-inverse);
  animation: floatDie 4s infinite ease-in-out;
}

@keyframes floatDie {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* --- Toast Clipboard Banner Notification --- */
.toast-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-bg-solid);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast-notification.active {
  bottom: 40px;
  opacity: 1;
}

.toast-icon {
  background: #10b981;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.toast-message {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* --- Keyframe Utility Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- Custom Scrollbar styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* --- Cannabis Leaf Decorative Overlays (Weed theme animations) --- */
.leaf-particle {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  z-index: 1;
  opacity: 0.3;
  animation: fallParticle 10s linear infinite;
}

@keyframes fallParticle {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ==========================================================================
   Google Login, Premium, Leaderboard & Contact Enhancements
   ========================================================================== */

/* --- User profile and Premium Crown badge --- */
.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 4px 14px 4px 6px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.user-profile-menu:hover {
  border-color: var(--accent-color);
}

.user-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-inverse);
  font-size: 0.95rem;
  position: relative;
}

.crown-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.9rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: pulseCrown 2.5s infinite ease-in-out;
}

@keyframes pulseCrown {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1); }
}

.user-profile-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Auth Modal Pop-up --- */
.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel-bg-solid);
  z-index: 1005;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

@media (max-width: 768px) {
  .modal-container {
    padding: 28px 22px;
    width: calc(100% - 28px);
    max-height: 88vh;
  }
  .auth-modal-logo {
    width: 64px;
    height: 64px;
    font-size: 2.4rem;
    margin-bottom: 12px;
  }
  .modal-subtitle {
    margin-bottom: 20px;
  }
}

.modal-container.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-modal-logo {
  font-size: 3rem;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.05);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* --- Google Sign-in Button --- */
.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #dadce0;
  border-radius: var(--radius-xl);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.google-signin-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* --- Auth loading spinner --- */
.auth-spinner-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spinLoader 0.8s linear infinite;
}

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

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

/* --- Premium Settings & Dashboard Panel --- */
.premium-locked-panel {
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-icon-wrap {
  font-size: 3.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.premium-view-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.premium-view-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.premium-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  text-align: left;
  margin-bottom: 40px;
}

.p-feature {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
}

.p-icon {
  font-size: 1.5rem;
}

.p-feat-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.p-feat-text strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

/* --- Unlocked Premium View --- */
.premium-unlocked-header {
  padding: 32px;
  margin-bottom: 32px;
}

.user-welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
}

.welcome-subtext {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.premium-badge-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #d97706);
  color: #03140b;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.premium-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

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

.premium-settings-card, .premium-logs-card {
  padding: 32px;
}

.panel-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.integration-toggles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.integration-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.integration-toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.int-info {
  display: flex;
  gap: 14px;
  align-items: center;
}

.int-icon-label {
  font-size: 1.8rem;
  background: rgba(255,255,255,0.03);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.int-text-wrap {
  display: flex;
  flex-direction: column;
}

.int-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.int-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Switch Toggle Switcher Slider CSS --- */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  border: 1px solid var(--border-color);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-main);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background: var(--accent-gradient);
  border-color: transparent;
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(24px);
  background-color: var(--text-inverse);
}

.focus-hours-wrapper {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
}

.focus-time-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 12px;
}

/* --- Declines Log list --- */
.decline-logs-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
}

.decline-log-item {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  border-left: 3px solid #ef4444;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.log-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.log-time {
  font-family: var(--font-mono);
}

.log-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.log-reason {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Community Leaderboard UGC Views --- */
.community-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .community-grid-layout {
    grid-template-columns: 1fr;
  }
}

.leaderboard-cards-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leaderboard-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.leaderboard-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ugc-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
}

.ugc-votes-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  min-width: 50px;
}

.vote-arrow-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 2px;
  user-select: none;
}

.vote-arrow-btn:hover {
  transform: translateY(-2px);
  color: var(--accent-color);
}

.vote-arrow-btn.voted {
  color: var(--accent-color);
  transform: scale(1.1);
}

.vote-count-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 4px 0;
  color: var(--text-main);
}

.ugc-content-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.ugc-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.ugc-card-cat {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.ugc-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

.ugc-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

.ugc-author-tag {
  font-weight: 600;
}

.ugc-copy-btn {
  background: transparent;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-weight: 700;
}

.ugc-copy-btn:hover {
  text-decoration: underline;
}

/* --- Submit and Suggestion Forms Inputs CSS --- */
.submission-form-card {
  padding: 32px;
  align-self: flex-start;
}

.ugc-submit-form, .feedback-form-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-input-text {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

body.theme-light .form-input-text {
  background: rgba(255,255,255,0.8);
}

.form-input-text:focus {
  border-color: var(--accent-color);
}

.form-select {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

body.theme-light .form-select {
  background: rgba(255,255,255,0.8);
}

.form-select:focus {
  border-color: var(--accent-color);
}

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

.form-textarea {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

body.theme-light .form-textarea {
  background: rgba(255,255,255,0.8);
}

.form-textarea:focus {
  border-color: var(--accent-color);
}

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

/* --- Contact & Feedback Page Forms --- */
.contact-form-container {
  padding: 48px;
  margin-bottom: 60px;
  max-width: 680px;
  margin: 0 auto 60px auto;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 24px;
  }
}

.contact-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  animation: scaleUpFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUpFade {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.paper-plane-anim {
  font-size: 2.5rem;
}

.paper-plane-fly {
  animation: planeOut 0.8s ease-in-out forwards;
}

@keyframes planeOut {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  40% { transform: translate(30px, -20px) scale(0.9) rotate(-15deg); opacity: 0.6; }
  100% { transform: translate(250px, -150px) scale(0.4) rotate(-35deg); opacity: 0; }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
}

/* --- Backlink premium branding --- */
.footer-backlink {
  flex-shrink: 0;
}

.footer-link-premium {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity var(--transition-fast);
}

.footer-link-premium:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Multi-provider Login, Profile Dropdown & Cookie Consent
   ========================================================================== */

/* --- Social sign-in buttons (Google / Microsoft / Apple) --- */
.auth-options-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-signin-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.social-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #dadce0;
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.social-signin-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.provider-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Apple icon should read on the white button */
#apple-signin-btn .provider-icon {
  color: #000000;
}

/* --- "of met e-mail" divider --- */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  gap: 12px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* --- E-mail login form inside modal --- */
.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.auth-email-form .control-label {
  font-size: 0.85rem;
}

.auth-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
  margin-top: 4px;
}

/* --- Premium activate button + hint --- */
.premium-activate-btn {
  font-size: 1.05rem;
  padding: 14px 32px;
}

.premium-login-options-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Profile dropdown (replaces native confirm on logout) --- */
.user-profile-menu .profile-caret {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--panel-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 6px;
}

.profile-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .profile-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* --- Cookie / local storage consent banner --- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(160%);
  width: calc(100% - 48px);
  max-width: 880px;
  background: var(--panel-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  z-index: 1500;
  padding: 20px 24px;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.cookie-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

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

.cookie-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.cookie-btn-secondary:hover {
  border-color: var(--accent-color);
}

.cookie-btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: var(--text-inverse);
  box-shadow: 0 4px 12px var(--accent-color-glow);
}

.cookie-btn-primary:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 24px);
    padding: 18px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* Keep the floating roulette button out of the way while the cookie banner is up. */
body.cookie-banner-open .roulette-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6) translateY(20px);
}

/* --- Small-screen header breathing room --- */
@media (max-width: 420px) {
  .app-shell {
    padding: 0 16px;
  }
  .header-controls {
    gap: 10px;
  }
  .icon-btn,
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
  .logo-text {
    font-size: 1.55rem;
  }
  .auth-control-wrapper .action-btn {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
}

