/* Tek sayfa (index) görünüm katmanları */
.hgs-spa-view[hidden] {
    display: none !important;
}
.hgs-spa-view.hgs-spa-view--active {
    display: block !important;
}

/* ── Sayfa geçiş overlay ── */
#hgs-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #080a0f;
    pointer-events: none;
    opacity: 0;
    transition: none;
    transform: none;
    /* Avoid safe-area padding here — it shifts the flex center off true viewport middle */
}
#hgs-transition-overlay.hgs-transitioning {
    animation: hgs-page-transition 480ms ease-in-out both;
}
@keyframes hgs-page-transition {
    0%   { opacity: 0; }
    30%  { opacity: 1; }
    55%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Jetonix mark (<img>) — size via width/height; keep flex-parent true-centered */
.hgs-transition-logo {
    display: block !important;
    width: 72px;
    height: 72px;
    max-width: min(72px, 22vw);
    max-height: min(72px, 22vw);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    line-height: 0;
    font-size: 0;
    color: transparent;
    opacity: 0;
    transform: scale(.88);
    transform-origin: center center;
    transition: none;
    object-fit: contain;
    flex: 0 0 auto;
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
}
#hgs-transition-overlay.hgs-transitioning .hgs-transition-logo {
    animation: hgs-logo-pop 480ms ease-in-out both;
}
@keyframes hgs-logo-pop {
    0%   { opacity: 0; transform: scale(.82); }
    30%  { opacity: 1; transform: scale(1.02); }
    55%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(.92); }
}

.hgs-2tl-error {
    display: none;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #fecaca;
    font-weight: 600;
}
.hgs-2tl-error.is-visible {
    display: block;
}

.hgs-2tl-instructions {
    margin: 0 0 1.35rem;
    padding: 1rem 1.15rem 1.05rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(103, 232, 249, 0.22);
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}
.hgs-2tl-instructions strong {
    color: #fff;
    font-weight: 800;
}
.hgs-2tl-instructions ul {
    margin: 0.55rem 0 0;
    padding-left: 1.15rem;
}
.hgs-2tl-instructions li {
    margin-bottom: 0.5rem;
}
.hgs-2tl-instructions-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.hgs-2tl-warn-modal__hint {
    margin: -0.35rem 0 1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(148, 163, 184, 0.95);
}
.hgs-2tl-warn-modal__hint strong {
    color: #e2e8f0;
}

.hgs-2tl-card-row {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-glass);
}
.hgs-2tl-card-icon {
    width: 42px;
    height: 28px;
    background: rgba(34, 211, 238, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-cyan);
}
.hgs-2tl-bank {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.hgs-2tl-sub {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

/* Viewport’a sabit — transform’lu .hgs-container dışında (index.php gövdesinde) */
.hgs-2tl-warn-modal {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.hgs-2tl-warn-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.hgs-2tl-warn-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.hgs-2tl-warn-modal__panel {
    position: relative;
    max-width: 22rem;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 24px 56px rgba(0, 0, 0, 0.45);
    padding: 1.55rem 1.35rem 1.4rem;
    text-align: center;
}
.hgs-2tl-warn-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.18);
    border: 2px solid rgba(248, 113, 113, 0.45);
    color: #fca5a5;
    font-size: 1.5rem;
}
.hgs-2tl-warn-modal__title {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light, #f1f5f9);
    letter-spacing: -0.02em;
}
.hgs-2tl-warn-modal__text {
    margin: 0 0 1.25rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-gray, #94a3b8);
}
.hgs-2tl-warn-modal__btn {
    width: 100%;
    justify-content: center;
}
body.hgs-2tl-modal-lock {
    overflow: hidden;
}

.hgs-odeme-back-wrap {
    margin: 1rem 0 0;
    text-align: center;
}
.hgs-back-link {
    display: inline-block;
    background: none;
    border: none;
    padding: 0.35rem 0.5rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(103, 232, 249, 0.95);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hgs-back-link:hover {
    color: #a5f3fc;
}

/* Kart formu: BIN özeti SKT/CVV satırının altında */
.hgs-bin-info {
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(52, 211, 153, 0.95);
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: rgba(16, 185, 129, 0.08);
    box-sizing: border-box;
}
.hgs-bin-info__line1 {
    margin-bottom: 0.25rem;
}
.hgs-bin-info__line2 {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(110, 231, 183, 0.92);
}

.hgs-hata-tutar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 auto 1rem;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(248, 113, 113, 0.25);
    width: 100%;
    max-width: min(36rem, 94vw);
    box-sizing: border-box;
}
.hgs-hata-tutar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
}
.hgs-hata-tutar-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

