:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --accent-dark: #c73650;
    --accent-soft: #fef2f4;
    --surface: #16213e;
    --surface-light: #0f3460;
    --gold: #f5c518;
    --green: #22c55e;
    --blue: #3b82f6;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow-xs: 0 1px 3px rgba(0,0,0,.04);
    --shadow: 0 4px 20px rgba(0,0,0,.05);
    --shadow-md: 0 8px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 16px 50px rgba(0,0,0,.1);
    --transition: .2s cubic-bezier(.4,0,.2,1);
}

* { -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}

/* ============================
   CUSTOM FORM OVERRIDES
   ============================ */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    font-size: .9rem;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,.1);
}
.form-control::placeholder { color: #94a3b8; }
.form-label {
    font-weight: 600;
    font-size: .82rem;
    color: var(--text);
    margin-bottom: 6px;
}
.form-check-input { border-radius: 4px; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* ============================
   CUSTOM BUTTON OVERRIDES
   ============================ */
.btn {
    font-weight: 600;
    border-radius: var(--radius-xs);
    padding: 10px 20px;
    font-size: .88rem;
    transition: all var(--transition);
    letter-spacing: .01em;
}
.btn-primary {
    background: var(--accent);
    border: none;
    color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-danger {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
}
.btn-danger:hover { background: linear-gradient(135deg, var(--accent-dark), #a8233a); }
.btn-outline-secondary {
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}
.btn-outline-secondary:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); }
.btn-outline-light { border-width: 1.5px; }
.btn-light { border: 1.5px solid var(--border); }

/* ============================
   CUSTOM ALERT OVERRIDES
   ============================ */
.alert {
    border: none;
    border-radius: var(--radius-xs);
    font-size: .85rem;
}

/* ============================
   CUSTOM BADGE OVERRIDES
   ============================ */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: .72rem;
    letter-spacing: .02em;
}

/* ============================
   NAVBAR
   ============================ */
.site-navbar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 12px 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-navbar .navbar-brand { font-size: 1.05rem; letter-spacing: -.01em; }
.site-navbar .nav-link {
    color: rgba(255,255,255,.65);
    font-weight: 500;
    font-size: .88rem;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }

/* Offcanvas */
.offcanvas-mobile {
    max-width: 290px;
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    display: flex;              /* ✅ ekle */
    flex-direction: column;     /* ✅ ekle */
}

.offcanvas-mobile .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;             /* ✅ ekle — header küçülmesin */
}

/* ✅ Yeni kural — body flex container olsun ve tüm yüksekliği kaplasın */
.offcanvas-mobile .offcanvas-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

/* ✅ Nav linkleri kapsayan nav elementi büyüsün */
.offcanvas-mobile .offcanvas-body > nav {
    flex: 1 1 auto;
}

.offcanvas-mobile .nav-link {
    color: rgba(255,255,255,.7);
    padding: 13px 16px;
    font-size: .92rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    margin: 1px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition);
}
.offcanvas-mobile .nav-link:hover { background: rgba(233,69,96,.12); color: #fff; }
.offcanvas-mobile .nav-link i { font-size: 1.1rem; width: 20px; text-align: center; opacity: .7; }
/* Bottom bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0,0,0,.05);
}
.mobile-bottom-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: .62rem;
    font-weight: 600;
    padding: 4px 0;
}
.mobile-bottom-bar a i { font-size: 1.2rem; }
.mobile-bottom-bar a.active { color: var(--accent); }

/* ============================
   HERO
   ============================ */
.hero-section {
    background: linear-gradient(160deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233,69,96,.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.price-old { text-decoration: line-through; opacity: .5; font-size: 1.1rem; }
.price-new { font-size: 2.2rem; font-weight: 800; }
.discount-badge {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .78rem;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.35); }
    50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

/* ============================
   CARDS — Custom
   ============================ */
.feature-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    background: var(--card-bg);
}
.feature-card:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition);
}
.order-card:hover { box-shadow: var(--shadow); }

.auth-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
}
.auth-card .card-body { padding: 2rem; }

/* ============================
   CHECKOUT CARDS
   ============================ */
.checkout-section {
    padding: 1rem 0 3rem;
    min-height: 80vh;
    background: var(--bg);
}
.checkout-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
}
.checkout-card-header i { font-size: 1.1rem; color: var(--accent); }
.checkout-card-body { padding: 20px; }
.step-badge {
    margin-left: auto;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Invoice type toggle */
.invoice-type-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    color: var(--text-muted);
    transition: all var(--transition);
    text-align: center;
}
.invoice-type-option input { display: none; }
.invoice-type-option.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.invoice-type-option:hover { border-color: var(--accent); }

/* Payment method */
.payment-method-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--green);
    border-radius: var(--radius-xs);
    background: rgba(34,197,94,.04);
}

/* Savings badge */
.savings-badge {
    background: rgba(34,197,94,.08);
    color: var(--green);
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-xs);
    font-size: .8rem;
    font-weight: 700;
}

