﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;600&display=swap');

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

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border-color: #e5e5e5;
  --accent-primary: #0070f3;
  --accent-hover: #0060df;
  --success: #0070f3;
  --error: #e00;
  --style-panel: var(--bg-primary);
  --style-bg-1: var(--bg-primary);
  --style-bg-2: var(--bg-secondary);
  --style-star-color: rgba(0, 0, 0, 0.15);
  --style-star-glow: rgba(0, 0, 0, 0.05);
  --style-accent: var(--accent-primary);
  --style-accent-strong: var(--accent-hover);
  --style-aurora-strength: 1;
  --style-grid-opacity: 0.45;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 26px 60px rgba(0, 0, 0, 0.14);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;
  --border-color: #333333;
  --accent-primary: #0070f3;
  --accent-hover: #3291ff;
  --success: #0070f3;
  --error: #ff4444;
  --shadow-sm: 0 1px 3px rgba(255, 255, 255, 0.03);
  --shadow-md: 0 4px 6px rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 10px 20px rgba(255, 255, 255, 0.07);
  --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.6);
}

[data-style="nova"] {
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SF Mono", Monaco, Consolas, "Courier New", monospace;
  --bg-primary: #f8fafc;
  --bg-secondary: #eef2f7;
  --bg-tertiary: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.35);
  --accent-primary: #0ea5e9;
  --accent-hover: #0284c7;
  --success: #0ea5e9;
  --error: #ef4444;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 20px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.16);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --style-bg-1: #f8fafc;
  --style-bg-2: #eef2f7;
  --style-panel: rgba(255, 255, 255, 0.75);
  --style-star-color: rgba(15, 23, 42, 0.22);
  --style-star-glow: rgba(15, 23, 42, 0.08);
  --style-accent: #0ea5e9;
  --style-accent-strong: #0284c7;
}

[data-style="nova"][data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #0b1220;
  --bg-tertiary: #111827;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-tertiary: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.2);
  --accent-primary: #38bdf8;
  --accent-hover: #0ea5e9;
  --success: #38bdf8;
  --error: #f87171;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.45);
  --shadow-md: 0 12px 24px rgba(2, 6, 23, 0.45);
  --shadow-lg: 0 20px 40px rgba(2, 6, 23, 0.6);
  --style-bg-1: #0b1020;
  --style-bg-2: #0f172a;
  --style-panel: rgba(15, 23, 42, 0.72);
  --style-star-color: rgba(255, 255, 255, 0.7);
  --style-star-glow: rgba(56, 189, 248, 0.22);
  --style-accent: #38bdf8;
  --style-accent-strong: #0ea5e9;
}

[data-style="aurora"] {
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SF Mono", Monaco, Consolas, "Courier New", monospace;
  --bg-primary: #fdf9ff;
  --bg-secondary: #f3efff;
  --bg-tertiary: #e9e3ff;
  --text-primary: #1f1b2d;
  --text-secondary: #4c425f;
  --text-tertiary: #8a7ea8;
  --border-color: rgba(138, 126, 168, 0.35);
  --accent-primary: #8b5cf6;
  --accent-hover: #7c3aed;
  --success: #8b5cf6;
  --error: #ef4444;
  --shadow-sm: 0 2px 6px rgba(31, 27, 45, 0.08);
  --shadow-md: 0 12px 24px rgba(31, 27, 45, 0.12);
  --shadow-lg: 0 20px 45px rgba(31, 27, 45, 0.18);
  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --style-bg-1: #fdf9ff;
  --style-bg-2: #eef2ff;
  --style-panel: rgba(255, 255, 255, 0.72);
  --style-accent: #8b5cf6;
  --style-accent-strong: #22d3ee;
}

[data-style="aurora"][data-theme="dark"] {
  --bg-primary: #120b1f;
  --bg-secondary: #1a102d;
  --bg-tertiary: #211437;
  --text-primary: #f8f5ff;
  --text-secondary: #d6c8ff;
  --text-tertiary: #9d8fce;
  --border-color: rgba(157, 143, 206, 0.25);
  --accent-primary: #c084fc;
  --accent-hover: #a855f7;
  --success: #c084fc;
  --error: #f87171;
  --shadow-sm: 0 2px 8px rgba(6, 4, 16, 0.5);
  --shadow-md: 0 14px 28px rgba(6, 4, 16, 0.55);
  --shadow-lg: 0 22px 50px rgba(6, 4, 16, 0.65);
  --style-bg-1: #120b1f;
  --style-bg-2: #1b1230;
  --style-panel: rgba(15, 12, 30, 0.72);
  --style-accent: #c084fc;
  --style-accent-strong: #38bdf8;
}

