/* Bubi Ads — giriş/kayıt sayfaları (yalnızca layoutMode=auth). Apple esintili görünüm; site.css'in üzerine. */
.site--auth {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --brand: #0A5CFF; --brand-50: #EEF4FF; --brand-100: #DCE7FF;
  --bg: #F5F5F7; --surface: #FFFFFF; --surface-2: #F5F5F7; --text: #1D1D1F; --muted: #6E6E73; --border: #E5E5EA;
  --field-border: #D2D2D7; --card-border: rgba(0, 0, 0, .06); --fill: rgba(118, 118, 128, .12);
  --ok: #1E8A3C; --ok-bg: #E8F6EC; --bad: #D70015; --bad-bg: #FFEDEE;
  --s-bg: #F5F5F7; --s-tint: #EEF4FF; --s-primary: #0A5CFF; --s-primary-2: #0A5CFF; --s-primary-hover: #0050E6; --s-brand-text: #0A5CFF; --s-ring: #0A5CFF;
  --s-header-bg: rgba(245, 245, 247, .76);
  --s-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site--auth {
    --brand: #4C8DFF; --brand-50: #0E1D36; --brand-100: #15294D;
    --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --text: #F5F5F7; --muted: #98989F; --border: #38383A;
    --field-border: #3A3A3C; --card-border: rgba(255, 255, 255, .07); --fill: rgba(118, 118, 128, .24);
    --ok: #30D158; --ok-bg: #0F2A17; --bad: #FF6B60; --bad-bg: #3A1614;
    --s-bg: #000000; --s-tint: #0E1D36; --s-primary: #2B6CFF; --s-primary-2: #4C8DFF; --s-primary-hover: #4580FF; --s-brand-text: #6FA3FF; --s-ring: #4C8DFF;
    --s-header-bg: rgba(0, 0, 0, .72);
    --s-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  }
}
body.site--auth { font-family: var(--font); background: var(--s-bg); letter-spacing: -.005em; }
.site--auth .s-header { background: var(--s-header-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.site--auth :focus-visible { outline: 3px solid color-mix(in srgb, var(--s-ring) 55%, transparent); outline-offset: 2px; }

/* Kart */
.s-authcard { border-radius: 22px; border: 1px solid var(--card-border); box-shadow: var(--s-shadow); padding: clamp(24px, 4vw, 40px); }
.s-authcard h1 { font-weight: 700; letter-spacing: -.03em; }
.s-authcard__logo { margin-bottom: 10px; border-radius: 16px; }
.s-authcard__logo img { box-shadow: none; border-radius: 0; }
.s-authcard__logo .mascot-auth { width: 76px; height: 76px; }
@media (prefers-reduced-motion: no-preference) {
  .s-authcard__logo .mascot-auth { animation: auth-bob 4s ease-in-out infinite; transform-origin: 50% 100%; }
}
@keyframes auth-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-2deg); } }

/* Düğmeler: hap biçimi */
.site--auth .s-btn { border-radius: 999px; font-weight: 600; letter-spacing: -.01em; }
.site--auth .s-btn--primary { background: var(--s-primary); box-shadow: none; }
.site--auth .s-btn--primary:hover { background: var(--s-primary-hover); transform: none; box-shadow: none; }
.site--auth .s-btn--ghost { box-shadow: none; border-color: var(--field-border); }

