/**
 * MIDNIGHT AURORA — Design System
 *
 * Deep space dark theme with neon cyan/aurora purple accents,
 * glass morphism cards, and scroll-driven animations.
 *
 * Namespace: .cde-fp--midnight (root) / .cde-fp__ (children)
 */

/* Kill WP admin-bar on AURORA pages (32px desktop / 46px mobile) */
body.cde-aurora-page #wpadminbar {
    display: none !important;
    height: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
 * 0. Root Reset, Theme Isolation & CSS Custom Properties
 *    NOTE: `all: revert` MUST come before custom properties,
 *    otherwise it wipes them out.
 * ══════════════════════════════════════════════════════════════ */

.cde-fp--midnight {
    all: revert;

    /* --- Custom Properties (defined AFTER revert) --- */
    --ma-bg:           #0a0a0f;
    --ma-bg-subtle:    #111118;
    --ma-card-bg:      linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.13) 100%);
    --ma-card-border:  rgba(255,255,255,0.16);
    --ma-card-hover:   linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.18) 100%);
    --ma-glass-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
                       inset 0 0 40px rgba(255,255,255,0.05),
                       0 4px 24px rgba(0,0,0,0.25);
    --ma-accent:       #00f5ff;
    --ma-purple:       #a855f7;
    --ma-green:        #10b981;
    --ma-red:          #ef4444;
    --ma-text:         #f0f0f0;
    --ma-text-sec:     #6b7280;
    --ma-text-dim:     #4b5563;
    --ma-radius:       16px;
    --ma-radius-sm:    10px;
    --ma-glass-blur:   20px;
    --ma-transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- Base Styles --- */
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'PingFang SC', 'Microsoft YaHei', Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ma-text);
    background: var(--ma-bg);
    padding: 0 24px 80px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cde-fp--midnight *,
.cde-fp--midnight *::before,
.cde-fp--midnight *::after {
    box-sizing: border-box;
}

/* Hide theme product container when MIDNIGHT AURORA is active */
#cdeMidnightAurora ~ .product-container,
#cdeMidnightAurora ~ .product-page-content,
#cdeMidnightAurora ~ .summary,
#cdeMidnightAurora ~ .woocommerce-product-gallery {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════
 * 2. Shared: Section Titles
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ma-text);
    margin: 0 0 24px;
    padding: 0;
    letter-spacing: 0.02em;
}

.cde-fp__section-title i {
    color: var(--ma-accent);
    font-size: 22px;
}

/* ══════════════════════════════════════════════════════════════
 * 3. Scroll Reveal Animation
 *    JS adds .cde-fp__js-ready to root, then triggers --visible.
 *    Without JS, content stays fully visible (graceful degradation).
 * ══════════════════════════════════════════════════════════════ */

.cde-fp--js-ready .cde-fp__reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cde-fp__reveal--visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ══════════════════════════════════════════════════════════════
 * 3b. 2-Column Layout (main + sidebar)
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.cde-fp__main {
    flex: 0 0 65%;
    min-width: 0;
}

.cde-fp__sidebar {
    flex: 0 0 calc(35% - 32px);
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cde-fp__sidebar::-webkit-scrollbar {
    width: 4px;
}
.cde-fp__sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.cde-fp__sidebar::-webkit-scrollbar-thumb {
    background: var(--ma-card-border);
    border-radius: 2px;
}

/* Remove side margins from sections inside layout columns */
.cde-fp__main .cde-fp__stats,
.cde-fp__main .cde-fp__specs,
.cde-fp__main .cde-fp__equipment,
.cde-fp__main .cde-fp__condition,
.cde-fp__main .cde-fp__similar {
    margin-left: 0;
    margin-right: 0;
}

.cde-fp__sidebar .cde-fp__pricing {
    margin: 0;
}

/* Mobile-only pricing (rendered inside .cde-fp__main after stats bar) */
.cde-fp__mobile-pricing {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
 * 3b. Back-to-search link
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__back-link {
    padding: 16px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cde-fp__back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 10px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ma-accent, #00f5ff);
    background: var(--ma-glass, rgba(255,255,255,.06));
    border: 1px solid var(--ma-border, rgba(255,255,255,.1));
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.cde-fp__back-link a:hover {
    background: var(--ma-glass-hover, rgba(255,255,255,.12));
    border-color: var(--ma-accent, #00f5ff);
    transform: translateX(-3px);
}
.cde-fp__back-link .bi {
    font-size: 16px;
}
.cde-fp__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ma-accent, #00f5ff);
    text-decoration: none;
    background: var(--ma-glass, rgba(255,255,255,.06));
    border: 1px solid var(--ma-border, rgba(255,255,255,.1));
    border-radius: 999px;
    transition: background .2s ease, border-color .2s ease;
}
.cde-fp__brand-link:hover {
    background: var(--ma-glass-hover, rgba(255,255,255,.12));
    border-color: var(--ma-accent, #00f5ff);
}

/* ══════════════════════════════════════════════════════════════
 * 3c. Scroll-to-top FAB
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__scroll-top {
    all: unset;
    position: fixed;
    bottom: 32px;
    /* Stay at the right edge of the 1800px content area */
    right: max(24px, calc((100vw - 1800px) / 2 + 8px));
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(0, 245, 255, 0.35);
    color: #00f5ff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease, border-color .2s ease;
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.25);
}
.cde-fp__scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cde-fp__scroll-top:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.6);
    transform: translateY(-2px);
}
html[data-theme="light"] .cde-fp__scroll-top {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.3);
    color: #0891b2;
    box-shadow: 0 2px 12px rgba(8, 145, 178, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-fp__scroll-top:hover {
    background: rgba(8, 145, 178, 0.15);
    border-color: rgba(8, 145, 178, 0.5);
}

@media (max-width: 767px) {
    .cde-fp__scroll-top {
        bottom: 90px;
        right: auto;
        left: 16px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* ══════════════════════════════════════════════════════════════
 * 4. Gallery (big image left + thumbnails right 2-col)
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__gallery {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.cde-fp__gallery-main {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--ma-radius);
    cursor: zoom-in;
}

.cde-fp__gallery-big {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.15s ease;
}

/* Title overlay — bottom-left of main image */
.cde-fp__gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    background: none !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 12px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
}

/* Counter badge */
.cde-fp__gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

/* Brand overlay on gallery (mobile only) */
.cde-fp__gallery-brand {
    display: none;
}

/* Prev / Next arrows on main image */
.cde-fp__gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45) !important;
    color: #fff !important;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.75;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease, background 0.2s ease;
}
.cde-fp__gallery-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7) !important;
}
.cde-fp__gallery-arrow--prev { left: 12px; }
.cde-fp__gallery-arrow--next { right: 12px; }

/* Gallery action bar — frosted glass strip at bottom-right */
.cde-fp__gallery-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 0;
    padding: 4px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.cde-fp__gallery-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.cde-fp__gallery-action:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.cde-fp__gallery-action:active {
    transform: scale(0.9);
}

.cde-fp__gallery-action[data-cde-action="favorite"].cde-fp__gallery-action--active {
    color: #ef4444 !important;
}

.cde-fp__gallery-action[data-cde-action="compare"].cde-fp__gallery-action--active {
    color: var(--ma-accent) !important;
}

/* Thumbnails — right column, 2-col × 4-row grid */
.cde-fp__gallery-thumbs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 6px;
    overflow-y: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
    /* max-height synced to main image via JS */
}

.cde-fp__gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}
.cde-fp__gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.cde-fp__gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--ma-card-border);
    border-radius: 2px;
}

.cde-fp__gallery-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    opacity: 0.6;
    transition: all var(--ma-transition);
}

.cde-fp__gallery-thumb--active {
    border-color: var(--ma-accent);
    opacity: 1;
}

.cde-fp__gallery-thumb--hidden {
    display: none !important;
}

.cde-fp__gallery-thumb:hover {
    opacity: 1;
}

.cde-fp__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cde-fp__gallery-thumb-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    pointer-events: none;
    border-radius: 6px;
}

/* ══════════════════════════════════════════════════════════════
 * 4b. Custom Lightbox
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cde-fp__lightbox--open {
    display: flex;
}

.cde-fp__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.cde-fp__lightbox-stage {
    position: relative;
    z-index: 1;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cde-fp__lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
}

.cde-fp__lightbox-close,
.cde-fp__lightbox-prev,
.cde-fp__lightbox-next {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.cde-fp__lightbox-close:hover,
.cde-fp__lightbox-prev:hover,
.cde-fp__lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cde-fp__lightbox-close {
    top: 16px;
    right: 16px;
}

.cde-fp__lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.cde-fp__lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.cde-fp__lightbox-counter {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Sans SC', 'Noto Sans JP', sans-serif;
}

/* ══════════════════════════════════════════════════════════════
 * 5. Stats Bar
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 0;
    margin: 0 16px 24px;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
}

.cde-fp__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 !important;
    flex: 1;
    min-width: 0;
}

.cde-fp__stat-icon {
    font-size: 18px;
    color: var(--ma-accent);
    margin-bottom: 2px;
}

.cde-fp__stat-label {
    font-size: 11px;
    color: var(--ma-text-sec);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cde-fp__stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ma-text);
    white-space: nowrap;
}

.cde-fp__stats-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 180px !important;
    min-height: 70px !important;
}

.cde-fp__stats-brand-img {
    max-width: 120px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.85 !important;
}

html[data-theme="light"] .cde-fp__stats-brand-img {
    filter: none !important;
    opacity: 0.9 !important;
}

.cde-fp__stats-brand-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--ma-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cde-fp__stats-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--ma-card-border), transparent);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
 * 6. Price + CTA Island
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__pricing {
    margin: 0 16px 32px;
}

.cde-fp__pricing-card {
    position: relative;
    padding: 28px;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
    overflow: hidden;
}

/* Aurora gradient border glow */
.cde-fp__pricing-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--ma-radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--ma-accent), var(--ma-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* ── MSRP Reference Block ── */
.cde-fp__msrp-block {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.cde-fp__msrp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.cde-fp__msrp-label {
    font-size: 12px;
    color: var(--ma-text-sec);
    font-weight: 500;
}

.cde-fp__msrp-original {
    font-size: 18px;
    font-weight: 600;
    color: var(--ma-text-sec);
    text-decoration: line-through;
    opacity: 0.55;
}

.cde-fp__msrp-savings {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.cde-fp__msrp-savings-label {
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
}

.cde-fp__msrp-savings-amount {
    font-size: 22px;
    font-weight: 800;
    color: #22c55e;
    letter-spacing: -0.02em;
}

.cde-fp__msrp-savings-amount small {
    font-size: 13px;
    font-weight: 600;
    margin-left: 4px;
}

.cde-fp__msrp-badge-row {
    margin-bottom: 6px;
}

.cde-fp__msrp-percent {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.cde-fp__msrp-equipment {
    font-size: 12px;
    color: var(--ma-text-sec);
    opacity: 0.7;
    margin-top: 4px;
}

.cde-fp__msrp-equipment .bi {
    margin-right: 4px;
    font-size: 11px;
}

.cde-fp__pricing-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cde-fp__pricing-label {
    font-size: 13px;
    color: var(--ma-text-sec);
    font-weight: 500;
}

.cde-fp__pricing-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--ma-text);
    letter-spacing: -0.02em;
}

.cde-fp__pricing-breakdown {
    border-top: 1px solid var(--ma-card-border);
    padding-top: 12px;
    margin-bottom: 20px;
}

.cde-fp__pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ma-text-sec);
}

.cde-fp__pricing-row--total {
    border-top: 1px solid var(--ma-card-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ma-accent);
}

.cde-fp__pricing-cta {
    display: flex;
    gap: 12px;
}

/* Buttons */
.cde-fp__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--ma-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ma-transition);
    text-align: center;
}

.cde-fp__btn i {
    font-size: 18px;
}

.cde-fp__btn--primary {
    background-color: rgba(0, 245, 255, 0.15) !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid rgba(0, 245, 255, 0.45);
}

.cde-fp__btn--primary:hover {
    background-color: rgba(0, 245, 255, 0.28) !important;
    color: #fff !important;
    text-decoration: none;
    border-color: rgba(0, 245, 255, 0.65);
}

.cde-fp__btn--glow {
    background-color: #e8680a !important;
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff;
    border: 1px solid rgba(249, 115, 22, 0.4);
    animation: ma-breathe 3s ease-in-out infinite;
}

.cde-fp__btn--glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}

@keyframes ma-breathe {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.2); }
    50%      { box-shadow: 0 0 35px rgba(0, 245, 255, 0.45); }
}



/* Pricing card — action buttons row */
.cde-fp__pricing-actions {
    display: flex;
    gap: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ma-card-border);
}

.cde-fp__pricing-action {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 10px 4px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--ma-text-sec) !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.cde-fp__pricing-action i {
    font-size: 18px !important;
}

.cde-fp__pricing-action:hover {
    background: rgba(0, 245, 255, 0.08) !important;
    color: var(--ma-accent) !important;
}

.cde-fp__pricing-action:active {
    transform: scale(0.92);
}

.cde-fp__pricing-action[data-cde-action="favorite"].cde-fp__pricing-action--active {
    color: #ef4444 !important;
}

.cde-fp__pricing-action[data-cde-action="compare"].cde-fp__pricing-action--active {
    color: var(--ma-accent) !important;
}