[data-style="noir"] {
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SF Mono", Monaco, Consolas, "Courier New", monospace;
  --bg-primary: #07090f;
  --bg-secondary: #0c101b;
  --bg-tertiary: #121827;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border-color: rgba(148, 163, 184, 0.2);
  --accent-primary: #22d3ee;
  --accent-hover: #38bdf8;
  --success: #22d3ee;
  --error: #f87171;
  --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.45);
  --shadow-md: 0 14px 30px rgba(2, 6, 23, 0.55);
  --shadow-lg: 0 24px 55px rgba(2, 6, 23, 0.7);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --style-bg-1: #07090f;
  --style-bg-2: #0b1120;
  --style-panel: rgba(8, 12, 20, 0.74);
  --style-accent: #22d3ee;
  --style-accent-strong: #38bdf8;
}

[data-style="noir"][data-theme="dark"] {
  --bg-primary: #05070b;
  --bg-secondary: #0b0f1a;
  --bg-tertiary: #121826;
  --text-primary: #e7ecf4;
  --text-secondary: #a3b2c9;
  --text-tertiary: #6b7c98;
  --border-color: rgba(163, 178, 201, 0.2);
  --accent-primary: #38bdf8;
  --accent-hover: #0ea5e9;
  --success: #38bdf8;
  --error: #f87171;
  --style-bg-1: #05070b;
  --style-bg-2: #0b0f1a;
  --style-panel: rgba(8, 11, 20, 0.78);
  --style-accent: #38bdf8;
  --style-accent-strong: #0ea5e9;
}

[data-style="tario"] {
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SF Mono", Monaco, Consolas, "Courier New", monospace;
  --bg-primary: #f7fbff;
  --bg-secondary: #eef6ff;
  --bg-tertiary: #e0efff;
  --text-primary: #081125;
  --text-secondary: #2b3a58;
  --text-tertiary: #6b7c98;
  --border-color: rgba(8, 17, 37, 0.14);
  --accent-primary: #38bdf8;
  --accent-hover: #a78bfa;
  --success: #38bdf8;
  --error: #ef4444;
  --shadow-sm: 0 2px 10px rgba(8, 17, 37, 0.12);
  --shadow-md: 0 16px 32px rgba(8, 17, 37, 0.14);
  --shadow-lg: 0 28px 60px rgba(8, 17, 37, 0.18);
  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --style-bg-1: #f7fbff;
  --style-bg-2: #e8f4ff;
  --style-panel: rgba(255, 255, 255, 0.7);
  --style-accent: #38bdf8;
  --style-accent-strong: #a78bfa;
  --rb-glare-rgba: rgba(255, 255, 255, 0.55);
  --rb-glare-angle: -45deg;
  --rb-glare-size: 250%;
}

[data-style="tario"][data-theme="dark"] {
  --bg-primary: #070b16;
  --bg-secondary: #0b1225;
  --bg-tertiary: #101a33;
  --text-primary: #e8f3ff;
  --text-secondary: #b6c9ff;
  --text-tertiary: #6b82b6;
  --border-color: rgba(182, 201, 255, 0.18);
  --accent-primary: #38bdf8;
  --accent-hover: #a78bfa;
  --success: #38bdf8;
  --error: #f87171;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.55);
  --style-bg-1: #070b16;
  --style-bg-2: #0b1225;
  --style-panel: rgba(7, 11, 22, 0.72);
  --style-accent: #38bdf8;
  --style-accent-strong: #a78bfa;
  --rb-glare-rgba: rgba(56, 189, 248, 0.45);
}

