.odeme-page {
    background: linear-gradient(180deg, #f3f7fb 0%, #eef4f9 100%);
    padding: 24px 0 36px;
}

.odeme-shell {
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(15, 45, 65, 0.08);
    padding: 20px;
}

.odeme-topbar {
    margin-bottom: 16px;
}

.odeme-topbar__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f2d50;
}

.odeme-topbar__subtitle {
    margin: 4px 0 0;
    color: #64748b;
}

.odeme-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 14px;
}

.odeme-alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.odeme-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.odeme-empty {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    padding: 28px 16px;
}

.odeme-empty__title {
    font-weight: 800;
    color: #0f2d50;
}

.odeme-empty__text {
    color: #64748b;
}

.odeme-note {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef6ff;
    color: #1e3a5f;
    border: 1px solid #c8def7;
    font-size: 14px;
}

.odeme-card {
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.odeme-card__header {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1) 0%, rgba(54, 141, 175, 0.06) 100%);
    border-bottom: 1px solid #e2e8f0;
}

.odeme-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2d50;
}

.odeme-card__body {
    padding: 16px;
}

.odeme-order-list {
    padding: 12px;
}

.odeme-order-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
}

.odeme-order-item + .odeme-order-item {
    margin-top: 10px;
}

.odeme-order-item__media {
    width: 88px;
    flex-shrink: 0;
}

.odeme-order-item__img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.odeme-order-item__main {
    flex: 1;
    min-width: 0;
}

.odeme-order-item__name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f2d50;
    text-decoration: none;
}

.odeme-order-item__name:hover {
    text-decoration: underline;
}

.odeme-order-item__footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.odeme-order-item__qty-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odeme-order-item__label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.odeme-select-sm {
    min-width: 78px;
    height: 34px;
    padding: 4px 10px;
}

.odeme-order-item__price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.odeme-order-item__price {
    font-size: 14px;
    font-weight: 800;
    color: #e30613;
}

.odeme-remove-btn {
    border: 0;
    background: transparent;
    color: #ef4444;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
}

.odeme-input {
    border: 1.5px solid #dbe6ef;
    border-radius: 10px;
    background: #f8fafc;
    min-height: 44px;
}

.odeme-input:focus {
    border-color: #368daf;
    box-shadow: 0 0 0 3px rgba(54, 141, 175, 0.13);
    background: #fff;
}

.odeme-input.odeme-input--error {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

.odeme-checkbox.odeme-input--error {
    color: #dc2626;
}

.odeme-validation-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.odeme-validation-popup[hidden] {
    display: none !important;
}

.odeme-validation-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.odeme-validation-popup__box {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    padding: 22px 20px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #fecaca;
    box-shadow: 0 18px 40px rgba(15, 45, 65, 0.22);
    text-align: center;
}

.odeme-validation-popup__message {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #991b1b;
}

.odeme-validation-popup__btn {
    min-width: 120px;
}

.odeme-payment-layout {
    display: flex;
    align-items: center;
    gap: 28px;
}

.odeme-payment-form {
    flex: 1 1 58%;
    min-width: 0;
}

.odeme-payment-preview {
    flex: 0 0 42%;
    max-width: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.odeme-card-scene {
    width: 100%;
    max-width: 360px;
    perspective: 1200px;
    container-type: inline-size;
}

.odeme-card-flip {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    min-height: 190px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.odeme-card-flip.is-flipped {
    transform: rotateY(180deg);
}

.odeme-card-face {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 16px 18px 14px;
    color: #fff;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 45, 65, 0.28);
}

.odeme-card-face--front {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 42%),
        linear-gradient(135deg, #0b3d4a 0%, #145a6e 42%, #1f7a94 100%);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 6px;
}

.odeme-card-face--front::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 2px,
            transparent 2px,
            transparent 8px
        );
    pointer-events: none;
}

.odeme-card-face--back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #0a3540 0%, #124f61 55%, #1a6b82 100%);
    display: flex;
    flex-direction: column;
}

.odeme-card-face__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
}

.odeme-card-face__top-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
}

.odeme-card-face__chip {
    width: 40px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #f5d76e 0%, #d4a72c 48%, #f0e6a8 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.odeme-card-face__contactless {
    display: none;
}

.odeme-card-face__number-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.odeme-card-face__number {
    width: 100%;
    font-size: clamp(0.68rem, 5.2cqi, 1.02rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    font-family: "Courier New", Courier, monospace;
    white-space: nowrap;
    overflow: hidden;
    transform-origin: left center;
}

.odeme-card-face__number.is-long {
    font-size: clamp(0.62rem, 4.6cqi, 0.88rem);
    letter-spacing: 0.02em;
}

.odeme-card-face__meta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
}

.odeme-card-face__holder,
.odeme-card-face__expiry {
    min-width: 0;
}

.odeme-card-face__meta small {
    display: block;
    margin-bottom: 2px;
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.78;
}

