/* 
   Snap Quiz — arayüz (önceki SnapNote temeli)
   Colors preserved from original; Design overhauled for modern SaaS aesthetic.
*/

:root {
  --bg0: #070A14;
  --bg1: #0A0F1E;
  --panel: rgba(255, 255, 255, .05);
  --panel2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .10);
  --text: rgba(255, 255, 255, .94);
  --muted: rgba(255, 255, 255, .70);
  --muted2: rgba(255, 255, 255, .50);
  --p: #7C3AED;
  --b: #38BDF8;
  --glow: rgba(124, 58, 237, .22);
  --glow2: rgba(56, 189, 248, .14);
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  --radius: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --container: 1240px;
}

/* Base resets & typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg0);
  background-image: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.1) 0px, transparent 50%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-saas {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
}

.grad {
  background: linear-gradient(135deg, #fff 0%, var(--p) 50%, var(--b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.small-caps { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 800; opacity: 0.8; }

/* Layout Components */
.container {
  width: min(var(--container), 90vw);
  margin-inline: auto;
}

@media (max-width: 576px) {
  .container {
    width: min(var(--container), calc(100vw - 24px));
  }
}

.section { padding: 120px 0; }
.section-head { margin-bottom: 60px; text-align: left; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 20px; }
.section-head p { font-size: 1.25rem; color: var(--muted); max-width: 600px; }

/* Navbar Overhaul */
.topbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  /* Kaydırınca topbar--scrolled ile genişleyerek belirgin animasyon için taban daha dar kalsın */
  width: min(1000px, 95vw);
  z-index: 1000;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  transition: all 0.4s var(--ease);
}

.topbar--scrolled {
  top: 10px;
  width: min(1200px, 98vw);
  background: rgba(10, 15, 30, 0.85);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Demo sayfası: orta menü yok, ince şerit, içerik yukarı */
.body--demo {
  padding-top: 0;
}

.topbar--demo {
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 12px clamp(16px, 4vw, 32px);
  background: rgba(7, 10, 20, 0.88);
  backdrop-filter: blur(16px);
}

.topbar--demo.topbar--scrolled {
  top: 0;
  width: 100%;
}

.navbar--demo {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.brand__text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.nav-actions--demo {
  gap: 8px;
}

@media (max-width: 576px) {
  .nav-actions--demo .btn-nav--ghost,
  .nav-actions--demo .btn-nav--outline {
    display: none;
  }
  .nav-actions--demo {
    gap: 6px;
  }
}

.navbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; text-decoration: none !important; color: inherit; }
.brand__icon { 
  width: 40px; height: 40px; 
  background: linear-gradient(135deg, var(--p), var(--b));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.brand__icon svg { width: 22px; height: 22px; color: white; }

/* Raster marka logosu (Snap Quiz — maskotlu geniş format) */
.brand.brand--logo {
  gap: 0;
}

.brand__logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__logo--header {
  height: 44px;
  width: auto;
  max-width: min(220px, 54vw);
}

@media (min-width: 400px) {
  .brand__logo--header {
    height: 48px;
    max-width: min(232px, 50vw);
  }
}

@media (min-width: 992px) {
  .brand__logo--header {
    height: 52px;
    max-width: 248px;
  }
}

.topbar--app .navbar--app .brand__logo--header {
  height: 40px;
  max-width: min(200px, 50vw);
}

@media (min-width: 992px) {
  .topbar--app .navbar--app .brand__logo--header {
    height: 44px;
    max-width: 216px;
  }
}

.site-offcanvas__title .brand__logo--offcanvas,
.app-offcanvas__title .brand__logo--offcanvas {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(180px, 78vw);
  object-fit: contain;
}

.site-offcanvas__title img,
.app-offcanvas__title img {
  vertical-align: top;
}

@media (min-width: 400px) {
  .site-offcanvas__title .brand__logo--offcanvas,
  .app-offcanvas__title .brand__logo--offcanvas {
    height: 40px;
    max-width: 200px;
  }
}

.brand--logo-footer .brand__logo--footer {
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.footer-brand.brand--logo-footer {
  margin-bottom: 18px;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.nav-link:hover { color: #fff; }

/* Landing navbar: çok link + dar genişlikte başlık satır kaymasını önle */
.site-navbar__links {
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.2vw, 24px);
  min-width: 0;
}

.site-navbar__links .nav-link {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-navbar__links .nav-link {
    font-size: 0.8125rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
  max-width: 100%;
}

.btn-nav {
  padding: 9px 16px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-nav--ghost {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.82);
}
.btn-nav--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-nav--outline {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: #ede9fe;
}
.btn-nav--outline:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
  color: #fff;
}

.btn-nav-cta {
  padding: 9px 18px !important;
  font-size: 0.8125rem !important;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.45);
}
.btn-nav-cta__icon,
.btn-nav-cta svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
}

.topbar--compact {
  padding: 8px 16px !important;
}
.topbar--compact .btn-nav {
  padding: 8px 14px !important;
  font-size: 0.75rem !important;
}

/* Landing / demo: mobil menü + offcanvas */
.site-navbar {
  width: 100%;
  gap: clamp(12px, 2vw, 36px);
  flex-wrap: nowrap;
  align-items: center;
}

.site-navbar .brand {
  flex-shrink: 0;
}

@media (max-width: 1199.98px) {
  .site-navbar {
    gap: clamp(10px, 2.5vw, 24px);
  }
}

@media (max-width: 991.98px) {
  .site-navbar {
    gap: clamp(8px, 2vw, 16px);
  }
}

.site-navbar__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 1;
  max-width: 100%;
}

/* Ana sayfa (giriş yok): ince üst şerit — orta menü gizli, linkler çizimcide */
.site-navbar--compact {
  gap: 12px;
}

@media (min-width: 992px) {
  .site-navbar--compact .site-navbar__links {
    display: none !important;
  }
}

.site-nav-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.site-nav-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
}

.site-nav-toggler__icon {
  width: 22px;
  height: 22px;
}

.site-offcanvas.offcanvas {
  --bs-offcanvas-width: min(100vw, 360px);
  background: rgba(8, 10, 20, 0.98);
  border-left: 1px solid var(--border);
}

.site-offcanvas--demo.offcanvas {
  --bs-offcanvas-width: min(100vw, 340px);
}

.site-offcanvas__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-offcanvas__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.site-offcanvas__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-offcanvas__close:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.35);
}

.site-offcanvas__close svg {
  width: 20px;
  height: 20px;
}

.site-offcanvas__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
}

.site-offcanvas__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-offcanvas__link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none !important;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.site-offcanvas__link:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.site-offcanvas__label {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
}

.site-offcanvas__block {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-offcanvas__email {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.site-offcanvas__hint {
  font-size: 0.85rem;
  color: var(--muted2);
  margin: 0 0 12px;
}

.site-offcanvas__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-offcanvas .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

.site-offcanvas .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.site-offcanvas .btn-primary {
  border: none;
}

@media (max-width: 400px) {
  .site-navbar__end .btn-nav {
    padding: 8px 10px !important;
    font-size: 0.72rem !important;
  }
}

/* Hero Section — üstte sabit topbar + daha büyük logo için ek boşluk */
.hero { position: relative; }
.hero:not(.hero--video) {
  padding: 228px 0 100px;
}
.hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.display-saas { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; margin-bottom: 30px; }
.lead-saas { font-size: 1.25rem; color: var(--muted); max-width: 700px; margin-bottom: 40px; }

/* Ana sayfa: tam ekran video hero (Awwwards tarzı sinematik açılış) */
.hero.hero--video {
  min-height: 100svh;
  padding: 0;
  overflow: clip;
  display: flex;
  align-items: stretch;
}

.hero.hero--video .hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(120px, 14vh, 200px) 24px clamp(72px, 10vh, 120px);
}

.hero-video-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg0);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: filter;
  transform: scale(1.01);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero-video-bottom-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(7, 10, 20, 0) 0%,
    rgba(7, 10, 20, 0) 52%,
    rgba(7, 10, 20, 0.55) 82%,
    var(--bg0) 100%
  );
}

.hero-copy--cinematic {
  max-width: min(52rem, 100%);
  margin-inline: auto;
}

.hero-cinematic__kicker {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  letter-spacing: 0.18em;
  font-weight: 700;
  animation: heroCinematicIn 0.85s var(--ease) both;
  animation-delay: 0.06s;
}

.hero-cinematic__title {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 1.25rem;
  text-wrap: balance;
  animation: heroCinematicIn 0.95s var(--ease) both;
  animation-delay: 0.16s;
}

.hero-cinematic__title.display-saas {
  font-size: clamp(2.5rem, 7.5vw, 5.75rem);
  margin-bottom: 1.25rem;
}

.hero-cinematic__lead.lead-saas {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.65;
  font-weight: 400;
  animation: heroCinematicIn 1s var(--ease) both;
  animation-delay: 0.28s;
}

.hero-cta-stack--on-video {
  animation: heroCinematicIn 1.05s var(--ease) both;
  animation-delay: 0.4s;
}

@keyframes heroCinematicIn {
  from {
    opacity: 0;
    transform: translate3d(0, -32px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinematic__kicker,
  .hero-cinematic__title,
  .hero-cinematic__lead.lead-saas,
  .hero-cta-stack--on-video {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }
}

.hero-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 28px;
  margin-bottom: 28px;
}

.hero-cta-stack .hero-stores {
  order: 1;
}

.hero-cta-stack .hero-actions {
  order: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 40px;
}

.hero-cta-stack .hero-actions,
.hero-cta-stack .hero-stores {
  margin-bottom: 0;
}

.hero-stores .footer-store {
  margin: 0;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}

.bento-card {
  grid-column: span 4;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.bento-card:hover {
  background: var(--panel2);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-5px);
}

.bento-card--wide { grid-column: span 8; }
.bento-card--tall { grid-row: span 2; }
.bento-card--full { grid-column: span 12; }

/* Feature styling within cards */
.card-icon {
  width: 56px; height: 56px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--p); }

/* Zig-Zag Features Overhaul */
.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}
.feature-row--reverse { flex-direction: row-reverse; }

.feature-content { flex: 1; min-width: 0; }
.feature-content h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 20px; line-height: 1.15; }
.feature-content > p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0; }

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.feature-bullets__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}
.feature-bullets__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  margin-top: 2px;
}
.feature-bullets__check svg { width: 14px; height: 14px; }

/* Özellik satırı: kutu yok; mockup doğrudan önde, hover’da hafif 3B hareket */
.feature-visual--float {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: min(480px, 65vh);
  background: none;
  border: none;
  overflow: visible;
  perspective: 1200px;
}

.feature-visual__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(360px, 44vw);
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform-style: preserve-3d;
  --feature-tilt-x: 0deg;
  --feature-tilt-y: 0deg;
  --feature-shift-x: 0px;
  --feature-shift-y: 0px;
  transform:
    perspective(1000px)
    rotateX(var(--feature-tilt-x))
    rotateY(var(--feature-tilt-y))
    translate3d(var(--feature-shift-x), var(--feature-shift-y), 0);
  transition: transform 0.5s var(--ease);
}

.feature-visual--float.is-tilt-active .feature-visual__frame {
  transition: transform 0.08s ease-out;
}

.feature-shot {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
  border-radius: clamp(18px, 4vw, 28px);
  border: none;
  object-fit: contain;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 12px 28px rgba(124, 58, 237, 0.1),
    0 0 1px rgba(255, 255, 255, 0.12);
  will-change: transform;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .feature-visual__frame {
    transform: none !important;
    transition: none !important;
  }
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 32px 40px;
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  overflow: hidden;
}

.price-card__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 40%, rgba(124, 58, 237, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(124, 58, 237, 0.12),
    0 0 80px rgba(124, 58, 237, 0.08);
}

.price-card--featured {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(10, 15, 30, 0.4) 100%);
  border-color: rgba(167, 139, 250, 0.45);
  transform: scale(1.04);
  z-index: 2;
  box-shadow:
    0 32px 80px rgba(124, 58, 237, 0.2),
    0 0 0 1px rgba(124, 58, 237, 0.2) inset;
}

.price-card--featured:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow:
    0 40px 90px rgba(124, 58, 237, 0.28),
    0 0 100px rgba(124, 58, 237, 0.12);
}

.price-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.price-card__badge--muted {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.price-card__badge--hot {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #f5f3ff;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

.price-card__list {
  margin: 0 0 28px;
  text-align: left;
}

.ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}
.ul li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(56, 189, 248, 0.9);
  margin-top: 2px;
}

.price-card--featured .ul li svg {
  color: rgba(167, 139, 250, 0.95);
}

.price-card__btn {
  margin-top: auto;
}

.price-value { font-size: clamp(2.5rem, 5vw, 3.25rem); font-family: 'Outfit', sans-serif; margin: 12px 0 20px; line-height: 1; }
.price-value span { font-size: 0.95rem; color: var(--muted); font-weight: 600; }

.price-card__save {
  margin: -8px 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(52, 211, 153, 0.95);
}
.price-card__save--tight {
  margin-top: -4px;
  margin-bottom: 12px;
}

.pricing-credits {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(15, 23, 42, 0.5));
  text-align: center;
}
.pricing-credits__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pricing-credits__sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
}
.pricing-credits__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pricing-credits__chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pricing-credits__chip:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.2);
}

/* Buttons */
.btn {
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--p) 0%, var(--b) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
}

.btn-outline:hover { background: rgba(255,255,255,0.05); }

/* Animation Classes */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  margin-top: 35px;
}

/* Background effects */
.bg-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-card { grid-column: span 12; }
  .feature-row,
  .feature-row--reverse { flex-direction: column !important; gap: 36px; }
  .feature-visual--float { min-height: auto; padding: 12px 8px; }
  .feature-visual--float .feature-visual__frame { max-width: min(280px, 88vw); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--featured {
    transform: none;
  }
  .price-card--featured:hover {
    transform: translateY(-8px);
  }
  .topbar:not(.topbar--app):not(.topbar--demo) {
    width: min(100%, 92vw);
    border-radius: 22px;
  }
  .hero:not(.hero--video) {
    padding: clamp(140px, 26vw, 200px) 0 80px;
  }
  .hero.hero--video .hero__inner {
    padding-top: clamp(96px, 24vw, 160px);
    min-height: 100svh;
  }
  .section {
    padding: 80px 0;
  }
  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .btn-nav {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }
  .btn-nav-cta {
    padding: 8px 14px !important;
  }
}

@media (max-width: 575px) {
  .topbar:not(.topbar--app):not(.topbar--demo) {
    width: calc(100% - 16px);
    max-width: none;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .site-navbar .brand {
    min-width: 0;
    flex: 0 1 auto;
    max-width: min(52%, 200px);
  }

  .site-navbar .brand .brand__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-navbar .brand.brand--logo .brand__logo--header {
    height: 38px;
    max-width: min(148px, 46vw);
  }

  .site-navbar__end {
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
  }

  .site-navbar .nav-actions {
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
  }
}

/* Footer */
.footer {
  padding: 100px 0 50px;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.06));
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-col--brand {
  min-width: 0;
}

.footer-brand {
  margin-bottom: 20px;
  align-items: flex-start;
}

