/* === Coupon Wallet – Vibrant Glass UI === */
/* v=1.1 */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700&display=swap');

/* CRITICAL: Navbar loading stability - structure + space reservation (first-frame) */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.bottom-nav .nav-button,
.bottom-nav .nav-plus-wrap {
    min-width: 44px !important;
    min-height: 56px !important;
}
.bottom-nav .nav-button .icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
}

/* CRITICAL: Disable pull-to-refresh globally */
html, body, .app-frame, .viewport, #feedViewport {
    overscroll-behavior-y: none !important;
    overscroll-behavior: none !important;
}

:root {
    --bg-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #ee0979 100%);
    --glass-white: rgba(255, 255, 255, 0.2);
    --glass-card: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.4);
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --success: #22c55e;
    --danger: #f87171;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.75);
    --card-radius: 24px;
    --transition-btn: 0.3s ease-in-out;
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
}

/* Business/Admin UI visibility – readable on dark gradient */
.admin-section label {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}
.admin-section input,
.admin-section select,
.admin-section textarea {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
}

/* Global resets and utilities */
* {
    box-sizing: border-box;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Heebo', sans-serif;
}

.hidden {
    display: none !important;
}

.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
img[data-fallback-initial] { object-fit: cover; }
img.img-broken { display: none !important; }

html {
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
}

html, body {
    margin: 0;
    min-height: 100%;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
}

/* Hebrew typography: fix mobile overlaps */
html[lang="he"] body,
body[dir="rtl"] {
    line-height: 1.6;
}

/* High contrast: inputs white bg, pure black text while typing */
input, textarea, select {
    color: #000000 !important;
}
input::placeholder,
textarea::placeholder {
    color: #64748b;
}

body {
    background-color: #0f172a;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
}

/* Prevent content overlap with fixed bottom nav on app pages */
body.app-shell {
    padding-bottom: 80px;
}

/* Contrast layer: keeps white text sharp over gradient */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    pointer-events: none;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body.app-shell {
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

.app-frame {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-glass);
    overflow-y: auto;
}
.app-frame:has(.bottom-nav) {
    overflow: visible !important;
}

/* Wheel page: prevent scroll so wheel stays centered and static */
body.wheel-page .app-frame.wheel-app-frame {
    overflow: hidden !important;
}

.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #0f172a;
}

.app-header {
    padding: 1.5rem 1.4rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
}
.brand-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 0.75rem;
}
.brand-logo {
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    white-space: nowrap;
}
.brand-subtitle {
    font-weight: 400;
    font-size: 14px;
    color: #94a3b8;
    white-space: nowrap;
}

.app-header-topbar {
    padding: 0.85rem 1.2rem;
    flex-wrap: wrap;
}

.app-header-topbar .header-logo {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E293B;
    letter-spacing: 0.02em;
    font-family: 'Assistant', sans-serif;
}

/* Install icon in header: clearly visible */
#installAppBtn .lucide,
#installAppBtn [data-lucide],
.header-action[aria-label*="התקן"],
.header-action[title*="התקן"] .lucide {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.app-header-topbar .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-header-sub {
    padding-top: 0.5rem;
}

.app-header-sub .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-header h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-header p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #1E293B;
    cursor: pointer;
    transition: transform var(--transition-btn), border-color var(--transition-btn), background var(--transition-btn);
}

.header-action:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
}

.header-action .lucide,
.header-action [data-lucide] {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 1.25;
    color: #1E293B;
}

/* Install PWA modal */
.install-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.install-modal:not(.hidden) {
    display: flex;
}

.install-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.install-modal.hidden {
    display: none !important;
}

/* Install modal: Minimalist White (match login/nav) */
.install-modal-content {
    width: 100%;
    max-width: 340px;
    padding: 1.5rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1E293B;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.install-modal-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1E293B;
}

.install-modal-content p {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #64748B;
}

.install-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.install-modal-actions .btn {
    flex: 1;
}

/* Update version modal: full glassmorphism overlay + central dialog */
.update-version-overlay {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.update-version-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}
.update-version-overlay.hidden {
    display: none !important;
}
.update-version-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 17, 33, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    cursor: default;
}
.update-version-dialog {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    text-align: center;
}
.update-version-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.update-version-text {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.update-version-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.update-version-actions .btn {
    flex: 1;
    min-width: 0;
}

/* Auth required modal: interceptor for unauthenticated actions */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}
.auth-modal.hidden {
    display: none !important;
}
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    color: #1e293b;
    max-width: 340px;
    width: 100%;
}
.auth-card p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}
.auth-card .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.btn-auth-primary {
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease;
    user-select: none;
}
.btn-auth-primary:hover {
    background: #1d4ed8 !important;
}
.btn-auth-secondary {
    background: transparent !important;
    color: #2563eb !important;
    border: 2px solid #2563eb !important;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}
.btn-auth-secondary:hover {
    background: rgba(37, 99, 235, 0.08) !important;
}

.header-action:hover,
.header-action:focus-visible {
    background: rgba(255, 255, 255, 0.25);
}

.header-action:active {
    transform: scale(0.95);
}

/* Compact header: sticky, max 60px, midnight */
.app-header-compact {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    max-height: 60px;
    min-height: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0f172a;
}
.app-header-compact .header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.app-header-compact .header-title-compact {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}
.app-header h1,
.app-header .header-title-compact {
    color: #ffffff;
}
/* b4 Segmented Control: horizontal scrollable #sortBar below header */
#sortBar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 99;
    background: #0f172a;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#sortBar::-webkit-scrollbar { height: 0; display: none; }
.loading-active #sortBar {
    visibility: hidden;
    pointer-events: none;
}
.sort-pill {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    color: #fff;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 11px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.sort-pill:hover {
    border-color: rgba(255, 255, 255, 0.6);
}
.sort-pill.active {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}

/* Promoted badge: admin-pinned coupon - OVERLAY on image */
.badge-promoted-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(99, 102, 241, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
/* Legacy promoted badge (kept for compatibility) */
.badge-promoted {
    background: #6366f1;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
}
.promoted-tag-row {
    display: block;
    width: 100%;
    margin-top: 6px;
    text-align: center;
}
.promoted-tag-row .badge-promoted {
    font-size: 11px;
    font-weight: 800;
    color: #6366f1;
    background: #eef2ff;
    letter-spacing: 0.5px;
    padding: 4px 10px;
}
/* New badge: coupon created in last 24h */
.badge-new {
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 11px;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}
.new-badge,
.new-badge-dot {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: bold;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}
.new-badge-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
}

/* Skeleton: matches .coupon-card dimensions, pulse only */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.skeleton-card {
    width: 100%;
    max-width: 500px;
    min-height: 350px;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f0f0f0;
}
.skeleton-image,
.skeleton-text,
.skeleton-button {
    background: #e0e0e0;
    animation: pulse 1.5s infinite ease-in-out;
}
.skeleton-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    flex-shrink: 0;
}
.skeleton-text {
    height: 14px;
    border-radius: 6px;
}
.skeleton-text.skeleton-text-wide { width: 85%; }
.skeleton-text.skeleton-text-narrow { width: 55%; }
.skeleton-button {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    margin-top: 8px;
}
.loading-status {
    padding: 12px 1.35rem;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    min-height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-status:not(.hidden) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
}
.loading-status.hidden { display: none !important; }
.app-header #ux-status.loading-status { position: static; transform: none; }
.app-header #ux-status.loading-status:not(.hidden) { display: inline-flex; }
.skeleton-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 1.35rem 1.2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.skeleton-container.hidden { display: none !important; }

.viewport {
    position: relative;
    flex: 1;
    padding: 0 1.35rem 1.2rem;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: touch;
}

/* Pull-to-refresh indicator (feed) */
.pull-refresh-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.pull-refresh-indicator.hidden {
    display: none;
}
.pull-refresh-indicator .pull-refresh-text {
    display: inline;
}
.pull-refresh-indicator .pull-refresh-text.hidden {
    display: none;
}
.pull-refresh-indicator .pull-refresh-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pull-refresh-indicator .pull-refresh-spinner.hidden {
    display: none;
}
.pull-refresh-indicator .pull-refresh-spinner .spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

/* Homepage categories: cards with Lucide icons */
.home-categories {
    margin-bottom: 1.25rem;
}
.home-categories-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0.75rem;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    min-height: 90px;
}
.category-card:hover,
.category-card:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    outline: none;
}
.category-card .category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.category-card .category-icon svg {
    width: 32px;
    height: 32px;
}
.category-card .category-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Categories directory page: grid-based directory */
.categories-frame .categories-viewport {
    overflow-y: auto;
    padding: 0 1.35rem 1.25rem;
    padding-bottom: calc(1.25rem + 85px);
}
.categories-header .categories-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.categories-header .categories-desc {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.categories-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.9);
}
.categories-loading.hidden,
.categories-empty.hidden {
    display: none !important;
}
.categories-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}
.categories-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}
.categories-empty-icon svg {
    width: 4rem;
    height: 4rem;
}
.categories-empty-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}
.categories-empty-link:hover {
    background: rgba(255, 255, 255, 0.35);
}
.categories-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem 0;
}
.category-dir-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--card-radius);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    min-height: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.category-dir-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}
.category-dir-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.category-dir-icon svg {
    width: 28px;
    height: 28px;
}
.category-dir-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.2;
}
.category-dir-badge {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.card-stack {
    position: relative;
    width: 100%;
    pointer-events: auto;
    transition: all 0.3s ease;
}
.card-stack.feed-fade-in {
    animation: feedFadeIn 0.32s ease-out;
}
@keyframes feedFadeIn {
    from { opacity: 0.97; }
    to { opacity: 1; }
}
/* Native feel: fade-in cards to prevent jumpy UI */
.card-stack .coupon-card { opacity: 0; transition: opacity 0.2s ease; }
.card-stack .coupon-card.visible { opacity: 1; }

/* Feed container: premium feed feel, max 500px */
.feed-container {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.feed-container .coupon-card.feed-card {
    width: 100%;
}

.coupon-card {
    touch-action: pan-y !important;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}
.coupon-card.swipe-dismiss {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* List layout: scrollable feed, every card swipeable */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    padding-bottom: 80px;
    min-height: 100%;
    pointer-events: auto;
}
.feed-container .coupon-card {
    position: relative;
    top: auto;
    left: auto;
    width: 90%;
    max-width: 100%;
    margin: 0;
    height: auto;
    min-height: 280px;
    max-height: 420px;
    flex-shrink: 0;
    pointer-events: auto !important;
}
.feed-container .coupon-card.feed-card {
    width: 100%;
    height: fit-content !important;
    min-height: 350px;
    max-height: none !important;
}
.feed-container .coupon-card-inner,
.feed-container .card-business-row,
.feed-container .card-distance-wrap,
.feed-container .distance-badge {
    position: relative;
}

/* Empty state: Lucide ticket + centered text */
.empty-state-feed {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
}
.empty-state-feed.hidden {
    display: none !important;
}
.empty-state-feed .empty-state-icon {
    opacity: 0.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.empty-state-feed .empty-state-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.25;
    color: #fff;
}
.empty-state-feed .empty-state-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.empty-state-feed .empty-state-btn,
.empty-state-feed .empty-state-back-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.empty-state-feed .empty-state-btn:hover,
.empty-state-feed .empty-state-back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* FORCED RESET: No shadows inside cards – visual purity & sharpness */
.feed-card *,
.wallet-card * {
    text-shadow: none !important;
    box-shadow: none !important;
}
.feed-card img,
.wallet-card img {
    box-shadow: none !important;
}
.feed-card,
.wallet-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.feed-card .card-body.card-body-ticket,
.wallet-card .card-body.card-body-ticket {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Card polish: pure white, 20px radius, elegant shadow */
.coupon-card.feed-card,
.feed-card.wallet-card.ticket-card {
    background: #ffffff !important;
    padding: 16px !important;
    border-radius: 20px !important;
    margin-bottom: 12px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    height: fit-content !important;
    min-height: 350px;
    max-height: none !important;
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.coupon-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
/* When expanded: natural growth, no fixed heights; glass frame padding 15px */
.feed-card.is-expanded,
.feed-card.wallet-card.is-expanded,
.feed-card.wallet-card.ticket-card.is-expanded {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 15px !important;
    max-height: none !important;
    aspect-ratio: none !important;
    overflow: visible !important;
}

.coupon-card.is-top {
    z-index: 10;
}

/* Swipe indicators on every card (green = save, red = dismiss) */
.coupon-card .swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 2;
    will-change: transform, opacity;
    user-select: none;
}
.coupon-card .swipe-indicator-save {
    left: 1rem;
    background: rgba(34, 197, 94, 0.9);
    border: 3px solid rgba(255,255,255,0.9);
}
.coupon-card .swipe-indicator-dismiss {
    right: 1rem;
    left: auto;
    background: rgba(100, 116, 139, 0.85);
    border: 3px solid rgba(255,255,255,0.9);
}
.coupon-card .swipe-indicator.visible {
    opacity: 1;
}

.coupon-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.coupon-card.is-top::after {
    opacity: 1;
}

.coupon-card.is-top:hover .coupon-card-inner {
    transform: scale(1.02);
}

.coupon-card img,
.coupon-card .card-image,
.coupon-card .ticket-image {
    object-fit: cover;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.coupon-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
    transition: transform 0.25s ease;
    position: relative;
    z-index: 1;
}

.coupon-card header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}
.coupon-card .card-business-row,
.coupon-card .card-distance-wrap,
.coupon-card .distance-badge {
    position: relative;
    z-index: 1;
}

.coupon-card .card-business-address {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.15rem;
    line-height: 1.3;
}
.coupon-card .card-business-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.coupon-card .business,
.coupon-card h2,
.coupon-card p,
.coupon-card footer {
    line-height: 1.6;
}
.coupon-card .card-follow-wrap {
    flex-shrink: 0;
}
.coupon-card .card-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}
.coupon-card .card-follow-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.03);
}
.coupon-card .card-follow-btn .lucide {
    width: 0.95rem;
    height: 0.95rem;
    stroke-width: 1.5;
}
.coupon-card .business,
.coupon-card .card-business-link {
    text-transform: uppercase;
    font-size: 1.0rem;
    letter-spacing: 0.11em;
    color: #6b7280;
}
.coupon-card .card-business-link {
    text-decoration: none;
}
.coupon-card .card-business-link:hover {
    text-decoration: underline;
    font-weight: 600;
    color: #1f2937;
}

