/* ============================================================================
   RATNOIZE.COM — Dark-First Cyber/Fintech Design System (with Light Mode)
   ============================================================================ */

:root,
[data-theme="dark"] {
    --bg-base: #060a12;
    --bg-alt: #0a101d;
    --bg-surface: rgba(15, 23, 42, 0.72);
    --bg-surface-elevated: rgba(22, 33, 58, 0.88);
    --bg-code: #050811;
    --border-subtle: rgba(148, 163, 184, 0.14);
    --border-highlight: rgba(16, 185, 129, 0.42);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.22);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.22);
    --accent-indigo: #6366f1;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.65);
    --header-bg: rgba(6, 10, 18, 0.84);
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.92);
    --bg-surface-elevated: #ffffff;
    --bg-code: #0f172a;
    --border-subtle: rgba(15, 23, 42, 0.11);
    --border-highlight: rgba(16, 185, 129, 0.55);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-emerald: #059669;
    --accent-emerald-glow: rgba(5, 150, 105, 0.15);
    --accent-cyan: #0891b2;
    --accent-cyan-glow: rgba(8, 145, 178, 0.15);
    --accent-indigo: #4f46e5;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;
    --shadow-card: 0 12px 32px -10px rgba(15, 23, 42, 0.08);
    --header-bg: rgba(248, 250, 252, 0.88);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.mono-text {
    font-family: 'JetBrains Mono', monospace;
}

.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }

.text-gradient {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 60%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
}

.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

/* ============================================================================
   Top Telemetry Ribbon & Sticky Header
   ============================================================================ */
.top-ribbon {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    padding: 0.45rem 0;
}

.ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ribbon-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.65; }
}

.ribbon-badge {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent-emerald);
    letter-spacing: 0.05em;
}

.ribbon-announcement {
    color: var(--text-secondary);
}

.ribbon-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1.25rem;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.64rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 2px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.18s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.08);
}

.nav-link.active {
    color: var(--accent-emerald);
    background: var(--accent-emerald-glow);
    font-weight: 600;
}

.nav-live-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.1rem 0.38rem;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

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

.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    height: 36px;
    padding: 0 0.72rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}

.lang-dropdown-toggle:hover,
.lang-dropdown.open .lang-dropdown-toggle {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.lang-current-code {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.lang-chevron {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.45rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
}

.lang-dropdown.open .lang-dropdown-menu {
    display: flex;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.48rem 0.7rem;
    border-radius: 8px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.lang-dropdown-item:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-primary);
}

.lang-dropdown-item.active {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
    font-weight: 600;
}

.lang-item-code {
    font-size: 0.72rem;
    font-weight: 700;
    width: 26px;
    text-align: center;
    padding: 0.1rem 0.25rem;
    border-radius: 5px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-primary);
}

.lang-dropdown-item.active .lang-item-code {
    background: var(--accent-emerald);
    color: #04130d;
}

.lang-item-name {
    flex: 1;
}

.lang-item-check {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.footer-lang-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem !important;
    font-size: 0.81rem !important;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-alt);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.icon-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* ============================================================================
   Buttons & Chips
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.62rem 1.2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.83rem; }
.btn-xs { padding: 0.32rem 0.68rem; font-size: 0.76rem; border-radius: 8px; }
.btn-lg { padding: 0.82rem 1.45rem; font-size: 0.96rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: #03150e;
    box-shadow: 0 6px 20px -4px var(--accent-emerald-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-glass {
    background: rgba(148, 163, 184, 0.1);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-glass:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-ghost-xs {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}

.btn-ghost-xs:hover { color: var(--accent-rose); }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    padding: 0.22rem 0.65rem 0.22rem 0.28rem;
    white-space: nowrap;
}

.user-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #04120c;
    flex-shrink: 0;
}

.avatar-xs { width: 24px; height: 24px; font-size: 0.72rem; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.85rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.5rem; }

/* ============================================================================
   Hero Section & Interactive Quick Simulator
   ============================================================================ */
.hero-section {
    position: relative;
    padding: 4rem 0 3.5rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1 {
    width: 440px;
    height: 440px;
    background: var(--accent-emerald-glow);
    top: -90px;
    left: 5%;
}

.hero-glow-2 {
    width: 420px;
    height: 420px;
    background: var(--accent-cyan-glow);
    bottom: -80px;
    right: 8%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-size: 0.73rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.45rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.block-span { display: block; }

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin-bottom: 1.85rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.2rem;
}

.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.metric-card {
    padding: 0.95rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Quick Calculator Widget */
.hero-widget {
    padding: 1.65rem;
    border-color: var(--border-highlight);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.eyebrow-chip {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--accent-cyan);
    display: inline-block;
    margin-bottom: 0.2rem;
}

.widget-sub {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.quick-calc-controls {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    margin-bottom: 1.35rem;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent-emerald);
    cursor: pointer;
}

.quick-calc-results {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.1rem;
}

.qc-result-box {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.qc-big-number {
    font-size: 1.55rem;
    font-weight: 800;
}

.qc-label {
    font-size: 0.76rem;
    color: var(--text-secondary);
    display: block;
}

.qc-result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-subtle);
    margin-bottom: 0.85rem;
}

.qc-bar-visual {
    height: 8px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
    display: flex;
}

.qc-bar-segment.seg-principal { background: var(--accent-cyan); }
.qc-bar-segment.seg-gain { background: var(--accent-emerald); }

.widget-footer {
    margin-top: 1rem;
    text-align: right;
}

.link-arrow {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ============================================================================
   Sections, Tools Cards & Directory
   ============================================================================ */
.section-block {
    padding: 3.2rem 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.85rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 960px;
}

.tools-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.tools-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.tool-card {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
}

.tool-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-3px);
}

.tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.category-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
}