.footer-brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.footer-brand__icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--muted2);
  font-size: 0.8rem;
  margin: 0;
  max-width: 100%;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 64px 0 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-social {
    width: 100%;
    justify-content: flex-start;
  }
}

.footer-col__title {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none !important;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.7), rgba(56, 189, 248, 0.5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  opacity: 0.9;
}

.footer-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.footer-link:hover::before {
  transform: scaleX(1);
}

.footer-link:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.6);
  outline-offset: 2px;
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social__btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.footer-social__btn svg {
  width: 18px;
  height: 18px;
}

.footer-social__btn:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.2);
}

/* --------------------------------------------------------------------------
   Demo page (/demo → demo_test.php)
   -------------------------------------------------------------------------- */
.demo-page {
  position: relative;
  padding: 112px 0 100px;
  min-height: 100vh;
  overflow-x: hidden;
}

.body--demo .demo-page {
  padding-top: 104px;
}

.demo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(56, 189, 248, 0.08), transparent 50%);
  pointer-events: none;
}

.demo-container {
  max-width: 880px;
}

.demo-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none !important;
  margin-bottom: 28px;
  padding: 8px 12px;
  margin-left: -12px;
  border-radius: 12px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.demo-back-home svg {
  width: 18px;
  height: 18px;
}
.demo-back-home:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(-2px);
}

.demo-hero {
  margin-bottom: 40px;
}
.demo-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}
.demo-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}

.demo-flow {
  position: relative;
}

.demo-panel--yt {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transition: padding 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.35s var(--ease);
}

/* Video detayı içindeki YouTube kutusu */
.demo-panel--inline {
  margin-bottom: 22px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.demo-yt-icon {
  display: block;
  width: 26px;
  height: 26px;
  color: #f87171;
  flex-shrink: 0;
}

.demo-yt-icon--sm {
  width: 22px;
  height: 22px;
}

.demo-card__icon--video {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
}

.demo-card__icon--video .demo-yt-icon {
  width: 26px;
  height: 26px;
  color: #fecaca;
}

.demo-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.demo-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 4px 4px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-input-wrap:focus-within {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.demo-input-icon {
  display: flex;
  color: rgba(255, 255, 255, 0.45);
}
.demo-input-icon svg {
  width: 20px;
  height: 20px;
}

.demo-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 14px 12px 14px 0;
  outline: none;
}
.demo-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.demo-hint {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--muted2);
  line-height: 1.5;
}

.demo-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 20px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.demo-subtitle--hide {
  opacity: 0;
  transform: translateY(-8px);
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: stretch;
}

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

.demo-card {
  position: relative;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition:
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.4s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.45s var(--ease),
    max-height 0.5s var(--ease),
    margin 0.45s var(--ease),
    padding 0.45s var(--ease);
  overflow: hidden;
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 10% 0%, rgba(124, 58, 237, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.demo-card:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(124, 58, 237, 0.08);
}
.demo-card:hover:not(:disabled)::before {
  opacity: 1;
}

.demo-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.22);
  margin-bottom: 14px;
  transition: transform 0.4s var(--ease);
}
.demo-card__icon svg {
  width: 22px;
  height: 22px;
  color: #ede9fe;
}

.demo-card:hover:not(:disabled) .demo-card__icon {
  transform: scale(1.05);
}

.demo-card__title {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.demo-card__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Seçim sonrası: diğer kartlar kaybolur */
.demo-flow--open .demo-card--gone {
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

.demo-flow--open .demo-card--selected {
  grid-column: 1 / -1;
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 70px rgba(124, 58, 237, 0.15);
  transform: none;
  cursor: default;
}
.demo-flow--open .demo-card--selected::before {
  opacity: 1;
}

.demo-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.23, 1, 0.32, 1), margin 0.45s var(--ease);
  margin-top: 0;
}

.demo-expand.demo-expand--visible {
  grid-template-rows: 1fr;
  margin-top: 20px;
}

.demo-expand__inner {
  overflow: hidden;
  min-height: 0;
}

.demo-detail {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 26, 0.65);
  padding: 28px;
  animation: demoDetailIn 0.5s var(--ease) both;
}

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

.demo-detail__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-detail__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.22);
  flex-shrink: 0;
}

.demo-detail__icon-wrap .demo-yt-icon {
  color: #fecaca;
}

.demo-detail__head svg:not(.demo-yt-icon) {
  width: 22px;
  height: 22px;
  color: rgba(167, 139, 250, 0.95);
}

.demo-detail__head .demo-detail__icon-wrap svg {
  width: 22px;
  height: 22px;
}

.demo-detail__head h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  margin: 0;
}

.demo-detail__text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 20px;
}

.demo-placeholder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.demo-placeholder__line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
  animation: demoShimmer 1.8s ease-in-out infinite;
}
.demo-placeholder__line--short {
  width: 66%;
}
.demo-placeholder__line:nth-child(2) {
  animation-delay: 0.15s;
}
.demo-placeholder__line:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes demoShimmer {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

.demo-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(124, 58, 237, 0.04);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
  margin-bottom: 18px;
}
.demo-dropzone:hover {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.08);
  transform: scale(1.01);
}

.demo-dropzone__icon svg {
  width: 36px;
  height: 36px;
  color: rgba(167, 139, 250, 0.9);
  margin-bottom: 12px;
}

.demo-dropzone__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.demo-dropzone__meta {
  font-size: 0.75rem;
  color: var(--muted2);
}

.demo-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.demo-file-name {
  font-size: 0.8125rem;
  color: rgba(167, 239, 250, 0.9);
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.demo-cta {
  width: 100%;
  justify-content: center;
  opacity: 0.85;
}

.demo-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.demo-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.demo-reset svg {
  width: 16px;
  height: 16px;
}
.demo-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Kullanıcı yorumları (index)
   -------------------------------------------------------------------------- */
.section--testimonials {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), transparent 55%);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 640px;
}

.section-head--center h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.testimonials-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 991px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

.testimonial-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 26px 24px 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.testimonial-card__quote {
  color: rgba(124, 58, 237, 0.45);
  margin-bottom: 12px;
}

.testimonial-card__quote svg {
  width: 28px;
  height: 28px;
}

.testimonial-card__text {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #ede9fe;
  flex-shrink: 0;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.testimonial-card__name {
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--muted2);
}

.testimonial-card__badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-card:nth-child(1) .testimonial-card__badge,
.testimonial-card:nth-child(3) .testimonial-card__badge {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.12);
  color: #e9d5ff;
}

/* --------------------------------------------------------------------------
   Misafir banner (ana sayfa)
   -------------------------------------------------------------------------- */
.guest-banner {
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
}

.guest-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(244, 114, 182, 0.08));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.guest-banner__icon {
  flex-shrink: 0;
  color: rgba(244, 114, 182, 0.95);
  margin-top: 2px;
}
.guest-banner__icon svg {
  width: 20px;
  height: 20px;
}

.guest-banner__text {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.guest-banner__text a {
  color: #e9d5ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guest-banner__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.guest-banner__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.guest-banner--hidden {
  display: none !important;
}

.nav-user-email {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Giriş / kayıt sayfaları
   -------------------------------------------------------------------------- */
.auth-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 120px);
  padding: 100px 0 80px;
}

.body--auth .auth-page {
  padding-bottom: 57px;
}

.body--auth .auth-container {
  margin-top: 20px;
}

.body--auth .topbar {
  z-index: 1400;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% -20%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(56, 189, 248, 0.08), transparent 50%);
  pointer-events: none;
}

.auth-container {
  max-width: 460px;
}

.auth-card--wide {
  max-width: 480px;
  margin-inline: auto;
}

.auth-card {
  position: relative;
  z-index: 1002;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 20, 35, 0.75);
  backdrop-filter: blur(14px);
  padding: 38px 34px 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-card__head {
  margin-bottom: 28px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none !important;
  margin-bottom: 16px;
  transition: color 0.2s var(--ease);
}
.auth-back svg {
  width: 16px;
  height: 16px;
}
.auth-back:hover {
  color: #fff;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.auth-sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(203, 213, 225, 0.88);
  line-height: 1.65;
  max-width: 38rem;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 18px;
  line-height: 1.45;
}

.auth-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.auth-alert--ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.auth-hint--adblock {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.72);
  margin: -6px 0 18px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.07);
}

.auth-hint--adblock code {
  font-size: 0.85em;
  word-break: break-all;
}

.auth-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.auth-input-icon svg {
  width: 18px;
  height: 18px;
}

.auth-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.auth-input:focus {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--p);
}

.auth-link-muted {
  font-size: 0.8125rem;
  color: var(--muted2);
  text-decoration: none !important;
}
.auth-link-muted:hover {
  color: #fff;
  text-decoration: underline !important;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 20px !important;
  font-weight: 700 !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-alt-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.auth-oauth:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
  color: #fff;
}

.auth-oauth:active {
  transform: scale(0.99);
}

.auth-oauth--google {
  border-color: rgba(66, 133, 244, 0.45);
  background: linear-gradient(180deg, rgba(66, 133, 244, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.auth-oauth--google:hover {
  border-color: rgba(66, 133, 244, 0.65);
  background: linear-gradient(180deg, rgba(66, 133, 244, 0.2), rgba(255, 255, 255, 0.07));
}

.auth-oauth--google .auth-oauth__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.auth-oauth--google .auth-oauth__brand svg {
  width: 16px;
  height: 16px;
}

.auth-foot {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-foot a {
  color: #e9d5ff;
  font-weight: 700;
  text-decoration: none !important;
}
.auth-foot a:hover {
  text-decoration: underline !important;
}

.auth-guest-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.08);
  color: #ede9fe;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.auth-guest-btn svg {
  width: 18px;
  height: 18px;
}

.auth-guest-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.65);
}

.auth-guest-hint {
  margin: 12px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted2);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sayfa yükleyici (ilk giriş + dahili geçiş)
   -------------------------------------------------------------------------- */
body.page-loader-lock {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.page-loader.is-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.page-loader__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(124, 58, 237, 0.2), transparent 55%),
    rgba(7, 10, 20, 0.92);
  backdrop-filter: blur(12px);
}

.page-loader__box {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 44px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 20, 35, 0.85);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.12) inset;
  min-width: min(300px, 88vw);
}

.page-loader__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.page-loader__spark {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff, var(--p), var(--b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-loader__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.page-loader__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.page-loader__fill {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--p), var(--b));
  animation: pageLoaderBar 1.1s ease-in-out infinite;
}

@keyframes pageLoaderBar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.page-loader__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted2);
  font-weight: 600;
}

/* Reklam engelleyici: tam ekran kırmızı uyarı (Brave / uBlock; periyodik yeniden kontrol) */
html.snapnote--adblock-detected,
html.snapnote--adblock-detected body {
  overflow: hidden !important;
  height: 100%;
}

.snapnote-adblock-wall {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: auto;
}

.snapnote-adblock-wall--alert .snapnote-adblock-wall__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 55% at 50% 25%, rgba(248, 113, 113, 0.35), transparent 50%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(127, 29, 29, 0.5), transparent 45%),
    linear-gradient(180deg, #1a0505 0%, #0f0202 50%, #1c0808 100%);
  backdrop-filter: blur(16px);
}

.snapnote-adblock-wall__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 32px 28px;
  border-radius: 22px;
  border: 2px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(165deg, rgba(69, 10, 10, 0.96) 0%, rgba(28, 6, 6, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(254, 202, 202, 0.12) inset,
    0 32px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(220, 38, 38, 0.25);
  text-align: center;
}

.snapnote-adblock-wall--alert .snapnote-adblock-wall__panel {
  animation: snapnoteAdblockPulse 2.8s ease-in-out infinite;
}

@keyframes snapnoteAdblockPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(254, 202, 202, 0.12) inset,
      0 32px 100px rgba(0, 0, 0, 0.65),
      0 0 60px rgba(220, 38, 38, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(254, 202, 202, 0.2) inset,
      0 32px 100px rgba(0, 0, 0, 0.65),
      0 0 100px rgba(239, 68, 68, 0.45);
  }
}

.snapnote-adblock-wall__badge {
  margin: 0 auto 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #450a0a;
  background: linear-gradient(145deg, #fecaca, #f87171);
  border: 2px solid rgba(254, 202, 202, 0.9);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
}

.snapnote-adblock-wall__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fca5a5;
}

.snapnote-adblock-wall__title {
  margin: 0 0 14px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 4.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fef2f2;
}

.snapnote-adblock-wall__text {
  margin: 0 0 22px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #fecaca;
}

.snapnote-adblock-wall__text strong {
  color: #fff;
  font-weight: 700;
}

.snapnote-adblock-wall__hint {
  min-height: 1.35em;
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 600;
  color: #fde68a;
}

.snapnote-adblock-wall__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snapnote-adblock-wall__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.snapnote-adblock-wall__btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.snapnote-adblock-wall__btn--primary {
  color: #450a0a;
  background: linear-gradient(180deg, #fecaca 0%, #f87171 100%);
  border-color: rgba(254, 202, 202, 0.95);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.45);
}

.snapnote-adblock-wall__btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(220, 38, 38, 0.55);
}

.snapnote-adblock-wall__btn--ghost {
  color: #fecaca;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(248, 113, 113, 0.35);
}

.snapnote-adblock-wall__btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(248, 113, 113, 0.55);
}

/* Footer: marka metni + mağaza */
.footer-brand__text {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: min(360px, 100%);
  margin: 0 0 18px;
  line-height: 1.55;
}

.footer-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