/* ══════════════════════════════════════════════════════════════
 * 6a-sold. SOLD / Reserved overlay & notice
 * ══════════════════════════════════════════════════════════════ */

/* Diagonal banner on gallery */
.cde-fp__gallery-sold-banner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    overflow: hidden;
    width: 150px;
    height: 150px;
    pointer-events: none;
}
.cde-fp__gallery-sold-banner span {
    display: block;
    position: absolute;
    top: 28px;
    right: -35px;
    width: 225px;
    padding: 8px 0;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Desaturate gallery images for sold vehicles */
.cde-fp__gallery--sold .cde-fp__gallery-big {
    filter: saturate(0.45) brightness(0.8);
    transition: filter 0.3s;
}
.cde-fp__gallery--sold:hover .cde-fp__gallery-big {
    filter: saturate(0.65) brightness(0.88);
}

/* Sold notice replacing CTA buttons */
.cde-fp__sold-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.cde-fp__sold-notice i {
    font-size: 1.2rem;
}

/* ══════════════════════════════════════════════════════════════
 * 6b. Loan Calculator
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__loan {
    margin: 0 0 32px;
}

.cde-fp__loan-card {
    position: relative;
    padding: 28px;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0 32px;
}

.cde-fp__loan-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ma-text);
    margin: 0 0 20px;
}

.cde-fp__loan-title i {
    color: var(--ma-accent);
    font-size: 20px;
}

/* Left: input fields */
.cde-fp__loan-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cde-fp__loan-field {
    margin-bottom: 16px;
}
.cde-fp__loan-field:last-child {
    margin-bottom: 0;
}

.cde-fp__loan-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ma-text-sec);
    margin-bottom: 6px;
}

.cde-fp__loan-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ma-card-border);
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color var(--ma-transition);
}

.cde-fp__loan-input-wrap:focus-within {
    border-color: var(--ma-accent);
}

.cde-fp__loan-prefix {
    font-size: 14px;
    font-weight: 600;
    color: var(--ma-text-sec);
    flex-shrink: 0;
}

.cde-fp__loan-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ma-text);
    padding: 10px 0;
    font-family: inherit;
    min-width: 0;
}

.cde-fp__loan-input[readonly] {
    color: var(--ma-text-dim);
}

/* Range slider */
.cde-fp__loan-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-top: 8px;
    cursor: pointer;
}

.cde-fp__loan-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ma-accent);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cde-fp__loan-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.cde-fp__loan-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ma-accent);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
    border: none;
    cursor: pointer;
}

/* Term buttons */
.cde-fp__loan-term-btns {
    display: flex;
    gap: 8px;
}

.cde-fp__loan-term-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ma-text-sec);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ma-card-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--ma-transition);
    font-family: inherit;
}

.cde-fp__loan-term-btn:hover {
    background: rgba(0, 245, 255, 0.08);
    color: var(--ma-accent);
    border-color: rgba(0, 245, 255, 0.3);
}

.cde-fp__loan-term-btn--active {
    background: rgba(0, 245, 255, 0.15);
    color: var(--ma-accent);
    border-color: var(--ma-accent);
}

/* Rate display */
.cde-fp__loan-rate {
    font-size: 20px;
    font-weight: 800;
    color: var(--ma-accent);
    letter-spacing: -0.02em;
}

/* Right: result panel */
.cde-fp__loan-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--ma-card-border);
    padding-left: 32px;
}

.cde-fp__loan-result-main {
    text-align: center;
    margin-bottom: 20px;
}

.cde-fp__loan-result-label {
    display: block;
    font-size: 13px;
    color: var(--ma-text-sec);
    font-weight: 500;
    margin-bottom: 4px;
}

.cde-fp__loan-result-amount {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--ma-accent);
    letter-spacing: -0.02em;
}

.cde-fp__loan-result-details {
    border-top: 1px solid var(--ma-card-border);
    padding-top: 16px;
    margin-bottom: 0;
}

.cde-fp__loan-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    color: var(--ma-text-sec);
}

.cde-fp__loan-note {
    grid-column: 1 / -1;
    font-size: 11px;
    color: var(--ma-text-dim);
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .cde-fp__loan-card {
        display: block;
        padding: 24px;
    }
    .cde-fp__loan-result {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--ma-card-border);
        padding-top: 16px;
        margin-top: 16px;
    }
}

/* ── Light Theme ── */
html[data-theme="light"] .cde-fp__loan-input-wrap {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .cde-fp__loan-input-wrap:focus-within {
    border-color: #0891b2;
}
html[data-theme="light"] .cde-fp__loan-slider {
    background: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-fp__loan-slider::-webkit-slider-thumb {
    background: #0891b2;
    box-shadow: 0 0 8px rgba(8, 145, 178, 0.4);
}
html[data-theme="light"] .cde-fp__loan-slider::-moz-range-thumb {
    background: #0891b2;
    box-shadow: 0 0 8px rgba(8, 145, 178, 0.4);
}
html[data-theme="light"] .cde-fp__loan-term-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #6b7280;
}
html[data-theme="light"] .cde-fp__loan-term-btn:hover {
    background: rgba(8, 145, 178, 0.06);
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.3);
}
html[data-theme="light"] .cde-fp__loan-term-btn--active {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    border-color: #0891b2;
}
html[data-theme="light"] .cde-fp__loan-rate {
    color: #0891b2;
}
html[data-theme="light"] .cde-fp__loan-result-amount {
    color: #0891b2;
}

/* Apply button inside result panel */
.cde-fp__loan-apply-btn {
    flex: none;
    width: 100%;
    margin-top: auto;
    margin-bottom: 10px;
    padding: 16px 20px;
    background: rgba(194, 158, 50, 0.12);
    border: 1px solid rgba(194, 158, 50, 0.35);
    color: #c9a84a;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    animation: none;
}
.cde-fp__loan-apply-btn:hover {
    background: rgba(194, 158, 50, 0.25);
    border-color: rgba(194, 158, 50, 0.6);
    color: #d4b455;
    transform: none;
    box-shadow: none;
}
html[data-theme="light"] .cde-fp__loan-apply-btn {
    background: rgba(160, 130, 30, 0.1);
    border-color: rgba(160, 130, 30, 0.3);
    color: #8a7020;
}
html[data-theme="light"] .cde-fp__loan-apply-btn:hover {
    background: rgba(160, 130, 30, 0.18);
    border-color: rgba(160, 130, 30, 0.45);
    color: #7a6218;
}

/* ══════════════════════════════════════════════════════════════
 * 6b-1b. SEO Content Section
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__seo-content {
    margin-top: 40px;
}
.cde-fp__seo-content-body {
    line-height: 1.85;
    font-size: .92rem;
    color: var(--aurora-text-secondary, rgba(255,255,255,.72));
    padding: 0 4px;
}
html[data-theme="light"] .cde-fp__seo-content-body {
    color: var(--aurora-text-secondary, rgba(0,0,0,.65));
}
.cde-fp__seo-content-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.6em 0 .6em;
    color: var(--aurora-text-primary, rgba(255,255,255,.92));
}
html[data-theme="light"] .cde-fp__seo-content-body h3 {
    color: var(--aurora-text-primary, rgba(0,0,0,.85));
}
.cde-fp__seo-content-body p {
    margin: 0 0 .8em;
}
.cde-fp__seo-content-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 .8em;
}
.cde-fp__seo-content-body ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: .35em;
}
.cde-fp__seo-content-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--aurora-accent, #00f5ff);
    font-weight: 700;
}
html[data-theme="light"] .cde-fp__seo-content-body ul li::before {
    color: #0891b2;
}
.cde-fp__seo-content-body dl {
    margin: 0;
}
.cde-fp__seo-content-body dt {
    font-weight: 600;
    margin-top: .8em;
    color: var(--aurora-text-primary, rgba(255,255,255,.92));
}
html[data-theme="light"] .cde-fp__seo-content-body dt {
    color: var(--aurora-text-primary, rgba(0,0,0,.85));
}
.cde-fp__seo-content-body dd {
    margin: .25em 0 0 0;
    padding-left: 0;
}

/* ══════════════════════════════════════════════════════════════
 * 6b-2. Vehicle Request CTA
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__vr-cta {
    margin-top: 40px;
    margin-bottom: 40px;
}
.cde-fp__vr-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 28px;
    border-radius: 14px;
    border: 1px dashed rgba(14, 116, 144, 0.35);
    background: rgba(14, 116, 144, 0.06);
}
.cde-fp__vr-cta-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #67e8f9;
    margin: 0 0 8px;
}
.cde-fp__vr-cta-title i {
    font-size: 1.2rem;
}
.cde-fp__vr-cta-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 20px;
    line-height: 1.6;
    max-width: 420px;
}
.cde-fp__vr-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    border: 1px solid rgba(14, 116, 144, 0.45);
    background: rgba(14, 116, 144, 0.15);
    color: #67e8f9;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cde-fp__vr-cta-btn:hover {
    background: rgba(14, 116, 144, 0.3);
    border-color: rgba(14, 116, 144, 0.65);
    transform: translateY(-1px);
    color: #a5f3fc;
}
.cde-fp__vr-cta-btn i {
    font-size: 1rem;
}

/* Light theme */
html[data-theme="light"] .cde-fp__vr-cta-inner {
    border-color: rgba(14, 116, 144, 0.25);
    background: rgba(14, 116, 144, 0.04);
}
html[data-theme="light"] .cde-fp__vr-cta-title {
    color: #0e7490;
}
html[data-theme="light"] .cde-fp__vr-cta-desc {
    color: rgba(0, 0, 0, 0.5);
}
html[data-theme="light"] .cde-fp__vr-cta-btn {
    background: rgba(14, 116, 144, 0.1);
    border-color: rgba(14, 116, 144, 0.3);
    color: #0e7490;
}
html[data-theme="light"] .cde-fp__vr-cta-btn:hover {
    background: rgba(14, 116, 144, 0.2);
    border-color: rgba(14, 116, 144, 0.5);
    color: #065666;
}

/* ══════════════════════════════════════════════════════════════
 * 6c. Loan Application Modal
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__la-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10004;
    align-items: center;
    justify-content: center;
}
.cde-fp__la-modal[aria-hidden="false"] {
    display: flex;
}

.cde-fp__la-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: cde-la-fade-in 0.3s ease-out;
}

.cde-fp__la-panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    margin: 16px;
    padding: 28px 28px 24px;
    background: rgba(12, 12, 18, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ma-radius, 16px);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
    animation: cde-la-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.cde-fp__la-panel::-webkit-scrollbar { width: 6px; }
.cde-fp__la-panel::-webkit-scrollbar-track { background: transparent; }
.cde-fp__la-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

@keyframes cde-la-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cde-la-slide-up {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.cde-fp__la-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.cde-fp__la-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ma-text, #f0f0f0);
}
.cde-fp__la-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ma-text-sec, #d1d5db);
}
.cde-fp__la-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--ma-text-sec, #d1d5db);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cde-fp__la-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ma-text, #f0f0f0);
}

/* Form */
.cde-fp__la-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Sections / fieldset */
.cde-fp__la-section {
    border: none;
    margin: 0 0 8px;
    padding: 0;
}
.cde-fp__la-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ma-accent, #00f5ff);
    margin-bottom: 14px;
    padding: 10px 0 8px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.12);
    width: 100%;
}
.cde-fp__la-legend i {
    font-size: 15px;
}

/* Vehicle card */
.cde-fp__la-vehicle-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--ma-radius-sm, 10px);
}
.cde-fp__la-vehicle-img {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.cde-fp__la-vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.cde-fp__la-vehicle-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ma-text, #f0f0f0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cde-fp__la-vehicle-meta {
    font-size: 12px;
    color: var(--ma-text-sec, #d1d5db);
}

/* Field rows */
.cde-fp__la-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.cde-fp__la-row--2 > .cde-fp__la-field { flex: 1; }
.cde-fp__la-row--3 > .cde-fp__la-field { flex: 1; }
.cde-fp__la-field--narrow { max-width: 140px; flex: 0 0 auto !important; }

/* Individual field */
.cde-fp__la-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cde-fp__la-field > label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ma-text-sec, #d1d5db);
}
.cde-fp__la-req {
    color: #ef4444;
    font-weight: 700;
}

