@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary: #283778;
    --primary-hover: #1e2a5c;
    --primary-glow: rgba(40, 55, 120, 0.28);
    --primary-subtle: #eef1fa;
    --accent: #3cc0f0;
    --accent-hover: #20aee2;
    --accent-glow: rgba(60, 192, 240, 0.25);
    --dark-bg: #0c1222;
    --dark-surface: #151e36;
    --page-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 8px 25px -4px rgba(40, 55, 120, 0.35);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--page-bg);
    background-image: radial-gradient(at 100% 0%, rgba(40, 55, 120, 0.05) 0px, transparent 50%),
                      radial-gradient(at 0% 100%, rgba(60, 192, 240, 0.04) 0px, transparent 50%);
    color: var(--text-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ── Üst Duyuru Barı ── */
.frontend-announcement-bar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 8px 16px;
    font-size: 12.5px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Header ── */
.app-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    transition: var(--transition);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.brand-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.brand-logo img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}
.brand-text {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-nav a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 8px;
}
.header-nav a:hover, .header-nav a.active {
    color: var(--primary);
    background: var(--primary-subtle);
}
.header-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}
.security-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Hero Banner ── */
.frontend-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%);
    color: #ffffff;
    padding: 36px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.frontend-hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.frontend-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ── Main Layout ── */
.main-wrapper {
    max-width: 1200px;
    margin: 10px auto 60px;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 991px) {
    .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
    .main-wrapper { margin: 15px auto 40px; padding: 0 16px; }
    .header-nav { display: none; }
}

/* ── Section Cards ── */
.step-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 26px 28px;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}
.step-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.1);
}
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.step-number {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.step-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

/* ── Floating Modern Form Controls ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.col-full { grid-column: span 2; }
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .col-full { grid-column: span 1; }
}

.input-wrap {
    position: relative;
    margin-bottom: 4px;
}
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: var(--transition);
}
.form-input {
    width: 100%;
    height: 50px;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-heading);
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}
.form-input.no-icon { padding-left: 16px; }
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: #fff;
}
.form-input:focus + .input-icon, .form-input:focus ~ .input-icon {
    color: var(--primary);
}
textarea.form-input {
    height: auto;
    min-height: 84px;
    resize: vertical;
    padding-top: 12px;
}
.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.field-label span.req { color: #ef4444; }

/* ── 3D Ultra-Realistic Credit Card ── */
.card-scene {
    perspective: 1100px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 28px;
}
.card-object {
    width: 100%;
    height: 235px;
    border-radius: 18px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.35);
}
.card-object.is-flipped {
    transform: rotateY(180deg);
}
.card-face {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 18px;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
    transition: background 0.5s ease;
}
/* Dinamik Kart Ailesi Temaları */
.card-face.theme-bonus   { background: linear-gradient(135deg, #064e3b 0%, #059669 60%, #34d399 100%); }
.card-face.theme-world   { background: linear-gradient(135deg, #311042 0%, #6b21a8 60%, #a855f7 100%); }
.card-face.theme-maximum { background: linear-gradient(135deg, #1e1b4b 0%, #1d4ed8 60%, #38bdf8 100%); }
.card-face.theme-axess   { background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 60%, #f87171 100%); }
.card-face.theme-troy    { background: linear-gradient(135deg, #082f49 0%, #0284c7 60%, #38bdf8 100%); }
.card-face.theme-paraf   { background: linear-gradient(135deg, #172554 0%, #2563eb 60%, #60a5fa 100%); }

.card-face::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.card-back-face {
    transform: rotateY(180deg);
    padding: 0;
}
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
.card-chip-gold {
    width: 48px;
    height: 36px;
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    border-radius: 7px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.4);
}
.card-chip-gold::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: rgba(0,0,0,0.25);
}
.card-nfc-icon {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-left: 12px;
}
.card-brand-tag {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.card-number-box {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}
@media (max-width: 420px) { .card-number-box { font-size: 17px; letter-spacing: 2px; } }
.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}
.card-meta-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2px;
}
.card-meta-val {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-black-stripe {
    width: 100%;
    height: 46px;
    background: #020617;
    margin-top: 26px;
}
.card-cvv-strip {
    background: #ffffff;
    color: #0f172a;
    height: 36px;
    margin: 18px 24px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 3px;
}

/* ── Taksit Seçim Kartları ── */
.taksit-box {
    margin-top: 18px;
}
.taksit-pill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}
.taksit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.taksit-item:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}
.taksit-item.is-selected {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.taksit-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.taksit-radio {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.taksit-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading);
}
.taksit-badge {
    font-size: 10.5px;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
}
.taksit-monthly {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-body);
}
.taksit-total {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
}

/* ── Sipariş & Ödeme Özeti Sidebar ── */
.summary-sticky {
    position: sticky;
    top: 90px;
}
.summary-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 28px;
}
.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
}
.summary-heading {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.s-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--text-muted);
}
.s-row strong {
    color: var(--text-heading);
    font-weight: 600;
}
.s-total-box {
    background: #f8fafc;
    border: 1.5px dashed var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.s-total-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.s-total-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* ── Sözleşme Onay Kutusu ── */
.terms-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.terms-checkbox-wrap input {
    margin-top: 2px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.terms-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* ── Ödeme Yap Butonu ── */
.btn-checkout {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}
.btn-checkout:active { transform: translateY(0); }
.btn-checkout:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Güven Rozetleri ── */
.trust-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.trust-item i {
    font-size: 14px;
    color: var(--accent);
}

/* ── Footer ── */
.app-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 28px 0;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}
.footer-card-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.card-logo-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Modal (Sözleşme vb.) ── */
.custom-modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.custom-modal-content {
    background: #fff;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.custom-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-body);
}

/* ── Fatura Türü (Bireysel / Kurumsal) & E-Fatura Mükellefi ── */
.fatura-turu-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.fatura-turu-btn {
    flex: 1;
    cursor: pointer;
    margin: 0;
}
.fatura-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading);
    background: #fff;
    transition: var(--transition);
    text-align: center;
}
.fatura-pill:hover {
    border-color: var(--border-hover);
    background: #f8fafc;
}
.fatura-turu-btn.is-active .fatura-pill {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.efatura-badge-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.efatura-badge-box input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #0284c7;
}
.efatura-badge-box label {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #0369a1;
    cursor: pointer;
    line-height: 1.4;
}