@media (max-width: 480px) {
  .footer-stores {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-store {
    justify-content: center;
  }
}

.footer-store:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.footer-store__icon {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-store__icon svg {
  width: 26px;
  height: 26px;
}

.footer-store__icon--play svg {
  width: 22px;
  height: 22px;
}

.footer-store__txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.footer-store__txt small {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-store__txt strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-store--apple .footer-store__txt small {
  letter-spacing: 0.02em;
}

.footer-social__svg--tiktok {
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Auth: şifre göster
   -------------------------------------------------------------------------- */
.auth-input-wrap--password .auth-input--with-toggle {
  padding-right: 48px;
}

.auth-toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  z-index: 2;
}

.auth-toggle-pwd:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-eye {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
  transform-origin: 50% 55%;
}

.auth-eye__svg {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  transform-origin: center 60%;
}

.auth-eye:not(.auth-eye--visible) .auth-eye__svg--open {
  opacity: 0;
  transform: scaleY(0.2);
}

.auth-eye:not(.auth-eye--visible) .auth-eye__svg--closed {
  opacity: 1;
  transform: scaleY(1);
}

.auth-eye.auth-eye--visible .auth-eye__svg--open {
  opacity: 1;
  transform: scaleY(1);
}

.auth-eye.auth-eye--visible .auth-eye__svg--closed {
  opacity: 0;
  transform: scaleY(0.2);
}

.auth-toggle-pwd--blink .auth-eye {
  animation: authEyeBlinkWrap 0.45s ease;
}

@keyframes authEyeBlinkWrap {
  0%,
  100% {
    transform: scaleY(1);
  }
  42% {
    transform: scaleY(0.18);
  }
  70% {
    transform: scaleY(1.08);
  }
}

/* --------------------------------------------------------------------------
   App shell (app.php) — misafir / ücretsiz plan çalışma alanı
   -------------------------------------------------------------------------- */
.body--app {
  padding-top: 0;
}

.topbar--app {
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 12px clamp(10px, 3vw, 28px);
  background: rgba(7, 10, 20, 0.92);
  backdrop-filter: blur(18px);
  z-index: 1000;
}

@media (max-width: 991px) {
  /* Sabit app topbar altında içerik “yutulmasın” */
  .body--app {
    padding-top: 58px;
  }
}

.topbar--app.topbar--scrolled {
  top: 0;
  width: 100%;
}

.snapnote--premium .topbar--app {
  background: linear-gradient(90deg, rgba(12, 10, 22, 0.96), rgba(55, 28, 12, 0.94));
  border-bottom: 1px solid rgba(234, 179, 8, 0.28);
  box-shadow: 0 10px 36px rgba(234, 179, 8, 0.1);
}

.app-user-plan--premium {
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 800;
  font-size: 0.7rem;
  background: linear-gradient(105deg, #fde68a 0%, #fb7185 45%, #a78bfa 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.35));
}

.snapnote--premium .app-user-menu__credits {
  border-radius: 12px;
  padding: 6px 10px;
  background: linear-gradient(100deg, rgba(234, 179, 8, 0.14), rgba(124, 58, 237, 0.12));
}

/* Premium — çalışma alanı ve kartlar (tam tema) */
.snapnote--premium .demo-bg,
.snapnote--premium .app-shell__bg {
  background:
    radial-gradient(ellipse 120% 70% at 0% -15%, rgba(234, 179, 8, 0.2), transparent 52%),
    radial-gradient(ellipse 90% 55% at 100% 5%, rgba(124, 58, 237, 0.22), transparent 48%),
    linear-gradient(185deg, #0c0818 0%, #05050c 55%, #030308 100%) !important;
}

/* Premium app: dibi biraz ılındır; tam siyah uçu azalır */
.body--app.snapnote--premium .demo-bg,
.body--app.snapnote--premium .app-shell__bg {
  background:
    radial-gradient(ellipse 100% 65% at 5% 0%, rgba(234, 179, 8, 0.16), transparent 50%),
    radial-gradient(ellipse 85% 50% at 100% 10%, rgba(124, 58, 237, 0.2), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(56, 189, 248, 0.06), transparent 55%),
    linear-gradient(195deg, #0e0a1a 0%, #08060f 48%, #06050e 100%) !important;
}

.snapnote--premium .app-hero-banner {
  border-color: rgba(234, 179, 8, 0.38);
  background:
    linear-gradient(150deg, rgba(234, 179, 8, 0.11), rgba(124, 58, 237, 0.14)),
    rgba(6, 8, 18, 0.72);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(234, 179, 8, 0.1) inset;
}

.snapnote--premium .app-hero-banner__name {
  background: linear-gradient(120deg, #fde68a, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
}

.snapnote--premium .app-nav-link.is-active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(124, 58, 237, 0.16));
  border-color: rgba(234, 179, 8, 0.4);
  color: #fffbeb;
}

.snapnote--premium .app-nav-link:hover {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.06);
}

.snapnote--premium .brand--app .brand__icon {
  color: #fcd34d;
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.45));
}

.snapnote--premium .brand--app.brand--logo .brand__logo--header {
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.35));
}

.snapnote--premium .app-footer {
  border-top: 1px solid rgba(234, 179, 8, 0.22);
  background: linear-gradient(180deg, transparent, rgba(20, 14, 6, 0.55));
}

.snapnote--premium .demo-card {
  border-color: rgba(234, 179, 8, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.snapnote--premium .demo-card:hover:not(:disabled) {
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: 0 22px 50px rgba(234, 179, 8, 0.12);
}

.snapnote--premium .app-exclusive__item,
.snapnote--premium .app-tip-card {
  border-color: rgba(234, 179, 8, 0.2) !important;
}

.snapnote--premium .membership-page--in-app .membership-bg {
  opacity: 0.9;
  filter: saturate(1.08);
}

.snapnote--premium .membership-card--featured {
  border-color: rgba(234, 179, 8, 0.35);
  box-shadow: 0 24px 60px rgba(234, 179, 8, 0.12);
}

.snapnote--premium .ai-assistant-dock {
  border-color: rgba(234, 179, 8, 0.25);
}

.snapnote--premium .topbar.site-navbar {
  background: linear-gradient(90deg, rgba(10, 8, 20, 0.92), rgba(45, 28, 12, 0.88));
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
  box-shadow: 0 12px 40px rgba(234, 179, 8, 0.08);
}

.snapnote--premium .topbar.site-navbar .brand__icon {
  color: #fcd34d;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.35));
}

.snapnote--premium .topbar .site-navbar .brand.brand--logo .brand__logo--header {
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.3));
}

.logout-standalone {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.logout-standalone__text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.auth-row--remember {
  margin-bottom: 15px;
}

/* Logo | menü (orta, kompakt grup) | Pro + profil + reklam — tam genişlik, yatay scroll yok */
.navbar--app {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  /* Sütunlar arası: ne sıkışık ne savruk */
  gap: 8px clamp(8px, 1.25vw, 18px);
}

.navbar--app .brand {
  justify-self: start;
}

.navbar--app .navbar-app__aside {
  margin-left: 0;
  justify-self: end;
}

.brand--app .brand__text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.app-nav-scroll {
  min-width: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 2px 4px;
  min-height: 44px;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none !important;
  padding: 7px 10px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  flex: 0 1 auto;
}

.app-nav-link__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.app-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.app-nav-link.is-active {
  color: #fff;
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.35);
}

.app-nav-link.is-active .app-nav-link__icon {
  color: #e9d5ff;
  opacity: 1;
}

.app-nav-link--ghost {
  opacity: 0.92;
  font-weight: 600;
}

button.app-nav-link.app-nav-link--btn {
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  text-align: center;
  vertical-align: baseline;
  line-height: inherit;
}

.app-nav-alert-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 6px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.6),
    0 0 14px rgba(239, 68, 68, 0.65);
  vertical-align: middle;
  animation: appNavAlertPulse 1.05s ease-in-out infinite;
}

.app-nav-alert-dot--offcanvas {
  box-shadow:
    0 0 0 2px rgba(2, 6, 23, 0.55),
    0 0 14px rgba(239, 68, 68, 0.65);
}

@keyframes appNavAlertPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  45% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.88);
    opacity: 0.7;
  }
}

.app-tasks-modal__dialog {
  max-width: min(560px, calc(100vw - 1.5rem));
}

.app-tasks-modal .modal-content.app-tasks-modal__content {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #12182a 0%, #0a0e18 55%, #0d1224 100%);
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(124, 58, 237, 0.12);
}

.app-tasks-modal__hero {
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  pointer-events: none;
  overflow: hidden;
}

.app-tasks-modal__hero-blobs {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 180%;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(244, 114, 182, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 75% 25%, rgba(96, 165, 250, 0.4), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(167, 139, 250, 0.25), transparent 45%);
  animation: appTasksModalBlobs 14s ease-in-out infinite alternate;
}

.app-tasks-modal__hero-shine {
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    transparent 55%
  );
  animation: appTasksModalShine 7s ease-in-out infinite;
}

@keyframes appTasksModalBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(2%, 3%) scale(1.04);
  }
}

@keyframes appTasksModalShine {
  0%,
  100% {
    transform: translateX(-20%) rotate(12deg);
    opacity: 0.5;
  }
  50% {
    transform: translateX(35%) rotate(12deg);
    opacity: 0.85;
  }
}

.app-tasks-modal__header {
  position: relative;
  z-index: 1;
  border-bottom: none;
  padding: 1.5rem 1.5rem 1rem;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-tasks-modal__title-wrap {
  flex: 1;
  min-width: 0;
}

.app-tasks-modal__kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.28));
  border: 1px solid rgba(232, 121, 249, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.app-tasks-modal__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  background: linear-gradient(120deg, #fff 0%, #e9d5ff 45%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(124, 58, 237, 0.35));
}

.app-tasks-modal__subtitle {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
  max-width: 42ch;
}

.app-tasks-modal__close {
  filter: invert(1) grayscale(100%);
  opacity: 0.75;
  flex-shrink: 0;
}

.app-tasks-modal__close:hover {
  opacity: 1;
}

.app-tasks-modal__body {
  position: relative;
  z-index: 1;
  padding: 0 1.35rem 1.65rem;
  max-height: min(58vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.55) rgba(15, 23, 42, 0.65);
}

.app-tasks-modal__body::-webkit-scrollbar {
  width: 8px;
}

.app-tasks-modal__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin: 6px 0;
}

.app-tasks-modal__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.85), rgba(99, 102, 241, 0.75));
  border-radius: 999px;
  border: 2px solid rgba(10, 14, 22, 0.9);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}

.app-tasks-modal__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c4b5fd, #818cf8);
}

.app-tasks-modal__grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 4px;
}

.app-tasks-modal__grid--dynamic {
  position: relative;
  min-height: 120px;
}

.app-tasks-modal__grid--loading .app-task-card {
  opacity: 0.55;
  pointer-events: none;
}

.app-tasks-modal__skeleton {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  justify-content: center;
}

.app-tasks-modal__skeleton.is-active {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 14px;
}

.app-tasks-modal__skeleton-line {
  display: block;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.15), rgba(226, 232, 240, 0.28), rgba(148, 163, 184, 0.15));
  background-size: 200% 100%;
  animation: appTasksSkShimmer 1.1s ease-in-out infinite;
}

.app-tasks-modal__skeleton-line--short {
  width: 62%;
}

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

.app-task-card--dynamic {
  animation: appTaskCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--task-i, 0) * 70ms);
}

@keyframes appTaskCardIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-task-card__progress {
  margin: 0 0 10px;
}

.app-task-card__progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.app-task-card__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(34, 211, 238, 0.95), rgba(59, 130, 246, 0.85));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-task-card--state-claim .app-task-card__progress-fill {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.25), rgba(253, 224, 71, 0.95), rgba(234, 179, 8, 0.9));
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.app-task-card__progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.95);
}

.app-task-card__wait {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.95);
  user-select: none;
}

.app-task-card--state-progress {
  border-color: rgba(100, 116, 139, 0.35);
}

.app-task-card--emerald {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.2) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--rose {
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.22) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--gold {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.22) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--mint {
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.2) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--indigo {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.22) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--sky {
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.22) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--amber {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.22) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--sunset {
  background: linear-gradient(145deg, rgba(249, 168, 212, 0.18) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--slate {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.22) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-tasks-modal__footnote {
  margin: 1.35rem 0 0;
  padding-top: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(167, 180, 198, 0.88);
  text-align: center;
}

.app-task-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.65) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.app-task-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.app-task-card--state-claim {
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.15),
    0 8px 32px rgba(234, 179, 8, 0.12);
}

.app-task-card--state-goto .app-task-card__goto {
  animation: appTaskGotoPulse 2.2s ease-in-out infinite;
}

@keyframes appTaskGotoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0);
  }
}

.app-task-card--state-done {
  opacity: 0.82;
  border-color: rgba(52, 211, 153, 0.25);
}

.app-task-card--pop {
  animation: appTaskPop 0.55s var(--ease) both;
}

@keyframes appTaskPop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.app-task-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 255, 255, 0.04) 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.app-task-card--sunrise {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.18) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--violet {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.2) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--ocean {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0.72) 55%);
}

.app-task-card--muted {
  background: linear-gradient(145deg, rgba(71, 85, 105, 0.2) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.app-task-card__left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.app-task-card__icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.app-task-card__icon-wrap--locked {
  background: rgba(51, 65, 85, 0.5);
}

.app-task-card__lucide {
  width: 24px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.app-task-card__copy {
  min-width: 0;
}

.app-task-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.app-task-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-task-card__alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.65),
    0 0 16px rgba(239, 68, 68, 0.65);
  flex-shrink: 0;
  animation: appTaskAlertPulse 1.05s ease-in-out infinite;
}

@keyframes appTaskAlertPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.65;
  }
  45% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.88);
    opacity: 0.7;
  }
}

.app-task-card__desc {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(214, 222, 235, 0.9);
}

.app-task-card__reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.app-task-card__reward svg {
  width: 14px;
  height: 14px;
}

.app-task-card__reward--muted {
  color: rgba(148, 163, 184, 0.95);
  background: rgba(51, 65, 85, 0.35);
  border-color: rgba(100, 116, 139, 0.4);
}

.app-task-card__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 88px;
}

.app-task-card__claim {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: linear-gradient(180deg, #fde047 0%, #eab308 48%, #ca8a04 100%);
  box-shadow:
    0 2px 0 rgba(180, 83, 9, 0.55),
    0 8px 22px rgba(234, 179, 8, 0.35);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
  overflow: hidden;
}

.app-task-card__claim:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.app-task-card__claim:active {
  transform: translateY(1px);
}

.app-task-card__claim-text {
  position: relative;
  z-index: 1;
}

.app-task-card__claim-burst {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.35), transparent 40%);
  animation: appTaskClaimSpin 4s linear infinite;
  opacity: 0.45;
}

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

.app-task-card__goto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none !important;
  color: #e0f2fe !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.45), rgba(14, 165, 233, 0.55));
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.app-task-card__goto:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.app-task-card__done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6ee7b7;
  white-space: nowrap;
}

.app-task-card__done svg {
  width: 18px;
  height: 18px;
}

.app-task-card__badge-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(30, 41, 59, 0.85);
  border: 1px dashed rgba(100, 116, 139, 0.55);
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .app-tasks-modal__hero-blobs,
  .app-tasks-modal__hero-shine,
  .app-task-card__claim-burst,
  .app-task-card--state-goto .app-task-card__goto {
    animation: none !important;
  }

  .app-task-card--pop {
    animation: none !important;
  }

  .app-task-card__alert-dot {
    animation: none !important;
  }

  .app-nav-alert-dot {
    animation: none !important;
  }
}

.snapnote--premium .app-tasks-modal .modal-content.app-tasks-modal__content {
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow:
    0 0 0 1px rgba(234, 179, 8, 0.12) inset,
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(250, 204, 21, 0.1);
}

.snapnote--premium .app-tasks-modal__kicker {
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(244, 114, 182, 0.22));
  border-color: rgba(250, 204, 21, 0.45);
}

@media (max-width: 480px) {
  .app-task-card {
    flex-direction: column;
    align-items: stretch;
  }

  .app-task-card__action {
    min-width: 0;
    justify-content: stretch;
  }

  .app-task-card__claim,
  .app-task-card__goto {
    width: 100%;
  }
}

.navbar-app__aside {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.app-mnav-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.app-mnav-toggler:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.35);
}

.app-mnav-toggler__icon {
  width: 22px;
  height: 22px;
}

.app-offcanvas.offcanvas {
  --bs-offcanvas-width: min(100vw, 320px);
  background: rgba(7, 10, 20, 0.98);
  border-right: none;
  border-left: 1px solid var(--border);
}

.app-offcanvas__block {
  padding: 8px 2px 12px;
}

.app-offcanvas__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-offcanvas__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.app-offcanvas__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.app-offcanvas__close:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.35);
}

.app-offcanvas__close svg {
  width: 20px;
  height: 20px;
}

.app-offcanvas__body {
  padding-top: 8px;
}

.app-offcanvas__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-offcanvas__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none !important;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.app-offcanvas__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.88;
}