[data-style="spel"] {
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SF Mono", Monaco, Consolas, "Courier New", monospace;
  --bg-primary: #f7f7ff;
  --bg-secondary: #eef0ff;
  --bg-tertiary: #e7e9ff;
  --text-primary: #0b1022;
  --text-secondary: #3b4160;
  --text-tertiary: #7a81a8;
  --border-color: rgba(79, 70, 229, 0.22);
  --accent-primary: #4f46e5;
  --accent-hover: #4338ca;
  --success: #22c55e;
  --error: #ef4444;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.22);
  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --style-bg-1: #f7f7ff;
  --style-bg-2: #eef0ff;
  --style-panel: rgba(255, 255, 255, 0.58);
  --style-accent: #6366f1;
  --style-accent-strong: #a5b4fc;
  --rb-dot-color: rgba(99, 102, 241, 0.22);
  --rb-dot-gap: 22px;
  --rb-grid-glow: rgba(99, 102, 241, 0.16);
  --rb-spotlight: rgba(99, 102, 241, 0.18);
  --rb-star: rgba(99, 102, 241, 0.95);
  --rb-star-glow: rgba(99, 102, 241, 0.35);
}

[data-style="spel"][data-theme="dark"] {
  --bg-primary: #050610;
  --bg-secondary: #0a0b18;
  --bg-tertiary: #0f1126;
  --text-primary: #eef2ff;
  --text-secondary: #c7d2fe;
  --text-tertiary: #8b93b8;
  --border-color: rgba(99, 102, 241, 0.26);
  --accent-primary: #818cf8;
  --accent-hover: #a5b4fc;
  --success: #34d399;
  --error: #f87171;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 38px 100px rgba(0, 0, 0, 0.62);
  --style-bg-1: #050610;
  --style-bg-2: #080a18;
  --style-panel: rgba(10, 12, 24, 0.66);
  --style-accent: #818cf8;
  --style-accent-strong: #c7d2fe;
  --rb-dot-color: rgba(165, 180, 252, 0.18);
  --rb-grid-glow: rgba(99, 102, 241, 0.2);
  --rb-spotlight: rgba(129, 140, 248, 0.22);
  --rb-star: rgba(165, 180, 252, 0.95);
  --rb-star-glow: rgba(99, 102, 241, 0.5);
}

[data-style="cipher"] {
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SF Mono", Monaco, Consolas, "Courier New", monospace;
  --bg-primary: #050812;
  --bg-secondary: #070c18;
  --bg-tertiary: #0b1223;
  --text-primary: #e6fff4;
  --text-secondary: #9fe7c8;
  --text-tertiary: #5fb79a;
  --border-color: rgba(97, 220, 163, 0.22);
  --accent-primary: #61dca3;
  --accent-hover: #38bdf8;
  --success: #61dca3;
  --error: #f87171;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.65);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --style-bg-1: #030712;
  --style-bg-2: #050c16;
  --style-panel: rgba(3, 7, 18, 0.72);
  --style-accent: #61dca3;
  --style-accent-strong: #38bdf8;
  --rb-glare-rgba: rgba(97, 220, 163, 0.38);
  --rb-glare-angle: -35deg;
  --rb-glare-size: 240%;
}