.cat-quant { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.cat-selfhosted { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.cat-tech { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

.badge-license {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.tool-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.tool-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.tool-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-chip {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.09);
    color: var(--text-secondary);
}

.tag-chip:hover {
    color: var(--accent-emerald);
    background: var(--accent-emerald-glow);
}

.tool-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.tool-links {
    display: flex;
    gap: 0.45rem;
}

.upvote-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.upvote-btn:hover,
.upvote-btn.endorsed {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    background: var(--accent-emerald-glow);
}

/* ============================================================================
   Split Home Layout (Community Preview + Guides)
   ============================================================================ */
.split-home-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
}

.stream-preview-stack,
.guides-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.guide-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.guide-title a:hover { color: var(--accent-emerald); }

.guide-excerpt {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

/* ============================================================================
   Interactive Calculators Lab & Directory Toolbar
   ============================================================================ */
.page-hero {
    padding: 2.6rem 0 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-alt);
}

.page-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.25rem 0 0.4rem;
}

.page-subtitle {
    color: var(--text-secondary);
    max-width: 1040px;
}

.lab-wrapper {
    padding: 1.75rem;
    border-color: var(--border-highlight);
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.lab-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lab-tab {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.lab-tab.active {
    background: var(--accent-emerald-glow);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    align-items: center;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.output-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.output-stat-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.output-stat-card.highlight-emerald {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
}

.output-stat-card.highlight-cyan {
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(6, 182, 212, 0.06);
}

.stat-label {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.stat-big {
    font-size: 1.45rem;
    font-weight: 800;
}

.stat-mid {
    font-size: 1.2rem;
    font-weight: 700;
}

.directory-toolbar {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-pill {
    padding: 0.42rem 0.85rem;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.filter-pill.active {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
    border-color: rgba(16, 185, 129, 0.35);
    font-weight: 600;
}

.directory-search-form {
    flex: 1;
    max-width: 380px;
}

/* ============================================================================
   Social Community Stream (3-Column Modern Layout)
   ============================================================================ */
.social-3col-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 340px;
    gap: 1.75rem;
    align-items: start;
}

.social-sidebar-left,
.social-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 90px;
}

.sidebar-card {
    padding: 1.2rem;
}

.sidebar-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.channel-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.channel-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.channel-nav-item:hover {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-primary);
}

.channel-nav-item.active {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
    font-weight: 600;
}

.manifesto-copy {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Composer & Stream Cards */
.composer-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-color: var(--border-highlight);
}

.composer-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.composer-form textarea,
.composer-form input,
.auth-form input,
.auth-form select,
.calc-inputs input,
.directory-search-form input,
.comment-form input {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.68rem 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.composer-form textarea:focus,
.composer-form input:focus,
.auth-form input:focus,
.calc-inputs input:focus,
.directory-search-form input:focus {
    outline: none;
    border-color: var(--accent-emerald);
}

.composer-extras {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.composer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.composer-tools-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    flex-wrap: wrap;
}

.channel-select {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    color: var(--accent-emerald);
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.tags-inline-input {
    flex: 1;
    min-width: 240px;
    width: auto !important;
    padding: 0.38rem 0.65rem !important;
    font-size: 0.8rem !important;
}

.composer-guest-prompt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.guest-prompt-actions {
    display: flex;
    gap: 0.5rem;
}

.social-timeline-stack {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.stream-card {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pinned-banner {
    font-size: 0.7rem;
    color: var(--accent-emerald);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stream-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.author-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

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

.author-badge {
    font-size: 0.68rem;
    padding: 0.12rem 0.48rem;
    border-radius: 99px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
}

.post-time {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.channel-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
}

.stream-content {
    font-size: 0.96rem;
    line-height: 1.62;
    color: var(--text-primary);
}

.code-snippet {
    background: var(--bg-code);
    color: #a7f3d0;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.79rem;
    overflow-x: auto;
    line-height: 1.5;
}

.resource-embed-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.resource-embed-card:hover {
    border-color: var(--accent-cyan);
}

.resource-embed-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.resource-embed-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-action-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-subtle);
}

.social-action-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.16s ease;
}

.social-action-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.like-btn.liked {
    background: rgba(244, 63, 94, 0.14);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
}

.comments-drawer {
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.comment-item {
    display: flex;
    gap: 0.6rem;
    background: var(--bg-alt);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.comment-meta {
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    font-size: 0.76rem;
    margin-bottom: 0.2rem;
}

.comment-meta span { color: var(--text-muted); }

.comment-form {
    display: flex;
    gap: 0.5rem;
}

.trending-tags-cloud,
.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.trending-tag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.trending-tag-row:hover {
    background: rgba(148, 163, 184, 0.08);
}

.tag-count-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.contributor-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0;
}

.contributor-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: 0.83rem;
}

.contributor-info span {
    font-size: 0.71rem;
    color: var(--text-muted);
}

.rep-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

/* ============================================================================
   Knowledge Base & Profile Views
   ============================================================================ */
.insights-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1360px;
}

.insight-article-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

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

.insight-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.insight-lead {
    font-size: 1.02rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.insight-body {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.75;
}

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

.profile-header-card {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-stats-row {
    display: flex;
    gap: 1.25rem;
}

.profile-stat-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

/* ============================================================================
   Footer & Modals
   ============================================================================ */
.site-footer {
    margin-top: auto;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0.85rem 0;
    max-width: 480px;
}

.footer-tech {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.footer-links-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-links-col a:hover { color: var(--accent-emerald); }

.security-badge {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.76);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 250;
    padding: 1rem;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    padding: 1.75rem;
    background: var(--bg-surface-elevated);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.modal-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.demo-credentials-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.74rem;
    color: var(--accent-emerald);
}

.btn-chip {
    background: var(--accent-emerald);
    color: #04130d;
    border: none;
    border-radius: 6px;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.form-alert {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.error-alert {
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid var(--accent-rose);
    color: var(--accent-rose);
}

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-msg {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--accent-emerald);
    color: var(--text-primary);
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-card);
}

.text-rose { color: var(--accent-rose); }
.text-center { text-align: center !important; }

.modal-switch-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}

/* ============================================================================
   SOFTWARE DATABASE: SEARCH BAR, 4-COLUMN DROPDOWNS, COUNTRY GRID & TABLE
   ============================================================================ */
.search-bar-group {
    display: flex;
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
    overflow: hidden;
    background: var(--bg-alt);
    margin-bottom: 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar-group:focus-within {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px var(--accent-emerald-glow);
}

.search-bar-group .input-group-text {
    padding: 0.78rem 1.1rem;
    background: rgba(148, 163, 184, 0.08);
    border-right: 1px solid var(--border-subtle);
    color: var(--accent-emerald);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.search-bar-group .form-control {
    flex-grow: 1;
    border: none;
    padding: 0.78rem 1rem;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

.search-bar-group .form-control:focus {
    outline: none;
}

.search-bar-group .btn-clear {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0 1.05rem;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease;
}

.search-bar-group .btn-clear:not(.disabled) {
    color: #ef4444;
}

.search-bar-group .btn-clear:not(.disabled):hover {
    color: #dc2626;
}

.search-bar-group .btn-clear.disabled {
    color: var(--border-subtle);
    cursor: not-allowed;
    pointer-events: none;
}

/* 4-Column Filter Dropdowns */
.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

.filter-dropdown {
    position: relative;
}

.filter-toggle-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
    border-color: var(--accent-emerald);
}

.filter-toggle-btn .chevron-icon {
    transition: transform 0.2s ease;
    color: var(--accent-emerald);
}

.filter-toggle-btn.active .chevron-icon {
    transform: rotate(180deg);
}

.filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 310px;
    overflow-y: auto;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 0.5rem;
    z-index: 120;
}

.filter-menu .form-check {
    padding: 0.45rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 7px;
}

.filter-menu .form-check:hover {
    background: rgba(148, 163, 184, 0.1);
}

.filter-menu .form-check-input,
.country-filter .form-check-input {
    accent-color: var(--accent-emerald);
    cursor: pointer;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.filter-menu .form-check-label {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    user-select: none;
}

.filter-menu .dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    border: none;
    margin: 0.4rem 0;
}

.dropdown-search-wrapper {
    padding: 0.35rem 0.45rem 0.5rem;
    position: sticky;
    top: -8px;
    background: var(--bg-surface-elevated);
    z-index: 2;
}

.dropdown-search-input {
    width: 100%;
    padding: 0.48rem 2.2rem 0.48rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--text-primary);
    font-size: 0.84rem;
}

.dropdown-search-input:focus {
    outline: none;
    border-color: var(--accent-emerald);
}

.btn-clear-dropdown {
    position: absolute;
    top: 46%;
    right: 0.8rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.35rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.btn-clear-dropdown:not(.disabled) {
    opacity: 1;
    color: #ef4444;
    pointer-events: auto;
}

/* Country Filter Grid */
.country-filter {
    margin-top: 1.15rem;
    padding: 1rem 1.15rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.country-filter-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.country-filter .form-check-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.3rem 0.65rem;
}

.country-filter .form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    overflow: hidden;
}

.country-filter .form-check:hover {
    background: rgba(148, 163, 184, 0.08);
}

.country-filter .form-check-label {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/* Software Accordion Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
}

.software-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.software-table th,
.software-table td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.software-table thead th {
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.software-table tbody tr.main-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.software-table tbody tr.main-row:hover {
    background: rgba(16, 185, 129, 0.05);
}

.software-name-link {
    font-weight: 700;
    color: var(--text-primary);
}

.software-name-link:hover {
    color: var(--accent-emerald);
    text-decoration: underline;
}

.os-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.os-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.14rem 0.45rem;
    border-radius: 6px;
    font-size: 0.71rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.license-open-source {
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.78rem;
}

.license-proprietary {
    color: var(--accent-rose);
    font-weight: 600;
    font-size: 0.78rem;
}

.external-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    color: var(--accent-cyan);
    font-weight: 700;
    transition: all 0.18s ease;
}

.external-link-icon:hover {
    background: var(--accent-cyan-glow);
    border-color: var(--accent-cyan);
    transform: scale(1.08);
}

.row-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    color: var(--text-muted);
    font-size: 1rem;
}

.software-table .main-row.collapsed .row-chevron {
    transform: rotate(-90deg);
}

.software-table .detail-row {
    display: none;
    background: var(--bg-alt);
}

.software-table .detail-row.show {
    display: table-row;
}

.software-table .detail-cell {
    padding: 0 !important;
}

.software-table .detail-content {
    padding: 1.35rem 1.5rem;
    border-left: 3px solid var(--accent-emerald);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.detail-description-block h6,
.detail-pros-cons-grid h6 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
}

.detail-description-block p {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.detail-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-pros-box,
.detail-cons-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.95rem 1.1rem;
}

.detail-pros-box ul,
.detail-cons-box ul,
.detail-bullet-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.detail-pros-box ul li,
.detail-cons-box ul li,
.detail-bullet-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-pros-box ul li::before,
.detail-cons-box ul li::before,
.detail-bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
}

.detail-cons-box ul li::before {
    color: var(--accent-rose);
}

.detail-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .hero-grid,
    .split-home-layout,
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .tools-grid-4,
    .filter-dropdowns {
        grid-template-columns: repeat(2, 1fr);
    }
    .tools-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .social-3col-grid {
        grid-template-columns: 1fr;
    }
    .social-sidebar-left,
    .social-sidebar-right {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: auto;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
    .tools-grid-4,
    .tools-grid-3,
    .filter-dropdowns,
    .detail-pros-cons-grid,
    .calc-inputs,
    .output-cards-grid,
    .form-row-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