.app-offcanvas__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.app-offcanvas__link.is-active {
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #fff;
}

.app-offcanvas__link--ghost {
  opacity: 0.92;
}

button.app-offcanvas__link.app-offcanvas__link--btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  box-shadow: none;
}

/* Arkadaşlar modal (Firestore; sohbet yok) */
.snapnote-friends-modal .modal-content.snapnote-friends-modal__content {
  background: linear-gradient(165deg, #12182a 0%, #0a0e18 55%, #0d1224 100%);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 48px rgba(0, 0, 0, 0.5);
}

.snapnote-friends-modal__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.snapnote-friends-modal__head .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.snapnote-friends-modal__body {
  max-height: min(70vh, 640px);
}

.snapnote-friends-modal__tabs .nav-link {
  color: rgba(255, 255, 255, 0.65);
  border-color: transparent;
}

.snapnote-friends-modal__tabs .nav-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.snapnote-friends-modal__tabs .nav-link.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.45);
}

.snapnote-friends-modal__ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snapnote-friends-modal__li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.snapnote-friends-modal__li-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.snapnote-friends-modal__incoming,
.snapnote-friends-modal__friend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.snapnote-friends-modal__av {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
  flex-shrink: 0;
}

.snapnote-friends-modal__name {
  min-width: 0;
}

.snapnote-friends-modal__inc-act {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.snapnote-friends-modal__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.snapnote-friends-modal__icon-btn:active {
  transform: scale(0.96);
}

.snapnote-friends-modal__icon-btn--ok {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.snapnote-friends-modal__icon-btn--ok:hover {
  background: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.snapnote-friends-modal__icon-btn--no {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.snapnote-friends-modal__icon-btn--no:hover {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
}

.snapnote-friends-modal__icon-svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.snapnote-friends-modal__panes {
  padding-top: 12px;
}

.snapnote-friends-modal__empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.snapnote-friends-modal__sub,
.snapnote-friends-modal .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

.snapnote-friends-modal .form-control,
.snapnote-friends-modal .form-select {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.snapnote-friends-modal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.snapnote-friends-modal pre.snapnote-friends-modal__share-pre {
  max-height: 240px;
  overflow: auto;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.snapnote-friends-modal__li-head--click {
  cursor: pointer;
  border-radius: 8px;
  margin: -4px -4px 0;
  padding: 4px;
  transition: background 0.15s ease;
}

.snapnote-friends-modal__li-head--click:hover {
  background: rgba(255, 255, 255, 0.06);
}

.snapnote-friends-modal__share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

/* Paylaşılanlar — küçük Paylaş tetikleyici */
.snapnote-friends-share-open-btn {
  border: 1px solid rgba(147, 197, 253, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: #e0f2fe;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.snapnote-friends-share-open-btn:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(147, 197, 253, 0.65);
  color: #fff;
  transform: translateY(-1px);
}

/* Arkadaşlar modal / menü — bildirim rozeti */
[data-bs-target="#snapnoteFriendsModal"] {
  position: relative;
}

.snapnote-friends-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.45);
  pointer-events: none;
  z-index: 2;
}

.app-offcanvas__link--btn .snapnote-friends-badge {
  top: 6px;
  right: 10px;
}

.app-user-menu__item[data-bs-target="#snapnoteFriendsModal"] .snapnote-friends-badge {
  top: 8px;
  right: 10px;
}

/* Paylaş modalı — alıcı chip + arkadaş seçici */
.snapnote-share-friend-chip {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 10px;
  min-height: 44px;
}

.snapnote-share-friend-chip:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
}

.snapnote-share-friend-chip__av {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.snapnote-share-friend-chip__av--empty {
  background: rgba(148, 163, 184, 0.2);
}

.snapnote-share-friend-chip__img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.snapnote-share-friend-chip__chev {
  color: rgba(148, 163, 184, 0.9);
}

.snapnote-share-friend-pick-modal {
  z-index: 1070;
}

.snapnote-share-friend-pick-modal__content {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 14px;
}

.snapnote-share-friend-pick__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(60vh, 360px);
  overflow-y: auto;
}

.snapnote-share-friend-pick__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.snapnote-share-friend-pick__row:hover,
.snapnote-share-friend-pick__row:focus {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(96, 165, 250, 0.35);
  outline: none;
}

.snapnote-share-friend-pick__av {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.35);
  font-weight: 700;
  color: #fff;
}

.snapnote-share-friend-pick__av--letter {
  font-size: 1rem;
}

.snapnote-share-friend-pick__img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}

.snapnote-share-friend-pick__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

/* Not paylaş (ikinci modal) */
.snapnote-share-note-modal .modal-content.snapnote-share-note-modal__content {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.snapnote-share-note-modal .modal-header {
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

.snapnote-share-note-modal .form-label {
  color: rgba(226, 232, 240, 0.85);
}

.snapnote-share-note-modal .form-select,
.snapnote-share-note-modal .form-control {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f8fafc;
}

.snapnote-share-note-modal .form-select:focus,
.snapnote-share-note-modal .form-control:focus {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
}

.snapnote-share-note-modal .form-text {
  color: rgba(148, 163, 184, 0.95);
}

@media (max-width: 1199px) and (min-width: 992px) {
  /* Orta genişlik: menü ikinci satırda tam genişlik, yatay scroll yok */
  .navbar--app {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 10px;
    column-gap: 12px;
  }

  .navbar--app .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .navbar--app .navbar-app__aside {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .navbar--app .app-nav-scroll {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
  }

  .app-nav-links {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  /* Menü offcanvas’ta; sadece logo + sağ blok — aside her zaman sağ köşe */
  .navbar--app {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .navbar--app .brand {
    grid-column: 1;
    min-width: 0;
  }

  .navbar--app .navbar-app__aside {
    grid-column: 3;
    justify-self: end;
  }

  .navbar--app .brand__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46vw;
  }

  .navbar--app .brand.brand--logo .brand__logo--header {
    height: 36px;
    max-width: min(168px, 44vw);
  }

  /* Mobil app header: logo header'da yok; profil solda, burger sağda */
  .navbar--app {
    grid-template-columns: 1fr;
  }

  .navbar--app .navbar-app__aside {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .navbar--app .app-nav-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
  }

  /* Mobilde günlük seri + reklam butonu header'da kalsın (kompaktlaşır) */
  .navbar--app .app-login-streak {
    padding: 6px 10px 6px 9px;
  }
}

@media (max-width: 420px) {
  .app-user-trigger {
    max-width: min(160px, 42vw);
    gap: 6px;
    padding: 5px 8px 5px 5px;
  }

  .app-user-meta {
    display: none;
  }
}

.app-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Günlük giriş serisi — Pro ile profil arası */
.app-login-streak {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(150deg, rgba(35, 28, 52, 0.95), rgba(15, 23, 42, 0.9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 4px 20px rgba(249, 115, 22, 0.14),
    0 0 24px rgba(251, 113, 133, 0.08);
  flex-shrink: 0;
  animation: appLoginStreakAppear 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-login-streak__flame {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.45));
}

.app-login-streak__ic {
  width: 16px;
  height: 16px;
  color: #fb923c;
  animation: appLoginStreakFlame 1.55s ease-in-out infinite;
}

.app-login-streak__num {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fef3c7;
  min-width: 1ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  animation: appLoginStreakNumPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes appLoginStreakAppear {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes appLoginStreakFlame {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(-2deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-2px) scale(1.1) rotate(2deg);
    opacity: 0.9;
  }
}

@keyframes appLoginStreakNumPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.snapnote-modal--streak-reset {
  opacity: 0;
  transition: opacity 0.26s ease;
}

.snapnote-modal--streak-reset.is-visible {
  opacity: 1;
}

.snapnote-modal__box--streak {
  position: relative;
  border-color: rgba(251, 146, 60, 0.35);
  overflow: hidden;
}

.snapnote-streak-reset__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(251, 146, 60, 0.22), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: snapnoteStreakResetGlow 4s ease-in-out infinite;
}

.snapnote-modal__box--streak .snapnote-modal__icon,
.snapnote-modal__box--streak .snapnote-modal__title,
.snapnote-modal__box--streak .snapnote-modal__text,
.snapnote-modal__box--streak .snapnote-streak-reset__hint,
.snapnote-modal__box--streak .snapnote-modal__actions {
  position: relative;
  z-index: 1;
}

.snapnote-streak-reset__icon {
  color: #fb923c;
  filter: drop-shadow(0 0 12px rgba(251, 146, 60, 0.5));
}

.snapnote-streak-reset__hint {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
}

@keyframes snapnoteStreakResetGlow {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Reklam ödülü — sağ uç (profilden sonra, ücretsiz planda sıkışmayı azaltır) */
.app-ad-reward-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 45%, #f59e0b 100%);
  background-size: 200% 200%;
  animation: appAdRewardBtnShift 5s ease infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 22px rgba(124, 58, 237, 0.45),
    0 0 28px rgba(236, 72, 153, 0.25);
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  flex-shrink: 0;
  max-width: 100%;
}

.app-ad-reward-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.app-ad-reward-btn:active {
  transform: translateY(0) scale(0.98);
}

.app-ad-reward-btn__glow {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.5), rgba(236, 72, 153, 0.35), rgba(59, 130, 246, 0.4));
  opacity: 0.55;
  z-index: 0;
  filter: blur(8px);
  animation: appAdRewardGlow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.app-ad-reward-btn__ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(253, 224, 71, 0.35);
  z-index: 0;
  animation: appAdRewardRing 2.2s ease-in-out infinite;
  pointer-events: none;
}

.app-ad-reward-btn__ic {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.app-ad-reward-btn__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.app-ad-reward-btn__line {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-ad-reward-btn__sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(254, 249, 195, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@keyframes appAdRewardBtnShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes appAdRewardGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.03);
  }
}

@keyframes appAdRewardRing {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-ad-reward-btn,
  .app-ad-reward-btn__glow,
  .app-ad-reward-btn__ring {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .app-ad-reward-btn {
    padding: 8px 11px;
    gap: 6px;
  }

  .app-ad-reward-btn__line {
    font-size: 0.68rem;
  }

  .app-ad-reward-btn__sub {
    font-size: 0.62rem;
  }
}

@media (max-width: 380px) {
  .app-ad-reward-btn__text {
    display: none;
  }

  .app-ad-reward-btn {
    padding: 10px;
  }

  .app-ad-reward-btn__ic {
    width: 20px;
    height: 20px;
  }
}

.app-ad-reward-modal__dialog {
  max-width: min(440px, calc(100vw - 1.25rem));
}

.app-ad-reward-modal__content {
  position: relative;
  overflow: hidden;
  border-radius: 20px !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  background: linear-gradient(165deg, #14122a 0%, #0a0c14 55%, #101828 100%) !important;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 80px rgba(124, 58, 237, 0.15) !important;
}

.app-ad-reward-modal__aurora {
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background:
    radial-gradient(ellipse 80% 80% at 20% 20%, rgba(236, 72, 153, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 70% at 80% 10%, rgba(59, 130, 246, 0.3), transparent 50%);
  pointer-events: none;
  animation: appAdRewardAurora 8s ease-in-out infinite alternate;
}

@keyframes appAdRewardAurora {
  0% {
    opacity: 0.85;
    transform: translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: translate(2%, 2%);
  }
}

.app-ad-reward-modal__head {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1.25rem 1.25rem 1rem !important;
}

.app-ad-reward-modal__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fef3c7;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(234, 179, 8, 0.12);
  margin-bottom: 8px;
}

.app-ad-reward-modal__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  background: linear-gradient(120deg, #fff, #e9d5ff, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.app-ad-reward-modal__lead {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.85);
}

.app-ad-reward-modal__close {
  filter: invert(1) grayscale(100%);
  opacity: 0.75;
}

.app-ad-reward-modal__body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem 1.15rem !important;
}

.app-ad-reward-modal__stage {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
}

.app-ad-reward-modal__mock {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(14, 165, 233, 0.15), rgba(244, 114, 182, 0.2));
  background-size: 200% 200%;
  animation: appAdRewardMockBg 6s ease infinite;
  overflow: hidden;
}

.app-ad-reward-modal__mock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  animation: appAdRewardShine 2.5s ease-in-out infinite;
}

@keyframes appAdRewardMockBg {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes appAdRewardShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.app-ad-reward-modal__mock-play {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

.app-ad-reward-modal__mock-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.app-ad-reward-modal__mock-label {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.app-ad-reward-modal__status {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: rgba(226, 232, 240, 0.92);
}

.app-ad-reward-modal__progress {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.app-ad-reward-modal__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a78bfa, #f472b6, #fbbf24);
  background-size: 200% 100%;
  animation: appAdRewardBarHue 3s linear infinite;
  transition: width 0.05s linear;
}

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

.app-ad-reward-modal__api-hint {
  margin: 14px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
}

.app-ad-reward-modal__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.85rem 1.15rem 1.1rem !important;
  gap: 10px;
}

.app-ad-reward-modal__claim {
  font-weight: 800 !important;
  border: none !important;
  background: linear-gradient(135deg, #eab308, #f59e0b, #ea580c) !important;
  color: #1c1917 !important;
  box-shadow: 0 6px 22px rgba(234, 179, 8, 0.35) !important;
}

.app-ad-reward-modal__claim:hover:not(:disabled) {
  filter: brightness(1.06);
}

.app-ad-reward-modal__claim:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.app-adblock-modal__content {
  border-radius: 16px !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  background: linear-gradient(165deg, #1c1418 0%, #0f0f12 100%) !important;
  color: #fecaca !important;
}

.app-adblock-modal__head {
  border-bottom: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.app-adblock-modal__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(254, 226, 226, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .app-ad-reward-modal__aurora,
  .app-ad-reward-modal__mock,
  .app-ad-reward-modal__mock::after,
  .app-ad-reward-modal__progress-bar {
    animation: none !important;
  }
}

/* Kredi: üst çubukta değil; kullanıcı menüsü + mobil offcanvas içinde */
.app-user-menu__credits {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  margin: -2px -2px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  cursor: default;
  user-select: none;
}

.app-user-menu__credits svg {
  width: 16px;
  height: 16px;
  color: rgba(250, 204, 21, 0.95);
  flex-shrink: 0;
}

.app-offcanvas__credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin: -4px -4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.app-offcanvas__credits-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.app-offcanvas__credits-inner svg {
  width: 16px;
  height: 16px;
  color: rgba(250, 204, 21, 0.95);
}

.app-offcanvas__credits-hint {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted2);
}

.btn-app-upgrade {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(124, 58, 237, 0.45) !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(56, 189, 248, 0.12)) !important;
  color: #fff !important;
  text-decoration: none !important;
  align-items: center;
}

.btn-app-upgrade:hover {
  border-color: rgba(124, 58, 237, 0.65) !important;
  filter: brightness(1.06);
}

body[data-php-member="1"]:not(.snapnote-plan-synced) .btn-app-upgrade:not(.d-none) {
  visibility: hidden;
  pointer-events: none;
}

.app-user-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.app-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(168px, 40vw);
  width: 100%;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.app-user-trigger:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 1400px) {
  .app-user-trigger {
    max-width: min(200px, 14vw);
  }
}

.app-user-wrap.is-open .app-user-trigger {
  border-color: rgba(124, 58, 237, 0.45);
}

.app-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.55), rgba(56, 189, 248, 0.35));
  flex-shrink: 0;
  overflow: hidden;
}

.app-user-avatar--has-photo {
  padding: 0;
  line-height: 0;
}

.app-user-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.app-user-name {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-plan {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted2);
}

.app-user-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted2);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.app-user-wrap.is-open .app-user-chevron {
  transform: rotate(180deg);
}

.app-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 1100;
}

.app-user-wrap.is-open .app-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.app-user-menu__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none !important;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.app-user-menu__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.app-user-menu__item--highlight {
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.2);
}

