/*
 * RastgeleSec — Premium Design System
 * Modern glassmorphic dark theme with animated effects
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #06060f;
  --bg-accent: #0c0c24;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-bright: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.07);
  --surface-border-hover: rgba(139, 92, 246, 0.4);

  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-dark: #7C3AED;
  --primary-glow: rgba(139, 92, 246, 0.3);

  --red: #F43F5E;
  --green: #10B981;
  --emerald: #34D399;
  --orange: #F59E0B;
  --amber: #FBBF24;
  --blue: #3B82F6;
  --cyan: #06B6D4;
  --pink: #EC4899;
  --yellow: #EAB308;
  --purple: #A855F7;

  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 9999px;

  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --shadow-glow-sm: 0 0 20px var(--primary-glow);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Ambient gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 30%, rgba(139, 92, 246, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(59, 130, 246, 0.05), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(6, 182, 212, 0.04), transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(244, 63, 94, 0.03), transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: ambientPulse 15s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Dot grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}

/* All content above background */
body > * { position: relative; z-index: 1; }

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--cyan); }

/* ===== HEADER ===== */
.header {
  background: rgba(6, 6, 15, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.02em;
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.03); color: var(--text) !important; }
.logo span {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  letter-spacing: -0.01em;
}

nav a:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}

nav a.active {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.12);
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}
.menu-toggle:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 56px 16px 36px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.15); }
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== GLASS CARD BASE ===== */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== TOOL SECTION ===== */
.tool-section {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.tool-card, .card.tool-card {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tool-card:hover {
  border-color: rgba(139, 92, 246, 0.15);
}

.tool-card h1, .tool-card h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tool-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ===== TOOL GRID (ANA SAYFA) ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.tool-item {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.tool-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.tool-item:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
  color: var(--text);
}
.tool-item:hover::before { opacity: 1; }

.tool-item .icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
  position: relative;
}

.tool-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
}

.tool-item p {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.5;
  position: relative;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: var(--surface-bright);
  border: 1px solid var(--surface-border);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-red {
  background: linear-gradient(135deg, var(--red), #DC2626);
  color: #fff;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.4);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--emerald));
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--primary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

/* ===== FORM ELEMENTS ===== */
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), var(--shadow-glow-sm);
  background: rgba(0, 0, 0, 0.4);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.form-group { margin-bottom: 18px; }

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

.text-input {
  flex: 1;
}

/* ===== RESULT BOX ===== */
.result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.result-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));
  pointer-events: none;
}

.result-box .value, .result-value {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-all;
  position: relative;
}

.result-box .label, .result-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.result-animate {
  animation: resultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ===== CANVAS / CARK (WHEEL) ===== */
.cark-container {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.cark-input-area {
  flex: 1;
  min-width: 0;
}

.cark-buttons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.cark-buttons .btn { flex: 1; }

.cark-wheel-area {
  flex: 1;
  min-width: 0;
}

.cark-wheel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.cark-wheel-wrapper canvas {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.15));
}

.cark-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  z-index: 5;
  color: var(--primary-light);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  animation: pointerPulse 2s ease-in-out infinite;
}

@keyframes pointerPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(3px); }
}

/* ===== COIN (YAZI TURA) ===== */
.coin-container {
  display: flex;
  justify-content: center;
  margin: 36px 0;
  perspective: 600px;
}

.coin {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.coin.flip-heads { animation: flipHeads 1.5s ease-out forwards; }
.coin.flip-tails { animation: flipTails 1.5s ease-out forwards; }

@keyframes flipHeads {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(1800deg); }
}

@keyframes flipTails {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(1980deg); }
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
}

.coin .heads {
  background: linear-gradient(145deg, #FFD700, #F59E0B, #D97706);
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.coin .tails {
  background: linear-gradient(145deg, #D4D4D8, #A1A1AA, #71717A);
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
  transform: rotateY(180deg);
}

/* ===== DICE (ZAR) ===== */
.dice-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 36px 0;
}

.dice {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, #ffffff, #E2E8F0);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--bg);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform var(--transition-bounce);
}

.dice.rolling {
  animation: diceRoll 0.5s ease-in-out;
}

@keyframes diceRoll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(0.85); }
  50% { transform: rotate(180deg) scale(1.1); }
  75% { transform: rotate(270deg) scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ===== COUNTER (ZAR SAYISI) ===== */
.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px 0;
}

.counter button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.counter button:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
  transform: scale(1.1);
}

.counter .count {
  font-size: 1.6rem;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
}

