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

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --background: #f1f5f9;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo a {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo a:hover {
    opacity: 0.8;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
    margin: 0 6px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Main Content */
.main {
    flex: 1;
    padding: 48px 0;
}

/* Hero Section */
.intro {
    text-align: center;
    margin-bottom: 48px;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fae8ff 100%);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.intro h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
}

.intro p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
}

/* Countries Grid */
.countries-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.country-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.country-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

.country-card:hover::before {
    transform: scaleX(1);
}

.country-flag {
    width: 56px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-info {
    flex: 1;
    min-width: 0;
}

.country-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.country-info .phone-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-info .phone-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
}

.country-arrow {
    color: var(--text-muted);
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.country-card:hover .country-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* Numbers List Page */
.country-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.country-header .country-flag {
    width: 72px;
    height: 52px;
    border-radius: var(--radius-md);
}

.country-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.numbers-list {
    display: grid;
    gap: 12px;
}

.number-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-smooth);
    position: relative;
}

.number-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), #8b5cf6);
    border-radius: 0 4px 4px 0;
    transition: height var(--transition-smooth);
}

.number-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.number-card:hover::after {
    height: 60%;
}

.number-phone {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.number-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.message-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Inbox Page */
.inbox-header {
    background: linear-gradient(135deg, var(--surface) 0%, #fafafa 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.inbox-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6, #ec4899);
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.phone-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fae8ff 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.phone-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    flex: 1;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

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

.copy-btn.copied {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.copy-icon {
    font-size: 1rem;
}

.inbox-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 3px var(--success-light);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Messages */
.messages-list {
    display: grid;
    gap: 16px;
}

.message-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-smooth);
    position: relative;
}

.message-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.message-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), #8b5cf6);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.message-sender {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-sender::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.message-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.message-content {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
    word-break: break-word;
}

.message-content .code {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
    border: 1px solid #fcd34d;
}

.no-messages {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
}

.no-messages .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-messages p {
    font-size: 1.1rem;
}

.refresh-notice {
    text-align: center;
    margin-top: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: 1px solid #bae6fd;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer .disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px;
    gap: 16px;
}

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