[data-style="cipher"][data-theme="dark"] {
  --bg-primary: #02040a;
  --bg-secondary: #040814;
  --bg-tertiary: #071024;
  --text-primary: #eafff7;
  --text-secondary: #b6f3db;
  --text-tertiary: #62c7aa;
  --border-color: rgba(97, 220, 163, 0.18);
  --accent-primary: #38bdf8;
  --accent-hover: #61dca3;
  --success: #61dca3;
  --error: #f87171;
  --style-bg-1: #02040a;
  --style-bg-2: #040814;
  --style-panel: rgba(2, 4, 10, 0.78);
  --style-accent: #38bdf8;
  --style-accent-strong: #61dca3;
  --rb-glare-rgba: rgba(56, 189, 248, 0.3);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

[data-style="nova"] body {
  background: linear-gradient(180deg, var(--style-bg-1) 0%, var(--style-bg-2) 100%) !important;
}

[data-style="nova"] body::before {
  display: none !important;
}

[data-style="nova"] body {
  position: relative;
  overflow-x: hidden;
}

[data-style="nova"] body > *:not(.style-backdrop):not(.theme-toggle):not(.modal) {
  position: relative;
  z-index: 1;
}

[data-style="tario"] body,
[data-style="spel"] body,
[data-style="cipher"] body {
  position: relative;
  overflow-x: hidden;
}

[data-style="tario"] body {
  background: radial-gradient(1100px circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(900px circle at 88% 12%, rgba(167, 139, 250, 0.16), transparent 65%),
    linear-gradient(180deg, var(--style-bg-1) 0%, var(--style-bg-2) 100%) !important;
}

[data-style="spel"] body {
  background: radial-gradient(900px circle at 12% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(850px circle at 88% 10%, rgba(129, 140, 248, 0.14), transparent 65%),
    linear-gradient(180deg, var(--style-bg-1) 0%, var(--style-bg-2) 100%) !important;
}

[data-style="cipher"] body {
  background: radial-gradient(900px circle at 12% 0%, rgba(97, 220, 163, 0.18), transparent 60%),
    radial-gradient(950px circle at 88% 10%, rgba(56, 189, 248, 0.14), transparent 65%),
    linear-gradient(180deg, var(--style-bg-1) 0%, var(--style-bg-2) 100%) !important;
}

[data-style="tario"] body::before,
[data-style="tario"] body::after,
[data-style="spel"] body::before,
[data-style="spel"] body::after,
[data-style="cipher"] body::before,
[data-style="cipher"] body::after {
  display: none !important;
}

[data-style="tario"] body > *:not(.style-backdrop):not(.theme-toggle):not(.modal),
[data-style="spel"] body > *:not(.style-backdrop):not(.theme-toggle):not(.modal),
[data-style="cipher"] body > *:not(.style-backdrop):not(.theme-toggle):not(.modal) {
  position: relative;
  z-index: 1;
}

.style-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.style-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.style-canvas.pixelated {
  image-rendering: pixelated;
}

.rb-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--rb-dot-color, rgba(0, 0, 0, 0.12)) 1px, transparent 1px);
  background-size: var(--rb-dot-gap, 22px) var(--rb-dot-gap, 22px);
  background-position: 0 0;
  opacity: 0.9;
}

[data-style="spel"] .rb-dot-grid {
  animation: rb-dot-grid-pan 28s linear infinite;
}

.rb-dot-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--rb-grid-x, 50%) var(--rb-grid-y, 50%), var(--rb-grid-glow, rgba(99, 102, 241, 0.16)), transparent 60%);
  opacity: 0.95;
}

.rb-gradual-blur {
  position: absolute;
  left: -8vw;
  right: -8vw;
  bottom: -16vh;
  height: min(46vh, 420px);
  background:
    radial-gradient(
      140% 100% at 50% 100%,
      color-mix(in srgb, var(--rb-grid-glow, rgba(99, 102, 241, 0.16)) 68%, transparent),
      transparent 76%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--rb-grid-glow, rgba(99, 102, 241, 0.16)) 56%, transparent),
      transparent 88%
    );
  filter: blur(24px) saturate(1.2);
  opacity: 0.7;
  transform: translateZ(0);
  animation: rb-gradual-blur 14s ease-in-out infinite alternate;
}

@keyframes rb-dot-grid-pan {
  from { background-position: 0 0; }
  to { background-position: var(--rb-dot-gap, 22px) var(--rb-dot-gap, 22px); }
}

@keyframes rb-gradual-blur {
  0% { opacity: 0.56; transform: translate3d(0, 14px, 0) scale(1.03); }
  100% { opacity: 0.8; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  [data-style="spel"] .rb-dot-grid { animation: none; }
  .rb-gradual-blur { animation: none; }
}

.style-stars {
  position: absolute;
  inset: 0;
}

.style-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--style-star-color);
  box-shadow: 0 0 6px var(--style-star-glow);
  opacity: var(--opacity);
  filter: blur(var(--blur));
  animation: style-star-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.style-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at 50% 0%, rgba(14, 165, 233, 0.18), transparent 60%);
  opacity: 0.8;
}

[data-style="nova"][data-theme="dark"] .style-glow {
  background: radial-gradient(800px circle at 50% 0%, rgba(56, 189, 248, 0.18), transparent 60%);
}

