/* ==========================================================================
   Traffic-Checker.com - Ultra-Fast LiteSpeed CSS Framework
   Zero Dependencies • Responsive • High-Performance Modern Architecture
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --dark-muted: #334155;
    --gray-bg: #f8fafc;
    --gray-border: #e2e8f0;
    --gray-text: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::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-stack);
    background-color: var(--gray-bg);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--dark-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0f172a;
    word-break: break-all;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

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

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.my-3 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.my-4 { margin-top: 2rem; margin-bottom: 2rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.p-0 { padding: 0 !important; }

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-logo:hover {
    color: var(--dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.logo-text .highlight {
    color: var(--primary);
}

.logo-badge {
    background: #dbeafe;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--dark-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

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

.nav-cta {
    margin-left: 8px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

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

.btn-outline {
    background: var(--white);
    border-color: var(--gray-border);
    color: var(--dark-muted);
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Main Content Area */
.site-main {
    flex: 1 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 55px 0 45px 0;
    background: radial-gradient(circle at 50% 10%, #eff6ff 0%, #f8fafc 80%);
    border-bottom: 1px solid var(--gray-border);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 20px;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 32px auto;
    color: var(--dark-muted);
}

/* Search Card */
.search-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 8px 6px 14px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    background: var(--white);
}

.search-icon {
    color: var(--gray-text);
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    color: var(--dark);
    outline: none;
    font-family: inherit;
    padding: 8px 0;
}

.btn-search {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.spinner-icon {
    animation: spin 0.8s linear infinite;
}

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

.sample-domains {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--gray-border);
}

.sample-label {
    font-size: 0.82rem;
    color: var(--gray-text);
    font-weight: 600;
}

.sample-badge {
    background: #f1f5f9;
    color: var(--dark-muted);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sample-badge:hover {
    background: #dbeafe;
    color: var(--primary);
}

/* Trust Stats */
.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 820px;
    margin: 40px auto 0 auto;
}

.trust-stat {
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
}

.trust-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
}