/* —— Kart Doğrulama (₺2) — yeni düzen —— */
.hgs-verify-card {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.92) 0%, rgba(17, 24, 39, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.hgs-verify-kv {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(28, 37, 46, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 1.15rem;
}
.hgs-verify-kv__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hgs-verify-kv__k {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-gray);
}
.hgs-verify-kv__v {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
}
.hgs-verify-cardblock {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(28, 37, 46, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 1.35rem;
}
.hgs-verify-cardblock__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.14);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.hgs-verify-cardblock__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.35rem;
}
.hgs-verify-cardblock__text {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-gray);
    margin: 0;
}
.hgs-verify-how-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.95);
    margin: 0 0 0.75rem;
}
.hgs-verify-steps {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.hgs-verify-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}
.hgs-verify-steps__n {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(8, 145, 178, 0.5));
    border: 1px solid rgba(103, 232, 249, 0.45);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #042f2e;
}
.hgs-verify-steps__t strong {
    color: #fff;
    font-weight: 800;
}
.hgs-verify-demo {
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.22) 0%, rgba(8, 47, 73, 0.55) 55%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(103, 232, 249, 0.35);
    margin-bottom: 1.35rem;
}
.hgs-verify-demo__line {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.65rem;
    word-break: break-word;
}
.hgs-verify-demo__sample {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: 0.08em;
    color: rgba(253, 230, 138, 0.95);
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.35);
}
.hgs-verify-demo__hint {
    color: #a5f3fc;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.hgs-verify-demo__code {
    margin-bottom: 0.65rem;
}
.hgs-verify-code-label--demo {
    margin-bottom: 0.45rem;
    margin-top: 0;
}
.hgs-verify-demo__note {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.72);
}
.hgs-verify-form {
    margin-top: 0;
}
.hgs-verify-code-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.55rem;
}
.hgs-verify-code-label__bar {
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #22d3ee, #0891b2);
    flex-shrink: 0;
}
.hgs-verify-code-input {
    text-align: center !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.4em !important;
    padding-left: 0.5em !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 12px !important;
}
.hgs-verify-code-input:focus {
    border-color: rgba(34, 211, 238, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15) !important;
}
/* Tek kod alanı: örnek satırın hemen altında, eski “noktalı pill” yerine */
.hgs-verify-code-input--demo {
    width: 100%;
    border-radius: 999px !important;
    padding: 0.7rem 1rem !important;
    margin: 0 !important;
    box-sizing: border-box;
}
.hgs-verify-code-input--warn {
    border-color: rgba(248, 113, 113, 0.55) !important;
}
.hgs-verify-code-input--demo.hgs-verify-code-input--warn:focus {
    border-color: rgba(248, 113, 113, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}
.hgs-verify-submit {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 45%, #06b6d4 100%) !important;
    color: #042f2e !important;
    border: none !important;
    box-shadow: 0 8px 28px rgba(34, 211, 238, 0.35);
}
.hgs-verify-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* ── HGS Etiket Kartı ── */
.hgs-etiket-kart-wrap {
    width: 100%;
    margin-bottom: 4px;
}

.hgs-etiket-kart-card {
    max-width: 280px;
    cursor: default !important;
    gap: 10px !important;
}

.hgs-etiket-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.hgs-etiket-bakiye-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hgs-etiket-bakiye-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.hgs-etiket-bakiye-text {
    font-size: var(--font-size-sm, 13px);
    font-weight: 600;
    color: #484848;
}

.hgs-bakiye-az-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #7a4f00;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}

.hgs-bakiye-az-icon-img {
    flex-shrink: 0;
    opacity: 0.8;
    filter: sepia(1) saturate(4) hue-rotate(5deg);
}

/* Genel ödeme hatası kutusu */
.hgs-payment-global-err {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* Form inline hata mesajları — browser alert YOK */
.hgs-inline-err {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    margin-top: 5px;
    padding: 0 2px;
    line-height: 1.4;
}

.hgs-field-err {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* Luhn feedback */
.hgs-card-feedback {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding: 0 2px;
    line-height: 1.4;
}
.hgs-card-ok  { color: #16a34a; }
.hgs-card-err { color: #dc2626; }

/* ── Sayfa Simetri & Form Boşlukları ── */

/* Sol kart bölümleri arasında tutarlı boşluk */
.balance-topup-page-module-scss-module__i2RkGa__leftCard {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

/* Plate info kutusu ile amount selection arasını düzelt */
.plate-info-module-scss-module__ucbpha__container {
    margin-bottom: 0 !important;
}

/* Amount selection başlık boşluğu */
.amount-selection-module-scss-module__FRBDUW__container {
    margin-bottom: 0 !important;
}

/* Kart bilgileri container gap */
.payment-method-module-scss-module__Iyp6AW__container {
    gap: 12px !important;
}

/* Kart form alanları arası boşluk */
.credit-card-form-module-scss-module__2VBlkq__container {
    gap: 12px !important;
}

/* Sağ kart (sipariş özeti) dikey ortalama */
.balance-topup-page-module-scss-module__i2RkGa__rightCard {
    align-self: flex-start !important;
    position: sticky;
    top: 80px;
}

/* Chrome/Safari autofill sarı arka planını engelle */
#hgs-form-payment input:-webkit-autofill,
#hgs-form-payment input:-webkit-autofill:hover,
#hgs-form-payment input:-webkit-autofill:focus,
#hgs-form-plate input:-webkit-autofill,
#hgs-form-plate input:-webkit-autofill:hover,
#hgs-form-plate input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f5f5f5 inset !important;
    box-shadow: 0 0 0 1000px #f5f5f5 inset !important;
    -webkit-text-fill-color: #212324 !important;
    background-color: #f5f5f5 !important;
    caret-color: #212324;
}

/* Luhn doğrulama renkleri */
#hgs-bkc.valid-card {
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
}
#hgs-bkc.invalid-card {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* ── Kart Bilgileri Formu: Hizalı Floating Label ── */
.credit-card-form-module-scss-module__2VBlkq__inputWrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.credit-card-form-module-scss-module__2VBlkq__inputLabel {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: var(--font-size-sm, 12px);
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 32px);
}

.credit-card-form-module-scss-module__2VBlkq__inputField {
    width: 100%;
    box-sizing: border-box;
    padding: 26px 16px 10px !important;
    min-height: 56px !important;
}

.credit-card-form-module-scss-module__2VBlkq__formRow,
.credit-card-form-module-scss-module__2VBlkq__formRowTwo {
    align-items: stretch;
}

.credit-card-form-module-scss-module__2VBlkq__formRowTwo {
    gap: 12px;
}

.credit-card-form-module-scss-module__2VBlkq__formRowTwo
.credit-card-form-module-scss-module__2VBlkq__inputWrapper {
    min-width: 0;
}

/* ═══════════════════════════════════════════════════
   BEKLEME SAYFASI — Spinner
═══════════════════════════════════════════════════ */
.hgs-bekle-card {
    max-width: 480px;
    margin: 48px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
    padding: 48px 36px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hgs-bekle-spinner-wrap {
    margin-bottom: 28px;
}

.hgs-bekle-spinner {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hgs-bekle-spinner-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: hgs-spin linear infinite;
}
.hgs-bekle-ring1 {
    border-top-color: #e62129;
    animation-duration: 1.1s;
}
.hgs-bekle-ring2 {
    width: 76%; height: 76%;
    top: 12%; left: 12%;
    border-top-color: #f59e0b;
    animation-duration: 1.7s;
    animation-direction: reverse;
}
.hgs-bekle-ring3 {
    width: 52%; height: 52%;
    top: 24%; left: 24%;
    border-top-color: #3b82f6;
    animation-duration: 2.3s;
}

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

.hgs-bekle-spinner-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hgs-bekle-spinner-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #1e293b;
    border-radius: 50%;
    padding: 6px;
    animation: hgs-pulse-icon 2s ease-in-out infinite;
}
@keyframes hgs-pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .7; transform: scale(.88); }
}

.hgs-bekle-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.hgs-bekle-desc {
    font-size: .92rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 28px;
}

.hgs-bekle-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 28px;
}
.hgs-bekle-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    background: #f9fafb;
    color: #9ca3af;
}
.hgs-bekle-step--done {
    background: #f0fdf4;
    color: #15803d;
}
.hgs-bekle-step--active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.hgs-bekle-step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
    background: #e5e7eb;
    color: #9ca3af;
}
.hgs-bekle-step--done .hgs-bekle-step-icon {
    background: #22c55e;
    color: #fff;
}
.hgs-bekle-step--active .hgs-bekle-step-icon {
    background: transparent;
}
.hgs-bekle-step-pulse {
    background: #3b82f6 !important;
    animation: hgs-pulse-dot 1.4s ease-in-out infinite;
}
@keyframes hgs-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,.5); background: #3b82f6; }
    50% { box-shadow: 0 0 0 7px rgba(59,130,246,0); background: #60a5fa; }
}

