/* Core theme styles — page-specific bundles loaded in theme.php */

/* ============================================================
   Site theme — shared across every page
   ============================================================ */

:root {
    --theme-brand-50: #fff7ed;
    --theme-brand-100: #fee2cc;
    --theme-brand-500: #f57100;
    --theme-brand-600: #bc0d0d;
    --theme-brand-700: #9c0a0a;
    --theme-brand-500-rgb: 245, 113, 0;
    --theme-brand-600-rgb: 188, 13, 13;
    --theme-brand-700-rgb: 156, 10, 10;
    --theme-brand-50-rgb: 255, 247, 237;
    --theme-brand-100-rgb: 254, 226, 204;
    --theme-success-50: #f0fdf4;
    --theme-success-100: #dcfce7;
    --theme-success-500: #22c55e;
    --theme-success-600: #16a34a;
    --theme-success-700: #15803d;
    --theme-success-500-rgb: 34, 197, 94;
    --theme-success-600-rgb: 22, 163, 74;
    --theme-success-700-rgb: 21, 128, 61;
    --theme-accent-blue: #1967d2;
    --theme-accent-blue-rgb: 25, 103, 210;

    /* Semantic aliases — contrast-safe on white surface:
     * #000 ≈ 21:1 | brand-700 ≈ 8.4:1 | brand-600 ≈ 6.5:1 | brand-500 ≈ 2.8:1 FAIL */
    --theme-text: #000;
    --theme-text-muted: var(--theme-brand-600);
    --theme-text-light: var(--theme-brand-600);
    --theme-success: var(--theme-success-700);
    --theme-success-bg: var(--theme-success-50);
    --theme-surface: #fff;
    --theme-border: var(--theme-brand-100);
    --theme-on-accent: var(--theme-brand-50);

    --theme-font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
    --theme-font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --theme-container: 80rem;
    --theme-radius: 0.75rem;
    --theme-radius-lg: 1rem;
    --theme-radius-xl: 1.25rem;
}

/* Shared accent tokens (palette only) */
[data-accent="500"] { --deal-accent: var(--theme-brand-500); --accent-logo: var(--theme-brand-500); }
[data-accent="600"] { --deal-accent: var(--theme-brand-600); --accent-logo: var(--theme-brand-600); }
[data-accent="700"] { --deal-accent: var(--theme-brand-700); --accent-logo: var(--theme-brand-700); }
[data-accent="500-600"] { --deal-accent: var(--theme-brand-600); --accent-logo: var(--theme-brand-600); }
[data-accent="500-soft"] { --deal-accent: var(--theme-brand-500); --accent-logo: var(--theme-brand-500); }
[data-accent="600-soft"] { --deal-accent: var(--theme-brand-700); --accent-logo: var(--theme-brand-700); }
[data-accent="success-500"] { --deal-accent: var(--theme-success-500); --accent-logo: var(--theme-success-500); }
[data-accent="success-600"] { --deal-accent: var(--theme-success-600); --accent-logo: var(--theme-success-600); }
[data-accent="success-700"] { --deal-accent: var(--theme-success-700); --accent-logo: var(--theme-success-700); }
[data-accent="success-soft"] { --deal-accent: var(--theme-success-500); --accent-logo: var(--theme-success-500); }
[data-accent="accent-blue"] { --deal-accent: var(--theme-accent-blue); --accent-logo: var(--theme-accent-blue); }
[data-accent="accent-blue-soft"] { --deal-accent: var(--theme-accent-blue); --accent-logo: var(--theme-brand-500); }

.theme-deal-visual-logo,
.theme-search-result-logo {
    background: var(--accent-logo, var(--theme-brand-600));
}

.theme-search-empty {
    padding: 0.625rem;
    font-size: 0.75rem;
    color: var(--theme-text-light);
}

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

.theme-home,
.theme-site {
    font-family: var(--theme-font-sans);
    color: var(--theme-text);
    scroll-behavior: smooth;
}

.theme-home body,
.theme-site body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--theme-surface);
    -webkit-font-smoothing: antialiased;
}

.theme-home a,
.theme-site a { color: inherit; text-decoration: none; }
.theme-home button,
.theme-site button { font-family: inherit; cursor: pointer; border: none; background: none; }
.theme-home ul,
.theme-site ul { list-style: none; margin: 0; padding: 0; }
.theme-home h1, .theme-home h2, .theme-home h3, .theme-home p,
.theme-site h1, .theme-site h2, .theme-site h3, .theme-site p { margin: 0; }

.theme-frosted-panel {
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    box-shadow: 0 8px 32px rgba(var(--theme-brand-500-rgb), 0.08);
}

.theme-title-accent,
.theme-stores-title-accent {
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-page .theme-section-badge--glow {
    background: var(--theme-surface);
    box-shadow: 0 4px 14px rgba(var(--theme-brand-500-rgb), 0.1);
}

.theme-page .theme-section-badge-dot {
    background: var(--theme-success-500);
}

.theme-main { flex: 1; }

.theme-container {
    width: 100%;
    max-width: var(--theme-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .theme-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.theme-container--narrow {
    max-width: 56rem;
}

/* ---- Promo bar ---- */
#theme-promo-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--theme-brand-600);
    color: var(--theme-on-accent);
    font-size: 0.75rem;
    padding: 0.625rem 1rem;
    box-shadow: 0 4px 16px -4px rgba(var(--theme-brand-600-rgb), 0.25);
}

#theme-promo-bar.is-hidden { display: none; }

.theme-promo-inner {
    max-width: var(--theme-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 500;
}

.theme-promo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    text-align: center;
}

@media (min-width: 640px) {
    .theme-promo-text { justify-content: flex-start; text-align: left; }
}

.theme-promo-badge {
    background: var(--theme-success-100);
    color: var(--theme-success-700);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

#theme-promo-close {
    display: none;
    padding: 0.25rem;
    border-radius: 999px;
    color: var(--theme-on-accent);
    flex-shrink: 0;
}

#theme-promo-close:hover { background: rgba(var(--theme-brand-50-rgb), 0.15); }

@media (min-width: 640px) {
    #theme-promo-close { display: flex; align-items: center; justify-content: center; }
}

/* ---- Header ---- */
#theme-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-surface);
    box-shadow: 0 4px 24px -8px rgba(var(--theme-brand-600-rgb), 0.08);
}

.theme-header-inner {
    max-width: var(--theme-container);
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .theme-header-inner { padding: 1rem 1.5rem; }
}

.theme-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 0;
}

#theme-header-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

#theme-header-logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background: var(--theme-brand-500);
    color: var(--theme-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(var(--theme-brand-600-rgb), 0.2);
    transition: transform 0.3s;
}

#theme-header-logo:hover #theme-header-logo-icon { transform: rotate(3deg); }

#theme-header-logo-icon svg { width: 1.25rem; height: 1.25rem; }

.theme-logo-title {
    font-family: var(--theme-font-display);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--theme-text);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .theme-logo-title { font-size: 1.5rem; }
}

.theme-logo-tagline {
    font-size: 0.625rem;
    color: var(--theme-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: -2px;
}

#theme-header-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-muted);
}

#theme-header-nav a:hover { color: var(--theme-brand-600); }

#theme-header-nav a.is-active {
    color: var(--theme-brand-600);
}

@media (min-width: 1024px) {
    #theme-header-nav { display: flex; }
}

.theme-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-success);
    background: var(--theme-success-bg);
    border: 1px solid var(--theme-success-100);
    padding: 0.25rem 0.625rem;
    border-radius: var(--theme-radius);
}

.theme-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--theme-success-500);
}

.theme-header-actions {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .theme-header-actions { display: flex; }
}

.theme-header-login {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-text-muted);
}

.theme-header-login:hover { color: var(--theme-brand-600); }

#theme-header-cta {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: var(--theme-radius);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-on-accent);
    background: var(--theme-brand-600);
    box-shadow: 0 4px 6px -1px rgba(var(--theme-brand-600-rgb), 0.3);
    transition: opacity 0.2s, transform 0.2s;
}

#theme-header-cta:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

#theme-mobile-toggle {
    display: flex;
    padding: 0.625rem;
    border-radius: var(--theme-radius);
    color: var(--theme-text-muted);
}

#theme-mobile-toggle:hover { background: var(--theme-brand-50); }

#theme-mobile-toggle svg { width: 1.5rem; height: 1.5rem; }

@media (min-width: 1024px) {
    #theme-mobile-toggle { display: none; }
}

