/* Kysen Translator — landing (admin temasıyla uyumlu, yayına hazır cilalı sürüm) */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --s1: #161b22;
  --s2: #1c2128;
  --s3: #21262d;
  --bd: #30363d;
  --bd-focus: #58a6ff;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #7c6fcd;
  --accent-deep: #4c3d8f;
  --accent-soft: #1e1b3a;
  --accent-text: #c4b5fd;
  --green: #3fb950;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 80px rgba(124, 111, 205, 0.18);
  --font: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --text-subtle: #9da6b2;
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent layout shift between pages with/without scrollbar */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: var(--safe-bottom);
  font-feature-settings: "kern" 1, "liga" 1;
  /* Keep scrollbar space consistent (avoids header/border shifting) */
  overflow-y: scroll;
}

@media (max-width: 879px) {
  body {
    padding-bottom: calc(88px + var(--safe-bottom));
  }
}

/* Arka plan */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 111, 205, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 111, 205, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% -15%, black 30%, transparent 72%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 420px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124, 111, 205, 0.22) 0%, transparent 68%);
  z-index: 0;
  will-change: opacity;
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .bg-glow {
    animation: glowBreath 10s ease-in-out infinite;
  }
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.92; filter: saturate(1); }
  50% { opacity: 1; filter: saturate(1.08); }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 28px);
}

/* ── Üst şerit (yapışkan) ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(48, 54, 61, 0.85);
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Ana ve alt sayfa üst şerit: wrap sınırı yok — marka sol kenara, menü/eylemler sağa */
.site-header .wrap,
header.sub-top.wrap {
  max-width: none;
  /* Geniş ekranda .wrap (max 28px) dar kalırdı; marka / menü köşelere yapışmasın */
  padding-left: clamp(26px, 5.5vw, 52px);
  padding-right: clamp(26px, 5.5vw, 52px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 0;
}

/* Language switch (top-right) */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.lang-btn:active {
  transform: translateY(1px);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-caret {
  opacity: 0.75;
  font-size: 12px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(22, 27, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 50;
}

.lang-menu.is-open {
  display: block;
}

.lang-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
}

.lang-item-label {
  font-weight: 800;
}

.lang-flag-icon,
.lang-flag-icon-img {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
  display: inline-block;
  flex-shrink: 0;
}

.lang-flag-icon-img {
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Account dropdown (top-right) */
.acct {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.acct-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.acct-btn:active {
  transform: translateY(1px);
}

.acct-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 111, 205, 0.20);
  border: 1px solid rgba(124, 111, 205, 0.28);
  color: rgba(236, 232, 255, 0.98);
  line-height: 1;
}

.acct-avatar-ico {
  width: 15px;
  height: 15px;
  display: block;
}

.acct-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.acct-caret {
  opacity: 0.75;
  font-size: 12px;
}

.acct-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 232px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(16, 21, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  display: none;
  z-index: 60;
}

.acct-menu.is-open {
  display: block;
}

.acct-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.acct-email {
  font-weight: 900;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -0.01em;
  word-break: break-word;
}

.acct-sub {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  font-weight: 900;
  color: rgba(220, 214, 255, 0.94);
}

.acct-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: rgba(226, 234, 246, 0.88);
  cursor: pointer;
  font-weight: 780;
  font-size: 0.95rem;
  text-decoration: none;
}

.acct-item-ico {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  opacity: 0.66;
  margin-left: 0;
}

.acct-item .acct-txt {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}

#acct-menu .acct-item[data-panel-go="profil"] .acct-txt {
  margin-left: -5px;
}

.acct-item .acct-item-ico {
  display: inline-block;
}

#acct-menu .acct-item {
  justify-content: flex-start !important;
}

#acct-menu .acct-item .acct-txt {
  text-align: left !important;
}

.acct-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.acct-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 10px;
}

.acct-logout {
  color: rgba(255, 126, 126, 0.94);
  margin-top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #9d8fe8 0%, var(--accent) 42%, var(--accent-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 28px rgba(124, 111, 205, 0.45);
}

/* Marka kilidi — maskot + wordmark + slogan */
.brand--lockup {
  text-decoration: none;
  color: inherit;
}

.brand--legal {
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transform: translateX(-30px) translateY(4px);
}

.brand-lockup__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.brand-lockup__mascot {
  flex-shrink: 0;
  display: block;
  border-radius: 22%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.brand-lockup__wordmark {
  display: block;
  height: 22px;
  width: auto;
  max-width: min(220px, 62vw);
  object-fit: contain;
  object-position: left center;
}

.brand-lockup__slogan {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p.brand-lockup__slogan {
  margin-top: 0;
}

.brand-lockup--nav .brand-lockup__mascot {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.brand-lockup--nav {
  /* Sabit hizalama: her sayfada aynı başlangıç */
  align-items: flex-start;
}

.brand-lockup--nav .brand-lockup__mascot {
  /* İkon, wordmark+slogan bloğuna yakın yükseklikte olsun */
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: -1px;
}

.brand-lockup--nav .brand-lockup__wordmark {
  height: 20px;
  max-width: min(200px, 48vw);
  margin-left: -12px;
}

.brand-lockup--nav .brand-lockup__stack {
  gap: 3px;
  /* Wordmark PNG iç boşluğu varsa, tüm sayfalarda aynı offset */
  padding-top: 1px;
  transform: none;
}

.brand-lockup--nav .brand-lockup__slogan {
  font-size: 0.68rem;
  max-width: 14rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 420px) {
  .brand-lockup--nav .brand-lockup__slogan {
    display: none;
  }
}

.brand-lockup--hero {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 4vw, 26px);
  padding: clamp(12px, 3vw, 18px) 12px 12px;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
}

.brand-lockup__mascot-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  margin-top: clamp(4px, 1.5vw, 12px);
}

.brand-lockup__mascot-shadow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 0;
  width: 78%;
  height: 26%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    transparent 72%
  );
  filter: blur(16px);
  opacity: 0.62;
}