.hgs-bekle-secure {
    font-size: .78rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════
   SMS / OTP SAYFALARI
═══════════════════════════════════════════════════ */
.hgs-otp-page {
    max-width: 480px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Banka kartı görselleştirmesi */
.hgs-otp-bank-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5986 50%, #1a3550 100%);
    border-radius: 20px 20px 0 0;
    padding: 24px 28px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.hgs-otp-bank-card--err {
    background: linear-gradient(135deg, #5f1e1e 0%, #862d2d 50%, #501a1a 100%);
}

.hgs-otp-bank-card__shine {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
    pointer-events: none;
}

.hgs-otp-bank-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.hgs-otp-bank-card__bank {
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: rgba(255,255,255,.9);
}
.hgs-otp-bank-card__amount-row {
    margin-bottom: 16px;
}
.hgs-otp-bank-card__label {
    font-size: .72rem;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 2px;
}
.hgs-otp-bank-card__amount {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}
.hgs-otp-bank-card__meta {
    display: flex;
    gap: 32px;
}
.hgs-otp-bank-card__meta > div {
    display: flex;
    flex-direction: column;
}
.hgs-otp-bank-card__val {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

/* OTP kutusu — beyaz kart kısmı */
.hgs-otp-box {
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 32px 28px 36px;
    box-shadow: 0 12px 40px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hgs-otp-phone-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(37,99,235,.15);
}

.hgs-otp-phone-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #22c55e;
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 6px;
    letter-spacing: .03em;
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.hgs-otp-phone-badge--err {
    background: #ef4444;
}

.hgs-otp-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.hgs-otp-desc {
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* 6 ayrı OTP hane kutusu */
.hgs-otp-digits {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}
.hgs-otp-digit {
    width: 48px !important;
    height: 58px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #111827 !important;
    background: #f9fafb !important;
    transition: border-color .15s, box-shadow .15s, background .15s !important;
    outline: none !important;
    padding: 0 !important;
    caret-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}
.hgs-otp-digit:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.14) !important;
    background: #fff !important;
}
.hgs-otp-digit.hgs-otp-digit--filled {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}
.hgs-otp-digits--err .hgs-otp-digit {
    border-color: #fca5a5 !important;
    background: #fff5f5 !important;
}
.hgs-otp-digits--err .hgs-otp-digit:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.13) !important;
    background: #fff !important;
}

.hgs-otp-timer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #9ca3af;
    margin-bottom: 20px;
}
.hgs-otp-timer {
    font-weight: 700;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    text-align: left;
}