.coupon-card h2,
.coupon-card h3,
.coupon-card h4 {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 700;
    color: #1f2937 !important;
}
.coupon-card h2 {
    text-shadow: none;
}

.coupon-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #374151;
    text-shadow: none;
}

.coupon-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-shadow: none;
}
.coupon-card .card-store-link {
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}
.coupon-card .card-store-link:hover {
    background: rgba(255, 255, 255, 0.35);
}
.coupon-card .card-store-link [data-lucide] {
    width: 1rem;
    height: 1rem;
}

.stack-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stack-state.hidden {
    display: none;
}

.stack-state .spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.stack-state h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stack-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stack-hints {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3.2rem;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.25s ease;
}

.stack-hints.hidden {
    opacity: 0;
    pointer-events: none;
}

.stack-hints span {
    position: relative;
}

.stack-hints span::before {
    content: '';
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
}

/* Bottom nav: fixed bar, modern app style (white, shadow, active state) */
.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 40;
}

/* Bottom nav bar: child styles, fixed icon dimensions (anti-flicker) */
.bottom-nav .nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 44px;
    min-height: 56px;
    width: 44px;
    color: #334155;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.bottom-nav .nav-button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.bottom-nav .nav-button .icon i,
.bottom-nav .nav-button .icon svg,
.bottom-nav .nav-button [data-lucide] {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    color: #334155;
}

.bottom-nav .nav-button:hover,
.bottom-nav .nav-button:focus-visible {
    color: #1e293b;
    opacity: 0.85;
}

.bottom-nav .nav-button.active {
    color: #6366f1;
    opacity: 1;
}

.bottom-nav .nav-button.active::before {
    background: #6366f1;
    top: auto;
    bottom: 2px;
}

.bottom-nav .nav-button.active .icon svg,
.bottom-nav .nav-button.active [data-lucide] {
    color: #6366f1;
    filter: none;
}

/* Wheel nav: accent styling */
.nav-wheel-link {
    position: relative;
}
.bottom-nav .nav-wheel-link .icon {
    transform: scale(1.2);
}
.bottom-nav .nav-wheel-link .icon svg,
.bottom-nav .nav-wheel-link [data-lucide] {
    color: #f59e0b;
}
.nav-wheel-icon {
    position: relative;
}
.nav-wheel-icon::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f59e0b;
    animation: wheel-dot-pulse 2.2s ease-in-out infinite;
}
.bottom-nav .nav-wheel-link .nav-wheel-icon::after {
    top: -2px;
    right: -2px;
}
@keyframes wheel-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}
.nav-wheel-link .icon {
    animation: wheel-icon-shimmer 3s ease-in-out infinite;
}
@keyframes wheel-icon-shimmer {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5)); }
}
.bottom-nav .nav-wheel-link.active .icon {
    animation: none;
}
.bottom-nav .nav-wheel-link.active .icon svg,
.bottom-nav .nav-wheel-link.active [data-lucide] {
    color: #d97706;
}

/* Hide any leftover label in bottom nav (icon-only layout) */
.bottom-nav .nav-button .label {
    display: none;
}

/* Reserve space above bottom nav so last coupon is fully visible */
.app-frame .app-container,
.viewport {
    padding-bottom: 90px !important;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 56px;
    color: #1E293B;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-btn), opacity var(--transition-btn);
}

.nav-button .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-button .icon svg,
.nav-button [data-lucide],
.app-nav .icon svg,
.app-nav [data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.25;
    color: #1E293B;
}

.bottom-nav .nav-label {
    display: none;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #1E293B;
    text-decoration: none;
    font-family: 'Assistant', sans-serif;
    transition: opacity var(--transition-btn);
    opacity: 0.6;
    user-select: none;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    opacity: 1;
}

.bottom-nav .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav .nav-icon svg {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 1.25;
    color: #1E293B;
}

.nav-button:hover,
.nav-button:focus-visible {
    opacity: 0.9;
}

.nav-button.active {
    color: #1E293B;
    position: relative;
}

.nav-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

.nav-button.active .icon,
.nav-button .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-button:focus-visible {
    color: #fff;
}

/* Center plus button: floating action button above nav */
.nav-plus-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    min-width: 58px;
    overflow: visible !important;
}
#add-coupon-btn {
    pointer-events: auto !important;
    z-index: 9999 !important;
}
.nav-plus {
    position: relative;
    top: -15px;
    width: 58px;
    height: 58px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    cursor: pointer;
    transition: transform var(--transition-btn), box-shadow var(--transition-btn);
    user-select: none;
}
.nav-plus:hover,
.nav-plus:focus-visible {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}
.nav-plus:active {
    transform: scale(0.98);
}
.nav-plus .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-plus .icon svg,
.nav-plus [data-lucide] {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
    color: #fff;
}
.nav-plus input {
    display: none;
}
.nav-plus-spacer {
    width: 58px;
    min-width: 58px;
    flex-shrink: 0;
    pointer-events: none;
}

.toast {
    position: absolute;
    left: 50%;
    bottom: calc(100px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(16px);
    background: rgba(15, 118, 110, 0.9);
    color: var(--text-primary);
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.35);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 160;
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(248, 113, 113, 0.32);
    box-shadow: 0 16px 32px rgba(239, 68, 68, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Update toast: glassmorphism, RTL, with button */
.toast-update {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
    text-align: right;
    direction: rtl;
    z-index: 10000;
}

.toast-update-glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.toast-update-glass.show {
    opacity: 1;
    pointer-events: auto;
}

.toast-update-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
}

.toast-update-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.toast-update-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.toast-update.hidden {
    display: none !important;
}

/* Nav badge: child of wallet icon container, pinned top-right */
.nav-button-wallet .icon {
    position: relative;
}

.nav-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

[dir="rtl"] .nav-badge {
    right: auto;
    left: -5px;
}

.nav-badge.hidden {
    display: none !important;
}

@keyframes nav-badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.95; }
}

.hidden-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Action sheet: mobile-style photo selection popup (Camera / Gallery / Cancel) */
.modal-overlay {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
}
.action-sheet-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 80px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s ease;
    transform: translateY(100%);
}
.action-sheet-overlay.modal-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
}

#accountSettingsSheet {
    z-index: 10005 !important;
}

#accountSettingsSheet.visible {
    transform: translateY(0) !important;
}

.action-sheet-overlay.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Premium intro card at top of action sheet */
.upload-intro-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    width: 90%;
    margin: 0 auto 20px auto;
    font-family: 'Heebo', sans-serif;
    text-align: center;
}
.upload-intro-card .upload-intro-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}
.upload-intro-text {
    margin: 0 0 1rem;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
}
.upload-intro-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.9);
}
.upload-intro-dismiss input[type="checkbox"] {
    margin: 0;
}
.upload-intro-card.hidden {
    display: none !important;
}

.action-sheet {
    width: 100%;
    max-width: 420px;
    padding: 0.5rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.action-sheet-overlay.visible .action-sheet {
    transform: translateY(0);
}

.action-sheet-btn {
    width: 100%;
    padding: 0 1.25rem;
    font-size: 1rem;
    font-family: 'Heebo', 'Assistant', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* Capture (Camera) button */
.action-sheet .action-sheet-btn:nth-of-type(1) {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 16px;
    height: 50px;
    font-weight: 700;
    color: #fff;
}

.action-sheet .action-sheet-btn:nth-of-type(1):hover {
    opacity: 0.95;
}

/* Gallery button */
.action-sheet .action-sheet-btn:nth-of-type(2) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    height: 50px;
    color: #fff;
    font-weight: 600;
}

.action-sheet .action-sheet-btn:nth-of-type(2):hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Cancel: small text link */
.action-sheet-btn.action-sheet-cancel {
    background: none;
    border: none;
    color: #94a3b8;
    margin-top: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    height: auto;
    padding: 0.5rem 0;
}

.action-sheet-btn.action-sheet-cancel:hover {
    background: none;
    color: #cbd5e1;
}

/* Account Settings Bottom Sheet - Apple/Google Style */
.account-settings-sheet {
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem 0 calc(1rem + env(safe-area-inset-bottom));
}

.settings-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.settings-title {
    font-family: 'Heebo', 'Assistant', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 1.5rem;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section-header {
    font-family: 'Heebo', 'Assistant', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    padding: 0 1.25rem 0.5rem;
    letter-spacing: 0.5px;
}

.settings-list {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin: 0 1rem;
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    text-align: right;
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 60px;
}

.settings-item:hover,
.settings-item:focus {
    background: rgba(255, 255, 255, 0.05);
}

.settings-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.settings-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    flex-shrink: 0;
}

.settings-item-icon svg {
    width: 20px;
    height: 20px;
}

.settings-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.settings-item-label {
    font-family: 'Heebo', 'Assistant', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.settings-item-sublabel {
    font-family: 'Heebo', 'Assistant', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.settings-item-action {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.settings-item-action svg {
    width: 20px;
    height: 20px;
}

.settings-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1.25rem;
}

/* Toggle Switch */
.settings-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 28px;
}

.settings-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    right: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.settings-toggle input:checked + .settings-toggle-slider {
    background-color: #3b82f6;
}

.settings-toggle input:checked + .settings-toggle-slider:before {
    transform: translateX(-20px);
}

/* Danger Zone Styling */
.settings-item-danger .settings-item-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.settings-item-danger .settings-item-label {
    color: #ef4444;
}

.settings-item-danger:hover,
.settings-item-danger:focus {
    background: rgba(239, 68, 68, 0.1);
}

/* Personal coupon editor: full-screen slide-up (GPU-accelerated) */
.camera-overlay {
    position: fixed;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    z-index: 2100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.camera-overlay.visible {
    transform: translate3d(0, -100%, 0);
    pointer-events: auto;
}

.camera-overlay.visible ~ .action-sheet-overlay,
.camera-overlay.visible ~ .modal-overlay,
.camera-overlay.visible ~ .coupon-detail-modal {
    display: none !important;
    pointer-events: none !important;
}

.camera-overlay--glass .camera-dialog {
    animation: none;
}

.camera-overlay .camera-dialog {
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    max-height: 90vh;
    min-height: unset;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem 1.25rem;
    background: #0f172a;
    border: none;
    border-radius: 0;
    box-shadow: none;
    gap: 0.65rem;
    text-align: right;
    direction: rtl;
}

.camera-dialog--glass {
    background: rgba(30, 41, 59, 0.88);
}

.camera-dialog-title,
.camera-dialog h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: right;
}

/* Manual entry: type selector – single-row flex, top layer */
.coupon-type-selector {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.25rem;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 9999;
}

.coupon-type-btn {
    flex: 0 0 auto;
    height: 32px;
    font-size: 13px;
    padding: 0 15px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    pointer-events: auto !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

.coupon-type-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.coupon-type-btn.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

/* Entry form: preview container fixed 220px */
#cameraLivePreviewImg,
#personal-image-preview,
#preview-image,
.camera-preview-wrap .camera-preview-img {
    height: 200px !important;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    object-position: center;
    transition: object-position 0.2s ease;
}
.camera-preview-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.camera-preview-img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: object-position 0.2s ease;
}

.camera-preview-img.hidden {
    display: none;
}

/* Replace image: simple outline / text link below preview */
.camera-replace-image-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: right;
}

.camera-replace-image-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.camera-replace-image-link [data-lucide] {
    width: 1rem;
    height: 1rem;
}

/* Positioning buttons: subtle glass inactive, solid blue active */
.camera-field-image-focus .image-focus-options {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.camera-field-image-focus label {
    margin-bottom: 0.2rem;
}

.image-focus-btn {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.image-focus-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.image-focus-btn.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

/* Modal form fields: glass inputs */
.camera-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
}

.camera-field label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.camera-field input,
.camera-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: none;
    text-align: right;
}

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

.camera-field input:focus,
.camera-field textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

/* Save / Cancel: at end of scrollable content (no fixed positioning) */
.camera-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.camera-btn {
    flex: 1;
    min-width: 0;
    max-width: 140px;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    pointer-events: auto !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
    position: relative;
    z-index: 10;
}

.camera-btn-cancel {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.camera-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.camera-btn-save {
    border: none;
    background: #0ea5e9;
    color: #fff;
}

.camera-btn-save:hover {
    background: #0284c7;
}

.dialog-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Assistant', sans-serif;
    transition: transform var(--transition-btn), opacity var(--transition-btn), background var(--transition-btn);
}

.btn:hover,
.btn:focus-visible {
    opacity: 0.95;
}

.btn:active {
    transform: scale(0.97);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #041121;
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.35);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wallet-frame .viewport {
    overflow-y: auto;
    padding-bottom: calc(1.75rem + 90px + env(safe-area-inset-bottom));
}

.wallet-frame .app-container,
.wallet-frame {
    background: #0f172a;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
}

.wallet-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.wallet-header-row h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    font-family: 'Heebo', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-active-count {
    font-size: 0.9rem;
    font-family: 'Heebo', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.wallet-header h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    font-family: 'Heebo', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ticket-grid,
.wallet-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.wallet-card-grid .wallet-card {
    margin-bottom: 25px;
}
.wallet-card-grid .wallet-card:last-child {
    margin-bottom: 0;
}

.wallet-card-grid.hidden {
    display: none !important;
}

@media (min-width: 1025px) {
    .ticket-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .wallet-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Wallet welcome header: match Main Feed */
.wallet-header .wallet-welcome-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    font-family: 'Heebo', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.wallet-header .wallet-welcome-desc {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Wallet toolbar: 2-tier stack (Row 1: Sort Bar, Row 2: Search) */
.wallet-frame .wallet-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px 12px;
    background: #0f172a;
    font-family: 'Assistant', sans-serif;
}
.wallet-frame .wallet-toolbar.hidden {
    display: none !important;
}
.wallet-frame .wallet-toolbar .sort-bar {
    flex-shrink: 0;
}
.wallet-frame .wallet-toolbar .wallet-search-wrap {
    padding: 0;
    background: transparent;
}

/* Wallet search bar */
.wallet-search-wrap {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #0f172a;
}
.wallet-search-wrap.hidden {
    display: none !important;
}
.wallet-search-input {
    flex: 1;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 0.95rem;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.wallet-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}
.wallet-search-input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Wallet card: 50/50 square – 320px height, 12px padding, top image 148px, bottom glass 148px */
.wallet-card.ticket-card {
    position: relative;
    box-sizing: border-box;
    height: 320px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    background: transparent;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.wallet-card.ticket-card.is-expanded {
    height: auto;
    min-height: 320px;
}
.wallet-card.ticket-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.wallet-card.won-highlight {
    animation: won-card-glow 2s ease-in-out 3;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 40px rgba(34, 197, 94, 0.2);
}
@keyframes won-card-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 40px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 0 50px rgba(34, 197, 94, 0.3); }
}

/* Top half: image – exactly 148px, rounded top */
.wallet-card .card-hero {
    position: relative;
    width: 100%;
    height: 148px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 14px 14px 0 0;
    margin: 0;
    padding: 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Status badge: top-left of image (left in LTR, right in RTL = start edge) */
.wallet-card .card-hero .wallet-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 5;
    margin: 0;
    font-size: 0.75rem;
}
[dir="rtl"] .wallet-card .card-hero .wallet-status-badge {
    left: auto;
    right: 10px;
}
.wallet-card .card-hero .wallet-status-badge [data-lucide] {
    display: inline-block;
}

/* Edit button: top-right of image (opposite status badge), white icon + drop-shadow */
.wallet-card .card-hero .wallet-card-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 50;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    transition: background 0.2s ease, transform 0.2s ease;
}
[dir="rtl"] .wallet-card .card-hero .wallet-card-edit-btn {
    right: auto;
    left: 10px;
}
.wallet-card .card-hero .wallet-card-edit-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}
.wallet-card .card-hero .wallet-card-edit-btn [data-lucide],
.wallet-card .card-hero .wallet-card-edit-btn svg {
    width: 1rem;
    height: 1rem;
    color: #fff;
}