/* Inputs, selects, textareas */
.cde-fp__la-field input,
.cde-fp__la-field select,
.cde-fp__la-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--ma-text, #f0f0f0);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}
.cde-fp__la-field input::placeholder,
.cde-fp__la-field textarea::placeholder {
    color: var(--ma-text-dim, #d1d5db);
}
.cde-fp__la-field input:focus,
.cde-fp__la-field select:focus,
.cde-fp__la-field textarea:focus {
    border-color: var(--ma-accent, #00f5ff);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1), inset 0 0 0 1px rgba(0, 245, 255, 0.15);
}
.cde-fp__la-field input[readonly] {
    color: var(--ma-accent, #00f5ff);
    font-weight: 600;
    background: rgba(0, 245, 255, 0.04);
    border-color: rgba(0, 245, 255, 0.15);
}
.cde-fp__la-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.cde-fp__la-field select option {
    background: #1a1a2e;
    color: #f0f0f0;
}
.cde-fp__la-field textarea {
    resize: vertical;
    min-height: 64px;
}

/* Radio groups */
.cde-fp__la-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.cde-fp__la-radio {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ma-text-sec, #d1d5db);
    cursor: pointer;
}
.cde-fp__la-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ma-accent, #00f5ff);
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* Upload button */
.cde-fp__la-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.cde-fp__la-upload input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.cde-fp__la-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--ma-text-sec, #d1d5db);
    transition: all 0.2s;
    white-space: nowrap;
}
.cde-fp__la-upload:hover .cde-fp__la-upload-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ma-accent, #00f5ff);
    color: var(--ma-accent, #00f5ff);
}
.cde-fp__la-upload-name {
    font-size: 11px;
    color: var(--ma-accent, #00f5ff);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}
.cde-fp__la-hint {
    font-size: 11px;
    color: var(--ma-text-dim, #9ca3af);
    margin: 6px 0 0;
}

/* Checkbox toggle */
.cde-fp__la-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ma-text-sec, #d1d5db);
    user-select: none;
}
.cde-fp__la-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ma-accent, #00f5ff);
    cursor: pointer;
}
.cde-fp__la-guarantor-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Light theme */
html[data-theme="light"] .cde-fp__la-upload-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #6b7280;
}
html[data-theme="light"] .cde-fp__la-upload:hover .cde-fp__la-upload-btn {
    background: rgba(8, 145, 178, 0.06);
    border-color: #0891b2;
    color: #0891b2;
}
html[data-theme="light"] .cde-fp__la-upload-name {
    color: #0891b2;
}
html[data-theme="light"] .cde-fp__la-guarantor-fields {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* Consent */
.cde-fp__la-consent {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
}
.cde-fp__la-consent p {
    font-size: 12px;
    color: var(--ma-text-dim, #9ca3af);
    margin: 0;
    line-height: 1.6;
}

/* Error */
.cde-fp__la-error {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Submit */
.cde-fp__la-submit {
    width: 100%;
}
.cde-fp__la-submit-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cde-fp__la-submit-loader i {
    animation: cde-la-spin 0.8s linear infinite;
}
@keyframes cde-la-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Success */
.cde-fp__la-success {
    text-align: center;
    padding: 40px 20px;
}
.cde-fp__la-checkmark {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}
.cde-fp__la-success-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ma-text, #f0f0f0);
    margin: 0 0 8px;
}
.cde-fp__la-success-sub {
    font-size: 14px;
    color: var(--ma-text-sec, #d1d5db);
    margin: 0;
}

/* ── Light Theme ── */
html[data-theme="light"] .cde-fp__la-panel {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-fp__la-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .cde-fp__la-legend {
    color: #0891b2;
    border-bottom-color: rgba(8, 145, 178, 0.15);
}
html[data-theme="light"] .cde-fp__la-vehicle-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .cde-fp__la-field input,
html[data-theme="light"] .cde-fp__la-field select,
html[data-theme="light"] .cde-fp__la-field textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1f2937;
}
html[data-theme="light"] .cde-fp__la-field input:focus,
html[data-theme="light"] .cde-fp__la-field select:focus,
html[data-theme="light"] .cde-fp__la-field textarea:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.1);
}
html[data-theme="light"] .cde-fp__la-field input[readonly] {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.04);
    border-color: rgba(8, 145, 178, 0.15);
}
html[data-theme="light"] .cde-fp__la-field select option {
    background: #fff;
    color: #1f2937;
}

/* ── Mobile: full-width bottom sheet ── */
@media (max-width: 767px) {
    .cde-fp__la-modal[aria-hidden="false"] {
        align-items: flex-end;
    }
    .cde-fp__la-panel {
        margin: 0;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
        animation: cde-la-sheet-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes cde-la-sheet-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .cde-fp__la-row--2,
    .cde-fp__la-row--3 {
        flex-wrap: wrap;
    }
    .cde-fp__la-row--2 > .cde-fp__la-field,
    .cde-fp__la-row--3 > .cde-fp__la-field {
        min-width: calc(50% - 6px);
    }
    .cde-fp__la-field--narrow {
        max-width: none;
    }
}

/* ══════════════════════════════════════════════════════════════
 * 7. Specs Bento Grid
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__specs {
    margin: 0 16px 32px;
}

/* ── Specs Sub-Group (shared) ── */
.cde-fp__specs-group {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
}
.cde-fp__specs-group:last-child {
    margin-bottom: 0;
}

/* ── Vertical sidebar label ── */
.cde-fp__specs-group-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
    padding: 4px 0;
    gap: 0;
}

.cde-fp__specs-group-en {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Noto Sans SC', 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ma-accent);
    white-space: nowrap;
}
/* PC vertical: abbreviation only (specs sidebar labels) */
.cde-fp__specs-group-label .cde-fp__en-full  { display: none; }
.cde-fp__specs-group-label .cde-fp__en-short { display: inline; }

.cde-fp__specs-group-line {
    flex: 1;
    width: 2px;
    min-height: 24px;
    margin: 8px 0;
    background: linear-gradient(180deg, var(--ma-accent), transparent);
    border-radius: 1px;
    opacity: 0.4;
}

.cde-fp__specs-group-ja {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 500;
    color: var(--ma-text-dim);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ── Content body beside the label ── */
.cde-fp__specs-group-body {
    flex: 1;
    min-width: 0;
}

/* ── Layout A: 2-column key-value table (基本情報) ── */
.cde-fp__specs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius-sm);
    overflow: hidden;
    box-shadow: var(--ma-glass-shadow);
}
/* Gradient top accent line */
.cde-fp__specs-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ma-accent, #00f5ff), var(--ma-purple, #a855f7));
    z-index: 1;
}
.cde-fp__specs-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}
/* Zebra striping */
.cde-fp__specs-table-row:nth-child(odd) {
    background: rgba(255,255,255,0.015);
}
.cde-fp__specs-table-row:nth-child(even) {
    background: transparent;
}
/* Hover: left accent bar + glow */
.cde-fp__specs-table-row:hover {
    background: rgba(0,245,255,0.04);
    border-left-color: var(--ma-accent, #00f5ff);
    box-shadow: inset 4px 0 12px -4px rgba(0,245,255,0.12);
}
/* Remove bottom border on last rows (2-col: last 1 or 2 items) */
.cde-fp__specs-table-row:nth-last-child(-n+2) {
    border-bottom: none;
}
.cde-fp__specs-table-label {
    font-size: 15px;
    color: var(--ma-text-sec);
    letter-spacing: 0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cde-fp__specs-table-emoji {
    font-style: normal;
    font-size: 16px;
    filter: grayscale(1) brightness(2) sepia(1) hue-rotate(140deg) saturate(3);
    opacity: 0.8;
}
.cde-fp__specs-table-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--ma-text);
    text-align: right;
    word-break: break-all;
}

/* ── Layout B: Icon bento card grid (エンジン・駆動系) ── */
.cde-fp__specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cde-fp__spec-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: none;
    border-radius: var(--ma-radius-sm);
    box-shadow: var(--ma-glass-shadow);
    transition: transform var(--ma-transition), background var(--ma-transition), box-shadow var(--ma-transition);
}

.cde-fp__spec-card:hover {
    background: var(--ma-card-hover);
    transform: translateY(-2px);
}

.cde-fp__spec-card--nodata,
.cde-fp__specs-trio-card--nodata {
    opacity: 0.35;
}
.cde-fp__spec-card--nodata:hover,
.cde-fp__specs-trio-card--nodata:hover {
    transform: none;
    background: var(--ma-card-bg);
    border-color: var(--ma-card-border);
}

.cde-fp__spec-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0,245,255,0.08);
    color: var(--ma-accent);
    font-size: 16px;
}

.cde-fp__spec-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cde-fp__spec-label {
    font-size: 11px;
    color: var(--ma-text-sec);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cde-fp__spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ma-text);
    word-break: break-all;
}

/* ── Layout C: 3-equal large cards (寸法・燃費) ── */
.cde-fp__specs-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cde-fp__specs-trio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 12px;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius-sm);
    box-shadow: var(--ma-glass-shadow);
    transition: transform var(--ma-transition), background var(--ma-transition), border-color var(--ma-transition), box-shadow var(--ma-transition);
}
.cde-fp__specs-trio-card:hover {
    background: var(--ma-card-hover);
    border-color: rgba(0,245,255,0.15);
    transform: translateY(-2px);
}
.cde-fp__specs-trio-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0,245,255,0.08);
    color: var(--ma-accent);
    font-size: 18px;
    margin-bottom: 10px;
}
.cde-fp__specs-trio-label {
    font-size: 11px;
    color: var(--ma-text-sec);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.cde-fp__specs-trio-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--ma-text);
    line-height: 1.3;
    word-break: break-all;
}
.cde-fp__specs-trio-sub {
    font-size: 11px;
    color: var(--ma-text-sec);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
 * 8. Equipment Section
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__equipment {
    margin: 0 16px 32px;
    padding-left: 44px;
    display: flex;
    gap: 16px;
}

.cde-fp__eq-group {
    flex: 1;
    min-width: 0;
}

/* ── Horizontal title: EN — line — JA ── */
.cde-fp__eq-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ma-text-secondary, rgba(255,255,255,0.6));
}

.cde-fp__eq-group-en {
    font-family: 'Noto Sans SC', 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}
/* Equipment titles always horizontal — full name only */
.cde-fp__eq-group-en.cde-fp__en-short { display: none; }

.cde-fp__eq-group-line {
    flex: 1;
    height: 2px;
    min-width: 16px;
    background: linear-gradient(90deg, currentColor, transparent);
    opacity: 0.4;
}

.cde-fp__eq-group-ja {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0.7;
}

/* ── Group accent colors ── */
.cde-fp__eq-group--standard .cde-fp__eq-group-title {
    color: var(--ma-green, #10b981);
}
.cde-fp__eq-group--ext_int .cde-fp__eq-group-title {
    color: var(--ma-accent, #00f5ff);
}
.cde-fp__eq-group--safety .cde-fp__eq-group-title {
    color: var(--ma-purple, #a855f7);
}

/* ── Chips grid ── */
.cde-fp__eq-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* ── Dog Tag chip — glossy black metallic ── */
.cde-fp__eq-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 6px 14px 6px 10px;
    white-space: nowrap;
    color: rgba(255,255,255,0.82);
    background: linear-gradient(160deg, #2a2a2e 0%, #1a1a1e 40%, #222226 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.13);
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 -1px 0 rgba(0,0,0,0.3) inset,
        0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    transition: all var(--ma-transition);
}

/* Left accent bar */
.cde-fp__eq-chip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    border-radius: 0 1px 1px 0;
}
.cde-fp__eq-group--standard .cde-fp__eq-chip::before {
    background: var(--ma-green, #10b981);
}
.cde-fp__eq-group--ext_int .cde-fp__eq-chip::before {
    background: var(--ma-accent, #00f5ff);
}
.cde-fp__eq-group--safety .cde-fp__eq-chip::before {
    background: var(--ma-purple, #a855f7);
}

.cde-fp__eq-chip:hover {
    border-color: rgba(255,255,255,0.14);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 -1px 0 rgba(0,0,0,0.3) inset,
        0 3px 8px rgba(0,0,0,0.4);
}

.cde-fp__eq-chip--empty {
    color: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.05);
    background: linear-gradient(160deg, #1e1e22 0%, #161618 40%, #1a1a1e 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.02) inset,
        0 -1px 0 rgba(0,0,0,0.25) inset,
        0 1px 3px rgba(0,0,0,0.25);
    pointer-events: none;
}
.cde-fp__eq-chip--empty::before {
    background: rgba(255,255,255,0.04) !important;
    box-shadow: inset 1px 0 3px rgba(0,0,0,0.6);
}
html[data-theme="light"] .cde-fp__eq-chip--empty {
    color: rgba(0,0,0,0.18);
    border-color: rgba(0,0,0,0.06);
    background: linear-gradient(160deg, #e8e8ea 0%, #f0f0f2 40%, #eaeaec 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.5) inset,
        0 -1px 0 rgba(0,0,0,0.05) inset,
        0 1px 2px rgba(0,0,0,0.06);
}
html[data-theme="light"] .cde-fp__eq-chip--empty::before {
    background: rgba(0,0,0,0.08) !important;
    box-shadow: inset 1px 0 2px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════════════════════
 * 9. Condition & Radar Chart
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__condition {
    margin: 0 16px 32px;
}

.cde-fp__condition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.cde-fp__radar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
}

.cde-fp__radar {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.cde-fp__radar-labels {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--ma-text-sec);
}

.cde-fp__condition-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--ma-card-bg);
    backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--ma-glass-blur)) saturate(1.5);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
    overflow: hidden;
}

.cde-fp__condition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ma-card-border);
    transition: background var(--ma-transition);
}

.cde-fp__condition-row:last-child {
    border-bottom: none;
}

.cde-fp__condition-row:hover {
    background: var(--ma-card-hover);
}

.cde-fp__condition-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ma-text-sec);
}

.cde-fp__condition-label i {
    color: var(--ma-accent);
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.cde-fp__condition-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ma-text);
}

.cde-fp__condition-value--good {
    color: var(--ma-green);
}

.cde-fp__condition-value--warn {
    color: var(--ma-red);
}

.cde-fp__condition-value--empty {
    color: var(--ma-text-sec);
    opacity: 0.4;
}