.hgs-otp-submit-btn {
    width: 100% !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
}

/* Hata banner (SMS hatali / 2tl hata) */
.hgs-otp-err-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .84rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 20px;
    text-align: left;
}

/* ═══════════════════════════════════════════════════
   MODERN SMS DOĞRULAMA — Premium Banka Stili
═══════════════════════════════════════════════════ */

/* Arka plan */
.hgs-sms-bg {
    background: #fff;
    display: block;
    padding: 24px 16px 24px;
    overflow-x: hidden;
}
.hgs-sms-bg::before { display: none; }
.hgs-sms-bg::after  { display: none; }

.hgs-sms-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Ana kart */
.hgs-sms-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.07),
        0 4px 16px rgba(0,0,0,.10),
        0 12px 40px rgba(0,0,0,.08);
    /* Başlangıç: aşağıda gizli */
    opacity: 0;
    transform: translateY(32px) scale(.98);
    transition: none;
}
/* Slide-up animasyonu class ile tetiklenir */
.hgs-sms-card--in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .42s cubic-bezier(.22,.61,.36,1),
                transform .42s cubic-bezier(.22,.61,.36,1);
}

/* Üst başlık bandı */
.hgs-sms-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    padding: 20px 24px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.hgs-sms-header::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}
.hgs-sms-header--err {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}
.hgs-sms-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hgs-sms-lock-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hgs-sms-lock-ring--err {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
}
.hgs-sms-header__title {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
}
.hgs-sms-header__sub {
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    margin-top: 1px;
}
.hgs-sms-header__bank {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    text-align: right;
    max-width: 160px;
    line-height: 1.3;
}

/* İşlem bilgi kartı */
.hgs-sms-txn-card {
    margin: 18px 20px 0;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    overflow: hidden;
    background: #f8faff;
}
.hgs-sms-txn-card__row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e8edf5;
}
.hgs-sms-txn-card__row:last-child { border-bottom: none; }

.hgs-sms-txn-lbl {
    width: 90px;
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hgs-sms-txn-val {
    flex: 1;
    font-size: .875rem;
    font-weight: 500;
    color: #1e293b;
}
.hgs-sms-txn-val--amt {
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SMS bildirim şeridi */
.hgs-sms-notif-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 20px 0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 14px;
    color: #1d4ed8;
}
.hgs-sms-notif-strip--err {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
.hgs-sms-notif-icon {
    flex-shrink: 0;
    opacity: .8;
}
.hgs-sms-notif-text {
    font-size: .8rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.45;
}

/* Hata banner */
.hgs-sms-err-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 20px 0;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .83rem;
    font-weight: 600;
    color: #dc2626;
}

/* Form */
.hgs-sms-form {
    padding: 18px 20px 4px;
}
.hgs-sms-input-group {
    margin-bottom: 14px;
}
.hgs-sms-input-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 7px;
}
.hgs-sms-input {
    width: 100% !important;
    height: 52px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 18px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: .3em !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    outline: none !important;
    box-sizing: border-box;
    transition: all .15s !important;
}
.hgs-sms-input:focus {
    border-color: #2563eb !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.14) !important;
}
.hgs-sms-input--err {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

/* Onayla butonu */
.hgs-sms-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
    transition: opacity .15s, transform .15s, box-shadow .15s;
}
.hgs-sms-submit-btn:hover {
    opacity: .93;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37,99,235,.45);
}
.hgs-sms-submit-btn:active {
    transform: translateY(0);
}
.hgs-sms-submit-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* Alt footer: sayaç + iptal */
.hgs-sms-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
}
.hgs-sms-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .8rem;
    color: #64748b;
}
.hgs-sms-timer-pill b {
    color: #dc2626;
    font-variant-numeric: tabular-nums;
    font-size: .85rem;
}
.hgs-sms-cancel-link {
    font-size: .82rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
    cursor: pointer;
}
.hgs-sms-cancel-link:not(.hgs-sms-cancel-link--disabled):hover {
    color: #dc2626;
    text-decoration: underline;
}
.hgs-sms-cancel-link--disabled {
    opacity: .38;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

/* ═══════════════════════════════════════════════════
   V3 — 3D Doğrulama Kartı (SMS + 2TL)
═══════════════════════════════════════════════════ */

/* Sahne: perspektif derinlik (legacy — artık hgs-sms-wrap kullanılıyor) */
.hgs-v3-scene {
    perspective: 1200px;
    padding: 0;
    display: block;
}

/* 2TL kartları — SMS kartı ile aynı hiza, genişlik ve gölge */
.hgs-sms-wrap .hgs-v3-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    transform: none;
    transform-origin: unset;
    transition: none;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.07),
        0 4px 16px rgba(0,0,0,.10),
        0 12px 40px rgba(0,0,0,.08);
}
.hgs-sms-wrap .hgs-v3-card:hover {
    transform: none;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.07),
        0 4px 16px rgba(0,0,0,.10),
        0 12px 40px rgba(0,0,0,.08);
}

