/**
 * Local BREAK Stylesheet
 * Location: /public/style.css
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #ffe2c4 0%, #ffd6b0 60%, #fff7ee 100%);
    color: #333;
    overflow-x: hidden;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}
header { backdrop-filter: saturate(120%) blur(6px); border-bottom: 1px solid rgba(0,0,0,0.04); }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Legacy / non-Bootstrap nav container (kept for older views) */
header .legacy-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bootstrap navbar adjustments to avoid double padding/overflow */
.navbar {
    padding: 0.5rem 0;
}
.navbar .container {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mobile-menu-btn { display:none; background:transparent; border:2px solid #FF6B35; color:#FF6B35; padding:.5rem .75rem; border-radius:8px; }
.nav-links { display:flex; gap:1rem; align-items:center; }
.nav-links a { padding:.5rem .75rem; }

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FF6B35;
    text-decoration: none;
    letter-spacing: -1px;
}
.logo::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('assets/logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: -5px;
}
/* Ensure logo and brand align nicely */
.logo { display:inline-flex; align-items:center; gap:8px; }
.logo img { height:28px; width:auto; display:inline-block; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FF6B35;
}
.nav-links a.active {
    color: #FF6B35;
    font-weight: 700;
}
.desktop-only { display: block; }
.mobile-only { display: none; }

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: #FF6B35;
    color: #fff;
    border-color: #FF6B35;
}

.btn-primary:hover {
    background: #e55a2a;
    border-color: #e55a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background: #FFF5F0;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.btn-outline:hover {
    background: #FFE8DB;
    transform: translateY(-2px);
}

