/* =========================================================
   apx-ppf3d.css — AutoPrime 3D Deneyim Sayfası
   Sayfa-özel CSS — bundle'a dahil DEĞİL
   Sadece /3d-deneyim rotasında yüklenir.
   ========================================================= */

/* ── CSS Tokens (local override, sayfa scope) ─────────── */
/* NOT: --p3d-amber tüm sitelerle uniform tutmak için --apx-brand (#FFB200) ile birebir.
   rgba 255,178,0 = #FFB200. */
.p3d-root {
    --p3d-amber:       #FFB200;
    --p3d-amber-dim:   rgba(255, 178, 0, 0.18);
    --p3d-amber-glow:  rgba(255, 178, 0, 0.08);
    --p3d-dark:        #0a0a0a;
    --p3d-glass:       rgba(10, 10, 12, 0.82);
    --p3d-glass-light: rgba(255, 255, 255, 0.06);
    --p3d-border:      rgba(255, 255, 255, 0.09);
    --p3d-text:        #ffffff;
    --p3d-muted:       rgba(255, 255, 255, 0.45);
    --p3d-panel-w:     260px;
    --p3d-bar-h:       60px;
    --p3d-r:           12px;
    --p3d-r-sm:        8px;
    --p3d-transition:  0.25s ease;
}

/* ── Page Root ─────────────────────────────────────────── */
.p3d-root {
    position: relative;
    background: var(--p3d-dark);
    min-height: 100vh;
    /* iframe sayfanın scroll'u devre dışı olmasın */
    overflow-x: hidden;
}

/* ============================================================
   F1 — CİNEMATİC INTRO OVERLAY
   ============================================================ */
.p3d-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.p3d-intro-overlay.p3d-overlay--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Brand logo alanı */
.p3d-intro-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: p3dLogoReveal 1s cubic-bezier(0.2, 0, 0, 1) 0.2s both;
}

.p3d-intro-logo-mark {
    width: 72px;
    height: 72px;
    border: 2px solid var(--p3d-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: p3dPulseRing 3s ease infinite;
    position: relative;
}

.p3d-intro-logo-mark::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 180, 0, 0.2);
    animation: p3dPulseRingOuter 3s ease infinite;
}

.p3d-intro-logo-mark svg {
    width: 36px;
    height: 36px;
    fill: var(--p3d-amber);
}

.p3d-intro-logo-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #fff;
}

.p3d-intro-logo-text em {
    font-style: normal;
    color: var(--p3d-amber);
}

/* Loading bar */
.p3d-intro-loader {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: p3dFadeIn 0.6s ease 0.5s both;
}

.p3d-intro-loader-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.p3d-intro-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--p3d-amber) 0%, #fff8 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.p3d-intro-loader-pct {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--p3d-muted);
    font-variant-numeric: tabular-nums;
}

.p3d-intro-loading-text {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    animation: p3dFadeIn 0.6s ease 0.7s both;
}

/* CTA Butonu */
.p3d-intro-cta {
    display: none; /* JS scene yüklenince gösterilir */
    padding: 14px 40px;
    background: var(--p3d-amber);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--p3d-transition), box-shadow var(--p3d-transition);
    animation: p3dSlideUp 0.7s cubic-bezier(0.2, 0, 0, 1) both;
}

.p3d-intro-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s ease;
}

.p3d-intro-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 180, 0, 0.4);
}

.p3d-intro-cta:hover::before {
    background: rgba(255, 255, 255, 0.12);
}

.p3d-intro-cta:active {
    transform: translateY(0);
}

/* Particle background */
.p3d-intro-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.p3d-intro-particles::before,
.p3d-intro-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    animation: p3dParticleFloat 8s ease-in-out infinite alternate;
}

.p3d-intro-particles::before {
    width: 600px;
    height: 600px;
    background: var(--p3d-amber);
    top: -200px;
    left: -100px;
}

.p3d-intro-particles::after {
    width: 400px;
    height: 400px;
    background: #3060ff;
    bottom: -100px;
    right: -50px;
    animation-delay: -4s;
}

/* ============================================================
   F4 — PREMIUM LOADING (3D scene yüklenirken, overlay içinde)
   ============================================================ */
.p3d-intro-overlay.p3d-scene-ready .p3d-intro-loader {
    display: none;
}

.p3d-intro-overlay.p3d-scene-ready .p3d-intro-loading-text {
    display: none;
}