.app-user-menu__item--highlight:hover {
  background: rgba(124, 58, 237, 0.32);
}

.app-user-menu__item--danger {
  color: #fecaca;
}

.app-shell {
  position: relative;
  padding: 112px 0 80px;
  min-height: 100vh;
  overflow-x: hidden;
}

.body--app .app-shell {
  padding-top: 104px;
}

.app-shell__bg {
  z-index: -1;
}

/* Çalışma alanı (app): premium değilken zemin — çok koyu siyah yerine yumuşak ışık */
.body--app:not(.snapnote--premium) .app-shell__bg.demo-bg {
  background:
    radial-gradient(ellipse 100% 55% at 50% -6%, rgba(124, 58, 237, 0.2), transparent 56%),
    radial-gradient(ellipse 60% 45% at 100% 15%, rgba(56, 189, 248, 0.12), transparent 52%),
    radial-gradient(ellipse 50% 42% at 0% 75%, rgba(167, 139, 250, 0.08), transparent 50%),
    linear-gradient(195deg, #0b0d16 0%, #05060c 100%);
}

.app-hero-banner {
  margin-bottom: 28px;
  padding: 28px 24px 32px;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(7, 10, 20, 0.5)),
    rgba(10, 14, 26, 0.65);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.app-hero-banner__greeting {
  margin: 0 0 18px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
}

.app-hero-banner__greet {
  display: inline;
  color: rgba(255, 255, 255, 0.92);
}

.app-hero-banner__name {
  display: inline;
  margin-left: 0.2em;
  background: linear-gradient(120deg, #e9d5ff, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-hero-banner__quote {
  margin: 0 0 20px;
  padding: 0;
  border: none;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
}

.app-hero-banner__quote-mark {
  color: rgba(124, 58, 237, 0.75);
  font-size: 1.2em;
  font-style: normal;
}

.app-hero-banner__quote-mark--end {
  margin-left: 2px;
}

.app-hero-banner__sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.app-hero-banner__sub strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.app-exclusive {
  margin-bottom: 28px;
}

.app-exclusive__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .app-exclusive__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-exclusive__grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-exclusive__item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.app-exclusive__item--on {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
}

a.app-exclusive__item--link {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

a.app-exclusive__item--link:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.14);
}

.app-exclusive__item--soon {
  opacity: 0.88;
}

.app-exclusive__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.app-exclusive__icon svg {
  width: 20px;
  height: 20px;
}

.app-exclusive__title {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.app-exclusive__desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted2);
}

.app-exclusive__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-tips {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.app-tips__head {
  margin-bottom: 20px;
}

.app-tips__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.app-tips__sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
}

.app-tips__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .app-tips__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .app-tips__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.app-tip-card {
  --tip-accent: rgba(124, 58, 237, 0.55);
  position: relative;
  padding: 20px 18px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(12, 16, 30, 0.92), rgba(6, 9, 18, 0.75));
  min-height: 100%;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.app-tip-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.app-tip-card__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 68%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.app-tip-card:hover .app-tip-card__glow {
  opacity: 0.85;
  transform: scale(1.08);
}

.app-tip-card__icon-wrap {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.28), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.app-tip-card:hover .app-tip-card__icon-wrap {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.2);
}

.app-tip-card__icon {
  width: 22px;
  height: 22px;
  color: #f5f3ff;
}

.app-tip-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

/* Ayarlar */
.user-dashboard__container--narrow {
  max-width: 520px;
}

.settings-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 22, 0.65);
  padding: 28px 22px 26px;
}

.settings-guest-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(250, 204, 21, 0.08);
  margin-bottom: 22px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.settings-guest-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(250, 204, 21, 0.95);
}

.settings-guest-banner a {
  color: rgba(56, 189, 248, 0.95);
  font-weight: 700;
  text-decoration: none !important;
}

.settings-guest-banner a:hover {
  text-decoration: underline !important;
}

.settings-field {
  margin-bottom: 22px;
}

.settings-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.settings-hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted2);
}

.settings-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.settings-input:focus:not(:disabled) {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.settings-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.settings-save {
  margin-top: 8px;
}

.settings-field--photo {
  margin-bottom: 26px;
}

.settings-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.settings-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.45), rgba(56, 189, 248, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.settings-photo-preview--has-img .settings-photo-preview__ph {
  display: none;
}

.settings-photo-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.settings-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.settings-photo-remove {
  color: rgba(248, 113, 113, 0.95) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.settings-photo-remove:hover {
  color: #fecaca !important;
}

.settings-photo-err {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #fecaca;
}

.settings-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.settings-alert--ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.settings-alert--err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.app-workspace-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 20px 28px;
  background: rgba(5, 8, 18, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .app-workspace-card {
    padding: 28px 28px 32px;
  }
}

.body--app .app-shell {
  padding-bottom: 120px;
}

/* Kullanıcı panosu: Notlar / İstatistikler */
.user-dashboard {
  position: relative;
  padding: 96px 0 120px;
  min-height: 100vh;
  overflow-x: hidden;
}

.user-dashboard__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 45% at 50% -15%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 30%, rgba(56, 189, 248, 0.06), transparent 50%);
  pointer-events: none;
}

/* Tüm pano sayfaları: daha aydınlık zemin, boşluk hissi az */
.user-dashboard .user-dashboard__bg {
  background:
    radial-gradient(ellipse 92% 52% at 50% -6%, rgba(167, 139, 250, 0.2), transparent 58%),
    radial-gradient(ellipse 58% 42% at 8% 50%, rgba(56, 189, 248, 0.11), transparent 52%),
    radial-gradient(ellipse 52% 40% at 90% 72%, rgba(244, 114, 182, 0.1), transparent 50%),
    linear-gradient(198deg, rgba(20, 22, 40, 0.35) 0%, rgba(8, 10, 22, 0.95) 100%);
}

.user-dashboard__container {
  max-width: 960px;
}

.user-dashboard__hero {
  margin-bottom: 28px;
}

.user-dashboard__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.user-dashboard__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

.user-dashboard__lead a {
  color: rgba(56, 189, 248, 0.95);
  font-weight: 600;
  text-decoration: none !important;
}

.user-dashboard__lead a:hover {
  text-decoration: underline !important;
}

.user-dashboard__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.user-dashboard__toolbar--rich {
  gap: 14px;
}

@media (max-width: 640px) {
  .user-dashboard__toolbar--rich {
    flex-direction: column;
    align-items: stretch;
  }

  .user-dashboard__search-wrap--compact,
  .user-dashboard__filter-wrap {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .user-dashboard__toolbar--rich .user-dashboard__btn-new {
    width: 100%;
    justify-content: center;
  }
}

.user-dashboard__search-wrap--compact {
  flex: 1 1 220px;
  max-width: min(420px, 100%);
}

.user-dashboard__filter-wrap {
  flex: 0 1 220px;
  min-width: 168px;
  position: relative;
}

.user-dashboard__filter-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.45), rgba(56, 189, 248, 0.25), rgba(244, 114, 182, 0.2));
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  filter: blur(0.5px);
}

/* Notlarım: özel ders filtresi (yerel <select> açılır paneli OS’a bağlı ve kötü görünüyor) */
.notes-subject-dd {
  position: relative;
  z-index: 1;
  width: 100%;
}

.notes-subject-dd.is-open {
  z-index: 30;
}

.notes-subject-dd__native {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.notes-subject-dd__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 11px 14px 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(22, 18, 40, 0.98), rgba(10, 12, 22, 0.98));
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.15) inset,
    0 6px 20px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.notes-subject-dd__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-subject-dd__chev {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(196, 181, 253, 0.95);
  transition: transform 0.2s var(--ease);
}

.notes-subject-dd__chev svg {
  width: 18px;
  height: 18px;
}

.notes-subject-dd.is-open .notes-subject-dd__chev {
  transform: rotate(180deg);
}

.notes-subject-dd__trigger:hover,
.notes-subject-dd__trigger:focus-visible {
  border-color: rgba(167, 139, 250, 0.45);
  outline: none;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.25) inset,
    0 0 0 3px rgba(124, 58, 237, 0.2),
    0 8px 26px rgba(124, 58, 237, 0.18);
}

.notes-subject-dd__trigger:active {
  transform: scale(0.99);
}

.notes-subject-dd__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(320px, 55vh);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 16, 32, 0.98), rgba(8, 10, 20, 0.98));
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.12) inset,
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(124, 58, 237, 0.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.35) transparent;
}

.notes-subject-dd__item {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.notes-subject-dd__item:hover,
.notes-subject-dd__item:focus-visible {
  outline: none;
  background: rgba(124, 58, 237, 0.2);
  color: #fff;
}

.notes-subject-dd__item.is-selected {
  background: rgba(124, 58, 237, 0.28);
  color: #fff;
  font-weight: 600;
}

.notes-subject-dd__item.is-selected:hover {
  background: rgba(124, 58, 237, 0.36);
}

.user-dashboard__btn-new--glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%);
  background-size: 160% 160%;
  animation: btnGlowShift 6s ease infinite;
  box-shadow: 0 10px 36px rgba(124, 58, 237, 0.45);
}

.user-dashboard__btn-new--glow:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.user-dashboard__btn-ic {
  width: 16px;
  height: 16px;
}

@keyframes btnGlowShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.user-dashboard__sync-status {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.user-dashboard__sync-status--error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 56, 56, 0.45);
  color: #fecaca;
}

.user-dashboard__sync-status--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.user-dashboard__search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.user-dashboard__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.user-dashboard__search {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.9rem;
}

.user-dashboard__search::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.user-dashboard__search:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

/* Notlarım: JS ile sonradan eklenen satırlar main.js bootReveal dışında kalırdı (opacity:0). */
.user-dashboard--notes .user-notes-accordion [data-reveal],
.user-dashboard--notes #snapnoteLastSavedHighlight [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.user-notes-grid {
  display: grid;
  gap: 16px;
}

.user-note-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 26, 0.65);
  padding: 22px 22px 20px;
  text-align: left;
}

.user-dashboard--notes .user-note-card {
  background: linear-gradient(160deg, rgba(22, 26, 44, 0.9) 0%, rgba(14, 18, 34, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-note-card--empty {
  padding: 48px 28px;
  text-align: center;
}

.user-dashboard__last-saved {
  margin-bottom: 20px;
}

.user-note-card--spotlight {
  position: relative;
  padding-top: 26px;
  border-color: rgba(34, 197, 94, 0.42);
  background: linear-gradient(165deg, rgba(16, 40, 28, 0.85) 0%, rgba(10, 14, 26, 0.72) 100%);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.18),
    0 18px 48px rgba(0, 0, 0, 0.35);
}

.user-note-card__dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.user-note-card__dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.user-note-card__spot-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #86efac;
  white-space: nowrap;
  margin-left: auto;
}

.user-note-card__spot-foot {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.user-note-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.user-note-card__badge--subj {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(124, 58, 237, 0.38));
  border-color: rgba(34, 211, 238, 0.45) !important;
  color: #ecfeff !important;
}

.user-note-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.user-note-card__date {
  font-size: 0.78rem;
  opacity: 0.65;
  white-space: nowrap;
}

.user-note-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
}

.user-note-card__excerpt {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.user-note-card__actions {
  display: flex;
  justify-content: flex-end;
}

.user-note-card__icon {
  display: inline-flex;
  margin-bottom: 16px;
  color: rgba(124, 58, 237, 0.75);
}

.user-note-card__icon svg {
  width: 40px;
  height: 40px;
}

.user-note-card__empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.user-note-card__empty-text {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 40ch;
  margin-inline: auto;
}

.user-notes-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-acc-item {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 26, 0.72);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.notes-acc-item--fresh {
  animation: snapnoteNoteFresh 0.55s ease-out;
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 14px 36px rgba(34, 197, 94, 0.08);
}

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

.notes-acc-item--src-video {
  border-left: 4px solid rgba(239, 68, 68, 0.85);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.07), rgba(10, 14, 26, 0.72));
}

.notes-acc-item--src-photo {
  border-left: 4px solid rgba(168, 85, 247, 0.9);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.08), rgba(10, 14, 26, 0.72));
}

.notes-acc-item--src-pdf {
  border-left: 4px solid rgba(59, 130, 246, 0.95);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), rgba(10, 14, 26, 0.72));
}

.notes-acc-item--src-audio {
  border-left: 4px solid rgba(34, 197, 94, 0.9);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08), rgba(10, 14, 26, 0.72));
}

.user-dashboard--notes .notes-acc-item {
  background: linear-gradient(165deg, rgba(24, 28, 48, 0.9) 0%, rgba(14, 18, 34, 0.86) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-dashboard--notes .notes-acc-item--src-video {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.09), rgba(24, 28, 48, 0.9));
}

.user-dashboard--notes .notes-acc-item--src-photo {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(24, 28, 48, 0.9));
}

.user-dashboard--notes .notes-acc-item--src-pdf {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(24, 28, 48, 0.9));
}

.user-dashboard--notes .notes-acc-item--src-audio {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(24, 28, 48, 0.9));
}

.notes-acc-summary__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.notes-acc-summary__badge--subj {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(124, 58, 237, 0.3));
  border-color: rgba(34, 211, 238, 0.42);
  color: #ecfeff;
}

.notes-acc-body--lead {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: normal;
}

.notes-rich__sec {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.notes-rich__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.95);
}

.notes-rich__h svg {
  width: 16px;
  height: 16px;
}

.notes-rich__kp {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.notes-rich__ideas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.notes-rich__idea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  animation: notesCardIn 0.45s ease both;
}

.notes-rich__idea-h {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.95);
}

.notes-rich__idea-body {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.notes-rich__qlist {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.notes-rich__qtag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.35);
  color: #f5f3ff;
}

.notes-acc-footer--split {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.notes-acc-pdf {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}

.notes-acc-pdf:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.notes-acc-pdf svg {
  width: 15px;
  height: 15px;
}

.notes-acc-share {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #e0f2fe;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.notes-acc-share:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.notes-acc-share svg {
  width: 15px;
  height: 15px;
}

.notes-acc-del {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.5));
  color: #fecaca;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.15s var(--ease);
}

.notes-acc-del:hover {
  border-color: rgba(248, 113, 113, 0.75);
  color: #fff;
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.22);
  transform: translateY(-1px);
}

.notes-acc-del svg {
  width: 18px;
  height: 18px;
}

.notes-quiz-hint {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.78);
}

/* Soru çöz — Notlarım / çalışma alanı (mini sınav kurulumu) */
.notes-quiz-panel {
  position: relative;
  margin-top: 4px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(30, 27, 75, 0.45));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 44px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.notes-quiz-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(900px 220px at 12% -30%, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0.95;
}

