/*
Theme Name: AdSense Tools Pro
Theme URI: https://adsensetoolspro.com
Author: AdSense Tools Pro
Author URI: https://adsensetoolspro.com
Description: A professional WordPress theme with built-in AdSense calculator tools, modern SaaS-style UI, dark/light mode, full blog system, and AdSense-optimized layout. Perfect for monetization blogs and AdSense education sites.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adsense-tools-pro
Tags: blog, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, editor-style, dark-mode, light-mode
*/

/* ===================================================
   AdSense Tools Pro - Main Stylesheet
   =================================================== */

/* CSS Variables - Light Mode */
:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #3730a3;
    --color-primary-light: #818cf8;
    --color-secondary: #06b6d4;
    --color-secondary-dark: #0891b2;
    --color-accent: #f59e0b;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;

    --color-bg: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-input: #f1f5f9;
    --color-bg-code: #f1f5f9;

    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;

    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e40af 100%);
    --gradient-card: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(79, 70, 229, 0.08);
    --shadow-hover: 0 8px 30px rgba(79, 70, 229, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 70px;
    --sidebar-width: 320px;
    --container-max: 1200px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --color-bg: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-card: #1e293b;
    --color-bg-input: #0f172a;
    --color-bg-code: #0f172a;

    --color-text: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    --color-border: #334155;
    --color-border-light: #1e293b;

    --gradient-card: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(79, 70, 229, 0.25);
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; color: var(--color-text-secondary); line-height: 1.75; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
strong, b { font-weight: 700; color: var(--color-text); }
em, i { font-style: italic; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.4rem; color: var(--color-text-secondary); }

blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-bg-input);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

code {
    font-family: var(--font-mono);
    background: var(--color-bg-code);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    color: var(--color-primary);
}

pre {
    background: var(--color-bg-code);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

pre code { background: none; padding: 0; color: inherit; }

hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { font-weight: 600; background: var(--color-bg-input); color: var(--color-text); }
tr:hover { background: var(--color-bg-input); }

img { max-width: 100%; height: auto; display: block; }

/* ===================================================
   LAYOUT
   =================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding: 2.5rem 0; }

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

.with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2rem;
    align-items: start;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    color: white;
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

.btn-calculate {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.btn-reset {
    width: 100%;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    background: var(--color-bg-input);
    color: var(--color-text-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-reset:hover {
    background: var(--color-border);
    color: var(--color-text);
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
}

.site-title span { color: var(--color-primary); }

.main-nav { flex: 1; display: flex; justify-content: center; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}

.nav-menu li { position: relative; }

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.08);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    color: var(--color-text);
}

.theme-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: rotate(15deg);
}

.header-search-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--color-text-secondary);
}

.header-search-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-card);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav .nav-menu {
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav .nav-menu a {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.mobile-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-bg-input);
    padding: 0.25rem 0 0.25rem 1rem;
    margin-top: 0.25rem;
}

/* Header Ad */
.header-ad-bar {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    text-align: center;
}

/* ===================================================
   HERO SECTIONS
   =================================================== */
.page-hero {
    background: var(--gradient-hero);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.page-hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ===================================================
   CARDS
   =================================================== */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    flex-shrink: 0;
}

.card-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.card-subtitle { font-size: 0.85rem; color: var(--color-text-secondary); margin: 0; }

/* Tool Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--color-primary-light);
}

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    margin-bottom: 1.25rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.tool-card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

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

/* ===================================================
   CALCULATOR STYLES
   =================================================== */
.calculator-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.calculator-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.calculator-header {
    background: var(--gradient-primary);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.calculator-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.calculator-header h2 {
    color: white;
    margin: 0 0 0.25rem;
    font-size: 1.375rem;
}

.calculator-header p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.9rem; }

.calculator-body { padding: 2rem; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-label .label-icon { font-size: 1rem; }

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-input);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg-card);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder { color: var(--color-text-muted); }

.input-group { position: relative; }

