/* ==========================================================================
   Form bileşenleri (eski auth.css'ten ayıklandı: alanlar, şifre göster,
   sözleşme onayı, influencer önerisi, sözleşme penceresi). auth.js bu
   sınıflarla çalışır. Renkler yeni tasarım değişkenlerinden gelir.
   ========================================================================== */
.field-forgot {display: block; text-align: right; margin-top: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink);}
.field-forgot:hover {color: var(--nx);}
.auth-form {display: flex; flex-direction: column; gap: 16px;}
.field {display: flex; flex-direction: column; gap: 7px;}
.field-row {display: flex; align-items: center; justify-content: space-between;}
.field label {font-size: 13px; font-weight: 500; color: var(--ink);}
.field .opt {color: var(--muted); font-weight: 400;}
.field-link {font-size: 12px; font-weight: 500;}
.field input {height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 14px; color: var(--ink); background: #FBFCFE; width: 100%;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);}
.field input::placeholder {color: #AAB2C0;}
.field input:hover {border-color: #D3DAE4;}
.field input:focus {outline: none; border-color: var(--nx); background: #fff; box-shadow: 0 0 0 3px var(--nx-100);}
.field.has-error input {border-color: #d0103f;}
.field-error {color: #d0103f; font-size: 12px;}
.input-pass {position: relative;}
.input-pass input {padding-right: 44px;}
.pass-toggle {position: absolute; top: 0; right: 0; height: 44px; width: 42px; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--muted);}
.pass-toggle svg {width: 18px; height: 18px;}
.pass-toggle.is-on {color: var(--nx);}
.agreements {display: flex; flex-direction: column; gap: 12px; margin-top: 2px;}
.agree {display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--ink-2); line-height: 1.5;}
.agree input {position: absolute; opacity: 0; width: 0; height: 0;}
.agree-box {display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid #CBD3DE; border-radius: 6px; background: #fff; flex: none; transition: background .15s var(--ease), border-color .15s var(--ease); margin-top: 1px;}
.agree-box svg {width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .15s var(--ease);}
.agree input:checked + .agree-box {background: var(--nx); border-color: var(--nx);}
.agree input:checked + .agree-box svg {opacity: 1;}
.agree input:focus-visible + .agree-box {box-shadow: 0 0 0 3px var(--nx-100);}
.agree.has-error .agree-box {border-color: #d0103f;}
.agree-link {border: none; background: none; padding: 0; color: var(--nx); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer;}
.agree-text .req {color: #d0103f;}
.agree-text .opt {color: var(--muted);}
.agree-err {margin: -6px 0 0 30px;}
.amodal {position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;}
.amodal-overlay {position: absolute; inset: 0; background: rgba(14,21,38,.55); backdrop-filter: blur(3px);}
.amodal-box {position: relative; width: 100%; max-width: 560px; max-height: 82vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(14,21,38,.22); overflow: hidden; animation: amIn .25s var(--ease);}
.amodal-head {display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line);}
.amodal-title {font-size: 16px; font-weight: 600; margin: 0;}
.amodal-close {width: 32px; height: 32px; padding: 8px; border: none; background: var(--nx-50); border-radius: 8px; color: var(--ink-2);}
.amodal-close svg {width: 16px; height: 16px;}
.amodal-body {padding: 20px; overflow-y: auto; font-size: 13.5px; line-height: 1.7; color: var(--ink-2);}
.amodal-body p {margin: 0 0 12px;}
.amodal-foot {padding: 14px 20px; border-top: 1px solid var(--line); text-align: right;}
@media (max-width: 900px) {
    .auth-form {gap: 18px;}
    .field input {height: 50px;}
    .pass-toggle {height: 50px;}
}
:root[data-theme="dark"] .field input {background: #16161A; border-color: var(--line); color: var(--ink);}
:root[data-theme="dark"] .field input::placeholder {color: #6F6F77;}
:root[data-theme="dark"] .field input:hover {border-color: #3A3A40;}
:root[data-theme="dark"] .field input:focus {background: #1B1B20; border-color: var(--nx);}
:root[data-theme="dark"] .field-forgot {color: var(--ink-2);}
.ref-box {position: relative;}
.ref-hint {font-size: 12px; color: var(--muted);}
.field .ref-box.is-selected input {padding-left: 50px; padding-right: 116px; font-weight: 600; border-color: var(--nx); background: var(--nx-50);}
.ref-av, .ref-item-av {display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background: var(--nx-50); color: var(--nx); font-weight: 700;}
.ref-av img, .ref-item-av img {width: 100%; height: 100%; object-fit: cover; display: block;}
.ref-av {position: absolute; left: 10px; top: 9px; width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px #fff; animation: refPop .35s var(--ease);}
.ref-tag {position: absolute; right: 8px; top: 9px; height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--nx); color: #fff; font-size: 12px; font-weight: 600; animation: refPop .35s var(--ease);}
.ref-tag-x {width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;}
.ref-tag-x:hover {background: rgba(255,255,255,.35);}
.ref-list {position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(15,23,42,.28);}
.ref-list[hidden] {display: none;}
.ref-item {display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer;}
.ref-item.is-active, .ref-item:hover {background: var(--nx-50);}
.ref-item-av {width: 36px; height: 36px; font-size: 14px;}
.ref-item-tx {display: flex; flex-direction: column; min-width: 0;}
.ref-item-tx b {font-size: 13.5px; font-weight: 600;}
.ref-item-tx small {font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
:root[data-theme="dark"] .field .ref-box.is-selected input {background: var(--nx-50); border-color: var(--nx);}
:root[data-theme="dark"] .ref-list {background: #121216; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7);}
:root[data-theme="dark"] .ref-av {box-shadow: 0 0 0 2px #121216;}
@media (prefers-reduced-motion: reduce) {
    .ref-av, .ref-tag {animation: none;}
}
.ref-label {display: flex; align-items: center; justify-content: space-between; gap: 8px;}
.ref-badge {position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; flex: none;
    font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2563EB, #3B82F6); box-shadow: 0 6px 16px -6px rgba(37,99,235,.7);
    animation: refBadge 2.4s var(--ease) infinite;}
.ref-badge svg {width: 13px; height: 13px;}
.ref-badge::after {content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: refShine 2.4s ease-in-out infinite;}
@media (prefers-reduced-motion: reduce) {
    .ref-badge, .ref-badge::after {animation: none;}
}
.ref-empty {padding: 10px 12px; font-size: 12.5px; color: var(--muted);}
.ref-field.has-error .ref-box input {border-color: #d0103f;}
@keyframes amIn { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes refPop { from { opacity: 0; transform: scale(.85); } }
@keyframes refBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes refShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ==========================================================================
   Giriş / kayıt — uygulama açılışı (başlık, maskot, logo, yöntemler)
   Pastel pembe; neon/parlama yok. Maskot animasyonları yalnız CSS.
   ========================================================================== */
.nxa-screen { padding-top: 64px; }
.nxa-hero { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 0 18px; text-align: center; }
.nxa-head { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.nxa-head-1 { font-size: clamp(26px, 8vw, 34px); color: var(--nx); }
.nxa-head-2 { font-size: clamp(36px, 11vw, 48px); color: var(--ink); }

/* Maskot sahnesi: arkada yumuşak halkalar */
.nxa-stage { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 8px auto 0; display: grid; place-items: center; }
.nxa-rings { position: absolute; inset: -14%; border-radius: 50%;
    background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55) 0 2px, transparent 2px 26px);
    -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); mask: radial-gradient(circle, #000 35%, transparent 70%);
    animation: nxa-rings 9s linear infinite; }
@keyframes nxa-rings { from { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: .9; } }
.nxa-mascot { position: relative; width: 82%; height: auto; }
.nxa-mascot--media { width: 86%; max-height: 100%; object-fit: contain; }
.nxa-float { animation: nxa-float 3.4s ease-in-out infinite; }
@keyframes nxa-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Yerleşik maskot */
.nxm-shadow { fill: rgba(155, 12, 58, .12); transform-box: fill-box; transform-origin: center; animation: nxm-shadow 3.4s ease-in-out infinite; }
@keyframes nxm-shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.82); } }
svg.nxa-mascot { overflow: visible; }
svg.nxa-float { animation: none; }
.nxm-body { animation: nxa-float 3.4s ease-in-out infinite; }
.nxm-ear { fill: #f76c98; }
.nxm-head { fill: #ff9fbe; }
.nxm-belly { fill: #ffd6e2; }
.nxm-white { fill: #fff; }
.nxm-pupil { fill: #141519; }
.nxm-glint { fill: #fff; }
.nxm-look { animation: nxm-look 6s ease-in-out infinite; }
@keyframes nxm-look { 0%, 30%, 100% { transform: translate(0, 0); } 40%, 55% { transform: translate(-4px, 1px); } 65%, 80% { transform: translate(4px, -1px); } }
.nxm-lid { fill: #ff9fbe; transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: nxm-blink 4.6s infinite; }
@keyframes nxm-blink { 0%, 90%, 100% { transform: scaleY(0); } 93%, 95% { transform: scaleY(1); } }
.nxm-blush { fill: #ff6f9c; opacity: .45; }
.nxm-mouth { fill: none; stroke: #141519; stroke-width: 4; stroke-linecap: round; }
.nxm-glass { transform-box: view-box; transform-origin: 184px 182px; animation: nxm-glass 3.4s ease-in-out infinite; }
@keyframes nxm-glass { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
.nxm-handle { fill: #3a3d46; }
.nxm-ring { fill: none; stroke: #3a3d46; stroke-width: 7; }
.nxm-lens { fill: rgba(255, 255, 255, .55); }
.nxm-shine { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; animation: nxm-shine 2.6s ease-in-out infinite; }
@keyframes nxm-shine { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.nxm-paw { fill: #f76c98; }

.nxa-hero .nxa-brand { margin-top: 2px; font-size: 34px; gap: 10px; }
.nxa-hero .nxa-brand .nx-brand-mark { width: 40px; height: 40px; border-radius: 13px; }
.nxa-hero .nxa-brand .nx-brand-mark svg { width: 22px; height: 22px; }
.nxa-tagline { margin: 6px 12px 0; max-width: 340px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); font-weight: 500; }
.nxa-proof { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--glass); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.nxa-proof svg { width: 15px; height: 15px; color: var(--nx); }
.nxa-proof b { color: var(--ink); }

.nxa-guest { display: block; margin: 14px auto 0; text-align: center; font-size: 15px; font-weight: 800; color: var(--ink); text-decoration: none; }
.nxa-guest:hover { color: var(--nx); }

/* Açılış ekranı: oturum başına bir kez, kendiliğinden kaybolur */
.nxa-splash { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    background: linear-gradient(160deg, #ffe4ec 0%, #ffcfdd 60%, #ffc2d4 100%);
    animation: nxa-splash-out .45s ease 1.25s forwards; }
.nxa-splash-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); animation: nxa-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.nxa-splash-logo .nx-brand-mark { width: 54px; height: 54px; border-radius: 17px; }
.nxa-splash-logo .nx-brand-mark svg { width: 30px; height: 30px; }
.nxa-splash-logo img { height: 58px; width: auto; }
.nxa-splash-bar { position: absolute; bottom: calc(56px + env(safe-area-inset-bottom)); width: min(260px, 60vw); height: 5px; border-radius: 999px; background: rgba(20, 21, 25, .1); overflow: hidden; }
.nxa-splash-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--nx); animation: nxa-bar 1.15s ease-out forwards; }
@keyframes nxa-bar { to { width: 100%; } }
@keyframes nxa-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes nxa-splash-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (min-width: 900px) { .nxa-screen { padding-top: 40px; } }
@media (prefers-reduced-motion: reduce) {
    .nxa-rings, .nxa-float, .nxm-body, .nxm-look, .nxm-lid, .nxm-glass, .nxm-shine, .nxm-shadow { animation: none !important; }
    .nxa-splash { animation-duration: .01s; animation-delay: .2s; }
}
/* auth.css başlıkları "capitalize" yapıyor (Türkçe İ'yi bozar, yazılan metni değiştirir) */
.nxa h1, .nxa h2, .nxa h3, .nxa [class*="-title"] { text-transform: none; }
/* Genel ikon boyutu kuralları maskotu küçültmesin */
.nxa-stage svg.nxa-mascot { width: 82% !important; height: 82% !important; }
.nxa-head-2 { font-size: clamp(32px, 9.4vw, 46px); }
.nxa-head-2 { font-size: clamp(30px, 9vw, 40px); }

/* Karanlık mod: koyu mürdüm zemin (neon yok) */
:root[data-theme="dark"] body.nxa { background: #150d12; }
:root[data-theme="dark"] html:has(body.nxa), :root[data-theme="dark"]:has(body.nxa) { background: #150d12; }
:root[data-theme="dark"] .nxa-bg { background: linear-gradient(160deg, #1d1118 0%, #170d13 55%, #12090e 100%); }
:root[data-theme="dark"] .nxa-bg i:first-child { background: #3a1a2a; opacity: .5; }
:root[data-theme="dark"] .nxa-bg i:last-child { background: #4a1630; opacity: .45; }
:root[data-theme="dark"] .nxa-rings { background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .07) 0 2px, transparent 2px 26px); }
:root[data-theme="dark"] .nxa-sheet { background: rgba(24, 25, 31, .86); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .nxa-splash { background: linear-gradient(160deg, #1d1118 0%, #12090e 100%); }
:root[data-theme="dark"] .nxa-splash-bar { background: rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .nxm-shadow { fill: rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .nxa .field input { background: var(--card); color: var(--ink); }
:root[data-theme="dark"] .nxa-back { background: rgba(255, 255, 255, .1); }
.nxa-top-r { display: inline-flex; align-items: center; gap: 8px; }

/* Sade üst bölüm (şifremi unuttum, sıfırlama, Google onay) */
.nxa-hero--compact { padding: 22px 0 22px; }
.nxa-hero--compact .nxa-brand { font-size: 30px; }
.nxa .gprofile { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px; border-radius: 16px; background: var(--bg); }
.nxa .gprofile-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nxa .gprofile-initial { display: grid; place-items: center; background: var(--nx); color: #fff; font-weight: 800; }
.nxa .gprofile-name { font-weight: 800; color: var(--ink); }
.nxa .gprofile-email { font-size: 13px; color: var(--muted); }