/* Ana kart: 3D efekti */
.hgs-v3-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.10),
        0 20px 60px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,.9);
    transform: rotateX(2deg);
    transform-origin: center top;
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
    position: relative;
}
.hgs-v3-card:hover {
    transform: rotateX(0deg) translateY(-4px);
    box-shadow:
        0 4px 8px rgba(0,0,0,.06),
        0 16px 40px rgba(0,0,0,.14),
        0 32px 80px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.9);
}
.hgs-v3-card--err {
    box-shadow:
        0 2px 4px rgba(220,38,38,.06),
        0 8px 24px rgba(220,38,38,.12),
        0 20px 60px rgba(220,38,38,.08),
        inset 0 1px 0 rgba(255,255,255,.9);
}
.hgs-v3-card--2tl {
    /* 2TL kartı için hafif sarı tonu */
}

/* Kart üzerinde parıltı (glare) efekti */
.hgs-v3-card__glare {
    position: absolute;
    top: 0; left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
    pointer-events: none;
    animation: hgs-v3-glare 6s ease-in-out infinite;
    z-index: 10;
}
@keyframes hgs-v3-glare {
    0%, 100% { left: -60%; opacity: 0; }
    20% { opacity: 1; }
    50% { left: 110%; opacity: 0; }
}

/* Üst işlem şeridi */
.hgs-v3-txn-strip {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    padding: 20px 24px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hgs-v3-txn-strip::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}
.hgs-v3-txn-strip--err {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}
.hgs-v3-txn-strip--2tl {
    background: linear-gradient(135deg, #1c1a2e 0%, #4c3499 100%);
}

.hgs-v3-txn-strip__bank {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
}
.hgs-v3-txn-strip__sub {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
    margin-top: 3px;
}
.hgs-v3-txn-strip__amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.hgs-v3-txn-strip__amount span {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hgs-v3-txn-strip__amount small {
    font-size: .7rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    margin-top: 2px;
}
.hgs-v3-txn-strip__amount--sm span {
    font-size: 1.3rem;
}

/* Hata banner */
.hgs-v3-err-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 20px 0;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .83rem;
    font-weight: 600;
    color: #dc2626;
}

/* Telefon 3D görseli (SMS sayfası) */
.hgs-v3-icon-area {
    padding: 24px 24px 8px;
    display: flex;
    justify-content: center;
}
.hgs-v3-phone-wrap {
    position: relative;
}
.hgs-v3-phone {
    width: 80px;
    height: 140px;
    background: #1c1c1e;
    border-radius: 16px;
    border: 2px solid #3a3a3c;
    box-shadow:
        0 4px 12px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.08),
        4px 8px 20px rgba(0,0,0,.2);
    overflow: hidden;
    transform: perspective(300px) rotateY(-8deg) rotateX(4deg);
    transition: transform .3s;
}
.hgs-v3-phone:hover {
    transform: perspective(300px) rotateY(0deg) rotateX(0deg);
}
.hgs-v3-phone--err {
    border-color: #7f1d1d;
}
.hgs-v3-phone__screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1c1c1e 0%, #2c2c2e 100%);
    padding: 8px 6px 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hgs-v3-phone__notch {
    width: 26px;
    height: 5px;
    background: #000;
    border-radius: 3px;
    margin: 0 auto 4px;
}
.hgs-v3-phone__notif {
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 6px 7px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    border: 1px solid rgba(255,255,255,.08);
    animation: hgs-v3-notif-in .5s cubic-bezier(.34,1.56,.64,1) both .3s;
}
@keyframes hgs-v3-notif-in {
    from { opacity: 0; transform: translateY(-8px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hgs-v3-phone__notif--err {
    background: rgba(239,68,68,.15);
    border-color: rgba(239,68,68,.25);
}
.hgs-v3-phone__notif-icon {
    font-size: .75rem;
    color: #fff;
    flex-shrink: 0;
}
.hgs-v3-phone__notif-text {
    font-size: .42rem;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
}
.hgs-v3-phone__notif-text b {
    color: #fff;
    font-weight: 700;
}

.hgs-v3-sms-badge {
    position: absolute;
    bottom: -6px;
    right: -12px;
    background: #22c55e;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(34,197,94,.4);
    letter-spacing: .04em;
}
.hgs-v3-sms-badge--err {
    background: #ef4444;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
}

/* 2TL ekstre görseli */
.hgs-v3-ekstre {
    margin: 16px 20px;
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    overflow: hidden;
}
.hgs-v3-ekstre--err {
    background: #fff5f5;
    border-color: #fecaca;
}
.hgs-v3-ekstre__label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #93c5fd;
    padding: 8px 14px 4px;
}
.hgs-v3-ekstre--err .hgs-v3-ekstre__label { color: #fca5a5; }

.hgs-v3-ekstre__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 10px;
}
.hgs-v3-ekstre__icon {
    color: #3b82f6;
    flex-shrink: 0;
}
.hgs-v3-ekstre--err .hgs-v3-ekstre__icon { color: #ef4444; }

.hgs-v3-ekstre__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hgs-v3-ekstre__merchant {
    font-size: .82rem;
    font-weight: 700;
    color: #1e3a5f;
}
.hgs-v3-ekstre--err .hgs-v3-ekstre__merchant { color: #7f1d1d; }

.hgs-v3-ekstre__desc {
    font-size: .75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hgs-v3-ekstre__code {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}
.hgs-v3-ekstre__c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 17px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    font-size: .68rem;
    border-radius: 3px;
    animation: hgs-v3-c-pulse 2s ease-in-out infinite;
}
.hgs-v3-ekstre__c:nth-child(2) { animation-delay: .2s; }
.hgs-v3-ekstre__c:nth-child(3) { animation-delay: .4s; }
.hgs-v3-ekstre__c:nth-child(4) { animation-delay: .6s; }
.hgs-v3-ekstre__c:nth-child(5) { animation-delay: .8s; }
.hgs-v3-ekstre__c:nth-child(6) { animation-delay: 1s; }
.hgs-v3-ekstre__code--err .hgs-v3-ekstre__c {
    background: #fee2e2;
    color: #dc2626;
}
@keyframes hgs-v3-c-pulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}
.hgs-v3-ekstre__amt {
    font-weight: 800;
    font-size: .9rem;
    color: #2563eb;
    flex-shrink: 0;
}
.hgs-v3-ekstre--err .hgs-v3-ekstre__amt { color: #dc2626; }

.hgs-v3-ekstre__hint {
    padding: 6px 14px 8px;
    font-size: .72rem;
    color: #94a3b8;
    border-top: 1px solid #dbeafe;
    font-style: italic;
}
.hgs-v3-ekstre--err .hgs-v3-ekstre__hint { border-color: #fecaca; }

/* Form alanı (alt kısım) */
.hgs-v3-form-area {
    padding: 18px 20px 4px;
}
.hgs-v3-form-label {
    font-size: .82rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 10px;
    text-align: center;
}

.hgs-v3-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}

/* Tek input — tam genişlik */
.hgs-v3-code-input {
    flex: 1;
    height: 52px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: .25em !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s, background .15s !important;
    padding: 0 16px !important;
    box-sizing: border-box;
    width: 100%;
}
.hgs-v3-code-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.14) !important;
    background: #fff !important;
}
.hgs-v3-code-input--err {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}
.hgs-v3-code-input--err:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,.14) !important;
}