/* Tooltip for long condition values */
.cde-fp__condition-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: var(--ma-text-sec);
    cursor: help;
    vertical-align: middle;
}
.cde-fp__condition-tip i {
    font-size: 13px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.cde-fp__condition-tip:hover i,
.cde-fp__condition-tip:focus i {
    opacity: 1;
    color: var(--ma-accent);
}
.cde-fp__condition-tip__body {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 200px;
    max-width: 320px;
    padding: 10px 14px;
    background: var(--ma-card-bg);
    color: var(--ma-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid var(--ma-card-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    white-space: normal;
    word-break: break-all;
    z-index: 10;
}
.cde-fp__condition-tip__body::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 6px;
    border: 6px solid transparent;
    border-top-color: var(--ma-card-border);
}
.cde-fp__condition-tip:hover .cde-fp__condition-tip__body,
.cde-fp__condition-tip:focus .cde-fp__condition-tip__body {
    display: block;
}

/* ══════════════════════════════════════════════════════════════
 * 10. Similar Vehicles
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__similar {
    margin: 0 16px 32px;
}

.cde-fp__similar-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.cde-fp__similar-scroll::-webkit-scrollbar {
    height: 4px;
}
.cde-fp__similar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.cde-fp__similar-scroll::-webkit-scrollbar-thumb {
    background: var(--ma-card-border);
    border-radius: 2px;
}

.cde-fp__similar-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--ma-card-bg);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius-sm);
    box-shadow: var(--ma-glass-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--ma-transition);
}

.cde-fp__similar-card:hover {
    border-color: rgba(0,245,255,0.2);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.cde-fp__similar-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--ma-bg-subtle);
}

.cde-fp__similar-card-body {
    padding: 14px;
}

.cde-fp__similar-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ma-text);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cde-fp__similar-card-grade {
    font-size: 11px;
    color: var(--ma-text-sec);
    margin-bottom: 8px;
}

.cde-fp__similar-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ma-accent);
}

.cde-fp__similar-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--ma-text-dim);
}

/* Empty state */
.cde-fp__similar[data-cde-empty] {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
 * 10a. Admin Panel (staff-only)
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__admin-panel {
    background: var(--ma-card-bg);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
    padding: 16px;
    margin-bottom: 16px;
}

.cde-fp__admin-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #f97316;
    margin-bottom: 12px;
}

.cde-fp__admin-panel-header i {
    font-size: 14px;
}

.cde-fp__admin-panel-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cde-fp__admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background-color: rgba(249, 115, 22, 0.15) !important;
    background-image: none !important;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: var(--ma-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ma-transition);
}

.cde-fp__admin-btn:hover {
    background-color: rgba(249, 115, 22, 0.28) !important;
    border-color: rgba(249, 115, 22, 0.55);
    color: #fff !important;
    text-decoration: none;
}

.cde-fp__admin-btn i {
    font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
 * 10b. Staff Panel (担当者)
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__staff-card {
    background: var(--ma-card-bg);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
    padding: 20px 24px;
}

.cde-fp__staff-row {
    padding: 10px 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cde-fp__staff-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.06);
    border: 2px solid var(--ma-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--ma-accent);
    flex-shrink: 0;
    overflow: hidden;
}

.cde-fp__staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

html[data-theme="light"] .cde-fp__admin-panel {
    border-color: rgba(234, 88, 12, 0.15);
}
html[data-theme="light"] .cde-fp__admin-btn {
    color: #ea580c !important;
    background-color: rgba(234, 88, 12, 0.08) !important;
    border-color: rgba(234, 88, 12, 0.25);
}
html[data-theme="light"] .cde-fp__admin-btn:hover {
    background-color: rgba(234, 88, 12, 0.15) !important;
    color: #ea580c !important;
}

html[data-theme="light"] .cde-fp__staff-avatar {
    background: rgba(8, 145, 178, 0.06);
}

.cde-fp__staff-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cde-fp__staff-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ma-text);
    line-height: 1.2;
}

.cde-fp__staff-role {
    font-size: 10px;
    color: var(--ma-text-sec);
    line-height: 1.2;
}

.cde-fp__staff-sns {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.cde-fp__staff-sns-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--ma-card-border);
    font-size: 20px;
    text-decoration: none !important;
    transition: all var(--ma-transition);
}

/* Brand colors */
.cde-fp__staff-sns-link--line      { color: #06C755 !important; }
.cde-fp__staff-sns-link--instagram { color: #E4405F !important; }
.cde-fp__staff-sns-link--whatsapp  { color: #25D366 !important; }
.cde-fp__staff-sns-link--wechat    { color: #07C160 !important; }

.cde-fp__staff-sns-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none !important;
    transform: scale(1.1);
}

html[data-theme="light"] .cde-fp__staff-sns-link {
    background: rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .cde-fp__staff-sns-link:hover {
    background: rgba(0, 0, 0, 0.07) !important;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Staff comment (AI vehicle highlight) */
.cde-fp__staff-comment {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--ma-card-border);
    font-size: 12px;
    color: var(--ma-text-sec);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
 * 10c. Shop Panel (店舗情報)
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__shop-card {
    display: block !important;
    background: var(--ma-card-bg);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    box-shadow: var(--ma-glass-shadow);
    overflow: hidden;
}

.cde-fp__shop-header {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--ma-bg-subtle);
    border-bottom: 1px solid var(--ma-card-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ma-text);
}

.cde-fp__shop-header i {
    color: var(--ma-accent);
    font-size: 16px;
}

.cde-fp__shop-photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
}

.cde-fp__shop-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cde-fp__shop-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--ma-bg-subtle);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--ma-text-dim);
}

.cde-fp__shop-body {
    display: block !important;
    padding: 20px;
    color: var(--ma-text);
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.cde-fp__shop-name {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ma-text) !important;
    margin: 0 0 8px !important;
}

.cde-fp__shop-desc {
    display: block !important;
    font-size: 13px !important;
    color: var(--ma-text-sec) !important;
    line-height: 1.7;
    margin: 0 0 16px !important;
}

.cde-fp__shop-details {
    display: block !important;
    border-top: 1px solid var(--ma-card-border);
    padding-top: 12px;
}

.cde-fp__shop-row {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--ma-text-sec);
}

