/* ============================================================
   iyzico Ödeme Sistemi — Global Stylesheet
   Font: Inter (Google Fonts)
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0b0f;
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgPulse {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -20px);
    }
}

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 26px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #c7d2fe, #e9d5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.08);
    border: 1px solid rgba(110, 231, 183, 0.2);
    border-radius: 100px;
    padding: 6px 14px;
}

.lock-icon {
    width: 14px;
    height: 14px;
    stroke: #6ee7b7;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    padding: 48px 0 80px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.4);
    font-weight: 500;
    min-width: 64px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.step.active .step-circle {
    border-color: #6366f1;
    color: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    animation: pulseBorder 2s ease-in-out infinite;
}

.step.active {
    color: #a5b4fc;
}

.step.completed {
    color: rgba(226, 232, 240, 0.7);
}

@keyframes pulseBorder {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.08);
    }
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    max-width: 80px;
    margin-bottom: 28px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-line.completed,
.step-line.active {
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-col {
        order: -1;
    }
}

/* ============================================================
   CARD
   ============================================================ */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

/* Form Card */
.form-card {
    padding: 36px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.iyzico-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
}

.powered-by {
    color: rgba(226, 232, 240, 0.5);
}

/* iyzico iframe wrapper */
.iyzico-form-wrapper {
    min-height: 400px;
    width: 100%;
}

.iyzico-form-wrapper iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
    min-height: 400px;
}

/* ============================================================
   ORDER SUMMARY
   ============================================================ */
.summary-card {
    position: sticky;
    top: 90px;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 20px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.item-category {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.45);
    margin-top: 2px;
}

.item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a5b4fc;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 16px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.65);
    margin-bottom: 10px;
}

.free-shipping {
    color: #6ee7b7;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
}

.summary-total span:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a5b4fc, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Security info */
.security-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 14px;
    background: rgba(110, 231, 183, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.1);
    border-radius: 12px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.6);
}

.security-icon {
    font-size: 0.9rem;
}

/* Card logos */
.accepted-cards {
    margin-top: 20px;
}

.cards-label {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.4);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-logo {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-logo.visa {
    color: #1a1f71;
    background: #e8f0fe;
    border-color: #c7d2fe;
}

.card-logo.mastercard {
    color: #fff;
    background: linear-gradient(135deg, #eb001b, #f79e1b);
    border-color: transparent;
}

.card-logo.troy {
    color: #fff;
    background: linear-gradient(135deg, #c0392b, #2c3e50);
    border-color: transparent;
}

.card-logo.amex {
    color: #fff;
    background: #007bc1;
    border-color: transparent;
}

/* Buyer card */
.buyer-card {
    margin-top: 16px;
}

.buyer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.buyer-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(226, 232, 240, 0.75);
}

.buyer-row:last-child {
    border-bottom: none;
}

.buyer-label {
    color: rgba(226, 232, 240, 0.4);
    font-weight: 500;
}

/* ============================================================
   ALERT
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.alert svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.alert p {
    font-size: 0.83rem;
    opacity: 0.85;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-error svg {
    stroke: #f87171;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.35);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(226, 232, 240, 0.7);
}

/* ============================================================
   RESULT PAGE (callback.php)
   ============================================================ */
.result-main {
    display: flex;
    align-items: center;
}

.result-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.result-icon svg {
    width: 40px;
    height: 40px;
}

.success-icon {
    background: rgba(110, 231, 183, 0.12);
    border: 2px solid rgba(110, 231, 183, 0.3);
    animation: successPop 0.6s ease;
}

.success-icon svg {
    stroke: #6ee7b7;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.25);
}

.error-icon svg {
    stroke: #f87171;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 12px;
}

.result-message {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.65);
    margin-bottom: 32px;
}

/* Payment detail table */
.payment-detail-table {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(226, 232, 240, 0.5);
}

.detail-value {
    font-weight: 600;
    color: #e2e8f0;
}

.detail-value.highlight {
    background: linear-gradient(135deg, #a5b4fc, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 800;
}

/* Error tips */
.error-tips {
    text-align: left;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.error-tips h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fca5a5;
    margin-bottom: 12px;
}

.error-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-tips li {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.65);
    padding-left: 18px;
    position: relative;
}

.error-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f87171;
}

/* Actions */
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

.btn-outline {
    background: transparent;
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.6);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    body {
        background: white;
        color: black;
    }

    .site-header,
    .site-footer,
    .result-actions {
        display: none;
    }

    .result-card {
        border: 1px solid #ccc;
    }
}