.theme-icon-close { display: none; }
#theme-mobile-toggle.is-open .theme-icon-menu { display: none; }
#theme-mobile-toggle.is-open .theme-icon-close { display: block; }

#theme-mobile-nav {
    display: none;
    padding: 1rem 1rem 1.5rem;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
    box-shadow: 0 10px 40px rgba(var(--theme-brand-600-rgb), 0.08);
}

#theme-mobile-nav.is-open { display: block; }

@media (min-width: 1024px) {
    #theme-mobile-nav { display: none !important; }
}

.theme-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.theme-mobile-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: var(--theme-radius);
    border: 1px solid var(--theme-border);
    background: rgba(var(--theme-brand-50-rgb), 0.5);
}

.theme-mobile-card:hover { background: var(--theme-brand-50); }

.theme-mobile-card strong { font-size: 0.75rem; color: var(--theme-text); }
.theme-mobile-card span { font-size: 0.625rem; color: var(--theme-text-light); margin-top: 2px; }

.theme-mobile-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-brand-600);
    border-radius: var(--theme-radius);
}

.theme-mobile-link:hover { background: var(--theme-brand-50); }

.theme-mobile-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--theme-radius);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0.5rem;
}

.theme-mobile-btn--outline {
    border: 1px solid var(--theme-brand-100);
    color: var(--theme-brand-600);
}

.theme-mobile-btn--outline:hover { background: var(--theme-brand-50); }

a.theme-mobile-btn.theme-mobile-btn--primary,
.theme-mobile-btn--primary {
    background: var(--theme-brand-600);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(var(--theme-brand-600-rgb), 0.2);
}

.theme-mobile-divider {
    border: none;
    border-top: 1px solid var(--theme-border);
    margin: 1rem 0;
}

/* ---- Hero ---- */
#theme-hero {
    position: relative;
    text-align: center;
    padding: 2rem 0 2.75rem;
    background: var(--theme-surface);
}

@media (min-width: 1024px) {
    #theme-hero { padding: 3rem 0 3.25rem; }
}

.theme-hero-content {
    position: relative;
    z-index: 1;
}

.theme-hero-title {
    font-family: var(--theme-font-display);
    font-size: clamp(1.875rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--theme-text);
    margin-top: 0.5rem;
    text-align: center;
}

.theme-hero-title span {
    color: var(--theme-brand-500);
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-hero-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.625;
    color: rgba(var(--theme-brand-700-rgb), 0.78);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center !important;
}

@media (min-width: 640px) {
    .theme-hero-subtitle { font-size: 1.125rem; text-align: center; }
}

.theme-stats {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .theme-stats { display: flex; }
}

.theme-stat { text-align: center; }

.theme-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--theme-brand-500);
    line-height: 1;
}

@media (min-width: 640px) {
    .theme-stat-value { font-size: 2rem; }
}

.theme-stat-value--green { color: var(--theme-success); }
.theme-stat-value--orange { color: var(--theme-brand-500); }

.theme-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(var(--theme-brand-700-rgb), 0.65);
    margin-top: 0.25rem;
}

.theme-stat-divider {
    display: none;
    width: 1px;
    height: 2rem;
    background: rgba(var(--theme-brand-100-rgb), 0.6);
}

@media (min-width: 640px) {
    .theme-stat-divider { display: block; }
}

.theme-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.theme-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-brand-700);
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.18);
    box-shadow: 0 1px 2px rgba(var(--theme-brand-500-rgb), 0.06);
}

.theme-search-wrap {
    position: relative;
    margin-top: 1.75rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#theme-hero-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
    border: 1.5px solid rgba(var(--theme-brand-500-rgb), 0.38);
    box-shadow:
        0 2px 4px rgba(var(--theme-brand-600-rgb), 0.06),
        0 12px 32px -8px rgba(var(--theme-brand-500-rgb), 0.18),
        0 24px 60px -16px rgba(var(--theme-brand-600-rgb), 0.12);
}

@media (min-width: 640px) {
    #theme-hero-search { flex-direction: row; align-items: stretch; }
}

#theme-hero-search:focus-within {
    border-color: rgba(var(--theme-brand-500-rgb), 0.45);
    box-shadow:
        0 2px 4px rgba(var(--theme-brand-600-rgb), 0.08),
        0 12px 32px -8px rgba(var(--theme-brand-500-rgb), 0.22),
        0 24px 60px -16px rgba(var(--theme-brand-600-rgb), 0.14),
        0 0 0 4px rgba(var(--theme-brand-500-rgb), 0.12);
}

.theme-search-field {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    min-width: 0;
    border-radius: calc(var(--theme-radius-xl) - 4px);
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
}

.theme-search-field svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--theme-text-light);
    flex-shrink: 0;
}

.theme-search-field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-text);
}

.theme-search-field input::placeholder { color: var(--theme-text-light); }

#theme-hero-search-btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--theme-radius);
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-on-accent);
    background: var(--theme-brand-600);
    box-shadow: 0 4px 6px -1px rgba(var(--theme-brand-600-rgb), 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

#theme-hero-search-btn:hover { opacity: 0.95; }

#theme-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-xl);
    padding: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(var(--theme-brand-600-rgb), 0.15);
    z-index: 50;
    text-align: left;
    font-size: 0.875rem;
}

#theme-search-dropdown.is-visible { display: block; }

.theme-search-dropdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0.5rem 0.5rem;
}

#theme-search-results {
    max-height: 16rem;
    overflow-y: auto;
}

.theme-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: var(--theme-radius);
    transition: background 0.15s;
}

.theme-search-result:hover { background: var(--theme-brand-50); }

.theme-search-result-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.theme-search-result-logo {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    flex-shrink: 0;
    overflow: hidden;
}

.theme-search-result-logo--img {
    background: #fff;
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.14);
    padding: 0.125rem;
}

.theme-search-result-logo--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.theme-search-result-logo--avatar {
    background: transparent;
    border: none;
    padding: 0;
}

.theme-search-result-logo--avatar img {
    object-fit: cover;
    border-radius: inherit;
}

.theme-search-result-logo--letter {
    font-size: 0.625rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: var(--accent-logo, var(--theme-brand-600));
}

.theme-search-result-name {
    font-weight: 600;
    color: var(--theme-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-search-result-meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-success);
    flex-shrink: 0;
}

.theme-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1.125rem;
    font-size: 0.8125rem;
    color: var(--theme-brand-700);
}

.theme-popular-label { font-weight: 700; color: var(--theme-brand-700); }

.theme-tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.32);
    background: var(--theme-surface);
    color: var(--theme-brand-700);
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 1px 3px rgba(var(--theme-brand-600-rgb), 0.08);
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.theme-tag-link:hover {
    border-color: var(--theme-brand-500);
    color: var(--theme-brand-600);
    background: var(--theme-surface);
    box-shadow: 0 2px 8px rgba(var(--theme-brand-500-rgb), 0.14);
}

/* ---- Section shared ---- */
.theme-section-head {
    margin-bottom: 1.5rem;
}

.theme-section-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    background: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-brand-100);
}

.theme-section-title {
    font-family: var(--theme-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-text);
    letter-spacing: -0.025em;
    margin-top: 0.5rem;
}

.theme-section-desc {
    font-size: 0.875rem;
    color: var(--theme-text-light);
    margin-top: 0.25rem;
}

.theme-section-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .theme-section-row {
        flex-direction: row;
        align-items: flex-end;
    }
}

.theme-section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--theme-brand-600);
}

.theme-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-brand-600);
}

.theme-link-arrow:hover { color: var(--theme-brand-600); }

.theme-link-arrow svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.theme-link-arrow:hover svg { transform: translateX(4px); }

.theme-section-cta {
    text-align: center;
    margin-top: 2rem;
}

#theme-stores .theme-section-cta {
    margin-top: 2.5rem;
}

#theme-stores .theme-btn-outline {
    background: var(--theme-surface);
    box-shadow: 0 6px 20px rgba(var(--theme-brand-500-rgb), 0.1);
}

.theme-section-title--lg {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.theme-section-title--xl {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--theme-on-accent);
}

.theme-section-desc--light {
    color: rgba(var(--theme-brand-50-rgb), 0.75);
    font-size: 1rem;
    max-width: 28rem;
}

.theme-section-badge--glow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.2);
    box-shadow: 0 2px 8px rgba(var(--theme-brand-500-rgb), 0.08);
}