.notes-quiz-panel > * {
  position: relative;
  z-index: 1;
}

.notes-quiz-panel--workspace {
  margin: 12px 0 0;
}

.notes-quiz-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.notes-quiz-panel__head-text {
  min-width: 0;
}

.notes-quiz-panel__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(124, 58, 237, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  flex-shrink: 0;
}

.notes-quiz-panel__glyph svg {
  width: 22px;
  height: 22px;
}

.notes-quiz-panel__eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.9);
}

.notes-quiz-panel__title {
  margin: 2px 0 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.notes-quiz-panel__desc {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.78);
}

.notes-quiz-panel__diff,
.notes-quiz-panel__count-opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.notes-quiz-panel__count-opts {
  margin-bottom: 0;
}

@media (max-width: 420px) {
  .notes-quiz-panel__diff {
    grid-template-columns: 1fr;
  }

  .notes-quiz-panel__count-opts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.notes-quiz-panel__seg,
.notes-quiz-panel__qseg {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.notes-quiz-panel__seg:hover,
.notes-quiz-panel__qseg:hover {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(15, 23, 42, 0.62);
}

.notes-quiz-panel__seg.is-selected,
.notes-quiz-panel__qseg.is-selected {
  border-color: rgba(124, 58, 237, 0.65);
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.38), rgba(56, 189, 248, 0.14));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.28);
}

.notes-quiz-panel__count {
  margin-bottom: 14px;
}

.notes-quiz-panel__count-heading {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.notes-quiz-panel__count-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.notes-quiz-panel__input {
  width: 76px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.notes-quiz-panel__input:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.notes-quiz-panel__hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(186, 230, 253, 0.78);
}

.notes-quiz-panel__cta {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: #f8fafc;
  background: linear-gradient(95deg, #7c3aed 0%, #2563eb 48%, #0891b2 100%);
  box-shadow: 0 14px 36px rgba(76, 29, 149, 0.35);
  transition:
    transform 0.15s var(--ease),
    filter 0.15s var(--ease);
}

.notes-quiz-panel__cta:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.notes-quiz-panel__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Mini sınav: Teste başla → yapay zekâ üretimi beklerken */
.notes-quiz-panel__loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}

.notes-quiz-panel__loading-inner {
  text-align: center;
  max-width: 300px;
}

.notes-quiz-panel__spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(125, 211, 252, 0.22);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: snapnote-quiz-spin 0.72s linear infinite;
}

@keyframes snapnote-quiz-spin {
  to {
    transform: rotate(360deg);
  }
}

.notes-quiz-panel__loading-text {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.notes-quiz-panel__loading-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(186, 230, 253, 0.88);
}

.notes-rich__sec--quiz .notes-quiz-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notes-quiz__lead {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

.notes-quiz__diff {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.notes-quiz__diff-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

.notes-quiz__diff-btn.is-selected {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
}

.notes-quiz__start {
  margin-bottom: 8px;
}

.notes-quiz__empty {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(254, 202, 202, 0.95);
}

.notes-quiz-done .notes-quiz-retry {
  margin-top: 10px;
}

.snapnote-modal {
  position: fixed;
  inset: 0;
  /* Busy overlay (2147483645) ve diğer katmanların üstünde; PDF / ayar modalları tıklanabilir kalsın */
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  isolation: isolate;
}

.snapnote-modal[hidden] {
  display: none !important;
}

.snapnote-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.snapnote-modal__box {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  padding: 26px 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: linear-gradient(165deg, rgba(30, 27, 46, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: auto;
  animation: snapnoteModalIn 0.28s ease both;
  transform: translateZ(0);
}

.snapnote-modal__box .snapnote-pdf-pick {
  margin: 0.9rem 0 1.1rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.snapnote-modal__box .snapnote-pdf-pick__row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.95);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.snapnote-modal__box .snapnote-pdf-pick__row:last-child {
  margin-bottom: 0;
}

.snapnote-modal__box .snapnote-pdf-pick__row input {
  position: static;
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  min-height: 1.05rem;
  flex-shrink: 0;
  accent-color: #a78bfa;
  cursor: pointer;
}

@keyframes snapnoteModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.snapnote-modal__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.snapnote-modal__icon svg {
  width: 26px;
  height: 26px;
}

.snapnote-modal__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  color: #f8fafc;
}

.snapnote-modal__text {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(226, 232, 240, 0.82);
}

.snapnote-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.snapnote-modal__btn-cancel {
  min-width: 120px;
}

.snapnote-modal__btn-danger {
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}

.snapnote-modal__btn-danger:hover {
  filter: brightness(1.06);
}

.snapnote-modal__btn-ic {
  width: 16px;
  height: 16px;
}

@media (max-width: 520px) {
  .snapnote-modal__actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .snapnote-modal__btn-cancel,
  .snapnote-modal__btn-danger {
    width: 100%;
  }
}

.snapnote-modal--wide .snapnote-modal__box {
  width: min(560px, 100%);
  max-height: min(92vh, 880px);
  overflow-y: auto;
  border-color: rgba(124, 58, 237, 0.32);
}

.snapnote-modal__title--left,
.snapnote-modal__text--left {
  text-align: left;
}

.snapnote-modal__actions--stretch {
  justify-content: space-between;
  width: 100%;
}

.snapnote-modal__err {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #fecaca;
}

.demo-summarize-opts--embedded {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.notes-acc-body--study {
  margin: 0 0 4px;
}

/* Notlarım — çalışma sekmeleri: kart hissi, içerik daha okunur */
.user-dashboard--notes .notes-acc-study {
  margin-top: 4px;
  padding: 16px 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(168deg, rgba(26, 30, 52, 0.75) 0%, rgba(14, 18, 36, 0.9) 100%),
    radial-gradient(ellipse 90% 55% at 15% 0%, rgba(124, 58, 237, 0.14), transparent 58%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-dashboard--notes .notes-acc-study .demo-study__stack {
  min-height: 5.5rem;
}

.user-dashboard--notes .notes-acc-study .demo-study__tab {
  background: rgba(16, 20, 40, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.user-dashboard--notes .notes-acc-study .demo-study__tab.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(56, 189, 248, 0.2));
  border-color: rgba(196, 181, 253, 0.45);
}

.user-dashboard--notes .notes-acc-study .demo-idea-card {
  background: linear-gradient(165deg, rgba(20, 24, 44, 0.85) 0%, rgba(10, 14, 32, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.notes-acc-footer--settings {
  justify-content: flex-start;
}

.notes-acc-footer__rest {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.notes-acc-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.82rem;
}

.notes-acc-settings:hover {
  border-color: rgba(167, 139, 250, 0.55);
  color: #fff;
}

.notes-rich__sec--in-tab {
  margin-top: 0;
}

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

.notes-pdf-root {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 190mm;
  padding: 12mm;
  background: #fff;
  color: #111;
  font-family: system-ui, sans-serif;
}

.notes-acc-item[open] {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.notes-acc-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  color: inherit;
}

.notes-acc-summary::-webkit-details-marker {
  display: none;
}

.notes-acc-summary__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.notes-acc-summary__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.38);
  color: rgba(255, 255, 255, 0.92);
}

.notes-acc-summary__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.notes-acc-summary__hint {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notes-acc-summary__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.notes-acc-summary__time {
  font-size: 0.78rem;
  opacity: 0.65;
  white-space: nowrap;
}

.notes-acc-summary__chev {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.25s var(--ease);
}

.notes-acc-summary__chev svg {
  width: 20px;
  height: 20px;
}

.notes-acc-item[open] .notes-acc-summary__chev {
  transform: rotate(180deg);
}

.notes-acc-panel {
  padding: 0 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.notes-acc-body {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-wrap;
  word-break: break-word;
}

.notes-acc-links {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.notes-acc-links__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.85);
  margin-bottom: 8px;
}

.notes-acc-links__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notes-acc-links__a {
  font-size: 0.82rem;
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none !important;
  word-break: break-all;
}

.notes-acc-links__a:hover {
  text-decoration: underline !important;
}

.notes-acc-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.user-stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .user-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .user-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.user-stat-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 22, 0.72);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-stat-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .user-stat-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .user-stat-card--wide {
    grid-column: span 3;
  }
}

.user-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-stat-card__icon svg {
  width: 22px;
  height: 22px;
}

.user-stat-card__icon--credit {
  background: rgba(250, 204, 21, 0.12);
  color: rgba(250, 204, 21, 0.95);
}

.user-stat-card__icon--notes {
  background: rgba(56, 189, 248, 0.12);
  color: rgba(56, 189, 248, 0.95);
}

.user-stat-card__icon--plan {
  background: rgba(124, 58, 237, 0.18);
  color: #e9d5ff;
}

.user-stat-card__icon--time {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.user-stat-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-stat-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
}

.user-stat-card__value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.user-stat-card__value--sm {
  font-size: 1.25rem;
  line-height: 1.2;
}

.user-stat-card__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted2);
}

.user-stat-card__hint a {
  color: rgba(56, 189, 248, 0.95);
  font-weight: 600;
  text-decoration: none !important;
}

.user-stat-card__hint a:hover {
  text-decoration: underline !important;
}

.user-stats-kpi {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .user-stats-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .user-stats-kpi {
    grid-template-columns: repeat(3, 1fr);
  }
}

.user-stat-card--kpi {
  min-height: 100%;
}

.user-stat-card__icon--quiz {
  background: rgba(168, 85, 247, 0.15);
  color: #e9d5ff;
}

.user-stat-card__icon--avg {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.user-stats-panels {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .user-stats-panels {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}

.user-stats-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 20, 0.55);
  padding: 20px 18px 22px;
}

.user-stats-panel__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.user-stats-panel__sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: var(--muted2);
}

.user-dist-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-dist-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.user-dist-bar__pct {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
}

.user-dist-bar__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.user-dist-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.9), rgba(56, 189, 248, 0.65));
  transition: width 0.5s var(--ease);
}

.user-tag-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-tag-cloud li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.user-tag-pill {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.user-tag-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.user-stats-last-quiz {
  margin-bottom: 24px;
}

.user-stats-last-quiz__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.user-last-quiz-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.08);
}

.user-last-quiz-card__name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.user-last-quiz-card__date {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted2);
}

.user-last-quiz-card__score {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.user-last-quiz-card__score-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.user-last-quiz-card__score-total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.user-stats-grid--footer {
  margin-top: 8px;
}

.membership-page--in-app {
  padding-top: 104px;
  padding-bottom: 120px;
}

.membership-page--in-app .membership-lead strong {
  color: rgba(255, 255, 255, 0.95);
}

/* Üyelik sayfası */
.membership-page {
  position: relative;
  padding: 112px 0 100px;
  min-height: 100vh;
  overflow-x: hidden;
}

.membership-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(56, 189, 248, 0.08), transparent 50%);
  pointer-events: none;
}

.membership-container {
  max-width: 960px;
}

.membership-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none !important;
  margin-bottom: 24px;
}

.membership-back svg {
  width: 18px;
  height: 18px;
}

.membership-back:hover {
  color: #fff;
}

.membership-hero {
  margin-bottom: 40px;
  text-align: center;
}

.membership-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.membership-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 auto;
}

.membership-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.membership-section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 auto 20px;
  max-width: 52ch;
}

.membership-card__save {
  font-size: 0.85rem;
  color: #86efac;
  margin: -4px 0 12px;
}

.membership-card__list--compact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.membership-card__list--compact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.membership-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .membership-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .membership-grid--pro {
    grid-template-columns: repeat(2, 1fr);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 640px) {
  .membership-grid--credits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .membership-grid--credits {
    grid-template-columns: repeat(4, 1fr);
  }
}

.membership-card {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 28, 0.75);
  backdrop-filter: blur(12px);
}

.membership-card--featured {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.12);
}

.membership-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.membership-card__badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted2);
}

.membership-card__badge--hot {
  background: rgba(124, 58, 237, 0.25);
  color: #e9d5ff;
}

.membership-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.membership-card__price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.membership-card__price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.membership-card__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.membership-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.membership-card__list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(34, 197, 94, 0.95);
}

.membership-foot {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted2);
  max-width: 56ch;
  margin: 0 auto;
}

.membership-foot a {
  color: rgba(56, 189, 248, 0.95);
  font-weight: 600;
  text-decoration: none !important;
}

.membership-foot a:hover {
  text-decoration: underline !important;
}

.app-footer {
  margin-top: 48px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-footer__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none !important;
}

.app-footer__link:hover {
  color: #fff;
}

.app-footer__copy {
  font-size: 0.8rem;
  color: var(--muted2);
}

/* Misafir hoş geldin — tam ekran popup */
.guest-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(10px);
  animation: guestFadeIn 0.35s var(--ease) both;
}

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

.guest-welcome-card {
  width: min(420px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 18, 32, 0.96);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  padding: 28px 24px 22px;
  text-align: center;
}

.guest-welcome-card__icon {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(56, 189, 248, 0.95);
}

.guest-welcome-card__icon svg {
  width: 36px;
  height: 36px;
}

.guest-welcome-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.guest-welcome-card__text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.guest-welcome-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.guest-welcome-card__btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.guest-welcome-card__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

.guest-welcome-card__close {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.guest-welcome-card__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.guest-welcome-overlay.guest-welcome-overlay--hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.app-hero-banner__code {
  font-size: 0.82em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.demo-ai-result {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.demo-ai-result__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  white-space: normal;
  word-break: break-word;
  margin: 0;
}

.demo-study {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-study__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-study__tab {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-study__tab.is-active {
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(167, 139, 250, 0.55);
}

.demo-study__stack {
  position: relative;
  min-height: 4rem;
}

.demo-study__panel {
  display: none;
  text-align: left;
}

.demo-study__panel.is-active {
  display: block;
}

.demo-study__prose {
  font-size: 0.9375rem;
  line-height: 1.65;
  word-break: break-word;
}

.demo-study__sub {
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.demo-study__idea {
  margin-bottom: 14px;
}

.demo-study__qlist {
  margin: 0;
  padding-left: 1.25rem;
}

.demo-study__muted {
  margin: 0;
  opacity: 0.65;
  font-size: 0.875rem;
}

/* Anahtar Kelimeler sekmesi (notlar + çalışma önizlemesi) */
.notes-kw-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-kw-actions {
  margin: 0;
}

.notes-kw-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notes-kw-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.notes-kw-term {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.notes-kw-expl {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.92;
}

.notes-kw-line--plain {
  margin: 0;
  font-size: 0.9rem;
}

.demo-title-opts {
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.demo-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
}

.demo-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--p, #7c3aed);
}

.demo-input--title {
  width: 100%;
  max-width: 420px;
}

/* Çalışma alanı: görünür kutular (YouTube alanı + özet formu) */
.demo-panel--yt .demo-input-wrap {
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.demo-panel--yt .demo-input-wrap:focus-within {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.demo-summarize-opts .demo-input--title,
.demo-summarize-opts textarea.demo-textarea,
.demo-summarize-opts input.demo-input:not([type="checkbox"]):not([type="radio"]) {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: none !important;
  min-height: 46px;
  padding: 12px 14px !important;
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  border-radius: 12px;
  color: rgba(248, 250, 252, 0.98) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-summarize-opts textarea.demo-textarea {
  min-height: 88px;
  line-height: 1.5;
}

.demo-summarize-opts .demo-input::placeholder,
.demo-summarize-opts textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.demo-check--confirm {
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.demo-check--confirm:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.demo-check--confirm input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
  accent-color: #7c3aed;
}

.demo-check--confirm input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-check--confirm input[type="checkbox"]:disabled + span {
  opacity: 0.75;
}

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

.demo-summarize-opts {
  margin: 16px 0 14px;
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.72), rgba(10, 16, 35, 0.55));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  animation: demoOptsIn 0.45s var(--ease) both;
}

.demo-summarize-opts__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), transparent);
}

.demo-summarize-opts__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #e9d5ff;
}

.demo-summarize-opts__icon svg {
  width: 20px;
  height: 20px;
}

.demo-summarize-opts__title {
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.96);
}

.demo-summarize-opts__grid {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-opts-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-field--tags {
  gap: 6px;
}

.demo-label--muted {
  font-weight: 500;
  opacity: 0.72;
  font-size: 0.82em;
}

.demo-input--tags {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.demo-input--tags:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
  background: rgba(2, 6, 23, 0.65);
}

.demo-tag-suggest-hint {
  margin: 4px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.demo-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-tag-chip {
  border: 1px solid rgba(100, 116, 139, 0.45);
  background: rgba(30, 41, 59, 0.55);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.demo-tag-chip:hover {
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.demo-tag-chip.is-on {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
}

.demo-proc-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.demo-proc-mode__btn {
  flex: 1 1 108px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.demo-proc-mode__ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.demo-proc-mode__btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.2);
}

.demo-proc-mode__btn.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(124, 58, 237, 0.38));
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.demo-textarea {
  min-height: 64px;
  resize: vertical;
  max-width: 100%;
}

.demo-summarize-opts__grid > .demo-check--confirm {
  margin-top: 4px;
  padding: 12px 14px;
  border-top: none;
}

.demo-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}

.demo-user-tags__chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.92);
}