/* Feed card: Like (heart) over hero – glass circle, RTL-friendly */
.feed-card .card-hero .feed-like-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
[dir="rtl"] .feed-card .card-hero .feed-like-wrap {
    right: auto;
    left: 10px;
}
.feed-card .card-hero .feed-like-wrap .feed-like-btn {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.feed-card .card-hero .feed-like-wrap .feed-like-btn:hover {
    color: #fff;
    transform: scale(1.08);
}
.feed-card .card-hero .feed-like-wrap .feed-like-btn [data-lucide],
.feed-card .card-hero .feed-like-wrap .feed-like-btn svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* Feed card hero image: ensure visible and correct object-position */
.feed-card .card-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}
.feed-card[data-image-position="top"] .card-hero img { object-position: top; }
.feed-card[data-image-position="center"] .card-hero img { object-position: center; }
.feed-card[data-image-position="bottom"] .card-hero img { object-position: bottom; }
.feed-card .card-hero .card-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    color: #94a3b8;
}
.feed-card .card-hero .card-hero-placeholder.hidden {
    display: none;
}

.wallet-card.is-expanded .card-hero {
    height: 180px;
}
.wallet-card .card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px 14px 0 0;
    margin: 0;
    padding: 0;
}
.wallet-card[data-image-position="top"] .card-hero img { object-position: top; }
.wallet-card[data-image-position="center"] .card-hero img { object-position: center; }
.wallet-card[data-image-position="bottom"] .card-hero img { object-position: bottom; }
.wallet-card .card-hero .card-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
}
.wallet-card .card-hero .card-hero-placeholder.hidden {
    display: none;
}
.wallet-card .card-hero .card-hero-placeholder [data-lucide] {
    width: 2.5rem;
    height: 2.5rem;
}

/* Toggle: exactly on seam; sharp (no blur) so "+" stays crisp */
.wallet-card .card-toggle-btn {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: 'Assistant', sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    flex-shrink: 0;
    filter: none;
    text-shadow: none;
}
[dir="rtl"] .wallet-card .card-toggle-btn {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
}
.wallet-card .card-toggle-btn:hover {
    background: #fff;
}
.wallet-card.is-expanded .card-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border-color: rgba(30, 41, 59, 0.25);
}
.wallet-card .card-toggle-icon-minus {
    display: none;
}
.wallet-card.is-expanded .card-toggle-icon-plus {
    display: none;
}
.wallet-card.is-expanded .card-toggle-icon-minus {
    display: block;
}
.wallet-card.is-expanded .card-toggle-btn {
    transform: translate(-50%, -50%) rotate(45deg);
}
[dir="rtl"] .wallet-card.is-expanded .card-toggle-btn {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Bottom half: pure white – 148px; 18px padding */
.wallet-card .card-body.card-body-ticket {
    position: relative;
    flex: 0 0 148px;
    height: 148px;
    min-height: 148px;
    background-color: #ffffff !important;
    padding: 18px;
    border-radius: 0 0 14px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    box-shadow: none;
}
.wallet-card.is-expanded .card-body.card-body-ticket {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    padding: 18px;
    gap: 8px;
}

/* Inner panels – seamless ticket join (0 gap); hero top-rounded, body bottom-rounded */
.feed-card.wallet-card.ticket-card {
    overflow: visible;
    gap: 0 !important;
}
.feed-card .card-hero {
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0;
    min-height: 0;
}
.feed-card.wallet-card.is-expanded .card-hero {
    height: 220px !important;
    aspect-ratio: none !important;
    flex: 0 0 220px !important;
    border-radius: 15px 15px 0 0 !important;
}
.feed-card.wallet-card.is-expanded .card-hero img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}
.feed-card .card-body.card-body-ticket {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 0 0 15px 15px !important;
    padding: 18px !important;
    width: 100% !important;
    margin-top: -20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    flex-grow: 1 !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.feed-card.wallet-card.is-expanded .card-body.card-body-ticket {
    flex-grow: 1 !important;
}
/* Toggle: full floating white circle on seam; parents need overflow: visible */
.feed-card .card-toggle-btn,
.feed-card .card-toggle-btn:hover,
.feed-card.wallet-card.is-expanded .card-toggle-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 50% !important;
    z-index: 100 !important;
}
/* Hide Active (פעיל) badge in home feed – feed cards do not show status */
.feed-card .wallet-status-badge {
    display: none !important;
}
.feed-container .coupon-card.feed-card {
    height: fit-content !important;
    min-height: 350px;
}
.feed-container .feed-card .card-hero {
    aspect-ratio: none;
    flex: 0 0 160px;
    height: 160px;
}
.feed-container .feed-card.wallet-card.is-expanded .card-hero {
    height: 220px !important;
    flex: 0 0 220px !important;
}
.feed-container .feed-card .card-body.card-body-ticket {
    flex: 0 0 160px;
    min-height: 160px;
}
.feed-container .feed-card.wallet-card.is-expanded .card-body.card-body-ticket {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/* Typography: Business 1.25rem/800/#000000; Offer 1.1rem/600/#333333; RTL right-aligned */
.feed-card .card-body.card-body-ticket .wallet-card-business,
.wallet-card .wallet-card-business {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    white-space: normal !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    position: static !important;
}
.card-text-content .business-name {
    font-family: 'Heebo', sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.02em;
    display: block !important;
}
.card-text-content .offer-main-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-top: 2px;
}
.card-text-content {
    padding: 18px 22px !important;
}
.feed-card .card-body.card-body-ticket .wallet-card-offer,
.wallet-card .wallet-card-offer {
    margin: 0 0 0.0rem 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    color: #333333 !important;
    position: static !important;
}
.feed-card .card-body.card-body-ticket .wallet-card-desc,
.feed-card .card-body.card-body-ticket p {
    color: #475569 !important;
}
.feed-card .card-body.card-body-ticket * {
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.feed-card .card-body.card-body-ticket .feed-store-link,
.feed-card .card-body.card-body-ticket .wallet-btn-use.feed-claim-btn {
    color: #ffffff !important;
}
.feed-card .card-body.card-body-ticket {
    direction: rtl;
    text-align: right;
    overflow: visible;
    position: relative;
}
.feed-card .card-collapsed-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    direction: rtl;
    text-align: right;
}
/* Footer layout: expiry right, delete/actions left */
.card-footer-layout {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    background: transparent;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.footer-right {
    text-align: right;
    flex: 1;
    flex-shrink: 1;
    min-width: 0;
    color: #555555;
    white-space: nowrap;
}
.footer-left {
    text-align: left;
    flex-shrink: 0;
    white-space: nowrap;
}
.expiry-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
}
.expiry-date [data-lucide],
.expiry-date svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: inherit;
}
.card-distance-wrap,
.distance-badge {
    flex-shrink: 0;
    white-space: nowrap;
}
.feed-card .card-footer-layout .footer-right .card-distance-wrap,
.feed-card .card-footer-layout .footer-right .distance-badge {
    color: #475569 !important;
    font-weight: 600 !important;
}
/* Small elegant distance label (only when distance data is valid) */
.feed-card .distance-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.06);
}
.wallet-card .card-body {
    background-color: #ffffff !important;
    border-radius: 0 0 20px 20px;
    padding: 18px;
}
.wallet-card .card-body-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.wallet-card .card-category {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}
.wallet-card .card-body .wallet-status-badge {
    margin-left: auto;
}
[dir="rtl"] .wallet-card .card-body .wallet-status-badge {
    margin-left: 0;
    margin-right: auto;
}

/* Collapsed: flex column, gap 8px; footer (expiry + trash) at bottom */
.wallet-card .card-collapsed {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 8px;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.wallet-card .card-collapsed-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 8px;
    text-align: right;
    position: static !important;
}
[dir="ltr"] .wallet-card .card-collapsed-content {
    text-align: left;
}
.wallet-card .card-collapsed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    flex-shrink: 0;
}
/* Delete/Remove button: clean icon-only, no box */
.delete-coupon-btn,
.wallet-card .wallet-btn-trash,
.wallet-card .delete-btn {
    padding: 8px !important;
    min-width: 44px;
    min-height: 44px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #666666 !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.delete-coupon-btn:hover,
.wallet-card .wallet-btn-trash:hover,
.wallet-card .delete-btn:hover {
    background: transparent !important;
    opacity: 0.75;
}
.delete-coupon-btn [data-lucide],
.delete-coupon-btn svg,
.wallet-card .wallet-btn-trash [data-lucide],
.wallet-card .wallet-btn-trash svg,
.wallet-card .delete-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    color: #666666 !important;
}
.wallet-card.is-expanded .card-collapsed {
    display: none;
}

/* Expanded state: accordion (max-height 0 -> 500px), snappy transition */
.wallet-card .card-expanded {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.wallet-card.is-expanded .card-expanded {
    max-height: 520px;
    overflow: visible;
    opacity: 1;
}
.feed-card.wallet-card.is-expanded .card-expanded {
    max-height: none;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.wallet-card .card-expanded .wallet-card-desc {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: visible;
    max-height: none;
}
.wallet-card .card-expanded .wallet-card-business,
.wallet-card .card-expanded .wallet-card-offer {
    margin: 0;
}
.wallet-card .card-collapsed .wallet-card-business,
.wallet-card .card-collapsed .wallet-card-offer {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
}
.wallet-card .card-expanded .wallet-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.wallet-card .card-expanded .wallet-btn-use {
    flex: 1;
    min-width: 0;
    max-width: 280px;
    margin: 0 auto;
}
/* card-expanded-content: contains desc + expiry; hidden when collapsed, shown when expanded */
.feed-card .card-expanded .card-expanded-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
}
/* Expanded: description full text, black, right-aligned; buttons high-contrast */
.feed-card .card-expanded .wallet-card-desc {
    color: #555555 !important;
}
.feed-card .card-expanded .wallet-card-offer,
.feed-card .card-expanded .wallet-card-business,
.feed-card .card-expanded .wallet-card-expiry,
.feed-card .card-expanded .wallet-card-address {
    color: #000000 !important;
}
.feed-card .card-expanded .wallet-card-desc {
    text-align: right;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
/* Expanded: white body extends down; buttons at bottom with proper padding */
.feed-card .card-expanded {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 4px;
}
.feed-card .card-expanded .wallet-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 18px !important;
    width: 100% !important;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}
.feed-card .card-expanded .wallet-card-actions button {
    margin: 0 !important;
    width: 100% !important;
}
.feed-card .card-expanded .wallet-card-actions .btn {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}
.feed-card .card-expanded .wallet-card-store-wrap .feed-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}
.feed-card .card-expanded .wallet-card-store-wrap .feed-store-link:hover {
    background: #1d4ed8;
    color: #fff;
}
.feed-card .card-expanded .wallet-card-store-wrap .feed-store-link [data-lucide],
.feed-card .card-expanded .wallet-card-store-wrap .feed-store-link svg {
    width: 1rem;
    height: 1rem;
}
.feed-card .card-expanded .wallet-btn-use.feed-claim-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}
.feed-card .card-expanded .wallet-btn-use.feed-claim-btn:hover {
    background: #15803d;
    color: #fff;
}
.wallet-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.wallet-status-badge svg {
    width: 0.85rem;
    height: 0.85rem;
}
.wallet-status-active {
    background: #22c55e;
    color: #ffffff;
    border: none;
}
.wallet-status-active::before {
    content: none;
}
.wallet-status-active [data-lucide] {
    display: none;
}
.wallet-card .card-hero .wallet-status-active [data-lucide] {
    display: inline-block;
}
.wallet-status-expired {
    background: #ef4444;
    color: #ffffff;
    border: none;
}

/* Tri-state status badges (wallet Business cards): top-right inside card-hero */
.wallet-card .card-hero .status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 5;
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
}
[dir="rtl"] .wallet-card .card-hero .status-badge {
    left: auto;
    right: 10px;
}
.status-badge.badge-last-day {
    background: #ff4500;
    color: #ffffff;
    font-weight: 900;
}
.status-badge.badge-last-day.pulse {
    animation: status-pulse 1.2s ease-in-out infinite;
}
@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}
.status-badge.badge-expired {
    background: #6b7280;
    color: #ffffff;
}
.status-badge.badge-active {
    background: #22c55e;
    color: #ffffff;
}

/* Global visual cleanup: area below coupon image – no shadow, antialiased text */
.wallet-card .card-body,
.wallet-card .card-body * {
    text-shadow: none !important;
    box-shadow: none !important;
}
.wallet-card .card-body {
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}
.wallet-card .card-body * {
    -webkit-font-smoothing: inherit;
    font-smoothing: inherit;
}

