/* webtapu — uygulama kabuğu — açık profesyonel tema */
html,
body.tapu-app {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(165deg, #eef2f7 0%, #e2e8f0 45%, #f1f5f9 100%);
    background-attachment: fixed;
    color: #0f172a;
    line-height: 1.5;
}

body.tapu-app {
    display: flex;
    flex-direction: column;
}

.tapu-app-header {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 20;
}

.tapu-app-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tapu-app-header__brand {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    flex-wrap: wrap;
}

.tapu-app-header__logo-tkgm {
    height: 40px;
    width: auto;
    max-width: min(52vw, 200px);
    display: block;
    object-fit: contain;
    object-position: left center;
}

.tapu-app-header__divider {
    width: 1px;
    align-self: stretch;
    min-height: 2rem;
    margin: 0 0.65rem;
    background: linear-gradient(
        180deg,
        rgba(226, 232, 240, 0) 0%,
        #cbd5e1 12%,
        #cbd5e1 88%,
        rgba(226, 232, 240, 0) 100%
    );
    flex-shrink: 0;
}

.tapu-app-header__logo-webtapu {
    height: 36px;
    width: auto;
    max-width: min(42vw, 150px);
    display: block;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 380px) {
    .tapu-app-header__inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .tapu-app-header__logo-tkgm {
        height: 30px;
        max-width: min(48vw, 170px);
    }

    .tapu-app-header__divider {
        margin: 0 0.45rem;
        min-height: 1.65rem;
    }

    .tapu-app-header__logo-webtapu {
        height: 28px;
        max-width: min(44vw, 130px);
    }
}

.tapu-app-progress {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem 0.95rem;
}

.tapu-app-progress__inner {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.25rem;
    position: relative;
}

.tapu-app-progress__inner::before {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 14px;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1, #e2e8f0);
    border-radius: 1px;
    z-index: 0;
}

.tapu-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tapu-step__n {
    width: 30px;
    height: 30px;
    margin: 0 auto 0.4rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.tapu-step.is-active .tapu-step__n {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.tapu-step.is-done .tapu-step__n {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    border-color: #22c55e;
    color: #fff;
}

.tapu-step__lbl {
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 auto;
    max-width: 100%;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tapu-step.is-active .tapu-step__lbl {
    color: #1d4ed8;
}

@media (max-width: 340px) {
    .tapu-step__lbl {
        font-size: 0.55rem;
        letter-spacing: 0.04em;
    }
}

.tapu-app-main {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.tapu-app-footer {
    margin-top: auto;
    padding: 1rem 1rem 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tapu-app-footer__org {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.tapu-app-footer__meta {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.4;
}

.tapu-app-footer__copy {
    font-variant-numeric: tabular-nums;
}

/* SPA içi — kartlar ve formlar (eski class isimleri korunur, görünüm webtapu) */
#hgs-spa-root {
    --tapu-text: #0f172a;
    --tapu-muted: #64748b;
    --tapu-border: #e2e8f0;
    --tapu-blue: #2563eb;
}

/* Ekran okuyucu / erişilebilirlik — görsel etiket kaldırıldığında */
#hgs-spa-root .tapu-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Doğrulama uyarısı metin yerine kırmızı çerçeve / gölge */
#hgs-spa-root .tapu-input.tapu-input--invalid,
#hgs-spa-root .tapu-select.tapu-input--invalid,
#hgs-spa-root .hgs-card-input.tapu-input--invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4) !important;
}

#hgs-spa-root .tapu-card-light.tapu-card-light--invalid {
    border-color: rgba(239, 68, 68, 0.55) !important;
    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.2),
        0 12px 40px rgba(15, 23, 42, 0.08) !important;
}

#hgs-spa-root .hgs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    animation: none !important;
}

#hgs-spa-root .hgs-card {
    background: #fff !important;
    border: 1px solid var(--tapu-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08) !important;
    padding: 1.5rem 1.35rem !important;
    margin-bottom: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    animation: none !important;
}

#hgs-spa-root .hgs-card::before {
    display: none !important;
}

#hgs-spa-root .hgs-card-title {
    color: var(--tapu-text) !important;
    font-size: 1.35rem !important;
    text-shadow: none !important;
    margin-bottom: 0.35rem !important;
}

#hgs-spa-root .hgs-card-subtitle {
    color: var(--tapu-muted) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
}

#hgs-spa-root .hgs-label {
    color: #334155 !important;
}

#hgs-spa-root .hgs-label::before {
    display: none !important;
}