#theme-stores .theme-section-badge--glow {
    background: var(--theme-surface);
    box-shadow: 0 4px 14px rgba(var(--theme-brand-500-rgb), 0.1);
}

#theme-stores .theme-section-badge-dot {
    background: var(--theme-success-500);
}

#theme-stores .theme-section-desc {
    color: rgba(var(--theme-brand-700-rgb), 0.72);
}

.theme-section-badge-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: var(--theme-brand-500);
    animation: theme-pulse-dot 2s ease-in-out infinite;
}

@keyframes theme-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.theme-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--theme-radius-lg);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-brand-700);
    background: var(--theme-surface);
    border: 2px solid rgba(var(--theme-brand-500-rgb), 0.28);
    box-shadow: 0 4px 16px rgba(var(--theme-brand-500-rgb), 0.08);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, color 0.25s;
}

.theme-btn-outline:hover {
    border-color: var(--theme-brand-500);
    color: var(--theme-brand-600);
    box-shadow: 0 8px 24px rgba(var(--theme-brand-500-rgb), 0.15);
    transform: translateY(-2px);
}

.theme-btn-outline svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.theme-btn-outline:hover svg { transform: translateX(4px); }

.theme-home a.theme-btn-gradient,
.theme-site a.theme-btn-gradient {
    color: var(--theme-on-accent);
}

.theme-btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--theme-radius-lg);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    box-shadow: 0 8px 24px rgba(var(--theme-brand-600-rgb), 0.35);
    transition: opacity 0.2s, transform 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
}

.theme-btn-gradient:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--theme-brand-600-rgb), 0.4);
}

.theme-btn-gradient svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.theme-btn-gradient:hover svg { transform: translateX(4px); }

/* ---- Stores ---- */
#theme-stores {
    position: relative;
    padding: 4rem 0;
    background: var(--theme-surface);
}

.theme-stores-inner {
    position: relative;
    z-index: 1;
}

.theme-stores-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.theme-stores-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.theme-stores-inline-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4375rem 0.9375rem;
    border-radius: 999px;
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.24);
    box-shadow: 0 4px 14px rgba(var(--theme-brand-500-rgb), 0.08);
}

.theme-stores-inline-stat {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(var(--theme-brand-700-rgb), 0.78);
    white-space: nowrap;
}

.theme-stores-inline-stat strong {
    font-family: var(--theme-font-display);
    font-weight: 900;
    color: var(--theme-brand-600);
}

.theme-stores-inline-stat:last-child strong {
    color: var(--theme-success-600);
}

.theme-stores-inline-stat-divider {
    width: 1px;
    height: 1rem;
    background: rgba(var(--theme-brand-500-rgb), 0.25);
    flex-shrink: 0;
}

.theme-stores-stats {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.theme-stores-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.18);
    box-shadow: 0 8px 24px rgba(var(--theme-brand-500-rgb), 0.06);
    min-width: 7rem;
}

.theme-stores-stat-value {
    font-family: var(--theme-font-display);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-stores-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(var(--theme-brand-700-rgb), 0.68);
    margin-top: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.theme-stores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem;
}

.theme-stores-grid .theme-store-card {
    flex: 0 0 calc((100% - 0.875rem) / 2);
}

@media (min-width: 640px) {
    .theme-stores-grid { gap: 1rem; }
    .theme-stores-grid .theme-store-card { flex-basis: calc((100% - 2 * 1rem) / 3); }
}

@media (min-width: 900px) {
    .theme-stores-grid .theme-store-card { flex-basis: calc((100% - 5 * 1rem) / 6); }
}

#theme-hero .theme-search-field svg,
#theme-hero .theme-search-field input::placeholder {
    color: rgba(var(--theme-brand-700-rgb), 0.55);
}

.theme-store-card {
    --card-accent: var(--theme-brand-500);
    --card-accent-rgb: var(--theme-brand-500-rgb);
    --card-logo: var(--theme-brand-600);
    --card-offer-bg: var(--theme-brand-100);
    --card-shadow: rgba(var(--theme-brand-500-rgb), 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0.75rem 1.25rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    box-shadow: 0 2px 8px rgba(var(--theme-brand-700-rgb), 0.06), 0 10px 24px var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.theme-store-card[data-accent="500"] {
    --card-accent: var(--theme-brand-500);
    --card-accent-rgb: var(--theme-brand-500-rgb);
    --card-logo: var(--theme-brand-500);
    --card-offer-bg: rgba(var(--theme-brand-500-rgb), 0.12);
    --card-shadow: rgba(var(--theme-brand-500-rgb), 0.1);
}

.theme-store-card[data-accent="600"] {
    --card-accent: var(--theme-brand-600);
    --card-accent-rgb: var(--theme-brand-600-rgb);
    --card-logo: var(--theme-brand-600);
    --card-offer-bg: rgba(var(--theme-brand-600-rgb), 0.1);
    --card-shadow: rgba(var(--theme-brand-600-rgb), 0.1);
}

.theme-store-card[data-accent="700"] {
    --card-accent: var(--theme-brand-700);
    --card-accent-rgb: var(--theme-brand-700-rgb);
    --card-logo: var(--theme-brand-700);
    --card-offer-bg: var(--theme-brand-100);
    --card-shadow: rgba(var(--theme-brand-700-rgb), 0.1);
}

.theme-store-card[data-accent="500-600"] {
    --card-accent: var(--theme-brand-600);
    --card-accent-rgb: var(--theme-brand-600-rgb);
    --card-logo: var(--theme-brand-600);
    --card-offer-bg: var(--theme-brand-100);
    --card-shadow: rgba(var(--theme-brand-500-rgb), 0.14);
}

.theme-store-card[data-accent="500-soft"] {
    --card-accent: var(--theme-brand-500);
    --card-accent-rgb: var(--theme-brand-500-rgb);
    --card-logo: var(--theme-brand-500);
    --card-offer-bg: var(--theme-brand-100);
    --card-shadow: rgba(var(--theme-brand-500-rgb), 0.08);
}

.theme-store-card[data-accent="600-soft"] {
    --card-accent: var(--theme-brand-600);
    --card-accent-rgb: var(--theme-brand-600-rgb);
    --card-logo: var(--theme-brand-700);
    --card-offer-bg: var(--theme-brand-100);
    --card-shadow: rgba(var(--theme-brand-600-rgb), 0.08);
}

.theme-store-card[data-accent="success-500"] {
    --card-accent: var(--theme-success-500);
    --card-accent-rgb: var(--theme-success-500-rgb);
    --card-logo: var(--theme-success-500);
    --card-offer-bg: var(--theme-success-100);
    --card-shadow: rgba(var(--theme-success-500-rgb), 0.1);
}

.theme-store-card[data-accent="success-600"] {
    --card-accent: var(--theme-success-600);
    --card-accent-rgb: var(--theme-success-600-rgb);
    --card-logo: var(--theme-success-600);
    --card-offer-bg: var(--theme-success-100);
    --card-shadow: rgba(var(--theme-success-600-rgb), 0.1);
}

.theme-store-card[data-accent="success-700"] {
    --card-accent: var(--theme-success-700);
    --card-accent-rgb: var(--theme-success-700-rgb);
    --card-logo: var(--theme-success-700);
    --card-offer-bg: var(--theme-success-100);
    --card-shadow: rgba(var(--theme-success-700-rgb), 0.1);
}

.theme-store-card[data-accent="success-soft"] {
    --card-accent: var(--theme-success-600);
    --card-accent-rgb: var(--theme-success-600-rgb);
    --card-logo: var(--theme-success-500);
    --card-offer-bg: var(--theme-success-100);
    --card-shadow: rgba(var(--theme-success-500-rgb), 0.08);
}

.theme-store-card[data-accent="accent-blue"] {
    --card-accent: var(--theme-accent-blue);
    --card-accent-rgb: var(--theme-accent-blue-rgb);
    --card-logo: var(--theme-accent-blue);
    --card-offer-bg: rgba(var(--theme-accent-blue-rgb), 0.1);
    --card-shadow: rgba(var(--theme-accent-blue-rgb), 0.1);
}

.theme-store-card[data-accent="accent-blue-soft"] {
    --card-accent: var(--theme-accent-blue);
    --card-accent-rgb: var(--theme-accent-blue-rgb);
    --card-logo: var(--theme-accent-blue);
    --card-offer-bg: rgba(var(--theme-accent-blue-rgb), 0.12);
    --card-shadow: rgba(var(--theme-accent-blue-rgb), 0.08);
}

.theme-store-card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--card-accent-rgb), 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.theme-store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(var(--card-accent-rgb), 0.14);
}

