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

html,
body {
    width: 100%;
    min-height: 100%;
    background-color: #000000;
    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: #000000;
    overflow-x: hidden;
}

.nb-screen {
    min-height: 100dvh;
    width: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Üst Header: TR Rozeti + Üst Logo */
.nb-topbar {
    padding: 18px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.nb-top-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 0;
    margin-top: 8px;
}

.nb-top-logo {
    max-height: 36px;
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.nb-topbar-spacer {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

/* Orta Giriş / Telefon Bloğu */
.nb-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px 34px;
}

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

/* Bireysel / Kurumsal Sekmeleri (index.php) */
.nb-segment-bar {
    background-color: #161718;
    border-radius: 8px 8px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 16px 0;
    gap: 20px;
}

.nb-segment {
    background: transparent;
    border: none;
    color: #7c7e82;
    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;
    transition: color 0.15s ease;
}

.nb-segment-icon {
    width: 34px;
    height: 34px;
    color: #7c7e82;
    transition: color 0.15s ease;
}

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

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

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

.nb-segment.is-active .nb-segment-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Telefon Numara Doğrulama Kartı (telefon.php) */
.nb-phone-card {
    background-color: #121213;
    border-radius: 12px;
    padding: 22px 14px 14px;
}

.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: #eceef1;
    border-right: 1px solid #1f2328;
    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 8px 8px;
    overflow: hidden;
}

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

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

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

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

/* Hata / Mesaj Alanı */
.message.nb-message {
    font-size: 13px;
    min-height: 0;
    margin: 0;
    text-align: center;
}

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

.message.error {
    color: #f87171;
}

.message.success {
    color: #38bdf8;
}

/* Mavi Oval Giriş Butonu */
.nb-submit-btn {
    width: 100%;
    height: 50px;
    margin-top: 18px;
    border: none;
    border-radius: 999px;
    background-color: #0284e8;
    color: #ffffff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.nb-submit-btn:hover {
    background-color: #0074cf;
}

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

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

.nb-forgot-link {
    color: #a8abb0;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nb-forgot-link:hover {
    color: #ffffff;
}

/* Alt 5'li Navigasyon */
.nb-bottom-nav {
    width: 100%;
    background-color: #000000;
    border-top: 1px solid #1f2022;
    padding: 10px 8px calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}

.nb-nav-item {
    color: #d4d6da;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 4px;
    transition: color 0.15s ease;
}

.nb-nav-item:hover {
    color: #ffffff;
}

.nb-nav-icon {
    width: 26px;
    height: 26px;
    color: currentColor;
}

.nb-nav-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    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;
}

.card {
    width: 100%;
    max-width: 440px;
    background-color: #161718;
    border: 1px solid #262729;
    border-radius: 8px;
    padding: 2rem;
}

.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: #a8abb0;
}

.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-color: #0284e8;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn:hover {
    background-color: #0074cf;
}

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

.pixel-fallback {
    display: none;
}