/* ═══════════════════════════════════════════════
   CyberScryb AI Writing Suite — Premium Redesign v2
   Emerald/Slate palette. Inspired by GPTZero, QuillBot,
   Grammarly & Hemingway — the best of the best.
   ═══════════════════════════════════════════════ */

/* ── Custom Properties (Emerald / Slate Identity) ── */
:root {
    --aws-bg: #0d1117;
    --aws-surface: #161b22;
    --aws-surface-2: #1c2333;
    --aws-surface-3: #242c3a;
    --aws-border: #30363d;
    --aws-border-hover: #484f58;
    --aws-accent: #10b981;
    --aws-accent-hover: #34d399;
    --aws-accent-glow: rgba(16, 185, 129, 0.15);
    --aws-accent-soft: rgba(16, 185, 129, 0.08);
    --aws-gradient: linear-gradient(135deg, #10b981, #059669);
    --aws-text: #e6edf3;
    --aws-text-muted: #8b949e;
    --aws-text-dim: #6e7681;
    --aws-human: #3fb950;
    --aws-human-bg: rgba(63, 185, 80, 0.12);
    --aws-mixed: #d29922;
    --aws-mixed-bg: rgba(210, 153, 34, 0.12);
    --aws-ai: #f85149;
    --aws-ai-bg: rgba(248, 81, 73, 0.12);
    --aws-radius: 12px;
    --aws-radius-sm: 8px;
    --aws-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --aws-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.35);
    --aws-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --aws-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ═══ SCOPED OVERRIDES — override global site cyan styles ═══ */
.aws-app { background: var(--aws-bg) !important; }
.aws-app h1 {
    color: var(--aws-text) !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    font-family: var(--aws-font) !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}
.aws-app h2 {
    color: var(--aws-text) !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    font-family: var(--aws-font) !important;
}
.aws-app h3 { color: var(--aws-text) !important; font-family: var(--aws-font) !important; }
.aws-app a { color: var(--aws-accent); }
.aws-app a:hover { color: var(--aws-accent-hover); }
.aws-app .breadcrumb a { color: var(--aws-accent) !important; }
.aws-app .breadcrumb a:hover { color: var(--aws-accent-hover) !important; }

/* Tab + button accent overrides */
.aws-app .editor-tab.active { color: var(--aws-accent) !important; border-bottom-color: var(--aws-accent) !important; }
.aws-app .editor-action-btn:hover { border-color: var(--aws-accent) !important; color: var(--aws-accent) !important; }
.aws-app .try-example-btn { background: var(--aws-gradient) !important; border: none !important; color: #fff !important; }
.aws-app .privacy-badge {
    border-color: var(--aws-accent-glow) !important;
    background: var(--aws-accent-soft) !important;
    color: var(--aws-accent-hover) !important;
}
.aws-app .privacy-badge svg { stroke: var(--aws-accent) !important; }
.aws-app .seo-section th.hl { color: var(--aws-accent) !important; border-bottom-color: var(--aws-accent) !important; }
.aws-app .faq-item summary::after { color: var(--aws-accent) !important; }
.aws-app .report-link:hover { color: var(--aws-accent) !important; }
.aws-app select:focus { border-color: var(--aws-accent) !important; }
.aws-app .btn-submit { background: var(--aws-gradient) !important; color: #fff !important; }

/* ═══ App Shell ═══ */
.aws-app {
    padding: 5rem 0 0;
    background: var(--aws-bg);
    min-height: 100vh;
    position: relative;
}
.aws-app::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; height: 600px;
    background: radial-gradient(ellipse at 50% -20%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.aws-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative; z-index: 1;
}

/* ═══ Header ═══ */
.aws-header { text-align: center; padding: 2.5rem 0 2rem; }
.aws-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--aws-text);
    font-family: var(--aws-font);
}
.aws-header .subtitle {
    color: var(--aws-text-muted);
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 560px;
    line-height: 1.6;
    font-family: var(--aws-font);
}

/* ── Privacy Badge ── */
.privacy-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--aws-accent-soft);
    border: 1px solid var(--aws-accent-glow);
    border-radius: 100px; padding: 0.45rem 1.1rem; margin: 1rem auto 0;
    font-size: 0.8rem; color: var(--aws-accent-hover);
    font-family: var(--aws-font);
}
.privacy-badge svg { flex-shrink: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 1rem 0 0; font-size: 0.85rem; color: var(--aws-text-dim);
    max-width: 1320px; margin: 0 auto; padding-left: 2rem;
    font-family: var(--aws-font);
}
.breadcrumb a { color: var(--aws-accent); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--aws-accent-hover); }
.breadcrumb span { margin: 0 0.4rem; }