.theme-store-card:hover .theme-store-card-glow { opacity: 1; }

.theme-store-rank {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.5625rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: var(--card-accent);
    border: 1px solid rgba(var(--card-accent-rgb), 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(var(--card-accent-rgb), 0.28);
}

.theme-store-card:nth-child(1) .theme-store-rank {
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
}

.theme-store-card:nth-child(2) .theme-store-rank {
    background: var(--theme-brand-600);
}

.theme-store-card:nth-child(3) .theme-store-rank {
    background: var(--theme-success-600);
}

.theme-store-logo-wrap {
    position: relative;
    padding: 0.25rem;
    border-radius: calc(var(--theme-radius-lg) + 2px);
    background: linear-gradient(135deg, rgba(var(--card-accent-rgb), 0.28), rgba(var(--card-accent-rgb), 0.1));
}

.theme-store-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--theme-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--theme-brand-50);
    background: var(--card-logo);
    box-shadow: 0 4px 12px rgba(var(--card-accent-rgb), 0.22);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.theme-store-logo--img {
    background: #fff;
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.12);
    padding: 0.375rem;
}

.theme-store-logo--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.theme-store-logo--avatar {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: 0 4px 12px rgba(var(--card-accent-rgb), 0.18);
}

.theme-store-logo--avatar img {
    object-fit: cover;
    border-radius: inherit;
}

.theme-store-logo--letter,
.theme-deal-visual-logo--letter {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: var(--card-logo, var(--theme-brand-600));
    box-shadow: 0 4px 12px rgba(var(--card-accent-rgb, var(--theme-brand-600-rgb)), 0.22);
}

.theme-deal-visual-logo--letter {
    font-size: 1.125rem;
    background: var(--accent-logo, var(--theme-brand-600));
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 6px 20px rgba(var(--theme-brand-700-rgb), 0.14);
}

.theme-store-logo--letter .store-logo-letter,
.theme-deal-visual-logo--letter .store-logo-letter {
    width: 100%;
    height: 100%;
    font-size: inherit;
    line-height: 1;
}

.theme-store-card:hover .theme-store-logo { transform: scale(1.1) rotate(-3deg); }

.theme-store-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-top: 1.125rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.theme-store-offer {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--theme-brand-700);
    margin-top: 0.375rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--card-offer-bg);
}

.theme-store-count {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--theme-success-700);
    margin-top: 0.625rem;
}

.theme-store-arrow {
    position: absolute;
    bottom: 0.625rem;
    right: 0.625rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--card-logo);
    color: var(--theme-brand-50);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s, transform 0.25s;
}

.theme-store-arrow svg { width: 0.75rem; height: 0.75rem; }

.theme-store-card:hover .theme-store-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Deals ---- */
#theme-shopping {
    position: relative;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}

#theme-shopping::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(180deg, var(--theme-surface) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.theme-deals-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        175deg,
        var(--theme-brand-700) 0%,
        var(--theme-brand-700) 38%,
        var(--theme-brand-600) 72%,
        var(--theme-brand-600) 100%
    );
}

.theme-deals-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 1px 1px, var(--theme-brand-50) 1px, transparent 1px);
    background-size: 32px 32px;
}

.theme-deals-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 700px);
    height: 400px;
    border-radius: 999px;
    background: rgba(var(--theme-brand-500-rgb), 0.18);
    filter: blur(100px);
    pointer-events: none;
}

.theme-deals-inner {
    position: relative;
    z-index: 1;
}

.theme-deals-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.theme-deals-flash {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--theme-on-accent);
    background: rgba(var(--theme-brand-50-rgb), 0.12);
    border: 1px solid rgba(var(--theme-brand-50-rgb), 0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
}

.theme-deals-flash-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--theme-success-500);
    position: relative;
}

.theme-deals-flash-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--theme-success-500);
    animation: theme-live-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes theme-live-ping {
    0% { transform: scale(1); opacity: 0.75; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

.theme-deals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .theme-deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .theme-deals-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.theme-deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--theme-brand-700-rgb), 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.theme-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(var(--theme-brand-700-rgb), 0.28);
}

.theme-deal-card--hero {
    border: 2px solid rgba(var(--theme-brand-500-rgb), 0.5);
    box-shadow: 0 12px 40px rgba(var(--theme-brand-500-rgb), 0.25), 0 8px 32px rgba(var(--theme-brand-700-rgb), 0.2);
}

.theme-deal-card--hero .theme-deal-visual {
    background: var(--theme-surface);
}

.theme-deal-card--hero .theme-deal-visual-logo {
    width: 5rem;
    height: 5rem;
    font-size: 1.125rem;
}

.theme-deal-card--hero .theme-deal-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

.theme-deal-hot {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-500));
    padding: 0.3rem 0.625rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(var(--theme-brand-500-rgb), 0.4);
    letter-spacing: 0.02em;
}

.theme-deal-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, color-mix(in srgb, var(--deal-accent, var(--theme-brand-500)) 26%, var(--theme-surface)) 0%, var(--theme-surface) 58%);
    overflow: hidden;
    clip-path: polygon(0% 0%, 100% 0%, 100% 88%, 87.5% 100%, 75% 88%, 62.5% 100%, 50% 88%, 37.5% 100%, 25% 88%, 12.5% 100%, 0% 88%);
}

.theme-deal-visual-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 75% 65% at 88% 88%, color-mix(in srgb, var(--deal-accent, var(--theme-brand-500)) 10%, transparent), transparent 68%),
        radial-gradient(ellipse 50% 45% at 12% 18%, rgba(var(--theme-brand-500-rgb), 0.05), transparent 62%),
        radial-gradient(circle at 1px 1px, rgba(var(--theme-brand-500-rgb), 0.03) 1px, transparent 1px);
    background-size: auto, auto, 22px 22px;
}

.theme-deal-visual::after {
    content: '';
    position: absolute;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--deal-accent, var(--theme-brand-500)) 14%, transparent) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.theme-deal-visual-logo {
    position: relative;
    z-index: 1;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--theme-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 6px 20px rgba(var(--theme-brand-700-rgb), 0.14),
        0 2px 6px rgba(var(--theme-brand-500-rgb), 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.theme-deal-visual-logo--img {
    background: #fff;
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.1);
    padding: 0.5rem;
}

.theme-deal-visual-logo--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.theme-deal-visual-logo--avatar {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 6px 20px rgba(var(--theme-brand-700-rgb), 0.14);
}

.theme-deal-visual-logo--avatar img {
    object-fit: cover;
    border-radius: inherit;
}

.theme-deal-card:hover .theme-deal-visual-logo {
    transform: scale(1.06);
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 10px 28px rgba(var(--theme-brand-700-rgb), 0.18),
        0 4px 10px rgba(var(--theme-brand-500-rgb), 0.12);
}

.theme-deal-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    max-width: 80%;
    padding: 0.5rem 0.875rem;
    border-radius: var(--theme-radius);
    font-size: 0.6875rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-600), var(--theme-brand-700));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(var(--theme-brand-600-rgb), 0.35);
}

.theme-deal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.theme-deal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.theme-deal-category {
    font-weight: 600;
    color: var(--theme-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-deal-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--theme-success-700);
    background: var(--theme-success-bg);
    flex-shrink: 0;
}

.theme-deal-verified-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: var(--theme-success-500);
}

.theme-deal-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--theme-text);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.theme-deal-card:hover .theme-deal-title { color: var(--theme-brand-500); }

.theme-deal-footer {
    position: relative;
    margin-top: auto;
    padding-top: 1.125rem;
    border-top: 2px dashed rgba(var(--theme-brand-500-rgb), 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .theme-deal-footer {
        flex-direction: row;
        align-items: flex-end;
    }
}

.theme-deal-footer::before,
.theme-deal-footer::after {
    content: '';
    position: absolute;
    top: -0.6rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--theme-brand-600);
    box-shadow: inset 0 1px 3px rgba(var(--theme-brand-700-rgb), 0.35);
    display: none;
}

.theme-deal-footer::before { left: -1.85rem; }
.theme-deal-footer::after { right: -1.85rem; }

@media (min-width: 640px) {
    .theme-deal-footer::before,
    .theme-deal-footer::after { display: block; }
}

.theme-deal-store-block { min-width: 0; }