.loading-text {
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .header,
    .footer {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-wrapper {
        width: 100%;
        max-width: 100vw;
        padding: 0;
        box-sizing: border-box;
    }

    .page-wrapper .main {
        width: 100%;
        max-width: 100%;
        padding: 24px 0;
        min-height: auto;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .page-wrapper {
        padding: 0 16px;
    }

    .main {
        padding: 32px 0;
    }

    .intro {
        padding: 24px 16px;
        margin-bottom: 32px;
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--radius-lg);
    }

    .intro h2 {
        font-size: 1.75rem;
        word-wrap: break-word;
    }

    .intro p {
        font-size: 0.95rem;
    }

    .countries-grid {
        gap: 12px;
        width: 100%;
    }

    .country-card {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .country-header {
        padding: 20px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .country-header h2 {
        font-size: 1.35rem;
        word-wrap: break-word;
    }

    .numbers-list {
        width: 100%;
    }

    .number-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .number-phone {
        font-size: 1rem;
        word-break: break-all;
    }

    .number-meta {
        width: 100%;
        justify-content: space-between;
    }

    .inbox-header {
        padding: 24px 16px;
        margin-left: 0;
        margin-right: 0;
    }

    .phone-info {
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }

    .phone-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .phone-info h2 {
        width: 100%;
        font-size: 1rem;
        order: 3;
        word-break: break-all;
    }

    .copy-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .messages-list {
        width: 100%;
    }

    .message-card {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .message-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .refresh-notice {
        margin-left: 0;
        margin-right: 0;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .copy-btn,
    .refresh-notice {
        display: none;
    }

    .main {
        padding: 0;
    }

    .message-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* ============================================
   ADVERTISEMENT STYLES
   ============================================ */

/* Page wrapper for sidebar layout */
.page-wrapper {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.page-wrapper .main {
    flex: 1;
    min-width: 0;
    max-width: 1200px;
    min-height: 800px;
    padding: 48px 0;
    margin: 0 auto;
    width: 100%;
}

.main-content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* Header Ad - Fixed height to prevent CLS */
.ad-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: center;
    min-height: 114px;
    /* 90px ad + 24px padding */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Sidebar Ads - Using 300x600 (Half Page) for best CPM */
.ad-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding-top: 48px;
    min-width: 300px;
    /* Prevent collapse */
}

.ad-sidebar-left {
    order: -1;
}

.ad-sidebar-right {
    order: 1;
}

.ad-sticky {
    position: sticky;
    top: 100px;
}

/* Ad Container Styles - Fixed dimensions to prevent CLS */
.ad-container {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Contain layout to prevent shifts */
    contain: layout style;
}

/* Horizontal ads - 728x90 Leaderboard (header, bottom) */
.ad-horizontal {
    width: 100%;
    max-width: 728px;
    height: 90px;
    min-height: 90px;
    margin: 0 auto;
}

.ad-horizontal-bottom {
    width: 100%;
    max-width: 728px;
    height: 90px;
    min-height: 90px;
    margin: 0 auto;
}

/* Vertical ads - 300x600 Half Page (sidebars) */
.ad-vertical {
    width: 300px;
    min-width: 300px;
    height: 600px;
    min-height: 600px;
}

/* Ad Placeholder - Reserve space before ad loads */
.ad-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ezoic placeholder divs - ensure they take full space */
[id^="ezoic-pub-ad-placeholder"] {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.ad-label {
    padding: 4px 12px;
    background: var(--border-color);
    border-radius: 4px;
    font-weight: 500;
}

/* Bottom Sticky Ad - Fixed height */
.ad-bottom-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 114px;
    /* 90px ad + 24px padding */
}

/* Adjust footer padding when bottom ad is present */
body:has(.ad-bottom-sticky) .footer {
    padding-bottom: 130px;
}

/* ============================================
   RESPONSIVE AD STYLES
   ============================================ */

/* Hide sidebars on smaller screens (need 300+900+300+gaps = ~1600px for both) */
@media (max-width: 1400px) {
    .ad-sidebar-left {
        display: none;
    }
}

@media (max-width: 1100px) {
    .ad-sidebar {
        display: none;
    }

    .page-wrapper {
        padding: 0 16px;
        width: 100%;
    }

    .page-wrapper .main {
        padding: 32px 0;
        max-width: 100%;
        width: 100%;
    }

    .main-content {
        padding: 0;
        min-height: 400px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Adjust header ad for tablets - maintain min-height to prevent CLS */
@media (max-width: 768px) {

    .ad-horizontal,
    .ad-horizontal-bottom {
        max-width: 100%;
        height: 60px;
        min-height: 60px;
    }

    .ad-header {
        padding: 8px 12px;
        min-height: 76px;
        /* 60px ad + 16px padding */
    }

    .ad-bottom-sticky {
        padding: 8px 12px;
        min-height: 76px;
        /* 60px ad + 16px padding */
    }

    body:has(.ad-bottom-sticky) .footer {
        padding-bottom: 100px;
    }
}

/* Smaller ads on mobile - maintain min-height to prevent CLS */
@media (max-width: 480px) {

    .ad-horizontal,
    .ad-horizontal-bottom {
        height: 50px;
        min-height: 50px;
    }

    .ad-header {
        min-height: 66px;
        /* 50px ad + 16px padding */
    }

    .ad-bottom-sticky {
        min-height: 66px;
        /* 50px ad + 16px padding */
    }

    .container {
        padding: 0 12px;
    }

    .main-content {
        padding: 0 12px;
    }

    .intro {
        padding: 20px 12px;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    .country-card {
        padding: 16px;
        gap: 12px;
    }

    .country-flag {
        width: 48px;
        height: 34px;
    }

    .country-info h3 {
        font-size: 1rem;
    }

    .number-card {
        padding: 16px;
    }

    .inbox-header {
        padding: 20px 12px;
    }

    .message-card {
        padding: 16px;
    }

    .header {
        padding: 16px 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .footer {
        padding: 24px 0;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Print: Hide all ads */
@media print {

    .ad-header,
    .ad-sidebar,
    .ad-bottom-sticky {
        display: none !important;
    }

    .page-wrapper {
        display: block;
    }

    .page-wrapper .main {
        padding: 0;
    }
}

/* ============================================
   STATIC PAGES (FAQ, How It Works, etc.)
   ============================================ */

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fae8ff 100%);
    border-radius: var(--radius-xl);
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.page-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* FAQ Styles */
.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: all var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 40px;
}

/* How It Works Page */
.steps-list {
    display: grid;
    gap: 24px;
    counter-reset: step;
}

.step-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    gap: 24px;
    transition: all var(--transition-smooth);
    position: relative;
}

.step-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Privacy / Legal Pages */
.legal-content {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content .last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* CTA Section */
.cta-section {
    margin-top: 48px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
}

.cta-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: white;
    color: var(--primary-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    margin-top: 48px;
}

/* Features Grid */
.features-section {
    margin-top: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fae8ff 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tips Section */
.tips-section {
    margin-top: 48px;
}

.tips-list {
    display: grid;
    gap: 16px;
}

.tip-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-smooth);
}

.tip-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.tip-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.tip-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tip-item strong {
    color: var(--text-primary);
}

/* API Documentation Styles */
.section-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.api-notice {
    margin-bottom: 32px;
}

.notice-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid;
}

.notice-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.notice-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #3b82f6;
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.notice-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.api-preview {
    margin-top: 32px;
}

.api-endpoint {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-color);
}

.method {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method.get {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.method.post {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.endpoint-url {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: none;
    padding: 0;
}

.endpoint-description {
    padding: 16px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
}

.code-header {
    padding: 10px 20px;
    background: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.code-block pre {
    padding: 16px 20px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Pricing Cards */
.pricing-preview {
    margin-top: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pricing-card li {
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: '';
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive for static pages */
@media (max-width: 768px) {
    .page-header {
        padding: 24px 20px;
        margin-bottom: 32px;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        padding-left: 0;
        margin-top: 8px;
    }

    .step-item {
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.25rem;
    }

    .legal-content {
        padding: 24px;
    }

    .cta-section {
        padding: 32px 24px;
    }

    .cta-section h3 {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 16px;
    }

    .footer-links {
        gap: 16px;
    }
}