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

:root {
    /* Cool Light Blue Theme - Inspired by Modern Design */
    --primary-color: #2D6CDF;
    --primary-dark: #1E4FBF;
    --primary-light: #5B8EF5;
    --primary-lighter: #7EA9FF;
    --accent-color: #6B9FFF;
    --accent-pink: #FFE5F1;
    --accent-purple: #E8DEFF;
    --success-color: #00D4AA;
    --warning-color: #FFB84D;
    --danger-color: #FF6B7A;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --text-light: #D1D5DB;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --bg-blue-light: #F0F7FF;
    --bg-pink-light: #FFF5F9;
    --bg-cream: #FFFBF5;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #2D6CDF 0%, #5B8EF5 100%);
    --gradient-hero: linear-gradient(135deg, #F0F7FF 0%, #E8F1FF 50%, #FFFFFF 100%);
    --gradient-light: linear-gradient(135deg, #F9FEFF 0%, #F0F7FF 100%);
    --gradient-accent: linear-gradient(135deg, #1E4FBF 0%, #2D6CDF 100%);
    --gradient-pink: linear-gradient(135deg, #FFE5F1 0%, #FFF5F9 100%);
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-hero);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* Better mobile touch handling */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    touch-action: manipulation;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -5%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 229, 241, 0.2) 0%, rgba(255, 229, 241, 0) 65%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative Corner Graphics - Money Saving Vibe */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        /* Top Left - Security Shield */
        radial-gradient(ellipse at 8% 15%, rgba(91, 142, 245, 0.08) 0%, transparent 12%),
        radial-gradient(circle at 6% 12%, rgba(45, 108, 223, 0.06) 0%, transparent 8%),
        /* Top Right - Shopping Bag */
        radial-gradient(ellipse at 92% 18%, rgba(255, 229, 241, 0.12) 0%, transparent 10%),
        radial-gradient(circle at 94% 15%, rgba(255, 184, 77, 0.08) 0%, transparent 7%),
        /* Bottom Left - Coins Stack */
        radial-gradient(circle at 8% 92%, rgba(91, 142, 245, 0.15) 0%, transparent 8%),
        radial-gradient(circle at 6% 94%, rgba(45, 108, 223, 0.12) 0%, transparent 6%),
        radial-gradient(circle at 10% 94%, rgba(107, 159, 255, 0.1) 0%, transparent 5%),
        radial-gradient(circle at 4% 90%, rgba(0, 163, 224, 0.08) 0%, transparent 7%),
        /* Dollar symbols effect */
        radial-gradient(ellipse at 15% 88%, rgba(91, 142, 245, 0.06) 0%, transparent 12%),
        radial-gradient(ellipse at 12% 96%, rgba(45, 108, 223, 0.05) 0%, transparent 10%),
        /* Bottom Right - Savings Tag */
        radial-gradient(circle at 92% 93%, rgba(255, 229, 241, 0.2) 0%, transparent 9%),
        radial-gradient(circle at 94% 91%, rgba(255, 184, 77, 0.15) 0%, transparent 7%),
        radial-gradient(ellipse at 88% 95%, rgba(91, 142, 245, 0.12) 0%, transparent 11%),
        radial-gradient(circle at 96% 95%, rgba(107, 159, 255, 0.1) 0%, transparent 6%),
        radial-gradient(ellipse at 85% 90%, rgba(255, 229, 241, 0.08) 0%, transparent 13%);
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page.active {
    display: block;
}

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

/* Landing Page */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
}

/* Bottom Left Corner - Dollar Sign Decoration */
.hero::before {
    content: '$';
    position: absolute;
    bottom: 8%;
    left: 5%;
    font-family: 'Poppins', sans-serif;
    font-size: 10rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(91, 142, 245, 0.3) 0%, rgba(45, 108, 223, 0.18) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* Bottom Right Corner - Percentage Decoration */
.hero::after {
    content: '%';
    position: absolute;
    bottom: 6%;
    right: 6%;
    font-family: 'Poppins', sans-serif;
    font-size: 12rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255, 229, 241, 0.4) 0%, rgba(255, 184, 77, 0.25) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.logo-landing {
    position: absolute;
    top: 2rem;
    left: 2rem;
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-landing:hover {
    transform: scale(1.05);
}

/* Decorative icons next to title */
.logo::before {
    content: '🛡️';
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    font-size: 2rem;
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(0.1) brightness(1.05);
    z-index: 1;
}

.logo::after {
    content: '🛍️';
    position: absolute;
    right: -3rem;
    top: 50%;
    transform: translateY(-50%) rotate(12deg);
    font-size: 2rem;
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(0.1) brightness(1.05);
    z-index: 1;
}

/* Removed floating tags - cleaner look */

.hero-content {
    max-width: 750px;
    text-align: center;
    animation: floatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1rem 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 3.35rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.tagline {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.stats {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 2.35rem;
    background: white;
    border-radius: 19px;
    border: 1px solid var(--border-light);
    min-width: 165px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible;
}

/* Sparkle effect on stats */
.stat::before {
    content: '✦';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.2rem;
    color: var(--primary-light);
    opacity: 0;
    transition: all 0.3s ease;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.stat:hover::before {
    opacity: 1;
    transform: scale(1.3) rotate(180deg);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.925rem;
    color: var(--text-secondary);
    margin-top: 0.575rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
    width: 100%;
    max-width: 410px;
    margin-left: auto;
    margin-right: auto;
}

.btn-oauth {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    width: 100%;
    /* Better mobile touch */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-height: 50px; /* iOS recommended minimum touch target */
}

.btn-oauth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: var(--bg-blue-light);
}

.btn-oauth:active {
    transform: translateY(-1px);
}

.btn-oauth svg {
    flex-shrink: 0;
}

.btn-oauth.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-google:hover {
    background: var(--bg-blue-light);
}

.btn-primary {
    font-family: 'Open Sans', sans-serif;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.privacy-note {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.lock-icon {
    stroke: var(--text-tertiary);
}

.features {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.875rem 1.35rem;
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.feature:hover {
    background: var(--bg-blue-light);
    border-color: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

/* Value Proposition Cards */
.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.value-prop-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.value-prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.value-prop-card:hover::before {
    opacity: 1;
}

.value-prop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-lighter);
}

.value-prop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-blue-light);
    border-radius: 12px;
    margin: 0 auto 0.875rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.value-prop-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}

.value-prop-card:hover .value-prop-icon {
    background: var(--gradient-primary);
    transform: scale(1.05);
}

.value-prop-card:hover .value-prop-icon svg {
    stroke: white;
}

.value-prop-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.value-prop-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 1;
    margin: 0;
}

.powered-by-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.powered-by-landing:hover {
    color: var(--text-secondary);
}

.powered-logo-landing {
    height: 30px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(40%) sepia(81%) saturate(1743%) hue-rotate(207deg) brightness(95%) contrast(91%);
}

.powered-by-landing:hover .powered-logo-landing {
    opacity: 0.9;
    transform: scale(1.05);
}


/* Loading Page */
.loading-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 5px solid var(--bg-tertiary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2.5rem;
}

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

.loading-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.loading-note {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 1rem;
    font-style: italic;
}

/* Results Page */
.results-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-small {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.logo-small:hover {
    transform: scale(1.02);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.user-email {
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.user-email::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.powered-by:hover {
    color: var(--text-primary);
}

.powered-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: brightness(0) saturate(100%) invert(40%) sepia(81%) saturate(1743%) hue-rotate(207deg) brightness(95%) contrast(91%);
}

.powered-by:hover .powered-logo {
    transform: scale(1.05);
    filter: brightness(0) saturate(100%) invert(33%) sepia(88%) saturate(2025%) hue-rotate(209deg) brightness(92%) contrast(93%);
}

.btn-share {
    font-family: 'Open Sans', sans-serif;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-share:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-share:active {
    transform: translateY(0);
}

.btn-share svg {
    flex-shrink: 0;
}

.btn-logout {
    font-family: 'Open Sans', sans-serif;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
    white-space: nowrap;
}

.btn-logout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.35);
}

.btn-logout:active {
    transform: translateY(0);
}

.results-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
    background: var(--bg-secondary);
    min-height: calc(100vh - 100px);
}

.summary {
    margin-bottom: 1.5rem;
}

.summary h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Mobile-specific: Force 3 columns on small screens */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.summary-card {
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid var(--primary-dark);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.summary-card:hover::before {
    opacity: 1;
}

.summary-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-left-width: 4px;
}

.summary-icon {
    stroke: var(--primary-dark);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.summary-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.summary-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.summary-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Search wrapper - separate row above filters */
.search-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

/* Filters container - all filters in one row on desktop */
.filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Filter group and buttons should be inline */
.filters > .filter-group {
    flex: 0 0 auto;
}

.filters > .filter-btn {
    flex: 0 0 auto;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0 2.5rem 0 2.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    height: 48px;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(45, 108, 223, 0.15);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-clear svg {
    stroke: white;
}

.search-clear:hover {
    background: var(--primary-color);
}

/* Sort select is now inline with filters - no container/label needed */

.sort-select {
    padding: 0 2rem 0 0.75rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
    box-shadow: var(--shadow-sm);
    height: 48px;
    box-sizing: border-box;
    background-image: 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='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.sort-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(45, 108, 223, 0.15);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Category Dropdown (Native Select) */
.category-dropdown {
    font-family: 'Open Sans', sans-serif !important;
    padding: 0.75rem 2rem 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    border: 1.5px solid var(--border-color) !important;
    background: white !important;
    color: var(--text-secondary) !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: 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='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-color: white !important;
    min-width: 200px;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    margin: 0 !important;
    display: inline-block !important;
}

.category-dropdown:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
}

.category-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    min-width: 200px;
}

.custom-dropdown-trigger {
    font-family: 'Open Sans', sans-serif;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.custom-dropdown-trigger svg {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.custom-dropdown.open .custom-dropdown-trigger svg {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.custom-dropdown-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
}

.custom-dropdown-trigger:hover svg {
    color: var(--primary-color);
}

.custom-dropdown.open .custom-dropdown-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.custom-dropdown.open .custom-dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
}

.custom-dropdown-option {
    padding: 0.875rem 1.25rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dropdown-option:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-color);
}

.custom-dropdown-option.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    color: var(--primary-color);
    font-weight: 600;
}

.custom-dropdown-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.custom-dropdown-option:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Custom scrollbar for dropdown menu */
.custom-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.filter-btn {
    font-family: 'Open Sans', sans-serif;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    height: 48px;
    line-height: 1.5;
    box-sizing: border-box;
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
    width: auto;
}

.filter-btn svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn:hover svg {
    stroke: var(--primary-dark);
}

.filter-btn > * {
    position: relative;
    z-index: 1;
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 2px 8px rgba(45, 108, 223, 0.15);
    transform: translateY(-1px);
}

.filter-btn.active svg {
    stroke: white !important;
}

.filter-btn.active:hover {
    color: white !important;
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(45, 108, 223, 0.2);
}

.filter-btn.active::before {
    opacity: 0;
}

.deals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: fit-content;
}

.pagination-btn {
    font-family: 'Open Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: white;
    border: 1.5px solid var(--primary-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gradient-primary);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 79, 191, 0.3);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.pagination-btn svg {
    flex-shrink: 0;
}

.pagination-info {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.page-selector {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: white;
    border: 1.5px solid var(--primary-dark);
    border-radius: 12px;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231E4FBF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.page-selector:hover {
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    color: white;
    border-color: var(--primary-dark);
}

.page-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.2);
}

.pagination-total {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.deal-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid var(--border-light);
    max-height: 550px;
    display: flex;
    flex-direction: column;
}

/* Card Menu */
.deal-card-menu {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem; /* Always at top-right */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    cursor: pointer;
    z-index: 25;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.deal-card-menu:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.deal-card-menu svg {
    stroke: var(--text-secondary);
    transition: stroke 0.2s ease;
}

.deal-card-menu:hover svg {
    stroke: var(--primary-color);
}

.deal-card-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
}

.deal-card-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-option {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.menu-option:last-child {
    border-bottom: none;
}

.menu-option:hover {
    background: var(--bg-blue-light);
    color: var(--primary-color);
}

.menu-option:active {
    background: var(--bg-tertiary);
}

@media (max-width: 768px) {
    .deal-card {
        max-height: 360px;
        border-radius: 12px;
    }
}

.deal-card > * {
    flex-shrink: 0;
}

.deal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.deal-body::-webkit-scrollbar {
    width: 6px;
}

.deal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.deal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.deal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.deal-card[style*="cursor: pointer"]:hover {
    border-color: var(--primary-color);
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deal-card:hover::before {
    opacity: 1;
}

.deal-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--primary-lighter);
}

.deal-card.expiring-soon {
    border: 2px solid rgba(255, 184, 77, 0.4);
    background: linear-gradient(to bottom, rgba(255, 250, 230, 0.5) 0%, white 25%);
}

.deal-header {
    padding: 1.25rem;
    padding-right: 3rem;
    background: var(--gradient-accent);
    color: white;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .deal-header {
        padding: 0.75rem;
        padding-right: 2.5rem;
    }
}

.deal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
}

.deal-merchant {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
    max-width: 100%;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .deal-merchant {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
}

.deal-category {
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.6rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .deal-category {
        font-size: 0.55rem;
        padding: 0.3rem 0.5rem;
        gap: 0.2rem;
    }
}

.category-icon {
    stroke: currentColor;
    flex-shrink: 0;
}

.deal-body {
    padding: 1rem;
}

@media (max-width: 768px) {
    .deal-body {
        padding: 0.625rem;
    }
}

.sale-campaign {
    display: inline-block;
    background: var(--gradient-pink);
    color: var(--primary-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 16px;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .sale-campaign {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.25rem;
    }
}

.sale-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-blue-light);
    color: var(--primary-color);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 14px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--primary-lighter);
}

@media (max-width: 768px) {
    .sale-type {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.375rem;
    }
}

.sale-type svg {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.deal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .deal-title {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
        line-height: 1.3;
    }
}

.deal-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 768px) {
    .deal-description {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        line-height: 1.35;
    }
}

/* Products Section */
.products-section {
    background: var(--bg-blue-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem;
    margin: 0.75rem 0;
}

@media (max-width: 768px) {
    .products-section {
        padding: 0.625rem;
        margin: 0.5rem 0;
        border-radius: 8px;
    }
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.section-label svg {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.product-item svg {
    stroke: var(--success-color);
    flex-shrink: 0;
}

/* Codes Section */
.codes-section {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .codes-section {
        margin-top: 0.5rem;
    }
}

.discount-group {
    margin-bottom: 0.75rem;
    padding: 0.625rem;
    background: rgba(45, 108, 223, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .discount-group {
        margin-bottom: 0.5rem;
        padding: 0.5rem;
    }
}

.discount-group:last-child {
    margin-bottom: 0;
}

.discount-brand {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.discount-brand::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.discount-products {
    margin-top: 0.5rem;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.discount-product-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    background: rgba(45, 108, 223, 0.05);
    border-radius: 6px;
    font-weight: 500;
}

.discount-product-item svg {
    stroke: var(--primary-color);
    flex-shrink: 0;
    opacity: 0.7;
}

.product-name {
    flex: 1;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    font-weight: 600;
}

.original-price {
    color: var(--text-tertiary);
    text-decoration: line-through;
    font-size: 0.75rem;
}

.discounted-price {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 700;
}

/* Discount metadata */
.discount-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(45, 108, 223, 0.03);
    border-radius: 8px;
}

.discount-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.625rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    font-weight: 500;
}

.discount-meta svg {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.discount-meta.stackable-no svg {
    stroke: var(--danger-color);
}

.discount-meta.stackable-yes svg {
    stroke: var(--success-color);
}

.discount-meta.stackable-no {
    color: var(--danger-color);
}

.discount-meta.stackable-yes {
    color: var(--success-color);
}

.discount-meta.applies-to {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(147, 197, 253, 0.3) 100%);
    border-color: var(--primary-light);
    font-weight: 600;
    max-width: 100%;
    word-break: break-word;
}

.discount-meta.applies-to svg {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.discount-meta.bogo-info {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.3);
    color: #7c3aed;
    font-weight: 600;
}

.discount-meta.bogo-info svg {
    stroke: #7c3aed;
}

.deal-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deal-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.deal-detail-icon {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.deal-code {
    background: var(--gradient-light);
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    border: 2px dashed var(--primary-lighter);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 0.375rem;
    user-select: none;
}

@media (max-width: 768px) {
    .deal-code {
        padding: 0.5rem 0.625rem;
        gap: 0.375rem;
        margin-top: 0.25rem;
    }
}

.code-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    font-size: 1rem;
    flex: 1;
}

@media (max-width: 768px) {
    .code-text {
        font-size: 0.875rem;
        letter-spacing: 0.05em;
    }
}

.code-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    white-space: nowrap;
}

.deal-code::before {
    content: 'Click to copy';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Open Sans', sans-serif;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.deal-code:hover::before {
    opacity: 1;
}

.deal-code:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.deal-code:hover .code-text {
    color: white;
}

.deal-code:hover .code-value {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.deal-code:active {
    transform: scale(0.98);
}

.deal-code:hover .code-icon {
    stroke: white;
}

.code-icon {
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
    flex-shrink: 0;
}

.deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
    justify-content: center;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
}

@media (max-width: 768px) {
    .deal-cta {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        margin-top: 0.5rem;
    }
}

.deal-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.deal-cta svg {
    stroke: white;
}

.deal-footer {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .deal-footer {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

.deal-expiry {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .deal-expiry {
        font-size: 0.75rem;
    }
}

.deal-expiry.warning {
    color: var(--warning-color);
    font-weight: 600;
}

.deal-expiry.danger {
    color: var(--danger-color);
    font-weight: 600;
}

.deal-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--success-color);
}

.deal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    margin-top: 0.5rem;
    justify-content: flex-start;
}

.expiring-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--warning-color) 0%, #FF6B35 100%);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.expiring-badge svg {
    width: 11px;
    height: 11px;
}