.theme-deal-store-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-light);
}

.theme-deal-store-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-home a.theme-deal-cta,
.theme-home a.theme-deal-cta span,
.theme-site a.theme-deal-cta,
.theme-site a.theme-deal-cta span {
    color: var(--theme-on-accent);
}

.theme-deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border-radius: var(--theme-radius);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-deal-cta--code {
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    box-shadow: 0 4px 14px rgba(var(--theme-brand-600-rgb), 0.35);
}

.theme-deal-cta--deal {
    color: var(--theme-brand-600);
    background: transparent;
    border: 2px solid rgba(var(--theme-brand-500-rgb), 0.45);
    box-shadow: none;
}

.theme-home a.theme-deal-cta--deal,
.theme-home a.theme-deal-cta--deal span,
.theme-site a.theme-deal-cta--deal,
.theme-site a.theme-deal-cta--deal span {
    color: var(--theme-brand-600);
}

.theme-deal-cta svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s;
}

.theme-deal-cta--code:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--theme-brand-600-rgb), 0.45);
}

.theme-deal-cta--deal:hover {
    transform: translateY(-1px);
    border-color: var(--theme-brand-500);
    background: var(--theme-surface);
    box-shadow: 0 4px 12px rgba(var(--theme-brand-500-rgb), 0.12);
}

.theme-deal-cta:hover svg { transform: translateX(3px); }

.theme-empty--dark {
    background: rgba(var(--theme-brand-50-rgb), 0.08);
    border-color: rgba(var(--theme-brand-50-rgb), 0.15);
    backdrop-filter: blur(8px);
}

.theme-empty--dark p { color: rgba(var(--theme-brand-50-rgb), 0.8); }

.theme-empty--dark .theme-btn-gradient { margin-top: 1.25rem; }

.theme-empty {
    text-align: center;
    padding: 4rem 1rem;
    border-radius: var(--theme-radius-lg);
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.theme-empty p {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
}

.theme-empty .theme-link-arrow { margin-top: 1rem; }

/* ---- Footer ---- */
#theme-footer {
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
    padding: 3.5rem 0 2rem;
}

.theme-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.theme-footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .theme-footer-grid { grid-template-columns: 1.2fr repeat(4, 1fr); }
    .theme-footer-brand { grid-column: span 1; }
}

.theme-footer-brand-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#theme-footer-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--theme-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: var(--theme-brand-600);
    flex-shrink: 0;
}

.theme-footer-name {
    font-family: var(--theme-font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--theme-text);
}

.theme-footer-about {
    font-size: 0.75rem;
    color: var(--theme-text-light);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 16rem;
}

#theme-footer .theme-footer-about {
    color: var(--theme-text-light);
}

.theme-footer-col {
    min-width: 0;
}

.theme-footer-col h3 {
    font-family: var(--theme-font-display);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text);
}

.theme-footer-col ul {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.theme-footer-col li + li { margin-top: 0.625rem; }

.theme-footer-col a,
.theme-footer-placeholder {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-text-muted);
    transition: color 0.2s;
    cursor: pointer;
}

#theme-footer .theme-footer-col a,
#theme-footer .theme-footer-placeholder {
    color: var(--theme-text-muted);
}

.theme-footer-col a:hover { color: var(--theme-brand-600); }

#theme-footer .theme-footer-col a:hover { color: var(--theme-brand-600); }

.theme-footer-bottom {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--theme-text-light);
    text-align: center;
}

#theme-footer .theme-footer-bottom {
    color: var(--theme-text-light);
}

@media (min-width: 768px) {
    #theme-footer .theme-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.theme-footer-bottom strong {
    font-weight: 600;
    color: var(--theme-text-muted);
}

#theme-footer .theme-footer-bottom strong {
    color: var(--theme-text-muted);
}

.theme-hidden { display: none !important; }

/* ============================================================
   Inner pages — same theme system as homepage
   ============================================================ */

.theme-page {
    position: relative;
    padding: 1.5rem 0 4rem;
    background: var(--theme-surface);
}

.theme-page--centered {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 12rem);
}

.theme-page-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.theme-page-section {
    margin-bottom: 2.5rem;
}

.theme-page-section-header {
    margin-bottom: 1.25rem;
}

.theme-breadcrumbs {
    margin-bottom: 1.25rem;
}

.theme-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--theme-text-light);
}

.theme-breadcrumbs li {
    display: flex;
    align-items: center;
}

.theme-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--theme-brand-100);
}

.theme-breadcrumbs a {
    color: var(--theme-brand-600);
    font-weight: 600;
    transition: color 0.2s;
}

.theme-breadcrumbs a:hover {
    color: var(--theme-brand-600);
}

.theme-page-hero {
    position: relative;
    padding: 1.75rem 1.75rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--theme-radius-lg);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    background: var(--theme-surface);
    box-shadow: 0 8px 32px rgba(var(--theme-brand-500-rgb), 0.1);
    overflow: hidden;
}

.theme-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-brand-500), var(--theme-brand-600));
}

.theme-page-title {
    font-family: var(--theme-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--theme-text);
    line-height: 1.15;
    margin-top: 0.5rem;
}

.theme-page-headline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-brand-600);
    margin-top: 0.5rem;
}

.theme-page-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--theme-text-muted);
    margin-top: 0.625rem;
    max-width: 42rem;
}

.theme-static-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 48rem;
}

.theme-static-section-title {
    font-family: var(--theme-font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--theme-text);
    margin-bottom: 0.625rem;
}

.theme-static-paragraph {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--theme-text-muted);
}

.theme-static-paragraph + .theme-static-paragraph {
    margin-top: 0.75rem;
}

/* Category grid */
.theme-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .theme-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .theme-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

.theme-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: var(--theme-radius-lg);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    background: var(--theme-surface);
    box-shadow: 0 8px 28px rgba(var(--theme-brand-500-rgb), 0.08);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.theme-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--theme-brand-500-rgb), 0.14);
}

.theme-category-card-logo {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--theme-radius);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--theme-on-accent);
    background: var(--theme-brand-600);
    box-shadow: 0 4px 12px rgba(var(--theme-brand-600-rgb), 0.2);
}

.theme-category-card[data-accent="500"] .theme-category-card-logo,
.theme-category-card[data-accent="500-soft"] .theme-category-card-logo,
.theme-category-card[data-accent="accent-blue-soft"] .theme-category-card-logo { background: var(--theme-brand-500); }

.theme-category-card[data-accent="700"] .theme-category-card-logo,
.theme-category-card[data-accent="600-soft"] .theme-category-card-logo { background: var(--theme-brand-700); }

.theme-category-card[data-accent="success-500"] .theme-category-card-logo,
.theme-category-card[data-accent="success-soft"] .theme-category-card-logo { background: var(--theme-success-500); }

.theme-category-card[data-accent="success-600"] .theme-category-card-logo { background: var(--theme-success-600); }

.theme-category-card[data-accent="success-700"] .theme-category-card-logo { background: var(--theme-success-700); }

.theme-category-card[data-accent="accent-blue"] .theme-category-card-logo { background: var(--theme-accent-blue); }

.theme-category-card-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-text);
}

.theme-category-card-offers {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--theme-success-600);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--theme-success-50);
}

/* Store coupons layout */
.theme-page--store-coupons {
    padding-top: 0.5rem;
}

@media (max-width: 1199px) {
    .theme-page--store-coupons {
        padding-top: 0;
    }
}

#page-store-coupons #page-store-coupons-wrap {
    position: relative;
    padding-bottom: 5rem;
}

.theme-store-hero-wrap {
    margin-bottom: 0;
    border-radius: var(--theme-radius-lg);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    background: var(--theme-surface);
    box-shadow: 0 8px 32px rgba(var(--theme-brand-500-rgb), 0.1);
    overflow: hidden;
}

#page-store-coupons-tabs-bar {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    border-top: 1px solid rgba(var(--theme-brand-500-rgb), 0.12);
    border-radius: 0 0 var(--theme-radius-lg) var(--theme-radius-lg);
    box-shadow: 0 8px 32px rgba(var(--theme-brand-500-rgb), 0.1);
}

@media (min-width: 1200px) {
    .theme-store-hero-wrap {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: none;
    }

    #page-store-coupons-tabs-bar {
        border-top: 1px solid rgba(var(--theme-brand-500-rgb), 0.12);
    }
}

.theme-store-hero-wrap::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-brand-500), var(--theme-success-500), var(--theme-accent-blue));
}