.cde-fp__shop-row i {
    color: var(--ma-accent);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cde-fp__shop-row a {
    color: var(--ma-text-sec);
    text-decoration: none;
    transition: color 0.2s;
}

.cde-fp__shop-row a:hover {
    color: var(--ma-accent);
}

/* ══════════════════════════════════════════════════════════════
 * 10b. Mobile Floating Tools FAB
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__tools-fab {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
 * 11. Mobile Sticky CTA Bar (full-width dual buttons)
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 16px 14px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.cde-fp__sticky--visible {
    transform: translateY(0);
}

.cde-fp__sticky-btns {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
}

.cde-fp__sticky-btn {
    flex: 1 1 0% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    width: auto !important;
    height: 54px !important;
    border-radius: 14px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    letter-spacing: 0.02em;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.cde-fp__sticky-btn i {
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.cde-fp__sticky-btn span {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* ── Call button ── */
.cde-fp__sticky-btn--call {
    background: rgba(0, 245, 255, 0.12) !important;
    border: 1px solid rgba(0, 245, 255, 0.3) !important;
    color: #fff !important;
}

.cde-fp__sticky-btn--call:hover {
    background: rgba(0, 245, 255, 0.22) !important;
    border-color: rgba(0, 245, 255, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Inquiry button (breathing glow — shared base) ── */
.cde-fp__sticky-btn--inquiry {
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    background-color: #e8680a !important;
    color: #fff !important;
    animation: ma-breathe 3s ease-in-out infinite;
}

.cde-fp__sticky-btn--inquiry:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
}

/* (Variants A/B/C merged into base — finalized as C-bar + A-buttons) */

/* ══════════════════════════════════════════════════════════════
 * 12. SVG Radar Chart Styles
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__radar .radar-grid {
    fill: none;
    stroke: var(--ma-card-border);
    stroke-width: 0.5;
}

.cde-fp__radar .radar-axis {
    stroke: var(--ma-card-border);
    stroke-width: 0.5;
}

.cde-fp__radar .radar-area {
    fill: rgba(0,245,255,0.15);
    stroke: var(--ma-accent);
    stroke-width: 2;
    stroke-linejoin: round;
}

.cde-fp__radar .radar-dot {
    fill: var(--ma-accent);
    filter: drop-shadow(0 0 4px rgba(0,245,255,0.6));
}

.cde-fp__radar .radar-label {
    fill: var(--ma-text-sec);
    font-size: 11px;
    dominant-baseline: central;
}

/* Unrated (grey) variants */
.cde-fp__radar .radar-area--unrated {
    fill: rgba(128,128,128,0.08);
    stroke: rgba(128,128,128,0.4);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.cde-fp__radar .radar-dot--unrated {
    fill: rgba(128,128,128,0.5);
    filter: none;
}

.cde-fp__radar .radar-label--unrated {
    fill: rgba(128,128,128,0.6);
    font-size: 10px;
}

/* Condition value muted (---) */
.cde-fp__condition-value--muted {
    color: rgba(128,128,128,0.5) !important;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
 * 13. Responsive — Tablet (768–1023px)
 * ══════════════════════════════════════════════════════════════ */

/* Gallery: stack when narrower than 1700px */
@media (max-width: 1699px) {
    .cde-fp__gallery {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cde-fp__gallery-main {
        flex: 0 0 auto;
        width: 100%;
    }

    .cde-fp__gallery-thumbs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 0 16px;
        max-height: none;
    }

    .cde-fp__gallery-thumb {
        flex: 0 0 calc((100% - 24px) / 5);
        height: auto;
        aspect-ratio: 4 / 3;
        scroll-snap-align: start;
    }
}

/* Mobile/Tablet: revert to single column */
@media (max-width: 1199px) {
    .cde-fp__layout {
        flex-direction: column;
        align-items: stretch;
    }
    .cde-fp__main {
        flex: 1 1 auto;
        width: 100%;
    }
    .cde-fp__sidebar {
        flex: 1 1 auto;
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 0 16px;
        width: 100%;
    }
    .cde-fp__sidebar .cde-fp__pricing {
        margin: 0 0 24px;
    }

    /* Show mobile pricing after stats bar, hide sidebar pricing */
    .cde-fp__mobile-pricing {
        display: block !important;
    }
    .cde-fp__sidebar .cde-fp__pricing,
    .cde-fp__sidebar .cde-fp__admin-panel {
        display: none;
    }
}

@media (max-width: 1023px) {
    .cde-fp__specs-table {
        grid-template-columns: 1fr;
    }
    /* Single column: only last row hides border */
    .cde-fp__specs-table-row:nth-last-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .cde-fp__specs-table-row:last-child {
        border-bottom: none;
    }

    .cde-fp__specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cde-fp__specs-trio {
        grid-template-columns: repeat(3, 1fr);
    }

    .cde-fp__condition-grid {
        grid-template-columns: 1fr;
    }

    .cde-fp__sticky {
        display: flex;
    }
}

/* ══════════════════════════════════════════════════════════════
 * 14. Responsive — Mobile (<768px)
 * ══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .cde-fp--midnight {
        font-size: 14px;
        padding: 0 0 90px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .cde-fp__layout {
        padding: 0 15px;
        overflow: hidden;
        max-width: 100%;
    }

    .cde-fp__main {
        overflow: hidden;
        max-width: 100%;
    }

    .cde-fp__sidebar {
        padding: 0 !important;
        overflow: hidden;
        max-width: 100%;
    }

    .cde-fp__specs-table::before {
        display: none;
    }

    .cde-fp__gallery {
        flex-direction: column;
        gap: 6px;
    }

    .cde-fp__gallery-main {
        border-radius: 0;
    }

    .cde-fp__gallery-arrow {
        opacity: 1;
        width: 48px;
        height: 48px;
        font-size: 22px;
        background: rgba(0, 0, 0, 0.55);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    .cde-fp__gallery-arrow--prev { left: 8px; }
    .cde-fp__gallery-arrow--next { right: 8px; }

    .cde-fp__gallery-sold-banner {
        width: 120px;
        height: 120px;
    }
    .cde-fp__gallery-sold-banner span {
        top: 22px;
        right: -38px;
        font-size: 11px;
        padding: 6px 0;
    }

    .cde-fp__gallery-thumbs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding: 0 10px;
        max-height: none;
    }

    .cde-fp__gallery-thumb {
        flex: 0 0 calc((100% - 8px) / 3);
        height: auto;
        aspect-ratio: 4 / 3;
        scroll-snap-align: start;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Pop animation when arrow navigation scrolls to thumb */
    .cde-fp__gallery-thumb--pop {
        animation: cde-thumb-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes cde-thumb-pop {
        0%   { transform: scale(0.85); opacity: 0.5; }
        50%  { transform: scale(1.08); }
        100% { transform: scale(1); opacity: 1; }
    }

    .cde-fp__gallery-title {
        font-size: 16px;
        padding: 30px 14px 12px;
    }

    /* Lightbox: full-width on mobile */
    .cde-fp__lightbox-stage {
        width: 100vw;
        height: 85vh;
    }
    .cde-fp__lightbox-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .cde-fp__lightbox-prev,
    .cde-fp__lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .cde-fp__lightbox-prev { left: 8px; }
    .cde-fp__lightbox-next { right: 8px; }

    /* ── Stats: 3×2 compact glass grid (mobile) ── */
    .cde-fp__stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 0 12px 20px;
        padding: 0;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .cde-fp__stats-brand {
        display: none !important;
    }

    .cde-fp__stats-divider {
        display: none !important;
    }

    .cde-fp__stat {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        padding: 10px 4px !important;
        min-width: 0;
        background: rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: none !important;
        border-radius: 12px !important;
        width: auto !important;
    }

    .cde-fp__stat-icon {
        font-size: 18px !important;
        margin-bottom: 0;
    }

    .cde-fp__stat-label {
        min-width: 0;
        font-size: 10px !important;
        text-align: center;
        white-space: nowrap !important;
    }

    .cde-fp__stat-value {
        margin-left: 0 !important;
        font-size: 13px !important;
        text-align: center;
        white-space: nowrap !important;
    }

    /* Gallery brand overlay (mobile) */
    .cde-fp__gallery-brand {
        display: block !important;
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 3;
        width: 72px;
        height: 72px;
        padding: 11px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .cde-fp__gallery-brand img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        filter: brightness(0) invert(1) !important;
        opacity: 0.9 !important;
    }

    /* ── Hide gallery actions + old theme FAB on mobile ── */
    .cde-fp__gallery-actions {
        display: none !important;
    }

    .cde-theme-fab {
        display: none !important;
    }

    /* ── Floating Tools FAB ── */
    .cde-fp__tools-fab {
        display: block !important;
        position: fixed;
        bottom: 90px;
        right: 16px;
        z-index: 1000;
    }

    /* Trigger button */
    .cde-fp__tools-fab-trigger {
        all: unset !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 54px !important;
        height: 54px !important;
        border-radius: 50% !important;
        background: rgba(0, 245, 255, 0.1) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1.5px solid rgba(0, 245, 255, 0.4) !important;
        color: #00f5ff !important;
        font-size: 22px !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        position: relative;
        z-index: 2;
        animation: cde-tools-fab-pulse 3s ease-in-out infinite !important;
    }

    @keyframes cde-tools-fab-pulse {
        0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3); }
        50%      { box-shadow: 0 0 28px rgba(0, 245, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3); }
    }

    .cde-fp__tools-fab--open .cde-fp__tools-fab-trigger {
        animation: none !important;
    }

    .cde-fp__tools-fab-trigger:active {
        transform: scale(0.92) !important;
    }

    .cde-fp__tools-fab-icon--close {
        display: none !important;
    }

    .cde-fp__tools-fab--open .cde-fp__tools-fab-icon--open {
        display: none !important;
    }

    .cde-fp__tools-fab--open .cde-fp__tools-fab-icon--close {
        display: inline !important;
    }

    .cde-fp__tools-fab--open .cde-fp__tools-fab-trigger {
        background: rgba(0, 245, 255, 0.15) !important;
        border-color: rgba(0, 245, 255, 0.4) !important;
    }

    /* Menu container */
    .cde-fp__tools-fab-menu {
        position: absolute;
        bottom: 60px;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .cde-fp__tools-fab--open .cde-fp__tools-fab-menu {
        pointer-events: auto;
        opacity: 1;
    }

    /* Menu items */
    .cde-fp__tools-fab-item {
        all: unset !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: rgba(10, 10, 15, 0.75) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 18px !important;
        cursor: pointer !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(20px) scale(0.5);
        opacity: 0;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cde-fp__tools-fab-item:active {
        transform: scale(0.88) !important;
        opacity: 1 !important;
    }

    .cde-fp__tools-fab--open .cde-fp__tools-fab-item {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /* Staggered animation */
    .cde-fp__tools-fab--open .cde-fp__tools-fab-item:nth-child(1) { transition-delay: 0.00s; }
    .cde-fp__tools-fab--open .cde-fp__tools-fab-item:nth-child(2) { transition-delay: 0.04s; }
    .cde-fp__tools-fab--open .cde-fp__tools-fab-item:nth-child(3) { transition-delay: 0.08s; }
    .cde-fp__tools-fab--open .cde-fp__tools-fab-item:nth-child(4) { transition-delay: 0.12s; }
    .cde-fp__tools-fab--open .cde-fp__tools-fab-item:nth-child(5) { transition-delay: 0.16s; }

    /* Favorite active state */
    .cde-fp__tools-fab-item[data-cde-action="favorite"].cde-fp__tools-fab-item--active {
        color: #ff4d6a !important;
        border-color: rgba(255, 77, 106, 0.4) !important;
    }

    /* Compare active state */
    .cde-fp__tools-fab-item[data-cde-action="compare"].cde-fp__tools-fab-item--active {
        color: var(--ma-accent) !important;
        border-color: rgba(0, 245, 255, 0.4) !important;
    }

    .cde-fp__pricing {
        margin: 0 0 24px;
    }

    .cde-fp__pricing-card {
        padding: 20px;
    }

    .cde-fp__pricing-amount {
        font-size: 26px;
    }

    .cde-fp__pricing-cta {
        flex-direction: column;
        gap: 8px;
    }

    .cde-fp__pricing-actions {
        display: none;
    }

    .cde-fp__gallery-actions {
        bottom: 8px;
        right: 8px;
        padding: 3px;
    }

    .cde-fp__gallery-action {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }

    /* ── Mobile: kill backdrop-filter to prevent scroll compositing glitch ── */
    .cde-fp__specs-table,
    .cde-fp__spec-card,
    .cde-fp__specs-trio-card,
    .cde-fp__radar-card,
    .cde-fp__condition-details {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.09) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
    }

    .cde-fp__specs-table {
        background: rgba(255, 255, 255, 0.06) !important;
    }

    /* ── Mobile: disable all transform-based animations ──
       Transforms create compositing layers that cause width glitch on WebKit.
       Keep simple opacity fade only. */
    .cde-fp--js-ready .cde-fp__reveal {
        transform: none !important;
        transition: opacity 0.5s ease !important;
    }

    .cde-fp__reveal--visible {
        transform: none !important;
    }

    .cde-fp__reveal--visible .cde-fp__spec-card,
    .cde-fp__reveal--visible .cde-fp__specs-table-row,
    .cde-fp__reveal--visible .cde-fp__specs-trio-card,
    .cde-fp__reveal--visible .cde-fp__eq-chip {
        animation: none !important;
    }

    /* Spec card: disable hover transform on touch devices */
    .cde-fp__spec-card:hover,
    .cde-fp__specs-trio-card:hover {
        transform: none !important;
    }

    .cde-fp__specs {
        margin: 0 12px 24px;
    }

    .cde-fp__specs-group {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }

    .cde-fp__specs-group-label {
        flex-direction: row;
        width: auto;
        gap: 10px;
        padding: 0 0 8px;
    }

    .cde-fp__specs-group-en {
        writing-mode: horizontal-tb;
        font-size: 10px;
        letter-spacing: 0.12em;
    }
    /* Mobile horizontal: full name */
    .cde-fp__specs-group-label .cde-fp__en-full  { display: inline; }
    .cde-fp__specs-group-label .cde-fp__en-short { display: none; }

    .cde-fp__specs-group-line {
        flex: 1;
        width: auto;
        height: 1px;
        min-height: 0;
        margin: 0;
        background: linear-gradient(90deg, var(--ma-accent), transparent);
    }

    .cde-fp__specs-group-ja {
        writing-mode: horizontal-tb;
        font-size: 10px;
    }

    /* Table layout: single column on mobile */
    .cde-fp__specs-table {
        grid-template-columns: 1fr;
    }
    .cde-fp__specs-table-row {
        padding: 9px 12px;
    }
    .cde-fp__specs-table-row:nth-last-child(1) {
        border-bottom: none;
    }
    .cde-fp__specs-table-label {
        font-size: 11px;
    }
    .cde-fp__specs-table-value {
        font-size: 13px;
    }

    /* Bento: 2-col on mobile */
    .cde-fp__specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .cde-fp__spec-card {
        padding: 12px;
        gap: 10px;
    }

    .cde-fp__spec-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .cde-fp__spec-label {
        font-size: 10px;
    }

    .cde-fp__spec-value {
        font-size: 13px;
    }

    /* Trio: stack vertically on mobile */
    .cde-fp__specs-trio {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .cde-fp__specs-trio-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 14px 16px;
        gap: 12px;
    }
    .cde-fp__specs-trio-icon {
        margin-bottom: 0;
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .cde-fp__specs-trio-label {
        flex: 1 1 auto;
    }
    .cde-fp__specs-trio-value {
        font-size: 14px;
        margin-left: auto;
        text-align: right;
    }
    .cde-fp__specs-trio-sub {
        text-align: right;
    }

    .cde-fp__equipment {
        margin: 0 12px 24px;
        padding-left: 0;
        flex-direction: column;
        overflow: hidden;
        max-width: 100%;
    }

    .cde-fp__eq-group {
        margin-bottom: 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .cde-fp__eq-group:last-child {
        margin-bottom: 0;
    }

    .cde-fp__eq-chips {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        max-width: 100%;
        overflow: hidden;
    }

    .cde-fp__eq-chip {
        padding: 5px 10px 5px 8px;
        font-size: 11px;
        white-space: normal;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cde-fp__condition {
        margin: 0 12px 24px;
        overflow: hidden;
    }

    .cde-fp__condition-grid {
        grid-template-columns: 1fr;
    }

    .cde-fp__similar {
        margin: 0 12px 24px;
    }

    .cde-fp__similar-card {
        flex: 0 0 220px;
    }

    .cde-fp__section-title {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .cde-fp__sticky {
        display: flex;
        padding: 10px 12px;
    }
}

/* ══════════════════════════════════════════════════════════════
 * 15. Stagger Animation for cards
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__reveal--visible .cde-fp__spec-card,
.cde-fp__reveal--visible .cde-fp__specs-table-row,
.cde-fp__reveal--visible .cde-fp__specs-trio-card,
.cde-fp__reveal--visible .cde-fp__eq-chip {
    animation: ma-stagger-in 0.5s ease backwards;
}

.cde-fp__reveal--visible .cde-fp__spec-card:nth-child(1),
.cde-fp__reveal--visible .cde-fp__specs-table-row:nth-child(1),
.cde-fp__reveal--visible .cde-fp__specs-trio-card:nth-child(1),
.cde-fp__reveal--visible .cde-fp__eq-chip:nth-child(1) { animation-delay: 0.05s; }
.cde-fp__reveal--visible .cde-fp__spec-card:nth-child(2),
.cde-fp__reveal--visible .cde-fp__specs-table-row:nth-child(2),
.cde-fp__reveal--visible .cde-fp__specs-trio-card:nth-child(2),
.cde-fp__reveal--visible .cde-fp__eq-chip:nth-child(2) { animation-delay: 0.1s; }
.cde-fp__reveal--visible .cde-fp__spec-card:nth-child(3),
.cde-fp__reveal--visible .cde-fp__specs-table-row:nth-child(3),
.cde-fp__reveal--visible .cde-fp__specs-trio-card:nth-child(3),
.cde-fp__reveal--visible .cde-fp__eq-chip:nth-child(3) { animation-delay: 0.15s; }
.cde-fp__reveal--visible .cde-fp__spec-card:nth-child(4),
.cde-fp__reveal--visible .cde-fp__specs-table-row:nth-child(4),
.cde-fp__reveal--visible .cde-fp__eq-chip:nth-child(4) { animation-delay: 0.2s; }
.cde-fp__reveal--visible .cde-fp__spec-card:nth-child(5),
.cde-fp__reveal--visible .cde-fp__specs-table-row:nth-child(5),
.cde-fp__reveal--visible .cde-fp__eq-chip:nth-child(5) { animation-delay: 0.25s; }
.cde-fp__reveal--visible .cde-fp__spec-card:nth-child(6),
.cde-fp__reveal--visible .cde-fp__specs-table-row:nth-child(6),
.cde-fp__reveal--visible .cde-fp__eq-chip:nth-child(6) { animation-delay: 0.3s; }
.cde-fp__reveal--visible .cde-fp__spec-card:nth-child(n+7),
.cde-fp__reveal--visible .cde-fp__specs-table-row:nth-child(n+7),
.cde-fp__reveal--visible .cde-fp__eq-chip:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes ma-stagger-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════════════
 * 16. Radar chart stroke animation
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__radar .radar-area {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 1.5s ease;
}

.cde-fp__reveal--visible .cde-fp__radar .radar-area {
    stroke-dashoffset: 0;
}

/* ══════════════════════════════════════════════════════════════
 * 17. AURORA Full-Page Template — Body Reset
 *     Active when template takeover is used (body.cde-aurora-page)
 * ══════════════════════════════════════════════════════════════ */

body.cde-aurora-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a0a0f !important;
    color: #f0f0f0;
    font-family: 'Noto Sans SC', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'PingFang SC', 'Microsoft YaHei', Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* When using full template, AURORA root no longer needs all:revert
   since theme CSS is dequeued. Keep variables available. */
body.cde-aurora-page .cde-fp--midnight {
    all: unset;

    --ma-bg:           #0a0a0f;
    --ma-bg-subtle:    #111118;
    --ma-card-bg:      linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.13) 100%);
    --ma-card-border:  rgba(255,255,255,0.16);
    --ma-card-hover:   linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.18) 100%);
    --ma-glass-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
                       inset 0 0 40px rgba(255,255,255,0.05),
                       0 4px 24px rgba(0,0,0,0.25);
    --ma-accent:       #00f5ff;
    --ma-purple:       #a855f7;
    --ma-green:        #10b981;
    --ma-red:          #ef4444;
    --ma-text:         #f0f0f0;
    --ma-text-sec:     #6b7280;
    --ma-text-dim:     #4b5563;
    --ma-radius:       16px;
    --ma-radius-sm:    10px;
    --ma-glass-blur:   20px;
    --ma-transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);

    display: block;
    position: relative;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'PingFang SC', 'Microsoft YaHei', Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ma-text);
    background: var(--ma-bg);
    padding: 0 24px 80px;
    margin: 0;
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

body.cde-aurora-page .cde-fp--midnight *,
body.cde-aurora-page .cde-fp--midnight *::before,
body.cde-aurora-page .cde-fp--midnight *::after {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
 * 17a. Share Modal & Toast
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__share-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: flex-end;
    justify-content: center;
}

.cde-fp__share-modal[aria-hidden="false"] {
    display: flex;
}

.cde-fp__share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cde-fp__share-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 16px 16px;
    padding: 24px;
    background: var(--ma-bg-subtle, #111118);
    border: 1px solid var(--ma-card-border);
    border-radius: var(--ma-radius);
    animation: cde-share-slide-up 0.3s ease;
}

@keyframes cde-share-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.cde-fp__share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cde-fp__share-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ma-text);
}

.cde-fp__share-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--ma-text-sec) !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.cde-fp__share-close:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--ma-text) !important;
}