.p3d-intro-overlay.p3d-scene-ready .p3d-intro-cta {
    display: inline-block;
}

/* ============================================================
   SAYFA GÖVDE — Stage + Overlay Wrapper
   ============================================================ */
.p3d-experience-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--p3d-bar-h));
}

/* 3D Stage alanı — iframe barındırır */
.p3d-stage-wrap {
    position: relative;
    flex: 1;
    background: #000;
    min-height: 520px;
    height: calc(100vh - 120px); /* header + bottom bar */
    max-height: 900px;
    overflow: hidden;
}

/* iframe tam dolu */
.p3d-stage-wrap iframe#p3dIframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

/* ============================================================
   F2 — SIDE PANEL (Right overlay, glass effect)
   ============================================================ */
.p3d-side-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    z-index: 800;
    width: var(--p3d-panel-w);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: var(--p3d-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--p3d-border);
    border-right: none;
    border-radius: var(--p3d-r) 0 0 var(--p3d-r);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.p3d-side-panel::-webkit-scrollbar {
    width: 4px;
}
.p3d-side-panel::-webkit-scrollbar-track {
    background: transparent;
}
.p3d-side-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
}

.p3d-side-panel.p3d-panel--visible {
    transform: translateY(-50%) translateX(0);
}

/* Panel toggle butonu (sol kenar) */
.p3d-panel-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 801;
    width: 32px;
    height: 72px;
    background: var(--p3d-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--p3d-border);
    border-right: none;
    border-radius: var(--p3d-r-sm) 0 0 var(--p3d-r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--p3d-transition), transform 0.5s cubic-bezier(0.2,0,0,1), right 0.5s cubic-bezier(0.2,0,0,1);
    color: var(--p3d-muted);
}

.p3d-panel-toggle:hover {
    background: rgba(255, 180, 0, 0.12);
    color: var(--p3d-amber);
}

.p3d-panel-toggle.p3d-panel--visible {
    right: var(--p3d-panel-w);
}

.p3d-panel-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.p3d-panel-toggle.p3d-panel--visible svg {
    transform: rotate(180deg);
}

/* Panel bölüm başlığı */
.p3d-panel-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p3d-panel-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--p3d-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.p3d-panel-label svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Renk Swatches */
.p3d-color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.p3d-color-swatch {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.p3d-color-swatch:hover {
    transform: scale(1.12);
}

.p3d-color-swatch.p3d-active {
    border-color: var(--p3d-amber);
    box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.25);
}

.p3d-color-swatch[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* Toggle switch */
.p3d-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.p3d-toggle-name {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    flex: 1;
}

.p3d-toggle {
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--p3d-transition);
    border: none;
    padding: 0;
    appearance: none;
}

.p3d-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--p3d-transition), background var(--p3d-transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.p3d-toggle.p3d-on {
    background: var(--p3d-amber);
}

.p3d-toggle.p3d-on::after {
    transform: translateX(16px);
    background: #000;
}

/* Cam Tonu Radio */
.p3d-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.p3d-radio-btn {
    display: block;
    padding: 6px 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--p3d-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--p3d-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--p3d-transition);
    user-select: none;
}

.p3d-radio-btn:hover {
    border-color: rgba(255, 180, 0, 0.3);
    color: rgba(255,255,255,0.8);
}

.p3d-radio-btn.p3d-active {
    background: var(--p3d-amber-dim);
    border-color: var(--p3d-amber);
    color: var(--p3d-amber);
}

/* Kamera preset butonları */
.p3d-cam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.p3d-cam-btn {
    padding: 7px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--p3d-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--p3d-border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all var(--p3d-transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.p3d-cam-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.p3d-cam-btn:hover,
.p3d-cam-btn.p3d-active {
    border-color: var(--p3d-amber);
    color: var(--p3d-amber);
    background: var(--p3d-amber-glow);
}

.p3d-cam-btn.p3d-active svg {
    opacity: 1;
}

/* Reset butonu */
.p3d-reset-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--p3d-muted);
    background: transparent;
    border: 1px solid var(--p3d-border);
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--p3d-transition);
}

.p3d-reset-btn svg {
    width: 12px;
    height: 12px;
}

.p3d-reset-btn:hover {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    background: rgba(255,255,255,0.04);
}

/* Panel divider */
.p3d-divider {
    height: 1px;
    background: var(--p3d-border);
    margin: 0 -16px;
}

/* ============================================================
   F3 — BOTTOM ACTION BAR
   ============================================================ */
