:root {
  --nm-primary: #e8590c;
  --nm-primary-dark: #c94a09;
  --nm-primary-tint: rgba(232,89,12,.14);
  --nm-dark: #1f2430;
  --nm-dark-2: #343d52;
  --nm-bg: #f4f5f7;
  --nm-text: #2b2f38;
  --nm-muted: #6c757d;
  --nm-border: #e7e8ec;
  --nm-success: #198754;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--nm-text); font-family: 'Segoe UI', Arial, sans-serif; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

.nm-auth { display: grid; grid-template-columns: 42% 58%; min-height: 100vh; background: #fff; }
.nm-auth-side {
  background: linear-gradient(160deg, var(--nm-dark), var(--nm-dark-2));
  color: #fff; padding: 2.75rem; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.nm-auth-side::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,89,12,.35), transparent 70%);
  top: -180px; right: -160px;
}
.nm-side-logo { font-weight: 700; font-size: 1.35rem; position: relative; z-index: 1; }
.nm-side-logo span { color: var(--nm-primary); }

.nm-side-quote { position: relative; z-index: 1; }
.nm-side-quote .nm-quote-mark { color: var(--nm-primary); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: .4rem; background: none; padding: 0; }
.nm-side-quote p { font-size: 1.05rem; line-height: 1.5; margin: 0 0 1rem; max-width: 360px; }
.nm-side-quote .who { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: #b9bec9; }
.nm-side-quote .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--nm-primary-tint); color: var(--nm-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; }
.nm-side-quote .who b { color: #fff; }

.nm-form-side { display: flex; align-items: center; justify-content: center; padding: 2.5rem; }
.nm-form-inner { width: 100%; max-width: 380px; }
.nm-form-eyebrow { color: var(--nm-primary); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.nm-form-inner h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 .4rem; color: var(--nm-dark); }
.nm-form-inner p.sub { color: var(--nm-muted); margin: 0 0 1.8rem; font-size: .92rem; }

.nm-field { margin-bottom: 1.1rem; }
.nm-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--nm-text); }
.nm-input-group { display: flex; align-items: center; border: 1.5px solid var(--nm-border); border-radius: .6rem; padding: 0 .8rem; transition: border-color .15s; background: #fff; }
.nm-input-group:focus-within { border-color: var(--nm-primary); }
.nm-input-group svg { color: var(--nm-muted); flex-shrink: 0; }
.nm-input-group input { border: none; outline: none; padding: .68rem .6rem; width: 100%; font-size: .92rem; font-family: inherit; background: transparent; }
.nm-input-group .toggle-eye { cursor: pointer; color: var(--nm-muted); }
.nm-field-error { color: #dc3545; font-size: .8rem; margin-top: .35rem; }

.nm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  background: var(--nm-primary); color: #fff; border: none; border-radius: .6rem; padding: .78rem 1rem;
  font-weight: 700; font-size: .95rem; cursor: pointer; }
.nm-btn:hover { background: var(--nm-primary-dark); color: #fff; }
.nm-btn-ghost { background: transparent; border: 1.5px solid var(--nm-border); color: var(--nm-text); }
.nm-btn-ghost:hover { background: var(--nm-bg); color: var(--nm-text); }

.nm-alert { border-radius: .5rem; padding: .7rem .9rem; font-size: .85rem; margin-bottom: 1.2rem; }
.nm-alert-danger { background: #fdecea; color: #b3261e; }
.nm-alert-success { background: #e8f5e9; color: #1e7e34; }

.nm-form-footer { text-align: center; margin-top: 1.4rem; font-size: .88rem; color: var(--nm-muted); }
.nm-form-footer a { color: var(--nm-primary); font-weight: 600; }

.nm-forgot { text-align: right; font-size: .82rem; margin: -.6rem 0 1.2rem; }
.nm-forgot a { color: var(--nm-muted); }
.nm-forgot a:hover { color: var(--nm-primary); }

.nm-steps-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.6rem; margin: 2.5rem 0; }
.nm-steps-list .step { display: flex; gap: .9rem; align-items: flex-start; }
.nm-steps-list .circle {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; border: 1.5px solid rgba(255,255,255,.3); color: #cfd3dc;
}
.nm-steps-list .step.done .circle { background: var(--nm-success); border-color: var(--nm-success); color: #fff; }
.nm-steps-list .step.active .circle { background: var(--nm-primary); border-color: var(--nm-primary); color: #fff; }
.nm-steps-list .step .label b { display: block; font-size: .92rem; }
.nm-steps-list .step.active .label b, .nm-steps-list .step.done .label b { color: #fff; }
.nm-steps-list .step:not(.active):not(.done) .label b { color: #9aa0ac; }
.nm-steps-list .step .label span { font-size: .78rem; color: #9aa0ac; }

.nm-progress-eyebrow { position: relative; z-index: 1; color: var(--nm-primary); font-weight: 600; font-size: .8rem; margin-bottom: .5rem; }

.nm-back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--nm-muted); font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem; }
.nm-back-link:hover { color: var(--nm-primary); }

.nm-plans { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.5rem; }
.nm-plan { display: flex; align-items: center; gap: .9rem; border: 1.5px solid var(--nm-border); border-radius: .7rem; padding: .9rem 1rem; cursor: pointer; position: relative; }
.nm-plan.selected { border-color: var(--nm-primary); background: var(--nm-primary-tint); }
.nm-plan input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.nm-plan .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--nm-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nm-plan.selected .radio { border-color: var(--nm-primary); }
.nm-plan.selected .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--nm-primary); }
.nm-plan .plan-info { flex: 1; }
.nm-plan .plan-info b { display: block; font-size: .95rem; }
.nm-plan .plan-info span { font-size: .78rem; color: var(--nm-muted); }
.nm-plan .plan-price { font-weight: 800; font-size: 1rem; color: var(--nm-dark); white-space: nowrap; text-align: right; }
.nm-plan .plan-price small { display: block; font-weight: 400; font-size: .7rem; color: var(--nm-muted); }
.nm-plan-badge { position: absolute; top: -10px; right: 14px; background: var(--nm-primary); color: #fff; font-size: .62rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }

.nm-success-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(25,135,84,.12); color: var(--nm-success); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }

/* ---- Karsilama (menu-address onboarding) ---- */
.nm-musteri-no {
  position: relative; z-index: 1; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25);
  border-radius: .7rem; padding: 1rem; text-align: center; margin-top: 1.5rem;
}
.nm-musteri-no .lbl { font-size: .78rem; color: #b9bec9; margin-bottom: .3rem; }
.nm-musteri-no .no { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; color: #fff; }
.nm-musteri-no-light {
  background: var(--nm-bg); border: 1px dashed var(--nm-border); border-radius: .7rem;
  padding: .85rem 1rem; text-align: center; margin-bottom: 1.4rem;
}
.nm-musteri-no-light .lbl { font-size: .76rem; color: var(--nm-muted); margin-bottom: .2rem; }
.nm-musteri-no-light .no { font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; color: var(--nm-primary); }
.nm-slug-group { display: flex; align-items: stretch; border: 1.5px solid var(--nm-border); border-radius: .6rem; overflow: hidden; }
.nm-slug-group:focus-within { border-color: var(--nm-primary); }
.nm-slug-group .prefix { flex: 0 0 auto; background: var(--nm-bg); color: var(--nm-muted); font-size: .85rem; padding: .68rem .7rem; white-space: nowrap; border-right: 1px solid var(--nm-border); display: flex; align-items: center; }
.nm-slug-group input { flex: 1 1 auto; min-width: 0; border: none; outline: none; padding: .68rem .6rem; font-size: .92rem; font-family: inherit; }
.nm-slug-group .nm-btn-check { flex: 0 0 auto; background: transparent; border: none; border-left: 1px solid var(--nm-border); color: var(--nm-primary); font-weight: 600; font-size: .85rem; padding: 0 1rem; cursor: pointer; white-space: nowrap; }
.nm-slug-result { font-size: .85rem; margin-top: .6rem; display: flex; align-items: center; gap: .4rem; }
.nm-slug-result.ok { color: var(--nm-success); }
.nm-slug-result.err { color: #dc3545; }
.nm-slug-oneriler { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.nm-slug-oneriler button { background: #fff; border: 1px solid var(--nm-border); border-radius: .4rem; padding: .3rem .7rem; font-size: .8rem; cursor: pointer; }
.nm-slug-oneriler button:hover { border-color: var(--nm-primary); color: var(--nm-primary); }
.nm-btn:disabled { background: #d9dce1; color: #97a0ab; cursor: not-allowed; }

/* ---- kurulum (loading) screen ---- */
.nm-loading-wrap { min-height: 100vh; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--nm-dark), var(--nm-dark-2)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.nm-loading-wrap.aktif { display: flex; }
.nm-loading-wrap::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,89,12,.3), transparent 70%); top: -220px; left: 50%; transform: translateX(-50%); }
.nm-spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--nm-primary);
  animation: nm-spin 1s linear infinite; margin-bottom: 1.4rem; position: relative; z-index: 1; }
@keyframes nm-spin { to { transform: rotate(360deg); } }
.nm-loading-wrap h4 { position: relative; z-index: 1; margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 700; }
.nm-loading-wrap p { position: relative; z-index: 1; color: #b9bec9; margin: 0; }

.nm-mobile-logo { display: none; }

@media (max-width: 860px) {
  .nm-auth { grid-template-columns: 1fr; }
  .nm-auth-side { display: none; }
  .nm-form-side { padding: 1.5rem 1.25rem 2rem; }
  .nm-mobile-logo {
    display: block; text-align: center; font-weight: 700; font-size: 1.3rem;
    color: var(--nm-text); padding: 1.25rem 0; margin-bottom: .5rem;
  }
  .nm-mobile-logo span { color: var(--nm-primary); }
}
