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

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

:root {
  --bg:          #07080c;
  --bg-mid:      #0d1017;
  --bg-raised:   #141722;
  --card-bg:     rgba(14, 17, 26, 0.82);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8);

  --blue:        #3b82f6;
  --blue-bright: #60a5fa;
  --blue-glow:   rgba(59, 130, 246, 0.4);
  --blue-dim:    rgba(59, 130, 246, 0.14);

  --accent-pink: #ec4899;
  --accent-pink-dim: rgba(236, 72, 153, 0.15);

  --text-1: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #475569;

  --radius-xl:  26px;
  --radius-lg:  16px;
  --radius-md:  12px;
  --radius-btn: 14px;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 50% -10%, rgba(59, 130, 246, 0.16) 0%, transparent 65%),
    radial-gradient(900px 600px at 85% 95%, rgba(129, 140, 248, 0.1) 0%, transparent 60%),
    radial-gradient(800px 500px at 15% 75%, rgba(14, 165, 233, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 4rem;
}

/* ── Modern vignette-masked grid overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 25%, transparent 85%);
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: auto;
}

/* ── Top Utility Navigation ── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  width: 100%;
}

.top-nav-left {
  display: flex;
  align-items: center;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(59,130,246,0.15);
}

.site-badge-btn {
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.site-badge-btn:hover {
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59,130,246,0.25);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.nav-btn-outline {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
  color: var(--blue-bright);
}

.nav-btn-outline:hover {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.45);
}

.fav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent-pink);
  color: #fff;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

/* ── Header ── */
.site-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.site-title {
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: var(--text-1);
}

.site-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 45%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 16px rgba(99, 102, 241, 0.28));
}

.site-subtitle {
  font-size: 0.94rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Categories Filter Bar ── */
.category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem 0.85rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-2);
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cat-pill:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1.5px);
}

.cat-pill.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.22) 0%, rgba(99,102,241,0.18) 100%);
  border-color: rgba(96,165,250,0.5);
  color: #93c5fd;
  box-shadow: 0 4px 18px rgba(59,130,246,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ── Quote Card (Glassmorphism 2.0) ── */
.quote-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--card-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 2rem 2.25rem 1.85rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ambient Top Light Beam */
.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.7), rgba(192, 132, 252, 0.7), transparent);
  pointer-events: none;
}

/* ── Card Meta Top Row ── */
.quote-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.quote-cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.22);
  padding: 3px 10px;
  border-radius: 100px;
}

.quote-meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fav-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.18s ease;
}

.fav-icon-btn:hover {
  color: var(--accent-pink);
  transform: scale(1.15);
}

.fav-icon-btn.is-favorite {
  color: var(--accent-pink);
  animation: heartPop 0.35s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes heartPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.quote-counter {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}

.quote-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ── Quote Wrap / Content ── */
.quote-wrap {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1.6rem 1.5rem 1.8rem;
  background: rgba(255,255,255,0.025);
  border-radius: var(--radius-lg);
  border-left: 3.5px solid var(--blue);
  position: relative;
  transform-origin: center bottom;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.03);
}

.quote-wrap::before,
.quote-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.04);
  z-index: -1;
}

.quote-wrap::before {
  transform: rotate(-1.5deg) translateY(6px) translateX(-2px);
}

.quote-wrap::after {
  transform: rotate(1.2deg) translateY(10px) translateX(2px);
}

.quote-wrap.card-deal {
  animation: cardDeal 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.quote-icon {
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.22;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.quote-text {
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-1);
  font-style: italic;
  margin: 0;
  word-break: break-word;
}

.quote-source {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
  font-style: normal;
  text-transform: uppercase;
}

.quote-source::before {
  content: '— ';
}

/* ── Reactions Row ── */
.reactions-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.rx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-2);
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.rx-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1.5px);
}

.rx-btn[data-rx="funny"].active {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.45);
  color: #fef08a;
  box-shadow: 0 2px 14px rgba(234, 179, 8, 0.22);
}

.rx-btn[data-rx="useful"].active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  box-shadow: 0 2px 14px rgba(59, 130, 246, 0.25);
}

.rx-btn[data-rx="weak"].active {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
  box-shadow: 0 2px 14px rgba(168, 85, 247, 0.22);
}