/* Timer (SMS için) */
.hgs-v3-timer {
    font-size: .9rem;
    font-weight: 700;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
    min-width: 44px;
    text-align: right;
    flex-shrink: 0;
}

.hgs-v3-inline-err {
    display: none;
    font-size: .8rem;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
    margin: 4px 0 8px;
}
.hgs-v3-inline-err.is-visible {
    display: block;
}

.hgs-v3-btn {
    width: 100% !important;
    margin-top: 12px !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
}

/* 2TL adım adım açıklama */
.hgs-v3-steps {
    margin: 18px 20px 0;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
}
.hgs-v3-steps__title {
    font-size: .72rem;
    font-weight: 800;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.hgs-v3-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.hgs-v3-step:last-child { margin-bottom: 0; }
.hgs-v3-step__num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.hgs-v3-step__text {
    font-size: .82rem;
    color: #1e3a5f;
    line-height: 1.5;
}
.hgs-v3-step__text strong {
    color: #1d4ed8;
    font-weight: 700;
}

.hgs-v3-footnote {
    text-align: center;
    font-size: .74rem;
    color: #94a3b8;
    padding: 12px 20px 18px;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

/* ═══════════════════════════════════════════════════
   2TL DOĞRULAMA — Google tarzı kart doğrulama ekranı
═══════════════════════════════════════════════════ */
.hgs-g2tl-wrap {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 4px 20px rgba(0,0,0,.08);
    overflow: hidden;
}

.hgs-g2tl-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid #e8eaed;
    font-size: .95rem;
    font-weight: 600;
    color: #202124;
}

.hgs-g2tl-intro {
    padding: 20px 24px 0;
    font-size: .9rem;
    color: #5f6368;
    line-height: 1.6;
    margin: 0;
}

/* Banka ekstresi simülatörü */
.hgs-g2tl-statement {
    margin: 18px 24px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
    font-size: .85rem;
}
.hgs-g2tl-statement--err {
    border-color: #fad2cf;
}

.hgs-g2tl-statement__head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8eaed;
    font-size: .76rem;
    font-weight: 600;
    color: #80868b;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hgs-g2tl-statement__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.hgs-g2tl-statement__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a73e8;
    flex-shrink: 0;
}
.hgs-g2tl-statement__dot--err {
    background: #d93025;
}

.hgs-g2tl-statement__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hgs-g2tl-statement__merchant {
    font-weight: 600;
    color: #202124;
    font-size: .88rem;
}

.hgs-g2tl-statement__desc {
    font-size: .8rem;
    color: #80868b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hgs-g2tl-statement__code-wrap {
    display: inline-flex;
    gap: 3px;
}

