/* Mobile-first CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --background: #ffffff;
    --surface: #f8fafc;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #f3f4f6;
    --border-hover: #dc2626;
    --primary: #dc2626;
    --primary-hover: #b91c1c;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-hover: #ef4444;
    --primary: #ef4444;
    --primary-hover: #dc2626;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container - Mobile first with optimal ad layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.theme-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.theme-controls:hover {
    border-color: var(--border-hover);
}

.theme-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.subhead {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

#search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background-color: var(--background);
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

#search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

#search-input::placeholder {
    color: var(--text-muted);
}

/* Results Area */
.results-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Service Cards */
.service-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.25;
    z-index: 0;
    transition: all 0.2s ease;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-card:hover::before {
    opacity: 0.35;
    transform: scale(1.1);
}

/* Brand-specific backgrounds - Less faded colors */
.service-netflix {
    background: linear-gradient(135deg, var(--background) 0%, rgba(229, 9, 20, 0.08) 100%);
}
.service-netflix::before {
    background: radial-gradient(circle, #e50914 0%, #b20610 100%);
}

.service-spotify {
    background: linear-gradient(135deg, var(--background) 0%, rgba(29, 185, 84, 0.08) 100%);
}
.service-spotify::before {
    background: radial-gradient(circle, #1db954 0%, #1ed760 100%);
}

.service-disney-plus {
    background: linear-gradient(135deg, var(--background) 0%, rgba(17, 60, 207, 0.08) 100%);
}
.service-disney-plus::before {
    background: radial-gradient(circle, #113ccf 0%, #1e40af 100%);
}

.service-amazon-prime {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 153, 0, 0.08) 100%);
}
.service-amazon-prime::before {
    background: radial-gradient(circle, #ff9900 0%, #e68a00 100%);
}

.service-hulu {
    background: linear-gradient(135deg, var(--background) 0%, rgba(28, 231, 131, 0.08) 100%);
}
.service-hulu::before {
    background: radial-gradient(circle, #1ce783 0%, #14b8a6 100%);
}

.service-xbox-game-pass {
    background: linear-gradient(135deg, var(--background) 0%, rgba(16, 124, 16, 0.08) 100%);
}
.service-xbox-game-pass::before {
    background: radial-gradient(circle, #107c10 0%, #0e6b0e 100%);
}

.service-adobe-creative-cloud {
    background: linear-gradient(135deg, var(--background) 0%, rgba(218, 31, 38, 0.08) 100%);
}
.service-adobe-creative-cloud::before {
    background: radial-gradient(circle, #da1f26 0%, #c71e25 100%);
}

.service-zoom-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(45, 140, 255, 0.08) 100%);
}
.service-zoom-pro::before {
    background: radial-gradient(circle, #2d8cff 0%, #0066cc 100%);
}

.service-planet-fitness {
    background: linear-gradient(135deg, var(--background) 0%, rgba(124, 45, 18, 0.08) 100%);
}
.service-planet-fitness::before {
    background: radial-gradient(circle, #7c2d12 0%, #451a03 100%);
}

.service-youtube-premium {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 0, 0, 0.08) 100%);
}
.service-youtube-premium::before {
    background: radial-gradient(circle, #ff0000 0%, #cc0000 100%);
}

.service-la-fitness {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 102, 204, 0.08) 100%);
}
.service-la-fitness::before {
    background: radial-gradient(circle, #0066cc 0%, #004499 100%);
}

.service-esporta {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 69, 0, 0.08) 100%);
}
.service-esporta::before {
    background: radial-gradient(circle, #ff4500 0%, #cc3600 100%);
}

.service-city-sports-club {
    background: linear-gradient(135deg, var(--background) 0%, rgba(34, 139, 34, 0.08) 100%);
}
.service-city-sports-club::before {
    background: radial-gradient(circle, #228b22 0%, #1b6e1b 100%);
}

.service-siriusxm {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 0, 0, 0.08) 100%);
}
.service-siriusxm::before {
    background: radial-gradient(circle, #000000 0%, #333333 100%);
}

.service-adt {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 102, 204, 0.08) 100%);
}
.service-adt::before {
    background: radial-gradient(circle, #0066cc 0%, #004499 100%);
}

.service-xfinity {
    background: linear-gradient(135deg, var(--background) 0%, rgba(128, 0, 128, 0.08) 100%);
}
.service-xfinity::before {
    background: radial-gradient(circle, #800080 0%, #5d005d 100%);
}

.service-dazn {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 215, 0, 0.08) 100%);
}
.service-dazn::before {
    background: radial-gradient(circle, #ffd700 0%, #ccac00 100%);
}

.service-times-uk {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 0, 0, 0.08) 100%);
}
.service-times-uk::before {
    background: radial-gradient(circle, #000000 0%, #333333 100%);
}

.service-match-com {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 150, 255, 0.08) 100%);
}
.service-match-com::before {
    background: radial-gradient(circle, #0096ff 0%, #0077cc 100%);
}

.service-tinder {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 69, 58, 0.08) 100%);
}
.service-tinder::before {
    background: radial-gradient(circle, #ff453a 0%, #cc3529 100%);
}

.service-hellofresh {
    background: linear-gradient(135deg, var(--background) 0%, rgba(145, 191, 64, 0.08) 100%);
}
.service-hellofresh::before {
    background: radial-gradient(circle, #91bf40 0%, #75a033 100%);
}

.service-blue-apron {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 102, 204, 0.08) 100%);
}
.service-blue-apron::before {
    background: radial-gradient(circle, #0066cc 0%, #004499 100%);
}

.service-factor-75 {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 111, 97, 0.08) 100%);
}
.service-factor-75::before {
    background: radial-gradient(circle, #ff6f61 0%, #cc554d 100%);
}

.service-scribd {
    background: linear-gradient(135deg, var(--background) 0%, rgba(30, 126, 52, 0.08) 100%);
}
.service-scribd::before {
    background: radial-gradient(circle, #1e7e34 0%, #155724 100%);
}

.service-hp-instant-ink {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 150, 214, 0.08) 100%);
}
.service-hp-instant-ink::before {
    background: radial-gradient(circle, #0096d6 0%, #0077aa 100%);
}

.service-classpass {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 87, 51, 0.08) 100%);
}
.service-classpass::before {
    background: radial-gradient(circle, #ff5733 0%, #cc4529 100%);
}

.service-barkbox {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 165, 0, 0.08) 100%);
}
.service-barkbox::before {
    background: radial-gradient(circle, #ffa500 0%, #cc8400 100%);
}

.service-ancestry {
    background: linear-gradient(135deg, var(--background) 0%, rgba(76, 175, 80, 0.08) 100%);
}
.service-ancestry::before {
    background: radial-gradient(circle, #4caf50 0%, #388e3c 100%);
}

.service-setapp {
    background: linear-gradient(135deg, var(--background) 0%, rgba(82, 196, 26, 0.08) 100%);
}
.service-setapp::before {
    background: radial-gradient(circle, #52c41a 0%, #389e0d 100%);
}

.service-apple-one {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 122, 255, 0.08) 100%);
}
.service-apple-one::before {
    background: radial-gradient(circle, #007aff 0%, #0056cc 100%);
}

.service-dropout {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 107, 107, 0.08) 100%);
}
.service-dropout::before {
    background: radial-gradient(circle, #ff6b6b 0%, #cc5555 100%);
}

.service-playstation-plus {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 112, 209, 0.08) 100%);
}
.service-playstation-plus::before {
    background: radial-gradient(circle, #0070d1 0%, #0056a4 100%);
}

.service-rocket-money {
    background: linear-gradient(135deg, var(--background) 0%, rgba(46, 204, 113, 0.08) 100%);
}
.service-rocket-money::before {
    background: radial-gradient(circle, #2ecc71 0%, #27ae60 100%);
}

.service-trim {
    background: linear-gradient(135deg, var(--background) 0%, rgba(52, 152, 219, 0.08) 100%);
}
.service-trim::before {
    background: radial-gradient(circle, #3498db 0%, #2980b9 100%);
}

.service-hiatus {
    background: linear-gradient(135deg, var(--background) 0%, rgba(155, 89, 182, 0.08) 100%);
}
.service-hiatus::before {
    background: radial-gradient(circle, #9b59b6 0%, #8e44ad 100%);
}

.service-subscription-stopper {
    background: linear-gradient(135deg, var(--background) 0%, rgba(231, 76, 60, 0.08) 100%);
}
.service-subscription-stopper::before {
    background: radial-gradient(circle, #e74c3c 0%, #c0392b 100%);
}

.service-pocketguard {
    background: linear-gradient(135deg, var(--background) 0%, rgba(26, 188, 156, 0.08) 100%);
}
.service-pocketguard::before {
    background: radial-gradient(circle, #1abc9c 0%, #16a085 100%);
}

.service-bobby {
    background: linear-gradient(135deg, var(--background) 0%, rgba(241, 196, 15, 0.08) 100%);
}
.service-bobby::before {
    background: radial-gradient(circle, #f1c40f 0%, #f39c12 100%);
}

.service-chatgpt-plus {
    background: linear-gradient(135deg, var(--background) 0%, rgba(16, 163, 127, 0.08) 100%);
}
.service-chatgpt-plus::before {
    background: radial-gradient(circle, #10a37f 0%, #0d8a67 100%);
}

.service-claude-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(204, 142, 53, 0.08) 100%);
}
.service-claude-pro::before {
    background: radial-gradient(circle, #cc8e35 0%, #b8792e 100%);
}

.service-google-gemini {
    background: linear-gradient(135deg, var(--background) 0%, rgba(66, 133, 244, 0.08) 100%);
}
.service-google-gemini::before {
    background: radial-gradient(circle, #4285f4 0%, #3367d6 100%);
}

.service-microsoft-copilot-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 120, 212, 0.08) 100%);
}
.service-microsoft-copilot-pro::before {
    background: radial-gradient(circle, #0078d4 0%, #106ebe 100%);
}

.service-perplexity-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(32, 201, 151, 0.08) 100%);
}
.service-perplexity-pro::before {
    background: radial-gradient(circle, #20c997 0%, #1ba87a 100%);
}

.service-acrylic-studio {
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 0, 100, 0.08) 100%);
}
.service-acrylic-studio::before {
    background: radial-gradient(circle, #ff0064 0%, #cc0050 100%);
}

.service-character-ai-plus {
    background: linear-gradient(135deg, var(--background) 0%, rgba(126, 34, 206, 0.08) 100%);
}
.service-character-ai-plus::before {
    background: radial-gradient(circle, #7e22ce 0%, #6b21a8 100%);
}

.service-donotpay {
    background: linear-gradient(135deg, var(--background) 0%, rgba(59, 130, 246, 0.08) 100%);
}
.service-donotpay::before {
    background: radial-gradient(circle, #3b82f6 0%, #2563eb 100%);
}

.service-duolingo-plus {
    background: linear-gradient(135deg, var(--background) 0%, rgba(88, 204, 2, 0.08) 100%);
}
.service-duolingo-plus::before {
    background: radial-gradient(circle, #58cc02 0%, #4caf50 100%);
}

.service-canva-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 193, 207, 0.08) 100%);
}
.service-canva-pro::before {
    background: radial-gradient(circle, #00c1cf 0%, #00a0ac 100%);
}

.service-deepl-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(0, 47, 167, 0.08) 100%);
}
.service-deepl-pro::before {
    background: radial-gradient(circle, #002fa7 0%, #001f7d 100%);
}

.service-elevenlabs-premium {
    background: linear-gradient(135deg, var(--background) 0%, rgba(139, 69, 19, 0.08) 100%);
}
.service-elevenlabs-premium::before {
    background: radial-gradient(circle, #8b4513 0%, #654321 100%);
}

.service-murf-ai-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(99, 102, 241, 0.08) 100%);
}
.service-murf-ai-pro::before {
    background: radial-gradient(circle, #6366f1 0%, #4f46e5 100%);
}

.service-jasper-ai {
    background: linear-gradient(135deg, var(--background) 0%, rgba(139, 92, 246, 0.08) 100%);
}
.service-jasper-ai::before {
    background: radial-gradient(circle, #8b5cf6 0%, #7c3aed 100%);
}

.service-synthesia-pro {
    background: linear-gradient(135deg, var(--background) 0%, rgba(253, 186, 116, 0.08) 100%);
}
.service-synthesia-pro::before {
    background: radial-gradient(circle, #fdba74 0%, #fb923c 100%);
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.last-checked {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cancel Button */
.cancel-button {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.cancel-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.cancel-button:active {
    transform: translateY(0);
}

/* Fallback Steps */
.fallback-steps {
    margin-top: 0.75rem;
}

.fallback-steps h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.fallback-steps ol {
    padding-left: 1rem;
    color: var(--text-secondary);
}

.fallback-steps li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-size: 0.85rem;
}

/* Service Links */
.service-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.link-placeholder {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.link-placeholder:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Results Header */
.results-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Messages */
.no-results,
.error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.error {
    color: var(--primary);
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
}

/* Ad Placeholders */
.ad-placeholder {
    background: linear-gradient(45deg, var(--surface) 0%, var(--border) 100%);
    border: 3px dashed var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.2s ease;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.ad-placeholder:hover {
    opacity: 1;
    transform: scale(1.01);
}

.ad-content {
    text-align: center;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
}

.ad-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.ad-text {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
}

/* Top Banner Ad */
.ad-top-banner {
    width: 100%;
    height: 80px;
    margin-bottom: 1rem;
    display: flex; /* Always visible now */
}

/* Content Wrapper for Layout */
.content-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Sidebar Ads */
.ad-sidebar {
    width: 80px;
    height: 300px;
    position: sticky;
    top: 1rem;
    display: flex; /* Always show now */
    flex-shrink: 0;
}

.ad-sidebar .ad-text {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Optimal AdSense Layout - Prevents layout shift */
.ad-wrapper {
    width: 100%;
    margin: 2rem 0;
    padding: 1rem 0;
    text-align: center;
    min-height: 280px; /* Prevent layout shift */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    position: relative;
}

[data-theme="dark"] .ad-wrapper {
    background: rgba(255, 255, 255, 0.02);
}

/* Removed placeholder text for production */

/* Ad Unit 1: Primary ad below results (most important) */
.ad-primary {
    margin-top: 3rem;
    margin-bottom: 2rem;
    min-height: 300px; /* Larger for primary placement */
}

/* Ad Unit 2: Footer ad (secondary) */
.ad-footer {
    margin-top: 4rem;
    margin-bottom: 2rem;
    min-height: 250px;
}

/* Ad Unit 3: Secondary ad (100px placeholder) - FORCE OVERRIDE */
.ad-wrapper.ad-secondary {
    width: 100% !important;
    margin: 1rem 0 !important;
    padding: 0 !important;
    text-align: center;
    min-height: 100px !important;
    max-height: 100px !important;
    height: 100px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    position: relative;
}

/* Responsive ad behavior */
.ad-wrapper .adsbygoogle {
    width: 100% !important;
    max-width: 100% !important;
}

/* Horizontal Ads Between Cards */
.ad-horizontal {
    width: 100%;
    height: 100px;
    margin: 2rem 0;
    grid-column: 1 / -1; /* Spans full width in grid */
}

/* Footer */
footer {
    margin-top: 2rem;
    padding: 2rem 0 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.disclaimer a {
    color: var(--text-muted);
    text-decoration: underline;
}

.disclaimer a:hover {
    color: var(--text-secondary);
}

/* Mobile optimizations for ads */
@media (max-width: 768px) {
    .ad-wrapper:not(.ad-secondary) {
        min-height: 250px;
        margin: 1.5rem 0;
    }
    
    .ad-primary {
        min-height: 280px;
        margin-top: 2rem;
    }
    
    .ad-footer {
        min-height: 200px;
        margin-top: 3rem;
    }
    
    .ad-wrapper.ad-secondary {
        min-height: 100px !important; /* 100px placeholder on mobile */
        max-height: 100px !important; /* Fixed size */
        height: 100px !important; /* Exact height */
        margin: 0.75rem 0 !important; /* Standard mobile margins */
        padding: 0 !important;
    }
}

/* Tablet styles */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 2rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .subhead {
        font-size: 1.125rem;
    }
    
    .service-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .cancel-button {
        display: inline-block;
        width: auto;
        margin-bottom: 1rem;
    }
    
    /* Sidebar ads show on tablet+ */
    .ad-sidebar {
        display: flex;
        width: 100px;
        height: 300px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .results-area {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .cancel-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.125rem;
    }
    
    /* Larger sidebar ads on desktop */
    .ad-sidebar {
        display: flex;
        width: 160px;
        height: 600px;
    }
    
    /* Increase container width to accommodate sidebars */
    .content-wrapper {
        gap: 2rem;
    }
}

/* Focus styles for accessibility */
.cancel-button:focus,
.link-placeholder:focus,
.theme-toggle:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

.theme-controls:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

#search-input:focus {
    outline: none;
}

/* Legal pages styling */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-section {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.legal-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1rem 0 1rem 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

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

.disclaimer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.disclaimer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 1rem 0;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}