.rx-emoji {
  font-size: 0.92rem;
}

.rx-count {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.9;
}

/* ── Action Buttons Row ── */
.btn-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.btn-primary-custom {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #4f46e5 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}

.btn-primary-custom:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(59, 130, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary-custom:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary-custom:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-icon-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-icon-custom:hover {
  background: rgba(59,130,246,0.14);
  color: var(--blue-bright);
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-2px);
}

.btn-icon-custom:active {
  transform: translateY(0);
}

.btn-icon-custom.success {
  background: rgba(34,197,94,0.14);
  color: #4ade80;
  border-color: rgba(34,197,94,0.35);
}

/* ── Card Controls / Speed toggle & Hints ── */
.card-footer-controls {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.85rem;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  user-select: none;
}

.mode-toggle input {
  display: none;
}

.toggle-slider {
  width: 32px;
  height: 18px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.mode-toggle input:checked + .toggle-slider {
  background: var(--blue);
}

.mode-toggle input:checked + .toggle-slider::after {
  transform: translateX(14px);
}

.kbd-hint {
  font-size: 0.7rem;
  color: var(--text-3);
  text-align: right;
  letter-spacing: 0.02em;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.65rem;
  font-family: inherit;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Praying Box (Sensėjaus ritualas modal overlay) ── */
.praying-box {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(9, 10, 16, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  text-align: center;
  padding: 2rem;
}

.praying-box.visible {
  display: flex;
  animation: overlayIn 0.2s ease forwards;
}

.praying-box img {
  width: 260px;
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.praying-box img.loaded {
  opacity: 1;
}

.praying-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  text-transform: uppercase;
  animation: labelPulse 1.3s ease-in-out infinite;
}

.skip-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skip-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── Gaming Partners Section ── */
.partners-section {
  margin-top: 3.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.partner-ad-block {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-ad-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #22c55e;
  animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 4px #22c55e;
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 14px #4ade80, 0 0 24px rgba(74, 222, 128, 0.6);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 4px #22c55e;
  }
}

.partner-ad-link {
  display: inline-block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.22s ease;
  max-width: 100%;
}

.partner-ad-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,130,246,0.4);
  border-color: rgba(59,130,246,0.4);
}

.partner-ad-link img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── CS 1.6 & KillingFloor Animated Ad Special Effects ── */
.cs-animated-ad .partner-ad-label {
  color: #f1f5f9;
  text-shadow: 0 0 12px rgba(234, 88, 12, 0.4);
}

.animated-banner-glow {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.15);
  animation: gamingGlow 3.5s ease-in-out infinite alternate;
}

@keyframes gamingGlow {
  0% {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(249, 115, 22, 0.12);
  }
  50% {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(59, 130, 246, 0.25);
  }
  100% {
    border-color: rgba(234, 88, 12, 0.55);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 22px rgba(234, 88, 12, 0.3);
  }
}

.animated-banner-glow:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(249, 115, 22, 0.8);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(249, 115, 22, 0.45);
}

.banner-shine-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: inherit;
  vertical-align: middle;
}

.banner-shine-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}

.banner-shine {
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.05) 65%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shineSweep 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shineSweep {
  0% {
    left: -120%;
  }
  30%, 100% {
    left: 180%;
  }
}

/* ── Modals (Browse, Favorites, Suggest, Card Generator) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(16, 19, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card-wide {
  max-width: 660px;
}

.modal-header {
  padding: 1.35rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-1);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-1);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-secondary-custom {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-1);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-custom:hover {
  background: rgba(255,255,255,0.12);
}

.btn-text-danger {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  margin-right: auto;
}

.btn-text-danger:hover {
  text-decoration: underline;
}

/* ── Browse & Search Modal ── */
.browse-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.browse-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.browse-search-wrap input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.browse-search-wrap input:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,0.06);
}

.browse-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 52vh;
}

.browse-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.browse-item:hover {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  transform: translateX(3px);
}