.demo-summary-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.demo-summary-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  flex: 1 1 180px;
}

.demo-subject-chip {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(124, 58, 237, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.12);
  animation: demoSubjectPulse 4s ease-in-out infinite;
}

@keyframes demoSubjectPulse {
  0%,
  100% {
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.12);
  }
  50% {
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.22);
  }
}

.demo-study__prose--lead {
  font-size: 1rem;
  line-height: 1.7;
}

.demo-summary-bullets {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.demo-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.demo-idea-card {
  border-radius: 16px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  text-align: left;
}

.demo-idea-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.demo-idea-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-idea-card__icon svg {
  width: 18px;
  height: 18px;
}

.demo-idea-card__title {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.92;
}

.demo-idea-card__body {
  font-size: 0.9rem;
  line-height: 1.55;
}

.demo-idea-card--violet .demo-idea-card__icon {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}
.demo-idea-card--sky .demo-idea-card__icon {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}
.demo-idea-card--amber .demo-idea-card__icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}
.demo-idea-card--emerald .demo-idea-card__icon {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.demo-idea-card--rose .demo-idea-card__icon {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.demo-quiz__lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  opacity: 0.88;
}

.demo-quiz__diff {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-quiz__diff-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-quiz__diff-btn.is-selected {
  background: rgba(124, 58, 237, 0.4);
  border-color: rgba(167, 139, 250, 0.65);
}

.demo-quiz__start {
  margin-top: 4px;
}

.demo-quiz__stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.demo-quiz-q {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.demo-quiz-q__text {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.demo-quiz-q__opts {
  display: grid;
  gap: 8px;
}

.demo-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.demo-quiz-opt:disabled {
  cursor: default;
  opacity: 0.95;
}

.demo-quiz-opt__l {
  font-weight: 800;
  min-width: 1.25rem;
  opacity: 0.85;
}

.demo-quiz-opt.is-correct {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.12);
}

.demo-quiz-opt.is-wrong:not(.is-correct) {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.1);
}

.demo-quiz-why {
  margin-top: 10px;
}

.demo-quiz-why__body {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.84rem;
  line-height: 1.5;
}

.demo-quiz-done {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.12);
}

.demo-quiz-done__score {
  margin: 0;
  font-size: 0.95rem;
}

.demo-result-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-result-toolbar .demo-save-note {
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  padding: 11px 22px !important;
  color: #0f172a !important;
  background: linear-gradient(135deg, #4ade80 0%, #22d3ee 50%, #38bdf8 100%) !important;
  background-size: 140% 140%;
  animation: demoSavePulse 5s ease infinite;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.35);
}

.demo-result-toolbar .demo-save-note:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.demo-result-toolbar .demo-discard-note {
  border-radius: 999px !important;
  font-weight: 600;
}

@keyframes demoSavePulse {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.demo-study--polish {
  padding: 8px 4px 4px;
}

.demo-ai-result--study {
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(165deg, rgba(20, 18, 35, 0.95), rgba(10, 14, 26, 0.88));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.demo-quiz-why__btn {
  border-radius: 999px !important;
  border: 1px solid rgba(244, 63, 94, 0.5) !important;
  background: linear-gradient(100deg, rgba(244, 63, 94, 0.2), rgba(249, 115, 22, 0.15)) !important;
  color: #fecdd3 !important;
  font-weight: 600 !important;
}

.demo-cta.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

/* İletişim — sağ alt (yukarı açılan panel) */
.social-connect-dock {
  position: fixed;
  right: 20px;
  bottom: 22px;
  /* Bootstrap offcanvas/backdrop (1040/1045) üstüne çıkmasın */
  z-index: 1020;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

/* Site offcanvas: X sağ üst köşe, logo solda kalsın */
.site-offcanvas__header {
  position: relative;
  padding-right: 56px;
}

.site-offcanvas__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.site-offcanvas__logout {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 35%, #a78bfa 100%);
  box-shadow:
    0 10px 28px rgba(244, 63, 94, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.site-offcanvas__logout:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.site-offcanvas__logout:active {
  transform: translateY(0) scale(0.98);
}
.social-connect-dock > * {
  pointer-events: auto;
}

/* Panel açıkken tüm dock tıklanabilir olsun (iç içe none zinciri sorunu olmasın) */
.social-connect-dock.is-open {
  pointer-events: auto;
}

.social-connect-dock__panel {
  order: -1;
  width: min(280px, calc(100vw - 40px));
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 24, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0.3s;
}

.social-connect-dock.is-open .social-connect-dock__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.social-connect-dock__title {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.social-connect-dock__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-connect-dock__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(248, 250, 252, 0.95);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(124, 58, 237, 0.35);
}

/* İkon/metin tıklaması doğrudan <a> üzerinde sayılsın (SVG/Lucide bazen olayı yutuyor) */
.social-connect-dock__link * {
  pointer-events: none;
}

.social-connect-dock__link:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateX(-2px);
}

.social-connect-dock__ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.2);
  color: #e9d5ff;
}

.social-connect-dock__ic svg {
  width: 18px;
  height: 18px;
}

.social-connect-dock__ic--tiktok {
  background: rgba(244, 63, 94, 0.15);
  color: #fecdd3;
}

.social-connect-dock__fab {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(236, 72, 153, 0.4);
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.35), rgba(124, 58, 237, 0.45));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.social-connect-dock__fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.2);
}

.social-connect-dock__fab svg {
  width: 24px;
  height: 24px;
}

.social-connect-dock.is-open .social-connect-dock__fab {
  border-color: rgba(56, 189, 248, 0.5);
}

@media (max-width: 480px) {
  .social-connect-dock {
    right: 14px;
    bottom: 16px;
  }
}

/* AI asistan — sol alt */
.ai-assistant-dock {
  position: fixed;
  left: 20px;
  bottom: 22px;
  /* Bootstrap offcanvas/backdrop (1040/1045) üstüne çıkmasın */
  z-index: 1020;
  pointer-events: none;
}

.ai-assistant-dock > * {
  pointer-events: auto;
}

.ai-assistant-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.55);
  background: radial-gradient(circle at 30% 25%, rgba(167, 139, 250, 0.55), rgba(124, 58, 237, 0.5) 45%, rgba(14, 116, 144, 0.35) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 28px rgba(124, 58, 237, 0.35);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  animation: aiAssistantFabIdle 3.2s ease-in-out infinite;
}

.ai-assistant-fab::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.45);
  opacity: 0.65;
  animation: aiAssistantFabRing 2.4s ease-in-out infinite;
  pointer-events: none;
}

.ai-assistant-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 18px 44px rgba(124, 58, 237, 0.35),
    0 0 36px rgba(56, 189, 248, 0.25);
  border-color: rgba(125, 211, 252, 0.65);
  animation: none;
}

.ai-assistant-fab svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.ai-assistant-fab.is-open {
  border-color: rgba(56, 189, 248, 0.75);
  animation: none;
}

.ai-assistant-fab.is-open::before {
  opacity: 0.9;
  animation-duration: 1.6s;
}

@keyframes aiAssistantFabIdle {
  0%,
  100% {
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 0 22px rgba(124, 58, 237, 0.28);
  }
  50% {
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 40px rgba(56, 189, 248, 0.32);
  }
}

@keyframes aiAssistantFabRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-assistant-fab,
  .ai-assistant-fab::before {
    animation: none !important;
  }
}

.ai-assistant-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(440px, calc(100vw - 40px));
  max-height: min(580px, 78vh);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 24, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.ai-assistant-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-assistant-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-assistant-panel__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ai-assistant-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  flex-shrink: 0;
}

.ai-assistant-panel__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.ai-assistant-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ai-assistant-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px;
}

.ai-assistant-panel__hint {
  flex-shrink: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted2);
  margin: 0 0 12px;
}

.ai-assistant-panel__hint kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  font-size: 0.72em;
  font-family: inherit;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.ai-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.45) rgba(255, 255, 255, 0.06);
}

.ai-assistant-messages::-webkit-scrollbar {
  width: 8px;
}

.ai-assistant-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.ai-assistant-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.65), rgba(56, 189, 248, 0.4));
  border-radius: 10px;
}

.ai-msg {
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 95%;
}

.ai-msg--user {
  align-self: flex-end;
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
}

.ai-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.ai-msg--bot.is-loading {
  opacity: 0.88;
  animation: aiAssistantPulseLoad 1.35s ease-in-out infinite;
}

@keyframes aiAssistantPulseLoad {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-msg--bot.is-loading {
    animation: none !important;
  }
}

.ai-assistant-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(226, 232, 240, 0.78);
  margin: 0 0 6px;
}

.ai-assistant-form {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-assistant-form.is-assistant-busy {
  opacity: 0.92;
}

.ai-assistant-form.is-assistant-busy .ai-assistant-input,
.ai-assistant-form.is-assistant-busy .ai-assistant-send {
  pointer-events: none;
  opacity: 0.72;
}

.ai-assistant-form.is-assistant-busy .ai-assistant-input {
  cursor: not-allowed;
}

.ai-assistant-input {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.ai-assistant-form__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-assistant-counter {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(167, 139, 250, 0.95);
}

.ai-assistant-send {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.55), rgba(56, 189, 248, 0.35));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

@media (max-width: 576px) {
  .ai-assistant-dock {
    left: 14px;
    bottom: 16px;
  }

  .ai-assistant-panel {
    width: calc(100vw - 28px);
  }
}

.user-stats-panel__empty {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.72);
}

.user-tag-empty {
  list-style: none;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.65);
}

.demo-quiz__pick--compact .demo-quiz__lead--compact {
  font-size: 0.82rem;
  margin-bottom: 8px;
  line-height: 1.45;
}

.demo-quiz__diff--compact {
  gap: 6px;
  margin-bottom: 8px;
}

.demo-quiz__diff-btn--sm {
  padding: 6px 12px !important;
  font-size: 0.75rem !important;
}

.demo-quiz__count-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.demo-quiz__qc {
  width: 56px;
  margin-left: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #f8fafc;
}

.notes-quiz__lead--compact {
  font-size: 0.82rem;
}

.notes-quiz__diff--compact {
  gap: 6px;
  margin-bottom: 8px;
}

.notes-quiz__count-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.notes-quiz__qc {
  width: 56px;
  margin-left: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #f8fafc;
}

.snapnote-quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.snapnote-quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  /* Yalnızca X ile kapat; dışarı tıklama modalı kapatmaz */
  cursor: default;
  pointer-events: auto;
}

.snapnote-quiz-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: linear-gradient(165deg, rgba(28, 24, 44, 0.99), rgba(14, 16, 30, 0.97));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 72px rgba(0, 0, 0, 0.65);
}

.snapnote-quiz-modal__x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.snapnote-quiz-modal__top {
  margin-bottom: 10px;
}

.snapnote-quiz-modal__prog {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(196, 181, 253, 0.95);
}

.demo-quiz-q__text--modal {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.demo-quiz-q__opts--modal {
  display: grid;
  gap: 8px;
}

.snapnote-quiz-modal__whywrap {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
}

.snapnote-quiz-modal__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
}

.demo-quiz-done--modal {
  text-align: center;
  padding: 8px 0;
}

.snapnote-quiz-modal__context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
}

.snapnote-quiz-modal__ctx-sub {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ddd6fe;
}

.snapnote-quiz-modal__ctx-dot {
  opacity: 0.55;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.75);
}

.snapnote-quiz-modal__ctx-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.35;
}

.demo-quiz-opt--modal {
  font-size: 0.82rem;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4) !important;
  background: rgba(15, 23, 42, 0.75) !important;
  color: rgba(248, 250, 252, 0.95);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}

.demo-quiz-opt--modal:hover:not(:disabled) {
  border-color: rgba(124, 58, 237, 0.45) !important;
  background: rgba(30, 27, 46, 0.9) !important;
}

/* Modal şıkları: doğru/yanlış — üstteki !important kurallarını aşmak için */
.demo-quiz-opt--modal.is-correct {
  border: 2px solid #22c55e !important;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.55), rgba(15, 23, 42, 0.92)) !important;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.45),
    0 10px 28px rgba(34, 197, 94, 0.22) !important;
  color: #ecfdf5 !important;
  transform: scale(1.01);
}

.demo-quiz-opt--modal.is-correct .demo-quiz-opt__l {
  color: #bbf7d0 !important;
  opacity: 1 !important;
}

.demo-quiz-opt--modal.is-wrong:not(.is-correct) {
  border: 2px solid #f87171 !important;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.45), rgba(15, 23, 42, 0.92)) !important;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.4),
    0 8px 22px rgba(239, 68, 68, 0.2) !important;
  color: #fef2f2 !important;
}

.demo-quiz-opt--modal.is-wrong:not(.is-correct) .demo-quiz-opt__l {
  color: #fecaca !important;
  opacity: 1 !important;
}

.snapnote-quiz-answer-feedback {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: snapnoteQuizFbIn 0.35s ease both;
}