.p3d-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 700;
    height: var(--p3d-bar-h);
    background: var(--p3d-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--p3d-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1) 0.1s;
}

.p3d-bottom-bar.p3d-bar--visible {
    transform: translateY(0);
}

.p3d-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.p3d-bar-logo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.p3d-bar-logo span {
    color: var(--p3d-amber);
}

.p3d-bar-sep {
    width: 1px;
    height: 16px;
    background: var(--p3d-border);
    flex-shrink: 0;
}

.p3d-bar-breadcrumb {
    font-size: 10px;
    color: var(--p3d-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.p3d-bar-center {
    flex: 1;
    text-align: center;
    overflow: hidden;
}

.p3d-bar-scene-info {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p3d-bar-scene-info strong {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.p3d-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* Fullscreen butonu */
.p3d-bar-btn {
    height: 36px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--p3d-border);
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--p3d-transition);
    white-space: nowrap;
}

.p3d-bar-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.p3d-bar-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}

/* Rezervasyon CTA */
.p3d-bar-cta {
    height: 36px;
    padding: 0 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    background: var(--p3d-amber);
    border: none;
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform var(--p3d-transition), box-shadow var(--p3d-transition), background var(--p3d-transition);
    white-space: nowrap;
}

.p3d-bar-cta svg {
    width: 14px;
    height: 14px;
}

.p3d-bar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 178, 0, 0.35);
    background: #ffc433;
}

.p3d-bar-cta:active {
    transform: translateY(0);
}

/* ============================================================
   F7 — RESERVATİON MODAL (Multi-step)
   ============================================================ */
.p3d-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 8500;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.p3d-modal-backdrop.p3d-modal--open {
    opacity: 1;
    visibility: visible;
}

.p3d-modal {
    width: 100%;
    max-width: 520px;
    background: #111113;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.p3d-modal-backdrop.p3d-modal--open .p3d-modal {
    transform: translateY(0) scale(1);
}

/* Modal header */
.p3d-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.p3d-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.p3d-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--p3d-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--p3d-transition);
    flex-shrink: 0;
}

.p3d-modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.p3d-modal-close svg {
    width: 16px;
    height: 16px;
}

/* Step indicator */
.p3d-steps {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    overflow-x: auto;
}

.p3d-step {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.p3d-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--p3d-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.p3d-step.p3d-step--active .p3d-step-dot {
    background: var(--p3d-amber);
    border-color: var(--p3d-amber);
    color: #000;
}

.p3d-step.p3d-step--done .p3d-step-dot {
    background: rgba(255, 180, 0, 0.2);
    border-color: rgba(255, 180, 0, 0.4);
    color: var(--p3d-amber);
}

.p3d-step-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--p3d-muted);
    white-space: nowrap;
}

.p3d-step.p3d-step--active .p3d-step-label {
    color: var(--p3d-amber);
}

.p3d-step.p3d-step--done .p3d-step-label {
    color: rgba(255, 180, 0, 0.6);
}

.p3d-step-connector {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0 8px;
    min-width: 16px;
}

/* Modal body */
.p3d-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Step panels */
.p3d-step-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: p3dFadeIn 0.25s ease;
}

.p3d-step-panel.p3d-step--active {
    display: flex;
}

/* Config summary (Step 1) */
.p3d-config-summary {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--p3d-r-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p3d-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.p3d-config-key {
    font-size: 11px;
    color: var(--p3d-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.p3d-config-key svg {
    width: 12px;
    height: 12px;
}

.p3d-config-val {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.p3d-color-preview {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    vertical-align: middle;
}

.p3d-step-heading {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.p3d-step-sub {
    font-size: 11px;
    color: var(--p3d-muted);
    margin: 0;
    line-height: 1.6;
}

/* Form alanları */
.p3d-field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p3d-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.p3d-field label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--p3d-muted);
}

.p3d-field input,
.p3d-field select,
.p3d-field textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--p3d-r-sm);
    padding: 10px 12px;
    font-size: 13px;
    color: #fff;
    font-family: inherit;
    transition: border-color var(--p3d-transition);
    width: 100%;
    outline: none;
}

.p3d-field input:focus,
.p3d-field select:focus,
.p3d-field textarea:focus {
    border-color: rgba(255, 180, 0, 0.4);
    background: rgba(255, 180, 0, 0.04);
}

.p3d-field input::placeholder,
.p3d-field textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.p3d-field select option {
    background: #1a1a1a;
    color: #fff;
}

.p3d-field textarea {
    resize: vertical;
    min-height: 80px;
}

.p3d-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Tarih seçimi (Step 3) */
.p3d-date-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.p3d-date-slot {
    padding: 10px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--p3d-r-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--p3d-transition);
}