.brand-lockup__mascot-wrap .brand-lockup__mascot {
  position: relative;
  z-index: 1;
  width: clamp(112px, 30vw, 168px);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.brand-lockup--hero .brand-lockup__stack {
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  width: 100%;
}

.brand-lockup--hero .brand-lockup__wordmark {
  display: block;
  height: clamp(26px, 7.5vw, 40px);
  width: auto;
  max-width: min(320px, 100%);
  margin: 0 auto;
}

.brand-lockup--hero .brand-lockup__slogan--hero {
  margin: 0;
  max-width: 26ch;
  margin-inline: auto;
  font-size: clamp(0.8125rem, 1.85vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--text-subtle);
}

.brand-lockup--footer {
  gap: 14px;
}

.brand-lockup--footer .brand-lockup__mascot {
  width: 48px;
  height: 48px;
}

.brand-lockup--footer .brand-lockup__wordmark {
  height: 20px;
  max-width: 200px;
}

.brand-lockup--footer .brand-lockup__stack {
  gap: 5px;
}

.brand-lockup--footer .brand-lockup__slogan {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-lockup--legal .brand-lockup__mascot {
  width: 32px;
  height: 32px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.brand-lockup--legal .brand-lockup__wordmark {
  height: 16px;
  max-width: 168px;
}

.brand-lockup--micro {
  gap: 8px;
}

.brand-lockup--micro .brand-lockup__mascot {
  width: 28px;
  height: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.brand-lockup--micro .brand-lockup__wordmark {
  height: 12px;
  max-width: 148px;
}

.hero-chips-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.hero-chips-row--quad {
  gap: 8px;
}

.hero-chips-row--quad .hero-chip {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.hero-chip {
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 111, 205, 0.35);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}

.hero-chip:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: #252142;
}

.hero-chip:focus-visible {
  outline: 2px solid var(--bd-focus);
  outline-offset: 2px;
}

.hero-chip.is-active {
  color: var(--text);
  background: rgba(124, 111, 205, 0.22);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 111, 205, 0.15) inset;
}

.hero-chip-panel {
  width: 100%;
  margin-top: 4px;
  padding: clamp(14px, 3.5vw, 18px) clamp(14px, 3vw, 18px);
  border-radius: 10px;
  text-align: left;
  background: rgba(22, 27, 34, 0.65);
  border: 1px solid var(--bd);
  min-height: 8.5rem;
}

.hero-chip-panel__title {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-chip-panel__body {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-subtle);
  white-space: pre-line;
}

@keyframes kysenShadowFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 0.58;
  }
  50% {
    transform: translateX(-50%) translateY(-8px) scale(1.06);
    opacity: 0.72;
  }
}