.theme-store-hero {
    margin-bottom: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

@media (min-width: 640px) {
    .theme-store-hero { padding: 1.75rem 1.75rem 1.5rem; }
}

.theme-store-hero #page-store-coupons-hero-left {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

#page-store-coupons-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

#page-store-coupons-hero-info {
    min-width: 0;
}

#page-store-coupons-title {
    margin-top: 0.5rem;
}

#page-store-coupons-meta {
    margin-top: 0.375rem;
}

.partial-store-hero-meta-headline,
.partial-store-hero-meta-detail {
    display: inline;
}

.partial-store-hero-meta-headline::after {
    content: ' — ';
    font-weight: 400;
    color: var(--theme-text-muted);
}

#page-store-coupons-logo {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--theme-radius);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--theme-on-accent);
    background: var(--accent-logo, var(--theme-brand-600));
    box-shadow: 0 6px 20px rgba(var(--theme-brand-600-rgb), 0.22);
}

.theme-store-tabs-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(var(--theme-brand-500-rgb), 0.12);
    background: var(--theme-surface);
    padding: 0 1rem;
}

.theme-store-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

#page-store-coupons-sidebar {
    display: none;
}

#page-store-coupons-mobile-filter {
    display: none;
}

#page-store-coupons {
    --store-sticky-offset: 7rem;
    --store-tabs-sticky-offset: 4.5rem;
}

@media (min-width: 1024px) {
    .theme-store-layout {
        grid-template-columns: 17rem minmax(0, 1fr);
        align-items: start;
    }

    #page-store-coupons-sidebar {
        display: block;
        position: sticky;
        top: var(--store-sticky-offset, 7rem);
        max-height: calc(100vh - var(--store-sticky-offset, 7rem) - 1rem);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--theme-brand-500-rgb), 0.35) transparent;
    }

    #page-store-coupons-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    #page-store-coupons-sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(var(--theme-brand-500-rgb), 0.35);
    }
}

#page-store-coupons-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    text-align: right;
}

#page-store-coupons-stars .star { color: var(--theme-brand-100); }
#page-store-coupons-stars .star--filled { color: var(--theme-brand-600); }

#page-store-coupons-rating-text {
    font-size: 0.8125rem;
    color: var(--theme-text-muted);
}

#page-store-coupons-rate-link {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-brand-600);
}

#page-store-coupons-rate-link:hover { color: var(--theme-brand-600); }

@media (max-width: 1199px) {
    #page-store-coupons .theme-store-hero-wrap {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: 0;
        box-shadow: none;
    }

    #page-store-coupons .theme-breadcrumbs {
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }

    #page-store-coupons .theme-store-hero {
        padding: 0.875rem 1rem 0.75rem;
    }

    #page-store-coupons-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }

    #page-store-coupons-hero-left {
        align-items: flex-start;
        gap: 0.75rem;
    }

    #page-store-coupons-logo {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 0.6875rem;
        border-radius: 0.625rem;
        box-shadow: 0 3px 10px rgba(var(--theme-brand-600-rgb), 0.16);
    }

    #page-store-coupons-hero-info {
        flex: 1;
        min-width: 0;
        padding-top: 0.125rem;
    }

    #page-store-coupons-hero-info .theme-section-badge--glow {
        padding: 0.15rem 0.45rem;
        font-size: 0.5625rem;
        letter-spacing: 0.07em;
        box-shadow: none;
        border: 1px solid var(--theme-brand-100);
    }

    #page-store-coupons-title {
        margin-top: 0.35rem;
        font-size: 1.125rem;
        line-height: 1.25;
    }

    #page-store-coupons-title .theme-title-accent {
        display: inline;
        margin-left: 0.25rem;
        font-size: 1.125rem;
    }

    #page-store-coupons-meta {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin-top: 0.35rem;
    }

    .partial-store-hero-meta-headline {
        display: block;
        font-size: 0.8125rem;
        font-weight: 700;
        line-height: 1.35;
        color: var(--theme-brand-600);
    }

    .partial-store-hero-meta-headline::after {
        content: none;
    }

    .partial-store-hero-meta-detail {
        display: block;
        font-size: 0.75rem;
        line-height: 1.4;
        color: var(--theme-text-muted);
    }

    #page-store-coupons-hero-right {
        width: 100%;
    }

    #page-store-coupons-rating {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        width: 100%;
        padding: 0.5rem 0.625rem;
        text-align: left;
        background: var(--theme-brand-50);
        border: 1px solid var(--theme-brand-100);
        border-radius: var(--theme-radius);
    }

    #page-store-coupons-stars {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        gap: 0;
        line-height: 1;
    }

    #page-store-coupons-stars .star {
        font-size: 0.8125rem;
        line-height: 1;
    }

    #page-store-coupons-rating-text {
        flex: 1;
        min-width: 0;
        font-size: 0.75rem;
        line-height: 1.2;
        color: var(--theme-brand-600);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #page-store-coupons-rate-link {
        flex-shrink: 0;
        margin-left: auto;
        padding: 0.35rem 0.625rem;
        font-size: 0.625rem;
        line-height: 1;
        border-radius: 999px;
        background: var(--theme-surface);
        border: 1px solid rgba(var(--theme-brand-500-rgb), 0.22);
        color: var(--theme-brand-600);
        white-space: nowrap;
    }
}

@media (min-width: 640px) and (max-width: 1199px) {
    #page-store-coupons .theme-store-hero-wrap {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
}

#page-store-coupons-filter-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    z-index: 100;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 999px;
    background: var(--theme-brand-500);
    color: var(--theme-on-accent);
    box-shadow: 0 8px 24px rgba(var(--theme-brand-500-rgb), 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page-store-coupons-filter-fab.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85);
    pointer-events: none;
}

@media (min-width: 1024px) {
    #page-store-coupons-filter-fab { display: none; }
}

/* Sidebar */
.theme-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.theme-sidebar-block {
    padding: 1rem;
    border-radius: var(--theme-radius);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.14);
    background: var(--theme-surface);
    box-shadow: 0 4px 16px rgba(var(--theme-brand-500-rgb), 0.06);
}

.theme-sidebar-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
    margin-bottom: 0.75rem;
}

.theme-sidebar-text {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--theme-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-sidebar-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-brand-600);
}

.theme-sidebar-link:hover { color: var(--theme-brand-600); }

.theme-input,
.theme-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-input:focus,
.theme-select:focus {
    border-color: var(--theme-brand-500);
    box-shadow: 0 0 0 3px rgba(var(--theme-brand-500-rgb), 0.12);
}

.theme-sidebar-list {
    max-height: 11rem;
    overflow-y: auto;
}

.theme-sidebar-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.25rem;
    font-size: 0.8125rem;
    color: var(--theme-text);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s;
}

.theme-sidebar-check:hover { background: var(--theme-brand-100); }

.theme-sidebar-check input { accent-color: var(--theme-brand-500); }

.theme-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.theme-sidebar-stats li {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-radius: var(--theme-radius);
    background: var(--theme-brand-100);
}

.theme-sidebar-stats strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-text);
}

.theme-sidebar-stats span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-text-light);
}

.theme-sidebar-related {
    display: flex;
    gap: 0.5rem;
}

.theme-sidebar-related-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--theme-radius);
    background: var(--theme-brand-100);
    transition: background 0.2s;
}

.theme-sidebar-related-card:hover { background: var(--theme-brand-50); }

.partial-sidebar-related-logo {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--theme-radius);
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--theme-on-accent);
    background: var(--theme-brand-600);
}

.partial-sidebar-related-name {
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
    color: var(--theme-text);
}

.theme-sidebar-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-brand-600);
}

.theme-sidebar-links a:hover { color: var(--theme-brand-600); }

.theme-sidebar-links li + li { margin-top: 0.5rem; }

/* Stores page — logo accents removed (real logos in bordered wrap) */

/* Deals page — store logos use bordered wrap (theme palette only) */

/* Coupon reveal */
.theme-page--centered .coupon-reveal-wrap {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    min-height: auto;
    padding: 0;
}

.theme-page--centered .coupon-reveal-card {
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    box-shadow: 0 12px 40px rgba(var(--theme-brand-500-rgb), 0.12);
}

.theme-page--centered .coupon-reveal-code-box {
    background: var(--theme-success-50);
    border: 2px dashed var(--theme-success-100);
}

.theme-page--centered .coupon-reveal-code {
    color: var(--theme-text);
}