.p3d-date-slot:hover {
    border-color: rgba(255, 180, 0, 0.3);
}

.p3d-date-slot.p3d-active {
    background: var(--p3d-amber-dim);
    border-color: var(--p3d-amber);
}

.p3d-date-slot-day {
    font-size: 10px;
    color: var(--p3d-muted);
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.p3d-date-slot-date {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.p3d-date-slot-month {
    font-size: 9px;
    color: var(--p3d-muted);
    margin-top: 1px;
}

.p3d-date-slot.p3d-active .p3d-date-slot-day,
.p3d-date-slot.p3d-active .p3d-date-slot-month {
    color: rgba(255, 180, 0, 0.7);
}

.p3d-date-slot.p3d-active .p3d-date-slot-date {
    color: var(--p3d-amber);
}

/* Şube seçimi (Step 4) */
.p3d-branch-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p3d-branch-option {
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    transition: all var(--p3d-transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.p3d-branch-option:hover {
    border-color: rgba(255, 180, 0, 0.3);
    background: var(--p3d-amber-glow);
}

.p3d-branch-option.p3d-active {
    border-color: var(--p3d-amber);
    background: var(--p3d-amber-dim);
}

.p3d-branch-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 180, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p3d-branch-icon svg {
    width: 16px;
    height: 16px;
    color: var(--p3d-amber);
}

.p3d-branch-info {
    flex: 1;
}

.p3d-branch-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.p3d-branch-addr {
    font-size: 10px;
    color: var(--p3d-muted);
}

.p3d-branch-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--p3d-transition);
}

.p3d-branch-option.p3d-active .p3d-branch-check {
    background: var(--p3d-amber);
    border-color: var(--p3d-amber);
}

.p3d-branch-check svg {
    width: 10px;
    height: 10px;
    color: #000;
    display: none;
}

.p3d-branch-option.p3d-active .p3d-branch-check svg {
    display: block;
}

/* Onay (Step 5) */
.p3d-success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    text-align: center;
}

.p3d-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 180, 0, 0.12);
    border: 2px solid rgba(255, 180, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: p3dSuccessPop 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.p3d-success-icon svg {
    width: 28px;
    height: 28px;
    color: var(--p3d-amber);
}

.p3d-success-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.p3d-success-text {
    font-size: 13px;
    color: var(--p3d-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

/* Modal footer */
.p3d-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.p3d-modal-btn-back {
    height: 38px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--p3d-muted);
    background: transparent;
    border: 1px solid var(--p3d-border);
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    transition: all var(--p3d-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.p3d-modal-btn-back svg {
    width: 12px;
    height: 12px;
}

.p3d-modal-btn-back:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.p3d-modal-btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.p3d-modal-btn-next {
    height: 38px;
    padding: 0 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    background: var(--p3d-amber);
    border: none;
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--p3d-transition);
    margin-left: auto;
}

.p3d-modal-btn-next svg {
    width: 12px;
    height: 12px;
}

.p3d-modal-btn-next:hover {
    background: #ffc200;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 180, 0, 0.3);
}

.p3d-modal-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.p3d-modal-step-count {
    font-size: 10px;
    color: var(--p3d-muted);
    letter-spacing: 0.06em;
}

/* Error/loading states */
.p3d-field-error {
    font-size: 10px;
    color: #ff5555;
    margin-top: 2px;
}

.p3d-modal-btn-next.p3d-loading {
    pointer-events: none;
    opacity: 0.7;
}

.p3d-modal-btn-next.p3d-loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: p3dSpin 0.6s linear infinite;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes p3dLogoReveal {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes p3dFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes p3dPulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255, 180, 0, 0); }
}

@keyframes p3dPulseRingOuter {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.15); }
}

@keyframes p3dParticleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(40px, 30px) rotate(15deg); }
}

@keyframes p3dSuccessPop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes p3dSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   YENİ BİLEŞENLER — F1-F8 Genişleme
   ============================================================ */

/* ── Collapsible Section Header ────────────────────────────── */
.p3d-section-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: inherit;
}

.p3d-section-header:hover .p3d-section-title {
    color: rgba(255,255,255,0.9);
}

