/* ==================== MOBILE RESPONSIVE FIXES ==================== */
/* This file adds comprehensive mobile responsive fixes for XEUS Connect */
/* Include AFTER styles.css in index.html */

/* Fix dual-space overflow on small screens (base style fix) */
.dual-space {
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
}

/* ── Small mobile (max-width: 480px) overrides ── */
@media (max-width: 480px) {

    /* 1. PRODUCTS GRID -- single column full width */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .product-info {
        padding: 14px;
    }
    .product-name {
        font-size: 0.92rem;
        line-height: 1.3;
    }
    .product-price {
        font-size: 1.1rem;
    }
    .product-price-old {
        font-size: 0.75rem;
    }
    .product-image {
        aspect-ratio: 4/3;
        padding: 16px;
    }
    /* Badges: prevent overflow */
    .product-badges {
        flex-wrap: wrap;
        max-width: calc(100% - 60px);
    }
    .product-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* FLASH SALES -- single column instead of horizontal scroll */
    .flash-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
    }
    .flash-card {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* 2. PRODUCT DETAIL MODAL -- full screen on mobile */
    .product-modal-overlay {
        padding: 0;
        align-items: stretch;
    }
    .product-modal {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        max-height: none;
        overflow-y: auto;
    }
    .product-modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
    .product-detail-image {
        border-radius: 0;
        padding: 24px;
    }
    .product-detail-image img {
        width: 100%;
        max-width: 240px;
    }
    .product-detail-info {
        padding: 20px 16px 32px;
    }
    .product-detail-name {
        font-size: 1.2rem;
    }
    .product-detail-price {
        font-size: 1.6rem;
    }
    .product-detail-price .old-price {
        font-size: 0.95rem;
    }
    .product-detail-specs {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .spec-item {
        padding: 10px;
    }
    .product-detail-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    /* 3. PARTNERS/BRANDS SECTION */
    .partners-section {
        padding: 48px 0;
    }
    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 24px;
    }

    /* 4. TESTIMONIALS -- single column */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .testimonial-card {
        padding: 20px;
    }
    .testimonial-text {
        font-size: 0.85rem;
    }
    .testimonial-stars {
        font-size: 0.9rem;
    }
    .testimonial-author-info strong {
        font-size: 0.82rem;
    }
    .testimonial-author-info span {
        font-size: 0.72rem;
    }

    /* 5. CLIENT SPACES -- stack vertically */
    .dual-space {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .space-card {
        padding: 24px 20px;
    }
    .space-icon {
        width: 52px;
        height: 52px;
    }
    .space-card h2 {
        font-size: 1.2rem;
    }
    .space-card > p {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }
    .space-features li {
        font-size: 0.85rem;
    }
    .space-actions {
        flex-direction: column;
    }
    .space-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* 6. AI ASSISTANT -- near full width, proper positioning */
    .ai-assistant {
        width: calc(100% - 24px) !important;
        right: 12px !important;
        bottom: 12px !important;
        left: 12px;
        max-height: 85vh !important;
    }

    /* 7. CART PANEL -- full width on mobile (transform-based, matches desktop) */
    .cart-panel {
        width: 100% !important;
        right: 0 !important;
        transform: translateX(100%) !important;
    }
    .cart-panel.open {
        transform: translateX(0) !important;
    }

    /* 8. SEARCH OVERLAY -- proper mobile padding */
    .search-overlay {
        padding: 12px 16px;
    }
    .search-container {
        padding: 10px 16px;
    }
    .search-container input {
        font-size: 0.9rem;
    }

    /* COMPARE FLOATING BAR -- full width */
    .compare-floating-bar {
        left: 12px;
        right: 12px;
        transform: none;
    }
    .compare-floating-bar.visible {
        bottom: 16px;
    }
    .compare-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        border-radius: var(--radius-lg);
    }
    .compare-bar-text {
        font-size: 0.8rem;
    }

    /* CROSS SELL -- 2 cols on small mobile */
    .cross-sell-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cross-sell-section {
        padding: 20px 16px 28px;
    }

    /* TRUST BADGES -- compact */
    .trust-badges-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .trust-badge {
        padding: 12px 6px;
        gap: 8px;
    }
    .trust-badge-icon {
        width: 44px;
        height: 44px;
    }
    .trust-badge-text strong {
        font-size: 0.75rem;
    }
    .trust-badge-text span {
        font-size: 0.65rem;
    }

    /* SECTIONS -- reduce padding */
    .featured-section,
    .why-section,
    .about-section,
    .client-section {
        padding: 60px 0;
    }
    .flash-sales-section,
    .testimonials-section {
        padding: 48px 0;
    }

    /* CUSTOMER REVIEWS in modal */
    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ── Small tablet (481px - 768px) ── */
@media (min-width: 481px) and (max-width: 768px) {
    /* Products grid -- 2 columns on small tablet (already set in main CSS, reinforcing) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ── Prevent horizontal scrolling on all mobile ── */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    /* Ensure all images respect container width */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================================
   MOBILE A11Y + TAP TARGET HARDENING (WCAG 2.1 AA — 2.5.5)
   Ensures every interactive element reaches 44x44 px minimum
   and keeps readable font sizes on iPhone SE (375px).
   ============================================================ */
@media (max-width: 768px) {
    /* Navbar icon-only buttons — bump to 44×44 */
    .nav-btn,
    .nav-btn.search-btn,
    .nav-btn.cart-btn,
    .nav-btn.client-btn,
    .ai-btn,
    .nav-hamburger {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Language selector — clickable hit area */
    .lang-selector {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }
    .lang-option {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Search close + modal close — full tap area */
    .search-close,
    .product-modal-close,
    .modal-close,
    [class*="close-btn"] {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Filter tabs, subcategory chips, payment options, legal tabs — comfortable tap area */
    .filter-tab,
    .subcat-chip,
    .payment-option,
    .legal-tab,
    .lang-option,
    .chip,
    .pill,
    .tag {
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
        display: inline-flex;
        align-items: center;
    }

    /* Topbar / dashboard icon controls */
    .topbar-notif,
    .sidebar-toggle,
    .topbar-lang,
    .dash-topbar button,
    .table-action,
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Form inputs — 16px font prevents iOS auto-zoom; 44px min height */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
    select,
    textarea {
        font-size: 16px;
        min-height: 44px;
    }

    /* Checkbox/radio — bigger tap zone via label */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
    }
    label {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    /* Minimum readable body text on mobile — 14px floor except the legally-small legal notes */
    body,
    p,
    li,
    a,
    span:not(.badge-dot):not(.cart-count):not(.sidebar-count):not(.lang-flag),
    .product-name,
    .flash-brand,
    .filter-tab,
    .nav-link,
    .sidebar-link,
    .testimonial-text,
    .form-label,
    .field label,
    .field-group label {
        font-size: max(14px, 1em);
    }
    /* Explicit fallback for elements that were smaller than 14px */
    .product-badge,
    .flash-badge,
    .trust-badge-text span,
    .testimonial-author-info span {
        font-size: 0.75rem; /* ~12px — kept only for decorative tags */
    }

    /* Link underlines on body copy — improves link identification (WCAG 1.4.1) */
    main a:not(.btn):not(.nav-link):not(.sidebar-link):not(.flash-card):not(.product-card):not(.category-card):not(.scroll-indicator):not(.nav-logo):not(.nav-btn):not(.subcat-chip):not(.filter-tab):not(.footer-link) {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    /* Tables within wrappers get a scroll hint (iOS smoothness) */
    .table-wrapper,
    .legal-table-wrapper,
    .comparison-table-wrapper,
    .dash-table-wrapper,
    [class*="table-wrapper"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        scrollbar-width: thin;
    }
    .table-wrapper table,
    .dash-table {
        min-width: 520px;
    }
}

/* ── Extra-small (≤ 375px, iPhone SE) — tighten padding, keep tap targets ── */
@media (max-width: 375px) {
    .container,
    .dash-page,
    .legal-content,
    .checkout-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .nav-container {
        padding: 0 10px;
    }
    .nav-actions {
        gap: 2px;
    }
    /* Keep buttons ≥44px even when padding shrinks */
    .btn,
    button,
    .nav-btn {
        min-height: 44px;
    }
}

/* ── FOCUS-VISIBLE HARDENING — ensure visible keyboard focus on every interactive element ── */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.subcat-chip:focus-visible,
.filter-tab:focus-visible,
.payment-option:focus-visible,
.legal-tab:focus-visible,
.sidebar-link:focus-visible,
.nav-link:focus-visible,
.lang-option:focus-visible {
    outline: 2px solid #B8953F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Dashboards use gold accent — focus ring matches */
.dashboard-body button:focus-visible,
.dashboard-body a:focus-visible,
.dashboard-body input:focus-visible,
.dashboard-body select:focus-visible,
.dashboard-body textarea:focus-visible,
.dashboard-body [role="button"]:focus-visible,
.dashboard-body [tabindex]:focus-visible {
    outline: 2px solid #B8953F;
    outline-offset: 2px;
}

/* ── PREFERS-REDUCED-MOTION — dashboard/auth pages that may not inherit from styles.css ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-content,
    .hero-particles,
    .particle,
    .badge-dot {
        animation: none !important;
    }
}

/* ── WCAG CONTRAST FIX — gray-400 text on dark bg is ~3.8:1; bump to gray-300 on mobile ── */
@media (max-width: 768px) {
    .hero-subtitle,
    .section-subtitle,
    .testimonial-text,
    .product-price-old,
    .flash-old-price,
    .space-card > p,
    .space-features li,
    .footer-link,
    .meta,
    .caption {
        color: rgba(255,255,255,0.82);
    }
    /* Light-theme equivalents */
    body.light-theme .hero-subtitle,
    body.light-theme .section-subtitle,
    body.light-theme .testimonial-text {
        color: rgba(15,15,15,0.78);
    }
}

/* ── LIVE REGIONS / SR-ONLY helper (for dynamic cart counts, etc.) ── */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================
   FINAL-PASS MOBILE HARDENING (iPhone SE / 375px)
   Audit additions — covers gaps found in mobile audit
   ============================================================ */

/* Universal anti-overflow safety net */
@media (max-width: 768px) {
    /* Lock viewport width — last line of defense */
    body { width: 100%; max-width: 100%; }
    /* Prevent any element from breaking layout horizontally */
    img, video, iframe, table, pre, code, svg {
        max-width: 100%;
    }
    pre, code {
        white-space: pre-wrap;
        word-break: break-word;
    }
    /* Long URLs / words shouldn't push layout */
    p, li, h1, h2, h3, h4, span, a, strong, em {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    /* Hero image — never exceed viewport on mobile */
    .hero-image {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-image img {
        max-width: 100%;
        height: auto;
    }
    /* Tradein image (sell phone CTA) */
    .tradein-image,
    .tradein-image img {
        max-width: 100%;
        height: auto;
    }
    .tradein-content,
    .tradein-section .container > div {
        flex-direction: column;
    }
    /* Why-grid (bento equivalent) — already 1-col, ensure no horizontal */
    .why-grid {
        grid-template-columns: 1fr !important;
    }
    /* Section title alignment */
    .section-title,
    .section-header h2 {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        line-height: 1.25;
    }
    /* Footer grid 2-col below 768, 1-col below 480 */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Extra-small (≤ 480px) — KPI single column, tighter footer */
@media (max-width: 480px) {
    /* KPI cards collapse to 1-col on smallest screens (per audit spec) */
    .kpi-grid {
        grid-template-columns: 1fr !important;
    }
    .kpi-card {
        padding: 16px !important;
    }
    .kpi-value {
        font-size: 1.5rem !important;
    }
    /* Admin KPI hero spans full width naturally with 1-col */
    .admin-kpi-row {
        grid-template-columns: 1fr !important;
    }
    /* Footer 1-col on smallest */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    /* Flash sales horizontal scroll fallback to 1-col */
    .flash-grid {
        grid-template-columns: 1fr !important;
        overflow-x: visible !important;
    }
    .flash-card {
        min-width: 0 !important;
        scroll-snap-align: none;
    }
    /* Categories 2-col still, but tighten */
    .categories-grid {
        gap: 8px !important;
    }
    /* Hero badge wrap */
    .hero-badge {
        white-space: normal;
        line-height: 1.4;
        text-align: center;
    }
}

/* iPhone SE — 375px — final tightening */
@media (max-width: 375px) {
    /* Reduce hero font further */
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
    /* Currency and prices — prevent overflow */
    .product-price,
    .flash-new-price {
        font-size: 1rem;
    }
    /* Cart panel buttons */
    .cart-actions .btn {
        font-size: 0.85rem;
    }
    /* Sell-phone photo grid stays 2-col — confirm */
    .photo-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    /* Sell-phone signature canvas — fixed full width */
    .signature-area {
        height: 90px;
        width: 100%;
    }
    /* Step circles — keep readable */
    .step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.72rem !important;
    }
    /* Checkout step bar visible on tiny screens */
    .checkout-steps,
    .steps-bar {
        gap: 4px;
        padding: 8px 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Sell-phone specific: sign + photo handling at 375px */
@media (max-width: 480px) {
    .signature-area {
        height: 100px;
        width: 100%;
        touch-action: none; /* prevent page scroll while signing */
    }
    .signature-area canvas {
        width: 100% !important;
        height: 100% !important;
        touch-action: none;
    }
    .photo-slot {
        font-size: 0.65rem;
    }
    .photo-slot span {
        font-size: 0.62rem;
        line-height: 1.2;
    }
    /* Sell step header */
    .sell-step h2 .step-num {
        flex-shrink: 0;
    }
    .sell-step h2 {
        flex-wrap: wrap;
        font-size: 0.95rem !important;
    }
}

/* Cart panel + AI assistant — keep on top, no overflow */
@media (max-width: 768px) {
    .cart-panel,
    .ai-assistant {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .cart-item {
        flex-wrap: wrap;
    }
    .cart-item-info {
        min-width: 0;
        flex: 1 1 auto;
    }
    .cart-item-name {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Search overlay results — readable on mobile */
@media (max-width: 480px) {
    .search-results {
        padding: 8px 0;
    }
    .search-result-item {
        padding: 12px;
        min-height: 44px;
    }
}

/* Modal close button positioning safety */
@media (max-width: 480px) {
    .modal-close,
    .product-modal-close,
    [class*="close-btn"] {
        position: absolute;
        z-index: 10;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   2026-04-14 — P0 audit fixes (Banque Suisse meticulosity)
   ══════════════════════════════════════════════════════════════════════ */

/* iPad landscape (1024px) — hamburger doit garder 44x44 quand visible */
@media (max-width: 1024px) {
    .nav-hamburger {
        min-width: 44px !important;
        min-height: 44px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Tap target spacing entre nav buttons (WCAG 2.5.8) */
@media (max-width: 768px) {
    .nav-actions {
        gap: 8px !important;
    }
}

/* iPhone SE (320-375px) — masquer AI button nav (le floating prend le relais)
   pour éviter overflow logo + 5 boutons */
@media (max-width: 375px) {
    .nav-actions .ai-btn { display: none !important; }
    .nav-actions { gap: 8px !important; }
}

/* Hero stats — anti-overflow 320/375px */
@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 32px auto 0 !important;
    }
    .hero-stats .stat {
        padding: 10px 0 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(184,149,63,.18) !important;
        text-align: center !important;
        flex: none !important;
    }
    .hero-stats .stat:last-child { border-bottom: none !important; }
    .hero-stats .stat-number {
        font-size: 1.6rem !important;
    }
    .hero-stats .stat-label {
        font-size: 0.78rem !important;
        letter-spacing: 0.18em;
    }
}

/* Tablet 768px — désactiver border-right entre stats si stack */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-stats .stat { border-right: none !important; }
}

/* Compare bar buttons — tap target floor */
@media (max-width: 768px) {
    .compare-bar-btn,
    .compare-bar-close {
        min-height: 44px !important;
        min-width: 44px !important;
        font-size: 14px !important;
    }
}

/* iPad portrait — KPI grid intermediate breakpoint */
@media (min-width: 481px) and (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Touch devices — neutralise sticky :hover après tap */
@media (hover: none) {
    .product-card:hover,
    .why-card:hover,
    .category-card:hover,
    .showcase-card:hover,
    .space-card:hover {
        transform: none !important;
    }
}

/* Pause des animations quand l'onglet est inactif (battery save) */
body.paused-anims *,
body.paused-anims *::before,
body.paused-anims *::after {
    animation-play-state: paused !important;
}

/* iOS Safari < 15.4 fallback — pas de :has() */
body.has-cookie-banner .ai-floating-btn {
    bottom: calc(env(safe-area-inset-bottom, 0) + 96px) !important;
}

/* ========= XEUS Luxe Audit — P0 fixes (2026-04-15) ========= */

/* P0 Mobile — Empêcher auto-zoom iOS sur inputs : font-size >= 16px */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
    font-size: max(16px, 1rem);
}

/* P0 Mobile — Remplacer 100vh par 100dvh (dynamic viewport) pour iOS Safari */
@supports (height: 100dvh) {
    .hero { min-height: 100dvh; }
    .login-page { min-height: 100dvh; }
    .register-page { min-height: 100dvh; }
    .admin-layout,
    .client-layout,
    .partner-layout,
    .b2b-layout { min-height: 100dvh; }
    .cart-panel { height: 100dvh; }
}

/* P0 Mobile — Safe-area-inset sur navbar/footer pour Dynamic Island / notch */
.navbar {
    padding-top: max(22px, env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.footer,
footer {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* P0 A11y — Skip-link luxe (affiché uniquement au focus clavier) */
.xeus-skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 99999;
    padding: 14px 22px;
    background: linear-gradient(135deg, #B8953F, #D4AF5A);
    color: #0A0A0A;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    transition: top .25s cubic-bezier(.16,1,.3,1);
}
.xeus-skip-link:focus,
.xeus-skip-link:focus-visible {
    top: max(16px, env(safe-area-inset-top));
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* P1 Polish — Scroll-to-top button luxe */
.xeus-scroll-top {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(184,149,63,.4);
    background: rgba(15,15,15,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #D4AF5A;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.xeus-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.xeus-scroll-top:hover {
    border-color: #D4AF5A;
    background: rgba(184,149,63,.12);
    color: #E6C478;
    transform: translateY(-2px);
}
.xeus-scroll-top:focus-visible {
    outline: 2px solid #D4AF5A;
    outline-offset: 3px;
}
@media (max-width: 640px) {
    .xeus-scroll-top {
        bottom: calc(90px + env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
    }
}

/* Remove WebKit tap highlight (luxe feel) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Visible focus ring global luxe */
:focus-visible {
    outline: 2px solid rgba(212,175,90,.65);
    outline-offset: 3px;
    border-radius: 4px;
}
