/* ============================================================
   ADVENGERS SEO & GEO Audit Tool — Styles
   Clean, Minimal, Professional (Stripe/Linear inspired)
   ONE theme only: white background, black text
   ============================================================ */

/* === Variables === */
:root {
    --bg: #FFFFFF;
    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border: #E5E5E5;
    --hover: #F9F9F9;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --track: #F0F0F0;
    --pass: #22c55e;
    --warn: #f59e0b;
    --fail: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --container: 800px;
}

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

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

body {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

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

/* === Container === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo img {
    height: 28px;
    width: auto;
}

.header-badge {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
}

/* === Main === */
.main {
    padding: 60px 0 80px;
    min-height: calc(100vh - 140px);
}

/* === Steps === */
.step {
    display: none;
}

.step-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* === Hero === */
.hero {
    text-align: center;
    padding: 40px 0;
}

.label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* === URL Input === */
.url-input-group {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}

.url-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    font-family: var(--font);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg);
    color: var(--text);
}

.url-input:focus {
    border-color: var(--accent);
}

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

.error-text {
    color: var(--fail);
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
    text-align: center;
}

.url-checking-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    animation: pulse 1s ease infinite;
}

.q-error {
    border-color: var(--fail) !important;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

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

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

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

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

/* === Trust Signals === */
.trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.trust-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
}

/* === Questionnaire === */
.questionnaire {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 0;
}

.progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: var(--track);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

.q-slide {
    display: none;
}

.q-slide.q-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.q-slide h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.q-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* === Radio Cards === */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0 24px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.radio-card:hover {
    background: var(--hover);
}

.radio-card input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.2s;
    position: relative;
}

.radio-card input[type="radio"]:checked {
    border-color: var(--accent);
}

.radio-card input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.radio-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--hover);
}

.radio-card span {
    font-size: 15px;
    color: var(--text);
}

/* === Text Inputs === */
.text-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    background: var(--bg);
    color: var(--text);
}

.text-input:focus {
    border-color: var(--accent);
}

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

/* === Checkboxes === */
.checkbox-group {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* === Q Navigation === */
.q-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.q-nav .btn {
    flex: 1;
}

/* === Loading Section === */
.loading-section {
    text-align: center;
    padding: 40px 0;
}

.loading-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.loading-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.loading-gauge-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.loading-gauge {
    width: 100%;
    height: 100%;
}

.loading-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

/* === Check List === */
.check-list {
    list-style: none;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--track);
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.check-item:last-child {
    border-bottom: none;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.check-item.running .check-icon {
    border-color: var(--accent);
    animation: pulse 1s ease infinite;
}

.check-item.done {
    color: var(--text);
}

.check-item.done .check-icon {
    border-color: var(--pass);
    background: var(--pass);
}

.check-item.done .check-icon::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.check-item.failed {
    color: var(--text-secondary);
}

.check-item.failed .check-icon {
    border-color: var(--warn);
    background: var(--warn);
}

.check-item.failed .check-icon::after {
    content: '!';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* === Results Section === */
.results-section {
    padding: 20px 0;
}

/* === Overall Score Card === */
.overall-score-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.overall-gauge-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 16px auto;
}

.overall-gauge {
    width: 100%;
    height: 100%;
}

.overall-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overall-number {
    font-family: var(--mono);
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    display: block;
}

.overall-max {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--mono);
}

.overall-label {
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
}

.overall-url {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--mono);
    margin-top: 4px;
    word-break: break-all;
}

/* === Category Grid === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--text-muted);
}

.cat-gauge-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}

.cat-gauge-wrap svg {
    width: 100%;
    height: 100%;
}

.cat-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.cat-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* === Detail Sections === */
.detail-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--track);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--track);
    font-size: 14px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 2px;
    width: 18px;
    text-align: center;
}

.detail-icon.pass {
    color: var(--pass);
}

.detail-icon.fail {
    color: var(--fail);
}

.detail-icon.warn {
    color: var(--warn);
}