/* Payment info box (success) */
.payment-info-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
}

/* Success icon */
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34,197,94,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 2rem;
}

/* ============================
   CHECKOUT STEPPER
   ============================ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: #cbd5e1;
}
.checkout-step.active { color: var(--accent); }
.checkout-step.done { color: var(--green); }
.checkout-step .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .78rem;
    background: #e2e8f0;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all var(--transition);
}
.checkout-step.active .step-num { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(233,69,96,.25); }
.checkout-step.done .step-num { background: var(--green); color: #fff; }
.checkout-step .step-line { width: 36px; height: 2px; background: #e2e8f0; margin: 0 4px; border-radius: 2px; }
.checkout-step.done .step-line { background: var(--green); }

/* ============================
   ORDER SUMMARY TOGGLE (mobile)
   ============================ */
.order-summary-toggle {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: .88rem;
}
.order-summary-toggle i.bi-chevron-down { transition: transform var(--transition); }
.order-summary-toggle.open i.bi-chevron-down { transform: rotate(180deg); }

/* ============================
   TABLES
   ============================ */
.spec-table { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.spec-table thead th {
    background: var(--surface);
    color: var(--gold);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: none;
    white-space: nowrap;
}
.spec-table tbody td { font-size: .85rem; vertical-align: middle; border-color: var(--border); }
.spec-table tbody tr:hover { background: var(--accent-soft); }

/* ============================
   MODE BADGES
   ============================ */
.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 11px;
    font-size: .75rem;
    font-weight: 500;
    transition: all var(--transition);
}
.mode-badge:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ============================
   SECTION TITLE
   ============================ */
.section-title { position: relative; display: inline-block; padding-bottom: 10px; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

/* ============================
   TRUST ITEMS
   ============================ */
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.trust-item i { font-size: 1.5rem; }
.trust-item .trust-title { font-size: .78rem; font-weight: 600; margin: 0; color: var(--text); }
.trust-item .trust-sub { font-size: .68rem; color: var(--text-muted); margin: 0; }

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}
.footer-brand { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.footer-desc { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.6; }
.footer-social {
    color: rgba(255,255,255,.35);
    font-size: 1.15rem;
    transition: color var(--transition);
}
.footer-social:hover { color: var(--accent); }
.footer-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.5);
    margin-bottom: .75rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .82rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-links.contact li {
    color: rgba(255,255,255,.45);
    font-size: .82rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
}
.footer-bottom p { font-size: .7rem; color: rgba(255,255,255,.3); margin: 0; }

/* ============================
   SCROLL TOP
   ============================ */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 99;
    box-shadow: 0 4px 14px rgba(233,69,96,.3);
    cursor: pointer;
    transition: transform var(--transition);
}
.scroll-top:hover { transform: translateY(-2px); }
.scroll-top.show { display: flex; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991px) {
    body { padding-bottom: 60px; }
    .mobile-bottom-bar { display: flex; }
    .hero-section { padding: 1.5rem 0 !important; }
    .hero-section h1 { font-size: 1.5rem !important; }
    .hero-section .lead { font-size: .88rem; }
    .hero-section img { max-height: 260px; margin-top: 1rem; }
    .price-new { font-size: 1.7rem; }
    .section-title { font-size: 1.2rem; }
    .feature-card { padding: 1rem !important; }
    .feature-card .icon-box { width: 40px; height: 40px; font-size: 1.05rem; }
    .feature-card h5 { font-size: .92rem; }
    .feature-card p { font-size: .78rem !important; }
    .scroll-top { bottom: 76px; right: 12px; }
    .checkout-card-body { padding: 16px; }
}

@media (max-width: 767px) {
    .hero-section .btn-lg { font-size: .82rem; padding: 10px 18px; }
    .spec-table { font-size: .78rem; }
    .spec-table thead th { padding: 8px 10px; font-size: .68rem; }
    .spec-table tbody td { padding: 7px 10px; }
    .checkout-step .step-text { display: none; }
    .checkout-step .step-num { width: 28px; height: 28px; font-size: .72rem; }
    .checkout-step .step-line { width: 24px; }
    .order-summary-toggle { display: flex; align-items: center; justify-content: space-between; }
    .auth-card .card-body { padding: 1.5rem; }
    .site-footer { text-align: center; }
    .site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
    .site-footer .footer-links li { margin: 0 !important; }
    .site-footer .d-flex.gap-3 { justify-content: center; }
}

/* ============================
   VIDEO WRAPPER
   ============================ */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================
   GALLERY
   ============================ */
.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #fff;
    transition: all var(--transition);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 12px;
    transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    color: #fff;
    font-size: 1.4rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

#galleryModal .modal-content { background: rgba(0,0,0,.9); }
#galleryModal .modal-body img { max-height: 80vh; }

@media (max-width: 400px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .hero-section h1 { font-size: 1.3rem !important; }
    .price-new { font-size: 1.5rem; }
}
