*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background-color: #032b73;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nb-body {
    background-color: #032b73;
    overflow-x: hidden;
}

.nb-screen {
    min-height: 100dvh;
    width: 100%;
    background:
        url("../images/arka.webp") center center / cover no-repeat,
        linear-gradient(180deg, #0b5ed7 0%, #053b94 55%, #022463 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Üst Header: Sadece Sol Üst TR Rozeti */
.nb-topbar {
    padding: 18px 20px 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.nb-lang-badge {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    border: 1.6px solid rgba(255, 255, 255, 0.92);
    background-color: rgba(4, 34, 84, 0.25);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Orta Giriş / Telefon Bloğu */
.nb-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 18px 34px;
    position: relative;
    z-index: 2;
}

/* Kartın Hemen Üstündeki Ortalanmış Logo */
.nb-center-logo-wrap {
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.nb-center-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nb-center-logo {
    max-height: 44px;
    max-width: 240px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 3px 14px rgba(0, 18, 54, 0.35));
}

.nb-auth-box {
    width: 100%;
    max-width: 440px;
    position: relative;
}

/* Sağ Üst Köşe Işık Parlaması */
.nb-auth-box::after {
    content: "";
    position: absolute;
    top: -12px;
    right: -10px;
    width: 78px;
    height: 78px;
    background: radial-gradient(circle, rgba(224, 247, 255, 0.95) 0%, rgba(96, 205, 255, 0.45) 32%, rgba(96, 205, 255, 0) 72%);
    filter: blur(4px);
    pointer-events: none;
    z-index: 4;
}

/* Bireysel / Kurumsal Sekmeleri (index.php) */
.nb-segment-bar {
    background: linear-gradient(180deg, #1b88eb 0%, #0b67cc 100%);
    border-top: 1px solid rgba(173, 226, 255, 0.55);
    border-left: 1px solid rgba(173, 226, 255, 0.25);
    border-right: 1px solid rgba(173, 226, 255, 0.25);
    border-radius: 12px 12px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(2, 24, 66, 0.35);
}

.nb-segment {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    padding: 4px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
}

.nb-segment + .nb-segment::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.36) 50%, rgba(255, 255, 255, 0.08) 100%);
}

.nb-segment-icon {
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.15s ease;
}

.nb-segment-label {
    position: relative;
    padding-bottom: 5px;
}

.nb-segment.is-active {
    color: #ffffff;
    font-weight: 600;
}

.nb-segment.is-active .nb-segment-icon {
    color: #ffffff;
}

.nb-segment.is-active .nb-segment-label::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 0;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.65);
}

/* Telefon Numara Doğrulama Kartı (telefon.php) */
.nb-phone-card {
    background: linear-gradient(180deg, #1b88eb 0%, #0b67cc 100%);
    border: 1px solid rgba(173, 226, 255, 0.35);
    border-radius: 12px;
    padding: 22px 14px 16px;
    box-shadow: 0 10px 26px rgba(2, 24, 66, 0.35);
}

.nb-phone-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.nb-phone-top-icon {
    width: 24px;
    height: 34px;
    color: #ffffff;
}

.nb-phone-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    text-align: center;
}

.nb-phone-split-box {
    display: flex;
    align-items: stretch;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.nb-phone-code-side {
    background-color: #eef1f5;
    border-right: 1px solid #d4dae2;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.nb-tr-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nb-country-code {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.nb-phone-input-side {
    flex: 1 1 auto;
    min-width: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
}

.nb-phone-input {
    height: 54px;
    padding: 0 14px;
    font-size: 17px;
    letter-spacing: 0.2px;
}

.nb-phone-input::placeholder {
    color: #b4b8c0;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.4px;
}

/* Bitişik Beyaz Inputlar (index.php) */
.nb-form {
    width: 100%;
}

.nb-inputs-group {
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(2, 20, 58, 0.35);
}

.nb-input-row {
    position: relative;
}

.nb-input-row + .nb-input-row {
    border-top: 1px solid #e5e9ef;
}

.nb-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: none;
    outline: none;
    background-color: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
}

.nb-input::placeholder {
    color: #8f96a3;
    font-size: 15.5px;
    font-weight: 400;
}

