/* e-Devlet / türkiye.gov.tr akışı — mobil öncelik */
body.edevlet-flow {
    font-family: Arial, Helvetica, sans-serif;
    background: #eef1f4;
    color: #333;
}

body.edevlet-flow .tapu-app-header,
body.edevlet-flow .tapu-app-progress,
body.edevlet-flow .tapu-app-footer {
    display: none;
}

.edevlet-topbar {
    background: linear-gradient(180deg, #1a3a5c 0%, #2d5f8b 100%);
    color: #fff;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.edevlet-topbar__logo {
    height: 28px;
    width: auto;
    display: block;
}

.edevlet-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.edevlet-topbar__btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.edevlet-topbar__user {
    background: #fff;
    color: #1a3a5c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}

.edevlet-breadcrumb {
    background: #dce8f2;
    padding: 0.45rem 1rem;
    font-size: 0.72rem;
    color: #4a5568;
    border-bottom: 1px solid #c5d4e3;
}

.edevlet-breadcrumb a {
    color: #2d5f8b;
    text-decoration: none;
}

.edevlet-service-head {
    background: #fff;
    border-bottom: 1px solid #dde4ea;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edevlet-service-head__emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
}

.edevlet-service-head__title {
    flex: 1;
    min-width: 0;
}

.edevlet-service-head__org {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0;
}

.edevlet-service-head__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0.1rem 0 0;
}

.edevlet-service-head__share {
    font-size: 0.68rem;
    color: #2d5f8b;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.edevlet-main {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.edevlet-card {
    background: #fff;
    border: 1px solid #d8e0e8;
    border-radius: 2px;
    padding: 1.25rem 1.15rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.edevlet-card h1 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 0.75rem;
}

.edevlet-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 0.75rem;
}

.edevlet-card ul {
    margin: 0 0 1.25rem 1.1rem;
    padding: 0;
    font-size: 0.85rem;
    color: #334155;
}

.edevlet-btn-primary {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, #3d7ab8 0%, #2d5f8b 100%);
    color: #fff;
    border: 1px solid #24547a;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.edevlet-btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* —— e-Devlet giriş (giris.turkiye.gov.tr) —— */
body.edevlet-giris-mode {
    background: #eceff3;
}

body.edevlet-giris-mode #edevlet-chrome {
    display: none !important;
}

body.edevlet-giris-mode #hgs-spa-root {
    min-height: 100vh;
}

.edevlet-giris-page {
    min-height: calc(100vh - 2rem);
    padding: 1.25rem 0.75rem 2rem;
    box-sizing: border-box;
}

.edevlet-giris-page__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.edevlet-login-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.edevlet-login-card {
    background: #fff;
    border: 1px solid #d4dce6;
    border-radius: 14px;
    padding: 1.35rem 1.35rem 1.65rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.edevlet-login-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e5eaf0;
}

.edevlet-login-head__edk {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.edevlet-login-head__gov {
    text-align: right;
    flex-shrink: 0;
}

.edevlet-login-head__gov img {
    display: block;
    margin-left: auto;
    max-width: 140px;
    height: auto;
}

.edevlet-login-head__gov-url {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #6b7280;
}

.edevlet-login-options-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 0.65rem;
}

.edevlet-login-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edevlet-login-tab {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    cursor: default;
    line-height: 1.25;
}

.edevlet-login-tab.is-active {
    color: #111827;
    font-weight: 700;
    background: #fff;
    border-color: #d1d5db;
    border-bottom-color: #fff;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    box-shadow: 0 -1px 0 #fff;
}

.edevlet-login-tab__chev {
    font-size: 0.55rem;
    margin-left: 0.2rem;
    vertical-align: middle;
}

.edevlet-login-subtabs {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-top: 1px solid #e5e7eb;
}

.edevlet-login-subtab {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #4b5563;
    cursor: default;
}

.edevlet-login-intro {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0.85rem 0 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.edevlet-login-intro__link {
    color: #1d4ed8;
    text-decoration: none;
}

.edevlet-login-intro__link:hover {
    text-decoration: underline;
}

.edevlet-login-form {
    margin: 0;
}

.edevlet-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    align-items: center;
}

@media (min-width: 560px) {
    .edevlet-form-row {
        grid-template-columns: 11.5rem 1fr;
        gap: 0.75rem;
    }
}

.edevlet-form-row__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}

.edevlet-form-row__label .req {
    color: #dc2626;
}

.edevlet-input-shell {
    position: relative;
}

.edevlet-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 4.25rem 0.6rem 0.75rem;
    border: 1px solid #c9d2dc;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
}

.edevlet-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.edevlet-input--invalid {
    border-color: #dc2626 !important;
}