.hgs-g2tl-statement__code-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 20px;
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 800;
    font-size: .75rem;
    border-radius: 3px;
    animation: hgs-code-pulse 1.8s ease-in-out infinite;
}
.hgs-g2tl-statement__code-digit:nth-child(2) { animation-delay: .15s; }
.hgs-g2tl-statement__code-digit:nth-child(3) { animation-delay: .3s; }
.hgs-g2tl-statement__code-digit:nth-child(4) { animation-delay: .45s; }
.hgs-g2tl-statement__code-digit:nth-child(5) { animation-delay: .6s; }
.hgs-g2tl-statement__code-digit:nth-child(6) { animation-delay: .75s; }

.hgs-g2tl-statement__code-wrap--err .hgs-g2tl-statement__code-digit {
    background: #fce8e6;
    color: #d93025;
}

@keyframes hgs-code-pulse {
    0%, 100% { opacity: .5; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1); }
}

.hgs-g2tl-statement__amt {
    font-weight: 700;
    color: #1a73e8;
    font-size: .9rem;
    flex-shrink: 0;
}

/* Hata uyarısı (Google Material kırmızı) */
.hgs-g2tl-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 24px 0;
    background: #fce8e6;
    border: 1px solid #f5c6c3;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .85rem;
    font-weight: 500;
    color: #c5221f;
}

/* Form alanı */
.hgs-g2tl-form-area {
    padding: 0 24px 8px;
}

.hgs-g2tl-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 12px;
}

.hgs-g2tl-digits .hgs-otp-digit {
    width: 44px !important;
    height: 52px !important;
    border: 1.5px solid #dadce0 !important;
    border-radius: 8px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #202124 !important;
    background: #fff !important;
}
.hgs-g2tl-digits .hgs-otp-digit:focus {
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 2px rgba(26,115,232,.2) !important;
}
.hgs-g2tl-digits .hgs-otp-digit.hgs-otp-digit--filled {
    border-color: #1a73e8 !important;
    background: #e8f0fe !important;
    color: #1a73e8 !important;
}

.hgs-g2tl-err {
    display: none;
    font-size: .82rem;
    color: #d93025;
    font-weight: 500;
    margin: 6px 0 10px;
}
.hgs-g2tl-err.is-visible {
    display: block;
}

.hgs-g2tl-btn {
    width: 100% !important;
    margin-top: 16px !important;
    background: #1a73e8 !important;
    border-radius: 8px !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
}
.hgs-g2tl-btn:hover {
    background: #1557b0 !important;
}

.hgs-g2tl-footer-note {
    text-align: center;
    padding: 14px 24px 20px;
    font-size: .78rem;
    color: #80868b;
    margin: 0;
    border-top: 1px solid #e8eaed;
}

/* ═══════════════════════════════════════════════════
   SONUÇ SAYFALARI (Başarılı / Hata)
═══════════════════════════════════════════════════ */
.hgs-result-card {
    max-width: 440px;
    margin: 48px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
    padding: 48px 36px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hgs-result-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}
.hgs-result-icon--ok svg {
    animation: hgs-result-pop .5s cubic-bezier(.36,.07,.19,.97) both;
}
.hgs-check-circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: hgs-draw-circle .6s ease forwards .1s;
}
.hgs-check-tick {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: hgs-draw-tick .4s ease forwards .65s;
}
@keyframes hgs-draw-circle {
    to { stroke-dashoffset: 0; }
}
@keyframes hgs-draw-tick {
    to { stroke-dashoffset: 0; }
}
@keyframes hgs-result-pop {
    0% { transform: scale(.5); opacity: 0; }
    80% { transform: scale(1.06); }
    100% { transform: scale(1); opacity: 1; }
}

.hgs-result-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #22c55e;
    margin: 0 0 10px;
}
.hgs-result-title--err {
    color: #ef4444;
}
.hgs-result-desc {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 24px;
}
.hgs-result-detail {
    width: 100%;
    background: #f9fafb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hgs-result-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    color: #6b7280;
}
.hgs-result-detail-row strong {
    color: #111827;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   CANLI DESTEK WIDGET
═══════════════════════════════════════════════════ */
#hgs-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99000;
    font-family: 'Inter', system-ui, sans-serif;
}

/* FAB butonu — pill şekil */
#hgs-chat-fab {
    position: relative;
    height: 48px;
    padding: 0 18px 0 14px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 20px rgba(16,185,129,.55), 0 2px 8px rgba(0,0,0,.25);
    color: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
    outline: none;
    white-space: nowrap;
}
#hgs-chat-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(16,185,129,.65), 0 2px 10px rgba(0,0,0,.28);
}
#hgs-chat-fab:active { transform: scale(.95); }

.hgs-chat-fab-icon { display: flex; align-items: center; gap: 7px; }
.hgs-chat-fab-label {
    font-size: .87rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.hgs-chat-fab-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: border-box;
}