.snapnote-quiz-answer-feedback--ok {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.snapnote-quiz-answer-feedback--bad {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

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

/* Özet oluşturma: tam ekran yükleniyor */
.snapnote-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.snapnote-busy-overlay.is-visible {
  opacity: 1;
}

.snapnote-busy-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.snapnote-busy-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 28px 24px 24px;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: linear-gradient(165deg, rgba(22, 18, 38, 0.98), rgba(12, 14, 26, 0.96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.snapnote-busy-overlay__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(124, 58, 237, 0.25);
  border-top-color: rgba(167, 139, 250, 0.95);
  animation: snapnoteBusySpin 0.85s linear infinite;
}

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

.snapnote-busy-overlay__txt {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.snapnote-busy-overlay__sub {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Toast bildirimleri (alert yerine) */
.snapnote-toast-root {
  position: fixed;
  bottom: 18px;
  right: 18px;
  left: auto;
  top: auto;
  transform: none;
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  width: min(420px, calc(100vw - 32px));
}

.snapnote-toast {
  pointer-events: auto;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 24, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.snapnote-toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.snapnote-toast--error {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(165deg, rgba(60, 20, 30, 0.98), rgba(12, 14, 24, 0.97));
}

.snapnote-toast--info {
  border-color: rgba(56, 189, 248, 0.35);
}

.snapnote-toast--success {
  border-color: rgba(52, 211, 153, 0.4);
}

.snapnote-toast__inner {
  position: relative;
  padding: 14px 40px 14px 16px;
}

.snapnote-toast__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.95);
  margin: 0 0 6px;
}

.snapnote-toast__msg {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.95);
}

.snapnote-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.snapnote-toast__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 480px) {
  .snapnote-toast-root {
    top: 12px;
    width: calc(100vw - 24px);
  }
}

/* Yukarı çık — hero bölümünü geçince (ana sayfa, çalışma alanı, Notlarım)
   Sosyal FAB (9997) ve AI dock (9998) üstünde; tam ekran overlay’lerin altında */
.snapnote-scroll-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(96px + max(0px, env(safe-area-inset-bottom, 0px)));
  z-index: 10006;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(124, 58, 237, 0.42);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.52), rgba(56, 189, 248, 0.24));
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.26s ease,
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    visibility 0.26s;
}

.snapnote-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.snapnote-scroll-top:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.26);
}

.snapnote-scroll-top:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.8);
  outline-offset: 3px;
}

.snapnote-scroll-top__ic {
  width: 26px;
  height: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .snapnote-scroll-top {
    transition: none;
  }
}

@media (max-width: 480px) {
  .snapnote-scroll-top {
    bottom: calc(92px + max(0px, env(safe-area-inset-bottom, 0px)));
    right: max(14px, env(safe-area-inset-right, 0px));
  }
}

/* Arkadaşlar — sohbet yerel (tarayıcı) + zengin arka plan */
.user-dashboard--friends {
  padding-top: 88px;
  padding-bottom: 128px;
}
.user-dashboard--friends .user-dashboard__bg--friends {
  z-index: -1;
  background:
    radial-gradient(ellipse 110% 55% at 50% -5%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 40%, rgba(56, 189, 248, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 60% 55% at 100% 65%, rgba(244, 63, 94, 0.1) 0%, transparent 55%),
    linear-gradient(185deg, rgba(6, 8, 20, 0.97) 0%, rgba(12, 8, 28, 0.99) 45%, rgba(4, 5, 14, 0.99) 100%);
}
.user-dashboard--friends .user-dashboard__bg--friends.demo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000, transparent 95%);
  pointer-events: none;
}
.app-friends-page__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.app-friends-page__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  will-change: transform;
}
.app-friends-page__orb--a {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  top: 8%;
  left: -12%;
  background: radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.5), rgba(30, 27, 75, 0) 70%);
  animation: app-friends-orb 22s ease-in-out infinite;
}
.app-friends-page__orb--b {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  right: -8%;
  top: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.4), rgba(8, 47, 73, 0) 70%);
  animation: app-friends-orb 26s ease-in-out infinite 3s;
}
.app-friends-page__orb--c {
  width: min(300px, 50vw);
  height: min(300px, 50vw);
  left: 35%;
  bottom: 5%;
  background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.3), rgba(30, 10, 25, 0) 70%);
  animation: app-friends-orb 24s ease-in-out infinite 6s;
}
@keyframes app-friends-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(2%, 3%) scale(1.04);
  }
  70% {
    transform: translate(-1.5%, -2%) scale(0.98);
  }
}
.user-dashboard--friends .user-dashboard__container--friends {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}
.app-friends-page__hero {
  padding: 20px 22px 8px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 22, 42, 0.5) 0%, rgba(12, 14, 32, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset, 0 20px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.app-friends-page__hero .user-dashboard__title {
  background: linear-gradient(100deg, #e2e8f0 0%, #a5b4fc 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.user-dashboard--friends .app-friends {
  margin-top: 0;
}
.app-friends--shell {
  position: relative;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(15, 23, 42, 0) 36%, rgba(14, 165, 233, 0.25) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.app-friends--shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%);
  pointer-events: none;
}
.app-friends__split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  min-height: min(70vh, 600px);
  max-height: min(78vh, 740px);
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(170deg, rgba(22, 26, 50, 0.92) 0%, rgba(6, 8, 20, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.app-friends__list-wrap {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(4, 6, 16, 0.35) 100%);
  min-height: 0;
}
.app-friends__sidebar-top {
  padding: 16px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.app-friends__sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(196, 200, 220, 0.9);
}
.app-friends__sidebar-title-ic {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  stroke: rgba(167, 179, 250, 0.95);
}
.app-friends__add-form {
  margin: 0;
}
.app-friends__add-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.app-friends__add-input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 10, 24, 0.8) !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-size: 0.92rem !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.app-friends__add-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}
.app-friends__add-input:focus {
  border-color: rgba(129, 140, 248, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}
.app-friends__add-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  min-width: 44px;
  border: none;
  border-radius: 12px;
  color: #f8fafc !important;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #2563eb 100%) !important;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.15s ease, box-shadow 0.2s;
}
.app-friends__add-submit:hover {
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}
.app-friends__add-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.app-friends__add-submit-txt {
  line-height: 1;
}
@media (max-width: 380px) {
  .app-friends__add-submit-txt {
    display: none;
  }
  .app-friends__add-submit {
    padding: 0 10px;
  }
}
.app-friends__list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 12px;
  flex: 1;
  overflow-y: auto;
  min-height: 100px;
}
.app-friends__list:empty::after {
  content: 'Yukarıya birinin Ayarlar’daki görünen adını yazıp Ekle’ye bas.';
  display: block;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.6);
  padding: 20px 12px 8px;
}
.app-friends__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(248, 250, 252, 0.95);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s;
  border: 1px solid transparent;
}
.app-friends__item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.app-friends__item.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(56, 189, 248, 0.14));
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 6px 18px rgba(88, 28, 135, 0.18);
  transform: translateX(1px);
}
.app-friends__item-av {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(124, 58, 237, 0.45));
  color: #f8fafc;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.app-friends__item-name {
  font-size: 0.94rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-friends__chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: linear-gradient(200deg, rgba(5, 8, 20, 0.45) 0%, rgba(8, 10, 24, 0.55) 100%);
}
.app-friends__chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(15, 20, 40, 0.2) 100%);
}
.app-friends__header-state--empty,
.app-friends__header-state--active {
  flex: 1;
  min-width: 0;
}
.app-friends__header-state--active {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.app-friends__header-state--empty h2 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}
.app-friends__peer-av-wrap {
  position: relative;
  flex-shrink: 0;
}
.app-friends__item-av--md {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-friends__peer-img {
  object-fit: cover;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.app-friends__header-texts {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.app-friends__peer-sub {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 500;
}
.app-friends__head-menu-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}
.app-friends__head-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  padding: 0;
}
.app-friends__head-more:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.app-friends__head-more-ic {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  pointer-events: none;
}
.app-friends__dropdown {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: linear-gradient(165deg, #141624 0%, #0c0e1a 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}
.app-friends__dd-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #e2e8f0;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.app-friends__dd-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
}
.app-friends__dd-item:disabled,
.app-friends__head-more:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.app-friends__add-legend {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
  padding: 8px 0 0;
}
.app-friends__incoming-block {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.12);
}
.app-friends__incoming-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(196, 200, 220, 0.88);
}
.app-friends__incoming-title-ic {
  width: 15px;
  height: 15px;
  opacity: 0.85;
  stroke: rgba(129, 140, 248, 0.95);
}
.app-friends__incoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}
.app-friends__incoming-list[hidden] {
  display: none !important;
}
.app-friends__incoming-empty {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.55);
  margin: 0;
  padding: 2px 0 0;
}
.app-friends__incoming-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.16);
}
.app-friends__incoming-av {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e0e7ff;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(37, 99, 235, 0.2));
}
.app-friends__incoming-text {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-friends__incoming-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.app-friends__incoming-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.app-friends__incoming-btn svg {
  width: 16px;
  height: 16px;
}
.app-friends__incoming-btn--ok {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.app-friends__incoming-btn--ok:hover {
  background: rgba(34, 197, 94, 0.45);
}
.app-friends__incoming-btn--no {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.app-friends__incoming-btn--no:hover {
  background: rgba(239, 68, 68, 0.35);
}
.app-friends__incoming-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.app-friends__firebase-warn {
  color: #fecdd3;
  background: rgba(180, 40, 50, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.app-friends__firebase-warn a {
  color: #fecaca;
  font-weight: 600;
}
.app-friends__setup-hint {
  max-width: 100%;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #e0e7ff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  margin: 0 0 20px;
}
.app-friends__setup-hint code {
  font-size: 0.82em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: #c7d2fe;
}
.app-friends__setup-hint a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: underline;
}
.app-friends__setup-hint-dismiss {
  display: block;
  margin: 10px 0 0;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 8px;
  cursor: pointer;
}
.app-friends__setup-hint-dismiss:hover {
  background: rgba(99, 102, 241, 0.4);
}
.app-friends__sidebar-top .app-friends__add-legend a {
  color: rgba(56, 189, 248, 0.9);
  font-weight: 600;
}
.app-friends__item-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}
.app-friends__item.is-blocked {
  opacity: 0.6;
  filter: grayscale(0.1);
}
.app-friends__bubble-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 4px;
  max-width: 100%;
  align-self: flex-end;
  margin-left: auto;
}
.app-friends__bubble-wrap--me {
  justify-content: flex-end;
  flex-direction: row;
  width: 100%;
}
.app-friends__bubble-acts {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 2px;
}
.app-friends__bubble-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.5);
  cursor: pointer;
  padding: 0;
  transition: color 0.12s, background 0.12s;
  opacity: 0;
  pointer-events: auto;
}
.app-friends__bubble-wrap--me:hover .app-friends__bubble-more,
.app-friends__bubble-more:focus,
.app-friends__bubble-acts:has(.app-friends__msg-dd:not([hidden])) .app-friends__bubble-more {
  opacity: 1;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
}
@media (hover: none) and (pointer: coarse) {
  .app-friends__bubble-wrap--me .app-friends__bubble-more {
    opacity: 0.75;
  }
}
.app-friends__msg-dd {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  min-width: 120px;
  background: #141624;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.app-friends__msg-dd .app-friends__dd-item {
  padding: 7px 12px;
  font-size: 0.84rem;
}
.app-friends__bubble--is-note {
  max-width: 100%;
  padding: 0;
  background: linear-gradient(145deg, rgba(30, 32, 50, 0.95) 0%, rgba(20, 22, 40, 0.98) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  color: #f1f5f9;
  text-align: left;
}
.app-friends__note-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  margin: 10px 0 2px 12px;
  padding: 2px 8px;
  border-radius: 6px;
}
.app-friends__note-title {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 12px 6px;
  color: #e2e8f0;
}
.app-friends__note-body {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0 12px 12px;
  color: #cbd5e1;
  white-space: pre-wrap;
}
.app-friends__msg-edited {
  font-size: 0.72rem;
  opacity: 0.65;
  text-align: right;
  margin-top: 4px;
}
.app-friends__edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.86rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 0 0 2px 0;
}
.app-friends__edit-cancel {
  background: none;
  border: none;
  color: #e2e8f0;
  text-decoration: underline;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0;
}
.app-friends__compose-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  position: relative;
}
.app-friends__note-pick {
  flex-shrink: 0;
  min-width: 48px;
  height: 44px;
  border: none;
  border-radius: 12px;
  color: #f1f5f9 !important;
  background: rgba(99, 102, 241, 0.2) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3);
  padding: 0;
}
.app-friends__note-pick:disabled {
  opacity: 0.45;
}
.app-friends__note-pick svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  pointer-events: none;
}
.app-friends__notes-pop {
  position: absolute;
  z-index: 15;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0f111e;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  padding: 0;
}
.app-friends__notes-pop-head {
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.app-friends__notes-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  max-height: 180px;
}
.app-friends__note-li {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.1s;
}
.app-friends__note-li:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}
.app-friends__notes-empty {
  padding: 10px 12px 4px;
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0;
}
.app-friends__notes-close {
  display: block;
  width: 100%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  color: #cbd5e1;
  font-size: 0.86rem;
  padding: 8px;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.app-friends__messages .app-friends__bubble--them.app-friends__bubble--is-note,
.app-friends__messages .app-friends__bubble--me.app-friends__bubble--is-note {
  align-self: auto;
  max-width: 92%;
}
.app-friends__back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -4px 0 -4px -6px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
}
.app-friends__back svg {
  width: 22px;
  height: 22px;
}
.app-friends__back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.app-friends__chat-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}
.app-friends__messages {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(99, 102, 241, 0.1), transparent 55%),
    rgba(5, 7, 16, 0.3);
}
.app-friends__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  max-width: 20rem;
  align-self: center;
  padding: 6px 0 0;
}
.app-friends__bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.92rem;
  word-break: break-word;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.app-friends__bubble--me {
  align-self: flex-end;
  background: linear-gradient(130deg, rgba(124, 58, 237, 0.6), rgba(14, 165, 233, 0.28));
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #f8fafc;
}
.app-friends__bubble--them {
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
.app-friends__composer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(10, 12, 28, 0.35) 100%);
  position: relative;
}
.app-friends__input {
  background: rgba(10, 14, 28, 0.9) !important;
  border: 1px solid rgba(99, 102, 241, 0.18) !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 0.94rem !important;
}
.app-friends__input:disabled {
  opacity: 0.55;
}
.app-friends__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  border: none;
  border-radius: 12px;
  padding: 0;
  color: #f8fafc !important;
  background: linear-gradient(140deg, #4f46e5 0%, #7c3aed 55%, #0ea5e9 100%) !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
  transition: transform 0.12s;
}
.app-friends__send:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.app-friends__send:disabled {
  filter: grayscale(0.2);
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}
.app-friends__send svg {
  width: 20px;
  height: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .app-friends-page__orb,
  .app-friends__add-submit,
  .app-friends__item.is-active,
  .app-friends__send {
    animation: none !important;
    transition: none;
    transform: none;
  }
}
@media (max-width: 767.98px) {
  .app-friends-page__hero {
    padding: 16px 16px 4px;
    margin-bottom: 16px;
  }
  .app-friends__split {
    grid-template-columns: 1fr;
    min-height: min(68vh, 540px);
    max-height: none;
  }
  .app-friends--show-chat .app-friends__back {
    display: inline-flex;
  }
  .app-friends:not(.app-friends--show-chat) .app-friends__chat {
    display: none;
  }
  .app-friends--show-chat .app-friends__list-wrap {
    display: none;
  }
  .app-friends:not(.app-friends--show-chat) .app-friends__back {
    display: none;
  }
}