.btn-outline.active {
    background: #FF6B35;
    color: #fff;
    border-color: #FF6B35;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .gradient-text {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Chat toggle button styling */
#chat-toggle { position:fixed !important; right:18px; bottom:16px; width:56px; height:56px; padding:0; font-size:20px; line-height:56px; text-align:center; z-index:3000; border-radius:999px; box-shadow:0 8px 24px rgba(0,0,0,0.18); display:inline-flex; align-items:center; justify-content:center; }
#chat-panel { position:fixed !important; right:18px; bottom:80px; width:360px; max-width:92%; display:none !important; z-index:3000; }
#chat-panel .card { width:100%; }

@media (max-width:576px) {
    #chat-toggle { right:12px; bottom:16px; width:48px; height:48px; font-size:18px; }
    #chat-panel { right:12px; bottom:80px; width:320px; max-width:92%; }
}
@media (max-width:400px) {
    #chat-panel { width:280px; }
    #chat-toggle { width:44px; height:44px; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

.filter-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.filter-pill:hover, .filter-pill.active {
    background: #fff;
    color: #FF6B35;
    border-color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Deals search – elevated search bar */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 14px auto;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 25px;
    transform: translateY(-50%);
    opacity: 0.55;
    font-size: 16px;
    pointer-events: none;
    line-height: 1;
}

.mobile-search {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 42px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    outline: none;
    box-sizing: border-box;
}

.mobile-search:focus {
    border-color: rgba(255, 107, 53, 0.55);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.18);
}

.search-submit-btn {
    display: block;
    margin: 10px auto 0 auto;
    padding: 10px 32px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

@media (max-width: 600px) {
    .search-wrapper { margin-bottom: 18px; }
    .deals-search-form .search-submit-btn { display: none; }
}

.deals-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.deal-card {
    background: white;
    border-radius: 16px;
    display: block;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
}

.deal-card:nth-child(1) { animation-delay: 0.1s; }
.deal-card:nth-child(2) { animation-delay: 0.2s; }
.deal-card:nth-child(3) { animation-delay: 0.3s; }
.deal-card:nth-child(4) { animation-delay: 0.4s; }
.deal-card:nth-child(5) { animation-delay: 0.5s; }
.deal-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.deal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-content {
    padding: 1.5rem;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.deal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.deal-business {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deal-discount {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.deal-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.deal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.deal-expiry {
    font-size: 0.85rem;
    color: #FF6B35;
    font-weight: 600;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #FF6B35;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: #FF6B35;
}

.radio-label input[type="radio"],
.radio-label input[type="checkbox"] {
    width: auto;
    padding: 0;
    min-height: auto;
    flex-shrink: 0;
}

.deal-fine-print {
    margin: .75rem 0 .5rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.deal-fine-print li {
    font-size: .78rem;
    color: #888;
    line-height: 1.5;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.auth-footer a {
    color: #FF6B35;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.test-accounts {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.test-accounts h4 {
    margin-bottom: 1rem;
    color: #333;
}

.account-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

.admin-layout { max-width:1200px; margin:0 auto; padding:2rem; display:grid; grid-template-columns:240px 1fr; gap:1rem; }
.admin-side { border:1px solid #e5e7eb; border-radius:12px; padding:1rem; }
.admin-main { width:100%; }
.admin-payments-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-bottom:1rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .mobile-menu-btn { display:block; background:transparent; border:2px solid #FF6B35; color:#FF6B35; padding:.5rem .75rem; border-radius:8px; }
    nav { position: relative; }

    /* Off-canvas mobile navigation */
    .nav-links.mobile-only {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 320px;
        max-width: 90%;
        background: linear-gradient(180deg,#ffffff, #fbfbfd);
        transform: translateX(-120%);
        transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s;
        box-shadow: 14px 0 40px rgba(16,24,40,0.12);
        padding: 1.25rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 1500;
        border-right: 1px solid rgba(0,0,0,0.04);
    }
    .nav-links.mobile-only.active { transform: translateX(0); }
    .nav-links.mobile-only a { display:block; padding: .75rem 1rem; border-radius:8px; color:#333; text-decoration:none; }
    .mobile-close-btn { background:transparent; border:none; color:#333; font-size:1.25rem; align-self:flex-end; padding:.25rem; }
    .mobile-close-btn { font-size:1.5rem; padding:.5rem; }

    /* Desktop nav hidden on small screens */
    .nav-links.desktop-only { display:none; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .btn { width: 100%; }
    body { padding-bottom: 68px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .deals-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 2rem; }
    .admin-layout { grid-template-columns: 1fr; padding:1rem; }
    .admin-payments-grid { grid-template-columns: 1fr; }
    .mobile-tabbar { display: flex; }
}

/* Footer polish */
footer { background:#0b1220; color:#cbd5e1; padding:2.5rem 1rem; }
footer .footer-inner { max-width:1200px; margin:0 auto; display:flex; gap:1rem; align-items:center; justify-content:space-between; flex-wrap:wrap; }
footer a { color:#fff; text-decoration:none; opacity:0.9; }
@media (max-width:600px) { footer .footer-inner { flex-direction:column; align-items:flex-start; gap:0.5rem; } }

/* Chat panel small adjustments */
#chat-panel .card { border-radius:12px; overflow:hidden; }
#chat-panel .card-header { background:#fff; border-bottom:1px solid #eee; }
#chat-panel .card-body { background: #fbfbff; }

.no-deals {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Preloader overlay */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.4s ease;
}

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

/* Page transition loader (reuses .logo-bounce + .splash-logo) */
.page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }

.preloader .logo-bounce {
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    animation: popBounce 1s ease-in-out infinite alternate;
}

@keyframes popBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-14px) scale(1.04); }
}

/* Splash logo */
.splash-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: contain;
    max-width: 60vw;
}

@media (max-width: 600px) {
    .splash-logo {
        width: 150px;
        height: 150px;
    }
}

/* Extra micro-interactions */
.deal-card:hover { transform: translateY(-8px) rotateX(1deg) rotateY(1deg); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 4px 18px rgba(255,107,53,0.35); }
.filter-pill:hover, .filter-pill.active { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.logo:hover { animation: logoPulse 0.8s ease-in-out; }
@keyframes logoPulse { 0% {transform:scale(1);} 50% {transform:scale(1.05);} 100% {transform:scale(1);} }
.nearby-badge{display:inline-block;background:#10b981;color:#fff;border-radius:12px;padding:2px 8px;font-size:.75rem}
.wave-spinner{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#4facfe,#00f2fe);animation:wave 1.2s infinite ease-in-out}
@keyframes wave{0%{transform:scale(1)}50%{transform:scale(1.1)}100%{transform:scale(1)}}
.parallax{background-attachment:fixed;background-size:cover}
.carousel{position:relative;}
.carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:1rem;padding-bottom:.5rem}
.carousel-track .deal-card{scroll-snap-align:start;min-width:280px}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:#0f172a;color:#fff;border:none;border-radius:999px;width:36px;height:36px;cursor:pointer;opacity:.8}
.carousel-btn.prev{left:8px}
.carousel-btn.next{right:8px}
.deal-card:hover { cursor: pointer; }
a.deal-card { text-decoration: none; color: inherit; }

.mobile-tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: #0f3b3a; display: flex; justify-content: space-around; align-items: center; z-index: 1200; box-shadow: 0 -6px 20px rgba(0,0,0,0.2); }
.mobile-tabbar .tab-item { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mobile-tabbar .tab-item .icon { font-size: 1.2rem; }
.mobile-tabbar { pointer-events: auto; }

/* Default: hide mobile tab bar on desktop */
.mobile-tabbar { display: none; }

/* ── Mobile polish ── */

/* Tap targets: minimum 44px for all interactive elements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    .filter-pill {
        min-height: 44px;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    .mobile-tabbar .tab-item {
        min-width: 44px;
        min-height: 44px;
        padding: 4px;
    }
    /* Inputs: 48px height, 16px font to prevent iOS zoom */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px;
        padding: 0.75rem;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
    /* Spacing polish */
    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 2rem; margin-bottom: 0.75rem; }
    .hero p { font-size: 1rem; margin-bottom: 1rem; }
    .deals-grid { padding: 1rem; gap: 1rem; }
    .deal-content { padding: 1rem; }
    .deal-footer { gap: 0.5rem; flex-wrap: wrap; }
    .deal-footer .btn { min-width: 44px; }
}

/* Sticky CTA on deal detail page */
.deal-sticky-cta {
    display: none;
}
@media (max-width: 768px) {
    .deal-sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 68px; /* above the 64px tab bar */
        z-index: 1100;
        background: #fff;
        padding: 0.75rem 1rem;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
        text-align: center;
    }
    .deal-sticky-cta .btn {
        width: 100%;
        max-width: 400px;
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ════════════════════════════════════════════════════════════════
   Homepage V2 — Figma-based redesign
   Only active inside .deal-card--v2 wrapper
   ════════════════════════════════════════════════════════════════ */

/* -- Hidden by default (non-v2 pages) -- */
.discount-badge,
.deal-meta { display: none; }

/* -- V2 hero -- */
.hero-v2 {
    background: linear-gradient(180deg, #fff5ed 0%, #fff 100%);
    padding: 1.5rem 1rem 2.75rem;
}
.hero-v2-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.hero-v2 h2 { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; margin-bottom: .25rem; }
.hero-v2 h2 .accent { color: #FF6B35; }
.hero-v2 .subtitle { font-size: .9rem; color: #666; margin-bottom: 1rem; }

/* -- V2 search bar -- */
.v2-search-wrap {
    position: relative;
    margin-bottom: 1rem;
}
.v2-search-wrap .search-icon-v2 {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
}
.v2-search-wrap input {
    width: 100%;
    padding: .75rem .75rem .75rem 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.v2-search-wrap input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}
.v2-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    display: none;
    padding: 4px;
    line-height: 1;
}
.v2-search-clear.visible { display: block; }

/* -- V2 filter trigger -- */
.v2-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border: 2px solid #FF6B35;
    border-radius: 12px;
    background: #fff;
    color: #FF6B35;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.v2-filter-btn:hover { background: #fff5ed; }
.v2-filter-count {
    background: #FF6B35;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    display: none;
}
.v2-filter-count.visible { display: inline-block; }
@media (max-width: 600px) { .v2-filter-btn { width: 100%; } }

/* -- V2 active filters bar -- */
.v2-active-filters {
    display: none;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    padding: .75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
}
.v2-active-filters.visible { display: flex; }
.v2-active-filters .label { font-size: .85rem; color: #666; }
.v2-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    background: #fff5ed;
    color: #FF6B35;
    font-size: .85rem;
    border-radius: 999px;
    font-weight: 500;
}
.v2-chip button {
    background: none;
    border: none;
    color: #FF6B35;
    cursor: pointer;
    font-size: .85rem;
    padding: 0;
    line-height: 1;
}

/* -- V2 deals header -- */
.v2-deals-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.65rem 1rem .5rem;
    font-weight: 600;
    font-size: 1.15rem;
    color: #1a1a1a;
}

/* -- V2 grid -- */
#homepage-deals {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* -- V2 empty state -- */
.v2-empty-state {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.v2-empty-state.visible { display: block; }
.v2-empty-state .icon { font-size: 3rem; color: #ccc; margin-bottom: .5rem; }
.v2-empty-state h3 { font-weight: 600; color: #1a1a1a; margin-bottom: .25rem; }
.v2-empty-state p { font-size: .9rem; color: #666; }

/* -- V2 card overrides (inside v2 context) -- */
/* Hide old card elements not in Figma design */
.deal-card--v2 .deal-header .deal-discount,
.deal-card--v2 .deal-description,
.deal-card--v2 .deal-footer,
.deal-card--v2 .badge-featured,
.deal-card--v2 .badge-ending { display: none; }

/* Simplified header: just title + business */
.deal-card--v2 .deal-header { margin-bottom: .25rem; }
.deal-card--v2 .deal-title { font-size: 1rem; font-weight: 600; }
.deal-card--v2 .deal-business { font-size: .85rem; color: #666; }
.deal-card--v2 .deal-content { padding: 1rem; }

/* Discount badge overlay on image */
.deal-card--v2 .discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF6B35;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    z-index: 1;
}

/* Image area */
.deal-card--v2 .deal-image { height: 160px; }

/* Meta row: location + expiry */
.deal-card--v2 .deal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: #888;
    margin-top: .5rem;
}
.deal-card--v2 .deal-meta-location::before { content: "\1F4CD "; }
.deal-card--v2 .deal-meta-expiry::before { content: "\1F552 "; }

/* Card shape */
.deal-card--v2 {
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.deal-card--v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* -- V2 filter drawer -- */
.v2-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.v2-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.v2-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 5001;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s .3s;
    display: flex;
    flex-direction: column;
}
.v2-drawer.open { transform: translateY(0); visibility: visible; transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s; }
.v2-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 1.1rem;
}
.v2-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
    transition: background .15s;
}
.v2-drawer-close:hover { background: #f5f5f5; }
.v2-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}
.v2-drawer-body h4 { font-weight: 600; color: #1a1a1a; margin-bottom: .75rem; }
.v2-drawer-section { margin-bottom: 1.5rem; }
.v2-pill-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.v2-pill {
    padding: .5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.v2-pill:hover { border-color: #FF6B35; }
.v2-pill.selected {
    background: #FF6B35;
    color: #fff;
    border-color: #FF6B35;
}
.v2-drawer-footer {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #eee;
}
.v2-drawer-footer button {
    flex: 1;
    padding: .75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background .15s;
}
.v2-btn-clear {
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
}
.v2-btn-clear:hover { background: #f9f9f9; }
.v2-btn-apply {
    background: #FF6B35;
    color: #fff;
    border: 2px solid #FF6B35;
}
.v2-btn-apply:hover { background: #e55a2a; border-color: #e55a2a; }

@media (max-width: 600px) {
    #homepage-deals { grid-template-columns: 1fr; padding: 0 .75rem 2rem; }
    .hero-v2 { padding: 1rem .75rem 1.65rem; }
    .v2-deals-header { padding: 1.65rem .75rem .5rem; }
}

/* ════════════════════════════════════════════════════════════════
   Menu Drawer — right-side slide-out (mobile)
   ════════════════════════════════════════════════════════════════ */
.menu-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 5000; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.menu-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.menu-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 85vw;
    background: #fff; z-index: 5001;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s .3s;
    display: flex; flex-direction: column;
}
.menu-drawer.open {
    transform: translateX(0); visibility: visible;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s;
}

.menu-drawer-header {
    display: flex; align-items: center; gap: 12px;
    padding: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; position: relative;
}
.menu-drawer-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: #666; padding: 4px; line-height: 1;
}
.menu-drawer-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35, #FF8C61);
    color: #fff; font-weight: 700; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-drawer-name { font-weight: 600; color: #1a1a1a; }
.menu-drawer-email { font-size: .85rem; color: #6b7280; }

.menu-drawer-body { flex: 1; overflow-y: auto; padding: .5rem 0; }
.menu-drawer-nav { padding: 0 .5rem; }
.menu-drawer-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem; border-radius: 8px;
    text-decoration: none; color: #1a1a1a; transition: background .15s;
}
.menu-drawer-nav a:hover { background: #f3f4f6; }
.menu-drawer-nav a:hover .md-icon { color: #FF6B35; }
.menu-drawer-nav a:hover .md-chevron { color: #FF6B35; }

.menu-drawer-nav a.menu-drawer-logout .md-icon,
.menu-drawer-nav a.menu-drawer-logout .md-label { color: #e53e3e; font-weight: 600; }
.menu-drawer-nav a.menu-drawer-logout:hover { background: #fef2f2; }
.menu-drawer-nav a.menu-drawer-logout:hover .md-icon,
.menu-drawer-nav a.menu-drawer-logout:hover .md-label { color: #dc2626; }

.md-left { display: flex; align-items: center; flex: 1; min-width: 0; }
.md-icon {
    width: 20px; height: 20px; color: #4b5563; flex-shrink: 0;
    display: inline-flex; transition: color .15s;
}
.md-icon svg { width: 100%; height: 100%; }
.md-chevron {
    width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0;
    display: inline-flex; transition: color .15s;
}
.md-chevron svg { width: 100%; height: 100%; }
.md-label { flex: 1; margin-left: 12px; }
.md-badge {
    background: #ef4444; color: #fff; font-size: .7rem; font-weight: 700;
    padding: 1px 6px; border-radius: 999px; margin-left: 8px;
}

.menu-drawer-divider { border-top: 1px solid #e5e7eb; margin: .5rem 0; }

.menu-drawer-footer {
    padding: 1.5rem; border-top: 1px solid #e5e7eb;
    background: #f9fafb; text-align: center;
    font-size: .75rem; color: #6b7280;
}
.menu-drawer-footer p + p { color: #9ca3af; margin-top: .25rem; }

/* Join CTA — drawer highlight */
.menu-drawer-nav a.menu-drawer-join {
    background: linear-gradient(135deg, #FF6B35, #FF8C61);
    color: #fff; font-weight: 700; border-radius: 10px; margin: .25rem .5rem;
}
.menu-drawer-nav a.menu-drawer-join:hover { background: linear-gradient(135deg, #e55a24, #FF6B35); }
.menu-drawer-nav a.menu-drawer-join .md-icon { color: #fff; }
.menu-drawer-nav a.menu-drawer-join .md-label { color: #fff; }
.menu-drawer-nav a.menu-drawer-join .md-chevron { color: rgba(255,255,255,.7); }

/* Join CTA — navbar pulse */
@keyframes join-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,.5); }
    50% { box-shadow: 0 0 0 8px rgba(255,107,53,0); }
}

/* Profile Page */
.profile-page { max-width: 600px; margin: 0 auto; padding: 1rem; padding-bottom: 5rem; }
.profile-header-card {
    background: #fff; border-radius: 12px; padding: 2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 1rem; text-align: center;
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto;
    background: linear-gradient(135deg, #FF6B35, #ff8f66);
    color: #fff; font-size: 1.5rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-weight: 700; font-size: 1.25rem; margin-top: .75rem; }
.profile-email { font-size: .85rem; color: #6b7280; margin-top: .25rem; }
.profile-badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; margin-top: .5rem;
}
.profile-badge.verified { background: #d1fae5; color: #065f46; }
.profile-badge.unverified { background: #fff7ed; color: #c2410c; }
.profile-credits { font-size: .9rem; color: #4b5563; margin-top: .5rem; }

.profile-verify-banner {
    background: #fff; border-left: 4px solid #FF6B35; border-radius: 12px;
    padding: 1.5rem; margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.profile-verify-banner h3 { color: #FF6B35; font-size: 1.1rem; margin-bottom: .5rem; }
.profile-verify-banner > p { font-size: .9rem; color: #4b5563; }
.profile-verify-option-title { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.profile-verify-option-desc { font-size: .85rem; color: #6b7280; margin-bottom: .5rem; }
.profile-verify-divider { border-top: 1px solid #e5e7eb; margin: 1rem 0; }

.profile-tabs {
    display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 1rem; gap: 0;
}
.profile-tab {
    flex: 1; padding: .75rem; background: none; border: none; font-size: .95rem;
    font-weight: 600; color: #6b7280; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s;
}
.profile-tab.active { color: #FF6B35; border-bottom-color: #FF6B35; }
.profile-panel { display: none; }
.profile-panel.active { display: block; }

.profile-section-title {
    font-weight: 600; font-size: 1rem; color: #1a1a1a;
    margin: 1.25rem 0 .5rem; padding-left: .25rem;
}
.profile-section-title:first-child { margin-top: 0; }

.profile-list-item {
    background: #fff; padding: 1rem 1.25rem; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: .5rem;
    display: flex; align-items: center; gap: .75rem;
}
.profile-list-item .pli-info { flex: 1; min-width: 0; }
.profile-list-item .pli-title {
    font-weight: 600; font-size: .95rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-list-item .pli-sub { font-size: .8rem; color: #6b7280; margin-top: .15rem; }
.profile-list-item .pli-status {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; background: #f3f4f6; color: #374151;
    white-space: nowrap; flex-shrink: 0;
}
.profile-list-item a {
    font-size: .85rem; color: #FF6B35; text-decoration: none;
    font-weight: 500; white-space: nowrap; flex-shrink: 0;
}
.profile-list-item a:hover { text-decoration: underline; }
.profile-list-item a.pli-btn {
    font-size: .8rem; font-weight: 600; padding: .5rem 1rem;
    min-height: 44px; display: inline-flex; align-items: center;
    background: #FFF5F0; color: #FF6B35; border: 2px solid #FF6B35;
    border-radius: 12px; text-decoration: none; white-space: nowrap;
    transition: all 0.2s;
}
.profile-list-item a.pli-btn:hover {
    background: #FFE8DB; transform: translateY(-2px); text-decoration: none;
}
.profile-list-item a.pli-btn.btn-primary {
    background: #FF6B35; color: #fff; border-color: #FF6B35;
}
.profile-list-item a.pli-btn.btn-primary:hover {
    background: #e55a2a; border-color: #e55a2a;
}
.pli-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }

.profile-empty {
    text-align: center; padding: 2rem; color: #9ca3af; font-size: .9rem;
    background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
    margin-bottom: .5rem;
}

.profile-settings-card {
    background: #fff; padding: 1.5rem; border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 1rem;
}
.profile-settings-card h3 { font-weight: 600; margin-bottom: 1rem; font-size: 1.1rem; }
.profile-settings-card .form-group { margin-bottom: 1rem; }
.profile-settings-card label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .25rem; color: #374151; }
.profile-settings-card input[type="text"],
.profile-settings-card input[type="password"] {
    width: 100%; padding: .6rem .75rem; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: .9rem; box-sizing: border-box;
}
.profile-settings-card input[type="text"]:focus,
.profile-settings-card input[type="password"]:focus {
    outline: none; border-color: #FF6B35; box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}

.profile-info-row {
    display: flex; justify-content: space-between; padding: .75rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-row .label { color: #6b7280; font-size: .9rem; }
.profile-info-row .value { font-weight: 500; font-size: .9rem; }