/* ═══ Workspace Layout ═══ */
.aws-workspace {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    min-height: 620px;
    margin-bottom: 2rem;
}

/* ═══ CARD BASE ═══ */
.aws-card {
    background: var(--aws-surface);
    border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius);
    box-shadow: var(--aws-shadow);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.aws-card:hover {
    border-color: var(--aws-border-hover);
    box-shadow: var(--aws-shadow), 0 0 40px rgba(16, 185, 129, 0.03);
}

/* ═══ Editor Panel ═══ */
.editor-panel { display: flex; flex-direction: column; }

/* Toolbar */
.editor-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--aws-border);
    background: var(--aws-surface-2);
}
.editor-tabs { display: flex; gap: 0; }
.editor-tab {
    background: transparent; border: none; color: var(--aws-text-dim);
    font-family: var(--aws-font); font-size: 0.9rem; font-weight: 600;
    padding: 0.5rem 1.25rem; cursor: pointer; transition: all 0.25s;
    border-bottom: 2px solid transparent; position: relative;
}
.editor-tab:hover { color: var(--aws-text-muted); }
.editor-tab.active { color: var(--aws-accent); border-bottom-color: var(--aws-accent); }
.editor-tab .tab-badge {
    position: absolute; top: -2px; right: -4px;
    background: var(--aws-accent); color: #fff;
    font-size: 0.55rem; padding: 1px 6px; border-radius: 10px; font-weight: 700;
}

.editor-actions { display: flex; gap: 0.5rem; }
.editor-action-btn {
    background: var(--aws-surface-3); border: 1px solid var(--aws-border);
    color: var(--aws-text-muted); font-size: 0.85rem; padding: 0.5rem 1rem;
    border-radius: 100px; cursor: pointer; transition: all 0.25s;
    font-family: var(--aws-font); font-weight: 500;
}
.editor-action-btn:hover {
    border-color: var(--aws-accent); color: var(--aws-accent);
    box-shadow: 0 0 16px var(--aws-accent-glow);
    transform: translateY(-1px);
}

/* ── Editor Body: Overlay + Textarea ── */
.editor-body {
    position: relative; flex: 1; min-height: 520px;
}

/* The highlight overlay sits behind the textarea */
.editor-highlight-layer {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    padding: 1.5rem 1.75rem;
    font-family: var(--aws-font); font-size: 1rem; line-height: 1.85;
    white-space: pre-wrap; word-wrap: break-word;
    color: transparent;
    overflow-y: auto; pointer-events: none;
}
.editor-highlight-layer .hl-sentence {
    border-radius: 4px; padding: 2px 1px; transition: all 0.3s ease;
    pointer-events: auto; cursor: pointer; position: relative;
}
.editor-highlight-layer .hl-sentence.human { background: var(--aws-human-bg); }
.editor-highlight-layer .hl-sentence.mixed { background: var(--aws-mixed-bg); }
.editor-highlight-layer .hl-sentence.ai { background: var(--aws-ai-bg); }
.editor-highlight-layer .hl-sentence:hover {
    filter: brightness(1.4);
    box-shadow: 0 0 12px var(--aws-accent-glow);
}

#editor-textarea {
    position: relative; z-index: 2;
    width: 100%; height: 100%; min-height: 520px;
    background: transparent; border: none; outline: none;
    color: var(--aws-text); font-family: var(--aws-font);
    font-size: 1rem; line-height: 1.85; padding: 1.5rem 1.75rem;
    resize: none; caret-color: var(--aws-accent);
}
#editor-textarea::placeholder { color: var(--aws-text-dim); font-size: 0.95rem; }
#editor-textarea::selection { background: rgba(16, 185, 129, 0.2); }