/* Bölümlü denetim */
.site--auth .s-tabs { background: var(--fill); border: 0; padding: 2px; gap: 0; border-radius: 10px; }
.site--auth .s-tabs [role=tab] { border-radius: 8px; padding: 7px 10px; font-weight: 500; color: var(--text); }
.site--auth .s-tabs [role=tab][aria-selected=true] { font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site--auth .s-tabs [role=tab][aria-selected=true] { background: #636366; color: #fff; } }

/* Alanlar */
.site--auth .s-form input[type=text], .site--auth .s-form input[type=email], .site--auth .s-form input[type=password] { border-radius: 12px; border-color: var(--field-border); background: var(--surface); font-family: inherit; }
.site--auth .s-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.site--auth .alert { border: 0; border-radius: 14px; }

/* Marka paneli: metin yığını yerine görsel sahne (maskot, platformlar, yüzen ürün kartları) */
.s-auth__brand {
  position: relative; isolation: isolate; overflow: hidden; align-items: center;
  background:
    radial-gradient(55% 45% at 85% 8%, rgba(77, 240, 255, .28), transparent 65%),
    radial-gradient(60% 55% at 5% 100%, rgba(124, 92, 255, .38), transparent 65%),
    linear-gradient(160deg, #050B2E 0%, #0A1F78 48%, #0B3BE8 100%);
}
.s-auth__brand::before {
  display: block; content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 70%);
}
.s-auth__glow { position: absolute; z-index: -1; left: 50%; top: 62%; width: 560px; height: 520px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(20, 200, 255, .32), transparent 62%); filter: blur(10px); pointer-events: none; }
.s-auth__brand-in { max-width: 540px; }
.s-auth__eyebrow { margin-bottom: 18px; color: rgba(255, 255, 255, .72); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.s-auth__brand h2 {
  margin: 0 0 8px; font-size: clamp(2rem, 1.2rem + 2vw, 3rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 30%, #B9CCFF); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Sahne */
.s-astage { position: relative; height: clamp(420px, 54vh, 480px); margin-top: 40px; color: #fff; }
.s-astage__ring { position: absolute; left: 50%; top: 50%; width: 270px; height: 270px; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }
.s-astage__ring--2 { width: 400px; height: 400px; border-style: dashed; border-color: rgba(255, 255, 255, .11); }
.s-astage__bubi { position: absolute; left: 50%; top: 50%; width: 168px; height: 168px; translate: -50% -50%; filter: drop-shadow(0 24px 40px rgba(0, 10, 60, .55)); }
.s-astage__pf {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; translate: -50% -50%; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .68rem; font-weight: 800; letter-spacing: .02em;
}
.s-astage__pf img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
/* İç halka (r=135) ve dış halka (r=200) üzerinde konumlar */
.s-astage__pf--meta      { left: calc(50% + 0px);    top: calc(50% - 135px); }
.s-astage__pf--googleads { left: calc(50% + 135px);  top: 50%; }
.s-astage__pf--tiktok    { left: calc(50% - 95px);   top: calc(50% - 95px); }
.s-astage__pf--whatsapp  { left: calc(50% - 135px);  top: 50%; }
.s-astage__pf--instagram { left: calc(50% + 95px);   top: calc(50% + 95px); }
.s-astage__pf--gpt       { left: calc(50% + 0px);    top: calc(50% + 135px); }

.s-acard {
  position: absolute; z-index: 2; border-radius: 16px; color: #0E1726;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 48px -20px rgba(0, 8, 50, .7);
  font-size: .82rem; line-height: 1.35;
}
.s-acard svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-acard--chat { top: 0; left: 0; width: 248px; padding: 12px; }
.s-acard__msg { display: flex; gap: 9px; align-items: flex-start; }
.s-acard__msg img { border-radius: 8px; flex: none; }
.s-acard__msg span { padding: 8px 10px; border-radius: 4px 12px 12px 12px; background: #EEF3FF; }
.s-acard__btn { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 35px; padding: 7px 12px; border-radius: 999px; background: #0B3BE8; color: #fff; font-weight: 700; font-size: .78rem; box-shadow: 0 6px 16px -6px rgba(11, 59, 232, .8); }
.s-acard--kpi { top: 22%; right: 0; width: 168px; padding: 12px 14px 0; overflow: hidden; background: rgba(10, 20, 60, .72); color: #fff; border-color: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.s-acard--kpi small { display: block; color: rgba(255, 255, 255, .7); font-size: .72rem; font-weight: 600; }
.s-acard--kpi b { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-size: 1.45rem; letter-spacing: -.03em; }
.s-acard--kpi em { font-style: normal; font-size: .72rem; font-weight: 700; color: #4ADE80; letter-spacing: 0; }
.s-acard--kpi svg { display: block; width: calc(100% + 28px); height: 38px; margin: 6px -14px 0; stroke: none; }
.s-acard--team { bottom: 6%; left: 0; display: grid; gap: 7px; padding: 12px; width: 206px; }
.s-acard--team span { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.s-acard--team i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #EEF3FF; color: #0B3BE8; }
.s-acard--team b { margin-left: auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #DCFCE7; color: #15803D; font-size: .66rem; }
.s-acard--lock { bottom: 0; right: 4%; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.s-acard--lock svg { color: #15803D; }
.s-astage__tag { position: absolute; top: -30px; right: 0; padding: 2px 8px; border-radius: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .65); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-acard:not(.s-acard--kpi) { background: rgba(16, 24, 48, .92); color: #E7ECF7; border-color: rgba(255, 255, 255, .12); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8); }
  :root:not([data-theme="light"]) .s-acard__msg span, :root:not([data-theme="light"]) .s-acard--team i { background: #17295A; color: #C8D6FF; }
  :root:not([data-theme="light"]) .s-acard--team b { background: #0F2A17; color: #4ADE80; }
  :root:not([data-theme="light"]) .s-acard--lock svg { color: #4ADE80; }
}

@media (prefers-reduced-motion: no-preference) {
  .s-astage__bubi { animation: astage-float 6s ease-in-out infinite; }
  .s-acard--chat { animation: astage-float 7s ease-in-out -1s infinite; }
  .s-acard--kpi { animation: astage-float 8s ease-in-out -3s infinite; }
  .s-acard--team { animation: astage-float 7.5s ease-in-out -5s infinite; }
  .s-astage__ring--2 { animation: astage-spin 80s linear infinite; }
}
@keyframes astage-float { 50% { transform: translateY(-8px); } }
@keyframes astage-spin { to { rotate: 360deg; } }

/* Dar masaüstü: sahne sığsın diye halka ve kartlar küçülür */
@media (max-width: 1180px) {
  .s-astage { transform: scale(.86); transform-origin: 50% 0; margin-bottom: -50px; }
}
