/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Glass Effect */
header {
    background-color: rgba(0, 123, 255, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    z-index: 5;
    flex-shrink: 0;
}

#app-logo {
    height: 38px; /* Adjusted down slightly for mobile compatibility */
    width: auto;
    max-width: 130px;
    object-fit: contain;
    cursor: pointer;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    flex-wrap: nowrap; /* Keeps items securely on one line */
}

/* Header Buttons */
#my-ads-btn, #saved-btn, #inbox-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
    transition: 0.3s;
    white-space: nowrap;
    position: relative;
}

#saved-btn {
    border-color: #ff4d4d;
    color: #ff4d4d;
    background: white;
}

#inbox-btn {
    font-size: 14px;
    padding: 6px 10px;
}

#auth-btn {
    background: white;
    color: #007bff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
    transition: 0.3s;
}

/* --- NEW SEARCH & LOCATION SECTION --- */
.search-section {
    background: #ffffff;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.search-wrapper {
    position: relative;
    margin-bottom: 8px;
    width: 100%;
}

#search-bar {
    width: 100%;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #dfe1e5;
    background: #f1f3f4;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.location-row {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5f6368;
    font-size: 13px;
    padding-left: 5px;
}

#location-filter {
    border: none;
    background: transparent;
    font-weight: 700;
    color: #007bff;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    padding: 0;
}

/* Search Container Fallback (Legacy Support) */
.search-container {
    max-width: 500px;
    margin: 0 auto 10px auto;
    text-align: center;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px;
    gap: 8px;
    background: white;
    white-space: nowrap;
    scrollbar-width: none;
    border-bottom: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

.category-scroll::-webkit-scrollbar {
    display: none; /* Hides scrollbar on Chrome/Safari/Opera */
}

.cat-btn {
    background: #f0f2f5;
    color: #333;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.cat-btn.active {
    background: #007bff;
    color: white;
}

/* Product Card Grid - MOBILE RESPONSIVE FIX */
#product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Clean 2 columns layouts on small devices */
    gap: 12px;
    padding: 12px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    perspective: 1000px;
    transform-style: preserve-3d;
}

@media (min-width: 480px) {
    #product-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
        padding: 16px;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --glare-x: 50%;
    --glare-y: 50%;
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease, opacity 400ms ease;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255,255,255,.32), transparent 42%);
    opacity: 0;
    transition: opacity 200ms ease;
    z-index: 6;
}