/* ── Bottom Bar ── */
.editor-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 1.5rem;
    border-top: 1px solid var(--aws-border);
    background: var(--aws-surface-2);
    font-size: 0.8rem;
}
.editor-bottom .style-group {
    display: flex; align-items: center; gap: 0.6rem; color: var(--aws-text-dim);
    font-family: var(--aws-font);
}
.editor-bottom select {
    background: var(--aws-surface-3); border: 1px solid var(--aws-border); color: var(--aws-text-muted);
    font-family: var(--aws-font); font-size: 0.8rem;
    padding: 0.3rem 0.6rem; border-radius: 6px; cursor: pointer; outline: none;
}
.editor-bottom select:focus { border-color: var(--aws-accent); }
.editor-bottom .stats-group {
    display: flex; gap: 1.5rem; color: var(--aws-text-dim);
    font-family: var(--aws-mono); font-size: 0.75rem;
}
.editor-bottom .stats-group span { display: flex; align-items: center; gap: 0.3rem; }

/* ── Inline Legend ── */
.inline-legend {
    display: flex; gap: 1.5rem; padding: 0.6rem 1.5rem;
    border-top: 1px solid var(--aws-border);
    font-size: 0.75rem; color: var(--aws-text-dim);
    font-family: var(--aws-font);
}
.inline-legend .legend-item { display: flex; align-items: center; gap: 0.4rem; }
.inline-legend .legend-swatch { width: 10px; height: 10px; border-radius: 3px; }
.inline-legend .legend-swatch.human { background: var(--aws-human); }
.inline-legend .legend-swatch.mixed { background: var(--aws-mixed); }
.inline-legend .legend-swatch.ai { background: var(--aws-ai); }

/* ═══ Sidebar / Dashboard ═══ */
.sidebar {
    display: flex; flex-direction: column; gap: 1rem;
    overflow-y: auto; max-height: calc(100vh - 130px);
    position: sticky; top: 80px;
    scrollbar-width: thin; scrollbar-color: var(--aws-border) transparent;
}

.dash-card {
    background: var(--aws-surface);
    border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius);
    padding: 1.5rem;
    box-shadow: var(--aws-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dash-card:hover {
    border-color: var(--aws-border-hover);
    box-shadow: var(--aws-shadow-lg), 0 0 30px rgba(16, 185, 129, 0.04);
}
.dash-card-title {
    font-family: var(--aws-font); font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--aws-text-dim); margin-bottom: 1rem;
}

/* ═══ Score Hero ═══ */
.score-hero { text-align: center; padding: 0.5rem 0 0; }
.score-ring-wrap { display: inline-block; position: relative; width: 180px; height: 180px; }
.score-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--aws-border); stroke-width: 6; }
.score-ring-fill {
    fill: none; stroke-width: 6; stroke-linecap: round;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.5s ease;
    filter: drop-shadow(0 0 8px currentColor);
}
.score-ring-inner {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center;
}
.score-number {
    font-family: var(--aws-font); font-size: 2.75rem; font-weight: 900;
    line-height: 1; letter-spacing: -0.02em;
}
.score-number.human { color: var(--aws-human); }
.score-number.mixed { color: var(--aws-mixed); }
.score-number.ai { color: var(--aws-ai); }
.score-label {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--aws-text-dim); margin-top: 0.3rem;
    font-family: var(--aws-font);
}
.score-verdict {
    font-size: 1rem; font-weight: 700; margin-top: 0.75rem;
    font-family: var(--aws-font);
}
.score-verdict.human { color: var(--aws-human); }
.score-verdict.mixed { color: var(--aws-mixed); }
.score-verdict.ai { color: var(--aws-ai); }

.score-breakdown-summary {
    display: flex; justify-content: center; gap: 1.5rem;
    margin-top: 1rem; padding-top: 0.75rem;
    border-top: 1px solid var(--aws-border);
}
.breakdown-chip {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; color: var(--aws-text-muted);
    font-family: var(--aws-font);
}
.breakdown-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.breakdown-chip .chip-dot.human { background: var(--aws-human); }
.breakdown-chip .chip-dot.mixed { background: var(--aws-mixed); }
.breakdown-chip .chip-dot.ai { background: var(--aws-ai); }