.p3d-section-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--p3d-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--p3d-transition);
}

.p3d-section-title svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    flex-shrink: 0;
}

.p3d-chevron {
    width: 12px;
    height: 12px;
    color: var(--p3d-muted);
    flex-shrink: 0;
    transition: transform 0.25s ease, color var(--p3d-transition);
}

.p3d-collapsible[data-open="false"] .p3d-chevron {
    transform: rotate(180deg);
}

.p3d-section-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.2, 0, 0, 1), opacity 0.25s ease;
    max-height: 600px;
    opacity: 1;
}

.p3d-collapsible[data-open="false"] .p3d-section-body {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* ── Sub-label (bölüm içi küçük başlık) ──────────────────── */
.p3d-sub-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}

/* ── Inner divider ────────────────────────────────────────── */
.p3d-divider--inner {
    margin: 4px 0;
    background: rgba(255,255,255,0.06);
}

/* ── Renk Tab'ları (4 tab) ────────────────────────────────── */
.p3d-color-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--p3d-border);
    margin-bottom: 2px;
}

.p3d-color-tab {
    flex: 1;
    padding: 5px 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--p3d-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: color var(--p3d-transition), border-color var(--p3d-transition);
    margin-bottom: -1px;
}

.p3d-color-tab:hover {
    color: rgba(255,255,255,0.7);
}

.p3d-color-tab--active {
    color: var(--p3d-amber);
    border-bottom-color: var(--p3d-amber);
}

/* ── Renk Panel (tab içeriği) ─────────────────────────────── */
.p3d-color-panel {
    display: none;
}

.p3d-color-panel--active {
    display: block;
}

/* ── 5 Sütunlu Swatch Grid ────────────────────────────────── */
.p3d-color-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Swatch temel — boyut düzeltmesi */
.p3d-color-grid-5 .p3d-color-swatch {
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

/* Swatch badge (M / MT / S) */
.p3d-swatch-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 7px;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
}

/* Aktif swatch: check ikon */
.p3d-color-grid-5 .p3d-color-swatch.p3d-active::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--p3d-amber);
    box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.2);
}

.p3d-color-grid-5 .p3d-color-swatch.p3d-active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    border-radius: 50%;
}

/* Tooltip hâlâ çalışsın — override */
.p3d-color-grid-5 .p3d-color-swatch[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

/* Aktif swatch'ta tooltip override (checkmark gizle, tooltip göster) */
.p3d-color-grid-5 .p3d-color-swatch.p3d-active[title]:hover::after {
    content: attr(title);
}

/* ── Radio Liste (PPF tipi ve kapsam) ─────────────────────── */
.p3d-radio-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.p3d-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--p3d-border);
    border-radius: 7px;
    cursor: pointer;
    transition: background var(--p3d-transition), border-color var(--p3d-transition);
    position: relative;
    user-select: none;
}

.p3d-radio-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255, 180, 0, 0.25);
}

.p3d-radio-item.p3d-active {
    background: var(--p3d-amber-dim);
    border-color: var(--p3d-amber);
}

.p3d-radio-native {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.p3d-radio-custom {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--p3d-transition), background var(--p3d-transition);
}

.p3d-radio-item.p3d-active .p3d-radio-custom {
    border-color: var(--p3d-amber);
    background: var(--p3d-amber);
    box-shadow: 0 0 0 1px rgba(255, 180, 0, 0.3);
}

.p3d-radio-item.p3d-active .p3d-radio-custom::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #000;
}

.p3d-radio-label-text {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    flex: 1;
    line-height: 1;
}

.p3d-radio-item.p3d-active .p3d-radio-label-text {
    color: #fff;
    font-weight: 600;
}

.p3d-badge-rec {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    background: var(--p3d-amber);
    border-radius: 3px;
    padding: 2px 5px;
    flex-shrink: 0;
    line-height: 1;
}

/* Kapsam radio — icon + grup */
.p3d-radio-item--coverage {
    gap: 6px;
}

.p3d-coverage-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.p3d-radio-label-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.p3d-radio-label-sub {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}