.cde-fp__share-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cde-fp__share-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    border: 1px solid var(--ma-card-border) !important;
    border-radius: 12px !important;
    background: var(--ma-card-bg) !important;
    color: var(--ma-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.cde-fp__share-option i {
    font-size: 22px !important;
    width: 28px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.cde-fp__share-option:hover {
    background: rgba(0, 245, 255, 0.08) !important;
    border-color: rgba(0, 245, 255, 0.3) !important;
    color: var(--ma-accent) !important;
    text-decoration: none !important;
}

.cde-fp__share-option[data-cde-share="line"] i { color: #06c755 !important; }
.cde-fp__share-option[data-cde-share="wechat"] i { color: #07c160 !important; }
.cde-fp__share-option[data-cde-share="twitter"] i { color: var(--ma-text) !important; }
.cde-fp__share-option[data-cde-share="facebook"] i { color: #1877f2 !important; }

/* WeChat QR code sub-panel */
.cde-fp__share-qr {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0 8px;
}
.cde-fp__share-qr[aria-hidden="false"] {
    display: flex;
}
.cde-fp__share-qr-hint {
    margin: 0;
    font-size: 13px;
    color: var(--ma-text-sec);
}
.cde-fp__share-qr-canvas {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}
.cde-fp__share-qr-back {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 20px !important;
    border: 1px solid var(--ma-card-border) !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--ma-text-sec) !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.cde-fp__share-qr-back:hover {
    color: var(--ma-text) !important;
    border-color: var(--ma-accent) !important;
}

/* Toast notification */
.cde-fp__toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10002;
    padding: 12px 24px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.cde-fp__toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════
 * 17c. Inquiry Modal
 * ══════════════════════════════════════════════════════════════ */

.cde-fp__inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10003;
    align-items: center;
    justify-content: center;
}
.cde-fp__inquiry-modal[aria-hidden="false"] {
    display: flex;
}

/* Backdrop */
.cde-fp__inquiry-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: cde-inq-fade-in 0.3s ease-out;
}

/* Panel */
.cde-fp__inquiry-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    margin: 16px;
    padding: 28px 24px;
    background: rgba(18, 18, 26, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ma-radius, 16px);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
    animation: cde-inq-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cde-inq-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cde-inq-slide-up {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.cde-fp__inquiry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cde-fp__inquiry-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ma-text, #f0f0f0);
    letter-spacing: 0.02em;
}
.cde-fp__inquiry-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--ma-text-sec, #d1d5db);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cde-fp__inquiry-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ma-text, #f0f0f0);
}

/* Vehicle card */
.cde-fp__inquiry-vehicle {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ma-radius-sm, 10px);
}
.cde-fp__inquiry-vehicle-img {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.cde-fp__inquiry-vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cde-fp__inquiry-vehicle-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ma-text, #f0f0f0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cde-fp__inquiry-vehicle-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ma-accent, #00f5ff);
}

/* Form */
.cde-fp__inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cde-fp__inquiry-field input,
.cde-fp__inquiry-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--ma-radius-sm, 10px);
    color: var(--ma-text, #f0f0f0);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}
.cde-fp__inquiry-field input::placeholder,
.cde-fp__inquiry-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.40);
}
.cde-fp__inquiry-field input:focus,
.cde-fp__inquiry-field textarea:focus {
    border-color: var(--ma-accent, #00f5ff);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1), inset 0 0 0 1px rgba(0, 245, 255, 0.15);
}
.cde-fp__inquiry-field textarea {
    resize: vertical;
    min-height: 72px;
}

/* Topic checkboxes (pill style) */
.cde-fp__inquiry-topics {
    margin-bottom: 2px;
}
.cde-fp__inquiry-topics-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
}
.cde-fp__inquiry-topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cde-fp__inquiry-pill {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.cde-fp__inquiry-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.cde-fp__inquiry-pill span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.cde-fp__inquiry-pill-icon {
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s ease;
}
.cde-fp__inquiry-pill-text {
    font-style: normal;
    flex: 1;
    min-width: 0;
}
.cde-fp__inquiry-pill-check {
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}
.cde-fp__inquiry-pill span:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--ma-text-sec, #e5e7eb);
}
.cde-fp__inquiry-pill span:hover .cde-fp__inquiry-pill-icon {
    opacity: 0.7;
    color: #fbbf24;
}
.cde-fp__inquiry-pill input:checked + span {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}
.cde-fp__inquiry-pill input:checked + span .cde-fp__inquiry-pill-icon {
    opacity: 1;
    color: #fbbf24;
}
.cde-fp__inquiry-pill input:checked + span .cde-fp__inquiry-pill-check {
    opacity: 1;
    color: #fbbf24;
    transform: scale(1);
}

/* Hint text */
.cde-fp__inquiry-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
    margin-top: -4px;
}

/* Submit button */
.cde-fp__inquiry-submit {
    width: 100%;
    margin-top: 4px;
    position: relative;
}
.cde-fp__inquiry-submit-loader {
    display: inline-flex;
    align-items: center;
}
.cde-fp__inquiry-submit-loader i {
    animation: cde-inq-spin 0.8s linear infinite;
    font-size: 18px;
}
@keyframes cde-inq-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Error message */
.cde-fp__inquiry-error {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #f87171;
    font-size: 13px;
    text-align: center;
}

/* ── Success state ── */
.cde-fp__inquiry-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    animation: cde-inq-fade-in 0.5s ease-out;
}