.browse-item-q {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

.browse-item-s {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-transform: uppercase;
}

.browse-item-badge {
  font-size: 0.68rem;
  color: var(--text-3);
  font-weight: 700;
  white-space: nowrap;
}

/* ── Favorites List Inside Modal ── */
.fav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fav-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fav-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.fav-item-info {
  flex: 1;
}

.fav-item-quote {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}

.fav-item-source {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-transform: uppercase;
}

.fav-item-actions {
  display: flex;
  gap: 0.35rem;
}

.fav-action-btn {
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fav-action-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-1);
}

.fav-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-3);
}

.fav-empty p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

/* ── Suggest Form & Moderation ── */
.suggest-legal-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #fecaca;
}

.suggest-legal-warning .warning-title {
  font-weight: 800;
  color: #f87171;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.suggest-legal-warning strong {
  color: #fff;
}

.suggest-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suggest-row-2 {
  display: flex;
  gap: 0.85rem;
}

.suggest-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.suggest-form input,
.suggest-form textarea,
.suggest-form select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.18s ease;
}

.suggest-form input:focus,
.suggest-form textarea:focus,
.suggest-form select:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.07);
}

/* ── Captcha Row ── */
.captcha-group {
  margin-top: 0.2rem;
}

.captcha-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 4px 8px;
}

.captcha-box img {
  height: 38px;
  display: block;
}

.btn-refresh-captcha {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--blue-bright);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-refresh-captcha:hover {
  background: rgba(59, 130, 246, 0.2);
}

#suggestCaptcha {
  flex: 1;
  min-width: 140px;
}

/* ── Terms Checkbox ── */
.terms-checkbox-wrap {
  background: rgba(255, 255, 255, 0.025);
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-top: 0.25rem;
}

.checkbox-custom-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-custom-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
}

.checkbox-text strong {
  color: #fff;
}

.checkbox-text a {
  color: var(--blue-bright);
  text-decoration: underline;
}

.form-actions {
  margin-top: 0.5rem;
}

/* ── Canvas Card Preview ── */
.modal-card-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090d;
}

#cardCanvas {
  max-width: 100%;
  height: auto;
  max-height: 55vh;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* ── Footer ── */
.site-footer {
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.footer-links {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--blue-bright);
}

.footer-copy {
  font-size: 0.74rem;
  color: var(--text-3);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26, 29, 41, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-1);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 1200;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Animations ── */
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cardDeal {
  0%   { transform: translateX(35px) rotate(2.5deg) scale(0.97); opacity: 0; }
  100% { transform: translateX(0)    rotate(0deg)   scale(1);    opacity: 1; }
}

@keyframes labelPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.animate-in {
  opacity: 0;
  transform: translateY(16px);
  animation: enterIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes enterIn {
  to { opacity: 1; transform: translateY(0); }
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.footer-link-btn:hover {
  color: var(--blue-bright);
}

/* ── Cookie Consent Banner (GDPR / BDAR) ── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 2rem);
  max-width: 680px;
  background: rgba(16, 19, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.cookie-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 3px;
}

.cookie-text p {
  font-size: 0.76rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--blue);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 4px 14px var(--blue-glow);
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-cookie-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-cookie-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-1);
}

/* ── Mobile Responsive ── */
@media (max-width: 600px) {
  body {
    padding: 1.2rem 0.75rem 3.5rem;
  }
  .quote-card {
    padding: 1.35rem 1.1rem 1.25rem;
  }
  .site-title {
    font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    letter-spacing: -0.02em;
  }
  .site-subtitle {
    font-size: 0.85rem;
  }
  .category-pills {
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .quote-wrap {
    padding: 1.25rem 1.1rem 1.25rem 1.25rem;
  }
  .quote-text {
    font-size: 1.05rem;
  }
  .btn-row {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }
  .btn-primary-custom {
    font-size: 0.88rem;
    padding: 0.8rem 0.6rem;
  }
  .btn-icon-custom {
    width: 44px;
    height: 44px;
  }
  .kbd-hint {
    display: none;
  }
  .card-footer-controls {
    justify-content: center;
  }
  .cs2-banner {
    margin-top: 2.5rem;
  }
  .top-nav-right .nav-label {
    display: none;
  }
  .top-nav-right .nav-btn {
    padding: 6px 9px;
  }
}

@media (max-width: 380px) {
  .site-title {
    font-size: 1.35rem;
  }
  .btn-icon-custom {
    width: 40px;
    height: 40px;
  }
}