@keyframes kysenMascotNudge {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(2deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .brand-lockup__mascot-shadow {
    animation: kysenShadowFloat 5s ease-in-out infinite;
  }

  html.motion-ready .brand-lockup--animated:not(.brand-lockup--hero) .brand-lockup__mascot {
    animation: kysenMascotNudge 6.5s ease-in-out infinite;
  }
}

/* Masaüstü menü */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (min-width: 880px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 11px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-desktop a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-desktop a.nav-cta {
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 111, 205, 0.38);
}

.nav-desktop a.nav-home-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-desktop a.nav-home-btn:hover {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-desktop .lang-switch {
  margin-left: auto;
  transform: translateX(30px);
}

/* Logged-in header spacing */
.nav-desktop.is-auth > :not(.lang-switch) {
  transform: translateX(25px);
}

/* Logged-in: extra shift for "Özellikler" */
.nav-desktop.is-auth a[href="#ozellikler"] {
  transform: translateX(40px);
}

/* Logged-out: move nav links as one group */
.nav-desktop:not(.is-auth) a[href="#ozellikler"],
.nav-desktop:not(.is-auth) a[href="#indir"],
.nav-desktop:not(.is-auth) a[href="giris.html"],
.nav-desktop:not(.is-auth) a[href="store.html"] {
  transform: translateX(10px);
}

.nav-desktop:not(.is-auth) a[href="store.html"] {
  transform: translateX(15px);
}

.nav-desktop:not(.is-auth) {
  gap: 0;
}

.nav-desktop:not(.is-auth) a[href="#ozellikler"],
.nav-desktop:not(.is-auth) a[href="#indir"],
.nav-desktop:not(.is-auth) a[href="giris.html"],
.nav-desktop:not(.is-auth) a[href="store.html"] {
  padding-left: 10px;
  padding-right: 10px;
}

.nav-desktop .acct {
  margin-left: 2px;
}

.nav-desktop a.nav-cta:hover {
  background: #2d2457;
  border-color: rgba(167, 139, 250, 0.45);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--bd);
  background: var(--s2);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.menu-btn:active {
  transform: scale(0.97);
}

@media (max-width: 879px) {
  .menu-btn {
    margin-left: auto;
  }
}

.nav-mobile-dropdown a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-mobile-dropdown a:hover,
.nav-mobile-dropdown a:focus-visible {
  background: var(--s3);
  outline: none;
}

.nav-mobile-dropdown a.nav-cta-m {
  background: var(--accent-soft);
  border: 1px solid rgba(124, 111, 205, 0.35);
  color: var(--accent-text);
  margin-top: 6px;
  text-align: center;
}

/* Checkbox: mobil menü (kardeş seçici için header içinde ilk sırada) */
.nav-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

@media (min-width: 880px) {
  .menu-btn {
    display: none !important;
  }
}

.nav-mobile-dropdown {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 16px;
}

#nav-open:checked ~ .nav-mobile-dropdown {
  display: flex;
}

@media (min-width: 880px) {
  .nav-mobile-dropdown {
    display: none !important;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 7vw, 80px);
}

.hero-inner {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-inner .hero-copy {
    text-align: left;
  }

  .hero-inner .hero-actions {
    justify-content: flex-start;
  }

  .hero-inner .hero-hint {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-copy {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--s2);
  border: 1px solid var(--bd);
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(63, 185, 80, 0.65);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.hero h1 .hl {
  background: linear-gradient(120deg, #e6edf3 0%, #c4b5fd 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 0 28px;
  color: var(--text-subtle);
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  line-height: 1.62;
  max-width: 36em;
}

.lead-strong {
  color: var(--text);
  font-weight: 600;
}

.hero-inner .lead {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 960px) {
  .hero-inner .lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 0;
}

.hero-actions--primary {
  margin-bottom: 12px;
}

.hero-actions--secondary {
  gap: 8px;
}

.hero-actions--secondary .btn {
  padding: 11px 18px;
  font-size: 0.88rem;
}

.hero-hint {
  max-width: 38em;
  margin: 18px auto 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.55;
  opacity: 0.95;
}

@media (min-width: 960px) {
  .hero-hint {
    margin-top: 20px;
  }
}

/* Sağ — sade ürün görseli (gerçek ikon + rozet; taklit arayüz yok) */
.hero-visual {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(145deg, rgba(124, 111, 205, 0.45), rgba(48, 54, 61, 0.6));
  box-shadow: var(--shadow-glow);
}

.hero-visual-inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-elevated);
  border: 1px solid var(--bd);
  overflow: visible;
  padding:
    clamp(52px, 14vw, 80px)
    clamp(20px, 4vw, 36px)
    clamp(26px, 5vw, 44px);
  text-align: center;
}

/* ── Güven şeridi ─────────────────────────────────────────── */
.trust-strip {
  padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 5vw, 48px);
  text-align: center;
}

.trust-heading {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.trust-sub {
  margin: 0 auto 28px;
  max-width: 36em;
  font-size: 0.9375rem;
  color: var(--text-subtle);
  line-height: 1.62;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.trust-item {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--s1);
  border: 1px solid var(--bd);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
  border-color: rgba(124, 111, 205, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.trust-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 111, 205, 0.28);
  color: var(--accent-text);
}

.trust-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.trust-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.trust-text a {
  color: var(--bd-focus);
  font-weight: 600;
  text-decoration: none;
}

.trust-text a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-reassure {
  margin: 28px auto 0;
  max-width: 44em;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(88, 166, 255, 0.05);
  border: 1px solid rgba(88, 166, 255, 0.18);
}

.download-reassure strong {
  color: var(--text);
  font-weight: 600;
}

.trust-list {
  margin: 0 0 22px;
  padding: 0 0 0 22px;
  text-align: left;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.trust-list li {
  margin-bottom: 12px;
}

.trust-list li:last-child {
  margin-bottom: 0;
}

.trust-list a {
  color: var(--bd-focus);
  font-weight: 600;
}

.purchase-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0 !important;
}

.note-box--muted {
  background: rgba(139, 148, 158, 0.06);
  border-color: rgba(139, 148, 158, 0.22);
  color: var(--muted);
}

/* Mobil sabit indir çubuğu */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--bd);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 879px) {
  .sticky-cta {
    display: flex;
  }
}

.sticky-cta--visible {
  transform: translateY(0);
}

.sticky-cta-main {
  flex: 1;
  min-width: 0;
  max-width: 280px;
}

.sticky-cta-secondary {
  flex-shrink: 0;
  padding: 12px 16px !important;
  min-height: 44px !important;
}

/* ── Bölümler ──────────────────────────────────────────────── */
/* Sadece dikey — .wrap ile aynı elemanda kullanıldığında yatay padding ezilmesin */
.section {
  padding-top: clamp(44px, 7vw, 88px);
  padding-bottom: clamp(44px, 7vw, 88px);
}

.section--alt {
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.35) 0%, transparent 100%);
  border-top: 1px solid rgba(48, 54, 61, 0.5);
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.section--minimal {
  border-top: 1px dashed rgba(124, 111, 205, 0.25);
  border-bottom: 1px dashed rgba(124, 111, 205, 0.25);
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.25) 0%, rgba(13, 17, 23, 0.05) 100%);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
  opacity: 0.95;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 34em;
  font-size: 0.98rem;
}

/* Aynı bölümde iki panel: özellikler (çekirdek) + stiller (ton) — karışmaması için sınır */
.section-panel--split {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid rgba(48, 54, 61, 0.75);
}

.section-panel--editorial .section-head {
  margin-bottom: clamp(22px, 3vw, 30px);
}

.section-panel--editorial .section-lead {
  max-width: 31em;
  color: rgba(222, 229, 240, 0.84);
  font-size: 1.02rem;
}

/* Oyunlar / diller bölümleri — lead paragraf */
.section-lead {
  margin: 0 auto;
  max-width: 36em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}

/* Desteklenen oyunlar — etiket ızgarası */
.game-pill-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* Konuşma stilleri — başlık + kısa açıklama (ikon yok) */
.card .style-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: rgba(236, 232, 255, 0.96);
}

.card .style-card__desc {
  margin: 0;
  color: rgba(220, 226, 235, 0.78);
  font-size: 0.89rem;
  line-height: 1.58;
}

.styles-grid .card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(28, 33, 40, 0.96) 0%, rgba(22, 27, 34, 0.96) 100%);
  border: 1px solid rgba(124, 111, 205, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.styles-grid .card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 111, 205, 0.0), rgba(124, 111, 205, 0.9), rgba(124, 111, 205, 0.0));
  opacity: 0.65;
}

.styles-grid .card:hover {
  border-color: rgba(167, 139, 250, 0.52);
  box-shadow: 0 22px 56px rgba(12, 14, 20, 0.5), 0 0 0 1px rgba(124, 111, 205, 0.12) inset;
  transform: translateY(-3px);
}

