:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --border: #334155;
    --error-red: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* TOP BAR */
.topbar {
    width: 100%;
    background-color: #0d1325;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

h1.topbar-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* SECTION TITLES */
.section-title {
    font-size: 1.2rem;
    margin: 35px 0 15px;
    color: var(--accent-blue);
}

/* GRID LAYOUT FIX */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* CARD */
.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: #334155;
    color: var(--accent-blue);
    font-weight: 500;
}

.result-text {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--accent-green);
    background: var(--bg-color);
    padding: 12px;
    border-radius: 6px;
    word-break: break-all;
    margin: 0;
    transition: all 0.3s ease;
}

/* LIVE PULSING SKELETON ANIMATION */
.skeleton {
    color: transparent !important;
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s infinite linear;
}

@keyframes pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ADSENSE PLACEHOLDERS */
.ad-placeholder {
    background: #0d1325;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    border-radius: 8px;
    margin: 20px auto;
    text-align: center;
}
.top-ad { max-width: 728px; height: 90px; }
.mid-ad { max-width: 1100px; height: 120px; margin: 30px auto; }

/* SEO VALUE ACCORDIONS */
.info-accordion-section { margin-top: 50px; }
.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 14px;
}
.accordion-item summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}
.accordion-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 10px 0 0 0;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

/* MOBILE FIRST VIEWPORT TARGETING */
@media (max-width: 600px) {
    h1.topbar-title { font-size: 1.1rem; }
    .section-title { font-size: 1.1rem; }
    .grid { grid-template-columns: 1fr; }
    .card { padding: 16px; }
    
    /* Enforced 1rem text size for mobile usability and text wrapping clearance */
    .result-text {
        font-size: 1rem;
        padding: 10px;
    }
    .top-ad { max-width: 320px; height: 50px; }
    .mid-ad { max-width: 100%; height: 250px; }
}