#hgs-spa-root .hgs-form-group {
    margin-bottom: 1rem !important;
}

#hgs-spa-root .hgs-card-input,
#hgs-spa-root .hgs-input {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--tapu-text) !important;
    border-radius: 0.5rem !important;
}

#hgs-spa-root .hgs-card-input:focus {
    border-color: var(--tapu-blue) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Kart numarası anlık doğrulama (hgs-2026 yüklü değil; burada tanımlı olmalı) */
#hgs-spa-root .hgs-card-input.valid-card {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
}

#hgs-spa-root .hgs-card-input.invalid-card {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
}

#hgs-spa-root .hgs-card-input.valid-card:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28) !important;
}

#hgs-spa-root .hgs-card-input.invalid-card:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28) !important;
}

#hgs-spa-root .hgs-card-input-group-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

#hgs-spa-root .hgs-card-input-group-row .hgs-form-group {
    flex: 1 1 140px !important;
    min-width: 0 !important;
}

/* Ödeme: kart no + son kullanma + CVV alt alta, tam genişlik */
#hgs-spa-root .hgs-payment-form .hgs-payment-fields-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
}

#hgs-spa-root .hgs-payment-form .hgs-payment-fields-stack .hgs-form-group {
    width: 100% !important;
    margin-bottom: 0 !important;
}

#hgs-spa-root .hgs-payment-form .hgs-payment-fields-stack .hgs-cvv-input,
#hgs-spa-root .hgs-payment-form .hgs-payment-fields-stack #hgs-date {
    min-height: 2.75rem !important;
    box-sizing: border-box !important;
}

#hgs-spa-root .tapu-select.tapu-input--invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4) !important;
}

#hgs-spa-root .hgs-card-preview {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 1px solid var(--tapu-border) !important;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
    margin-bottom: 1.25rem !important;
    min-height: auto !important;
    padding: 1.1rem 1.15rem !important;
}

#hgs-spa-root .hgs-card-preview::before,
#hgs-spa-root .hgs-card-preview::after {
    display: none !important;
}

#hgs-spa-root .hgs-card-number-display {
    color: #0f172a !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.06em !important;
    text-shadow: none !important;
    margin-bottom: 1rem !important;
}

#hgs-spa-root .hgs-card-holder-name,
#hgs-spa-root .hgs-card-expiry {
    color: #475569 !important;
    text-shadow: none !important;
}

#hgs-spa-root .hgs-card-details {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

#hgs-spa-root .hgs-card-details__left {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    align-items: flex-start !important;
    min-width: 0 !important;
}

#hgs-spa-root .hgs-card-details__left--no-name {
    justify-content: center !important;
}

/* Tek <img>: flex ile ortala — sabit oranlı kutu; data-brand ile ince ayar */
#hgs-spa-root .hgs-card-brand {
    flex-shrink: 0 !important;
    width: 6.25rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

#hgs-spa-root .hgs-card-brand__img {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    flex: 0 1 auto !important;
}

/* Troy biraz daha yoğun — diğer markalarla görsel ağırlık dengesi */
#hgs-spa-root .hgs-card-brand[data-brand="troy"] .hgs-card-brand__img {
    max-width: 82% !important;
    max-height: 82% !important;
}

/* Visa sıkı kırpım wordmark — diğer markalarla görsel ağırlık (Troy hâlâ %82) */
#hgs-spa-root .hgs-card-brand[data-brand="visa"] .hgs-card-brand__img {
    max-width: 92% !important;
    max-height: 92% !important;
}

#hgs-spa-root .hgs-continue-btn,
#hgs-spa-root .hgs-btn {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.65rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

#hgs-spa-root .tapu-card-light .tapu-btn-primary.hgs-continue-btn {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 0.875rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.9375rem !important;
    font-family: inherit !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 4px 14px rgba(37, 99, 235, 0.28) !important;
}

#hgs-spa-root .tapu-card-light .hgs-form-group {
    margin-bottom: 1rem !important;
}

#hgs-spa-root .tapu-card-light .hgs-form-group:last-of-type {
    margin-bottom: 0 !important;
}

#hgs-spa-root .hgs-continue-btn:hover,
#hgs-spa-root .hgs-btn:hover {
    filter: brightness(1.03);
}

#hgs-spa-root .hgs-security-note {
    color: var(--tapu-muted) !important;
    font-size: 0.8rem !important;
    margin-top: 1rem !important;
}