@keyframes style-star-fall {
  0% { transform: translateY(-10vh); opacity: 0; }
  15% { opacity: var(--opacity); }
  100% { transform: translateY(110vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .style-star { animation: none; }
}

[data-style="aurora"] body {
  background: radial-gradient(900px circle at 12% 0%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(1000px circle at 88% 8%, rgba(34, 211, 238, 0.25), transparent 62%),
    linear-gradient(180deg, var(--style-bg-1) 0%, var(--style-bg-2) 100%) !important;
  position: relative;
  overflow-x: hidden;
}

[data-style="aurora"] body::before,
[data-style="aurora"] body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  opacity: calc(0.35 * var(--style-aurora-strength));
  filter: blur(40px);
  animation: aurora-float 18s ease-in-out infinite;
}

[data-style="aurora"] body::before {
  background: radial-gradient(40% 40% at 30% 20%, rgba(139, 92, 246, 0.5), transparent 65%),
    radial-gradient(35% 35% at 70% 30%, rgba(34, 211, 238, 0.45), transparent 70%);
}

[data-style="aurora"] body::after {
  background: radial-gradient(35% 40% at 60% 70%, rgba(236, 72, 153, 0.35), transparent 68%),
    radial-gradient(35% 35% at 20% 75%, rgba(99, 102, 241, 0.4), transparent 70%);
  animation-delay: -6s;
}

[data-style="aurora"] body > *:not(.style-backdrop):not(.theme-toggle):not(.modal) {
  position: relative;
  z-index: 1;
}

[data-style="noir"] body {
  background: radial-gradient(700px circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--style-bg-1) 0%, var(--style-bg-2) 100%) !important;
  position: relative;
  overflow-x: hidden;
}

[data-style="noir"] body::before,
[data-style="noir"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

[data-style="noir"] body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: var(--style-grid-opacity);
}

[data-style="noir"] body::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.12;
}

[data-style="noir"] body > *:not(.style-backdrop):not(.theme-toggle):not(.modal) {
  position: relative;
  z-index: 1;
}

@keyframes aurora-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

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

a:hover {
  color: var(--accent-hover);
}

button {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

button:hover {
  background-color: var(--text-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-primary);
}

.btn-danger {
  background-color: var(--error);
  color: white;
}

.btn-danger:hover {
  background-color: #c00;
}

[data-style="nova"] button {
  border-radius: 999px;
  font-weight: 600;
}

[data-style="nova"] .btn-primary {
  background: linear-gradient(135deg, var(--style-accent), var(--style-accent-strong));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

[data-style="nova"][data-theme="dark"] .btn-primary {
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.6);
}

[data-style="nova"] .btn-secondary {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(10px);
}

[data-style="nova"][data-theme="dark"] .btn-secondary {
  background-color: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.25);
}

[data-style="nova"] .btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.9);
}

[data-style="nova"][data-theme="dark"] .btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.9);
}

[data-style="nova"] input,
[data-style="nova"] textarea,
[data-style="nova"] select {
  border-radius: var(--radius);
  border-color: rgba(148, 163, 184, 0.4);
}

[data-style="aurora"] button {
  border-radius: 999px;
  font-weight: 600;
}

[data-style="aurora"] .btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.28);
}

[data-style="aurora"] .btn-secondary {
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(12px);
  color: #2a2340;
}

[data-style="aurora"][data-theme="dark"] .btn-secondary {
  background-color: rgba(24, 16, 44, 0.8);
  border-color: rgba(192, 132, 252, 0.3);
  color: #f5f3ff;
}