/* Typography: white text, subtle drop-shadow for clarity on glass */
.wallet-card .card-body.card-body-ticket .wallet-card-business,
.wallet-card .card-body.card-body-ticket .wallet-card-offer,
.wallet-card .card-body.card-body-ticket .wallet-card-desc,
.wallet-card .card-body.card-body-ticket .wallet-card-expiry,
.wallet-card .card-body.card-body-ticket .wallet-card-address {
    color: #1a1a1a;
    text-shadow: none !important;
    filter: none;
}
.wallet-card .wallet-card-business {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    font-family: 'Assistant', sans-serif;
    text-align: right;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.2 !important;
}
[dir="ltr"] .wallet-card .wallet-card-business {
    text-align: left;
}
/* 1. הגדרה למצב מכווץ (סגור) - התיקון שעבד לך ב-F12 */
.wallet-card:not(.expanded) .wallet-card-offer {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin: 0 0 -1.6rem 0 !important;
    font-family: 'Assistant', sans-serif;
    text-align: right;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    padding-top: 6px;
}

/* 2. הגדרה למצב מורחב (פתוח) - מחזיר את המרווח למצב תקין */
.wallet-card.expanded .wallet-card-offer {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin: 0 0 0.5rem 0 !important;
    font-family: 'Assistant', sans-serif;
    text-align: right;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    padding-top: 0;
}
מה השינוי עושה בפועל?
[dir="ltr"] .wallet-card .wallet-card-offer {
    text-align: left;
}
.wallet-card .wallet-card-address {
    font-size: 0.85rem;
    opacity: 0.8;
    font-family: 'Assistant', sans-serif;
    line-height: 1.3;
    text-align: right;
}
[dir="ltr"] .wallet-card .wallet-card-address {
    text-align: left;
}
.wallet-card .wallet-card-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}
[dir="ltr"] .wallet-card .wallet-card-desc {
    text-align: left;
}
/* Manual card only: 3-row metadata grid below image; cleanup below image (is_manual only) */
.wallet-card:has(.wallet-card-manual-meta) .card-body,
.wallet-card:has(.wallet-card-manual-meta) .card-body * {
    text-shadow: none !important;
    box-shadow: none !important;
}

.wallet-card-manual-meta {
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.wallet-card-manual-meta-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.wallet-card-manual-row-1 .wallet-card-manual-business {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    min-width: 0;
    text-align: right;
}
[dir="ltr"] .wallet-card-manual-row-1 .wallet-card-manual-business {
    text-align: left;
}
.wallet-card .wallet-card-manual-meta .wallet-card-edit-btn {
    width: 20px;
    height: 20px;
    opacity: 1;
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wallet-card .card-body .wallet-card-manual-meta .wallet-card-edit-btn {
    color: #1a1a1a;
}
.wallet-card .wallet-card-manual-meta .wallet-card-edit-btn [data-lucide],
.wallet-card .wallet-card-manual-meta .wallet-card-edit-btn svg {
    width: 20px;
    height: 20px;
}
.wallet-card-classification-tag {
    font-size: 14px;
    font-weight: 600;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Heebo', sans-serif;
}
.wallet-card .card-body .wallet-card-classification-tag {
    color: #1a1a1a;
}
.wallet-card-manual-empty {
    width: 20px;
    height: 1px;
    flex-shrink: 0;
}
.wallet-card-manual-expiry {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Heebo', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.wallet-card .card-body .wallet-card-manual-expiry {
    color: #94a3b8;
}
.wallet-card .wallet-card-manual-meta .wallet-card-manual-delete {
    position: absolute;
    bottom: 10px;
    left: 10px;
    flex-shrink: 0;
    width: auto;
    height: auto;
    padding: 0.35rem;
    color: #dc2626;
    background: transparent;
    border: none;
    cursor: pointer;
}
.wallet-card .wallet-card-manual-meta .wallet-card-manual-delete:hover {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.1);
}
.wallet-card .wallet-card-manual-meta .wallet-card-manual-delete [data-lucide],
.wallet-card .wallet-card-manual-meta .wallet-card-manual-delete svg {
    width: 1.25rem;
    height: 1.25rem;
}

.wallet-card-expiry-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.wallet-card-type-tag {
    font-size: 11px;
    font-weight: 300;
    opacity: 0.8;
    color: #fff;
    font-family: 'Heebo', sans-serif;
}
.wallet-card .card-body .wallet-card-type-tag {
    color: #475569;
}
.wallet-card .wallet-card-expiry {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.9;
    font-family: 'Assistant', sans-serif;
    text-align: right;
}
[dir="ltr"] .wallet-card .wallet-card-expiry {
    text-align: left;
}
.wallet-card .wallet-card-expiry [data-lucide] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: inherit;
}
.wallet-card-store-wrap {
    margin-top: 0.5rem;
    position: relative;
    z-index: 10;
}
.wallet-card .wallet-card-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
    transition: background 0.2s, transform 0.15s;
    position: relative;
    z-index: 10;
}
.wallet-card .wallet-card-store-link:hover {
    background: #2563eb;
    transform: translateY(-1px);
}
.wallet-card .wallet-card-store-link [data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
    color: #fff;
}
.wallet-card .wallet-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
/* Use Now: primary only in expanded state (lives inside .card-expanded) */
.wallet-card .wallet-btn-use {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: none;
    background: #22c55e;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.wallet-card .wallet-btn-use:hover {
    background: #16a34a;
    transform: translateY(-1px);
}
.wallet-card .wallet-btn-use svg {
    width: 1.1rem;
    height: 1.1rem;
}
.wallet-card .wallet-btn-trash {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 8px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #666666 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.wallet-card .wallet-btn-trash:hover,
.wallet-card .wallet-btn-trash:active {
    background: transparent !important;
    opacity: 0.75;
}
.wallet-card .wallet-btn-trash svg,
.wallet-card .wallet-btn-trash [data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
    color: #666666 !important;
}
.wallet-card .wallet-card-image-wrap {
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    overflow: hidden;
}
.wallet-card .wallet-card-image-wrap .ticket-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

@media (max-width: 480px) {
    .wallet-card.ticket-card {
        height: 320px;
        padding: 12px;
    }
    .wallet-card .card-body.card-body-ticket {
        padding: 18px;
    }
}

/* Wallet empty state: Lucide wallet icon + CTA */
.wallet-empty .wallet-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}
.wallet-empty .wallet-empty-icon svg {
    width: 4rem;
    height: 4rem;
}
.wallet-empty .wallet-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.wallet-empty .wallet-empty-cta svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* === Profile page: app-like style === */
.profile-frame .profile-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow-y: auto;
    padding: 0 1.35rem 1.25rem;
    padding-bottom: calc(1.25rem + 85px + env(safe-area-inset-bottom));
}

.profile-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--glass-card);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profile-avatar svg {
    width: 44px;
    height: 44px;
}

.profile-name {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.profile-email {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    background: var(--glass-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.profile-stat-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.profile-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.profile-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-stats-inline {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.profile-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--glass-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-list-item:hover {
    background: rgba(255, 255, 255, 0.18);
}

.profile-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.profile-list-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.profile-list-item span:not(.profile-list-icon) {
    flex: 1;
}

.profile-list-item > svg,
.profile-list-item [data-lucide]:last-of-type {
    width: 1.1rem;
    height: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.profile-logout-wrap {
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

.profile-logout-link {
    color: #999;
    font-size: 0.8rem;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
}
.profile-logout-link:hover {
    color: #777;
}

.profile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.profile-logout-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.profile-form-section {
    margin: 1rem 0;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
}
.profile-form-section.hidden {
    display: none !important;
}
.profile-form-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.profile-form-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.profile-form-close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-primary);
}
.profile-form-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Wallet ticket: structure & notch mask preserved; soft float shadow, high-contrast text */
.ticket-card {
    position: relative;
    border-radius: 22px;
    padding: 1.15rem;
    padding-top: 2.5rem;
    background: var(--glass-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at 0 50%, transparent 12px, black 12px), radial-gradient(circle at 100% 50%, transparent 12px, black 12px);
    mask-image: radial-gradient(circle at 0 50%, transparent 12px, black 12px), radial-gradient(circle at 100% 50%, transparent 12px, black 12px);
    -webkit-mask-size: 50% 100%;
    mask-size: 50% 100%;
    -webkit-mask-position: 0 0, 100% 0;
    mask-position: 0 0, 100% 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: transform 0.25s ease;
}

.ticket-card:hover {
    transform: scale(1.02);
}

.ticket-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.ticket-card .ticket-image {
    width: 100%;
    height: 110px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ticket-card h3 {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ticket-card p {
    margin: 0;
    font-size: 0.78rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ticket-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ticket-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 5;
}

.ticket-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ticket-card.ticket-card-removing {
    animation: ticket-shrink-out 0.28s ease forwards;
    pointer-events: none;
}

@keyframes ticket-shrink-out {
    to {
        transform: scale(0.85);
        opacity: 0;
    }
}

.ticket-action:hover {
    transform: scale(1.05);
}

.ticket-action.ticket-pencil:hover {
    background: rgba(255, 255, 255, 0.35);
}

.ticket-action.ticket-trash:hover {
    background: rgba(255, 100, 100, 0.4);
}

.ticket-action svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.5;
}

.wallet-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-empty.hidden,
.wallet-loading.hidden,
.wallet-guest.hidden {
    display: none;
}

.wallet-guest {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.wallet-guest .wallet-guest-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}
.wallet-guest .wallet-guest-icon .lucide { width: 4rem; height: 4rem; }
.wallet-guest h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.wallet-guest p {
    margin: 0 0 1.4rem;
}
.wallet-guest .wallet-guest-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.wallet-guest .wallet-guest-cta .lucide { width: 1.2rem; height: 1.2rem; }

.wallet-empty h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-empty p {
    margin: 0 0 1.4rem;
}

.wallet-empty .empty-icon {
    color: #fff;
}

.wallet-empty a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: transform var(--transition-btn), box-shadow var(--transition-btn);
}

.wallet-empty a:hover {
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.4);
}

.wallet-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
}

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

.glass-nav {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.82));
    color: var(--text-primary);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    min-height: calc(60px + env(safe-area-inset-top) + env(safe-area-inset-bottom));
}

.glass-card {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 25px 55px rgba(2, 6, 23, 0.6);
    color: var(--text-primary);
}

/* Login & Profile – Deep Glass (white text razor-sharp) */
.profile-card,
.login-card,
.auth-card {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.auth-card .auth-header,
.login-card .auth-header,
.profile-card .auth-header {
    background: transparent;
    color: #fff;
    padding: 1.5rem 1.5rem 0.5rem;
    border-radius: 20px 20px 0 0;
    border: none;
}

.auth-card .auth-header h1,
.login-card .auth-header h1,
.profile-card .auth-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.auth-card .auth-header p,
.login-card .auth-header p,
.profile-card .auth-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.25rem;
}

.auth-card input,
.auth-card .auth-content input,
.login-card input,
.login-card .auth-content input,
.profile-card input {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.auth-card input:focus,
.login-card input:focus,
.profile-card input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-card label,
.login-card label,
.profile-card label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
}

.auth-card .auth-body,
.login-card .auth-body,
.profile-card .auth-body {
    padding: 1.25rem 1.5rem 1.5rem;
    color: #fff;
    line-height: 1.6;
}

.profile-card .auth-body p,
.profile-card .auth-body h2,
.profile-card .auth-body #profileName,
.profile-card .auth-body #profileEmail {
    color: rgba(255, 255, 255, 0.95) !important;
}