.styles-grid .card:nth-child(1) {
  background: linear-gradient(168deg, rgba(23, 31, 44, 0.94) 0%, rgba(20, 27, 36, 0.96) 100%);
}

.styles-grid .card:nth-child(2) {
  background: linear-gradient(168deg, rgba(38, 27, 45, 0.92) 0%, rgba(23, 27, 39, 0.96) 100%);
}

.styles-grid .card:nth-child(3) {
  background: linear-gradient(168deg, rgba(27, 33, 46, 0.95) 0%, rgba(22, 27, 34, 0.96) 100%);
}

.styles-grid .card:nth-child(4) {
  background: linear-gradient(168deg, rgba(45, 25, 34, 0.9) 0%, rgba(24, 24, 32, 0.96) 100%);
}

.styles-grid .card:nth-child(5) {
  background: linear-gradient(168deg, rgba(34, 24, 46, 0.9) 0%, rgba(22, 24, 33, 0.96) 100%);
}

.game-pill-grid li {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(230, 237, 243, 0.9);
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(48, 54, 61, 0.95);
  line-height: 1.3;
  text-align: center;
}

/* Desteklenen diller — etiket ızgarası */
.lang-pill-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.lang-pill-grid li {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(230, 237, 243, 0.9);
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(48, 54, 61, 0.95);
  line-height: 1.3;
  text-align: center;
}

.lang-pill-grid--minimal {
  gap: 8px 10px;
  max-width: 1040px;
}

.lang-pill-grid--minimal li {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(205, 214, 226, 0.84);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(124, 111, 205, 0.18);
}

@media (min-width: 640px) {
  .game-pill-grid {
    gap: 12px 14px;
  }
  .game-pill-grid li {
    font-size: 0.88rem;
    padding: 11px 16px;
  }
  .lang-pill-grid {
    gap: 11px 13px;
  }
  .lang-pill-grid li {
    font-size: 0.86rem;
    padding: 10px 14px;
  }
}

/* Kartlar (özellikler ızgarası — içerik border’a yapışmasın) */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Konuşma stilleri: beş üst stil (Troll ayrı kart) */
.grid-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