.edevlet-input-tools {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.edevlet-input-tool {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.edevlet-input-tool:hover {
    background: #f3f4f6;
    color: #374151;
}

.edevlet-caps-warn {
    font-size: 0.78rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin: 0 0 0.65rem;
}

.edevlet-caps-key {
    font-weight: 700;
}

.edevlet-pass-hint {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0 0 0.65rem;
}

.edevlet-forgot-row {
    text-align: right;
    margin-bottom: 0.85rem;
}

.edevlet-forgot-link {
    font-size: 0.8rem;
    color: #1d4ed8;
    text-decoration: none;
}

.edevlet-forgot-link:hover {
    text-decoration: underline;
}

.edevlet-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
    align-items: stretch;
}

.edevlet-btn-cancel {
    flex: 0 0 auto;
    min-width: 6.5rem;
    padding: 0.65rem 1.25rem;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.edevlet-btn-submit {
    flex: 1 1 12rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(180deg, #2b7fd4 0%, #1a6bc2 100%);
    border: 1px solid #155fa8;
    border-radius: 999px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.edevlet-btn-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.edevlet-form-error {
    font-size: 0.78rem;
    color: #dc2626;
    margin: 0 0 0.5rem;
    display: none;
}

.edevlet-form-error.is-visible {
    display: block;
}

.edevlet-giris-footer {
    max-width: 640px;
    margin: 1.75rem auto 0;
    padding: 0 0.75rem;
    text-align: center;
}

.edevlet-giris-footer__partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.edevlet-giris-footer__partners img {
    height: 36px;
    width: auto;
    opacity: 0.92;
}

.edevlet-giris-footer__copy {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.edevlet-giris-footer__links {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.edevlet-giris-footer__links a {
    font-size: 0.75rem;
    color: #1d4ed8;
    text-decoration: none;
}

.edevlet-giris-footer__legal {
    font-size: 0.65rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Tapu adım stepper (görsel 3–6) */
.tapu-edevlet-stepper {
    background: #fff;
    border-bottom: 1px solid #dde4ea;
    padding: 0.75rem 1rem 0.85rem;
}

.tapu-edevlet-stepper__inner {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
}

.tapu-edevlet-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.tapu-edevlet-step__n {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    margin: 0 auto 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
}

.tapu-edevlet-step.is-done .tapu-edevlet-step__n {
    background: #16a34a;
    color: #fff;
}

.tapu-edevlet-step.is-active .tapu-edevlet-step__n {
    background: #1a3a5c;
    color: #fff;
}

.tapu-edevlet-step__lbl {
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.2;
}

.tapu-edevlet-step.is-active .tapu-edevlet-step__lbl {
    color: #1a3a5c;
    font-weight: 700;
}

.tapu-edevlet-form-card {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem;
}

.tapu-edevlet-form-card .tapu-card-light {
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.tapu-edevlet-form-card .tapu-form-grid {
    gap: 0.75rem;
}

.tapu-edevlet-form-card .tapu-field--half {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .tapu-edevlet-form-card .tapu-form-grid--basvuru {
        grid-template-columns: 1fr 1fr;
    }
}

.tapu-randevu-ozet {
    background: #f0f7fc;
    border: 1px solid #c5dff0;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    font-size: 0.78rem;
}

.tapu-randevu-ozet__k {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
    text-transform: uppercase;
}

.tapu-randevu-ozet__v {
    color: #1e293b;
    font-weight: 600;
}

.tapu-odeme-simple .hgs-card-preview {
    display: none;
}

.tapu-odeme-simple .hgs-kart-limit-row {
    display: none;
}

/* Kimlik doğrulama — premium kart */
.kimlik-verify-shell {
    max-width: 26rem;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.kimlik-verify-panel {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.kimlik-verify-panel__head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6fc 100%);
    border-bottom: 1px solid #e2e8f0;
}

.kimlik-verify-panel__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, #1e4a72, #2d6a9f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(30, 74, 114, 0.35);
}

.kimlik-verify-panel__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.kimlik-verify-panel__sub {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.kimlik-verify-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.75rem 1rem 0.5rem;
}

.kimlik-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.kimlik-tip i {
    color: #2d6a9f;
    font-size: 0.85rem;
}

.kimlik-scanner {
    position: relative;
    margin: 0.65rem 1rem 0.5rem;
    border-radius: 1rem;
    min-height: 11.5rem;
    background: radial-gradient(ellipse at 50% 30%, #1e3a5f 0%, #0c1222 70%);
    overflow: hidden;
}

.kimlik-scanner__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.kimlik-scanner__frame {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 78%;
    max-width: 17rem;
    aspect-ratio: 1.586;
    border: 2px dashed rgba(148, 210, 255, 0.55);
    border-radius: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.78rem;
    z-index: 2;
}

.kimlik-scanner__frame i {
    font-size: 1.75rem;
    opacity: 0.85;
}

.kimlik-scanner__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.kimlik-verify-hint {
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0 1rem 0.65rem;
}

.kimlik-verify-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.kimlik-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kimlik-btn:active {
    transform: scale(0.98);
}

.kimlik-btn--ghost {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.kimlik-btn--primary {
    background: linear-gradient(180deg, #3b82c4 0%, #2563a8 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 168, 0.35);
}

.kimlik-btn--send {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.kimlik-verify-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    font-size: 0.68rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.kimlik-verify-foot i {
    color: #059669;
}

@media (max-width: 520px) {
    .kimlik-verify-tips-grid {
        grid-template-columns: 1fr;
    }
    .kimlik-tip {
        flex-direction: row;
        font-size: 0.72rem;
        text-align: left;
    }
}

/* Hata sayfaları */
.hgs-hata-page--kart .hgs-status-icon.error {
    background: #fef2f2;
    color: #dc2626;
}

.hgs-hata-odeme-geri {
    margin-top: 0.75rem;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 2px solid #2d5f8b;
    color: #2d5f8b;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