/* ===== COLOR (RENK) ===== */
.color-preview {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  transition: background 0.5s ease;
  cursor: pointer;
  border: 1px solid var(--surface-border);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}

.color-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-xs);
  border: 1px solid var(--surface-border);
}

.color-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 36px;
}

.color-value {
  flex: 1;
  font-family: 'Inter', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.color-history {
  margin-top: 24px;
}

.color-history h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.color-history-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-circle {
  transition: transform var(--transition), box-shadow var(--transition);
}
.color-circle:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

/* ===== PASSWORD (SIFRE) ===== */
.password-display {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-family: 'Courier New', 'Fira Code', monospace;
  font-size: 1.25rem;
  text-align: center;
  word-break: break-all;
  margin: 16px 0;
  position: relative;
  color: var(--primary-light);
  letter-spacing: 0.04em;
  transition: border-color var(--transition);
}
.password-display:hover {
  border-color: var(--primary);
}

.password-strength {
  height: 5px;
  border-radius: 3px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease;
}

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

/* ===== RANGE SLIDER ===== */
input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  margin-top: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.checkbox-group label:hover {
  border-color: var(--surface-border);
  background: rgba(0, 0, 0, 0.25);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ===== EVET / HAYIR (DECISION) ===== */
.decision-display {
  font-size: 4rem;
  font-weight: 900;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.03em;
  transition: color 0.2s, transform 0.3s;
}

.decision-display.flicker {
  animation: flicker 0.12s ease-in-out;
}

@keyframes flicker {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.decision-display.decision-pop {
  animation: decisionPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes decisionPop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.counter-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}

.counter-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.counter-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.counter-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.custom-options {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
}

.custom-options h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.option-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--surface-border);
}

.option-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color var(--transition-fast);
}
.option-remove:hover { color: var(--red); }

.option-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* ===== COPY BUTTON ===== */
.copy-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--primary-light);
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  font-family: inherit;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ===== TAGS ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  justify-content: center;
}

.tag {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all var(--transition);
}
.tag:hover {
  background: rgba(139, 92, 246, 0.18);
  transform: translateY(-1px);
}

/* ===== SEO CONTENT SECTION ===== */
.content-section {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.content-section .card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.content-section h2:first-child { margin-top: 0; }

.content-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.75;
}

.content-section ul, .content-section ol {
  color: var(--text-secondary);
  padding-left: 22px;
  margin-bottom: 14px;
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.content-section strong {
  color: var(--text);
}

.content-section code {
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary-light);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: 0;
}

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

.faq-q {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  padding: 18px 0;
  transition: color var(--transition);
  user-select: none;
  gap: 12px;
}

.faq-q:hover { color: var(--primary-light); }

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  font-weight: 400;
}

.faq-q.open::after {
  transform: rotate(45deg);
  background: rgba(139, 92, 246, 0.2);
}

.faq-a {
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  line-height: 1.7;
}

.faq-a.open {
  max-height: 500px;
  padding-bottom: 16px;
}

/* ===== STATIC PAGES ===== */
.static-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 16px;
  flex: 1;
}

.static-page .card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.static-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.static-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.static-page p, .static-page li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.static-page ul {
  padding-left: 22px;
}

.static-page a {
  color: var(--primary-light);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  transition: all var(--transition);
}
.static-page a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(6, 6, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--surface-border);
  padding: 28px 16px;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
  border: none;
}
.footer-links a:hover { color: var(--primary-light); }

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 12, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--surface-border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.5;
}
.cookie-banner p a { color: var(--primary-light); }

.cookie-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all var(--transition);
}
.cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.cookie-banner.hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  }

  nav.open { display: flex; }
  nav a { padding: 12px 16px; border-radius: var(--radius-xs); }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .hero { padding: 40px 16px 28px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }

  .tool-card, .card.tool-card { padding: 24px; }
  .content-section .card { padding: 24px; }
  .static-page .card { padding: 24px; }

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

  .result-box .value, .result-value { font-size: 1.8rem; }

  .coin { width: 160px; height: 160px; }
  .dice { width: 72px; height: 72px; font-size: 2rem; }

  .cark-container {
    flex-direction: column;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .decision-display {
    font-size: 3rem;
    min-height: 80px;
  }

  .counter-group { gap: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .tool-card, .card.tool-card { padding: 20px; }
  .static-page .card { padding: 20px; }
  .content-section .card { padding: 20px; }
  .checkbox-group { gap: 8px; }
  .checkbox-group label { font-size: 0.85rem; padding: 5px 8px; }
}