.input-prefix, .input-suffix {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.input-prefix { left: 0.875rem; }
.input-suffix { right: 0.875rem; }
.input-group .form-input.has-prefix { padding-left: 2rem; }
.input-group .form-input.has-suffix { padding-right: 2rem; }

.form-hint {
    font-size: 0.775rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.btn-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Results Section */
.results-section {
    margin-top: 1.5rem;
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-section.visible { display: block; }

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

.results-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.results-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-text);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.result-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

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

.result-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.result-value.success { color: var(--color-success); }
.result-value.warning { color: var(--color-warning); }

.result-unit {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.result-highlight {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.result-highlight .result-label,
.result-highlight .result-unit,
.result-highlight .result-value { color: rgba(255,255,255,0.9); }
.result-highlight .result-value { color: white; font-size: 2rem; }

/* Summary box */
.result-summary {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.result-summary strong { color: var(--color-primary); font-weight: 700; }

/* Formula box */
.formula-box {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.formula-box h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.formula-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.375rem;
    background: var(--color-bg-card);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

/* Range Slider */
.range-wrapper { display: flex; flex-direction: column; gap: 0.5rem; }

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

.range-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background: var(--color-border);
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

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

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
}

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-body { padding: 1.5rem; }

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.post-meta-item { display: flex; align-items: center; gap: 0.35rem; }

.post-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.post-title a {
    color: var(--color-text);
    transition: var(--transition-fast);
}

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

.post-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.post-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.read-more:hover { gap: 0.5rem; }

/* Single Post */
.single-post { max-width: 760px; }

.post-header { margin-bottom: 2.5rem; }

.post-header .post-meta { margin-bottom: 1.25rem; font-size: 0.875rem; }

.post-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }

.post-header .post-excerpt-lead {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-featured-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.post-featured-image img { width: 100%; }

.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.post-content h2, .post-content h3, .post-content h4 {
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

/* Table of Contents */
.toc-box {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list { list-style: none; padding: 0; margin: 0; }

.toc-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border-light);
    margin: 0;
}

.toc-list li:last-child { border-bottom: none; }

.toc-list a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.toc-list a:hover { color: var(--color-primary); padding-left: 0.5rem; }

.toc-list .toc-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 20px;
}

/* Author Box */
.author-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-card);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--color-border);
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.author-info h4 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.author-info .author-role {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.author-info p { font-size: 0.9rem; margin: 0; }

/* Related Posts */
.related-posts { margin-top: 3rem; }
.related-posts h3 { font-size: 1.375rem; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { color: var(--color-border); }
.breadcrumbs .current { color: var(--color-text); font-weight: 600; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: var(--color-bg-input);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.775rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
}

.tag-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Post Share */
.post-share { display: flex; align-items: center; gap: 0.75rem; margin: 2rem 0; flex-wrap: wrap; }
.post-share span { font-size: 0.875rem; font-weight: 700; color: var(--color-text-secondary); }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===================================================
   SIDEBAR
   =================================================== */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget ul { list-style: none; padding: 0; margin: 0; }

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
    margin: 0;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.widget ul li a:hover { color: var(--color-primary); }

.widget-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--color-bg-input);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    padding: 0 6px;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-input);
    color: var(--color-text);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-form button {
    padding: 0.625rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-form button:hover { opacity: 0.85; }

/* Ad Widget */
.ad-widget {
    background: var(--color-bg-input);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ===================================================
   PAGINATION
   =================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ===================================================
   COMMENTS
   =================================================== */
.comments-area { margin-top: 3rem; }

.comments-title {
    font-size: 1.375rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.comment-list { list-style: none; padding: 0; }

.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.comment-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.comment-author-name { font-weight: 700; color: var(--color-text); margin-right: 0.5rem; }
.comment-content p { margin: 0; font-size: 0.9rem; }

.comment-reply a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.5rem;
    display: inline-block;
}

/* Comment Form */
.comment-form { margin-top: 2rem; }
.comment-form h3 { margin-bottom: 1.5rem; font-size: 1.25rem; }

.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-input);
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-fast);
    resize: vertical;
}

.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.comment-form textarea { min-height: 130px; }

/* ===================================================
   AD ZONES
   =================================================== */
.ad-zone {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-bg-secondary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.ad-zone-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

[data-theme="dark"] .site-footer { background: #0f172a; }

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 2rem;
}

.footer-brand .site-branding { margin-bottom: 1rem; }
.footer-brand .site-title { color: white; }
.footer-brand .site-title span { color: var(--color-primary-light); }

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.footer-social { display: flex; gap: 0.75rem; }

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col ul li {
    padding: 0.35rem 0;
    border: none;
    margin: 0;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-col ul li a:hover { color: white; padding-left: 0.3rem; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #64748b; }
.footer-bottom-links a:hover { color: white; }

/* Footer Ad */
.footer-ad { padding: 1.5rem 0; border-top: 1px solid #334155; text-align: center; }

/* ===================================================
   HOME PAGE
   =================================================== */
.home-hero {
    background: var(--gradient-hero);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(79,70,229,0.3) 0%, transparent 70%);
}

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

.home-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.home-hero h1 .gradient-text {
    background: linear-gradient(135deg, #a5f3fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    max-width: 580px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

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

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* Sections */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(79,70,229,0.1);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(79,70,229,0.2);
}

.section-title { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.0625rem; color: var(--color-text-secondary); max-width: 550px; margin: 0 auto; }

/* Features Section */
.features-section { padding: 5rem 0; background: var(--color-bg); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    margin-bottom: 1.25rem;
    background: var(--gradient-primary);
    color: white;
}

.feature-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; margin: 0; }

/* Tools Section */
.tools-section { padding: 5rem 0; background: var(--color-bg-secondary); }

/* Blog Section */
.blog-section { padding: 5rem 0; }

/* Stats Section */
.stats-section { padding: 5rem 0; background: var(--gradient-primary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card { color: white; }
.stat-value { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.25rem; line-height: 1; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* CTA Section */
.cta-section { padding: 5rem 0; text-align: center; }

.cta-box {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content { position: relative; z-index: 1; }
.cta-box h2 { color: white; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* ===================================================
   RPM COUNTRY TABLE
   =================================================== */
.country-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.country-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
}

.country-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
}

.country-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.country-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }

.country-table td {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    vertical-align: middle;
}

.country-table tr:last-child td { border-bottom: none; }
.country-table tr:hover td { background: var(--color-bg-input); }

.country-flag { font-size: 1.25rem; margin-right: 0.5rem; }
.country-name { font-weight: 600; color: var(--color-text); }

.rpm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.rpm-high { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.rpm-medium { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.rpm-low { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }

/* ===================================================
   FAQ SCHEMA
   =================================================== */
.faq-section { margin: 3rem 0; }

.faq-section h2 { margin-bottom: 1.5rem; }

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: var(--color-primary-light); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    gap: 1rem;
    transition: var(--transition-fast);
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer { max-height: 500px; }

/* ===================================================
   ALERT / NOTICE BOX
   =================================================== */
.alert {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--color-secondary);
    color: var(--color-text);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--color-success);
    color: var(--color-text);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--color-warning);
    color: var(--color-text);
}

.alert-icon { font-size: 1.25rem; flex-shrink: 0; }

/* ===================================================
   SEARCH OVERLAY
   =================================================== */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-overlay.active { display: flex; }

.search-modal {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    margin: 0 1rem;
}

.search-modal input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    background: var(--color-bg-input);
    color: var(--color-text);
    outline: none;
}

/* ===================================================
   PROGRESS BAR (for simulator)
   =================================================== */
.progress-bar-wrap {
    background: var(--color-border);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================================
   UTILS
   =================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

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

.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-muted { color: var(--color-text-muted); }

.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-primary { background: rgba(79,70,229,0.1); color: var(--color-primary); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--color-success); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--color-warning); }

/* ===================================================
   404 PAGE
   =================================================== */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.error-404-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1100px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .with-sidebar { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-nav { display: block; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
    :root { --sidebar-width: 100%; }
}

@media (max-width: 700px) {
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .comment-form-fields { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .btn-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    :root { --container-max: 100%; }
    .container { padding: 0 1rem; }
    .card { padding: 1.25rem; }
    .calculator-body { padding: 1.25rem; }
    .results-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   PRINT STYLES
   =================================================== */
@media print {
    .site-header, .site-footer, .sidebar, .ad-zone, .pagination { display: none; }
    .with-sidebar { grid-template-columns: 1fr; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; }
}

/* ===================================================
   WORDPRESS CORE
   =================================================== */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-quote { border-left: 4px solid var(--color-primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--color-bg-input); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.wp-block-code { font-family: var(--font-mono); background: var(--color-bg-code); padding: 1.5rem; border-radius: var(--radius-lg); overflow-x: auto; border: 1px solid var(--color-border); }
.wp-block-table table { border: 1px solid var(--color-border); }
.aligncenter { margin: 1.5rem auto; display: block; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
img.lazy { opacity: 0; transition: opacity 0.5s ease; }
img.loaded { opacity: 1; }