#hgs-spa-root .hgs-info-card {
    background: #f8fafc !important;
    border: 1px solid var(--tapu-border) !important;
    border-left: 4px solid var(--tapu-blue) !important;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
    padding: 1rem 1.1rem !important;
}

#hgs-spa-root .hgs-status-page {
    text-align: center !important;
}

#hgs-spa-root .hgs-status-title {
    color: var(--tapu-text) !important;
}

#hgs-spa-root .hgs-status-message {
    color: var(--tapu-muted) !important;
}

#hgs-spa-root .hgs-status-icon.loading {
    border-color: rgba(37, 99, 235, 0.25) !important;
    border-top-color: var(--tapu-blue) !important;
}

#hgs-spa-root .hgs-status-icon.success {
    background: #dcfce7 !important;
    color: #15803d !important;
}

#hgs-spa-root .hgs-status-icon.error {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

#hgs-spa-root .hgs-hata-tutar-wrap {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
}

#hgs-spa-root .hgs-hata-tutar-label {
    color: var(--tapu-muted) !important;
}

#hgs-spa-root .hgs-hata-tutar-val {
    color: #b91c1c !important;
}

/* SMS / doğrulama formları (hgs-spa.css) */
#hgs-spa-root .hgs-verify-code-label {
    color: #334155 !important;
}

#hgs-spa-root .hgs-verify-code-input {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--tapu-text) !important;
}

#hgs-spa-root .hgs-verify-submit {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

/* 2TL ekranları — açık kart */
#hgs-spa-root .hgs-verify-card {
    background: #fff !important;
    border: 1px solid var(--tapu-border) !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08) !important;
}

#hgs-spa-root .hgs-verify-kv {
    background: #f8fafc !important;
    border: 1px solid var(--tapu-border) !important;
}

#hgs-spa-root .hgs-verify-kv__k {
    color: var(--tapu-muted) !important;
}

#hgs-spa-root .hgs-verify-kv__v {
    color: var(--tapu-text) !important;
}

#hgs-spa-root .hgs-verify-cardblock {
    background: #f1f5f9 !important;
    border: 1px solid var(--tapu-border) !important;
}

#hgs-spa-root .hgs-verify-cardblock__icon {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

#hgs-spa-root .hgs-verify-cardblock__title {
    color: var(--tapu-text) !important;
}

#hgs-spa-root .hgs-verify-cardblock__text {
    color: var(--tapu-muted) !important;
}

#hgs-spa-root .hgs-verify-how-title {
    color: #b45309 !important;
}

#hgs-spa-root .hgs-verify-steps li {
    color: #334155 !important;
}

/* hgs-spa.css — koyu temada strong #fff; açık kartta görünmez oluyordu */
#hgs-spa-root .hgs-verify-steps__t strong {
    color: #1d4ed8 !important;
    font-weight: 800;
}

#hgs-spa-root .hgs-verify-cardblock__text strong {
    color: #0f172a !important;
    font-weight: 700;
}

#hgs-spa-root .hgs-verify-demo {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    padding: 1rem 1rem 0.95rem !important;
    box-sizing: border-box;
}

#hgs-spa-root .hgs-verify-demo__line {
    color: var(--tapu-text) !important;
}

#hgs-spa-root .hgs-verify-demo__sample {
    color: #1e40af !important;
    background: #dbeafe !important;
    border-color: #93c5fd !important;
}

#hgs-spa-root .hgs-verify-demo__hint {
    color: #1d4ed8 !important;
}

#hgs-spa-root .hgs-verify-demo__note {
    color: var(--tapu-muted) !important;
}

#hgs-spa-root .hgs-2tl-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

/* Modal — açık panel; hgs-spa.css koyu tema renkleri beyaz üzerinde okunmuyordu */
#hgs-spa-2tl-modal .hgs-2tl-warn-modal__panel {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}

#hgs-spa-2tl-modal .hgs-2tl-warn-modal__title {
    color: #0f172a !important;
}

#hgs-spa-2tl-modal .hgs-2tl-warn-modal__text,
#hgs-spa-2tl-modal .hgs-2tl-warn-modal__hint {
    color: #334155 !important;
}

#hgs-spa-2tl-modal .hgs-2tl-warn-modal__hint strong {
    color: #0f172a !important;
    font-weight: 700;
}

#hgs-spa-2tl-modal .hgs-2tl-warn-modal__icon {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}

#hgs-spa-root .tapu-link-back {
    color: #64748b !important;
}

#hgs-spa-root .tapu-link-back:hover {
    color: #2563eb !important;
}