/* ── Self-Healing Butonu ───────────────────────────────────── */
.p3d-selfheal-btn {
    width: 100%;
    padding: 9px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(135deg, #FFB200 0%, #ff8c00 100%);
    border: none;
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform var(--p3d-transition), box-shadow var(--p3d-transition), opacity var(--p3d-transition);
    box-shadow: 0 2px 12px rgba(255, 140, 0, 0.25);
}

.p3d-selfheal-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.p3d-selfheal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.p3d-selfheal-btn:active {
    transform: translateY(0);
}

.p3d-selfheal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Interactive toggle name with icon ────────────────────── */
.p3d-toggle-name--icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.p3d-ctrl-icon {
    font-size: 13px;
    line-height: 1;
    filter: saturate(0.8);
}

/* Disabled toggle */
.p3d-toggle.p3d-toggle--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Toast (bottom-right) ─────────────────────────────────── */
.p3d-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9500;
    padding: 10px 16px;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(255, 180, 0, 0.35);
    border-radius: var(--p3d-r-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--p3d-amber);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 260px;
    white-space: nowrap;
}

.p3d-toast.p3d-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Tab Bar ───────────────────────────────────────── */
.p3d-mobile-tabs {
    display: none; /* sadece mobile görünür */
}

/* ============================================================
   F6 — MOBİL RESPONSIVE (390px)
   ============================================================ */