.trust-stat-label {
    font-size: 0.8rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Sections General */
.section {
    padding: 55px 0;
}

.bg-light {
    background-color: var(--white);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.section-header {
    margin-bottom: 36px;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 6px;
    display: inline-block;
}

.section-title {
    font-size: 1.95rem;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-text);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* Recent Grid */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.recent-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.recent-favicon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    border: 1px solid var(--gray-border);
}

.recent-info {
    flex: 1;
}

.recent-domain {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 3px;
}

.recent-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.meta-visits {
    color: var(--success);
    font-weight: 600;
}

.meta-rank {
    color: var(--gray-text);
}

.recent-arrow {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 22px;
}

.feature-card {
    background: var(--white);
    padding: 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.bg-blue { background: #dbeafe; color: #1e40af; }
.bg-green { background: #d1fae5; color: #065f46; }
.bg-purple { background: #ede9fe; color: #5b21b6; }
.bg-orange { background: #ffedd5; color: #9a3412; }
.bg-teal { background: #ccfbf1; color: #115e59; }
.bg-red { background: #fee2e2; color: #991b1b; }

.feature-title {
    font-size: 1.18rem;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.92rem;
    margin-bottom: 0;
    color: var(--gray-text);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    position: relative;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.step-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Articles Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.article-read {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.article-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--dark);
}

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

.article-card-desc {
    font-size: 0.9rem;
    color: var(--gray-text);
    flex: 1;
    margin-bottom: 16px;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--gray-border);
    font-size: 0.85rem;
}

.article-date {
    color: var(--gray-text);
}

.read-more-link {
    font-weight: 600;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--gray-text);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
    color: var(--dark-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Ad Unit Containers - Fully Compliant with Google AdSense Guidelines */
.ad-container-wrapper {
    margin: 18px auto;
    text-align: center;
    max-width: 100%;
}

.ad-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.ad-box {
    display: inline-block;
    max-width: 100%;
    min-height: 50px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 6px;
    overflow: hidden;
    text-align: center;
}

/* Specific Dimension Classes */
.ad-size-728-90 .ad-box { width: 100%; max-width: 728px; min-height: 90px; }
.ad-size-468-60 .ad-box { width: 100%; max-width: 468px; min-height: 60px; }
.ad-size-300-250 .ad-box { width: 300px; min-height: 250px; }
.ad-size-336-280 .ad-box { width: 100%; max-width: 336px; min-height: 280px; }
.ad-size-320-50 .ad-box { width: 320px; min-height: 50px; }
.ad-size-160-600 .ad-box { width: 160px; min-height: 600px; }

.ad-placeholder {
    padding: 16px 20px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ad-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ad-placeholder-inner strong {
    font-size: 0.88rem;
    color: #334155;
}

.ad-placeholder-inner small {
    font-size: 0.72rem;
    color: #94a3b8;
}

.ad-wrapper-top {
    padding-top: 12px;
}

.ad-wrapper-bottom {
    padding-bottom: 20px;
}

/* Cards & Generic Components */
.card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-border);
    background: #fbfcfe;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--gray-text);
}

.card-body {
    padding: 20px;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-border);
}

.data-table th {
    background: #f8fafc;
    color: var(--dark-muted);
    font-weight: 600;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: var(--gray-text);
}

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

.breadcrumbs span {
    color: var(--dark);
    font-weight: 600;
}

/* Report Page Styling */
.report-page {
    padding: 25px 0 50px 0;
}

.report-header-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.report-header-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.domain-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.domain-favicon {
    width: 40px;
    height: 40px;
}

.avatar-fallback {
    position: absolute;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
}

.domain-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-online {
    background: #d1fae5;
    color: #065f46;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.category-badge, .speed-badge, .geo-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: #f1f5f9;
    color: var(--dark-muted);
    border-radius: 6px;
    font-weight: 500;
}

.domain-headline {
    font-size: 1.85rem;
    margin-bottom: 4px;
}

.site-live-title {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.site-live-desc {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 6px;
    max-width: 720px;
}

.domain-subline {
    font-size: 0.82rem;
    color: var(--gray-text);
    margin-bottom: 0;
}

.error-card-wrap {
    border: 1px dashed #cbd5e1;
    background: #fff;
    border-radius: var(--radius-md);
}

.report-header-actions {
    display: flex;
    gap: 10px;
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.kpi-delta {
    font-size: 0.78rem;
    margin-top: 2px;
}

/* 2 Column Report Layout */
.report-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* SVG / Pure CSS Bar Chart */
.bar-chart-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 220px;
    padding-top: 30px;
    gap: 12px;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.chart-bar {
    width: 70%;
    max-width: 44px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.chart-col:hover .chart-bar {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.chart-bar-tooltip {
    position: absolute;
    top: -24px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.chart-col:hover .chart-bar-tooltip {
    opacity: 1;
}

.chart-label {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Traffic Sources List */
.source-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-title-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.source-name {
    font-weight: 500;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Countries List */
.country-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.country-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 180px;
    font-size: 0.9rem;
}

.country-rank-num {
    font-size: 0.75rem;
    color: var(--gray-text);
    font-weight: 700;
}

.country-flag {
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.country-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-pct {
    font-size: 0.85rem;
    font-weight: 700;
    width: 48px;
    text-align: right;
}

/* Keywords & Competitors */
.keyword-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-badge {
    background: #f1f5f9;
    color: var(--dark);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--gray-border);
}

.subhead {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--dark-muted);
}

.competitor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comp-chip {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.15s ease;
}

.comp-chip:hover {
    background: var(--primary);
    color: var(--white);
}

/* SEO Audit Card */
.score-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
}

.score-good {
    background: #d1fae5;
    color: #065f46;
}

.score-mid {
    background: #fef3c7;
    color: #92400e;
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.audit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.audit-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.audit-pass { background: #d1fae5; color: #065f46; }
.audit-warn { background: #fef3c7; color: #92400e; }

.audit-text strong {
    font-size: 0.9rem;
    display: block;
}

.audit-text p {
    font-size: 0.82rem;
    margin-bottom: 0;
}

.server-metadata-bar {
    padding-top: 14px;
    border-top: 1px solid var(--gray-border);
    font-size: 0.82rem;
    color: var(--gray-text);
}

/* Related Tools Box */
.related-tools-box {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.tools-pills-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tools Directory Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.tool-badge {
    align-self: flex-start;
    background: #dbeafe;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tool-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--gray-text);
    flex: 1;
    margin-bottom: 16px;
}

.tool-hero-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.tool-hero-subtitle {
    font-size: 1.05rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto 24px auto;
}

.tool-search-card {
    margin-bottom: 24px;
}

.age-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.age-stat-card {
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.age-stat-card .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.age-stat-card .stat-lbl {
    font-size: 0.85rem;
    color: var(--gray-text);
    text-transform: uppercase;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #dbeafe; color: #1e40af; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Single Article & Legal Pages */
.page-container {
    max-width: 860px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.4rem;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--gray-text);
}

.article-prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.article-prose h2 {
    font-size: 1.55rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.article-prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-prose ul, .article-prose ol {
    margin-left: 24px;
    margin-bottom: 1.25rem;
}

.article-prose li {
    margin-bottom: 6px;
}

.article-prose .lead {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.single-article-title {
    font-size: 2.3rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.author-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.publish-date {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.article-cta-box {
    margin-top: 36px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

/* Contact Form Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s ease;
}

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

/* Error Page */
.error-section {
    padding: 80px 0;
}

.error-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.error-lead {
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto 24px auto;
}

.error-search {
    max-width: 560px;
    margin: 0 auto 30px auto;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-border);
    padding-top: 55px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--gray-text);
    margin-top: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.system-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-pill {
    font-size: 0.8rem;
    color: var(--dark-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.indicator-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    color: var(--dark);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--gray-text);
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-border);
    padding: 24px 20px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--gray-text);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container { height: 60px; }
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-border);
        box-shadow: var(--shadow-lg);
    }
    .main-nav.active { display: flex; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .trust-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .report-two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .report-header-card { flex-direction: column; align-items: flex-start; }
    .report-header-actions { width: 100%; justify-content: flex-start; }
    .age-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .trust-stats-grid { grid-template-columns: 1fr; }
    .search-input-wrapper { flex-direction: column; padding: 10px; }
    .btn-search { width: 100%; }
}
