/* =============================================
   ÖDEME SONUCU / BAKİYE SORGULAMA
   ============================================= */

.page-odeme-sonuc .hero,
.page-bakiye-sorgu .hero {
    min-height: clamp(300px, 20vw + 120px, 380px);
}

.page-odeme-sonuc .hero__bg img,
.page-bakiye-sorgu .hero__bg img {
    object-position: center top;
}

.order-result-page {
    width: 100%;
}

.order-result-page__shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    box-shadow:
        0 22px 56px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.order-result-page__body {
    padding: clamp(1.25rem, 2vw, 2rem);
}

/* ---- Durum kartı ---- */

.order-result-card {
    --result-accent: #22c55e;
    --result-accent-soft: #dcfce7;
    --result-accent-ring: rgba(34, 197, 94, 0.22);
    --result-hero-bg: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);

    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e8edf5;
    background: #ffffff;
}

.order-result-card--completed {
    --result-accent: #16a34a;
    --result-accent-soft: #dcfce7;
    --result-accent-ring: rgba(22, 163, 74, 0.24);
    --result-hero-bg: linear-gradient(180deg, #ecfdf3 0%, #ffffff 72%);
}

.order-result-card--processing {
    --result-accent: #2563eb;
    --result-accent-soft: #dbeafe;
    --result-accent-ring: rgba(37, 99, 235, 0.24);
    --result-hero-bg: linear-gradient(180deg, #eff6ff 0%, #ffffff 72%);
}

.order-result-card--waiting {
    --result-accent: #ea580c;
    --result-accent-soft: #ffedd5;
    --result-accent-ring: rgba(234, 88, 12, 0.24);
    --result-hero-bg: linear-gradient(180deg, #fff7ed 0%, #ffffff 72%);
}

.order-result-card--canceled {
    --result-accent: #dc2626;
    --result-accent-soft: #fee2e2;
    --result-accent-ring: rgba(220, 38, 38, 0.24);
    --result-hero-bg: linear-gradient(180deg, #fef2f2 0%, #ffffff 72%);
}

.order-result-card--refund {
    --result-accent: #9333ea;
    --result-accent-soft: #f3e8ff;
    --result-accent-ring: rgba(147, 51, 234, 0.24);
    --result-hero-bg: linear-gradient(180deg, #faf5ff 0%, #ffffff 72%);
}

.order-result-card--await {
    --result-accent: #64748b;
    --result-accent-soft: #f1f5f9;
    --result-accent-ring: rgba(100, 116, 139, 0.22);
    --result-hero-bg: linear-gradient(180deg, #f8fafc 0%, #ffffff 72%);
}

.order-result-card__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem 1.75rem;
    background: var(--result-hero-bg);
    border-bottom: 1px solid #eef2f7;
}

.order-result-card__glow {
    position: absolute;
    top: -3rem;
    left: 50%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--result-accent-ring) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.order-result-card__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--result-accent-soft);
    color: var(--result-accent);
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.85),
        0 16px 36px var(--result-accent-ring);
    font-size: 2rem;
}

.order-result-card__icon.is-spinning i {
    animation: order-result-spin 0.9s linear infinite;
}

.order-result-card__icon.is-pulsing {
    animation: order-result-pulse 2s ease-in-out infinite;
}

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

@keyframes order-result-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 10px rgba(255, 255, 255, 0.85),
            0 16px 36px var(--result-accent-ring);
    }

    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 0 12px rgba(255, 255, 255, 0.9),
            0 20px 42px var(--result-accent-ring);
    }
}

@media (prefers-reduced-motion: reduce) {
    .order-result-card__icon.is-spinning i,
    .order-result-card__icon.is-pulsing {
        animation: none;
    }
}

.order-result-card__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.5rem;
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.order-result-card__subtitle {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #64748b;
}

.order-result-card__content {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* ---- Özet ---- */

.order-result-summary__head {
    margin-bottom: 1rem;
}

.order-result-summary__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.order-result-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.order-result-summary__item {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.order-result-summary__item dt {
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #94a3b8;
}

.order-result-summary__item dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.order-result-summary__code {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.order-result-summary__item--amount {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border-color: #dbeafe;
}

.order-result-summary__item--amount dd {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1d4ed8;
}

/* ---- Ürünler ---- */

.order-result-items {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f7;
}

.order-result-items__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.order-result-items__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.order-result-items__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    background: #ffffff;
}

.order-result-items__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
}

.order-result-items__price {
    flex-shrink: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

/* ---- Aksiyonlar ---- */

.order-result-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f7;
}

.order-result-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.order-result-card__btn--primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.order-result-card__btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.order-result-card__btn--ghost {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.order-result-card__btn--ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.order-result-card__btn--support {
    margin-left: auto;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.order-result-card__btn--support:hover {
    border-color: #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
}

/* ---- Demo durum seçici ---- */

.order-result-demo {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #dbe4f0;
}

.order-result-demo__label {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.order-result-demo__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-result-demo__pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.order-result-demo__pill:hover {
    border-color: #cbd5e1;
}

.order-result-demo__pill.is-active {
    color: #ffffff;
    border-color: transparent;
}

.order-result-demo__pill--completed.is-active { background: #16a34a; }
.order-result-demo__pill--processing.is-active { background: #2563eb; }
.order-result-demo__pill--waiting.is-active { background: #ea580c; }
.order-result-demo__pill--canceled.is-active { background: #dc2626; }
.order-result-demo__pill--refund.is-active { background: #9333ea; }
.order-result-demo__pill--await.is-active { background: #64748b; }

/* ---- Bakiye sorgulama formu ---- */

.balance-inquiry__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.balance-inquiry__head {
    margin-bottom: 1.5rem;
}

.balance-inquiry__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.balance-inquiry__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.balance-inquiry__subtitle {
    margin: 0;
    max-width: 34rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #64748b;
}

.balance-inquiry__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 32rem;
}

.balance-inquiry__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.balance-inquiry__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.balance-inquiry__input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.balance-inquiry__input-wrap:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.balance-inquiry__input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.balance-inquiry__input {
    width: 100%;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.9375rem;
    outline: none;
}

.balance-inquiry__input::placeholder {
    color: #a8b3c7;
}

.balance-inquiry__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 3rem;
    padding: 0 1.35rem;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.balance-inquiry__submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.balance-inquiry__visual {
    display: none;
}

.balance-inquiry__visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 100%;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    text-align: center;
}

.balance-inquiry__visual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: #ffffff;
    color: #64748b;
    font-size: 1.75rem;
    box-shadow: 0 12px 28px rgba(100, 116, 139, 0.14);
}

.balance-inquiry__visual-text {
    margin: 0;
    max-width: 16rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    color: #475569;
}

@media (min-width: 768px) {
    .balance-inquiry__layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: stretch;
    }

    .balance-inquiry__visual {
        display: block;
    }
}

@media (max-width: 639px) {
    .order-result-summary__grid {
        grid-template-columns: 1fr;
    }

    .order-result-card__actions {
        flex-direction: column;
    }

    .order-result-card__btn--support {
        margin-left: 0;
    }

    .balance-inquiry__submit {
        width: 100%;
    }
}