.score-disclaimer {
    font-size: 0.75rem; color: var(--aws-text-dim); margin-top: 0.75rem;
    line-height: 1.4; font-style: italic; text-align: center;
    font-family: var(--aws-font);
}
.short-text-badge {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    background: var(--aws-mixed-bg); border: 1px solid rgba(210, 153, 34, 0.2);
    color: var(--aws-mixed); font-size: 0.78rem; padding: 0.4rem 0.85rem;
    border-radius: 8px; margin-top: 0.5rem;
    font-family: var(--aws-font);
}

/* ═══ Example Buttons (GPTZero-style) ═══ */
.example-pills {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    justify-content: center; margin-top: 1rem;
}
.example-pill {
    background: var(--aws-surface-3);
    border: 1px solid var(--aws-border);
    color: var(--aws-text-muted);
    font-family: var(--aws-font); font-size: 0.8rem; font-weight: 500;
    padding: 0.45rem 1rem; border-radius: 100px;
    cursor: pointer; transition: all 0.25s;
}
.example-pill:hover {
    border-color: var(--aws-accent); color: var(--aws-accent);
    background: var(--aws-accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--aws-accent-glow);
}

/* ═══ Heuristics — collapsible ═══ */
.heuristics-toggle {
    background: var(--aws-surface-3); border: 1px solid var(--aws-border);
    color: var(--aws-text-muted); font-family: var(--aws-font);
    font-size: 0.82rem; font-weight: 500; padding: 0.55rem 1rem;
    border-radius: 100px; cursor: pointer;
    width: 100%; text-align: center; margin-top: 0.75rem;
    transition: all 0.25s;
}
.heuristics-toggle:hover { border-color: var(--aws-accent); color: var(--aws-accent); }
.heuristics-toggle::after { content: ' ▾'; font-size: 0.65rem; }
.heuristics-toggle.open::after { content: ' ▴'; }

.heuristic-list {
    display: flex; flex-direction: column; gap: 0.65rem;
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin 0.3s ease;
    margin-top: 0;
}
.heuristic-list.open { max-height: 500px; margin-top: 0.75rem; }

.heuristic-row { display: flex; align-items: center; gap: 0.6rem; }
.heuristic-name { flex: 1; font-size: 0.8rem; color: var(--aws-text-muted); font-family: var(--aws-font); }
.heuristic-bar-bg {
    width: 80px; height: 4px; background: var(--aws-surface-3);
    border-radius: 3px; overflow: hidden; flex-shrink: 0;
}
.heuristic-bar {
    height: 100%; border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.heuristic-bar.low { background: var(--aws-human); }
.heuristic-bar.mid { background: var(--aws-mixed); }
.heuristic-bar.high { background: var(--aws-ai); }
.heuristic-pct {
    font-size: 0.7rem; color: var(--aws-text-dim); width: 32px;
    text-align: right; font-family: var(--aws-mono);
}

/* ═══ Stats Cards ═══ */
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0; }
.stat-label { font-size: 0.85rem; color: var(--aws-text-muted); font-family: var(--aws-font); }
.stat-value {
    font-family: var(--aws-mono); font-size: 0.85rem;
    color: var(--aws-text); font-weight: 500;
}
.stat-divider { height: 1px; background: var(--aws-border); margin: 0.3rem 0; }

/* Passive voice meter */
.passive-meter { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; }
.passive-bar-bg { flex: 1; height: 4px; background: var(--aws-surface-3); border-radius: 3px; overflow: hidden; }
.passive-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.passive-bar.good { background: var(--aws-human); }
.passive-bar.warn { background: var(--aws-mixed); }
.passive-bar.bad { background: var(--aws-ai); }
.passive-pct { font-size: 0.75rem; color: var(--aws-text-dim); font-family: var(--aws-mono); }

/* Repetition */
.rep-word { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.82rem; }
.rep-word-text { color: var(--aws-text); font-family: var(--aws-mono); }
.rep-word-count { color: var(--aws-text-dim); }

