/* ==========================================================================
   CSS Variables & Theme Setup (Material Inspired)
   ========================================================================== */
:root {
    /* Light Mode Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --danger-color: #ef4444;
    --star-color: #fbbf24;
    --skeleton-base: #e2e8f0;
    --skeleton-highlight: #f8fafc;
    
    /* Typography */
    --font-family: 'Roboto', sans-serif;
    
    /* Shadows (Material Design) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 70px;
    --border-radius: 12px;
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --skeleton-base: #1e293b;
    --skeleton-highlight: #334155;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto; /* Performance boost */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bg-soft {
    background-color: rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .bg-soft {
    background-color: rgba(255, 255, 255, 0.02);
}

.no-js-banner {
    background: var(--danger-color);
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: bold;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-family: inherit;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation (Sticky)
   ========================================================================== */
.header {
    height: var(--header-height);
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-base);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--primary-color);
    font-size: 2rem;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   Hero Section & Search Box
   ========================================================================== */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(16,185,129,0.05) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.search-box-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background-color: var(--surface-color);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-fast);
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

.search-icon {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.search-box .btn {
    border-radius: 40px;
    padding: 0.75rem 2rem;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 10;
    text-align: left;
    overflow: hidden;
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color var(--transition-fast);
}

.suggestion-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.suggestion-item .material-icons-round {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ==========================================================================
   Animated Counters
   ========================================================================== */
.counters-section {
    padding: 3rem 0;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Featured Slider
   ========================================================================== */
.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 1rem;
    flex: 1;
}

.slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.slide {
    min-width: calc(33.333% - 1.33rem);
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.slider-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    z-index: 2;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 992px) {
    .slide {
        min-width: calc(50% - 1rem);
    }
}
@media (max-width: 576px) {
    .slide {
        min-width: 100%;
    }
    .slider-btn {
        display: none; /* Rely on swipe for mobile */
    }
}

/* ==========================================================================
   Category Filter
   ========================================================================== */
.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ==========================================================================
   Grid System
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Cards (Reviews & Content)
   ========================================================================== */
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card.hide {
    display: none;
}

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--border-color);
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f1f5f9;
}

.platform-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.platform-badge .material-icons-round {
    font-size: 1rem;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.star {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.star.active {
    color: var(--star-color);
}

.rating-text {
    margin-left: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--text-primary);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Skeleton Loading Cards
   ========================================================================== */
.skeleton {
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--skeleton-base);
}

.skeleton-text {
    height: 1.2rem;
    background-color: var(--skeleton-base);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }

@keyframes pulse {
    0% { background-color: var(--skeleton-base); }
    50% { background-color: var(--skeleton-highlight); }
    100% { background-color: var(--skeleton-base); }
}

/* ==========================================================================
   Affiliate Coupon Cards
   ========================================================================== */
.affiliate-card {
    border-top: 4px solid var(--primary-color);
    position: relative;
}

.coupon-badges {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
}

.verified-badge {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.verified-badge .material-icons-round {
    font-size: 1rem;
}

.exclusive-badge {
    background-color: #f59e0b;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.coupon-header {
    background-color: rgba(37, 99, 235, 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
}

[data-theme="dark"] .coupon-header {
    background-color: rgba(37, 99, 235, 0.1);
}

.store-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.store-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
}

.discount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.store-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.coupon-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.coupon-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.coupon-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.coupon-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

.coupon-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.coupon-meta .material-icons-round {
    font-size: 1.1rem;
}

.success-rate {
    color: var(--secondary-color);
    font-weight: 500;
}

.coupon-action {
    display: flex;
    gap: 1rem;
}

/* Code Reveal Action */
.code-reveal-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 52px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    overflow: hidden;
    transition: border-color var(--transition-fast);
    width: 100%;
}

.code-reveal-wrapper:hover {
    border-color: var(--primary-color);
}

.hidden-code-mask {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.show-code-btn {
    border: none;
    border-radius: 0;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.show-code-btn:hover {
    background-color: var(--primary-hover);
}

/* State after reveal */
.code-reveal-wrapper.revealed {
    border: 2px solid var(--secondary-color);
    background-color: rgba(16, 185, 129, 0.05);
}

.code-reveal-wrapper.revealed .hidden-code-mask {
    color: var(--text-primary);
    letter-spacing: 1px;
}

.code-reveal-wrapper.revealed .show-code-btn {
    background-color: var(--secondary-color);
}

.get-deal-btn {
    height: 52px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.hiding {
    animation: toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: rgba(0,0,0,0.02);
}
[data-theme="dark"] .faq-question:hover { background-color: rgba(255,255,255,0.02); }

.faq-question .material-icons-round {
    transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .material-icons-round {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px; /* Arbitrary large number */
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ==========================================================================
   Newsletter Box
   ========================================================================== */
.newsletter-box {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    gap: 2rem;
}

.newsletter-text h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    align-items: flex-start;
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input.error {
    border-color: #ffb3b3;
}

.error-message {
    color: #ffb3b3;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.newsletter-form .btn {
    background-color: #1e293b;
    color: #fff;
    height: 52px; /* Match input height */
}
.newsletter-form .btn:hover {
    background-color: #0f172a;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    padding: 1.5rem 1.5rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumbs li:not(:last-child)::after {
    content: '\e5cc'; /* chevron_right in material icons */
    font-family: 'Material Icons Round';
    margin: 0 0.5rem;
    vertical-align: middle;
}
.breadcrumbs a {
    color: var(--primary-color);
}
.breadcrumbs [aria-current="page"] {
    color: var(--text-secondary);
}

/* ==========================================================================
   Back To Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}
.cookie-actions .btn {
    flex: 1;
    padding: 0.5rem;
}

/* ==========================================================================
   Loader / Loading Animation
   ========================================================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

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

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Reveal API Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent layout shift on images */
picture, img {
    display: block;
    max-width: 100%;
    height: auto;
}
.card-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* ==========================================================================
   Responsive / Mobile First Overrides
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--surface-color);
        transition: left var(--transition-base);
        padding: 2rem;
        box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        font-size: 1.25rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 12px;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 1rem;
    }

    .search-box input {
        background-color: var(--surface-color);
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        width: 100%;
    }

    .search-icon {
        display: none;
    }

    .search-box .btn {
        border-radius: 8px;
        width: 100%;
    }
    
    .newsletter-box {
        padding: 2.5rem 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }

    .coupon-action {
        flex-direction: column;
    }
    
    .cookie-banner {
        left: 10px;
        right: 10px;
        max-width: none;
        width: calc(100% - 20px);
        bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .counters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Review Page Styles
   ========================================================================== */
.review-page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sticky-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .review-page-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .sticky-wrapper {
        position: static;
    }
}

/* Review Hero */
.review-hero {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.app-icon-wrapper {
    flex-shrink: 0;
}

.app-icon {
    border-radius: 25%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.review-title {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    color: var(--text-primary);
}

.review-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.review-meta-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.update-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.update-date .material-icons-round {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .review-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .review-meta-row {
        justify-content: center;
    }
    .badges {
        justify-content: center;
    }
}

/* Download Section */
.download-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.download-btn .material-icons-round {
    font-size: 1.25rem;
}

/* Two Column Layout */
.two-column-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.main-column {
    flex: 1;
    min-width: 0;
}

.side-column {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 850px) {
    .two-column-layout {
        flex-direction: column;
    }
    .side-column {
        width: 100%;
    }
}

/* Quick Info Table */
.quick-info-box {
    padding: 1.5rem;
}

.quick-info-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quick-info-table {
    width: 100%;
    border-collapse: collapse;
}

.quick-info-table th, .quick-info-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.quick-info-table tr:last-child th,
.quick-info-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.quick-info-table th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    width: 40%;
}

.quick-info-table td {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* Review Sections */
.review-section {
    margin-bottom: 3rem;
}

.review-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.review-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Affiliate Box */
.affiliate-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
    margin-bottom: 3rem;
}

.affiliate-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.affiliate-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: var(--surface-color);
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.affiliate-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.affiliate-content p {
    margin: 0;
    font-size: 0.95rem;
}

.affiliate-box-action {
    max-width: 400px;
}

/* Screenshots Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    cursor: zoom-in;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.gallery-img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: #000;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.video-placeholder:hover img {
    opacity: 0.5;
}

.play-icon {
    position: absolute;
    font-size: 5rem;
    color: #fff;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform var(--transition-fast);
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Pros and Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.pros-card, .cons-card {
    padding: 1.5rem;
}

.pros-card {
    border-top: 4px solid var(--secondary-color);
}

.cons-card {
    border-top: 4px solid var(--danger-color);
}

.pros-card h3, .cons-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

/* Detailed Review Typography */
.detailed-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detailed-content p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

/* Rating Breakdown */
.rating-breakdown-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-label {
    width: 120px;
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.progress-fill.bg-success {
    background-color: var(--secondary-color);
}

.rating-score {
    width: 30px;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.author-img {
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.author-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-info h4 span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.author-bio {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.author-socials {
    display: flex;
    gap: 0.75rem;
}

.author-socials a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.author-socials a:hover {
    color: var(--primary-color);
}

/* Comments Section */
.comment-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-footer {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 600px) {
    .comment-form-footer {
        grid-template-columns: 1fr;
    }
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }

.comment-body {
    flex: 1;
    background: var(--surface-color);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-body p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.reply-btn:hover {
    text-decoration: underline;
}

/* Sidebar Widgets */
.widget {
    padding: 1.5rem;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.widget-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-article-list li {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}

.widget-article-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-article-list a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.widget-article-list a:hover {
    color: var(--primary-color);
}

.widget-deal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    position: relative;
}

.deal-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--danger-color);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(10deg);
}

.widget-deal h4 {
    margin: 1rem 0 0 0;
    font-size: 1.25rem;
}

.widget-deal p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.widget-newsletter p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
    background-color: rgba(255,255,255,0.1);
}

.lightbox-close .material-icons-round {
    font-size: 2rem;
}

/* Utilities for review page */
.text-success { color: var(--secondary-color); }
.text-danger { color: var(--danger-color); }
/* Dynamic UI Additions */
.sort-select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background-color: var(--surface-color);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background-color: var(--bg-color);
}
.tags-box {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}
.tag {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
}
.pagination-container {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

/* Store Page CSS */
.store-header {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.store-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.store-main-logo {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-color);
    background-color: #fff;
}

.store-info-box {
    flex: 1;
    min-width: 300px;
}

.store-info-box .hero-title {
    margin-bottom: var(--space-xs);
    font-size: var(--text-2xl);
    color: var(--text-primary);
}

.rating-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.votes-count {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.store-about {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.store-affiliate-btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
}

.store-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
    align-items: start;
}

.store-main-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.store-section {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.store-coupons-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.opacity-60 {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.store-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-widget {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.related-stores-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.related-store-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.related-store-item:hover {
    background-color: var(--bg-color);
}

.related-store-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.popular-coupons-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.popular-coupon-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}
.popular-coupon-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.popular-coupon-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-primary);
}
.popular-coupon-meta {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .store-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .store-header-content {
        flex-direction: column;
        text-align: center;
    }
    .rating-box {
        justify-content: center;
    }
}

/* Affiliate System CSS */
.affiliate-disclosure {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.affiliate-disclosure .material-icons-round {
    font-size: 18px;
    color: var(--primary-color);
}
.affiliate-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.affiliate-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-weight: 700;
}

/* Trust Score */
.trust-score-box {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
}
.trust-score-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.trust-score-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-xs);
}
.trust-score-max {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: 500;
}
.trust-score-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}
.community-rating {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
}

/* Price Comparison */
.price-comparison-box h3 {
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
}
.price-comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.price-comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--surface-color);
}
.best-deal-highlight {
    border-color: var(--secondary-color);
    background-color: rgba(16, 185, 129, 0.05);
}
.price-store-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.store-name {
    font-weight: 600;
    color: var(--text-primary);
}
.deal-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.best-deal-badge {
    background-color: var(--secondary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
}
.price-action {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.price-amount {
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--text-primary);
}

/* Editor Recommendation */
.editor-recommendation-box {
    background-color: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.editor-rec-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}
.editor-rec-header h3 {
    margin: 0;
}

/* Related Guides */
.related-guides-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}
.related-guides-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.related-guides-list li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}
.related-guides-list li a:hover {
    background-color: var(--bg-color);
}

/* Global Popups & CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    padding: var(--space-md);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}
.sticky-mobile-cta.visible {
    transform: translateY(0);
}
.sticky-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: var(--space-md);
}
.sticky-cta-info {
    display: flex;
    flex-direction: column;
}
.sticky-cta-info strong {
    font-size: var(--text-md);
    color: var(--text-primary);
}
.sticky-cta-info span {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.floating-deal-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateX(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    max-width: 300px;
}
.floating-deal-notification.visible {
    transform: translateX(0);
}
.floating-deal-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.floating-deal-content img {
    border-radius: 50%;
    object-fit: cover;
}
.floating-deal-content div {
    display: flex;
    flex-direction: column;
}
.floating-deal-content strong {
    font-size: var(--text-sm);
    color: var(--text-primary);
}
.floating-deal-content span {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* Exit Intent / Email Popup */
.exit-intent-banner, .email-subscribe-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: var(--space-md);
}
.exit-intent-banner.visible, .email-subscribe-popup.visible {
    opacity: 1;
    pointer-events: auto;
}
.exit-intent-content, .email-popup-content {
    background-color: var(--surface-color);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.exit-intent-banner.visible .exit-intent-content,
.email-subscribe-popup.visible .email-popup-content {
    transform: scale(1);
}
.close-exit-intent, .close-email-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
}
.exit-intent-content h3, .email-popup-content h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
}
.exit-intent-content p, .email-popup-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}
#popup-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
#popup-newsletter-form input {
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-md);
}