.odeme-card-face__meta strong {
    display: block;
    font-size: clamp(0.62rem, 3.2cqi, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.odeme-card-face__holder strong {
    max-width: 100%;
}

.odeme-card-face__expiry {
    flex-shrink: 0;
    text-align: right;
}

.odeme-card-face__brand {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.95;
    line-height: 1.1;
    white-space: nowrap;
    text-align: right;
}

.odeme-card-face__brand.is-visa::before {
    content: "VISA";
    font-size: 13px;
    letter-spacing: 0.12em;
}

.odeme-card-face__brand.is-mastercard::before {
    content: "MASTERCARD";
    font-size: 9px;
    letter-spacing: 0.04em;
}

.odeme-card-face__stripe {
    margin: 18px -18px 0;
    height: 44px;
    background: #1a1a1a;
}

.odeme-card-face__cvv-panel {
    margin-top: auto;
    margin-bottom: 8px;
    padding: 0 8px;
    text-align: right;
}

.odeme-card-face__cvv-panel small {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.odeme-card-face__cvv-box {
    display: inline-block;
    min-width: 72px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
}

.odeme-taksit-card[hidden] {
    display: none !important;
}

.odeme-taksit-panel {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.odeme-taksit-panel__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 8px;
    color: #64748b;
    font-size: 14px;
}

.odeme-taksit-panel__spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-top-color: #368daf;
    border-radius: 50%;
    animation: odeme-taksit-spin 0.7s linear infinite;
}

@keyframes odeme-taksit-spin {
    to {
        transform: rotate(360deg);
    }
}

.odeme-taksit-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.odeme-taksit-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1.5px solid #dbe6ef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.odeme-taksit-option:hover {
    border-color: #94c4d8;
    background: #f8fcff;
}

.odeme-taksit-option input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #368daf;
}

.odeme-taksit-option.is-selected {
    border-color: #368daf;
    box-shadow: 0 0 0 3px rgba(54, 141, 175, 0.12);
    background: #f0f9ff;
}

.odeme-taksit-option__main {
    flex: 1;
    min-width: 0;
}

.odeme-taksit-option__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f2d50;
}

.odeme-taksit-option__detail {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.odeme-taksit-option__total {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: #e30613;
    white-space: nowrap;
}

.odeme-credit-preview {
    display: none;
}

.odeme-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 10px;
    color: #334155;
    font-size: 14px;
}

.odeme-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.odeme-checkbox a {
    color: #2563eb;
}

.odeme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 10px;
    border: 0;
    font-weight: 800;
    text-decoration: none;
}

.odeme-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #2d8f4a 0%, #22703a 100%);
    box-shadow: 0 8px 18px rgba(45, 143, 74, 0.32);
}

.odeme-btn--primary:hover {
    color: #fff;
    text-decoration: none;
}

.odeme-sidebar {
    position: sticky;
    top: 16px;
}

.odeme-summary-card {
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}

.odeme-trust-badges {
    margin-top: 14px;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    text-align: center;
}

.odeme-trust-badges img {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    height: auto;
}

.odeme-summary-card__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f2d50;
}

.odeme-summary-card__line,
.odeme-summary-card__total {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    color: #334155;
}

.odeme-summary-card__total {
    margin-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-size: 1.03rem;
    font-weight: 800;
    color: #0f172a;
}

.odeme-bonus-card {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.odeme-bonus-card__text {
    margin-bottom: 8px;
    color: #475569;
}

.odeme-bonus-card__balance {
    margin-bottom: 16px;
    color: #0f172a;
}

.odeme-btn--bonus {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.odeme-btn--bonus:hover,
.odeme-btn--bonus:focus {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
}

@media (max-width: 991.98px) {
    .odeme-shell {
        padding: 14px;
    }

    .odeme-payment-layout {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 20px;
    }

    .odeme-payment-form {
        flex: 1 1 auto;
    }

    .odeme-payment-preview {
        flex: 0 0 auto;
        max-width: none;
        padding: 4px 0 8px;
    }

    .odeme-card-scene {
        max-width: 340px;
        margin: 0 auto;
    }

    .odeme-sidebar {
        position: static;
        margin-top: 14px;
    }

    .odeme-summary-card {
        position: static;
    }
}

/* 3D Secure tam ekran modal */
body.odeme-3d-open {
    overflow: hidden;
}

.odeme-3d-modal .modal-dialog.odeme-3d-modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.odeme-3d-modal .modal-content.odeme-3d-modal__content {
    height: 100vh;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.odeme-3d-modal .modal-header.odeme-3d-modal__header {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dbe6ef;
}

.odeme-3d-modal .modal-body.odeme-3d-modal__body {
    flex: 1 1 auto;
    padding: 0;
    overflow: hidden;
    min-height: 0;
}

.odeme-3d-modal__iframe {
    display: block;
    width: 100%;
    height: calc(100vh - 56px);
    min-height: 480px;
    border: 0;
    background: #fff;
}

@media (max-width: 767px) {
    .odeme-3d-modal__iframe {
        height: calc(100vh - 52px);
        min-height: 360px;
    }
}
