/* ─── KVKK / Çerez (CookieYes tarzı) ───────────────────────── */

.trak3d-cookie-root {
    position: relative;
    z-index: 2147483000;
}

body.trak3d-cookie-modal-open {
    overflow: hidden;
}

/* Yüzen banner — viewport'a sabit, footer'dan bağımsız */
.trak3d-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483001;
    pointer-events: none;
    animation: trak3dCookieIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes trak3dCookieIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.trak3d-cookie-card {
    pointer-events: auto;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    color: #1f2937;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    padding: 20px 20px 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 14px;
    align-items: start;
}

.trak3d-cookie-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6463cb 0%, #4e4db3 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    grid-row: 1 / span 2;
}

.trak3d-cookie-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.trak3d-cookie-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
    grid-column: 2;
}

.trak3d-cookie-link {
    color: #6463cb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trak3d-cookie-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.trak3d-cookie-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.trak3d-cookie-btn-primary {
    background: #6463cb;
    color: #fff;
}

.trak3d-cookie-btn-primary:hover {
    background: #4e4db3;
}

.trak3d-cookie-btn-outline {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.trak3d-cookie-btn-outline:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.trak3d-cookie-btn-ghost {
    background: transparent;
    color: #6b7280;
    margin-right: auto;
}

.trak3d-cookie-btn-ghost:hover {
    color: #111827;
    background: #f3f4f6;
}

/* Tercihleri yeniden aç — sol alt köşe (CookieYes FAB) */
.trak3d-cookie-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147482999;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #6463cb;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trak3d-cookie-fab.is-visible {
    display: flex;
}

.trak3d-cookie-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

/* Tercih merkezi modal */
.trak3d-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.trak3d-cookie-modal[hidden] {
    display: none !important;
}

.trak3d-cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.trak3d-cookie-modal-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    animation: trak3dCookieModalIn 0.3s ease;
}

@keyframes trak3dCookieModalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: none; }
}

.trak3d-cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.trak3d-cookie-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.trak3d-cookie-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.trak3d-cookie-modal-content {
    padding: 16px 20px;
}

.trak3d-cookie-modal-intro {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
}

.trak3d-cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.trak3d-cookie-pref:last-child {
    border-bottom: none;
}

.trak3d-cookie-pref-info strong {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.trak3d-cookie-pref-info span {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

.trak3d-cookie-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.trak3d-cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.trak3d-cookie-switch-ui {
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
}

.trak3d-cookie-switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.trak3d-cookie-switch input:checked + .trak3d-cookie-switch-ui {
    background: #6463cb;
}

.trak3d-cookie-switch input:checked + .trak3d-cookie-switch-ui::after {
    transform: translateX(20px);
}

.trak3d-cookie-switch.is-locked {
    opacity: 0.65;
    cursor: not-allowed;
}

.trak3d-cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px 20px 18px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

/* Mobil: bottom nav üstünde kalsın */
@media (max-width: 768px) {
    .trak3d-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav .trak3d-cookie-banner {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav .trak3d-cookie-fab {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .trak3d-cookie-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .trak3d-cookie-card-icon {
        grid-row: auto;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .trak3d-cookie-text {
        grid-column: 1;
    }

    .trak3d-cookie-actions {
        flex-direction: column;
    }

    .trak3d-cookie-actions .trak3d-cookie-btn {
        width: 100%;
        text-align: center;
    }

    .trak3d-cookie-actions .trak3d-cookie-btn-ghost {
        margin-right: 0;
        order: 3;
    }

    .trak3d-cookie-modal-footer {
        flex-direction: column;
    }

    .trak3d-cookie-modal-footer .trak3d-cookie-btn {
        width: 100%;
    }

    #trak3d-social-proof {
        bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }
}

/* ─── Diğer modüller ───────────────────────────────────────── */

#trak3d-social-proof{position:fixed;bottom:90px;left:20px;z-index:9990;max-width:320px;background:#fff;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.12);padding:12px 16px;font-size:13px;border-left:4px solid #22c55e;animation:spSlideIn .4s ease}
#trak3d-social-proof[hidden]{display:none!important}
@keyframes spSlideIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.trak3d-popup-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99997;display:flex;align-items:center;justify-content:center;padding:20px}
.trak3d-popup-box{background:#fff;border-radius:16px;padding:32px;max-width:440px;width:100%;position:relative;text-align:center}
.trak3d-popup-close{position:absolute;top:12px;right:16px;border:none;background:none;font-size:24px;cursor:pointer;color:#888}
.module-upsell-card,.module-bundle-card{border:1px solid #eee;border-radius:10px;padding:16px;margin-bottom:12px;display:flex;gap:12px;align-items:center}
.module-upsell-card img,.module-bundle-card img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.lp-hero h1{font-size:2.5rem;margin-bottom:1rem}
.lp-products .products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.product-preorder-badge{display:inline-block;background:#f59e0b;color:#fff;font-size:12px;padding:4px 10px;border-radius:20px;margin-bottom:8px}
.qa-item{border-bottom:1px solid #eee;padding:16px 0}
.qa-answer{background:#f8f9fa;padding:12px;border-radius:8px;margin-top:8px;border-left:3px solid #6463cb}