.profile-card .auth-body a:not([href*="logout"]) {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.profile-card .auth-body a[href*="logout"] {
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

.login-card .auth-body p,
.login-card .auth-body a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.login-card .auth-body a {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.profile-card .glass-nav,
.login-card .glass-nav {
    background: transparent;
    border: none;
}

.auth-input {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.glass-modal,
.camera-dialog,
.action-sheet,
.wallet-modal .wallet-modal-content {
    background: rgba(15, 23, 42, 0.9);
}

.glass-modal {
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Input contrast: white background, black text, visible placeholder */
.input-card input,
.camera-field input,
.camera-field textarea {
    background: #ffffff !important;
    color: #000000 !important;
    opacity: 1;
}

.input-card input::placeholder,
.camera-field input::placeholder,
.camera-field textarea::placeholder {
    color: #666;
}

/* Lucide icons: drop shadow for visibility */
[data-lucide],
.icon svg,
.nav-button .icon svg,
.nav-item .nav-icon svg,
.bottom-nav .nav-icon svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

button:not(:disabled) {
    transition: transform var(--transition-btn), opacity var(--transition-btn), background var(--transition-btn);
}

button:not(:disabled):hover,
button:not(:disabled):focus-visible {
    opacity: 0.95;
}

button:not(:disabled):active {
    transform: scale(0.97);
}

.input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Assistant', sans-serif;
    text-align: center;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #041121;
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.32);
    transition: transform var(--transition-btn), opacity var(--transition-btn);
    user-select: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    opacity: 0.95;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    padding: 0.7rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: transform var(--transition-btn), background var(--transition-btn);
    user-select: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.btn-secondary:active {
    transform: scale(0.97);
}

.btn-outline {
    padding: 0.7rem 1rem;
    border-radius: 16px;
    border: 2px solid #f39c12;
    background: transparent;
    color: #f39c12;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.18s, color 0.18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(243, 156, 18, 0.12);
}
.btn-outline:active { transform: scale(0.97); }
.dash-btn-row .btn-outline { flex: 1 1 auto; width: auto; }
@media (max-width: 600px) { .dash-btn-row .btn-outline { width: 100%; flex: 1 1 100%; } }

/* ── Section highlight-pulse (triggered when navigating to a view programmatically) ── */
@keyframes section-highlight-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(243, 156, 18, 0.45); }
    70%  { box-shadow: 0 0 0 15px rgba(243, 156, 18, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(243, 156, 18, 0);    }
}
.highlight-pulse {
    animation: section-highlight-pulse 1.5s ease-in-out;
}

/* ── Flex button row (used in dashboard action sections) ── */
.dash-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.dash-btn-row .btn-primary,
.dash-btn-row .btn-secondary {
    flex: 1 1 auto;
    width: auto;
}

/* Coupon header: title + add button side by side */
.dashboard-my-coupons-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.dash-add-coupon-btn {
    font-size: 0.88rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .dash-btn-row .btn-primary,
    .dash-btn-row .btn-secondary {
        width: 100%;
        flex: 1 1 100%;
    }
    .dash-add-coupon-btn {
        width: 100%;
    }
}

.btn-success {
    padding: 0.7rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #34d399, #10b981);
    border: none;
    color: #052e16;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s ease;
    user-select: none;
}

.btn-success:active {
    transform: scale(0.97);
}

.auth-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1.5rem calc(7rem + env(safe-area-inset-bottom));
}

/* Full-view wallet coupon modal (glassmorphism, fade-in) */
.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wallet-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.wallet-modal.visible .wallet-modal-content {
    animation: wallet-modal-fadein 0.3s ease;
}

@keyframes wallet-modal-fadein {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.wallet-modal-backdrop {
    position: absolute;
    inset: 0;
}

.wallet-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    overflow-y: auto;
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    text-align: right;
    direction: rtl;
}

.wallet-modal-image-wrap {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-modal-image,
.wallet-modal-image-contain {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.wallet-modal-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    text-align: right;
}

.wallet-modal-business {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.wallet-modal-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
}

.wallet-modal-expiry {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.wallet-modal-footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-modal-share-btn {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.wallet-modal-share-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}
.wallet-modal-share-btn [data-lucide],
.wallet-modal-share-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.wallet-modal-close-btn {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: center;
    direction: rtl;
}

.wallet-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.wallet-modal-close-btn [data-lucide],
.wallet-modal-close-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* Sort bar: below title, above grid (glass, RTL, margin for mobile) */
.wallet-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0;
    text-align: right;
    direction: rtl;
}

.wallet-sort-wrap.hidden {
    display: none;
}

.wallet-sort-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.wallet-sort-select {
    flex: 1;
    min-width: 0;
    max-width: 180px;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    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' fill='rgba(255,255,255,0.7)'%3E%3Cpath d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.6rem center;
    padding-left: 2rem;
    padding-right: 0.75rem;
}

[dir="rtl"] .wallet-sort-select {
    background-position: right 0.6rem center;
    padding-left: 0.75rem;
    padding-right: 2rem;
}

.wallet-sort-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.wallet-sort-select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
}

/* === Admin / Dashboard Layout & Theme === */
body.admin-page,
body.admin-panel-mode {
    background: #f4f7f6 !important;
    min-height: 100vh;
    animation: none;
    font-family: 'Heebo', 'Inter', 'Assistant', sans-serif;
    line-height: 1.6;
}
body.admin-page .admin-main,
body.admin-page .admin-sidebar,
body.admin-page .admin-card {
    font-family: 'Heebo', 'Inter', 'Assistant', sans-serif;
    line-height: 1.6;
}
.admin-main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.admin-card-desc { margin: 0 0 1rem; font-size: 0.9rem; color: #64748b; }
.admin-loading-msg, .admin-empty-msg {
    padding: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}
.admin-pending-list { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-pending-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.admin-pending-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.admin-pending-title { font-weight: 600; color: #1a1a1a; margin: 0 0 0.25rem; }
.admin-pending-meta { font-size: 0.85rem; color: #64748b; margin: 0; }
.admin-pending-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.admin-btn-approve {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    background: #22c55e;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.admin-btn-approve:hover { background: #16a34a; }
.admin-btn-reject {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-btn-reject:hover { background: #fef2f2; color: #dc2626; }
.admin-search-wrap { margin-bottom: 1rem; }
.admin-header-row-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.admin-header-row-flex h2 { margin: 0; }
.admin-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-btn-save-order {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid #0ea5e9;
    background: #fff;
    color: #0ea5e9;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-btn-save-order:hover { background: #e0f2fe; }
.admin-btn-save-order .lucide { width: 1rem; height: 1rem; stroke-width: 1.5; }
.admin-order-input {
    width: 4rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}
.admin-table-wide { width: 100%; min-width: 480px; }
.admin-td-icon { vertical-align: middle; }
.admin-cat-icon {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    vertical-align: middle;
}
.admin-cat-lucide { display: inline-flex; align-items: center; }
.admin-cat-lucide .lucide { width: 1.25rem; height: 1.25rem; stroke-width: 1.5; }
body.admin-page .admin-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}
.admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 1.5rem 0;
    padding-bottom: 120px !important;
    transition: transform 0.25s ease;
}
.admin-sidebar.closed {
    transform: translateX(100%);
}
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
}
.admin-sidebar-overlay.visible {
    display: block;
}
.admin-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-sidebar-nav a:hover {
    background: rgba(0, 0, 0, 0.05);
}
.admin-sidebar-nav a.active {
    background: rgba(56, 189, 248, 0.12);
    color: #0ea5e9;
}
.admin-sidebar-nav a .lucide {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke-width: 1.5;
}
.admin-sidebar-nav a.hidden {
    display: none !important;
}
/* Sidebar: admin-only links hidden by default; show when body has data-dashboard-role="admin" */
.admin-sidebar-nav a.dashboard-admin-only {
    display: none;
}
body[data-dashboard-role="admin"] .admin-sidebar-nav a.dashboard-admin-only {
    display: flex;
}
.admin-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.admin-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}
.admin-sidebar-logout .lucide {
    width: 1.2rem;
    height: 1.2rem;
}
.admin-sidebar-footer {
    padding: 1rem 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.admin-switch-customer {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f4f7f6;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.admin-switch-customer:hover {
    background: #e8eeec;
    border-color: rgba(0, 0, 0, 0.15);
}
.admin-switch-customer .lucide {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.5;
}
.admin-main {
    flex: 1;
    margin-right: 260px;
    padding: 1.5rem 1.5rem 2rem;
    min-height: 100vh;
}
.admin-main-with-sidebar-toggle {
    padding-top: 3.5rem;
}
.admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 101;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.admin-sidebar-toggle .lucide {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 1.5;
}
@media (min-width: 769px) {
    .admin-sidebar {
        transform: none;
        display: flex;
    }
}
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-right: 0;
    }
    .admin-main-with-sidebar-toggle {
        padding-top: 3.5rem;
    }
    .admin-sidebar-toggle {
        display: flex;
    }
}
.admin-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}
.admin-card h2,
.admin-card h3 {
    color: #1a1a1a;
    font-weight: 700;
    margin: 0 0 1rem;
    font-size: 1.1rem;
}
.admin-card label {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}
.admin-card input,
.admin-card select,
.admin-card textarea {
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #d1d5db !important;
}
.admin-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #1a1a1a;
}
.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.admin-table th {
    font-weight: 600;
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.02);
}
.admin-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}
.admin-table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}
.admin-table-actions button {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.admin-table-actions button:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
}
.admin-table-actions button.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.admin-table-actions .lucide {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 1.5;
}

/* Admin category visible toggle switch */
.admin-td-toggle {
    vertical-align: middle;
}
.admin-toggle-wrap {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.admin-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.admin-toggle-slider {
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.2s ease;
}
.admin-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    right: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}
.admin-toggle:checked + .admin-toggle-slider {
    background: #0ea5e9;
}
.admin-toggle:checked + .admin-toggle-slider::before {
    transform: translateX(-20px);
}
.admin-search-input {
    width: 100%;
    max-width: 280px;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
}
.admin-search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}
.admin-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    border: none;
    background: #0ea5e9;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.admin-btn-add:hover {
    background: #0284c7;
}
.admin-btn-add .lucide {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.5;
}
.admin-btn-cancel {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.admin-btn-cancel:hover {
    background: #f4f7f6;
    border-color: #9ca3af;
}
.admin-status-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.admin-status-badge.published,
.admin-status-badge.approved {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}
.admin-status-badge.pending {
    background: rgba(234, 179, 8, 0.2);
    color: #a16207;
}
.admin-status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}
.admin-status-badge.suspended {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}
.admin-status-badge.draft {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}
.admin-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.admin-confirm-modal.visible {
    opacity: 1;
    pointer-events: auto;
}
.admin-confirm-modal .admin-card {
    max-width: 400px;
    margin: 0;
}
.admin-confirm-modal .modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
}
.admin-confirm-modal .modal-actions button {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Edit User Modal - isolated, no impact on Dashboard/Wheel GPU */
.admin-edit-user-modal .admin-edit-user-card {
    max-width: 420px;
    padding: 1.5rem;
}
.admin-edit-user-modal .admin-edit-user-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}
.admin-edit-user-modal .admin-edit-user-field {
    margin-bottom: 1rem;
}
.admin-edit-user-modal .admin-edit-user-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}
.admin-edit-user-modal .admin-edit-user-input,
.admin-edit-user-modal .admin-edit-user-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
}
.admin-edit-user-modal .admin-edit-user-select {
    cursor: pointer;
}
.admin-edit-user-modal .admin-edit-user-actions {
    margin-top: 1.5rem;
}

/* Trust/Analytics badges - isolated, pill-shaped, premium colors */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge.vip {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}
.badge.trusted {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}
.badge.standard {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}
.admin-th-last-activity.sortable {
    cursor: pointer;
    user-select: none;
}
.admin-th-last-activity.sortable:hover {
    text-decoration: underline;
}

.admin-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(80px);
    padding: 0.75rem 1.35rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.admin-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.admin-toast.success {
    background: #22c55e;
}
.admin-toast.error {
    background: #ef4444;
}
body.admin-page .toast {
    bottom: 1.5rem;
}
body.admin-page .toast.success {
    background: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}
body.admin-page .toast.error {
    background: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}
/* Dashboard: Material-style business cards */
.dashboard-business-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 1.5rem;
}
.dashboard-business-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dashboard-business-card-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
}
.dashboard-business-card-address {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dashboard-business-card-address [data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: #64748b;
}
.dashboard-business-card-edit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.dashboard-business-card-edit:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.dashboard-business-card-edit [data-lucide] {
    width: 1rem;
    height: 1rem;
}
.dashboard-business-cards.hidden {
    display: none;
}
.dashboard-profile-form.hidden {
    display: none;
}

/* Dashboard page: Vibrant Glass UI – single column mobile, grid desktop */
body.dashboard-page {
    background: var(--bg-gradient, linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #ee0979 100%));
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary, #fff);
}
body.dashboard-page .admin-main {
    background: transparent;
    padding-bottom: 90px;
}
body.dashboard-page .admin-main .admin-card,
body.dashboard-page .admin-main section .admin-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: var(--text-primary, #fff);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}
body.dashboard-page .admin-main .admin-card h2,
body.dashboard-page .admin-main .admin-card h3,
body.dashboard-page .admin-main section .admin-card h2,
body.dashboard-page .admin-main section .admin-card h3 {
    color: var(--text-primary, #fff);
}
body.dashboard-page .admin-main .admin-card label,
body.dashboard-page .admin-main section .admin-card label {
    color: rgba(255, 255, 255, 0.95) !important;
}
.dashboard-user-bar,
.dashboard-warning-banner {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}
.dashboard-warning-banner {
    background: rgba(254, 243, 199, 0.25) !important;
    border-color: rgba(253, 230, 138, 0.5) !important;
    color: #fef3c7;
}
.dashboard-warning-banner [data-lucide] { width: 1.1rem; height: 1.1rem; vertical-align: -0.2em; margin-left: 0.25rem; }
.dashboard-form-row {
    margin-bottom: 24px;
}
body.dashboard-page .dashboard-form-row .dashboard-label {
    color: #222222 !important;
}
.dashboard-form-row .dashboard-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222222;
}
.dashboard-form-row .dashboard-label [data-lucide] { width: 1.1rem; height: 1.1rem; flex-shrink: 0; vertical-align: middle; margin-left: 0.25rem; }
.dashboard-address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.dashboard-address-row .dashboard-input { flex: 1; min-width: 180px; }
.dashboard-btn-geocode {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}
.dashboard-btn-geocode:hover { background: rgba(255, 255, 255, 0.3); }
.dashboard-btn-geocode [data-lucide] { width: 1rem; height: 1rem; }
.dashboard-form-glass .dashboard-input,
.dashboard-form-glass .dashboard-textarea,
.dashboard-form-glass .dashboard-select-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    border-radius: 14px;
}
.dashboard-form-glass .dashboard-input::placeholder,
.dashboard-form-glass .dashboard-textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.dashboard-select-glass { appearance: none; cursor: pointer; }
.dashboard-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}
.dashboard-btn-submit:hover { background: rgba(255, 255, 255, 0.4); }
.dashboard-btn-submit [data-lucide] { width: 1.2rem; height: 1.2rem; }
.dashboard-profile-image-zone {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}
.dashboard-image-placeholder [data-lucide] { width: 1.5rem; height: 1.5rem; vertical-align: -0.3em; margin-left: 0.25rem; }
.dashboard-image-preview { max-width: 100%; max-height: 200px; border-radius: 12px; }
.dashboard-modal-overlay.dashboard-modal-glass {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}
.dashboard-modal-overlay.dashboard-modal-glass.hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.dashboard-modal-overlay.dashboard-modal-glass:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.dashboard-modal-content {
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.dashboard-modal-text { margin: 0 0 1.25rem; color: rgba(255, 255, 255, 0.9); }
.dashboard-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.dashboard-btn-secondary {
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
}
.dashboard-btn-danger {
    padding: 0.6rem 1.25rem;
    background: rgba(239, 68, 68, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.8);
    color: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
}
.dashboard-modal-close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}
.dashboard-modal-close [data-lucide] { width: 1.25rem; height: 1.25rem; }

/* Image Editor Modal (Cropper.js) – top-level portal, high z-index */
#imageEditorModal,
.image-editor-portal-modal,
#imageEditorModal.dashboard-modal-overlay {
    z-index: 999999 !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    pointer-events: none;
}
#imageEditorModal.hidden,
.image-editor-portal-modal.hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#imageEditorModal:not(.hidden),
.image-editor-portal-modal:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.image-editor-modal .image-editor-content {
    max-width: 95vw;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1000000;
}
.image-editor-modal .image-editor-wrap {
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    background: #1a1a1a;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 12px;
}
.image-editor-modal .image-editor-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.image-editor-modal .image-editor-toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}
.image-editor-modal .image-editor-toolbar .dashboard-btn-secondary {
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.image-editor-modal .image-editor-toolbar .dashboard-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.image-editor-modal .image-editor-toolbar .dashboard-btn-secondary [data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
    color: #333;
}
.image-editor-modal .image-editor-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.image-editor-save-btn,
#imageEditorSave.image-editor-save-btn {
    background-color: #2563eb !important;
    color: white !important;
    font-weight: 600;
}
.image-editor-save-btn:hover,
#imageEditorSave.image-editor-save-btn:hover {
    background-color: #1d4ed8 !important;
    opacity: 0.95;
}