.theme-page--centered .coupon-reveal-success-text {
    color: var(--theme-success-600);
}

.theme-page--centered .coupon-reveal-success-icon {
    background: var(--theme-success-500);
    color: var(--theme-on-accent);
}

.theme-page--centered .coupon-reveal-continue.theme-btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--theme-radius);
    font-weight: 700;
    text-decoration: none;
}

.theme-page--centered .coupon-reveal-spinner {
    border-color: var(--theme-brand-100);
    border-top-color: var(--theme-brand-500);
}

.theme-page--centered .coupon-reveal-back:hover {
    background: var(--theme-surface);
    color: var(--theme-brand-600);
}

/* ============================================================
   Homepage — Hero (GrabOn-style finish, theme palette)
   ============================================================ */

#page-home #theme-hero {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--theme-surface) 0%, var(--theme-brand-50) 100%);
    border-bottom: 1px solid var(--theme-border);
}

#page-home #theme-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(48rem, 100%);
    height: 12rem;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 70% 100% at 50% 0%,
        rgba(var(--theme-brand-500-rgb), 0.1),
        transparent 70%
    );
    pointer-events: none;
}

#page-home .theme-hero-content {
    position: relative;
    z-index: 1;
}

#page-home .theme-hero-title {
    margin: 0;
    font-family: var(--theme-font-display);
    font-size: clamp(1.875rem, 4.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--theme-text);
}

#page-home .theme-hero-title span {
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#page-home .theme-hero-subtitle {
    max-width: 36rem;
    margin: 0.875rem auto 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--theme-brand-700);
}

#page-home .theme-hero-search-block {
    margin-top: 2rem;
}

#page-home .theme-search-wrap {
    margin-top: 0;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

#page-home #theme-hero-search {
    gap: 0.375rem;
    padding: 0.3125rem;
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
    border: 2px solid rgba(var(--theme-brand-500-rgb), 0.28);
    box-shadow:
        0 2px 4px rgba(var(--theme-brand-600-rgb), 0.04),
        0 16px 48px -12px rgba(var(--theme-brand-500-rgb), 0.2);
}

@media (min-width: 640px) {
    #page-home #theme-hero-search {
        flex-direction: row;
        align-items: stretch;
        border-radius: 999px;
        padding: 0.3125rem;
    }

    #page-home .theme-search-field {
        border-radius: 999px;
    }

    #page-home #theme-hero-search-btn {
        border-radius: 999px;
        min-width: 10.5rem;
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
}

#page-home .theme-search-field {
    border: none;
    background: transparent;
    padding: 0.9375rem 1.125rem;
}

#page-home .theme-search-field svg {
    color: var(--theme-brand-600);
}

#page-home .theme-search-field input {
    font-size: 1rem;
}

#page-home .theme-search-field input::placeholder {
    color: var(--theme-brand-600);
}

#page-home #theme-hero-search:focus-within {
    border-color: var(--theme-brand-500);
    box-shadow:
        0 2px 4px rgba(var(--theme-brand-600-rgb), 0.06),
        0 16px 48px -12px rgba(var(--theme-brand-500-rgb), 0.24),
        0 0 0 4px rgba(var(--theme-brand-500-rgb), 0.1);
}

#page-home #theme-hero-search-btn {
    background: var(--theme-brand-500);
    color: var(--theme-brand-50);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(var(--theme-brand-500-rgb), 0.3);
}

#page-home #theme-hero-search-btn:hover {
    background: var(--theme-brand-600);
}

#page-home .theme-popular {
    margin-top: 1rem;
    gap: 0.5rem;
}

#page-home .theme-popular-label {
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-brand-700);
}

@media (min-width: 640px) {
    #page-home .theme-popular-label {
        display: inline;
        width: auto;
        margin-bottom: 0;
    }
}

#page-home .theme-tag-link {
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.25);
    color: var(--theme-brand-700);
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: none;
}

#page-home .theme-tag-link:hover {
    border-color: var(--theme-brand-500);
    color: var(--theme-brand-600);
    background: var(--theme-brand-50);
}

#page-home .theme-hero-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2.25rem;
    margin-top: 2.5rem;
    padding: 1rem 2rem;
    border-radius: var(--theme-radius-lg);
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    box-shadow: 0 8px 32px rgba(var(--theme-brand-600-rgb), 0.07);
}

#page-home .theme-hero-stat {
    text-align: center;
    min-width: 6.5rem;
}

#page-home .theme-hero-stat-value {
    display: block;
    font-family: var(--theme-font-display);
    font-size: clamp(1.625rem, 3.5vw, 2.125rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--theme-text);
}

#page-home .theme-hero-stat-value--accent {
    color: var(--theme-brand-500);
}

#page-home .theme-hero-stat-value--muted {
    color: var(--theme-success-700);
}

#page-home .theme-hero-stat-label {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-brand-700);
}

#page-home .theme-hero-stat-divider {
    display: none;
    width: 1px;
    height: 2.25rem;
    background: var(--theme-border);
}

@media (min-width: 640px) {
    #page-home .theme-hero-stat-divider {
        display: block;
    }
}

@media (min-width: 1024px) {
    #page-home #theme-hero {
        padding: 3.5rem 0 3.25rem;
    }

    #page-home .theme-hero-search-block {
        margin-top: 2.25rem;
    }

    #page-home .theme-hero-subtitle {
        font-size: 1rem;
    }
}

#page-home #theme-stores {
    position: relative;
    padding: 3.5rem 0;
    background: var(--theme-brand-50);
    overflow: hidden;
}

#page-home #theme-stores::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(var(--theme-brand-600-rgb), 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
}

#page-home #theme-stores .theme-container {
    position: relative;
    z-index: 1;
}

#page-home .theme-store-card {
    padding: 1.5rem 0.875rem 1.25rem;
    border-radius: var(--theme-radius-lg);
    box-shadow: 0 4px 16px rgba(var(--theme-brand-600-rgb), 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page-home .theme-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(var(--card-accent-rgb), 0.16);
}

#page-home .theme-store-card:hover .theme-store-logo {
    transform: scale(1.05);
}

#page-home .theme-store-card-glow,
#page-home .theme-store-arrow {
    display: none;
}

#page-home .theme-store-card--featured {
    padding: 1.75rem 1rem 1.5rem;
    background: linear-gradient(180deg, var(--theme-brand-50) 0%, var(--theme-surface) 60%);
    box-shadow: 0 20px 44px rgba(var(--theme-brand-600-rgb), 0.2);
}

#page-home .theme-store-card--featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(var(--theme-brand-600-rgb), 0.26);
}

#page-home .theme-store-card--featured .theme-store-logo {
    width: 4.25rem;
    height: 4.25rem;
}

#page-home .theme-store-card--featured .theme-store-name {
    font-size: 0.9375rem;
}

#page-home .theme-store-rank--featured {
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    border-color: transparent;
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#page-home .theme-store-logo-wrap {
    position: relative;
    padding: 0;
    background: none;
}

#page-home .theme-store-logo {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.875rem;
    box-shadow:
        0 0 0 1px rgba(var(--card-accent-rgb), 0.12),
        0 4px 14px rgba(var(--theme-brand-600-rgb), 0.12);
}

#page-home .theme-store-rank {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.625rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
}

#page-home .theme-store-name {
    font-size: 0.875rem;
    margin-top: 0.875rem;
}

#page-home .theme-store-offer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-top: 0.625rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--theme-on-accent);
    background: var(--card-accent);
    box-shadow: 0 3px 10px rgba(var(--card-accent-rgb), 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-home .theme-store-count {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--theme-success-50);
    border: 1px solid var(--theme-success-100);
}

#page-home .theme-deal-card {
    border-left: 4px solid var(--theme-brand-500);
    border-radius: var(--theme-radius);
}

#page-home .theme-deal-card--hero {
    border-left-width: 5px;
    border-left-color: var(--theme-brand-500);
}

#page-home .theme-deal-badge {
    border-radius: 0.25rem;
    background: var(--theme-brand-500);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#page-home .theme-deal-footer {
    border-top-style: dashed;
    border-top-color: rgba(var(--theme-brand-500-rgb), 0.28);
}

#page-home .theme-deal-cta {
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.6875rem;
}

#page-home .theme-deal-cta--code {
    background: var(--theme-brand-500);
    box-shadow: 0 3px 12px rgba(var(--theme-brand-500-rgb), 0.35);
}