.card {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 32px) clamp(22px, 2.8vw, 28px) clamp(26px, 3vw, 32px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

.card:hover {
  border-color: rgba(124, 111, 205, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(124, 111, 205, 0.2) 0%, var(--accent-soft) 100%);
  border: 1px solid rgba(124, 111, 205, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px 0;
  color: rgba(222, 213, 255, 0.95);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* Kısayollar */
.hotkeys {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .hotkeys {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.hk {
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius-lg);
  background: var(--s1);
  border: 1px solid var(--bd);
  transition: border-color 0.15s;
}

.hk:hover {
  border-color: rgba(124, 111, 205, 0.35);
}

.hk kbd {
  display: inline-block;
  min-width: 52px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--s3);
  border: 1px solid var(--bd);
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 10px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.hk p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

/* İndir — seçim kartları */
.download-grid {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--s1);
  border: 1px solid var(--bd);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  border-color: rgba(124, 111, 205, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.download-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.download-card > p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.download-card .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

/* İndir — tek güçlü CTA paneli */
.download-cta-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 28px);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(155deg, rgba(26, 31, 40, 0.96) 0%, rgba(19, 23, 31, 0.96) 100%);
  border: 1px solid rgba(124, 111, 205, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.download-cta-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.download-cta-actions .btn {
  width: 100%;
  min-height: 50px;
}

@media (min-width: 720px) {
  .download-cta-actions {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.code-inline {
  font-family: ui-monospace, monospace;
  font-size: 0.82em;
  color: var(--accent-text);
  background: var(--s3);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--bd);
}

/* Lisans */
.purchase-box {
  background: linear-gradient(165deg, rgba(28, 33, 40, 0.95) 0%, var(--s1) 100%);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
}

.purchase-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  font-weight: 800;
}

.purchase-box > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.purchase-box .hero-actions {
  justify-content: center;
}

.purchase-box a:not(.btn) {
  color: var(--bd-focus);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.purchase-box a:not(.btn):hover {
  color: #79c0ff;
}

.note-box {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.06);
  border: 1px solid rgba(88, 166, 255, 0.22);
  color: var(--muted);
  font-size: 0.84rem;
  text-align: left;
  line-height: 1.55;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    filter 0.15s,
    border-color 0.15s,
    background 0.15s,
    transform 0.12s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:focus-visible {
  outline: 2px solid var(--bd-focus);
  outline-offset: 2px;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

/* Ripple (JS adds .btn-ripple span) */
.btn-ripple {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: kysen-ripple 560ms cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

@keyframes kysen-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-ripple {
    display: none !important;
  }
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #9485e6 0%, var(--accent) 48%, var(--accent-deep) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 32px rgba(124, 111, 205, 0.38);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.07);
}

/* Pro hero CTA motion (like modern landing pages) */
.btn-primary--bounce {
  position: relative;
  overflow: hidden;
  transform-origin: center;
  animation: kysen-cta-bounce 2.6s ease-in-out infinite;
}

.btn-primary--bounce::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 42%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 66%
  );
  transform: translateX(-70%) rotate(6deg);
  animation: kysen-cta-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary--bounce:hover:not(:disabled) {
  animation-play-state: paused;
  transform: translateY(-1px) scale(1.01);
}

@keyframes kysen-cta-bounce {
  0%, 74%, 100% { transform: translateY(0) scale(1); }
  78% { transform: translateY(-5px) scale(1.015); }
  82% { transform: translateY(0) scale(1); }
  88% { transform: translateY(-2px) scale(1.008); }
  92% { transform: translateY(0) scale(1); }
}

@keyframes kysen-cta-shine {
  0%, 72%, 100% { transform: translateX(-70%) rotate(6deg); opacity: 0; }
  78% { opacity: 1; }
  88% { transform: translateX(70%) rotate(6deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary--bounce {
    animation: none !important;
  }
  .btn-primary--bounce::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

.btn-secondary {
  background: var(--s3);
  color: var(--text);
  border-color: var(--bd);
}

.btn-secondary:hover {
  background: var(--s2);
  border-color: var(--bd-focus);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--bd);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* Footer */
.site-footer {
  margin-top: clamp(32px, 6vw, 56px);
  padding: 36px 0 48px;
  border-top: 1px solid var(--bd);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 720px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

@media (min-width: 720px) {
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-brand__lockup {
  width: 100%;
  justify-content: center;
}

@media (min-width: 720px) {
  .footer-brand__lockup {
    justify-content: flex-start;
  }
}

.footer-brand__desc {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

@media (min-width: 720px) {
  .footer-links {
    justify-content: flex-end;
    max-width: none;
    gap: 10px 16px;
  }
}

.footer-links a {
  color: var(--bd-focus);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .fine {
  margin: 28px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  opacity: 0.88;
}

/* ── Yasal / bilgi alt sayfaları (footer linkleri) ───────────────── */
.legal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: clamp(12px, 3vw, 24px);
}

.legal-top .legal-back {
  margin: 0;
}

.legal-back {
  display: inline-block;
  margin: clamp(24px, 4vw, 36px) auto 8px;
  padding: 10px 0;
  color: var(--bd-focus);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 clamp(48px, 8vw, 72px);
}

.legal-prose {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-prose h1 {
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.legal-prose h2 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.legal-prose p,
.legal-prose li {
  margin: 0 0 12px;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.legal-prose a {
  color: var(--bd-focus);
  font-weight: 600;
  text-decoration: none;
}

.legal-prose a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0 20px;
}

.legal-prose th,
.legal-prose td {
  border: 1px solid var(--bd);
  padding: 10px 12px;
  text-align: left;
}

.legal-prose th {
  background: var(--s2);
  color: var(--text);
}

.legal-prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--s3);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--bd);
  color: var(--accent-text);
}

/* ── Hareket (modern “motion” siteleri: CSS + kaydırınca görünür) ── */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .hero-copy .motion-hero {
    opacity: 0;
    animation: riseIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  html.motion-ready .hero-copy .motion-hero:nth-child(1) { animation-delay: 0.05s; }
  html.motion-ready .hero-copy .motion-hero:nth-child(2) { animation-delay: 0.11s; }
  html.motion-ready .hero-copy .motion-hero:nth-child(3) { animation-delay: 0.18s; }
  html.motion-ready .hero-copy .motion-hero:nth-child(4) { animation-delay: 0.26s; }
  html.motion-ready .hero-copy .motion-hero:nth-child(5) { animation-delay: 0.34s; }
  html.motion-ready .hero-copy .motion-hero:nth-child(6) { animation-delay: 0.41s; }

  html.motion-ready .motion-hero-card .hero-visual-inner {
    animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    opacity: 0;
  }

  /* Scroll ile beliren bloklar — JS sınıfı motion-ready gerektirir */
  html.motion-ready [data-animate] .motion-rise {
    transition:
      opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.motion-ready [data-animate]:not(.is-inview) .motion-rise {
    opacity: 0;
    transform: translateY(28px);
  }

  html.motion-ready [data-animate].is-inview .motion-rise {
    opacity: 1;
    transform: translateY(0);
  }

  html.motion-ready [data-animate].is-inview .grid-3 .motion-rise:nth-child(1) { transition-delay: 0.04s; }
  html.motion-ready [data-animate].is-inview .grid-3 .motion-rise:nth-child(2) { transition-delay: 0.11s; }
  html.motion-ready [data-animate].is-inview .grid-3 .motion-rise:nth-child(3) { transition-delay: 0.18s; }
  html.motion-ready [data-animate].is-inview .grid-3 .motion-rise:nth-child(4) { transition-delay: 0.08s; }
  html.motion-ready [data-animate].is-inview .grid-3 .motion-rise:nth-child(5) { transition-delay: 0.15s; }
  html.motion-ready [data-animate].is-inview .grid-3 .motion-rise:nth-child(6) { transition-delay: 0.22s; }

  html.motion-ready [data-animate].is-inview .grid-5 .motion-rise:nth-child(1) { transition-delay: 0.04s; }
  html.motion-ready [data-animate].is-inview .grid-5 .motion-rise:nth-child(2) { transition-delay: 0.09s; }
  html.motion-ready [data-animate].is-inview .grid-5 .motion-rise:nth-child(3) { transition-delay: 0.14s; }
  html.motion-ready [data-animate].is-inview .grid-5 .motion-rise:nth-child(4) { transition-delay: 0.19s; }
  html.motion-ready [data-animate].is-inview .grid-5 .motion-rise:nth-child(5) { transition-delay: 0.24s; }

  html.motion-ready [data-animate].is-inview .hotkeys .motion-rise:nth-child(1) { transition-delay: 0.05s; }
  html.motion-ready [data-animate].is-inview .hotkeys .motion-rise:nth-child(2) { transition-delay: 0.12s; }
  html.motion-ready [data-animate].is-inview .hotkeys .motion-rise:nth-child(3) { transition-delay: 0.19s; }

  html.motion-ready [data-animate].is-inview .download-grid .motion-rise:nth-child(1) { transition-delay: 0.06s; }
  html.motion-ready [data-animate].is-inview .download-grid .motion-rise:nth-child(2) { transition-delay: 0.14s; }
  html.motion-ready [data-animate].is-inview .download-cta-panel.motion-rise { transition-delay: 0.08s; }

  html.motion-ready [data-animate].trust-strip.is-inview .trust-heading.motion-rise { transition-delay: 0.03s; }
  html.motion-ready [data-animate].trust-strip.is-inview .trust-sub.motion-rise { transition-delay: 0.09s; }

  html.motion-ready [data-animate].trust-strip.is-inview .trust-grid .motion-rise:nth-child(1) { transition-delay: 0.14s; }
  html.motion-ready [data-animate].trust-strip.is-inview .trust-grid .motion-rise:nth-child(2) { transition-delay: 0.2s; }
  html.motion-ready [data-animate].trust-strip.is-inview .trust-grid .motion-rise:nth-child(3) { transition-delay: 0.26s; }

  .btn {
    transition:
      filter 0.15s,
      border-color 0.15s,
      background 0.15s,
      transform 0.12s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.2s ease;
  }

  .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12) inset,
      0 12px 36px rgba(124, 111, 205, 0.42);
  }

  .btn-secondary:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover,
  .btn:active {
    transform: none;
  }

  .bg-glow {
    animation: none !important;
  }

  .brand-lockup--animated .brand-lockup__mascot {
    animation: none !important;
  }

  .brand-lockup__mascot-shadow {
    animation: none !important;
  }

  .sticky-cta {
    transition: none !important;
  }
}

/* Alt sayfalar — üst bar + mini footer + 404 */
.sub-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.85);
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
}

.sub-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.sub-top-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.sub-top-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.sub-top-nav a.nav-cta {
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 111, 205, 0.38);
}

.sub-top-nav a.nav-cta:hover {
  color: var(--accent-text);
  background: #2d2457;
  border-color: rgba(167, 139, 250, 0.45);
}

.sub-top-nav a.nav-home-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sub-top-nav a.nav-home-btn:hover {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.brand--sub {
  font-size: 1.02rem;
}

.brand--sub .brand-lockup--nav .brand-lockup__slogan {
  font-size: 0.68rem;
}

.brand--sub .brand-lockup--nav .brand-lockup__mascot {
  width: 48px;
  height: 48px;
}

.brand--sub .brand-lockup--nav .brand-lockup__wordmark {
  height: 20px;
}

.site-footer-mini {
  margin-top: 48px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--bd);
  position: relative;
  z-index: 1;
}

.footer-mini-brand {
  text-align: center;
  margin-bottom: 20px;
}

.footer-mini-brand__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.footer-mini-brand__slogan {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.footer-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
}

.footer-mini-grid a {
  color: var(--bd-focus);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-mini-grid a:hover {
  text-decoration: underline;
}

.footer-mini-grid a[aria-current="page"] {
  color: var(--text);
}

.page-404 {
  padding-top: clamp(48px, 12vw, 120px);
  padding-bottom: 48px;
  text-align: center;
}

.page-404-code {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 0 0 8px;
  color: var(--accent-text);
  opacity: 0.85;
}

.page-404 h1 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.page-404 .legal-prose {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* Portal (giriş + panel) — uygulama estetiğiyle uyumlu */
/* ────────────────────────────────────────────────────────────────────────── */

.portal-shell {
  position: relative;
  z-index: 1;
  padding: 22px 0 56px;
}

.giris-shell {
  padding-top: clamp(36px, 7vw, 72px);
  padding-bottom: clamp(50px, 8vw, 88px);
}

.giris-layout {
  display: block;
  max-width: 640px;
  margin: 0 auto;
}

.portal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.portal-card__inner {
  padding: 18px;
}

.giris-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(165deg, rgba(24, 30, 40, 0.96) 0%, rgba(19, 24, 33, 0.97) 100%);
  border: 1px solid rgba(124, 111, 205, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.giris-card__inner {
  padding: clamp(22px, 4vw, 34px);
}

.giris-head {
  margin-bottom: 8px;
}

.giris-title {
  font-size: clamp(1.34rem, 2.8vw, 1.72rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.giris-sub {
  margin-bottom: 20px;
  font-size: clamp(0.98rem, 1.9vw, 1.07rem);
  color: rgba(230, 237, 243, 0.76);
}

.giris-form .portal-input {
  min-height: 50px;
  font-size: 0.98rem;
}

.giris-actions {
  margin-top: 14px;
}

.giris-actions .portal-btn {
  min-height: 50px;
  min-width: 136px;
  padding: 0 18px;
  font-size: 1rem;
}

#authPane > .giris-actions {
  width: 100%;
}

#authPane > .giris-actions #btnModeSignup {
  margin-left: auto;
}

.giris-forgot-row {
  margin-top: 8px;
}

.giris-mode-row {
  margin-top: 0;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.giris-mode-btn {
  width: auto;
  min-width: 138px;
  min-height: 48px;
  font-size: 0.98rem;
}

.giris-signup-only {
  margin-bottom: 6px;
}

.giris-recover {
  padding-top: 6px;
}

.giris-recover-step2 {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.giris-status {
  margin-top: 12px;
  min-height: 20px;
}

.giris-card .portal-label {
  font-size: 0.9rem;
  font-weight: 760;
  color: rgba(230, 237, 243, 0.82);
  margin: 14px 0 7px;
}

.giris-card .portal-input {
  border-radius: 13px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(5, 10, 20, 0.56);
}

.giris-card .portal-input::placeholder {
  color: rgba(205, 214, 229, 0.48);
}

.giris-card .portal-btn {
  border-radius: 13px;
}

.giris-card .portal-btn--primary {
  box-shadow: 0 10px 24px rgba(124, 111, 205, 0.24);
}

.giris-card .portal-btn--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.giris-card .portal-link-btn {
  font-size: 1.02rem;
}

.giris-note {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 0 2px;
}

.portal-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.portal-subtitle {
  margin: 0 0 14px;
  color: rgba(230, 237, 243, 0.72);
}

.portal-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(230, 237, 243, 0.70);
  margin: 12px 0 6px;
}

.portal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}

.portal-input:focus {
  border-color: rgba(124, 111, 205, 0.80);
  box-shadow: 0 0 0 3px rgba(124, 111, 205, 0.18);
}

.portal-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  margin: 2px 0 14px;
}

.profile-hero__avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: rgba(238, 233, 255, 0.96);
  background: rgba(124, 111, 205, 0.22);
  border: 1px solid rgba(124, 111, 205, 0.34);
}

.profile-hero__name {
  font-weight: 850;
  color: rgba(244, 248, 255, 0.96);
  line-height: 1.2;
}

.profile-hero__email {
  margin-top: 3px;
  font-size: 0.86rem;
  color: rgba(220, 228, 240, 0.72);
}

#btnSaveProfile {
  min-width: 112px;
}

[data-panel="profil"] .portal-row .portal-input {
  flex: 1 1 280px;
  min-width: 220px;
}

.profile-danger-zone {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.profile-btn-danger {
  border-color: rgba(248, 113, 113, 0.35);
  color: rgba(255, 188, 188, 0.96);
  background: rgba(248, 113, 113, 0.08);
}

.profile-btn-danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.14);
  color: rgba(255, 210, 210, 0.98);
}

/* Usage mini chart (panel) */
.usage-range {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.usage-range__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 950;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}

.usage-range__btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.usage-range__btn:active {
  transform: translateY(1px);
}

.usage-range__btn.is-on {
  background: rgba(124, 111, 205, 0.92);
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 20px rgba(124, 111, 205, 0.18);
}

.usage-chart {
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), 1fr);
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.usage-empty {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 234, 246, 0.76);
  font-size: 0.85rem;
  font-weight: 760;
}

.usage-bar {
  position: relative;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: default;
}

.usage-bar > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.95), rgba(124, 111, 205, 0.78));
  box-shadow: 0 0 18px rgba(124, 111, 205, 0.22);
  transition: height 0.35s cubic-bezier(.2,.9,.2,1);
}

.usage-bar > b {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  font-size: 11px;
  opacity: 0.86;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-align: center;
}

.usage-bar > small {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  font-size: 11px;
  opacity: 0.62;
  text-align: center;
}

.usage-bar:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.usage-bar:hover > i {
  filter: saturate(1.08);
  box-shadow: 0 0 26px rgba(124, 111, 205, 0.26);
}

@media (max-width: 520px) {
  .usage-chart { gap: 6px; }
  .usage-bar { height: 56px; border-radius: 11px; }
}

/* Billing timeline (panel) */
.bill-timeline {
  display: grid;
  gap: 7px;
}

.bill-item {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-top: 5px;
  background: rgba(124, 111, 205, 0.95);
  box-shadow: 0 0 10px rgba(124, 111, 205, 0.2);
}

.bill-title {
  font-weight: 880;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
  font-size: 0.84rem;
}

.bill-meta {
  margin-top: 2px;
  font-size: 0.74rem;
  color: rgba(230, 237, 243, 0.70);
}

.bill-item.is-warn .bill-dot {
  background: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.22);
}