/* Toast: clear success (green) and error (red) feedback */
body.admin-page .toast.success {
    background: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
    color: #fff;
}
body.admin-page .toast.error {
    background: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    color: #fff;
}
.toast.hidden { display: none !important; }
.toast:not(.hidden).show { display: block; }

@media (min-width: 768px) {
    .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-action-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
/* Sidebar group labels */
.admin-sidebar-group-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 0.75rem 1rem 0.25rem;
    margin-top: 0.5rem;
}
.admin-sidebar-nav .admin-sidebar-group-label:first-child { margin-top: 0; }
/* Business link section (top) – glass on dashboard */
body.dashboard-page .dashboard-business-link-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #222222;
}
.dashboard-business-link-section {
    background: #f8f9fa;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    color: #fff;
}
.dashboard-business-link-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222222 !important;
    color: #fff;
}
.dashboard-business-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.dashboard-business-link-buttons .dashboard-action-card { margin: 0; }
/* Stat cards with icons */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}
.dashboard-stat-card.stat-views { color: #93c5fd; }
.dashboard-stat-card.stat-coupons { color: #6ee7b7; }
.dashboard-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
}
.dashboard-stat-card.stat-views .dashboard-stat-icon { color: #93c5fd; }
.dashboard-stat-card.stat-coupons .dashboard-stat-icon { color: #6ee7b7; }
.dashboard-stat-icon .lucide { width: 1.5rem; height: 1.5rem; }
.dashboard-stat-value {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: inherit;
}
.dashboard-stat-label {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}
@media (min-width: 768px) {
    .dashboard-stat-card { padding: 1rem 1.25rem; }
    .dashboard-stat-icon { width: 48px; height: 48px; }
    .dashboard-stat-value { font-size: 1.5rem; }
}
/* Profile completeness bar – glass */
.dashboard-profile-completeness {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
}
.dashboard-profile-completeness-label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}
.dashboard-profile-completeness-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}
.dashboard-profile-completeness-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    transition: width 0.3s ease;
}
.dashboard-page .admin-main .admin-card:not(.dashboard-glass-card),
.dashboard-page .admin-main section .admin-card:not(.dashboard-glass-card) {
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}
.dashboard-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dashboard-action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: right;
    font-family: inherit;
}
.dashboard-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.dashboard-action-card .lucide { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
.dashboard-action-card.share {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.dashboard-action-card.edit-profile {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.dashboard-action-card.add-coupon {
    background: linear-gradient(135deg, #10b981, #059669);
}
.dashboard-action-card.view-business {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.dashboard-input,
.dashboard-page .admin-main input[type="text"],
.dashboard-page .admin-main input[type="tel"],
.dashboard-page .admin-main input[type="date"],
.dashboard-page .admin-main input[type="email"],
.dashboard-page .admin-main select {
    height: 50px;
    min-height: 50px;
    background: #fff !important;
    border: 2px solid #edf2f7 !important;
    padding: 15px !important;
    border-radius: 16px !important;
    color: #1a1a1a !important;
}
.dashboard-textarea,
.dashboard-page .admin-main textarea {
    min-height: 80px;
    background: #fff !important;
    border: 2px solid #edf2f7 !important;
    padding: 15px !important;
    border-radius: 16px !important;
    color: #1a1a1a !important;
}
.dashboard-page .admin-main input:focus,
.dashboard-page .admin-main select:focus,
.dashboard-page .admin-main textarea:focus,
.dashboard-input:focus,
.dashboard-textarea:focus {
    outline: none;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}
.field-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
    margin-right: 4px;
}
.char-counter {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: left;
    margin-top: 3px;
    min-height: 1em;
    transition: color 0.2s;
}
.char-counter.char-counter-warn {
    color: #ef4444;
    font-weight: 600;
}
.dashboard-input.input-over-limit,
.premium-input.input-over-limit {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18) !important;
}
/* Dashboard profile form – high contrast, no transparency (final readability) */
#profileFormBox.dashboard-profile-form-box,
#profileFormBox.dashboard-glass-card {
    background: #f5f5f5 !important;
    border: 2px solid #333 !important;
    color: #000 !important;
}
#profileFormBox .dashboard-label,
#profileFormBox label,
#profileFormBox.dashboard-profile-form-box .dashboard-label,
#profileFormBox .dashboard-form-row .dashboard-label {
    display: block !important;
    font-weight: 900 !important;
    color: #000000 !important;
    margin-bottom: 8px !important;
    font-size: 1.1rem !important;
}
#profileFormBox .dashboard-input,
#profileFormBox .dashboard-textarea,
#profileFormBox .dashboard-select-glass,
#profileFormBox select.dashboard-input,
#profileFormBox input[type="text"],
#profileFormBox input[type="tel"],
#profileFormBox input[type="email"],
#profileFormBox select,
#profileFormBox textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000 !important;
    opacity: 1 !important;
    padding: 12px !important;
}
#profileFormBox .dashboard-input::placeholder,
#profileFormBox .dashboard-textarea::placeholder {
    color: #555 !important;
}
#profileFormBox .dashboard-btn-submit {
    background: #1e40af !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
}
#profileFormBox .dashboard-btn-submit.dashboard-btn-save-all {
    display: block !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
    padding: 16px 24px !important;
    font-size: 1.25rem !important;
    border-radius: 12px !important;
    background: #1e3a8a !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    cursor: pointer !important;
}
#profileFormBox .dashboard-btn-submit.dashboard-btn-save-all:hover {
    background: #1d4ed8 !important;
    opacity: 1 !important;
}
#profileFormBox .dashboard-btn-submit:hover {
    background: #1d4ed8 !important;
    opacity: 1;
}
#profileFormBox .dashboard-image-upload-hint {
    display: block !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 8px !important;
    font-size: 1rem !important;
}
#profileFormBox .dashboard-btn-geocode {
    background: #e9ecef !important;
    color: #333 !important;
    border: 2px solid #333 !important;
}
#profileFormBox .dashboard-btn-geocode:hover {
    background: #dee2e6 !important;
}
#profileFormBox .dashboard-profile-image-zone {
    background: #ffffff !important;
    border: 2px solid #333 !important;
    color: #000 !important;
}
#profileFormBox .dashboard-form-intro,
#profileFormBox .dashboard-form-intro.mb-4 {
    color: #000 !important;
    font-weight: 500;
}

/* Glass form overrides – profile form (#profileFormBox) overrides with solid high-contrast above */
body.dashboard-page .dashboard-form-glass .dashboard-input,
body.dashboard-page .dashboard-form-glass .dashboard-textarea,
body.dashboard-page .dashboard-form-glass .dashboard-select-glass,
body.dashboard-page .dashboard-glass-card .dashboard-form-row .dashboard-input,
body.dashboard-page .dashboard-glass-card .dashboard-form-row .dashboard-textarea,
body.dashboard-page .dashboard-glass-card .dashboard-form-row select,
body.dashboard-page .dashboard-glass-card .dashboard-input,
body.dashboard-page .dashboard-glass-card .dashboard-textarea,
body.dashboard-page .dashboard-glass-card select.dashboard-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}
body.dashboard-page .dashboard-form-glass .dashboard-input::placeholder,
body.dashboard-page .dashboard-form-glass .dashboard-textarea::placeholder { color: rgba(255, 255, 255, 0.55) !important; }
.dashboard-btn-geocode {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
body.dashboard-page .dashboard-btn-geocode {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
body.dashboard-page .dashboard-btn-geocode:hover {
    background: rgba(255, 255, 255, 0.3);
}
.dashboard-btn-submit,
.dashboard-btn-save,
#btnAddCoupon {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 600;
    background-color: #2563eb !important;
    color: white !important;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.dashboard-btn-submit:hover,
.dashboard-btn-save:hover,
#btnAddCoupon:hover {
    background-color: #1d4ed8 !important;
    opacity: 0.9;
}
.dashboard-my-coupons-card { position: relative; padding-bottom: 100px; }
@media (min-width: 768px) {
    .dashboard-my-coupons-card { padding-bottom: 80px; }
}
.dashboard-my-coupons-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.dashboard-btn-add-coupon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.dashboard-btn-add-coupon .lucide { width: 1.2rem; height: 1.2rem; }
/* FAB: fixed bottom-right, above nav/cards */
.dashboard-fab {
    position: fixed;
    bottom: 120px !important;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}
.dashboard-fab .lucide { width: 1.75rem; height: 1.75rem; }
@media (min-width: 768px) {
    .dashboard-fab {
        bottom: 120px !important;
        right: 1.5rem;
    }
}
.dashboard-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 1rem;
    pointer-events: none;
    visibility: hidden;
}
.dashboard-modal-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.dashboard-modal-overlay:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.dashboard-modal-overlay.visible {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
/* Premium Add Coupon – card layout, US UX standards */
.premium-add-coupon-page.dashboard-modal-overlay {
    background: #F9FAFB;
    align-items: flex-start;
    padding: 1rem;
    padding-bottom: 2rem;
}
.premium-add-coupon-wrap.dashboard-add-coupon-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    padding-bottom: 110px;
    background: transparent;
    box-shadow: none;
}
.premium-add-coupon-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.premium-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}
.premium-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B7280;
    margin-bottom: 0.5rem;
}
.premium-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
}
.premium-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
.premium-textarea {
    min-height: 80px;
    resize: none;
}
.premium-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    background: #FAFAFA;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.premium-upload-zone:hover {
    border-color: #9CA3AF;
    background: #F9FAFB;
}
.premium-upload-zone .dashboard-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}
.premium-upload-zone .dashboard-upload-placeholder [data-lucide] {
    width: 2rem;
    height: 2rem;
    color: #9CA3AF;
}
.premium-upload-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.premium-upload-tip {
    font-size: 11px;
    color: #7f8c8d;
    text-align: center;
    margin: 0.5rem 0 0;
}
.premium-legal-disclaimer {
    font-size: 13px;
    color: #444;
    text-align: center;
    margin: 0 0 4px;
    line-height: 1.4;
}
.premium-btn-create-graphic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.premium-btn-create-graphic:hover {
    border-color: #000;
    background: #F9FAFB;
}
.premium-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.premium-input-with-icon .premium-input {
    padding-right: 2.75rem;
}
.premium-input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}
.premium-input-icon [data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
}
.premium-btn-create {
    width: 100%;
    height: 56px;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 0.5rem;
}
.premium-btn-create:hover {
    background: #333;
}
.premium-btn-create:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.dashboard-add-coupon-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    padding-bottom: 150px;
}
.dashboard-edit-modal-content {
    padding-bottom: 150px;
}
#btnAddCoupon,
#formEditCoupon button[type="submit"].dashboard-btn-submit {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    margin-top: 40px !important;
    width: 100% !important;
    min-height: 56px;
}
.dashboard-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
#formAddCoupon > div {
    margin-bottom: 24px;
}
#formAddCoupon label {
    display: block;
    margin-bottom: 8px;
}
.dashboard-upload-area { margin-bottom: 1rem; }
.dashboard-upload-row {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.dashboard-upload-row .dashboard-upload-zone { flex: 1; min-width: 180px; }
.dashboard-btn-create-graphic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-height: 140px;
    border-radius: 16px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
}
.dashboard-btn-create-graphic:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
    color: #5b21b6;
}
.dashboard-btn-create-graphic [data-lucide] { width: 1.2rem; height: 1.2rem; }
.create-graphic-modal-portal {
    z-index: 999999 !important;
    pointer-events: none;
}
.create-graphic-modal-portal .create-graphic-modal {
    pointer-events: auto;
}
.create-graphic-modal {
    z-index: 999999 !important;
}
.create-graphic-modal.dashboard-modal-overlay {
    z-index: 999999 !important;
}
.create-graphic-modal.hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.create-graphic-modal:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.create-graphic-modal::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 29999;
    pointer-events: none;
}
.create-graphic-modal .create-graphic-content {
    max-width: 380px;
    padding: 1.5rem;
    position: relative;
    z-index: 30001;
}
.create-graphic-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.create-graphic-color {
    width: 100%;
    height: 48px;
    padding: 4px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
}
.create-graphic-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.dashboard-upload-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.dashboard-upload-zone {
    position: relative;
    min-height: 140px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}
.dashboard-upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.dashboard-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}
.dashboard-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}
.dashboard-upload-placeholder .lucide { width: 2.5rem; height: 2.5rem; }
.dashboard-upload-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
}
#addCouponImagePreview {
    object-fit: cover;
    border-radius: 12px;
}
.dashboard-profile-image-zone {
    min-height: 100px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.dashboard-profile-logo-zone { min-height: 80px; max-width: 160px; }
.dashboard-image-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.dashboard-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.85rem;
}
.dashboard-image-placeholder .lucide { width: 2rem; height: 2rem; }
.dashboard-image-preview {
    max-width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 12px;
}
.dashboard-profile-logo-zone .dashboard-image-preview {
    max-height: 80px;
    max-width: 120px;
    border-radius: 50%;
}
.nav-add-coupon-trigger.hidden { display: none !important; }

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0 16px;
}
@media (max-width: 767px) {
    .coupon-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 0.75rem;
    }
}
.coupon-grid-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 0;
    color: #1a1a1a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (max-width: 767px) {
    .coupon-grid-item {
        flex-direction: row;
        align-items: center;
        border-radius: 16px;
        padding: 0;
        min-height: 80px;
    }
}
.coupon-card-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f1f5f9;
    object-fit: cover;
    overflow: hidden;
    flex-shrink: 0;
}
.coupon-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .coupon-card-thumb {
        width: 72px;
        min-width: 72px;
        height: 72px;
        aspect-ratio: 1;
    }
}
.coupon-card-thumb {
    position: relative;
}
.coupon-card-thumb .coupon-thumb-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.coupon-card-thumb .coupon-thumb-letter.hidden {
    display: none !important;
}
.coupon-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}
.coupon-card-thumb-placeholder .coupon-thumb-letter {
    position: static;
    display: flex;
}
@media (max-width: 767px) {
    .coupon-card-thumb-placeholder .lucide { width: 1.5rem; height: 1.5rem; }
}
.coupon-grid-item .coupon-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
}
.coupon-grid-item .coupon-card-body .coupon-card-title { padding-top: 0.75rem; padding-bottom: 0; margin: 0 0 0.35rem; }
.coupon-grid-item .coupon-card-body .meta { margin-bottom: 0.75rem; }
@media (max-width: 767px) {
    .coupon-grid-item .coupon-card-body {
        padding: 12px 10px;
        justify-content: center;
    }
    .coupon-grid-item .coupon-card-body .meta { margin-bottom: 0; }
}
.coupon-grid-item > .actions {
    padding: 0 1rem 1rem;
    margin-top: auto;
}
@media (max-width: 767px) {
    .coupon-grid-item > .actions {
        padding: 0 0.5rem 0 0;
        margin-top: 0;
        margin-right: auto;
    }
}
.coupon-grid-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}
.coupon-grid-item h3.coupon-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.coupon-grid-item .meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}
.coupon-grid-item .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.coupon-grid-item .actions button {
    padding: 0.45rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.coupon-grid-item .actions button:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
}
.coupon-grid-item .actions button.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.coupon-grid-item .actions .lucide {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.5;
}
.view-section {
    display: none;
}
.view-section.active {
    display: block;
}