@media (max-width: 768px) {
    .expiring-badge {
        padding: 0.3rem 0.5rem;
        font-size: 0.55rem;
        gap: 0.2rem;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 16px rgba(255, 140, 66, 0.6), 0 3px 6px rgba(0, 0, 0, 0.15);
    }
}

.expiring-badge svg {
    stroke: white;
    animation: rotate 2s linear infinite;
}

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

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.subscription-badge svg {
    width: 11px;
    height: 11px;
}

@media (max-width: 768px) {
    .subscription-badge {
        padding: 0.3rem 0.5rem;
        font-size: 0.55rem;
        gap: 0.2rem;
    }
}

.subscription-badge svg {
    stroke: white;
}

.relevant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .relevant-badge {
        padding: 0.3rem 0.5rem;
        font-size: 0.55rem;
        gap: 0.2rem;
    }
}

.relevant-badge svg {
    fill: white;
    width: 11px;
    height: 11px;
}


.no-deals {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.no-deals-icon {
    stroke: var(--text-secondary);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.no-deals h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.no-deals p {
    color: var(--text-secondary);
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn-oauth:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .btn-oauth:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
.btn-primary:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}
    
    .btn-primary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .deal-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    }
    
    .stat:hover {
        transform: none;
    }
    
    .feature:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem;
    }

    /* Smaller corner decorations on mobile */
    .hero::before {
        font-size: 5rem;
        bottom: 5%;
        left: 3%;
        opacity: 0.7;
    }

    .hero::after {
        font-size: 6rem;
        bottom: 4%;
        right: 3%;
        opacity: 0.7;
    }

    .logo-landing {
        top: 1rem;
        left: 1rem;
        height: 35px;
        max-width: 120px;
    }

    /* Hide decorative icons next to title on mobile */
    .logo::before,
    .logo::after {
        display: none;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .logo {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .logo-small {
        height: 60px;
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    .tagline {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .auth-buttons {
        max-width: 100%;
        flex-direction: column;
        margin-bottom: 1.75rem;
    }

    .btn-oauth {
        width: 100%;
        padding: 1.125rem 2rem; /* Slightly larger for easier tapping */
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 2.5rem;
    }

    .stats {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .stat {
        min-width: 120px;
        padding: 1.25rem 1.5rem;
    }

    .privacy-note {
        margin-bottom: 2rem;
        font-size: 0.8125rem;
    }

    .features {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .value-props {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .value-prop-card {
        padding: 1.75rem 1.5rem;
    }

    .testimonial-carousel {
        margin-bottom: 2rem;
    }

    .deals-container {
        grid-template-columns: 1fr;
    }

    .summary {
        margin-bottom: 1rem;
    }

    .summary-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.375rem;
    }
    
    .summary h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-card {
        padding: 0.5rem 0.375rem;
        gap: 0.375rem;
        flex-direction: column;
        text-align: center;
        min-width: 0;
        border-left: none;
        border-radius: 12px;
    }
    
    .summary-card:hover {
        border-left-width: 0;
        transform: translateY(-2px);
    }
    
    .summary-icon {
        width: 20px;
        height: 20px;
        margin: 0 auto;
    }
    
    .summary-info {
        align-items: center;
    }
    
    .summary-number {
        font-size: 0.9375rem;
        line-height: 1.2;
    }
    
    .summary-label {
        font-size: 0.5625rem;
        line-height: 1.2;
        text-align: center;
    }

    .header-content {
        padding: 0.75rem 0.75rem;
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        order: 2;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
        padding: 0.375rem 0.5rem;
        gap: 0.375rem;
    }

    .user-email {
        font-size: 0.75rem;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-email::before {
        width: 5px;
        height: 5px;
    }

    .btn-share {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
        min-height: 32px;
        white-space: nowrap;
        gap: 0.25rem;
        flex-shrink: 0;
    }
    
    .btn-share svg {
        width: 12px;
        height: 12px;
    }

    .btn-logout {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
        min-height: 32px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .powered-by {
        justify-content: center;
        width: 100%;
        font-size: 0.625rem;
        gap: 0.25rem;
    }
    
    .powered-logo {
        height: 20px;
        filter: brightness(0) saturate(100%) invert(40%) sepia(81%) saturate(1743%) hue-rotate(207deg) brightness(95%) contrast(91%);
    }

    .results-content {
        padding: 1.5rem 1rem;
    }
    
    .summary {
        margin-bottom: 1.5rem;
    }
    
    /* Filters - search/sort stacked, then 2x2 grid for category/buttons */
    /* Search wrapper stays full width on mobile */
    .search-wrapper {
        margin-bottom: 0.75rem;
    }
    
    .search-container {
        max-width: 100%;
        min-width: 100%;
        flex: 1;
    }
    
    /* Filters in horizontal scrollable carousel on mobile */
    .filters {
        gap: 0.5rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding-top: 0.25rem;
        padding-bottom: 0.5rem;
    }
    
    /* Hide scrollbar for Chrome/Safari */
    .filters::-webkit-scrollbar {
        display: none;
    }
    
    /* All filter elements shrink to content on mobile */
    .filters > .filter-group,
    .filters > .filter-btn {
        flex: 0 0 auto;
    }
    
    .search-input {
        font-size: 0.6875rem;
        padding: 0 2.25rem 0 2.25rem;
        height: 32px;
    }
    
    .sort-select {
        font-size: 0.6875rem;
        padding: 0 1.25rem 0 0.5rem;
        flex: 0 0 auto;
        min-width: 120px;
        width: auto;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        border-radius: 8px;
        border-width: 1.5px;
        background-position: right 0.35rem center;
        background-size: 10px 10px;
        box-sizing: border-box;
    }
    
    /* Make filter-group inline in carousel */
    .filter-group {
        display: flex;
        flex: 0 0 auto;
    }
    
    .category-dropdown {
        padding: 0.375rem 1.25rem 0.375rem 0.5rem !important;
        font-size: 0.6875rem !important;
        min-width: 120px !important;
        width: auto !important;
        flex: 0 0 auto !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        line-height: normal !important;
        border-radius: 8px !important;
        border-width: 1.5px !important;
        background-position: right 0.35rem center !important;
        background-size: 10px 10px !important;
        box-sizing: border-box !important;
    }
    
    .filter-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
        min-height: 32px;
        height: 32px;
        line-height: 1.2;
        white-space: nowrap;
        border-radius: 8px;
        border-width: 1.5px;
        gap: 0.25rem;
        box-sizing: border-box;
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
    }
    
    .filter-btn svg {
        width: 11px;
        height: 11px;
    }
    
    /* Make pagination more compact on mobile */
    .pagination-controls {
        flex-direction: row;
        gap: 0.5rem;
        margin: 1rem auto;
        padding: 0.5rem;
        max-width: 100%;
        width: 100%;
        justify-content: space-between;
    }
    
    .pagination-btn {
        padding: 0.5rem;
        font-size: 0;
        min-height: 36px;
        min-width: 36px;
        flex: 0 0 auto;
        gap: 0;
        justify-content: center;
    }
    
    .pagination-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .pagination-info {
        font-size: 0.75rem;
        min-width: auto;
        white-space: nowrap;
        flex: 1 1 auto;
        gap: 0.25rem;
        flex-wrap: nowrap;
        justify-content: center;
        flex-direction: column;
    }
    
    .page-selector {
        font-size: 0.75rem;
        padding: 0.25rem 0.35rem;
        padding-right: 1.25rem;
        background-size: 10px;
        min-width: 80px;
    }
    
    .page-selector:hover {
        background-size: 10px;
    }
    
    .pagination-total {
        font-size: 0.625rem;
        white-space: nowrap;
    }
}

/* Copied notification */
.copied-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--success-color) 0%, #008C61 100%);
    color: white;
    padding: 1.125rem 1.75rem;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 184, 124, 0.3), 0 6px 12px rgba(0, 0, 0, 0.15);
    animation: slideInBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.copied-notification::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: 700;
}

/* New deals notification */
.new-deals-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1.125rem 1.75rem;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.4), 0 6px 12px rgba(0, 0, 0, 0.15);
    animation: slideInBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.new-deals-notification svg {
    stroke: white;
    flex-shrink: 0;
}

@keyframes slideInBounce {
    from {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Error message */
.error-message {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--danger-color);
    padding: 1rem 2rem;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease;
    z-index: 1000;
    font-weight: 600;
    border: 2px solid var(--danger-color);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Connection error page */
.connection-error {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.connection-error h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
}

.connection-error p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.connection-error .btn-primary {
    margin: 0 auto;
}


/* Testimonials Carousel */
.testimonial-carousel {
    max-width: 615px;
    margin: 0 auto 2.25rem;
    position: relative;
    min-height: 78px;
}

.testimonial-slide {
    display: none;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 1.25rem 1.75rem;
    animation: fadeSlide 0.5s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.testimonial-slide.active {
    display: block;
}

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

.testimonial-slide p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: var(--primary-lighter);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 4rem;
    padding: 0;
    text-align: center;
}

.privacy-notice p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.6);
    margin: 0;
    font-weight: 400;
}

.privacy-notice a {
    color: rgba(15, 23, 42, 0.7);
    text-decoration: underline;
    text-decoration-color: rgba(15, 23, 42, 0.3);
    transition: all 0.2s ease;
}

.privacy-notice a:hover {
    color: rgba(15, 23, 42, 0.9);
    text-decoration-color: rgba(15, 23, 42, 0.5);
}

.opt-out-btn {
    display: inline;
    padding: 0;
    font-size: 0.75rem;
    background: none;
    color: rgba(15, 23, 42, 0.7);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: rgba(15, 23, 42, 0.3);
}

.opt-out-btn:hover {
    color: rgba(15, 23, 42, 0.9);
    text-decoration-color: rgba(15, 23, 42, 0.5);
}

.opt-out-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    text-decoration: none;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.modal-close:hover {
    background: var(--bg-tertiary);
}

.modal-close svg {
    stroke: var(--text-secondary);
}

.modal-close:hover svg {
    stroke: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.report-dropdown {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: 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='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    margin-top: 0.5rem;
}

.report-dropdown:hover {
    border-color: var(--primary-color);
}

.report-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
}

.report-comment-container {
    margin-top: 1rem;
    animation: fadeIn 0.2s ease;
}

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

.report-comment-label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.report-comment-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: 10px;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.report-comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
}

.report-comment-input::placeholder {
    color: var(--text-tertiary);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-secondary {
    font-family: 'Open Sans', sans-serif;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

.modal-footer .btn-primary {
    font-family: 'Open Sans', sans-serif;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-footer .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    font-family: 'Open Sans', sans-serif;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--danger-color) 0%, #E53E3E 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 122, 0.4);
}

@media (max-width: 768px) {
    .deal-card-menu {
        top: 0.75rem;
        right: 0.75rem; /* Always at top-right on mobile */
        width: 28px;
        height: 28px;
    }
    
    
    .deal-card-menu svg {
        width: 16px;
        height: 16px;
    }
    
    .deal-card-menu-dropdown {
        min-width: 160px;
        right: -0.5rem;
    }
    
    .menu-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }
    
    .modal-header h2 {
        font-size: 1.125rem;
    }
}