/* Pulsing CTA Animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.cta-pulse {
    animation: pulse 2s infinite;
}

@media (min-width: 769px) {
    .sticky-mobile-cta {
        display: none;
    }
}
@media (max-width: 768px) {
    .price-comparison-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    .price-action {
        width: 100%;
        justify-content: space-between;
    }
}

.inline-cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-md);
}
.inline-cta-box h3 {
    color: white;
    margin-bottom: var(--space-sm);
}
.inline-cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-lg);
}
.inline-cta-box .btn {
    background-color: white;
    color: var(--primary-color);
    font-weight: 700;
}
.inline-cta-box .btn:hover {
    background-color: var(--bg-color);
}

/* Additional Badge Styles */
.editor-choice {
    background-color: #673ab7;
    color: white;
}
.expired-badge {
    background-color: var(--danger-color);
    color: white;
}
.verified-badge {
    background-color: var(--secondary-color);
    color: white;
}

/* Fix exit intent padding / mobile scrolling issue */
body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness Fixes (320px - 430px & <768px)
   ========================================================================== */

/* Prevent Horizontal Scroll Globally */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

*, *::before, *::after {
    box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6, span, a, label, li, td, th {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

/* Ensure touch targets meet accessibility standards (min 44px) */
.btn, .filter-btn, .show-code-btn, .icon-btn, .nav-link, .search-box input, .form-control {
    touch-action: manipulation;
}

/* --- Responsive Layout & Containers --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Cards & Containers */
    .card, .affiliate-card, .review-card, .store-section, .sidebar-widget, .widget {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    /* Hero Section */
    .hero {
        padding: 3.5rem 0 2.5rem 0;
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    /* Search Box */
    .search-box-wrapper {
        width: 100%;
    }

    .search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 0.75rem;
        padding: 0;
    }

    .search-box input {
        background-color: var(--surface-color);
        padding: 0.875rem 1rem;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        width: 100%;
        font-size: 1rem;
        min-height: 48px;
    }

    .search-box .btn {
        border-radius: 10px;
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        justify-content: center;
    }

    /* Coupon Cards */
    .affiliate-card {
        border-top-width: 3px;
    }

    .coupon-action {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .get-deal-btn {
        width: 100%;
        min-height: 48px;
    }

    /* Code Reveal Wrapper */
    .code-reveal-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 88px;
        width: 100%;
    }

    .hidden-code-mask {
        padding: 0.65rem;
        font-size: 1.05rem;
        width: 100%;
        text-align: center;
    }

    .show-code-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        min-height: 44px;
        font-size: 0.95rem;
        justify-content: center;
    }

    /* Review Page */
    .review-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .hero-details {
        align-items: center;
        width: 100%;
    }

    .review-meta-row {
        justify-content: center;
        width: 100%;
    }

    .download-section {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .download-btn {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
    }

    .quick-info-table th {
        width: 45%;
    }

    .quick-info-table td {
        word-break: break-word;
    }

    /* Rating Breakdown */
    .rating-bar-row {
        gap: 0.5rem;
    }

    .rating-label {
        width: 95px;
        font-size: 0.875rem;
    }

    /* Author & Comments */
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .author-info h4 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .comment-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-desc {
        max-width: 100%;
    }
}

/* --- Target Breakpoints Tuning --- */

/* 430px (iPhone Pro Max, Pixel XL, etc.) */
@media (max-width: 430px) {
    .container {
        padding: 0 0.875rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .review-title {
        font-size: 1.45rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .coupon-title {
        font-size: 1.1rem;
    }

    .coupon-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        position: relative;
    }

    .coupon-badges {
        position: static;
        margin-bottom: 0.25rem;
        flex-wrap: wrap;
    }

    .store-info {
        gap: 0.75rem;
        width: 100%;
    }

    .store-logo {
        width: 44px;
        height: 44px;
    }

    .discount {
        font-size: 1.3rem;
    }

    .coupon-content {
        padding: 1rem;
    }

    .coupon-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .category-filters {
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.825rem;
        white-space: nowrap;
    }

    .app-icon {
        width: 90px;
        height: 90px;
    }

    /* Counters */
    .counters-grid {
        grid-template-columns: 1fr 1fr;
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .counter-number {
        font-size: 1.75rem;
    }

    .counter-label {
        font-size: 0.75rem;
    }

    /* Popups & Sticky Mobile CTA */
    .sticky-cta-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
    }

    .sticky-cta-content .btn {
        width: 100%;
        min-height: 44px;
    }

    .floating-deal-notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        bottom: 10px;
        padding: 0.75rem;
    }

    .exit-intent-content, .email-popup-content {
        padding: 1.5rem 1rem;
        width: 92%;
        max-width: 380px;
    }

    .exit-intent-content h3, .email-popup-content h3 {
        font-size: 1.3rem;
    }
}

/* 412px (Pixel 6/7/8, Galaxy Ultra) */
@media (max-width: 412px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.38rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.925rem;
    }
}

/* 390px (iPhone 12/13/14/15 Pro) */
@media (max-width: 390px) {
    .container {
        padding: 0 0.8rem;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .review-title {
        font-size: 1.3rem;
    }

    .discount {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 1rem;
    }

    .store-main-logo {
        width: 90px;
        height: 90px;
    }
}

/* 360px (Galaxy S8/S9/S10/S20, Moto G) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .header {
        height: 60px;
    }

    :root {
        --header-height: 60px;
    }

    .logo {
        font-size: 1.2rem;
        gap: 0.3rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .review-title {
        font-size: 1.2rem;
    }

    .app-icon {
        width: 75px;
        height: 75px;
    }

    .btn {
        padding: 0.6rem 0.875rem;
        font-size: 0.875rem;
    }

    .rating-label {
        width: 75px;
        font-size: 0.8rem;
    }

    .rating-score {
        width: 25px;
        font-size: 0.8rem;
    }

    .hidden-code-mask {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .show-code-btn {
        font-size: 0.875rem;
    }

    .counters-grid {
        grid-template-columns: 1fr;
        padding: 1.25rem 0.75rem;
    }

    .exit-intent-content, .email-popup-content {
        padding: 1.25rem 0.75rem;
    }

    .exit-intent-content h3, .email-popup-content h3 {
        font-size: 1.15rem;
    }
}

/* 320px (iPhone SE 1st Gen, Folded screens) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.625rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .review-title {
        font-size: 1.1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.825rem;
        padding: 0.5rem 0.75rem;
    }

    .hidden-code-mask {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

/* ==========================================================================
   Desktop Coupon Cards Layout Fix (min-width: 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .affiliate-card {
        position: relative;
        overflow: hidden;
    }

    .coupon-badges {
        position: absolute;
        top: 0.85rem;
        right: 1.25rem;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: calc(100% - 2.5rem);
        z-index: 2;
    }

    .coupon-header {
        position: relative;
        padding: 1.25rem 1.5rem;
    }

    .coupon-content {
        padding: 1.5rem;
    }
}