[data-style="aurora"] input,
[data-style="aurora"] textarea,
[data-style="aurora"] select {
  border-radius: var(--radius);
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

[data-style="aurora"][data-theme="dark"] input,
[data-style="aurora"][data-theme="dark"] textarea,
[data-style="aurora"][data-theme="dark"] select {
  background: rgba(18, 11, 31, 0.7);
  color: var(--text-primary);
  border-color: rgba(192, 132, 252, 0.3);
}

[data-style="noir"] button {
  border-radius: 10px;
  font-weight: 600;
}

[data-style="noir"] .btn-primary {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #071018;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.2);
}

[data-style="noir"] .btn-secondary {
  background-color: rgba(8, 12, 20, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

[data-style="noir"] input,
[data-style="noir"] textarea,
[data-style="noir"] select {
  border-radius: var(--radius);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(5, 7, 11, 0.7);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

[data-style="tario"] button {
  border-radius: 999px;
  font-weight: 650;
}

[data-style="tario"] .btn-primary {
  background: linear-gradient(135deg, var(--style-accent), var(--style-accent-strong));
  color: #081125;
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.18), 0 18px 40px rgba(167, 139, 250, 0.16);
}

[data-style="tario"] .btn-secondary {
  background-color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(8, 17, 37, 0.16);
  backdrop-filter: blur(12px);
}

[data-style="tario"] .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(8, 17, 37, 0.22);
}

[data-style="tario"][data-theme="dark"] .btn-secondary {
  background-color: rgba(7, 11, 22, 0.62);
  border-color: rgba(182, 201, 255, 0.18);
  color: var(--text-primary);
}

[data-style="tario"][data-theme="dark"] .btn-secondary:hover {
  background-color: rgba(7, 11, 22, 0.78);
  border-color: rgba(182, 201, 255, 0.26);
}

[data-style="tario"] input,
[data-style="tario"] textarea,
[data-style="tario"] select {
  border-radius: var(--radius);
  border-color: rgba(8, 17, 37, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

[data-style="tario"][data-theme="dark"] input,
[data-style="tario"][data-theme="dark"] textarea,
[data-style="tario"][data-theme="dark"] select {
  background: rgba(7, 11, 22, 0.62);
  color: var(--text-primary);
  border-color: rgba(182, 201, 255, 0.18);
}

[data-style="spel"] button {
  border-radius: 16px;
  font-weight: 650;
}

[data-style="spel"] .btn-primary {
  background: linear-gradient(135deg, var(--style-accent), var(--style-accent-strong));
  color: #050610;
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.28);
}

[data-style="spel"] .btn-secondary {
  background: color-mix(in srgb, var(--style-panel) 75%, transparent);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(14px) saturate(1.35);
  color: var(--text-primary);
}

[data-style="spel"] .btn-secondary:hover {
  background: color-mix(in srgb, var(--style-panel) 88%, transparent);
  border-color: color-mix(in srgb, var(--border-color) 75%, var(--style-accent) 25%);
}

[data-style="spel"] input,
[data-style="spel"] textarea,
[data-style="spel"] select {
  border-radius: var(--radius);
  border-color: var(--border-color);
  background: color-mix(in srgb, var(--style-panel) 82%, transparent);
  color: var(--text-primary);
  backdrop-filter: blur(14px) saturate(1.35);
}

[data-style="cipher"] button {
  border-radius: 12px;
  font-weight: 650;
}

[data-style="cipher"] .btn-primary {
  background: linear-gradient(135deg, var(--style-accent), var(--style-accent-strong));
  color: #04120b;
  box-shadow: 0 20px 48px rgba(97, 220, 163, 0.22);
}

[data-style="cipher"] .btn-secondary {
  background-color: rgba(3, 7, 18, 0.65);
  border: 1px solid rgba(97, 220, 163, 0.22);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
}

[data-style="cipher"] .btn-secondary:hover {
  background-color: rgba(3, 7, 18, 0.82);
  border-color: rgba(97, 220, 163, 0.32);
}

[data-style="cipher"] input,
[data-style="cipher"] textarea,
[data-style="cipher"] select {
  border-radius: var(--radius);
  border-color: rgba(97, 220, 163, 0.2);
  background: rgba(2, 4, 10, 0.72);
  color: var(--text-primary);
}

[data-style="aurora"] :where(.card, .bin-card, .shortlink-card, .stat-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .modal-card, .hero-panel, .modal-content) {
  background: var(--style-panel);
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

[data-style="aurora"][data-theme="dark"] :where(.card, .bin-card, .shortlink-card, .stat-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .modal-card, .hero-panel, .modal-content) {
  border-color: rgba(192, 132, 252, 0.2);
}

[data-style="noir"] :where(.card, .bin-card, .shortlink-card, .stat-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .modal-card, .hero-panel, .modal-content) {
  background: var(--style-panel);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

[data-style="noir"] :where(.stat-card, .user-card) {
  border-color: rgba(56, 189, 248, 0.2);
}

:where([data-style="tario"], [data-style="spel"], [data-style="cipher"]) :where(.card, .bin-card, .shortlink-card, .stat-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .modal-card, .hero-panel, .modal-content, .content, .file-item) {
  background: var(--style-panel);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

:where([data-style="tario"], [data-style="spel"], [data-style="cipher"]) :where(.header-actions, .hero-actions, .actions) {
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--style-panel);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

:root {
  --rb-glare-duration: 650ms;
}

:where([data-style="tario"], [data-style="spel"], [data-style="cipher"]) :where(button:not(.theme-toggle):not(.btn-danger), .bin-card, .shortlink-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .hero-panel, .modal-content, .file-item, .file-preview, .file-input-label) {
  position: relative;
  overflow: hidden;
}

:where([data-style="tario"], [data-style="spel"], [data-style="cipher"]) :where(button:not(.theme-toggle):not(.btn-danger), .bin-card, .shortlink-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .hero-panel, .modal-content, .file-item, .file-preview, .file-input-label)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    var(--rb-glare-angle),
    rgba(255, 255, 255, 0) 60%,
    var(--rb-glare-rgba) 70%,
    rgba(255, 255, 255, 0) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: var(--rb-glare-duration) ease;
  background-size: var(--rb-glare-size) var(--rb-glare-size), 100% 100%;
  background-repeat: no-repeat;
  background-position: -100% -100%, 0 0;
  opacity: 0.9;
  will-change: background-position;
}

:where([data-style="tario"], [data-style="spel"], [data-style="cipher"]) :where(button:not(.theme-toggle):not(.btn-danger), .bin-card, .shortlink-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .hero-panel, .modal-content, .file-item, .file-preview, .file-input-label):hover::before {
  background-position: 100% 100%, 0 0;
}

@keyframes rb-star-border-sweep {
  0% { background-position: 250% 100%, -250% 0%; }
  100% { background-position: -50% 100%, 50% 0%; }
}

/* react-bits bundle (spel): glass + spotlight + star-border */
[data-style="spel"] :where(.card, .panel, .bin-card, .shortlink-card, .stat-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .modal-content, .hero-panel, .file-item, .file-preview, .file-input-label, .module-card, .level-row, button:not(.theme-toggle)) {
  position: relative;
  overflow: hidden;
}

[data-style="spel"] :where(.card, .panel, .bin-card, .shortlink-card, .stat-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .modal-content, .hero-panel, .file-item, .file-preview, .file-input-label, .module-card, .level-row, button:not(.theme-toggle))::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  background: radial-gradient(
    260px circle at var(--rb-spot-x, 50%) var(--rb-spot-y, 50%),
    var(--rb-spotlight, rgba(99, 102, 241, 0.18)),
    transparent 60%
  );
}

[data-style="spel"] :where(.card, .panel, .bin-card, .shortlink-card, .stat-card, .user-card, .admin-card, .unlock-card, .version-card, .discussion-card, .modal-content, .hero-panel, .file-item, .file-preview, .file-input-label, .module-card, .level-row, button:not(.theme-toggle)):hover::before {
  opacity: 1;
}

@supports (-webkit-mask-composite: xor) or (mask-composite: exclude) {
  [data-style="spel"] :where(button:not(.theme-toggle):not(.btn-danger), .module-card, .level-row, .file-input-label)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    opacity: 0.75;
    background-image:
      radial-gradient(circle, var(--rb-star, rgba(99, 102, 241, 0.95)) 0%, transparent 55%),
      radial-gradient(circle, var(--rb-star, rgba(99, 102, 241, 0.95)) 0%, transparent 55%);
    background-size: 300% 50%, 300% 50%;
    background-position: 250% 100%, -250% 0%;
    animation: rb-star-border-sweep 6s linear infinite alternate;
    filter: drop-shadow(0 0 10px var(--rb-star-glow, rgba(99, 102, 241, 0.35)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 220ms ease;
  }

  [data-style="spel"] :where(button:not(.theme-toggle):not(.btn-danger), .module-card, .level-row, .file-input-label):hover::after {
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    [data-style="spel"] :where(button:not(.theme-toggle):not(.btn-danger), .module-card, .level-row, .file-input-label)::after {
      animation: none;
    }
  }
}

@keyframes rb-split-in {
  0% { opacity: 0; transform: translateY(0.7em); filter: blur(10px); }
  60% { opacity: 0.85; transform: translateY(0.18em); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.rb-split-char {
  display: inline-block;
  opacity: 0;
  animation: rb-split-in 740ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 28ms);
  will-change: transform, filter, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .rb-split-char { animation: none; opacity: 1; }
}

@keyframes rb-blur-in {
  0% { filter: blur(12px); opacity: 0; transform: translateY(10px); }
  60% { filter: blur(4px); opacity: 0.7; transform: translateY(2px); }
  100% { filter: blur(0); opacity: 1; transform: translateY(0); }
}

[data-style="tario"] :where(h1, .panel-title, .section-header h2) {
  animation: rb-blur-in 720ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

[data-style="tario"] :where(.hero-badge, .hero-main p, .panel-note) {
  animation: rb-blur-in 820ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
  animation-delay: 90ms;
}

@media (prefers-reduced-motion: reduce) {
  [data-style="tario"] :where(h1, .panel-title, .section-header h2, .hero-badge, .hero-main p, .panel-note) {
    animation: none;
  }
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-primary);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 2;
  fill: var(--text-primary);
}

/* Custom File Input */
input[type="file"] {
  display: none;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.file-input-label:hover {
  border-color: var(--text-primary);
  background: var(--bg-tertiary);
}

.file-input-label svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
}

.file-input-label:hover svg {
  stroke: var(--text-primary);
}

/* Icons */
.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

svg.icon,
.icon svg,
button svg {
  overflow: visible;
  display: block;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

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

.icon-lg {
  width: 24px;
  height: 24px;
}

/* Version History */
.info-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.versions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.version-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.version-card:hover {
  border-color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.version-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.version-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.version-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.version-date,
.version-files {
  display: flex;
  align-items: center;
}

.version-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.813rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-actions {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-current {
  background: var(--accent-primary);
  color: white;
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

/* File removal button */
.remove-file-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: auto;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.remove-file-btn:hover {
  opacity: 1;
  color: var(--text-error);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===========================================
   RESPONSIVE - MOBILE FIRST APPROACH
   =========================================== */

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  body {
    font-size: 0.95rem;
  }
  
  button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  button {
    padding: 0.5rem 0.875rem;
    font-size: 0.813rem;
  }
  
  .theme-toggle {
    top: 0.75rem;
    bottom: auto;
    right: 1rem;
    width: 38px;
    height: 38px;
    opacity: 0.92;
  }
  
  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* Shared headers for bin/shortlink pages */
  .container > .header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }

  .container > .header h1 {
    margin: 0 !important;
    min-width: 0 !important;
    line-height: 1.25 !important;
    font-size: 1.3rem !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .container > .header .header-actions,
  .container > .header .actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .container > .header .header-actions > *,
  .container > .header .actions > * {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  .container > .header .header-actions > * > button,
  .container > .header .actions > * > button {
    width: 100%;
    justify-content: center;
  }

  .container > .header .actions > .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Version History Cards */
  .version-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .version-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .version-meta {
    gap: 0.5rem;
  }
  
  .version-card {
    padding: 1rem;
  }
  
  /* Badges */
  .badge {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  body {
    font-size: 0.875rem;
  }
  
  button {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }
  
  /* Allow inline buttons */
  .btn-secondary,
  .btn-primary,
  .btn-danger {
    width: auto;
  }
  
  .theme-toggle {
    top: 0.65rem;
    bottom: auto;
    right: 0.75rem;
    width: 34px;
    height: 34px;
  }
  
  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }

  .container > .header .header-actions > *,
  .container > .header .actions > * {
    flex-basis: 100%;
  }
  
  /* File input wrapper */
  .file-input-label {
    padding: 1.25rem;
    font-size: 0.813rem;
    flex-direction: column;
    text-align: center;
  }
  
  /* Version cards for mobile */
  .version-title h3 {
    font-size: 1rem;
  }
  
  .version-preview {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  .btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    width: auto;
  }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
  button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-secondary,
  .btn-primary,
  .btn-danger {
    min-height: 44px;
  }
  
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="search"],
  textarea,
  select {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}