.detail-label {
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.detail-value {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

.detail-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === Metric Bar === */
.metric-bar-wrap {
    margin: 16px 0;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.metric-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.metric-value {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
}

.metric-bar {
    width: 100%;
    height: 6px;
    background: var(--track);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

/* === Recommendations === */
.recommendations-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.recommendations-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.rec-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rec-priority {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.rec-priority.critical {
    background: #fef2f2;
    color: var(--fail);
}

.rec-priority.important {
    background: #fffbeb;
    color: var(--warn);
}

.rec-priority.nice {
    background: #f0fdf4;
    color: var(--pass);
}

.rec-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.rec-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rec-impact {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === CTA Section === */
.cta-section {
    text-align: center;
    padding: 40px 24px;
    margin-top: 32px;
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cta-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.cta-section p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Audit Result Boxes (Trends, Weather) === */
.audit-result-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.audit-result-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
    padding: 0;
    border: none;
}

.box-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

.box-source {
    display: block;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--track);
    font-size: 11px;
    color: var(--text-muted);
}

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

.no-data {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

/* Trends header with live badge */
.trends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.trends-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pass);
    animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* Trends table */
.trends-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font);
}

.trends-table thead th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.trends-th-rank { width: 36px; }
.trends-th-topic { }
.trends-th-cat { width: 140px; }
.trends-th-vol { width: 100px; text-align: right !important; }

.trends-row {
    transition: background 0.15s;
}

.trends-row:hover {
    background: var(--hover);
}

.trends-row td {
    padding: 10px 0;
    border-bottom: 1px solid var(--track);
    vertical-align: middle;
}

.trends-row:last-child td {
    border-bottom: none;
}

.trends-cell-rank {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.trends-cell-topic {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding-right: 12px !important;
}

.trends-cell-cat {
    padding-right: 12px !important;
}

.trend-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--hover);
    border: 1px solid var(--border);
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.trend-tag-empty {
    color: var(--text-muted);
    font-size: 12px;
}

.trends-cell-vol {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

/* Weather article */
.weather-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.weather-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.weather-article-text {
    font-family: var(--font);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.weather-article-text:last-child {
    margin-bottom: 0;
}

/* === Office View Box === */
.office-view-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.office-view-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.office-view-box img {
    width: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 12px;
}

.office-view-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.office-view-box small {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* === AI Analysis Box === */
.ai-analysis-box {
    background: var(--hover);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-analysis-box p {
    margin-bottom: 8px;
}

.ai-analysis-box p:last-child {
    margin-bottom: 0;
}

/* === AI Status Badges === */
.ai-status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 4px;
    font-family: var(--font);
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-status-badge.pass {
    background: #f0fdf4;
    color: var(--pass);
}

.ai-status-badge.fail {
    background: #fef2f2;
    color: var(--fail);
}

.ai-status-badge.unavailable {
    background: var(--hover);
    color: var(--text-muted);
}

/* === AI Summary Bar === */
.ai-summary-bar {
    padding: 12px 16px;
    background: var(--hover);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.ai-summary-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-summary-domain {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    word-break: break-all;
}

.ai-summary-level {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* === Footer === */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* === ERMIS Awards Box === */
.ermis-awards-box {
    margin: 30px 0 0;
    background: var(--bg);
    border: 2px dotted var(--text-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
}

.ermis-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ermis-collapsible-header:hover {
    background: var(--hover);
}

.ermis-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ermis-breaking-badge {
    background: #c0392b;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-glow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
    50% { opacity: 0.85; box-shadow: 0 0 8px 2px rgba(192, 57, 43, 0); }
}

.ermis-header-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.ermis-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.ermis-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8b923;
    object-fit: contain;
}

.ermis-collapse-icon {
    font-size: 13px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.ermis-collapse-icon.open {
    transform: rotate(90deg);
}

.ermis-content {
    padding: 0 20px 20px;
    border-top: 1px dotted var(--text-secondary);
}

.ermis-content.collapsed {
    display: none;
}

.ermis-subtitle {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    margin: 20px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted var(--border);
}

.ermis-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.ermis-awards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ermis-award-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px dotted var(--border);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.ermis-award-item:hover {
    background: var(--hover);
}

.ermis-award-item.silver {
    border-left: 3px solid #C0C0C0;
}

.ermis-award-item.bronze {
    border-left: 3px solid #CD7F32;
}

.ermis-award-medal {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.ermis-award-details {
    flex: 1;
}

.ermis-award-category {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.ermis-award-title {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 3px;
}

.ermis-award-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.ermis-footer {
    padding: 15px 0 0;
    margin-top: 20px;
    border-top: 1px dotted var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.ermis-quote {
    font-style: italic;
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
}

.ermis-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ermis-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px dotted var(--border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.ermis-social-link:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.ermis-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px dotted var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    min-height: 44px;
    transition: all 0.2s ease;
}

.ermis-link:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* === Press Coverage Carousel === */
.press-carousel-section {
    margin: 16px 0 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 165, 0, 0.03));
    border: 2px solid #ffd700;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
}

.press-carousel-header {
    text-align: center;
    margin-bottom: 20px;
}

.press-carousel-title {
    font-size: 18px;
    font-weight: 800;
    color: #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.press-aoty-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 900;
}

.press-carousel-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.press-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.press-carousel-track {
    display: flex;
    gap: 40px;
    animation: scroll-press 35s linear infinite;
    width: max-content;
}

.press-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-press {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.press-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 50px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.press-logo-item:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.05);
}

.press-logo-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.press-logo-item:hover .press-logo-text {
    color: #b8860b;
}

/* === Responsive === */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .url-input-group {
        flex-direction: column;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main {
        padding: 40px 0 60px;
    }

    .overall-number {
        font-size: 40px;
    }

    .detail-section {
        padding: 16px;
    }

    .detail-section h3 {
        font-size: 16px;
    }

    .detail-item {
        flex-wrap: wrap;
        gap: 6px;
    }

    .detail-value {
        font-size: 12px;
        width: 100%;
        text-align: left;
        padding-left: 28px;
    }

    /* AI status badges should NOT go full-width on mobile */
    .detail-item .ai-status-badge {
        width: auto;
        margin-left: 28px;
    }

    .ai-summary-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rec-item {
        padding: 12px;
    }

    .rec-header {
        flex-wrap: wrap;
    }

    .trends-th-cat,
    .trends-cell-cat {
        display: none;
    }

    .trends-th-vol {
        width: 80px;
    }

    /* Trends table scroll wrapper */
    .trends-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
        padding: 0 4px;
    }

    .audit-result-box {
        padding: 16px;
    }

    .overall-score-card {
        padding: 24px 16px;
    }

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

    .detail-label {
        word-break: break-word;
    }

    /* ERMIS box mobile */
    .ermis-collapsible-header {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ermis-header-left {
        flex: 1;
        min-width: 0;
        gap: 10px;
    }

    .ermis-header-title {
        font-size: 12px;
        white-space: normal;
        line-height: 1.3;
    }

    .ermis-breaking-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .ermis-header-right {
        gap: 8px;
    }

    .ermis-logo {
        width: 30px;
        height: 30px;
    }

    .ermis-content {
        padding: 0 15px 15px;
    }

    .ermis-award-item {
        padding: 10px;
    }

    .ermis-award-medal {
        font-size: 20px;
    }

    .ermis-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ermis-links {
        justify-content: center;
    }

    /* Press carousel mobile */
    .press-carousel-section {
        padding: 16px;
    }

    .press-carousel-title {
        font-size: 15px;
    }

    .press-aoty-badge {
        font-size: 10px;
    }

    .press-logo-item {
        min-width: 100px;
        padding: 8px 14px;
    }

    .press-logo-text {
        font-size: 12px;
    }

    .press-carousel-track {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 24px;
    }

    .hero {
        padding: 20px 0;
    }

    .hero-sub {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 16px 12px;
    }

    .cat-gauge-wrap {
        width: 56px;
        height: 56px;
    }

    .cat-score {
        font-size: 16px;
    }

    .cat-name {
        font-size: 12px;
    }

    .trust-signals {
        flex-direction: column;
        gap: 8px;
    }

    .trust-sep {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .overall-gauge-wrap {
        width: 130px;
        height: 130px;
    }

    .overall-number {
        font-size: 36px;
    }

    .detail-section {
        padding: 12px;
    }

    .detail-item {
        font-size: 13px;
        padding: 8px 0;
    }

    .detail-label {
        font-size: 13px;
        word-break: break-word;
    }

    .detail-value {
        padding-left: 28px;
    }

    /* AI badges on small screens */
    .detail-item .ai-status-badge {
        font-size: 11px;
        padding: 2px 8px;
        margin-left: 28px;
    }

    .ai-summary-bar {
        padding: 10px 12px;
    }

    .ai-summary-domain {
        font-size: 13px;
    }

    .ai-summary-level {
        font-size: 12px;
    }

    .q-slide h2 {
        font-size: 18px;
    }

    .radio-card {
        padding: 12px 14px;
    }

    .radio-card span {
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .loading-section h2 {
        font-size: 20px;
    }

    .recommendations-section h2 {
        font-size: 18px;
    }

    .metric-name {
        font-size: 12px;
    }

    .metric-value {
        font-size: 12px;
    }

    .audit-result-box {
        padding: 14px;
    }

    .audit-result-box h3 {
        font-size: 16px;
    }

    .trends-table thead th {
        font-size: 11px;
        padding: 6px 0;
    }

    .trends-cell-topic {
        font-size: 13px;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .trends-cell-rank {
        font-size: 12px;
    }

    .trends-cell-vol {
        font-size: 11px;
    }

    .trends-th-cat,
    .trends-cell-cat {
        display: none;
    }

    .trends-th-vol {
        width: 70px;
    }

    .office-view-box {
        padding: 16px;
    }

    .weather-title {
        font-size: 14px;
    }

    .weather-article-text {
        font-size: 13px;
    }

    .rec-desc {
        font-size: 13px;
    }

    .rec-title {
        font-size: 14px;
    }

    .box-source {
        font-size: 10px;
    }
}

/* === Print === */
@media print {
    .header, .footer, .cta-section, .q-nav, .btn {
        display: none !important;
    }

    .step {
        display: block !important;
    }

    #step-hero, #step-questionnaire, #step-loading {
        display: none !important;
    }

    body {
        font-size: 12px;
    }

    .detail-section {
        break-inside: avoid;
    }
}