/* === Settings (Client Preferences) – Vibrant Glass === */
.settings-section {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
}
.settings-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.settings-hint {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.settings-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}
.slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.settings-slider {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    -webkit-appearance: none;
    appearance: none;
}
.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.settings-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    border: none;
    cursor: pointer;
}
.slider-value {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 2.5rem;
    text-align: left;
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}
.category-pill:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}
.category-pill.active {
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    border-color: rgba(255,255,255,0.5);
    color: #041121;
    font-weight: 600;
}
.followed-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.followed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}
.followed-name {
    font-weight: 500;
    color: var(--text-primary);
}
.followed-unfollow {
    padding: 0.4rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.followed-unfollow:hover {
    color: #f87171;
    background: rgba(248,113,113,0.15);
}
.followed-unfollow .lucide {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.5;
}
.settings-save-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    color: #041121;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(79,172,254,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.settings-save-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(79,172,254,0.5);
}
.settings-save-btn .lucide {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 1.5;
}

/* === Business public page (business.html) === */
.business-page .app-container {
    padding-bottom: 2rem;
}
.business-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}
.business-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.business-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: #1e293b;
    text-decoration: none;
    transition: background 0.2s;
}
.business-back:hover {
    background: rgba(255, 255, 255, 0.5);
}
.business-back [data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
}
.business-viewport {
    padding: 0 1rem 1.5rem;
    background: #f1f5f9;
}
.business-content {
    color: #222222;
}
.business-loading,
.business-error {
    text-align: center;
    padding: 3rem 1rem;
    color: #222222;
}
.business-error-icon {
    display: inline-flex;
    margin-bottom: 0.5rem;
}
.business-error-icon [data-lucide] {
    width: 48px;
    height: 48px;
    color: #94a3b8;
}
.business-error-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0ea5e9;
    text-decoration: underline;
}
.business-hero {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    margin-bottom: 1.5rem;
}
.business-hero-cover {
    width: 100%;
    min-height: 220px;
    height: 28vh;
    max-height: 280px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 50%, #8b5cf6 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.business-hero-cover.has-image {
    background-color: #1e293b;
    background-size: cover;
    background-repeat: no-repeat;
}
.business-hero-cover-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 50%, #8b5cf6 100%);
}
.business-hero-cover:not(.has-image)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.business-hero-cover.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
.business-hero-logo-wrap {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    z-index: 2;
}
.business-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.business-hero-logo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
}
.business-hero-inner {
    position: relative;
    margin-top: -50px;
    margin-inline: 1rem;
    padding: 1.25rem 1.5rem;
    padding-top: 2.75rem;
    border-radius: 16px;
}
/* Sticky bar (glassmorphism) */
.business-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 0.6rem 1rem;
    margin: 0 1rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.business-sticky-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}
.business-glass-inner {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.business-hero-name {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.business-hero-desc {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #222;
    line-height: 1.5;
}
.business-hero-address {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.business-hero-address::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
}
.business-action-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.business-contact-trio .business-action-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}
.business-contact-trio .business-action-btn [data-lucide] {
    width: 1.4rem;
    height: 1.4rem;
    color: #fff;
}
.business-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font: inherit;
}
.business-action-btn.action-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.business-action-btn .whatsapp-icon {
    display: block;
    width: 26px;
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.business-action-btn.action-whatsapp:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
.business-action-btn.action-call { background: #0ea5e9; }
.business-action-btn.action-call:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4); }
.business-action-btn.action-location { background: #ef4444; }
.business-action-btn.action-location:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4); }
.business-action-btn.action-share { background: #64748b; }
.business-action-btn.action-share:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4); }
.business-action-btn.action-website { background: #6366f1; }
.business-action-btn.action-website:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4); }
.business-action-btn .lucide,
.business-action-btn [data-lucide] {
    width: 1.35rem;
    height: 1.35rem;
    color: #fff;
}
.business-action-btn.hidden {
    display: none !important;
}
.business-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: rgba(110, 142, 251, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 142, 251, 0.3);
    color: #4338ca;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.business-btn-glass:hover {
    background: rgba(110, 142, 251, 0.35);
    transform: scale(1.02);
}
.business-btn-glass [data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
}
.business-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222222;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}
.business-glass-title {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #222222;
}
.business-coupons-grid,
.business-coupons-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.business-coupons-stack .business-coupon-card {
    width: 100%;
}
.business-coupon-card {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.business-glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.business-coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.business-coupon-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222222;
    overflow-wrap: break-word;
    word-break: break-word;
}
.business-coupon-desc {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.4;
}
.business-coupon-expiry {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.business-coupon-expiry [data-lucide] {
    width: 1rem;
    height: 1rem;
}
.business-no-coupons {
    text-align: center;
    color: #94a3b8;
    padding: 2rem 1rem;
}

/* === Coupon Detail Modal: high-end card + animations === */
@keyframes couponModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes couponModalScaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes couponModalImageZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}
@keyframes couponDetailPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45); }
    50% { box-shadow: 0 4px 28px rgba(59, 130, 246, 0.6); }
}

.coupon-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    pointer-events: none;
}
.coupon-detail-modal.coupon-detail-modal-visible {
    display: flex;
    pointer-events: auto;
}
.coupon-detail-modal.coupon-detail-modal-visible .coupon-detail-backdrop {
    animation: couponModalFadeIn 0.25s ease-out forwards;
}
.coupon-detail-modal.coupon-detail-modal-visible .coupon-detail-content {
    animation: couponModalScaleIn 0.3s ease-out forwards;
}
.coupon-detail-modal.coupon-detail-modal-visible .coupon-detail-image-wrap .coupon-detail-image,
.coupon-detail-modal.coupon-detail-modal-visible .coupon-detail-image-wrap .coupon-detail-image-letter {
    animation: couponModalImageZoom 0.4s ease-out 0.1s forwards;
}
.coupon-detail-modal.hidden {
    display: none !important;
}
.coupon-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    z-index: 19999;
}
.coupon-detail-content {
    position: relative;
    z-index: 20000;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 0;
    color: #222;
    margin-top: 3rem;
    opacity: 0;
    /* Ticket notch: dark circles on sides (suggest cutouts) */
    background-image:
        radial-gradient(circle at 0 50%, rgba(0, 0, 0, 0.5) 12px, transparent 12px),
        radial-gradient(circle at 100% 50%, rgba(0, 0, 0, 0.5) 12px, transparent 12px);
    background-size: 24px 100%, 24px 100%;
    background-position: 0 0, 100% 0;
    background-repeat: no-repeat;
    background-color: #fff;
}
.coupon-detail-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: white !important;
    color: black !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20005 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
[dir="rtl"] .coupon-detail-close {
    right: auto;
    left: 15px;
}
.coupon-detail-close:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.coupon-detail-close [data-lucide] { width: 1.25rem; height: 1.25rem; color: black !important; }
.coupon-detail-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a78bfa 100%);
}
.coupon-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}
.coupon-detail-image-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.08);
}
.share-trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.share-trigger:hover {
    background: #fff;
    transform: scale(1.05);
}
.share-trigger [data-lucide],
.share-trigger svg {
    width: 1.1rem;
    height: 1.1rem;
}
[dir="rtl"] .share-trigger {
    right: auto;
    left: 12px;
}
/* Universal share icon: top-right of coupon image/modal, circular, bound to shareCoupon */
.share-trigger-circle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}
.share-trigger-circle:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: scale(1.05);
}
.share-trigger-circle [data-lucide],
.share-trigger-circle svg {
    width: 1.15rem;
    height: 1.15rem;
}
.wallet-modal-image-wrap .share-trigger-circle {
    top: 15px;
    right: 15px;
}
[dir="rtl"] .share-trigger-circle {
    right: auto;
    left: 15px;
}
[dir="rtl"] .wallet-modal-image-wrap .share-trigger-circle {
    right: auto;
    left: 15px;
}
.coupon-detail-content .coupon-detail-title,
.coupon-detail-content .coupon-detail-desc,
.coupon-detail-content .coupon-detail-expiry {
    padding-inline: 1.5rem;
}
.coupon-detail-title {
    margin: 0;
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}
.coupon-detail-desc {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #555;
    white-space: pre-wrap;
}
.coupon-detail-expiry {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: fit-content;
}
.coupon-detail-expiry-pill {
    margin-inline: 1.5rem;
}
.coupon-detail-expiry [data-lucide] { width: 1rem; height: 1rem; color: #64748b; }
.coupon-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}
.coupon-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.coupon-detail-cta-pulse {
    animation: couponDetailPulse 2s ease-in-out infinite;
}
.coupon-detail-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
}
.coupon-detail-btn.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}
.coupon-detail-btn.secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.coupon-detail-btn.link {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}
.coupon-detail-btn.link:hover {
    background: #eff6ff;
}
.coupon-detail-btn [data-lucide] { width: 1.25rem; height: 1.25rem; }

/* === Profile: subtle logout list item + preferences (appended) === */
.profile-list-item-logout {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}
.profile-list-item-logout:hover {
    color: rgba(255, 255, 255, 0.9);
}
.profile-list-item-logout [data-lucide="log-out"] {
    width: 1.1rem;
    height: 1.1rem;
    opacity: 0.85;
}
.profile-prefs-distance {
    margin: 1rem 0;
}
.profile-prefs-distance label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.5rem;
}
.profile-prefs-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    accent-color: var(--accent, #38bdf8);
}
.profile-prefs-categories { margin: 1rem 0; }
.profile-prefs-categories-label,
.profile-prefs-chips {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.9));
    margin-bottom: 0.5rem;
}
.profile-prefs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.profile-prefs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-primary, #fff);
}
.profile-prefs-chip input { margin: 0; }
.profile-prefs-chip:has(input:checked) {
    background: rgba(56, 189, 248, 0.3);
    border-color: var(--accent, #38bdf8);
}
.profile-prefs-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    background: var(--accent, #38bdf8);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.profile-prefs-save-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.profile-prefs-save-btn [data-lucide] { width: 1.1rem; height: 1.1rem; }

/* My Favorite Businesses (profile) */
.profile-prefs-favorites { margin-top: 1.25rem; }
.profile-followed-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.profile-followed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: var(--text-primary, #fff);
}
.profile-followed-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.profile-followed-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-followed-letter {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}
.profile-followed-letter.hidden { display: none; }
.profile-followed-name {
    flex: 1;
    font-size: 0.95rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-followed-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(239, 68, 68, 0.35);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}
.profile-followed-remove:hover { background: rgba(239, 68, 68, 0.5); }
.profile-followed-remove [data-lucide] { width: 1rem; height: 1rem; }
.profile-followed-empty {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.75));
    margin-top: 0.5rem;
}

/* === Dashboard: solid panel + dark text (no white on white) === */
body.dashboard-page .dashboard-glass-section { margin-bottom: 1.5rem; }
body.dashboard-page .dashboard-glass-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--card-radius, 24px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    color: #222222 !important;
}
body.dashboard-page .dashboard-section-title {
    color: #222222 !important;
    text-shadow: none;
}
.dashboard-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #222222;
}
.dashboard-section-title [data-lucide] { width: 1.35rem; height: 1.35rem; }
body.dashboard-page .dashboard-form-intro {
    color: #333333 !important;
}
.dashboard-field-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 4px 0 0 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.dashboard-field-hint [data-lucide] { flex-shrink: 0; }

.dashboard-form-intro {
    color: #333333;
    font-weight: 500;
}
body.dashboard-page .dashboard-glass-card .dashboard-input,
body.dashboard-page .dashboard-glass-card .dashboard-textarea,
body.dashboard-page .dashboard-glass-card select.dashboard-input {
    background: #ffffff !important;
    border: 2px solid #333 !important;
    color: #000000 !important;
    border-radius: 12px;
}
body.dashboard-page .dashboard-glass-card .dashboard-input::placeholder,
body.dashboard-page .dashboard-glass-card .dashboard-textarea::placeholder { color: #666 !important; }
body.dashboard-page .dashboard-glass-card label { color: #222222 !important; }
/* #profileFormBox overrides with solid high-contrast (see #profileFormBox block above) */
.dashboard-business-link-title [data-lucide] { width: 1.2rem; height: 1.2rem; vertical-align: -0.2em; }
.dashboard-action-card [data-lucide] { width: 1.2rem; height: 1.2rem; }
.dashboard-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
body.dashboard-page .admin-main { padding-bottom: 90px; }

/* Professional card reset & share icon (end of file for enforcement) */
.coupon-card,
.wallet-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
}
.coupon-card h2,
.coupon-card h3,
.coupon-card h4,
.wallet-card h2,
.wallet-card h3,
.wallet-card h4,
.wallet-card-business,
.wallet-card-offer {
    color: #1f2937 !important;
}
.card-hero { position: relative; }
.share-trigger-circle {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 35px;
    height: 35px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}
[dir="rtl"] .share-trigger-circle {
    right: auto !important;
    left: 12px !important;
}

/* GLOBAL OVERFLOW LOCK + ensure page is visible and clickable (no stuck overlay state) */
body, .app-shell {
    overflow-x: hidden !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
}

/* Restore global scrolling - overrides lock above */
html, body {
    height: auto !important;
    overflow: visible !important;
}

/* Force the root and all potential wrappers to allow scroll */
@media (max-width: 768px) {
    html, body, #app, .app-container, .main-wrapper, main, .app-frame {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        position: relative !important; /* Prevents fixed/absolute from locking scroll */
    }
    /* Override: .app-frame:has(.bottom-nav) forces overflow:visible which blocks scroll - restore scroll on mobile */
    .app-frame:has(.bottom-nav):not(.wheel-app-frame) {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    /* Release body scroll lock on mobile */
    body.app-shell {
        overflow-y: auto !important;
    }
}

/* Padding for fixed nav: ONLY on pages that have .bottom-nav (index, wallet, business, wheel, categories). Login/Signup have no nav → padding 0. */
body:has(.bottom-nav),
body:has(.bottom-nav) .viewport {
    padding-bottom: 90px !important;
}
body:has(.bottom-nav) .app-frame,
body:has(.bottom-nav) .profile-frame {
    padding-bottom: 100px !important;
}

/* .bottom-nav: premium native-app style (b4 Midnight Navy) */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 70px !important;
    min-height: 70px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    margin: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 12px) !important;
}