.portal-btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.portal-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.portal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.portal-btn--primary {
  background: rgba(124, 111, 205, 0.92);
  border-color: rgba(124, 111, 205, 0.35);
}

.portal-btn--primary:hover {
  background: rgba(124, 111, 205, 1.0);
}

.portal-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

.portal-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(208, 216, 232, 0.86);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(208, 216, 232, 0.36);
  text-underline-offset: 3px;
}

.portal-link-btn:hover {
  color: rgba(236, 244, 255, 0.98);
  text-decoration-color: rgba(236, 244, 255, 0.6);
}

.portal-status {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(230, 237, 243, 0.70);
}

.portal-status.is-err {
  color: #f87171;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.confirm-modal.is-open {
  display: flex;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.confirm-modal__card {
  position: relative;
  width: min(520px, calc(100vw - 30px));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 26, 35, 0.98), rgba(14, 20, 28, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 18px 18px 14px;
}

.confirm-modal__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: rgba(242, 248, 255, 0.98);
}

.confirm-modal__text {
  margin: 10px 0 0;
  color: rgba(224, 232, 244, 0.86);
  font-weight: 760;
  line-height: 1.5;
}

.confirm-modal__field {
  margin-top: 12px;
}

.confirm-modal__field .portal-label {
  margin-bottom: 6px;
}