#page-home .theme-deal-cta--code:hover {
    background: var(--theme-brand-600);
}

#page-home .theme-deal-cta--deal {
    border-color: var(--theme-brand-500);
    color: var(--theme-brand-600);
}

#page-home .theme-deal-verified {
    background: var(--theme-success-50);
    border: 1px solid var(--theme-success-100);
}

#page-home .theme-deals-flash {
    background: rgba(var(--theme-brand-500-rgb), 0.2);
    color: var(--theme-on-accent);
}

#page-home .theme-btn-outline {
    border-radius: var(--theme-radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8125rem;
}

#page-home .theme-btn-gradient {
    border-radius: var(--theme-radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8125rem;
    background: var(--theme-brand-500);
    box-shadow: 0 6px 20px rgba(var(--theme-brand-500-rgb), 0.35);
}

#page-home .theme-btn-gradient:hover {
    background: var(--theme-brand-600);
}

/* ============================================================
   Mobile Optimizations (max-width: 639px)
   ============================================================ */

@media (max-width: 639px) {
    /* Hero section — tighter above-the-fold */
    #page-home #theme-hero {
        padding: 1.25rem 0 1.75rem;
    }

    #page-home .theme-hero-title {
        font-size: 1.5rem;
        line-height: 1.15;
    }

    #page-home .theme-hero-subtitle {
        margin-top: 0.5rem;
        font-size: 0.8125rem;
    }

    #page-home .theme-hero-search-block {
        margin-top: 1rem;
    }

    #page-home .theme-search-field {
        padding: 0.625rem 0.875rem;
    }

    #page-home #theme-hero-search-btn {
        padding: 0.625rem 1rem;
    }

    #page-home .theme-popular {
        margin-top: 0.75rem;
    }

    #page-home .theme-hero-stats {
        margin-top: 1.25rem;
        padding: 0.625rem 1rem;
        gap: 0.75rem 1.25rem;
    }

    #page-home .theme-hero-stat {
        min-width: 0;
        flex: 1 1 auto;
    }

    #page-home .theme-hero-stat-value {
        font-size: 1.125rem;
    }

    #page-home .theme-hero-stat-label {
        margin-top: 0.2rem;
        font-size: 0.5625rem;
    }

    .theme-stat-value {
        font-size: 1.5rem;
    }

    .theme-stat-label {
        font-size: 0.7rem;
    }

    /* Stores section */
    #page-home #theme-stores {
        padding: 1.5rem 0 2rem;
    }

    #page-home .theme-stores-header {
        margin-bottom: 1.25rem;
    }

    #page-home .theme-stores-header-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    #page-home .theme-stores-inline-stats {
        display: none;
    }

    #page-home .theme-section-title--lg {
        font-size: 1.25rem !important;
        margin-top: 0.375rem;
    }

    #page-home .theme-section-desc {
        font-size: 0.8125rem;
        margin-top: 0.125rem;
    }

    .theme-stores-grid {
        gap: 0.5rem;
    }

    .theme-stores-grid .theme-store-card {
        flex-basis: calc((100% - 0.5rem) / 2);
    }

    #page-home .theme-store-card,
    #page-home .theme-store-card--featured {
        padding: 0.75rem 0.5rem 0.625rem;
    }

    #page-home .theme-store-logo,
    #page-home .theme-store-card--featured .theme-store-logo {
        width: 2.625rem;
        height: 2.625rem;
        border-radius: 0.625rem;
    }

    #page-home .theme-store-name,
    #page-home .theme-store-card--featured .theme-store-name {
        font-size: 0.75rem;
        margin-top: 0.5rem;
        line-height: 1.25;
    }

    #page-home .theme-store-offer {
        margin-top: 0.25rem;
        padding: 0.125rem 0.4375rem;
        font-size: 0.625rem;
        max-width: 100%;
    }

    #page-home .theme-store-count {
        margin-top: 0.3125rem;
        padding: 0.0625rem 0.375rem;
        font-size: 0.5625rem;
    }

    .theme-store-name {
        font-size: 0.8125rem;
    }

    .theme-store-offer {
        font-size: 0.75rem;
    }

    .theme-store-count {
        font-size: 0.7rem;
    }

    .theme-section-title {
        font-size: 1.5rem !important;
    }

    .theme-section-desc {
        font-size: 0.875rem;
    }

    /* Deals section — compact top cards */
    #page-home #theme-shopping {
        padding: 1.5rem 0 2rem;
    }

    #page-home .theme-deals-header {
        margin-bottom: 1.25rem;
        gap: 1rem;
    }

    #page-home .theme-section-title--xl {
        font-size: 1.375rem;
    }

    #page-home .theme-section-desc--light {
        font-size: 0.8125rem;
    }

    .theme-deals-grid {
        gap: 0.625rem;
    }

    .theme-deal-card,
    #page-home .theme-deal-card--hero {
        border-radius: var(--theme-radius);
    }

    .theme-deal-visual,
    #page-home .theme-deal-card--hero .theme-deal-visual {
        aspect-ratio: 2 / 1;
        min-height: 0;
    }

    .theme-deal-visual-logo,
    #page-home .theme-deal-card--hero .theme-deal-visual-logo {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.3125rem;
    }

    .theme-deal-visual-logo img {
        width: 100%;
        height: 100%;
    }

    .theme-deal-badge,
    #page-home .theme-deal-card--hero .theme-deal-badge {
        top: 0.4375rem;
        left: 0.4375rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.5625rem;
        max-width: 72%;
    }

    .theme-deal-body {
        padding: 0.625rem 0.75rem 0.75rem;
    }

    .theme-deal-meta {
        margin-bottom: 0.375rem;
    }

    .theme-deal-title {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
        line-height: 1.35;
    }

    .theme-deal-footer {
        padding-top: 0.625rem;
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
    }

    .theme-deal-store-block {
        flex: 1;
        min-width: 0;
    }

    .theme-deal-store-label {
        display: none;
    }

    .theme-deal-store-name {
        font-size: 0.6875rem;
        margin-top: 0;
    }

    .theme-deal-cta {
        padding: 0.4375rem 0.625rem;
        font-size: 0.625rem;
    }

    .theme-deal-cta svg {
        width: 0.75rem;
        height: 0.75rem;
    }

    .theme-deal-category {
        font-size: 0.65rem;
    }

    .theme-deal-verified {
        font-size: 0.5625rem;
        padding: 0.125rem 0.375rem;
    }

    #page-home .theme-deals-header-left {
        gap: 0.5rem;
    }

    .theme-deals-flash {
        font-size: 0.625rem;
        padding: 0.25rem 0.625rem;
        margin-bottom: 0.375rem;
    }

    /* Buttons */
    .theme-btn-outline,
    .theme-btn-gradient {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }

    /* Search */
    .theme-search-field {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }

    .theme-search-field input {
        font-size: 0.875rem;
    }

    .theme-search-field svg {
        width: 1rem;
        height: 1rem;
    }

    #theme-hero-search-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Pills */
    .theme-pill {
        padding: 0.3rem 0.625rem;
        font-size: 0.7rem;
    }

    /* Tags */
    .theme-tag-link {
        padding: 0.3rem 0.625rem;
        font-size: 0.7rem;
    }

    /* Popular tags section */
    .theme-popular {
        gap: 0.375rem;
        font-size: 0.75rem;
    }

    .theme-popular-label {
        font-size: 0.75rem;
    }

    /* Search results dropdown */
    .theme-search-result {
        padding: 0.625rem;
    }

    .theme-search-result-logo {
        width: 24px;
        height: 24px;
    }

    .theme-search-result-name {
        font-size: 0.8125rem;
    }

    .theme-search-result-meta {
        font-size: 0.7rem;
    }

    /* Rank badges */
    .theme-store-rank {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    /* Animations - reduce on mobile for better performance */
    .theme-store-card:hover {
        transform: translateY(-2px);
    }

    .theme-deal-card:hover {
        transform: translateY(-2px);
    }

    #page-home .theme-store-card:hover {
        transform: translateY(-2px);
    }

    #page-home .theme-store-card--featured:hover {
        transform: translateY(-2px);
    }

    @media (prefers-reduced-motion: reduce) {
        .theme-section-badge-dot,
        .theme-deals-flash-pulse::before {
            animation: none;
        }

        .theme-store-card,
        .theme-deal-card,
        #page-home .theme-store-card,
        #page-home .theme-deal-card {
            transition: none;
        }
    }
}