/* Premium card (app.js renderCard) */
.card-inner {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 24px !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    position: relative;
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}
.biz-badge {
    font-size: 14px;
    font-weight: 800;
    padding: 6px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #1e293b;
    background: #f1f5f9;
    border-radius: 10px;
}
.promo-tag {
    color: #3b82f6;
    font-size: 12px;
    font-weight: 800;
}
.card-title {
    color: #1e293b;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}
.card-divider {
    height: 1px;
    border-top: 2px dashed #f1f5f9;
    margin: 20px -24px;
    position: relative;
}
.cutout {
    width: 24px;
    height: 24px;
    background: #f1f5f9 !important;
    border-radius: 50%;
    position: absolute;
    top: -12px;
    z-index: 10;
}
.cutout.left {
    left: -12px;
}
.cutout.right {
    right: -12px;
}
.card-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}
.expiry-pill {
    display: inline-block;
    background: #fef2f2;
    color: #ef4444;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

/* Distance tag on cards */
.distance-tag {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
}

/* Business page header */
.business-page .business-header,
.business-page .app-header {
    padding: 32px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.coupon-card { background: transparent !important; padding: 10px !important; overflow: visible !important; }
.card-inner { background: #fff !important; border-radius: 24px !important; padding: 24px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; position: relative; display: flex; flex-direction: column; gap: 12px; }
.cutout { width: 24px; height: 24px; background: #3a7bd5 !important; border-radius: 50%; position: absolute; top: -12px; z-index: 5; }
.cutout.left { left: -12px; }
.cutout.right { right: -12px; }
.card-divider { height: 1px; border-top: 2px dashed #eee; margin: 10px -24px; position: relative; }

/* EMERGENCY OVERRIDE: Unlock Mobile Scrolling */
@media (max-width: 768px) {
    /* 1. Force release the main containers */
    html, body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior-y: auto !important; /* Re-enable native bounce */
    }

    /* 2. Break the Flexbox lock on body.app-shell */
    body.app-shell {
        display: block !important; /* Crucial: Flex + hidden = No scroll */
        overflow: visible !important;
        padding-bottom: 90px !important; /* Space for nav */
    }

    /* 3. Ensure frames and viewports don't trap scroll */
    .app-frame,
    .app-container,
    .viewport,
    #feedViewport {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: block !important;
        max-height: none !important;
    }

    /* 4. Keep the Wheel page safe (DO NOT UNLOCK) */
    body.wheel-page .app-frame,
    body.wheel-page {
        overflow: hidden !important;
        height: 100vh !important;
    }
}

/* Login Required Modal - isolated, does not affect Navbar or Wheel GPU */
#loginRequiredModal.custom-modal {
    isolation: isolate;
}

/* ===== adm-coupon-v2: Coupon Inventory & Preview (STRICT ISOLATION) ===== */
.adm-coupon-v2-search-wrap {
    margin-bottom: 1rem;
}
.adm-coupon-v2-search-input {
    width: 100%;
    max-width: 320px;
    padding: 0.6rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
}
.adm-coupon-v2-table-wrap {
    overflow-x: auto;
}
.adm-coupon-v2-table {
    width: 100%;
    min-width: 700px;
}
.adm-coupon-v2-td-main .adm-coupon-v2-cell-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.adm-coupon-v2-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.adm-coupon-v2-thumb-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    flex-shrink: 0;
}
.adm-coupon-v2-thumb-placeholder .lucide,
.adm-coupon-v2-thumb-placeholder [data-lucide] {
    width: 20px;
    height: 20px;
    color: #64748b;
}
.adm-coupon-v2-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}
.adm-coupon-v2-business {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}
.adm-coupon-v2-business .badge {
    margin-inline-start: 4px;
}
.adm-coupon-v2-td-perf {
    white-space: nowrap;
}
.adm-coupon-v2-perf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-end: 8px;
    font-size: 0.9rem;
    color: #64748b;
}
.adm-coupon-v2-icon {
    width: 14px;
    height: 14px;
}
.adm-coupon-v2-toggle-wrap {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.adm-coupon-v2-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.adm-coupon-v2-toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    transition: background 0.2s;
}
.adm-coupon-v2-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.adm-coupon-v2-toggle:checked + .adm-coupon-v2-toggle-slider {
    background: #22c55e;
}
.adm-coupon-v2-toggle:checked + .adm-coupon-v2-toggle-slider::before {
    transform: translateX(18px);
}
.adm-coupon-v2-notes-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 6px;
}
.adm-coupon-v2-notes-btn .lucide,
.adm-coupon-v2-notes-btn [data-lucide] {
    width: 16px;
    height: 16px;
    color: #64748b;
}
.adm-coupon-v2-notes-preview {
    font-size: 0.8rem;
    color: #94a3b8;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adm-coupon-v2-preview-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.adm-coupon-v2-preview-btn .lucide,
.adm-coupon-v2-preview-btn [data-lucide] {
    width: 16px;
    height: 16px;
}
.adm-coupon-v2-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.adm-coupon-v2-preview-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.adm-coupon-v2-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.adm-coupon-v2-preview-content {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.adm-coupon-v2-preview-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    color: #64748b;
}
.adm-coupon-v2-preview-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.adm-coupon-v2-preview-card-inner {
    display: block;
    margin: 0;
}
.adm-coupon-v2-card-hero {
    width: 100%;
    height: 140px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.adm-coupon-v2-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.adm-coupon-v2-card-placeholder .lucide,
.adm-coupon-v2-card-placeholder [data-lucide] {
    width: 48px;
    height: 48px;
    color: #94a3b8;
}
.adm-coupon-v2-card-body {
    padding: 1rem 1.25rem;
}
.adm-coupon-v2-card-business {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: #64748b;
}
.adm-coupon-v2-card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}
.adm-coupon-v2-card-desc {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}
.adm-coupon-v2-card-expiry {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}
.adm-coupon-v2-card-expiry .lucide,
.adm-coupon-v2-card-expiry [data-lucide] {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-inline-end: 4px;
}
.adm-coupon-v2-notes-modal {
    position: fixed;
    inset: 0;
    z-index: 251;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.adm-coupon-v2-notes-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.adm-coupon-v2-notes-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.adm-coupon-v2-notes-content {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}
.adm-coupon-v2-notes-content h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}
.adm-coupon-v2-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    resize: vertical;
}
.adm-coupon-v2-notes-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* ===== adm-inv-v3: Comprehensive Coupon Control (STRICT ISOLATION) ===== */
.adm-promoted-counter {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
}
.adm-inv-v3-pin-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.adm-inv-v3-pin-btn .lucide,
.adm-inv-v3-pin-btn [data-lucide] { width: 16px; height: 16px; color: #64748b; }
.adm-inv-v3-pin-btn.is-promoted {
    background: #eef2ff;
    border-color: #6366f1;
}
.adm-inv-v3-pin-btn.is-promoted .lucide,
.adm-inv-v3-pin-btn.is-promoted [data-lucide] { color: #6366f1; }
.adm-inv-v3-search-wrap {
    margin-bottom: 1rem;
}
.adm-inv-v3-search-input {
    width: 100%;
    max-width: 360px;
    padding: 0.65rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
}
/* admin-table-wrapper: responsive scroll container (admin only - no leakage) */
.admin-page .admin-table-wrapper,
.admin-page .adm-inv-v3-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.adm-inv-v3-table {
    width: 100%;
    min-width: 900px;
}
.admin-page .adm-inv-v3-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 0 1px 0 0 #e2e8f0;
}
.admin-page .adm-inv-v3-table tbody tr {
    transition: background 0.15s ease;
}
.admin-page .adm-inv-v3-table tbody tr:hover {
    background: #f8fafc;
}
.admin-page .adm-inv-v3-table tbody td {
    white-space: nowrap;
}
.admin-page .adm-inv-v3-table tbody td.adm-inv-v3-td-notes-status {
    white-space: normal;
}
.adm-inv-v3-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.adm-inv-v3-sortable:hover {
    color: #1d4ed8;
}
.adm-inv-v3-sortable.adm-inv-v3-sort-asc::after,
.adm-inv-v3-sortable.adm-inv-v3-sort-desc::after {
    margin-inline-start: 4px;
    font-size: 0.75em;
    opacity: 0.7;
}
.adm-inv-v3-sortable.adm-inv-v3-sort-asc::after { content: ' ▲'; }
.adm-inv-v3-sortable.adm-inv-v3-sort-desc::after { content: ' ▼'; }
.adm-inv-v3-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}
.adm-inv-v3-business {
    font-size: 0.85rem;
    color: #64748b;
}
.adm-inv-v3-business .badge { margin-inline-start: 4px; }
.adm-inv-v3-td-dates { font-size: 0.85rem; color: #64748b; }
.adm-inv-v3-date-line { margin-bottom: 2px; }
.adm-inv-v3-date-line:last-child { margin-bottom: 0; }
.adm-inv-v3-muted { color: #94a3b8; }
.adm-inv-v3-expiry-expired {
    color: #dc2626;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.adm-inv-v3-td-perf { white-space: nowrap; }
.adm-inv-v3-perf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-end: 10px;
    font-size: 0.9rem;
    color: #64748b;
}
.adm-inv-v3-icon {
    width: 14px;
    height: 14px;
}
.adm-inv-v3-td-notes-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.adm-inv-v3-notes-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.adm-inv-v3-notes-btn .lucide,
.adm-inv-v3-notes-btn [data-lucide] { width: 16px; height: 16px; color: #64748b; }
.adm-inv-v3-notes-preview {
    font-size: 0.8rem;
    color: #94a3b8;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adm-inv-v3-toggle-wrap {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.adm-inv-v3-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.adm-inv-v3-toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    transition: background 0.2s;
}
.adm-inv-v3-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.adm-inv-v3-toggle:checked + .adm-inv-v3-toggle-slider { background: #22c55e; }
.adm-inv-v3-toggle:checked + .adm-inv-v3-toggle-slider::before { transform: translateX(18px); }
.adm-inv-v3-td-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.adm-inv-v3-action-btn,
.adm-inv-v3-edit-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.adm-inv-v3-action-btn .lucide,
.adm-inv-v3-action-btn [data-lucide],
.adm-inv-v3-edit-btn .lucide,
.adm-inv-v3-edit-btn [data-lucide] {
    width: 18px;
    height: 18px;
    color: #64748b;
}
.adm-inv-v3-action-btn:hover,
.adm-inv-v3-edit-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Master Preview Modal - isolated mobile Card View (zero conflict) */
.adm-inv-v3-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.adm-inv-v3-preview-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.adm-inv-v3-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.adm-inv-v3-preview-content {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.adm-inv-v3-preview-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    color: #64748b;
}
.adm-inv-v3-preview-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    isolation: isolate;
}
/* Isolated mobile card - no inheritance from feed-card, wallet-card, etc */
.adm-inv-v3-mobile-card {
    display: block;
    margin: 0;
    background: #fff;
    direction: rtl;
}
.adm-inv-v3-card-hero {
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.adm-inv-v3-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.adm-inv-v3-card-hero .adm-inv-v3-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.adm-inv-v3-card-hero .adm-inv-v3-card-placeholder.hidden { display: none; }
.adm-inv-v3-card-hero .adm-inv-v3-card-placeholder .lucide,
.adm-inv-v3-card-hero .adm-inv-v3-card-placeholder [data-lucide] {
    width: 48px;
    height: 48px;
    color: #94a3b8;
}
.adm-inv-v3-mobile-card[data-image-position="top"] .adm-inv-v3-card-hero img { object-position: top; }
.adm-inv-v3-mobile-card[data-image-position="center"] .adm-inv-v3-card-hero img { object-position: center; }
.adm-inv-v3-mobile-card[data-image-position="bottom"] .adm-inv-v3-card-hero img { object-position: bottom; }
.adm-inv-v3-card-body {
    padding: 1.25rem 1.25rem;
}
.adm-inv-v3-card-business {
    display: block;
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: #64748b;
}
.adm-inv-v3-card-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}
.adm-inv-v3-card-desc {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}
.adm-inv-v3-card-expiry {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}
.adm-inv-v3-card-expiry .lucide,
.adm-inv-v3-card-expiry [data-lucide] {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-inline-end: 4px;
}

/* Notes modal */
.adm-inv-v3-notes-modal {
    position: fixed;
    inset: 0;
    z-index: 251;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.adm-inv-v3-notes-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.adm-inv-v3-notes-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.adm-inv-v3-notes-content {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}
.adm-inv-v3-notes-content h4 { margin: 0 0 1rem; font-size: 1.1rem; }
.adm-inv-v3-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    resize: vertical;
}
.adm-inv-v3-notes-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* Unified UI - Homepage Support */
.coupon-card .wallet-card-business,
.coupon-card .wallet-card-offer,
.coupon-card .wallet-card-desc {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    margin: 0 !important;
}
.coupon-card .wallet-card-offer {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}