.confirm-modal__field .portal-input {
  width: 100%;
}

.confirm-modal__field .portal-status {
  margin-top: 8px;
}

.confirm-modal__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal__actions .portal-btn {
  min-width: 104px;
}

.portal-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.portal-nav {
  padding: 14px;
}

.portal-nav__top {
  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);
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.portal-pill--sub {
  min-height: 34px;
  gap: 10px;
  padding: 6px 12px;
  margin-left: 20px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  transform: translateY(-10px);
}

.portal-pill--sub .portal-pill__k {
  color: rgba(210, 220, 236, 0.78);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.portal-pill--sub .portal-pill__v {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 950;
  color: rgba(236, 243, 255, 0.98);
}

.portal-pill--sub .portal-pill__v::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.portal-pill.is-on {
  border-color: rgba(124, 111, 205, 0.45);
  background: rgba(124, 111, 205, 0.12);
  color: rgba(220, 214, 255, 0.98);
}

.portal-pill--sub.is-active {
  border-color: rgba(74, 222, 128, 0.42);
  background: linear-gradient(180deg, rgba(42, 138, 88, 0.22), rgba(33, 98, 66, 0.18));
}

.portal-pill--sub.is-active .portal-pill__k {
  color: rgba(204, 248, 223, 0.84);
}

.portal-pill--sub.is-active .portal-pill__v {
  color: rgba(230, 255, 240, 0.98);
}

.portal-pill--sub.is-active .portal-pill__v::before {
  background: rgba(74, 222, 128, 0.95);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.42);
}