@media (max-width: 768px) {
    .p3d-stage-wrap {
        height: calc(100svh - 80px);
        max-height: none;
        min-height: 400px;
    }

    /* Mobile tab bar göster */
    .p3d-mobile-tabs {
        display: flex;
        position: fixed;
        bottom: calc(var(--p3d-bar-h) + 1px);
        left: 0;
        right: 0;
        z-index: 802;
        background: var(--p3d-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--p3d-border);
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .p3d-mobile-tabs.p3d-tabs--visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .p3d-mobile-tab {
        flex: 1;
        padding: 8px 4px 6px;
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--p3d-muted);
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        transition: color var(--p3d-transition), border-color var(--p3d-transition);
    }

    .p3d-mobile-tab svg {
        width: 14px;
        height: 14px;
        opacity: 0.6;
    }

    .p3d-mobile-tab--active {
        color: var(--p3d-amber);
        border-bottom-color: var(--p3d-amber);
    }

    .p3d-mobile-tab--active svg {
        opacity: 1;
    }

    /* Side panel → bottom drawer */
    .p3d-side-panel {
        top: auto;
        bottom: calc(var(--p3d-bar-h) + 37px); /* tab bar yüksekliği */
        right: 0;
        left: 0;
        width: 100%;
        max-height: 58vh;
        border-radius: var(--p3d-r) var(--p3d-r) 0 0;
        border-right: 1px solid var(--p3d-border);
        border-bottom: none;
        transform: translateY(100%) translateX(0);
        flex-direction: column;
        gap: 0;
        padding: 12px 16px 16px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .p3d-side-panel.p3d-panel--visible {
        transform: translateY(0);
    }

    /* Mobile'da collapsible'lar section filter ile gösterilir */
    .p3d-panel-section {
        flex: none;
        width: 100%;
    }

    /* Mobile tab filter — aktif sekme dışını gizle */
    .p3d-side-panel[data-active-tab="renk"] .p3d-panel-section[data-section="ppf"],
    .p3d-side-panel[data-active-tab="renk"] .p3d-panel-section[data-section="kontrol"],
    .p3d-side-panel[data-active-tab="renk"] .p3d-panel-section[data-section="ayar"],
    .p3d-side-panel[data-active-tab="renk"] .p3d-panel-section[data-section="genel"],
    .p3d-side-panel[data-active-tab="renk"] + .p3d-divider,
    .p3d-side-panel[data-active-tab="ppf"] .p3d-panel-section[data-section="renk"],
    .p3d-side-panel[data-active-tab="ppf"] .p3d-panel-section[data-section="kontrol"],
    .p3d-side-panel[data-active-tab="ppf"] .p3d-panel-section[data-section="ayar"],
    .p3d-side-panel[data-active-tab="ppf"] .p3d-panel-section[data-section="genel"],
    .p3d-side-panel[data-active-tab="kontrol"] .p3d-panel-section[data-section="renk"],
    .p3d-side-panel[data-active-tab="kontrol"] .p3d-panel-section[data-section="ppf"],
    .p3d-side-panel[data-active-tab="kontrol"] .p3d-panel-section[data-section="ayar"],
    .p3d-side-panel[data-active-tab="kontrol"] .p3d-panel-section[data-section="genel"],
    .p3d-side-panel[data-active-tab="ayar"] .p3d-panel-section[data-section="renk"],
    .p3d-side-panel[data-active-tab="ayar"] .p3d-panel-section[data-section="ppf"],
    .p3d-side-panel[data-active-tab="ayar"] .p3d-panel-section[data-section="kontrol"] {
        display: none;
    }

    /* Mobile'da seçili sekmedeki bölüm "ayar" → kamera + genel göster */
    .p3d-side-panel[data-active-tab="ayar"] .p3d-panel-section[data-section="ayar"],
    .p3d-side-panel[data-active-tab="ayar"] .p3d-panel-section[data-section="genel"] {
        display: flex;
    }

    /* Mobile'da divider'lar gizle */
    .p3d-side-panel .p3d-divider:not(.p3d-divider--inner) {
        display: none;
    }

    /* Panel toggle → bottom center knob */
    .p3d-panel-toggle {
        top: auto;
        right: 50%;
        bottom: calc(var(--p3d-bar-h) + 38px);
        transform: translateX(50%);
        width: 48px;
        height: 24px;
        border-radius: var(--p3d-r-sm) var(--p3d-r-sm) 0 0;
        border-bottom: none;
    }

    .p3d-panel-toggle.p3d-panel--visible {
        right: 50%;
        transform: translateX(50%);
    }

    .p3d-panel-toggle svg {
        transform: rotate(90deg);
    }

    .p3d-panel-toggle.p3d-panel--visible svg {
        transform: rotate(-90deg);
    }

    /* Bottom bar mobil */
    .p3d-bottom-bar {
        padding: 0 12px;
        gap: 8px;
        flex-wrap: wrap;
        height: auto;
        min-height: var(--p3d-bar-h);
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .p3d-bar-left {
        flex: 1;
        min-width: 0;
    }

    .p3d-bar-center {
        display: none;
    }

    .p3d-bar-right {
        flex: 0 0 auto;
    }

    .p3d-bar-btn {
        display: none;
    }

    .p3d-bar-cta {
        font-size: 10px;
        padding: 0 12px;
    }

    /* Modal mobil */
    .p3d-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .p3d-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 92svh;
        transform: translateY(100%);
    }

    .p3d-modal-backdrop.p3d-modal--open .p3d-modal {
        transform: translateY(0);
    }

    .p3d-field-row {
        grid-template-columns: 1fr;
    }

    /* Toast mobil konumu */
    .p3d-toast {
        bottom: calc(var(--p3d-bar-h) + 48px);
        right: 12px;
        left: 12px;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .p3d-bar-logo {
        font-size: 10px;
    }

    .p3d-bar-breadcrumb {
        display: none;
    }

    .p3d-color-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Custom picker mobil uyarlaması */
    .p3d-custom-preview {
        width: 64px;
        height: 64px;
    }

    .p3d-ppf-info-pill {
        font-size: 7px;
        padding: 2px 6px;
    }
}

/* ============================================================
   HEADER GİZLE — 3D Deneyim tam ekran hissi
   Sayfada .p3d-immersive class varsa header'ı küçült
   ============================================================ */
.p3d-root.p3d-active .p3d-experience-section {
    opacity: 1;
}

/* ============================================================
   F1 — CUSTOM COLOR PICKER (ÖZEL tab)
   ============================================================ */

/* Preview kutusu (büyük, tıklanabilir) */
.p3d-custom-picker-top {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.p3d-custom-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.p3d-custom-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.p3d-custom-preview-wrap:hover .p3d-custom-preview {
    border-color: var(--p3d-amber);
    box-shadow: 0 4px 24px rgba(255,180,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: scale(1.04);
}

.p3d-custom-preview-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--p3d-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.p3d-custom-preview-label svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

.p3d-custom-preview-wrap:hover .p3d-custom-preview-label {
    color: var(--p3d-amber);
}

/* Native color input gizli ama label üzerinden tetiklenir */
.p3d-custom-preview-wrap input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
}

/* HEX input satırı */
.p3d-custom-hex-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--p3d-border);
    border-radius: var(--p3d-r-sm);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.p3d-custom-hex-row:focus-within {
    border-color: rgba(255, 180, 0, 0.45);
    background: rgba(255, 180, 0, 0.04);
}

.p3d-custom-hex-hash {
    padding: 0 8px 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--p3d-muted);
    font-family: 'Courier New', Courier, monospace;
    flex-shrink: 0;
    user-select: none;
}

.p3d-custom-hex-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 4px 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: 0; /* flex ile büyür */
    min-width: 0;
}