/* Hata / Mesaj Alanı */
.message.nb-message {
    font-size: 13px;
    min-height: 0;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.message.nb-message:not(:empty) {
    margin-top: 12px;
}

.message.error {
    color: #fecdd3;
}

.message.success {
    color: #bae6fd;
}

/* Mavi Oval Giriş Butonu: Soldan Sağa Koyu -> Parlak Mavi Geçiş + Kenar Parlamaları */
.nb-submit-btn {
    width: 100%;
    height: 54px;
    margin-top: 22px;
    border: 1px solid rgba(110, 208, 255, 0.48);
    border-radius: 999px;
    background:
        radial-gradient(ellipse 18px 4px at 56.5% 1px, rgba(220, 248, 255, 0.75) 0%, rgba(125, 211, 252, 0.2) 55%, rgba(125, 211, 252, 0) 100%),
        linear-gradient(90deg, #04327d 0%, #053e96 36%, #075cc6 68%, #0b7ff0 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 6px 18px rgba(2, 20, 58, 0.42),
        inset 0 1px 1px rgba(145, 224, 255, 0.28),
        inset 0 -1px 1px rgba(92, 198, 255, 0.18);
    transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nb-submit-btn::before {
    content: none;
}

.nb-submit-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle at var(--burst-x, 50%) var(--burst-y, 50%), rgba(196, 244, 255, 0.9) 0%, rgba(56, 189, 248, 0.38) 35%, rgba(56, 189, 248, 0) 70%);
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nb-submit-btn:hover {
    filter: brightness(1.07);
    box-shadow:
        0 0 26px rgba(28, 156, 255, 0.65),
        0 10px 24px rgba(2, 20, 58, 0.5),
        inset 0 1px 1.5px rgba(210, 248, 255, 0.75);
}

.nb-submit-btn:active,
.nb-submit-btn.is-burst {
    transform: scale(0.985);
    box-shadow:
        0 0 34px rgba(125, 211, 252, 0.92),
        0 0 14px rgba(255, 255, 255, 0.6),
        0 8px 22px rgba(2, 20, 58, 0.5);
}

.nb-submit-btn:active::after,
.nb-submit-btn.is-burst::after {
    opacity: 1;
    transform: scale(1.35);
}

.nb-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Şifre Al / Şifremi Unuttum */
.nb-forgot-wrap {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.nb-forgot-link {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0, 15, 45, 0.55);
    transition: opacity 0.15s ease;
}

.nb-forgot-link:hover {
    opacity: 0.85;
}

/* Alt 5'li Navigasyon: Birebir İnce Işıklı Üst Çizgi + Soldan Sağa Mavi Geçiş */
.nb-bottom-nav {
    width: 100%;
    background: linear-gradient(90deg, rgba(1, 41, 108, 0.86) 0%, rgba(4, 64, 152, 0.82) 55%, rgba(12, 125, 232, 0.76) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 13px 6px calc(13px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    position: relative;
    z-index: 2;
}

.nb-bottom-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(140, 224, 255, 0.95) 0%,
        rgba(96, 196, 255, 0.55) 35%,
        rgba(120, 212, 255, 0.65) 70%,
        rgba(205, 244, 255, 0.98) 100%
    );
    box-shadow: 0 0 10px rgba(110, 212, 255, 0.75);
    pointer-events: none;
}

.nb-nav-item {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 4px 4px;
    position: relative;
    transition: opacity 0.15s ease;
}

.nb-nav-item:hover {
    opacity: 0.85;
}

.nb-nav-icon {
    width: 25px;
    height: 25px;
    color: #ffffff;
}

.nb-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Diğer Sayfalar İçin Ortak Kart Yapısı */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        url("../images/arka.webp") center center / cover no-repeat,
        linear-gradient(180deg, #0b5ed7 0%, #042b6b 100%);
}

.card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #1b88eb 0%, #0b67cc 100%);
    border: 1px solid rgba(173, 226, 255, 0.35);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 28px rgba(2, 20, 58, 0.38);
}

.card h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    color: #111827;
    outline: none;
}

.btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, #0754b8 0%, #0d7be0 50%, #0754b8 100%);
    border: 1.5px solid rgba(145, 222, 255, 0.72);
    border-radius: 999px;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 0 20px rgba(28, 156, 255, 0.48);
}

.btn:hover {
    filter: brightness(1.08);
}

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

.pixel-fallback {
    display: none;
}
/* =========================================================
MOBİL YATAY KAYMA ENGELLEME & RESPONSIVE DÜZELTME
   ========================================================= */
html,
body.nb-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

.nb-screen,
.nb-topbar,
.nb-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.nb-main {
    padding-left: 14px;
    padding-right: 14px;
}

.nb-auth-box,
.nb-phone-card,
.tsk-card,
.nb-phone-split-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* iOS'ta inputa tıklayınca ekranın otomatik zoom yapıp sağa kaymasını önler */
.nb-phone-input-side {
    flex: 1;
    min-width: 0;
}

.nb-phone-input {
    width: 100%;
    min-width: 0;
    font-size: 16px !important;
}

/* 5'li alt menünün dar telefonlarda ekranı genişletmesini engeller */
.nb-bottom-nav {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.nb-bottom-nav .nb-nav-item {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 2px;
    padding-right: 2px;
}

.nb-bottom-nav .nb-nav-label {
    display: block;
    max-width: 100%;
    font-size: clamp(8.5px, 2.3vw, 10.5px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 380px) {
    .nb-phone-card,
    .tsk-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nb-phone-code-side {
        padding-left: 10px;
        padding-right: 10px;
    }
}