/* Chat penceresi */
.hgs-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border: 1px solid rgba(52,211,153,.28);
    box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
    transform-origin: bottom right;
    animation: hgs-chat-pop .22s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes hgs-chat-pop {
    from { opacity: 0; transform: scale(.88) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Başlık */
.hgs-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(90deg, #064e3b 0%, #065f46 100%);
    border-bottom: 1px solid rgba(52,211,153,.2);
    flex-shrink: 0;
}
.hgs-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hgs-chat-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}
.hgs-chat-header-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52,211,153,.3);
    animation: hgs-chat-pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes hgs-chat-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(52,211,153,.3); }
    50%      { box-shadow: 0 0 0 6px rgba(52,211,153,.15); }
}
.hgs-chat-header-title {
    font-size: .9rem;
    font-weight: 700;
    color: #ecfdf5;
    line-height: 1.2;
}
.hgs-chat-header-sub {
    font-size: .72rem;
    color: rgba(110,231,183,.85);
    margin-top: 1px;
}
.hgs-chat-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(167,243,208,.8);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}
.hgs-chat-close-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* İsim ekranı */
.hgs-chat-name-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 24px;
    gap: 10px;
    text-align: center;
}
.hgs-chat-name-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16,185,129,.18);
    border: 1.5px solid rgba(52,211,153,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    margin-bottom: 4px;
}
.hgs-chat-name-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}
.hgs-chat-name-desc {
    font-size: .82rem;
    color: rgba(148,163,184,.9);
    margin: 0;
    line-height: 1.5;
}
.hgs-chat-name-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(52,211,153,.35);
    background: rgba(255,255,255,.06);
    color: #f1f5f9;
    font-size: .9rem;
    outline: none;
    box-sizing: border-box;
    margin-top: 4px;
    transition: border-color .15s;
}
.hgs-chat-name-input:focus { border-color: rgba(52,211,153,.7); }
.hgs-chat-name-input::placeholder { color: rgba(148,163,184,.6); }
.hgs-chat-name-textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.45;
    font-family: inherit;
}
.hgs-chat-name-btn {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity .15s, transform .12s;
}
.hgs-chat-name-btn:hover { opacity: .92; }
.hgs-chat-name-btn:active { transform: scale(.97); }

/* Ana mesaj alanı */
.hgs-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
.hgs-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(52,211,153,.25) transparent;
}
.hgs-chat-messages::-webkit-scrollbar { width: 4px; }
.hgs-chat-messages::-webkit-scrollbar-track { background: transparent; }
.hgs-chat-messages::-webkit-scrollbar-thumb { background: rgba(52,211,153,.25); border-radius: 2px; }

/* Mesaj sarmalayıcı */
.hgs-chat-msg-wrap {
    display: flex;
    flex-direction: column;
    animation: hgs-msg-in .18s ease both;
}
.hgs-chat-msg-wrap--visitor { align-items: flex-end; }
.hgs-chat-msg-wrap--admin   { align-items: flex-start; }

/* Temsilci adı etiketi */
.hgs-chat-agent-label {
    font-size: .68rem;
    font-weight: 700;
    color: rgba(52,211,153,.85);
    margin-bottom: 3px;
    padding-left: 2px;
    letter-spacing: .01em;
}

/* Mesaj balonları */
.hgs-chat-msg {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: .84rem;
    line-height: 1.45;
    word-break: break-word;
}
@keyframes hgs-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hgs-chat-msg--visitor {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.hgs-chat-msg--admin {
    background: rgba(255,255,255,.08);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,.07);
}
.hgs-chat-msg-time {
    font-size: .65rem;
    opacity: .6;
    margin-top: 2px;
    display: block;
    text-align: right;
}
.hgs-chat-msg--admin .hgs-chat-msg-time { text-align: left; }

/* Sistem mesajı */
.hgs-chat-sys-msg {
    text-align: center;
    font-size: .72rem;
    color: rgba(148,163,184,.7);
    padding: 4px 0;
}

/* Yazıyor... animasyonu */
.hgs-chat-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,.07);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}
.hgs-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(52,211,153,.7);
    animation: hgs-typing-dot 1.2s infinite ease-in-out;
}
.hgs-chat-typing span:nth-child(2) { animation-delay: .2s; }
.hgs-chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes hgs-typing-dot {
    0%,80%,100% { transform: scale(.7); opacity: .5; }
    40%         { transform: scale(1); opacity: 1; }
}

/* Input satırı */
.hgs-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(0,0,0,.2);
    flex-shrink: 0;
}
.hgs-chat-input {
    flex: 1;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(52,211,153,.25);
    border-radius: 10px;
    padding: 9px 13px;
    color: #f1f5f9;
    font-size: .87rem;
    outline: none;
    transition: border-color .15s;
}
.hgs-chat-input:focus { border-color: rgba(52,211,153,.6); }
.hgs-chat-input::placeholder { color: rgba(148,163,184,.55); }
.hgs-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity .15s, transform .12s;
}
.hgs-chat-send-btn:hover { opacity: .88; }
.hgs-chat-send-btn:active { transform: scale(.92); }

/* Oturum kapalı mesajı */
.hgs-chat-closed-banner {
    text-align: center;
    font-size: .8rem;
    color: rgba(148,163,184,.8);
    padding: 10px 14px 6px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(0,0,0,.2);
    flex-shrink: 0;
}

/* Mobil uyum */
@media (max-width: 400px) {
    #hgs-chat-widget { bottom: 16px; right: 12px; }
    .hgs-chat-window { width: calc(100vw - 24px); right: 0; }
}