.product-card.is-tilting::after { opacity: 1; }
.product-card.is-revealing { opacity: 0; transform: perspective(900px) rotateX(6deg) translateY(18px); }
.product-card.is-revealed { opacity: 1; transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0); transition-delay: var(--reveal-delay, 0ms); }
.product-card.is-tilting { transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.product-card .product-img, .product-card .product-badge, .product-card .trust-badge,
.product-card .price, .product-card .badge-container { transform-style: preserve-3d; transition: transform 300ms cubic-bezier(.2,.8,.2,1); }
.product-card.is-tilting .product-img, .product-card.is-tilting .product-badge,
.product-card.is-tilting .trust-badge, .product-card.is-tilting .badge-container,
.product-card.is-tilting .price { transform: translateZ(18px); }
@media (prefers-reduced-motion: reduce) {
    .product-card, .product-card::after, .product-card * { transition-duration: .01ms !important; }
}

#zone-filter-bar { display:flex; gap:8px; overflow-x:auto; padding:10px 15px; background:#fff; }
.zone-pill { border:1px solid #dce3eb; border-radius:18px; padding:7px 13px; background:#fff; color:#495057; white-space:nowrap; cursor:pointer; }
.zone-pill.active { background:#007bff; color:#fff; border-color:#007bff; }
.presence-badge { display:inline-flex; align-items:center; gap:6px; color:#607080; font-size:11px; margin:4px 0; }
.presence-dot { width:8px; height:8px; border-radius:50%; background:#9aa3ad; display:inline-block; }
.presence-dot.online { background:#28a745; animation: presencePulse 1.5s infinite; }
@keyframes presencePulse { 50% { box-shadow:0 0 0 5px rgba(40,167,69,.16); } }
.trust-badge,.meetup-badge { display:inline-block; font-size:11px; font-weight:700; border-radius:12px; padding:4px 8px; margin:4px 3px 4px 0; }
.trust-badge { background:#e7f3ff; color:#1769aa; }
.meetup-badge { background:#e9f8ee; color:#237a3b; }
.offer-row { border-bottom:1px solid #eee; padding:12px 0; line-height:1.6; }
.product-card h3,.product-card .product-img { cursor:pointer !important; }
.live-proof-player { width:100%; max-width:100%; max-height:380px; aspect-ratio:var(--proof-ratio, 16 / 9); overflow:hidden; border-radius:12px; background:#111; margin:12px 0; }
.live-proof-player iframe,.live-proof-player video { display:block; width:100%; height:100%; max-height:380px; border:0; object-fit:contain; }
.live-proof-player.portrait { width:min(100%, 213px); margin-left:auto; margin-right:auto; }
.live-proof-link { display:flex; align-items:center; justify-content:center; width:100%; box-sizing:border-box; margin:12px 0; padding:13px 16px; border-radius:10px; background:#f0f7ff; color:#007bff; font-weight:700; text-decoration:none; }
#product-detail-content { min-width:0; overflow-x:hidden; }

.product-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* --- ACTION STACK (Double Buttons) --- */
.action-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto; /* Pushes action buttons cleanly to bottom of card */
}

/* Pulse animation for the Chat button */
.action-stack .call-btn[style*="background:#007bff"] {
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* --- SOLD STATE VISUALS --- */
.product-card.item-sold {
    opacity: 0.75;
    filter: grayscale(0.3);
}

.sold-badge {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
    background: #ff4d4d;
    color: white;
    padding: 6px 20px;
    font-weight: 900;
    font-size: 1.1rem;
    border: 3px solid white;
    border-radius: 4px;
    z-index: 15;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sold-toggle-btn {
    width: 100%;
    padding: 10px;
    background: #495057;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.sold-label {
    width: 100%;
    padding: 10px;
    background: #e9ecef;
    color: #adb5bd;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: not-allowed;
    text-align: center;
}

/* --- SELLER PREVIEW CARD --- */
.seller-preview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 8px;
    margin: 6px 0;
    cursor: pointer;
    border: 1px solid #eee;
    transition: 0.3s;
    gap: 4px;
}

.seller-preview-card:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.seller-meta {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents long flex items from overflow */
}

.seller-name-label {
    font-weight: bold;
    font-size: 0.75rem;
    color: #333;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-stars {
    color: #ff9800;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.visit-store-btn {
    font-size: 0.65rem;
    font-weight: bold;
    color: #007bff;
    white-space: nowrap;
}

/* --- SELLER PROFILE PAGE STYLES --- */
.seller-profile-header {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.profile-pic-circle {
    width: 75px;
    height: 75px;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    color: white;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.back-to-fyp {
    margin-top: 15px;
    background: #f1f1f1;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.back-to-fyp:hover {
    background: #e0e0e0;
}

/* Product Content */
.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.product-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.product-card h3 {
    font-size: 0.9rem;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 1rem;
    font-weight: bold;
    color: #28a745;
    margin: 4px 0;
}

/* Contact Buttons */
.whatsapp-btn, .call-btn {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-size: 0.85rem;
    text-align: center;
    box-sizing: border-box;
}

.whatsapp-btn { background-color: #25D366; color: white; }
.call-btn { background-color: #007bff; color: white; }

.whatsapp-btn:hover, .call-btn:hover { filter: brightness(1.1); }

/* Ad Management */
.ad-manage-btns {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.edit-btn, .delete-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.edit-btn { background: #ffc107; color: #333; }
.delete-btn { background: #ff4d4d; color: white; }

/* Modal & Floating Button */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5vh auto;
    padding: 25px;
    border-radius: 20px;
    width: 88%;
    max-width: 440px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
}

#sell-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 22px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 999;
    transition: 0.3s;
}

#sell-btn:hover {
    transform: scale(1.05);
    background-color: #218838;
}

/* --- BRANDED AKMART CHAT OVERLAY --- */
#chat-overlay {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 320px;
    height: 450px;
    background: #ffffff;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 3000;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.message.me {
    background: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.them {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message::after {
    content: attr(data-time);
    font-size: 9px;
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

.message.me::after { color: #ffffff; text-align: right; }
.message.them::after { color: #888; text-align: left; }

.chat-footer {
    padding: 12px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

.chat-footer button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#inbox-btn.new-msg::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #ff4d4d;
    border-radius: 50%;
    border: 2px solid #007bff;
}

@media (max-width: 480px) {
    #chat-overlay {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
}

.typing-indicator {
    font-size: 12px;
    color: #888;
    padding: 5px 15px;
    font-style: italic;
    display: none;
    align-self: flex-start;
}

.typing-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 4px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    animation: typingBlink 1.4s infinite both;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
    0% { opacity: 0.2; transform: scale(1); }
    20% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(1); }
}

/* --- ADDED BADGE & IMAGE PREVIEW STYLES (NO CUTS) --- */
#image-preview-container {
    display: none;
    margin-top: 10px;
    position: relative;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

#image-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.product-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-urgent { background: #ff4757; }
.badge-verified { background: #2ed573; }
.badge-hot { background: #ffa502; }
.badge-new { background: #1e90ff; }

/* Offer drawer and manager */
.modal#product-detail-modal,.modal#offers-modal,.modal#offer-drawer { opacity:0; visibility:hidden; transition:opacity 240ms cubic-bezier(0.16,1,0.3,1), visibility 240ms; }
.modal#product-detail-modal.is-open,.modal#offers-modal.is-open,.modal#offer-drawer.is-open { opacity:1; visibility:visible; }
.modal-content,.offer-sheet { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0) scale(1); transition:transform 240ms cubic-bezier(0.16,1,0.3,1),opacity 240ms cubic-bezier(0.16,1,0.3,1); }`r`n.modal[style*="display: block"] .modal-content,.modal[style*="display: flex"] .modal-content,.modal.active .modal-content,.modal.show .modal-content { opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1); }
.modal#product-detail-modal.is-open .modal-content,.modal#offers-modal.is-open .modal-content,.offer-drawer.is-open .offer-sheet { opacity:1; transform:translateY(0) scale(1); }
.offer-drawer { display:flex; align-items:flex-end; justify-content:center; z-index:4000; background:rgba(15,23,42,.55); backdrop-filter:blur(7px); }
.offer-sheet { position:relative; width:min(100%,560px); max-height:88vh; overflow:auto; box-sizing:border-box; padding:28px 24px max(24px,env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; background:#fff; box-shadow:0 -14px 50px rgba(0,0,0,.2); transform:translateY(35px) scale(.98); }
.offer-sheet h2 { margin:10px 0 18px; text-align:left; }
#offer-product-summary { display:flex; align-items:center; gap:12px; padding:10px; background:#f6f8fb; border-radius:14px; }
#offer-product-summary img { width:62px;height:62px;object-fit:cover;border-radius:10px;background:#e9edf2; }
#offer-product-summary div { display:grid;gap:5px; } #offer-product-summary span {font-size:13px;color:#687385;}
.discount-chips,.note-chips,.offer-tabs,.offer-actions {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;}
.discount-chips button,.note-chips button {border:1px solid #dfe5ed;background:#fff;color:#344256;border-radius:20px;padding:8px 13px;font-weight:700;cursor:pointer;transition:transform .18s,background .18s;}
.discount-chips button:hover,.note-chips button:hover {transform:translateY(-2px);background:#edf5ff;}
.offer-sheet label {display:block;margin:14px 0 6px;font-weight:700;color:#344256;}
#offer-price-input,#offer-note-input {width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid #dce3ec;border-radius:11px;font-size:16px;}
.offer-savings {min-height:20px;margin:8px 0;color:#168044;font-weight:700;}
.send-offer-btn {width:100%;border:0;border-radius:12px;padding:14px;background:#0879e8;color:#fff;font-weight:700;font-size:15px;cursor:pointer;transition:transform .2s,background .2s;}
.send-offer-btn:hover {transform:translateY(-2px);background:#0869c9}.send-offer-btn:disabled{opacity:.75;cursor:wait}.send-offer-btn.sent{background:#168044}.send-offer-btn.loading:before{content:'';display:inline-block;width:13px;height:13px;margin-right:8px;border:2px solid #ffffff80;border-top-color:#fff;border-radius:50%;animation:offerSpin .7s linear infinite;vertical-align:-2px}@keyframes offerSpin{to{transform:rotate(360deg)}}
#offer-feedback{color:#596579;font-size:13px;min-height:18px}.offer-count{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:12px;background:#e84b45;color:white;font-size:10px}.header-pill{position:relative}
.offer-tabs{border-bottom:1px solid #e6eaf0}.offer-tab{position:relative;border:0;background:transparent;padding:10px 12px;color:#687385;font-weight:700;cursor:pointer}.offer-tab:after{content:'';position:absolute;bottom:-1px;left:10px;right:10px;height:3px;border-radius:3px;background:transparent;transition:background .2s}.offer-tab.active{color:#0879e8}.offer-tab.active:after{background:#0879e8}
.offer-row{display:flex;gap:12px;padding:14px 10px;border-bottom:1px solid #edf0f4;border-radius:12px;transition:transform .18s,box-shadow .18s}.offer-row:hover{transform:translateY(-2px);box-shadow:0 7px 20px #182b4412}.offer-row-image{width:58px;height:58px;object-fit:cover;border-radius:10px;background:#eef1f5}.offer-row-body{flex:1;min-width:0}.offer-prices{margin:5px 0;font-weight:700;color:#1e293b}.offer-prices span{margin-left:8px;font-size:12px;color:#718096;font-weight:400}.offer-status{display:inline-block;padding:4px 9px;border-radius:20px;background:#fff4d6;color:#926400;font-size:11px;font-weight:700}.offer-status.accepted{background:#e5f7ec;color:#18743a}.offer-status.declined{background:#fdeaea;color:#ad3434}.offer-actions button{border:0;padding:8px 13px;border-radius:9px;font-weight:700;cursor:pointer}.accept-offer{background:#e6f7ec;color:#18743a}.decline-offer{background:#fff0f0;color:#aa3a3a}.offer-toast{position:fixed;z-index:5000;left:50%;bottom:24px;transform:translate(-50%,16px);opacity:0;padding:12px 18px;border-radius:12px;background:#172433;color:white;box-shadow:0 8px 25px #0003;transition:opacity .2s,transform .2s;pointer-events:none}.offer-toast.visible{opacity:1;transform:translate(-50%,0)}.offer-toast.error{background:#a73232}
@media(max-width:520px){.offer-sheet{padding:24px 18px max(20px,env(safe-area-inset-bottom))}.offer-row-image{width:48px;height:48px}}


#offers-badge{display:inline-block!important;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.55);padding:6px 10px;border-radius:20px;font-weight:bold;font-size:11px;white-space:nowrap;cursor:pointer}


/* Final modal visibility and product detail sizing overrides */
#product-detail-modal,#offers-modal,#offer-drawer { opacity:1!important; visibility:visible!important; pointer-events:auto!important; }
#product-detail-modal[style*="display: none"],#offers-modal[style*="display: none"],#offer-drawer[style*="display: none"] { visibility:hidden!important; pointer-events:none!important; }
#product-detail-modal .modal-content,#offers-modal .modal-content,#offer-drawer .offer-sheet,
#product-detail-modal.is-open .modal-content,#offers-modal.is-open .modal-content,#offer-drawer.is-open .offer-sheet,
#product-detail-modal.active .modal-content,#offers-modal.active .modal-content,#offer-drawer.active .offer-sheet,
#product-detail-modal.show .modal-content,#offers-modal.show .modal-content,#offer-drawer.show .offer-sheet,
#product-detail-modal[style*="display: block"] .modal-content,#offers-modal[style*="display: block"] .modal-content,#offer-drawer[style*="display: block"] .offer-sheet,
#product-detail-modal[style*="display: flex"] .modal-content,#offers-modal[style*="display: flex"] .modal-content,#offer-drawer[style*="display: flex"] .offer-sheet { opacity:1!important; visibility:visible!important; pointer-events:auto!important; transform:translateY(0) scale(1)!important; }
#product-detail-modal .modal-content { width:92%; max-width:480px; max-height:88vh; overflow-y:auto; padding:20px; }
#product-detail-modal .detail-product-image { width:100%; max-height:260px; object-fit:contain; background:#f8fafc; border-radius:12px; display:block; margin:0 auto 14px; }

/* Tactile controls and focus states */
.cat-btn, .zone-pill, .header-pill, #offers-badge, #inbox-btn, #saved-btn, #my-ads-btn, #auth-btn, #sell-btn, button[id*="post"], .post-ad-btn {
    box-shadow: 0 3px 0 rgba(20,45,80,.12), 0 5px 12px rgba(20,45,80,.08);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, background-color 180ms ease;
    transform: translateY(0);
}
.cat-btn:hover, .zone-pill:hover, .header-pill:hover, #offers-badge:hover, #inbox-btn:hover, #saved-btn:hover, #my-ads-btn:hover, #auth-btn:hover, #sell-btn:hover, button[id*="post"]:hover, .post-ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(20,45,80,.12), 0 9px 18px rgba(20,45,80,.13);
}
.cat-btn:active, .zone-pill:active, .header-pill:active, #offers-badge:active, #inbox-btn:active, #saved-btn:active, #my-ads-btn:active, #auth-btn:active, #sell-btn:active, button[id*="post"]:active, .post-ad-btn:active {
    transform: translateY(1px) scale(.97);
    box-shadow: 0 1px 0 rgba(20,45,80,.12), 0 2px 5px rgba(20,45,80,.1);
}
#search-bar, .search-container input, .search-container select, #location-filter, #zone-filter-bar select, #zone-filter-bar input {
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}
#search-bar:focus, .search-container input:focus, .search-container select:focus,
#location-filter:focus, #zone-filter-bar select:focus, #zone-filter-bar input:focus {
    transform: translateY(-1px);
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0,123,255,.14), 0 5px 14px rgba(0,70,150,.1);
}

/* Modal content unfolds while the existing display and visibility rules remain authoritative. */
#product-detail-modal .modal-content, #offers-modal .modal-content, #sell-modal .modal-content,
#offer-drawer .offer-sheet {
    transform-origin: 50% 0%;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
#product-detail-modal:not(.is-open) .modal-content, #offers-modal:not(.is-open) .modal-content,
#sell-modal[style*="display: none"] .modal-content, #offer-drawer:not(.is-open) .offer-sheet {
    transform: perspective(1100px) rotateX(5deg) translateY(16px) scale(.97);
    opacity: 0;
}
#product-detail-modal.is-open .modal-content, #offers-modal.is-open .modal-content,
#sell-modal[style*="display: block"] .modal-content, #offer-drawer.is-open .offer-sheet {
    transform: perspective(1100px) rotateX(0deg) translateY(0) scale(1);
    opacity: 1;
}
#product-detail-modal .modal-content, #offers-modal .modal-content, #offer-drawer .offer-sheet {
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#product-detail-modal[style*="display: block"] .modal-content,
#product-detail-modal[style*="display: flex"] .modal-content,
#offers-modal[style*="display: block"] .modal-content,
#offers-modal[style*="display: flex"] .modal-content,
#offer-drawer[style*="display: block"] .offer-sheet,
#offer-drawer[style*="display: flex"] .offer-sheet {
    transform: perspective(1100px) rotateX(0deg) translateY(0) scale(1) !important;
}
@media (hover: hover) {
    .product-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.13); }
}

/* Royal blue studio scene sits behind every interactive app surface. */
html, body { min-height: 100%; }
body { background: #03153a; }
#akmart-3d-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse at 50% 47%, rgba(13,110,253,.58), transparent 52%),
                radial-gradient(ellipse at 12% 16%, rgba(18,76,177,.45), transparent 42%),
                linear-gradient(155deg, #03153a 0%, #07358c 52%, #0d6efd 145%);
}
#akmart-3d-bg::before { content:""; position:absolute; inset:0; opacity:.18; background-image:linear-gradient(rgba(176,213,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(176,213,255,.12) 1px,transparent 1px); background-size:72px 72px; transform:perspective(650px) rotateX(58deg) scale(1.7) translateY(28%); transform-origin:50% 100%; mask-image:linear-gradient(transparent 30%,#000 95%); }
.ak-bg-light { position:absolute; width:70vw; height:60vw; max-height:70vh; left:15%; top:-32%; border-radius:50%; background:radial-gradient(ellipse,rgba(96,172,255,.28),transparent 68%); filter:blur(16px); }
.ak-bg-floor { position:absolute; left:-15%; right:-15%; bottom:-42%; height:72%; border-radius:50%; background:radial-gradient(ellipse at 50% 0%,rgba(75,168,255,.27),rgba(7,44,119,.15) 36%,transparent 70%); border-top:1px solid rgba(150,210,255,.25); box-shadow:0 -12px 60px rgba(59,148,255,.14); transform:perspective(500px) rotateX(54deg); }
.ak-bg-arc { position:absolute; left:50%; top:52%; width:min(1000px,105vw); height:min(430px,56vh); border:1px solid rgba(119,190,255,.22); border-radius:50%; box-shadow:0 0 22px rgba(53,149,255,.15),inset 0 0 24px rgba(53,149,255,.08); transform:translate(-50%,-50%) rotateX(68deg) rotateZ(-9deg); }
.ak-bg-arc-two { width:min(1320px,135vw); height:min(590px,74vh); opacity:.52; transform:translate(-50%,-50%) rotateX(71deg) rotateZ(14deg); }
.ak-bg-depth { position:absolute; inset:0; transform-style:preserve-3d; will-change:transform; }
.ak-bg-depth-back { transform:translate3d(var(--ak-parallax-back-x,0px),var(--ak-parallax-back-y,0px),-60px); }
.ak-bg-depth-front { transform:translate3d(var(--ak-parallax-front-x,0px),var(--ak-parallax-front-y,0px),30px); }
.ak-bg-tile { position:absolute; display:grid; place-items:center; width:74px; height:74px; color:#d9edff; border:1px solid rgba(227,244,255,.45); border-radius:22px; background:linear-gradient(140deg,rgba(255,255,255,.23),rgba(255,255,255,.055)); box-shadow:inset 0 1px rgba(255,255,255,.42),0 18px 50px rgba(0,10,45,.24),0 0 28px rgba(75,165,255,.14); backdrop-filter:blur(8px); transform-style:preserve-3d; animation:akmartFloat 9s ease-in-out infinite; }
.ak-bg-tile svg { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 2px 5px rgba(0,0,0,.22)); }
.ak-bg-tile-deal { left:16%; top:29%; font-size:30px; font-weight:800; text-shadow:0 2px 12px rgba(121,196,255,.65); animation-delay:-2s; }
.ak-bg-tile-bag { right:18%; top:20%; width:86px; height:86px; animation-delay:-5s; }
.ak-bg-tile-cart { left:10%; top:66%; width:88px; height:88px; animation-delay:-4s; }
.ak-bg-tile-box { right:14%; top:62%; width:66px; height:66px; animation-delay:-7s; }
.ak-bg-sphere { position:absolute; display:block; width:46px; height:46px; border-radius:50%; background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.8),rgba(111,190,255,.42) 18%,rgba(23,105,222,.26) 54%,rgba(2,30,86,.06) 75%); box-shadow:inset -8px -10px 18px rgba(0,22,80,.28),0 15px 35px rgba(0,13,55,.2),0 0 28px rgba(113,193,255,.22); animation:akmartSphere 11s ease-in-out infinite; }
.ak-bg-sphere-one { left:34%; top:61%; }
.ak-bg-sphere-two { right:35%; top:34%; width:30px; height:30px; animation-delay:-6s; }
@keyframes akmartFloat { 0%,100% { transform:translate3d(0,0,0) rotateX(8deg) rotateY(-12deg) rotateZ(-5deg) scale(1); } 50% { transform:translate3d(0,-18px,12px) rotateX(-5deg) rotateY(12deg) rotateZ(4deg) scale(1.035); } }
@keyframes akmartSphere { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(8px,-20px,15px) scale(1.08); } }

/* App chrome and content are explicitly layered over the decorative scene. */
#main-header, #zone-filter-bar, #product-container, #stores-container, #profile-container, footer { position:relative; z-index:1; }
.search-section, .category-scroll, #zone-filter-bar { background:rgba(255,255,255,.92); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-color:rgba(255,255,255,.65); }
.product-card, .store-card, .seller-preview-card { background:rgba(255,255,255,.92); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.65); box-shadow:0 10px 30px rgba(3,21,58,.16); }
#inbox-list-container .seller-preview-card { color:#26354a; }
#inbox-list-container .seller-preview-card strong { color:#15243a; }
#inbox-list-container .seller-preview-card > div:last-child > div:last-child { color:#53647a !important; }
#sell-btn { z-index:1100; }
.modal { z-index:2000; }
#chat-overlay { z-index:3000; }
@media (max-width:600px), (prefers-reduced-motion:reduce) {
    .ak-bg-tile, .ak-bg-sphere { animation-duration:18s; }
    .ak-bg-depth { will-change:auto; }
}
@media (prefers-reduced-motion:reduce) {
    .ak-bg-tile, .ak-bg-sphere { animation:none; }
}

/* Luminous product card rims and badge matched ambient color. */
.product-card:hover {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 16px 36px rgba(3, 21, 58, 0.24), 0 0 22px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.product-card .badge-verified { box-shadow: 0 0 14px rgba(16,185,129,.48); }
.product-card .badge-hot, .product-card .badge-urgent { box-shadow: 0 0 14px rgba(249,115,22,.46); }
@supports selector(.product-card:has(.badge-verified)) {
    .product-card:has(.badge-verified), .product-card:has(.trust-badge) {
        box-shadow: 0 10px 28px rgba(16, 185, 129, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.35);
    }
    .product-card:has(.badge-hot), .product-card:has(.badge-urgent) {
        box-shadow: 0 10px 28px rgba(249, 115, 22, 0.2), 0 0 0 1px rgba(249, 115, 22, 0.38);
    }
    .product-card:has(.badge-verified):hover, .product-card:has(.trust-badge):hover {
        box-shadow: 0 16px 36px rgba(3,21,58,.24), 0 0 22px rgba(14,165,233,.35), 0 10px 28px rgba(16,185,129,.18), 0 0 0 1px rgba(16,185,129,.35), inset 0 1px 0 rgba(255,255,255,.9);
    }
    .product-card:has(.badge-hot):hover, .product-card:has(.badge-urgent):hover {
        box-shadow: 0 16px 36px rgba(3,21,58,.24), 0 0 22px rgba(14,165,233,.35), 0 10px 28px rgba(249,115,22,.2), 0 0 0 1px rgba(249,115,22,.38), inset 0 1px 0 rgba(255,255,255,.9);
    }
}

/* Glossy diagonal light sweep on the product card's main chat and call actions. */
.product-card .action-stack .call-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.product-card .action-stack .call-btn::after {
    content: "";
    position: absolute;
    inset: -20% auto -20% 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.48) 49%, rgba(255,255,255,.12) 54%, transparent 68%);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 650ms cubic-bezier(.2,.65,.3,1), opacity 160ms ease;
}
.product-card .action-stack .call-btn:hover::after {
    opacity: 1;
    transform: translateX(200%) skewX(-20deg);
}

/* Mission watermark is part of the decorative scene and remains click-through. */
.akmart-bg-motto {
    position: fixed;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(900px) rotateX(6deg);
    width: min(920px, 90vw);
    text-align: center;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    animation: akmartMottoFloat 6s ease-in-out infinite alternate;
}
.akmart-bg-motto-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 16px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 999px;
    background: rgba(13, 53, 140, 0.2);
    color: rgba(186, 230, 253, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}
.akmart-bg-motto-quote {
    font-size: clamp(1.4rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(147, 197, 253, 0.14) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(3, 21, 58, 0.35);
}
@keyframes akmartMottoFloat {
    from { transform: translate(-50%, -50%) perspective(900px) rotateX(6deg) translate3d(0, -3px, 0); }
    to { transform: translate(-50%, -50%) perspective(900px) rotateX(6deg) translate3d(0, 3px, 0); }
}
@media (max-width: 600px) {
    .akmart-bg-motto { width: 88vw; top: 48%; }
    .akmart-bg-motto-eyebrow { max-width: 100%; box-sizing: border-box; font-size: .58rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
    .akmart-bg-motto { animation: none; }
}
#sell-btn { animation: akmartCtaGlow 2.8s ease-in-out infinite; }
@keyframes akmartCtaGlow {
    0%,100% { box-shadow: 0 4px 15px rgba(0,0,0,.3), 0 8px 24px rgba(22,163,74,.32); }
    50% { box-shadow: 0 4px 15px rgba(0,0,0,.3), 0 8px 24px rgba(22,163,74,.55); }
}
@media (prefers-reduced-motion: reduce) {
    #sell-btn { animation: none; }
    .product-card .action-stack .call-btn::after { transition: none; }
}

/* Compact card rhythm for desktop and tablet layouts. */
.product-card { padding: 10px; gap: 3px; min-width: 0; }
.product-card .product-img { height: 165px !important; object-fit: cover; border-radius: 10px; margin-bottom: 3px; }
.product-card h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    white-space: normal;
    line-height: 1.3;
    margin: 2px 0;
}
.product-card .seller-preview-card { margin: 3px 0; padding: 5px; min-width: 0; }
.product-card .presence-badge, .product-card .meetup-badge, .product-card .trust-badge { margin-top: 2px; margin-bottom: 2px; }
.product-card .price { margin: 2px 0 4px; }
.product-card .action-stack, .product-card .ad-manage-btns { gap: 4px; margin-top: auto; }

@media (max-width: 768px) {
    #product-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 10px !important;
        min-width: 0;
    }
    .product-card {
        min-width: 0;
        padding: 8px;
        gap: 2px;
    }
    .product-card > * { max-width: 100%; min-width: 0; box-sizing: border-box; }
    .product-card .product-img { height: 125px !important; object-fit: cover; border-radius: 10px; margin-bottom: 2px; }
    .product-card h3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        white-space: normal;
        text-overflow: ellipsis;
        font-size: .85rem;
        line-height: 1.25;
        margin: 2px 0;
    }
    .product-card .price { font-size: .95rem; line-height: 1.2; margin: 2px 0 4px; }
    .product-card .seller-preview-card { gap: 3px; padding: 4px; margin: 2px 0; }
    .product-card .seller-name-label { max-width: 72px; font-size: .7rem; }
    .product-card .visit-store-btn { font-size: .62rem; }
    .product-card .seller-stars { font-size: 8px; }
    .product-card .presence-badge, .product-card .meetup-badge, .product-card .trust-badge {
        max-width: 100%;
        font-size: .7rem;
        padding: 2px 6px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        box-sizing: border-box;
        margin: 2px 0;
    }
    .product-card .presence-badge { gap: 4px; }
    .product-card .action-stack .call-btn, .product-card .action-stack .whatsapp-btn,
    .product-card .ad-manage-btns .edit-btn, .product-card .ad-manage-btns .delete-btn,
    .product-card .ad-manage-btns .sold-toggle-btn {
        min-width: 0;
        padding: 6px 8px;
        font-size: .75rem;
        line-height: 1.2;
        border-radius: 8px;
        white-space: normal;
    }
    .product-card .badge-container { top: 8px; left: 8px; }
    .product-card .fav-btn { top: 8px; right: 8px; }
}

/* Individual vendor storefront shares the floating blue stage and home feed grid. */
#profile-container, #stores-container, #single-store-view {
    position: relative;
    z-index: 1;
    background: transparent !important;
}
.seller-profile-header, #store-profile-header {
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 36px rgba(3, 21, 58, 0.22), 0 0 24px rgba(14, 165, 233, 0.22);
    margin: 12px 10px 20px;
}
.seller-profile-header .profile-pic-circle {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18), 0 8px 20px rgba(13, 110, 253, 0.35);
}
.seller-profile-header + h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(3, 21, 58, 0.45);
}
#merchant-grid-target, #store-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
    box-sizing: border-box;
    perspective: 1000px;
    transform-style: preserve-3d;
}
#merchant-grid-target .product-card, #store-products-grid .product-card {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(3, 21, 58, 0.16);
}
#merchant-grid-target .product-img, #store-products-grid .product-img {
    height: 155px !important;
    object-fit: cover;
    border-radius: 10px;
}
.merchant-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}
.merchant-card-actions > :only-child { grid-column: 1 / -1; }
.merchant-card-actions .call-btn, .merchant-card-actions .whatsapp-btn {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 8px;
    margin: 0 !important;
    border-radius: 8px;
    font-size: .78rem !important;
    line-height: 1.2;
}
@media (max-width: 768px) {
    #merchant-grid-target, #store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    #merchant-grid-target .product-img, #store-products-grid .product-img { height: 120px !important; }
}

/* Compact background music control; only the actual button receives pointer input. */
#akmart-audio-pill {
    position: fixed;
    left: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 999;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    max-width: calc(100vw - 24px);
    width: max-content;
    min-height: 34px;
    padding: 3px 8px;
    box-sizing: border-box;
    border: 1px solid rgba(191, 219, 254, .34);
    border-radius: 999px;
    background: rgba(3, 21, 58, .76);
    color: #eaf6ff;
    box-shadow: 0 5px 16px rgba(3, 21, 58, .2), inset 0 1px rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
    visibility: visible !important;
    opacity: 1 !important;
}
#akmart-audio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #eaf6ff;
    font: 600 11px/1.1 'Segoe UI', Tahoma, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}
#akmart-audio-toggle:hover, #akmart-audio-toggle:focus-visible { background: rgba(125, 211, 252, .18); outline: none; }
#akmart-audio-toggle:focus-visible { box-shadow: 0 0 0 2px rgba(125, 211, 252, .7); }
.akmart-audio-equalizer { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 22px; height: 18px; }
.akmart-audio-equalizer i { display: block; width: 3px; height: 5px; border-radius: 2px; background: #67e8f9; transform: scaleY(.45); transform-origin: center; }
#akmart-audio-pill.is-playing .akmart-audio-equalizer i { animation: akmartEqPulse .62s ease-in-out infinite alternate; }
#akmart-audio-pill.is-playing .akmart-audio-equalizer i:nth-child(2) { animation-delay: -.38s; }
#akmart-audio-pill.is-playing .akmart-audio-equalizer i:nth-child(3) { animation-delay: -.17s; }
#akmart-audio-pill.is-playing .akmart-audio-equalizer i:nth-child(4) { animation-delay: -.48s; }
@keyframes akmartEqPulse { from { transform: scaleY(.35); } to { transform: scaleY(1.5); } }
@media (max-width: 390px) {
    #akmart-audio-pill { left: 10px; bottom: max(18px, env(safe-area-inset-bottom)); min-height: 31px; gap: 4px; padding: 2px 6px; }
    #akmart-audio-toggle { min-height: 24px; padding: 3px 5px; font-size: 10px; }
    .akmart-audio-equalizer { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    #akmart-audio-pill.is-playing .akmart-audio-equalizer i { animation: none; transform: scaleY(1); }
}