/* Animated checkmark */
.cde-fp__inquiry-checkmark {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}
.cde-fp__inquiry-checkmark-circle {
    stroke: var(--ma-accent, #00f5ff);
    stroke-width: 2;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: cde-inq-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.cde-fp__inquiry-checkmark-check {
    stroke: var(--ma-accent, #00f5ff);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: cde-inq-check 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}
@keyframes cde-inq-circle {
    to { stroke-dashoffset: 0; }
}
@keyframes cde-inq-check {
    to { stroke-dashoffset: 0; }
}

.cde-fp__inquiry-success-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ma-text, #f0f0f0);
    margin: 0 0 6px;
}
.cde-fp__inquiry-success-sub {
    font-size: 14px;
    color: var(--ma-text-sec, #d1d5db);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
 * 17b. Light Theme Override
 * ══════════════════════════════════════════════════════════════ */

html[data-theme="light"] body.cde-aurora-page {
    --ma-bg:           #f8f7f4;
    --ma-bg-subtle:    #f0eeea;
    --ma-card-bg:      #ffffff;
    --ma-card-border:  rgba(0,0,0,0.08);
    --ma-card-hover:   rgba(0,0,0,0.03);
    --ma-accent:       #0891b2;
    --ma-purple:       #7c3aed;
    --ma-green:        #059669;
    --ma-red:          #dc2626;
    --ma-text:         #1f2937;
    --ma-text-sec:     #6b7280;
    --ma-text-dim:     #9ca3af;
    --ma-radius:       16px;
    --ma-radius-sm:    10px;
    --ma-glass-blur:   0px;
    --ma-transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f7f4 !important;
    color: var(--ma-text);
}

html[data-theme="light"] body.cde-aurora-page .cde-fp--midnight {
    --ma-bg:           #f8f7f4;
    --ma-bg-subtle:    #f0eeea;
    --ma-card-bg:      #ffffff;
    --ma-card-border:  rgba(0,0,0,0.08);
    --ma-card-hover:   rgba(0,0,0,0.03);
    --ma-accent:       #0891b2;
    --ma-purple:       #7c3aed;
    --ma-green:        #059669;
    --ma-red:          #dc2626;
    --ma-text:         #1f2937;
    --ma-text-sec:     #6b7280;
    --ma-text-dim:     #9ca3af;
    --ma-glass-blur:   0px;
    background: var(--ma-bg);
    color: var(--ma-text);
}

/* Light: Top Bar */
html[data-theme="light"] .cde-aurora-topbar {
    background: rgba(240, 238, 234, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .cde-aurora-topbar__phone {
    color: rgba(31, 41, 55, 0.7);
}
html[data-theme="light"] .cde-aurora-topbar__phone:hover {
    color: #0891b2;
}
html[data-theme="light"] .cde-aurora-topbar__sep {
    color: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .cde-aurora-topbar__hours {
    color: rgba(31, 41, 55, 0.5);
}
html[data-theme="light"] .cde-aurora-topbar__marquee-track {
    color: rgba(31, 41, 55, 0.45);
}
html[data-theme="light"] .cde-aurora-header__stock-badge {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

/* Light: Header */
html[data-theme="light"] .cde-aurora-header {
    background: rgba(248, 247, 244, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-aurora-header__search-input {
    border-color: rgba(31, 41, 55, 0.12);
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.8) 100%) !important;
    color: #1f2937 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html[data-theme="light"] .cde-aurora-header__search-input::placeholder {
    color: rgba(31, 41, 55, 0.35);
}
html[data-theme="light"] .cde-aurora-header__search-icon {
    color: rgba(31, 41, 55, 0.3);
}
html[data-theme="light"] .cde-aurora-header__search-input:focus {
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.06),
                0 2px 8px rgba(8, 145, 178, 0.08);
}
html[data-theme="light"] .cde-aurora-header__search:focus-within .cde-aurora-header__search-icon {
    color: #0891b2;
}
html[data-theme="light"] .cde-aurora-header__search-close {
    background: rgba(31, 41, 55, 0.06) !important;
    color: rgba(31, 41, 55, 0.4) !important;
}
html[data-theme="light"] .cde-aurora-header__search-close:hover {
    background: rgba(255, 80, 80, 0.1) !important;
    color: #ef4444 !important;
}

html[data-theme="light"] .cde-aurora-header__nav-link {
    color: rgba(31, 41, 55, 0.8);
}
html[data-theme="light"] .cde-aurora-header__nav-link:hover {
    color: #0891b2;
}

html[data-theme="light"] .cde-aurora-header__lang {
    background: rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .cde-aurora-header__lang-btn {
    color: rgba(31, 41, 55, 0.4);
}
html[data-theme="light"] .cde-aurora-header__lang-btn:hover {
    color: rgba(31, 41, 55, 0.8);
}
html[data-theme="light"] .cde-aurora-header__lang-btn--active {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

html[data-theme="light"] .cde-aurora-header__burger span {
    background: #1f2937;
}

html[data-theme="light"] .cde-aurora-header__mobile-menu {
    background: rgba(248, 247, 244, 0.98);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-aurora-header__mobile-link {
    color: rgba(31, 41, 55, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .cde-aurora-header__mobile-link:hover {
    color: #0891b2;
}
html[data-theme="light"] .cde-aurora-header__icon-btn {
    border-color: rgba(31, 41, 55, 0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.8) 100%) !important;
    color: rgba(31, 41, 55, 0.6) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
                0 1px 2px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html[data-theme="light"] .cde-aurora-header__icon-btn::before {
    background: linear-gradient(135deg, rgba(8,145,178,0.12), rgba(139,92,246,0.08), rgba(8,145,178,0.04));
}
html[data-theme="light"] .cde-aurora-header__icon-btn:hover {
    color: #0891b2 !important;
    border-color: rgba(8, 145, 178, 0.25);
    background: linear-gradient(135deg, rgba(8,145,178,0.08) 0%, rgba(139,92,246,0.04) 100%) !important;
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.15),
                0 0 16px rgba(8, 145, 178, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] .cde-aurora-header__icon-btn:hover::before {
    background: linear-gradient(135deg, rgba(8,145,178,0.3), rgba(139,92,246,0.2), rgba(8,145,178,0.1));
}
html[data-theme="light"] .cde-aurora-header__nav-sep {
    background: rgba(31, 41, 55, 0.12);
}

/* Light: Logo — invert white→black, hue-rotate 180° restores blue */
html[data-theme="light"] .cde-aurora-header__logo,
html[data-theme="light"] .cde-aurora-footer__logo {
    filter: invert(1) hue-rotate(180deg);
}

/* Light: Footer */
html[data-theme="light"] .cde-aurora-footer {
    background: #f5f3f0;
    border-top-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .cde-aurora-footer__divider {
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 0, 0, 0.06) 20%,
        rgba(8, 145, 178, 0.15) 50%,
        rgba(0, 0, 0, 0.06) 80%,
        transparent
    );
}
html[data-theme="light"] .cde-aurora-footer__col-title {
    color: #0891b2;
    border-bottom-color: rgba(8, 145, 178, 0.15);
}
html[data-theme="light"] .cde-aurora-footer__col-links li {
    color: #6b7280;
}
html[data-theme="light"] .cde-aurora-footer__col-links li i {
    color: rgba(8, 145, 178, 0.5);
}
html[data-theme="light"] .cde-aurora-footer__col-links li a {
    color: #4b5563;
}
html[data-theme="light"] .cde-aurora-footer__col-links li a:hover {
    color: #0891b2;
}
html[data-theme="light"] .cde-aurora-footer__social-icon {
    color: #6b7280;
    border-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .cde-aurora-footer__social-icon:hover {
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.4);
    box-shadow: 0 0 12px rgba(8, 145, 178, 0.12);
}
html[data-theme="light"] .cde-aurora-footer__copy {
    color: #9ca3af;
}
html[data-theme="light"] .cde-aurora-footer__edit-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #9ca3af !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .cde-aurora-footer__edit-btn:hover {
    background: rgba(8, 145, 178, 0.08) !important;
    color: #0891b2 !important;
    border-color: rgba(8, 145, 178, 0.3) !important;
}

/* Light: Buttons */
html[data-theme="light"] .cde-fp__btn--primary {
    background-color: rgba(8, 145, 178, 0.12) !important;
    color: #0e7490;
    border-color: rgba(8, 145, 178, 0.4);
}
html[data-theme="light"] .cde-fp__btn--primary:hover {
    background-color: rgba(8, 145, 178, 0.22) !important;
    border-color: rgba(8, 145, 178, 0.55);
    color: #0e7490;
}

html[data-theme="light"] .cde-fp__btn--glow {
    background-color: #ea580c !important;
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #ffffff;
    border-color: rgba(234, 88, 12, 0.3);
}



/* Light: Pricing gradient border */
html[data-theme="light"] .cde-fp__pricing-card::before {
    background: linear-gradient(135deg, #0891b2, #7c3aed);
    opacity: 0.3;
}

/* Light: MSRP Reference Block */
html[data-theme="light"] .cde-fp__msrp-block {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .cde-fp__msrp-original {
    color: #6b7280;
}
html[data-theme="light"] .cde-fp__msrp-savings-label,
html[data-theme="light"] .cde-fp__msrp-savings-amount {
    color: #16a34a;
}

/* Light: Equipment dog-tag chips — clean white */
html[data-theme="light"] .cde-fp__eq-chip {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
html[data-theme="light"] .cde-fp__eq-chip:hover {
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
/* Light: Equipment group titles */
html[data-theme="light"] .cde-fp__eq-group--standard .cde-fp__eq-group-title {
    color: #059669;
}
html[data-theme="light"] .cde-fp__eq-group--standard .cde-fp__eq-chip::before {
    background: #059669;
}
html[data-theme="light"] .cde-fp__eq-group--ext_int .cde-fp__eq-group-title {
    color: #0891b2;
}
html[data-theme="light"] .cde-fp__eq-group--ext_int .cde-fp__eq-chip::before {
    background: #0891b2;
}
html[data-theme="light"] .cde-fp__eq-group--safety .cde-fp__eq-group-title {
    color: #7c3aed;
}
html[data-theme="light"] .cde-fp__eq-group--safety .cde-fp__eq-chip::before {
    background: #7c3aed;
}

/* Light: Spec icon bg */
html[data-theme="light"] .cde-fp__spec-icon,
html[data-theme="light"] .cde-fp__specs-trio-icon {
    background: rgba(8, 145, 178, 0.06);
}

html[data-theme="light"] .cde-fp__specs-table {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.02),
                0 4px 20px rgba(0,0,0,0.06);
}
html[data-theme="light"] .cde-fp__specs-table::before {
    background: linear-gradient(90deg, #0891b2, #7c3aed);
}
html[data-theme="light"] .cde-fp__specs-table-row {
    border-bottom-color: rgba(0,0,0,0.06);
}
html[data-theme="light"] .cde-fp__specs-table-row:nth-child(odd) {
    background: rgba(0,0,0,0.015);
}
html[data-theme="light"] .cde-fp__specs-table-row:hover {
    background: rgba(8, 145, 178, 0.05);
    border-left-color: #0891b2;
    box-shadow: inset 4px 0 12px -4px rgba(8,145,178,0.1);
}


/* Light: Mobile sticky (C-bar + A-buttons) */
html[data-theme="light"] .cde-fp__sticky {
    background: rgba(255, 255, 255, 0.45);
}
html[data-theme="light"] .cde-fp__sticky-btn--call {
    background: rgba(8, 145, 178, 0.1) !important;
    border-color: rgba(8, 145, 178, 0.3) !important;
    color: #0e7490 !important;
}
html[data-theme="light"] .cde-fp__sticky-btn--call:hover {
    background: rgba(8, 145, 178, 0.18) !important;
    border-color: rgba(8, 145, 178, 0.5) !important;
}

/* Light: Pricing actions */
html[data-theme="light"] .cde-fp__pricing-action:hover {
    background: rgba(8, 145, 178, 0.08) !important;
    color: #0891b2 !important;
}

/* Light: Sold notice */
html[data-theme="light"] .cde-fp__sold-notice {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

/* Light: Share modal */
html[data-theme="light"] .cde-fp__share-panel {
    background: #ffffff;
}

html[data-theme="light"] .cde-fp__share-close {
    background: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .cde-fp__share-close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .cde-fp__share-option:hover {
    background: rgba(8, 145, 178, 0.06) !important;
    border-color: rgba(8, 145, 178, 0.3) !important;
    color: #0891b2 !important;
}

/* Light: Toast */
html[data-theme="light"] .cde-fp__toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1f2937;
}

/* Light: Inquiry modal */
html[data-theme="light"] .cde-fp__inquiry-panel {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-fp__inquiry-close {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-fp__inquiry-close:hover {
    background: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .cde-fp__inquiry-vehicle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .cde-fp__inquiry-field input,
html[data-theme="light"] .cde-fp__inquiry-field textarea {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1f2937;
}
html[data-theme="light"] .cde-fp__inquiry-field input:focus,
html[data-theme="light"] .cde-fp__inquiry-field textarea:focus {
    border-color: var(--ma-accent, #0284c7);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1), inset 0 0 0 1px rgba(2, 132, 199, 0.15);
}
html[data-theme="light"] .cde-fp__inquiry-pill span {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: #6b7280;
}
html[data-theme="light"] .cde-fp__inquiry-pill span:hover {
    background: rgba(217, 119, 6, 0.06);
    border-color: rgba(217, 119, 6, 0.2);
}
html[data-theme="light"] .cde-fp__inquiry-pill input:checked + span {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.4);
    color: #b45309;
}
html[data-theme="light"] .cde-fp__inquiry-pill input:checked + span .cde-fp__inquiry-pill-icon,
html[data-theme="light"] .cde-fp__inquiry-pill input:checked + span .cde-fp__inquiry-pill-check {
    color: #b45309;
}

/* Light: Radar chart */
html[data-theme="light"] .cde-fp__radar .radar-grid {
    stroke: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .cde-fp__radar .radar-axis {
    stroke: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .cde-fp__radar .radar-area {
    fill: rgba(8, 145, 178, 0.12);
    stroke: #0891b2;
}
html[data-theme="light"] .cde-fp__radar .radar-dot {
    fill: #0891b2;
    filter: none;
}
html[data-theme="light"] .cde-fp__radar .radar-area--unrated {
    fill: rgba(128,128,128,0.06);
    stroke: rgba(128,128,128,0.3);
}
html[data-theme="light"] .cde-fp__radar .radar-dot--unrated {
    fill: rgba(128,128,128,0.4);
}

/* Light: Similar card hover */
html[data-theme="light"] .cde-fp__similar-card:hover {
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Light: Stats divider */
html[data-theme="light"] .cde-fp__stats-divider {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
}

/* Light: Gallery counter */
html[data-theme="light"] .cde-fp__gallery-counter {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* Light: Mobile stat glass blocks */
@media (max-width: 768px) {
    html[data-theme="light"] .cde-fp__stat {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
    }
    html[data-theme="light"] .cde-fp__gallery-brand {
        background: rgba(255, 255, 255, 0.6);
        border-color: rgba(0, 0, 0, 0.1);
    }
    html[data-theme="light"] .cde-fp__gallery-brand img {
        filter: none !important;
        opacity: 0.85 !important;
    }
    html[data-theme="light"] .cde-fp__tools-fab-trigger {
        background: rgba(8, 145, 178, 0.08) !important;
        border-color: rgba(8, 145, 178, 0.35) !important;
        color: #0891b2 !important;
        box-shadow: 0 0 18px rgba(8, 145, 178, 0.12), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    }
    html[data-theme="light"] .cde-fp__tools-fab-item {
        background: rgba(255, 255, 255, 0.85) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        color: #374151 !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    }
    html[data-theme="light"] .cde-fp__tools-fab--open .cde-fp__tools-fab-trigger {
        background: rgba(8, 145, 178, 0.12) !important;
        border-color: rgba(8, 145, 178, 0.3) !important;
    }
}

.cde-aurora-main {
    min-height: 60vh;
}

/* ══════════════════════════════════════════════════════════════
 * 17b. AURORA Top Bar
 * ══════════════════════════════════════════════════════════════ */

.cde-aurora-topbar {
    background: rgba(5, 5, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(240, 240, 240, 0.6);
    user-select: none;
}

.cde-aurora-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    height: 36px;
    gap: 16px;
}

/* Left: phone + hours */
.cde-aurora-topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cde-aurora-topbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(240, 240, 240, 0.7);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.cde-aurora-topbar__phone:hover {
    color: #00f5ff;
    text-decoration: none;
}
.cde-aurora-topbar__phone i {
    font-size: 12px;
}

.cde-aurora-topbar__sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 11px;
}

.cde-aurora-topbar__hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(240, 240, 240, 0.5);
}

.cde-aurora-topbar__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}
.cde-aurora-topbar__status-dot--open {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* Center: marquee */
.cde-aurora-topbar__center {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.cde-aurora-topbar__marquee {
    overflow: hidden;
    position: relative;
}

.cde-aurora-topbar__marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: cde-marquee 25s linear infinite;
    padding-left: 100%;
    font-size: 12px;
    color: rgba(240, 240, 240, 0.55);
}
.cde-aurora-topbar__marquee-track:hover {
    animation-play-state: paused;
}

@keyframes cde-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Stock badge */
.cde-aurora-header__stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(0, 245, 255, 0.15);
    color: #00f5ff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin-left: 4px;
}

/* ══════════════════════════════════════════════════════════════
 * 18. AURORA Header
 * ══════════════════════════════════════════════════════════════ */

.cde-aurora-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cde-aurora-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    height: 94px;
}

.cde-aurora-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cde-aurora-header__logo {
    width: 280px;
    height: auto;
    object-fit: contain;
}

/* Header icon buttons (search / compare / favorites / print) */
.cde-aurora-header__icon-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 21px;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(240, 240, 240, 0.75) !important;
    font-size: 17px;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                color 0.3s ease,
                transform 0.25s ease;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
}
.cde-aurora-header__icon-btn > i {
    flex-shrink: 0;
    width: 42px;
    text-align: center;
    line-height: 42px;
}
.cde-aurora-header__icon-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: max-width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease 0.08s,
                padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-right: 0;
}
.cde-aurora-header__icon-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(139,92,246,0.1), rgba(0,245,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.cde-aurora-header__icon-btn:hover {
    width: 110px;
    color: #00f5ff !important;
    border-color: rgba(0, 245, 255, 0.25);
    background: linear-gradient(135deg, rgba(0,245,255,0.12) 0%, rgba(139,92,246,0.06) 100%) !important;
    box-shadow: 0 2px 12px rgba(0, 245, 255, 0.2),
                0 0 20px rgba(0, 245, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    transform: translateY(-1px);
}
.cde-aurora-header__icon-btn:hover .cde-aurora-header__icon-label {
    max-width: 70px;
    opacity: 1;
    padding-right: 16px;
}
.cde-aurora-header__icon-btn:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0,245,255,0.4), rgba(139,92,246,0.25), rgba(0,245,255,0.15));
}
.cde-aurora-header__icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3),
                inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cde-aurora-header__nav-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

/* Header search — inline expand from right to left */
.cde-aurora-header__search-wrap {
    display: flex;
    align-items: center;
    position: relative;
}
.cde-aurora-header__search {
    display: flex;
    align-items: center;
    position: relative;
    width: 0;
    overflow: hidden;
    opacity: 0;
    margin-right: 0;
    transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease 0.05s,
                margin-right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cde-aurora-header__search--open {
    width: 340px;
    opacity: 1;
    margin-right: 8px;
}

.cde-aurora-header__search-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: rgba(0, 245, 255, 0.45);
    pointer-events: none;
    z-index: 1;
}

.cde-aurora-header__search-input {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 38px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 21px;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(240, 240, 240, 0.95) !important;
    font-size: 14px;
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cde-aurora-header__search-input::placeholder {
    color: rgba(240, 240, 240, 0.3);
    font-weight: 400;
    text-align: center;
}
.cde-aurora-header__search-input:focus {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.08),
                0 2px 8px rgba(0, 245, 255, 0.12);
}

.cde-aurora-header__search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(240, 240, 240, 0.5) !important;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.cde-aurora-header__search-close:hover {
    background: rgba(255, 80, 80, 0.15) !important;
    color: #ff6b6b !important;
}

.cde-aurora-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cde-aurora-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(240, 240, 240, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.cde-aurora-header__nav-link:hover {
    color: #00f5ff;
    text-decoration: none;
}

.cde-aurora-header__nav-link i {
    font-size: 16px;
}

/* Header lang switcher */
.cde-aurora-header__lang {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 3px;
}

.cde-aurora-header__lang-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(240, 240, 240, 0.4);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
}
.cde-aurora-header__lang-btn:hover {
    color: rgba(240, 240, 240, 0.8);
}
.cde-aurora-header__lang-btn--active {
    background: rgba(0, 245, 255, 0.12);
    color: #00f5ff;
}

.cde-aurora-header__lang--mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: none !important;
    padding: 14px 0;
}

/* Floating theme toggle FAB — inside .cde-fp--midnight, left side */
.cde-theme-fab {
    display: none !important;
    position: sticky !important;
    top: 110px;
    left: 16px;
    z-index: 50;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 55px !important;
    height: 55px !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    font-size: 20px;
    margin-left: 16px;
    margin-bottom: -55px;
    /* Dark mode: warm gradient (sun) */
    background: linear-gradient(135deg, #f6d365, #fda085, #f093fb) !important;
    background-size: 200% 200% !important;
    animation: cde-fab-gradient 4s ease infinite !important;
    color: #fff !important;
    opacity: 0.7;
}

/* Icons inside FAB — center with absolute, respect jQuery show/hide */
.cde-theme-fab i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1 !important;
    font-size: 24px !important;
}

/* Sun icon (shown in dark mode) */
.cde-theme-fab [data-cde-theme-icon-light] {
    color: #fff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}
/* Moon icon (shown in light mode) */
.cde-theme-fab [data-cde-theme-icon-dark] {
    color: #fff !important;
    filter: drop-shadow(0 0 4px rgba(150, 100, 255, 0.6));
}

.cde-theme-fab:hover {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(102, 126, 234, 0.45);
}

.cde-theme-fab:active {
    transform: scale(0.95);
}

/* Scroll-direction positions */
.cde-theme-fab--top {
    top: 110px;
}
.cde-theme-fab--bottom {
    top: calc(100vh - 180px);
}

@keyframes cde-fab-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Light mode: purple gradient (moon) */
html[data-theme="light"] .cde-theme-fab {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3) !important;
}
html[data-theme="light"] .cde-theme-fab:hover {
    box-shadow: 0 6px 28px rgba(102, 126, 234, 0.45);
}

/* Hamburger (mobile only) */
.cde-aurora-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.cde-aurora-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f0f0f0;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.cde-aurora-header__burger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.cde-aurora-header__burger--open span:nth-child(2) {
    opacity: 0;
}
.cde-aurora-header__burger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.cde-aurora-header__mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0 24px 16px;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cde-aurora-header__mobile-menu--open {
    display: flex;
}

.cde-aurora-header__mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(240, 240, 240, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cde-aurora-header__mobile-link:last-child {
    border-bottom: none;
}

.cde-aurora-header__mobile-link:hover {
    color: #00f5ff;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
 * 19. AURORA Footer — 4-Column Layout
 * ══════════════════════════════════════════════════════════════ */

.cde-aurora-footer {
    background: #0a0a10;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 56px 40px 32px;
}

.cde-aurora-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Top: Logo + Social ---- */
.cde-aurora-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cde-aurora-footer__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cde-aurora-footer__logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.cde-aurora-footer__social {
    display: flex;
    gap: 12px;
}

.cde-aurora-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cde-aurora-footer__social-icon:hover {
    color: #00f5ff;
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
    transform: translateY(-2px);
}

.cde-aurora-footer__social-icon--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ---- Divider ---- */
.cde-aurora-footer__divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(0, 245, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.08) 80%,
        transparent
    );
    margin: 32px 0;
}

/* ---- Columns ---- */
.cde-aurora-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.cde-aurora-footer__col-title {
    font-size: 13px;
    font-weight: 600;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.15);
}

.cde-aurora-footer__col-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cde-aurora-footer__col-links li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.cde-aurora-footer__col-links li:last-child {
    margin-bottom: 0;
}

.cde-aurora-footer__col-links li i {
    color: rgba(0, 245, 255, 0.5);
    font-size: 13px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.cde-aurora-footer__col-links li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.cde-aurora-footer__col-links li a:hover {
    color: #00f5ff;
}

.cde-aurora-footer__col-links li span {
    color: #6b7280;
}

/* ---- Bottom: Copyright + Edit ---- */
.cde-aurora-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cde-aurora-footer__copy {
    font-size: 12px;
    color: #4b5563;
}

/* Admin edit button */
.cde-aurora-footer__edit-btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #6b7280 !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.cde-aurora-footer__edit-btn:hover {
    background: rgba(0, 245, 255, 0.1) !important;
    color: #00f5ff !important;
    border-color: rgba(0, 245, 255, 0.3) !important;
}

/* ══════════════════════════════════════════════════════════════
 * 19b. Footer Editor Modal (admin only)
 * ══════════════════════════════════════════════════════════════ */

.cde-footer-editor__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99998;
}

.cde-footer-editor__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 800px;
    max-height: 85vh;
    background: #1a1a2e;
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.cde-footer-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cde-footer-editor__header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

.cde-footer-editor__close {
    all: unset;
    font-size: 22px;
    color: #6b7280 !important;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.cde-footer-editor__close:hover {
    color: #ef4444 !important;
}

.cde-footer-editor__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cde-footer-editor__col-block {
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.cde-footer-editor__col-header {
    font-size: 12px;
    font-weight: 600;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cde-footer-editor__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.cde-footer-editor__row--link {
    grid-template-columns: 1fr 1fr 1fr 32px;
    gap: 6px;
    align-items: end;
    margin-bottom: 6px;
}

.cde-footer-editor label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
}

.cde-footer-editor input[type="text"] {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    color: #e5e7eb !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

.cde-footer-editor input[type="text"]:focus {
    border-color: rgba(0, 245, 255, 0.4) !important;
}

.cde-footer-editor input[type="text"]::placeholder {
    color: #4b5563;
}

.cde-footer-editor__link-remove {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    color: #6b7280 !important;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.cde-footer-editor__link-remove:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.cde-footer-editor__add-link {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #00f5ff !important;
    cursor: pointer;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.cde-footer-editor__add-link:hover {
    background: rgba(0, 245, 255, 0.08) !important;
}

/* Social section in editor */
.cde-footer-editor__social-block {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.cde-footer-editor__social-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.cde-footer-editor__social-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.cde-footer-editor__social-label i {
    font-size: 16px;
}

/* Copyright in editor */
.cde-footer-editor__copyright-block {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

/* Editor footer buttons */
.cde-footer-editor__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cde-footer-editor__btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cde-footer-editor__btn--cancel {
    color: #9ca3af !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cde-footer-editor__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.cde-footer-editor__btn--save {
    color: #0a0a10 !important;
    background: #00f5ff !important;
    border: none !important;
    font-weight: 600;
}

.cde-footer-editor__btn--save:hover {
    background: #00d4dd !important;
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.3);
}

/* ══════════════════════════════════════════════════════════════
 * 20. Header/Footer Responsive
 * ══════════════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
    .cde-aurora-header__logo {
        width: 200px;
    }

    .cde-aurora-topbar__center {
        display: none;
    }

    .cde-aurora-header__nav-link {
        display: none;
    }

    .cde-aurora-header__nav-sep,
    .cde-aurora-header__lang {
        display: none;
    }

    .cde-aurora-header__icon-btn:hover {
        width: 42px;
        transform: none;
    }
    .cde-aurora-header__icon-label {
        display: none !important;
    }

    .cde-aurora-header__search--open {
        width: 220px;
    }

    .cde-theme-fab {
        display: none !important;
    }

    .cde-aurora-footer {
        padding: 48px 24px 28px;
    }

    .cde-aurora-footer__logo {
        width: 160px;
    }
}

@media (max-width: 767px) {
    .cde-aurora-topbar {
        display: none;
    }

    .cde-aurora-header__inner {
        height: 56px;
        padding: 0 16px;
    }

    .cde-aurora-header__logo {
        width: 120px;
    }

    .cde-aurora-header__nav {
        display: none;
    }

    .cde-aurora-header__burger {
        display: flex;
    }

    .cde-aurora-footer {
        padding: 32px 16px 24px;
    }

    .cde-aurora-footer__logo {
        width: 120px;
    }

    .cde-aurora-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cde-aurora-footer__columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
    }

    .cde-aurora-footer__divider {
        margin: 24px 0;
    }

    .cde-aurora-footer__col-title {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .cde-aurora-footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    body.cde-aurora-page .cde-fp--midnight {
        font-size: 14px;
        padding: 0 0 90px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    body.cde-aurora-page .cde-fp--midnight .cde-fp__layout {
        overflow: hidden;
        max-width: 100%;
    }

    body.cde-aurora-page .cde-fp--midnight .cde-fp__main,
    body.cde-aurora-page .cde-fp--midnight .cde-fp__sidebar {
        overflow: hidden;
        max-width: 100%;
    }
}


/* ══════════════════════════════════════════════════════════════
 * 21. Print styles
 * ══════════════════════════════════════════════════════════════ */

@media print {
    .cde-fp--midnight {
        background: #fff;
        color: #000;
    }

    .cde-fp__sticky,
    .cde-fp__lightbox,
    .cde-fp__pricing-cta,
    .cde-fp__pricing-actions,
    .cde-fp__gallery-actions,
    .cde-fp__share-modal,
    .cde-fp__inquiry-modal,
    .cde-fp__toast,
    .cde-fp__similar,
    .cde-footer-editor,
    .cde-aurora-footer__edit-btn {
        display: none !important;
    }

    .cde-fp__spec-card,
    .cde-fp__specs-table,
    .cde-fp__specs-trio-card,
    .cde-fp__condition-details,
    .cde-fp__radar-card,
    .cde-fp__pricing-card,
    .cde-fp__stats {
        background: #f9f9f9;
        border-color: #ddd;
        backdrop-filter: none;
    }

    .cde-fp__msrp-block {
        border-bottom-color: #ccc;
    }
    .cde-fp__msrp-original {
        color: #666;
    }
    .cde-fp__msrp-savings-label,
    .cde-fp__msrp-savings-amount {
        color: #16a34a;
    }
    .cde-fp__msrp-percent {
        background: #16a34a;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ══════════════════════════════════════════════════════════════
 * Inquiry Modal — PC scale-up
 * ══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .cde-fp__inquiry-panel {
        max-width: 500px;
        padding: 32px 28px;
    }
    .cde-fp__inquiry-header {
        margin-bottom: 16px;
    }
    .cde-fp__inquiry-header h3 {
        font-size: 20px;
    }
    .cde-fp__inquiry-close {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        font-size: 16px;
    }
    .cde-fp__inquiry-vehicle {
        gap: 14px;
        padding: 14px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    .cde-fp__inquiry-vehicle-img {
        width: 72px;
        height: 54px;
        border-radius: 8px;
    }
    .cde-fp__inquiry-vehicle-info {
        gap: 4px;
    }
    .cde-fp__inquiry-vehicle-name {
        font-size: 15px;
    }
    .cde-fp__inquiry-vehicle-price {
        font-size: 17px;
    }
    .cde-fp__inquiry-form {
        gap: 12px;
    }
    .cde-fp__inquiry-field input,
    .cde-fp__inquiry-field textarea {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
    .cde-fp__inquiry-field textarea {
        min-height: 80px;
    }
    .cde-fp__inquiry-topics {
        margin-bottom: 2px;
    }
    .cde-fp__inquiry-topics-label {
        margin: 0 0 10px;
        font-size: 13px;
    }
    .cde-fp__inquiry-topics-grid {
        gap: 8px;
    }
    .cde-fp__inquiry-pill span {
        padding: 9px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    .cde-fp__inquiry-pill-icon {
        font-size: 14px;
    }
    .cde-fp__inquiry-pill-check {
        font-size: 13px;
    }
    .cde-fp__inquiry-hint {
        font-size: 12px;
    }
    .cde-fp__inquiry-submit {
        margin-top: 4px;
    }
    .cde-fp__inquiry-error {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
    .cde-fp__inquiry-success {
        padding: 32px 16px;
    }
    .cde-fp__inquiry-checkmark {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    .cde-fp__inquiry-success-title {
        font-size: 18px;
        margin: 0 0 6px;
    }
    .cde-fp__inquiry-success-sub {
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════════════════
 * Inquiry Modal — Mobile bottom sheet
 * ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .cde-fp__inquiry-modal[aria-hidden="false"] {
        align-items: flex-end;
    }
    .cde-fp__inquiry-panel {
        margin: 0;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
        animation: cde-inq-sheet-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes cde-inq-sheet-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .cde-fp__inquiry-vehicle-img {
        width: 52px;
        height: 40px;
    }
    .cde-fp__inquiry-field input,
    .cde-fp__inquiry-field textarea {
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.20);
        color: #ffffff;
    }
    .cde-fp__inquiry-field input::placeholder,
    .cde-fp__inquiry-field textarea::placeholder {
        color: #e5e7eb;
    }
    .cde-fp__inquiry-pill span {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: #e5e7eb;
    }
    .cde-fp__inquiry-pill-icon {
        opacity: 0.85;
    }
    .cde-fp__inquiry-topics-label {
        color: #e5e7eb;
    }
    .cde-fp__inquiry-hint {
        color: #e5e7eb;
    }
}