.p3d-custom-hex-input::placeholder {
    color: rgba(255,255,255,0.2);
    text-transform: none;
}

.p3d-custom-hex-apply {
    width: 34px;
    height: 34px;
    background: rgba(255, 180, 0, 0.12);
    border: none;
    border-left: 1px solid var(--p3d-border);
    color: var(--p3d-amber);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.p3d-custom-hex-apply:hover {
    background: rgba(255, 180, 0, 0.25);
}

.p3d-custom-hex-apply svg {
    width: 13px;
    height: 13px;
}

/* RGB Sliders */
.p3d-custom-rgb {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.p3d-custom-rgb-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.p3d-custom-rgb-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    width: 12px;
    flex-shrink: 0;
    text-align: center;
}

.p3d-custom-rgb-label--r { color: #ff5555; }
.p3d-custom-rgb-label--g { color: #55cc77; }
.p3d-custom-rgb-label--b { color: #5599ff; }

.p3d-custom-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.p3d-custom-slider:focus-visible {
    box-shadow: 0 0 0 2px rgba(255,180,0,0.4);
}

/* Slider track rengi — CSS custom property ile JS'den güncellenir */
.p3d-custom-slider--r {
    background: linear-gradient(to right, #111 0%, #ff0000 100%);
}
.p3d-custom-slider--g {
    background: linear-gradient(to right, #111 0%, #00ff00 100%);
}
.p3d-custom-slider--b {
    background: linear-gradient(to right, #111 0%, #0000ff 100%);
}

/* Webkit thumb */
.p3d-custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.p3d-custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Firefox thumb */
.p3d-custom-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    cursor: pointer;
}

.p3d-custom-rgb-val {
    font-size: 9px;
    font-weight: 700;
    color: var(--p3d-muted);
    width: 22px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Malzeme tipi radyo */
.p3d-custom-material {
    display: flex;
    gap: 5px;
}

.p3d-custom-mat-item {
    flex: 1;
    padding: 5px 4px;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--p3d-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--p3d-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--p3d-transition);
    user-select: none;
}

.p3d-custom-mat-item:hover {
    border-color: rgba(255,180,0,0.3);
    color: rgba(255,255,255,0.7);
}

.p3d-custom-mat-item.p3d-active {
    background: var(--p3d-amber-dim);
    border-color: var(--p3d-amber);
    color: var(--p3d-amber);
}

.p3d-custom-mat-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Uygula butonu */
.p3d-custom-apply-btn {
    width: 100%;
    padding: 9px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    background: var(--p3d-amber);
    border: none;
    border-radius: var(--p3d-r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform var(--p3d-transition), box-shadow var(--p3d-transition), background var(--p3d-transition);
    box-shadow: 0 2px 12px rgba(255, 180, 0, 0.25);
}

.p3d-custom-apply-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.p3d-custom-apply-btn:hover {
    background: #ffc200;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
}

.p3d-custom-apply-btn:active {
    transform: translateY(0);
}

/* Son kullanılanlar */
.p3d-custom-recent {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p3d-custom-recent-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    min-height: 28px;
}

.p3d-custom-recent-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.1);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.p3d-custom-recent-swatch:hover {
    transform: scale(1.15);
    border-color: rgba(255,255,255,0.3);
    z-index: 1;
}

/* Delete (x) butonu — hover'da görünür */
.p3d-custom-recent-swatch .p3d-recent-del {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 8px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.p3d-custom-recent-swatch:hover .p3d-recent-del {
    display: flex;
}

.p3d-custom-recent-swatch .p3d-recent-del:hover {
    background: rgba(255,80,80,0.9);
    color: #fff;
}

/* PPF Toggle Group (toggle + pill yan yana) */
.p3d-ppf-toggle-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

/* Şeffaf Kalkan amber pill */
.p3d-ppf-info-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
    background: var(--p3d-amber);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.p3d-ppf-info-pill:hover {
    background: #ffc200;
    transform: scale(1.04);
}

/* PPF info modal özel stiller */
.p3d-ppf-info-modal {
    max-width: 400px;
}

.p3d-ppf-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p3d-ppf-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.p3d-ppf-info-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 180, 0, 0.15);
    border: 1.5px solid rgba(255, 180, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.p3d-ppf-info-check svg {
    width: 11px;
    height: 11px;
    color: var(--p3d-amber);
}

.p3d-ppf-info-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--p3d-amber);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
    margin-right: auto;
}

.p3d-ppf-info-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