.portal-pill--sub.is-passive {
  border-color: rgba(248, 113, 113, 0.32);
  background: linear-gradient(180deg, rgba(112, 40, 48, 0.2), rgba(82, 30, 36, 0.17));
}

.portal-pill--sub.is-passive .portal-pill__k {
  color: rgba(255, 216, 220, 0.82);
}

.portal-pill--sub.is-passive .portal-pill__v {
  color: rgba(255, 234, 236, 0.98);
}

.portal-pill--sub.is-passive .portal-pill__v::before {
  background: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.34);
}

.portal-tabs {
  padding: 12px 6px 6px;
}

.portal-tabbtn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-weight: 900;
}

.portal-tabbtn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-tabbtn.is-active {
  background: rgba(124, 111, 205, 0.14);
  border-color: rgba(124, 111, 205, 0.30);
  color: rgba(236, 232, 255, 0.98);
}

.portal-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  align-items: center;
}

.portal-k {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.portal-v {
  color: rgba(255, 255, 255, 0.90);
  font-weight: 800;
  font-size: 13px;
  word-break: break-word;
}

.sub-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.sub-overview__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  font-size: 0.82rem;
}

.sub-overview__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.92);
}

.sub-overview__badge.is-active {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(42, 138, 88, 0.2);
  color: rgba(230, 255, 240, 0.98);
}

.sub-overview__badge.is-active::before {
  background: rgba(74, 222, 128, 0.95);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.42);
}

.sub-overview__badge.is-passive {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(112, 40, 48, 0.2);
  color: rgba(255, 234, 236, 0.98);
}

.sub-overview__badge.is-passive::before {
  background: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.35);
}

.sub-overview__meta {
  text-align: right;
}

.sub-overview__meta span {
  display: block;
  font-size: 0.73rem;
  color: rgba(230, 237, 243, 0.62);
}

.sub-overview__meta strong {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  color: rgba(236, 243, 255, 0.95);
}

.sub-stats-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sub-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 11px;
}

.sub-stat-card__k {
  margin: 0;
  color: rgba(230, 237, 243, 0.62);
  font-size: 0.74rem;
  font-weight: 760;
}

.sub-stat-card__v {
  margin: 5px 0 0;
  color: rgba(236, 243, 255, 0.96);
  font-size: 0.9rem;
  font-weight: 900;
  word-break: break-word;
}

.sub-device-card {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.sub-device-card__h {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(230, 237, 243, 0.62);
  font-weight: 760;
}

.sub-device-card__hw {
  margin: 4px 0 10px;
  color: rgba(236, 243, 255, 0.96);
  font-weight: 900;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.sub-device-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sub-device-card__meta span {
  display: block;
  color: rgba(230, 237, 243, 0.62);
  font-size: 0.72rem;
}

.sub-device-card__meta strong {
  display: block;
  margin-top: 3px;
  color: rgba(232, 240, 252, 0.92);
  font-size: 0.8rem;
  font-weight: 850;
}

.sub-actions-row {
  margin-top: 12px;
}

.sub-renew-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: linear-gradient(180deg, rgba(106, 35, 46, 0.18), rgba(73, 24, 33, 0.14));
}

.sub-renew-card__h {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(255, 226, 229, 0.96);
}

.sub-renew-card__p {
  margin: 5px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 208, 213, 0.84);
}

.sub-renew-card__btn {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.08);
  color: rgba(255, 228, 231, 0.95);
}

.sub-renew-card__btn:hover {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.14);
}

.portal-panels [data-panel] {
  display: none;
}
.portal-panels [data-panel].is-active {
  display: block;
}

@media (max-width: 980px) {
  .portal-panel {
    grid-template-columns: 1fr;
  }

  .sub-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile polish pass: tighter hierarchy and safer spacing */
@media (max-width: 879px) {
  .brand-lockup--nav {
    transform: translateX(35px) translateY(5px);
  }

  .site-header .wrap {
    padding-left: clamp(14px, 4vw, 18px);
    padding-right: clamp(14px, 4vw, 18px);
  }

  .site-nav {
    min-height: 56px;
    padding: 8px 0;
  }

  .brand-lockup--nav {
    align-items: center;
    gap: 10px;
  }

  .site-nav .brand {
    min-width: 0;
  }

  .brand-lockup--nav .brand-lockup__mascot {
    width: 48px;
    height: 48px;
    margin-top: 0;
  }

  .brand-lockup--nav .brand-lockup__stack {
    padding-top: 0;
    gap: 2px;
  }

  .brand-lockup--nav .brand-lockup__wordmark {
    max-width: 194px;
    height: 20px;
    margin-left: 0;
  }

  .hero {
    padding: 30px 0 40px;
  }

  .hero-badge {
    margin-bottom: 14px;
    padding: 7px 14px;
    font-size: 0.69rem;
    letter-spacing: 0.05em;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(1.62rem, 8.8vw, 2.06rem);
    line-height: 1.12;
  }

  .hero .lead {
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .hero-chip-panel {
    text-align: center;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-chip-panel__title,
  .hero-chip-panel__body {
    text-align: center;
  }

  .hero-chip-panel__body {
    margin-left: auto;
    margin-right: auto;
    max-width: 30ch;
  }

  .section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .card {
    padding: 14px;
    border-radius: 13px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-mobile-dropdown {
    gap: 8px;
    padding: 10px 8px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-mobile-dropdown a {
    padding: 12px 12px;
    font-size: 0.92rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.02);
  }

  .hero-visual-inner {
    padding: 14px 12px;
  }

  .hero-visual-inner .brand-lockup--hero {
    transform: translateX(15px);
  }

  .hero-chips-row--quad {
    justify-content: center;
    gap: 6px;
  }

  .hero-chips-row--quad .hero-chip {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .portal-card__inner {
    padding: 14px;
  }

  .portal-row {
    gap: 8px;
  }

  .sub-device-card__meta {
    grid-template-columns: 1fr;
  }
}