/* ═══ Sentence Popover (Grammarly-style floating card) ═══ */
.sentence-popover {
    position: fixed; z-index: 100;
    background: var(--aws-surface-2);
    border: 1px solid var(--aws-border-hover);
    border-radius: var(--aws-radius); padding: 1.5rem;
    box-shadow: var(--aws-shadow-lg), 0 0 60px rgba(0,0,0,0.3);
    max-width: 380px; width: 92vw;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.sentence-popover .pop-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; color: var(--aws-text-dim); cursor: pointer;
    font-size: 1.2rem; transition: color 0.2s; line-height: 1;
}
.sentence-popover .pop-close:hover { color: var(--aws-text); }
.sentence-popover .pop-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem;
}
.sentence-popover .pop-score {
    font-family: var(--aws-font); font-size: 1.8rem; font-weight: 800;
    letter-spacing: -0.02em;
}
.sentence-popover .pop-badge {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 4px 12px; border-radius: 100px;
    font-family: var(--aws-font);
}
.sentence-popover .pop-badge.human { background: var(--aws-human-bg); color: var(--aws-human); }
.sentence-popover .pop-badge.mixed { background: var(--aws-mixed-bg); color: var(--aws-mixed); }
.sentence-popover .pop-badge.ai { background: var(--aws-ai-bg); color: var(--aws-ai); }
.sentence-popover .pop-section-title {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--aws-text-dim); margin: 0.85rem 0 0.4rem;
    font-family: var(--aws-font);
}
.sentence-popover .pop-reasons { list-style: none; padding: 0; margin: 0; }
.sentence-popover .pop-reasons li {
    font-size: 0.85rem; color: var(--aws-text-muted); padding: 0.3rem 0;
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-family: var(--aws-font); line-height: 1.5;
}
.sentence-popover .pop-reasons li::before { content: '→'; color: var(--aws-accent); flex-shrink: 0; font-weight: 600; }
.sentence-popover .pop-text {
    font-size: 0.85rem; color: var(--aws-text-dim); margin-top: 0.6rem;
    padding: 0.75rem; background: var(--aws-surface); border-radius: var(--aws-radius-sm);
    line-height: 1.6; max-height: 100px; overflow-y: auto; border: 1px solid var(--aws-border);
    font-family: var(--aws-font);
}
.sentence-popover .pop-tip {
    margin-top: 0.85rem; padding: 0.65rem 0.85rem;
    background: var(--aws-accent-soft); border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--aws-radius-sm); font-size: 0.82rem; color: var(--aws-accent-hover);
    line-height: 1.5; font-family: var(--aws-font);
}
.sentence-popover .pop-tip strong { color: var(--aws-accent); }

/* Humanize button in popover (Grammarly-style) */
.sentence-popover .pop-humanize {
    display: block; width: 100%;
    margin-top: 0.85rem; padding: 0.65rem;
    background: var(--aws-gradient); border: none;
    color: #fff; font-family: var(--aws-font);
    font-size: 0.85rem; font-weight: 600;
    border-radius: 100px; cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px var(--aws-accent-glow);
}
.sentence-popover .pop-humanize:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--aws-accent-glow);
}

/* ═══ Report Link & Modal ═══ */
.report-link {
    display: block; text-align: center; margin-top: 0.5rem;
    font-size: 0.75rem; color: var(--aws-text-dim); cursor: pointer;
    text-decoration: none; transition: color 0.2s;
    font-family: var(--aws-font);
}
.report-link:hover { color: var(--aws-accent); }

.report-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 200; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.report-modal {
    background: var(--aws-surface); border: 1px solid var(--aws-border-hover);
    border-radius: var(--aws-radius); padding: 2rem; max-width: 440px; width: 92vw;
    box-shadow: var(--aws-shadow-lg);
}
.report-modal h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.report-modal .radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.report-modal label { font-size: 0.9rem; color: var(--aws-text-muted); cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }
.report-modal textarea {
    width: 100%; height: 80px; background: var(--aws-surface-2); border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius-sm); color: var(--aws-text); padding: 0.75rem;
    font-family: var(--aws-font); font-size: 0.9rem; resize: none; outline: none;
}
.report-modal textarea:focus { border-color: var(--aws-accent); }
.report-modal .modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.report-modal .btn-submit {
    flex: 1; background: var(--aws-gradient); color: #fff; border: none;
    padding: 0.7rem; border-radius: 100px; font-weight: 600;
    cursor: pointer; transition: all 0.25s; font-family: var(--aws-font);
}
.report-modal .btn-submit:hover { box-shadow: 0 0 24px var(--aws-accent-glow); transform: translateY(-1px); }
.report-modal .btn-cancel {
    flex: 1; background: transparent; color: var(--aws-text-muted); border: 1px solid var(--aws-border);
    padding: 0.7rem; border-radius: 100px; cursor: pointer; font-family: var(--aws-font);
}