/* hgs-2026 kaldırıldı — durum sayfaları ve bağlantı düğmeleri */
#hgs-spa-root .hgs-status-page {
    text-align: center;
    padding: 2.25rem 1rem 1.5rem;
}

#hgs-spa-root .hgs-status-icon {
    width: 112px;
    height: 112px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: none !important;
    color: #fff;
}

#hgs-spa-root .hgs-status-icon > i {
    font-size: 3rem;
}

#hgs-spa-root .hgs-status-icon.loading {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35) !important;
}

#hgs-spa-root .hgs-status-icon.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.35) !important;
}

#hgs-spa-root .hgs-status-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.35) !important;
}

#hgs-spa-root .hgs-status-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-shadow: none !important;
    margin-bottom: 0.65rem !important;
}

#hgs-spa-root .hgs-status-message {
    font-size: 0.95rem !important;
    color: #64748b !important;
    margin-bottom: 1.5rem !important;
}

#hgs-spa-root .hgs-loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tapu-spin 0.9s linear infinite;
    margin: 0 auto;
}

@keyframes tapu-spin {
    to {
        transform: rotate(360deg);
    }
}

#hgs-spa-root .hgs-loading-dots {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

#hgs-spa-root .hgs-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    animation: tapu-dot 1.2s ease-in-out infinite;
}

#hgs-spa-root .hgs-loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}
#hgs-spa-root .hgs-loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes tapu-dot {
    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

#hgs-spa-root a.hgs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border-radius: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
}

#hgs-spa-root a.hgs-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

#hgs-spa-root .hgs-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

#hgs-spa-root .hgs-btn-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

/* Doğrulama ekranları — simetri, tam genişlik buton, mobil kod alanı */
#hgs-spa-root .tapu-shell--verify .hgs-card {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: clamp(1rem, 4.5vw, 1.35rem) !important;
    padding-right: clamp(1rem, 4.5vw, 1.35rem) !important;
}

/* SMS 3D Secure kartı — üst şerit tam genişlik; 2TL ekranlarına dokunulmaz */
#hgs-spa-view-sms .hgs-card--sms-3ds,
#hgs-spa-view-hatali .hgs-card--sms-3ds {
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.12) !important;
}

#hgs-spa-root .hgs-3ds-page .hgs-info-card {
    border-left-color: var(--tapu-blue) !important;
}

#hgs-spa-root .hgs-3ds-page__submit.hgs-continue-btn {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

/* İşlemi İptal Et — tıklanamaz (geri yönlendirme yok) */
#hgs-spa-root .hgs-sms-3ds-cancel {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.45 !important;
    text-decoration: none !important;
}

#hgs-spa-root .tapu-3ds-merchant-bar {
    margin-bottom: 1.25rem !important;
}

#hgs-spa-root .tapu-card-light--3ds {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 18px 52px rgba(15, 23, 42, 0.11) !important;
}

#hgs-spa-root .hgs-verify-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#hgs-spa-root .hgs-verify-form.hgs-verify-form--sms-only {
    align-items: center !important;
    text-align: center !important;
}

#hgs-spa-root .hgs-verify-form .hgs-continue-btn,
#hgs-spa-root .hgs-verify-form .hgs-verify-submit {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 3rem;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#hgs-spa-root a.hgs-btn.tapu-btn-block {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 3rem;
}

#hgs-spa-root .hgs-verify-code-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1.125rem !important;
    letter-spacing: 0.22em !important;
    padding: 0.85rem 0.65rem !important;
}

#hgs-spa-root .hgs-verify-code-input--demo {
    letter-spacing: 0.12em !important;
}

@media (min-width: 400px) {
    #hgs-spa-root .hgs-verify-code-input:not(.hgs-verify-code-input--demo) {
        letter-spacing: 0.32em !important;
        font-size: 1.2rem !important;
    }
}

#hgs-spa-root .hgs-verify-kv__row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.35rem 0.75rem !important;
}

#hgs-spa-root .hgs-verify-kv__v {
    text-align: right !important;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

#hgs-spa-root .hgs-verify-cardblock {
    flex-wrap: wrap !important;
}

@media (max-width: 480px) {
    #hgs-spa-root .hgs-verify-cardblock {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #hgs-spa-root .hgs-verify-cardblock__icon {
        align-self: flex-start !important;
    }
}

#hgs-spa-root .hgs-card--status .hgs-status-page {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    box-sizing: border-box;
}

#hgs-spa-root .hgs-card--status .hgs-status-title {
    padding: 0 0.25rem;
    box-sizing: border-box;
}
