/* 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;
}

.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);
}