/* ═══ Empty State ═══ */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 3rem 2rem; text-align: center;
}
.empty-state .empty-icon {
    width: 72px; height: 72px; margin-bottom: 1.25rem;
    background: var(--aws-accent-soft); border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
}
.empty-state p {
    color: var(--aws-text-dim); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.6;
    font-family: var(--aws-font);
}
.empty-state .try-example-btn {
    background: var(--aws-gradient); border: none;
    color: #fff; font-family: var(--aws-font); font-size: 0.9rem; font-weight: 600;
    padding: 0.7rem 1.75rem; border-radius: 100px; cursor: pointer;
    transition: all 0.25s; box-shadow: 0 4px 16px var(--aws-accent-glow);
}
.empty-state .try-example-btn:hover {
    transform: translateY(-2px); box-shadow: 0 8px 28px var(--aws-accent-glow);
}

/* ═══ Toast ═══ */
.autosave-toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: var(--aws-surface-2); border: 1px solid var(--aws-border-hover);
    border-radius: 100px;
    padding: 0.7rem 1.5rem; font-size: 0.82rem; color: var(--aws-text-muted);
    box-shadow: var(--aws-shadow-lg);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 50; font-family: var(--aws-font);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ Footer Counter ═══ */
.suite-footer {
    text-align: center; padding: 1.5rem; font-size: 0.75rem; color: var(--aws-text-dim);
    font-family: var(--aws-mono);
    border-top: 1px solid var(--aws-border); margin-top: 1.5rem;
}

/* ═══ SEO Content ═══ */
.seo-section {
    max-width: 860px; margin: 3rem auto; padding: 0 2rem 4rem;
    font-family: var(--aws-font);
}
.seo-section h2 {
    font-size: 1.5rem; margin-bottom: 1rem; margin-top: 2.5rem;
    color: var(--aws-text); font-weight: 700; letter-spacing: -0.02em;
}
.seo-section h3 { font-size: 1.1rem; margin-top: 1.5rem; color: var(--aws-text); }
.seo-section p { font-size: 1rem; color: var(--aws-text-muted); line-height: 1.75; }
.seo-section .comparison-table { margin: 1.5rem 0; overflow-x: auto; }
.seo-section table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.seo-section th {
    background: var(--aws-surface-2); color: var(--aws-text-dim);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem;
    padding: 0.85rem; text-align: center; border-bottom: 1px solid var(--aws-border);
}
.seo-section th.hl { color: var(--aws-accent); border-bottom-color: var(--aws-accent); }
.seo-section td {
    padding: 0.85rem; text-align: center; border-bottom: 1px solid var(--aws-border);
    color: var(--aws-text-muted);
}
.seo-section td.check { color: var(--aws-human); }
.seo-section td.cross { color: var(--aws-text-dim); }
.seo-section .faq-item {
    background: var(--aws-surface); border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius-sm); margin-bottom: 0.5rem;
}
.seo-section .faq-item summary {
    padding: 0.9rem 1.1rem; cursor: pointer; color: var(--aws-text);
    font-weight: 500; list-style: none; display: flex; justify-content: space-between; font-size: 0.95rem;
}
.seo-section .faq-item summary::after { content: '+'; color: var(--aws-accent); font-weight: 700; }
.seo-section .faq-item[open] summary::after { content: '−'; }
.seo-section .faq-item p { padding: 0 1.1rem 0.85rem; }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
    .aws-workspace { grid-template-columns: 1fr; }
    .sidebar {
        position: static; max-height: none;
        display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem;
    }
}
@media (max-width: 640px) {
    .aws-header h1 { font-size: 1.75rem !important; }
    .editor-tabs { flex-wrap: wrap; }
    .aws-workspace { gap: 1rem; }
    .aws-container { padding: 0 1rem; }
    .score-ring-wrap { width: 150px; height: 150px; }
    .score-number { font-size: 2rem; }
    .example-pills { gap: 0.4rem; }
    .example-pill { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
}

/* ═══ Reduced Motion ═══ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
