/* ==========================================================================
   HumanizerX — 24-Engine AI Text Detector
   Design System & Responsive Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Reset & Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme (Default) */
    --bg-canvas: #edf0f6;
    --bg-card: #ffffff;
    --bg-card-subtle: #f8f9fc;
    --bg-card-border: #e2e8f0;
    --border-color: #e2e8f0;
    --border-color-subtle: #edf2f7;
    --border-hover: #cbd5e1;
    --bg-secondary: #f8f9fc;
    --bg-pill-hover: #f1f3f8;
    
    /* Dark Active Elements */
    --color-dark-active: #18191d;
    --color-dark-hover: #2b2d35;
    
    /* Typography */
    --text-primary: #191b23;
    --text-secondary: #777e90;
    --text-muted: #9fa6b6;
    --text-white: #ffffff;
    
    /* Brand Accents */
    --accent-orange: #ff6433;
    --accent-orange-bg: #fff0eb;
    --accent-yellow: #f5b300;
    --accent-yellow-bg: #fff9e6;
    --accent-purple: #9b51e0;
    --accent-purple-bg: #f5edff;
    --accent-green: #10b981;
    --accent-green-bg: #e8fbf4;
    --accent-red: #ef4444;
    --accent-red-bg: #fee2e2;
    --accent-blue: #3b82f6;
    --accent-blue-bg: #eff6ff;

    /* Radii */
    --radius-full: 9999px;
    --radius-pill: 9999px;
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    /* Soft Elevated Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px rgba(22, 28, 45, 0.04), 0 1px 3px rgba(22, 28, 45, 0.02);
    --shadow-floating: 0 12px 32px rgba(22, 28, 45, 0.06), 0 2px 8px rgba(22, 28, 45, 0.03);
    --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */
body.dark-theme {
    --bg-canvas: #0e1015;
    --bg-card: #181a20;
    --bg-card-subtle: #1f222b;
    --bg-secondary: #1f222b;
    --bg-card-border: #282b37;
    --border-color: #282b37;
    --border-color-subtle: #21242f;
    --border-hover: #374151;
    --bg-pill-hover: #262934;
    
    --color-dark-active: #ffffff;
    --color-dark-hover: #e2e8f0;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-white: #18191d;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-floating: 0 12px 36px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.25);
    
    --accent-red-bg: rgba(239, 68, 68, 0.18);
    --accent-green-bg: rgba(16, 185, 129, 0.18);
    --accent-yellow-bg: rgba(245, 179, 0, 0.18);
    --accent-purple-bg: rgba(155, 81, 224, 0.18);
    --accent-orange-bg: rgba(255, 100, 51, 0.18);
    --accent-blue-bg: rgba(59, 130, 246, 0.18);
}

/* Body: Balanced Side Margins ("Small gap in the right and left of the page") */
html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    padding: 12px 14px;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}

/* App Container (Flush full-width layout with fixed floating sidebar on left) */
.app-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    position: relative;
    padding-left: 88px;
    box-sizing: border-box;
}

/* ==========================================================================
   Floating Vertical Pill Sidebar (Left Rail) - 100% Fixed & Sticky on Scroll
   ========================================================================== */
.floating-sidebar {
    width: 72px;
    height: calc(100vh - 24px);
    bottom: 12px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-floating);
    border: 1px solid var(--bg-card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 8px;
    position: fixed;
    top: 12px;
    left: 14px;
    z-index: 1000;
    box-sizing: border-box;
    transition: var(--transition);
    animation: fadeSlideUp 0.5s ease-out both;
}

/* Website Logo: Outline circle with genuine typographic letter 'X' inside */
.logo-container {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-circle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
}

.logo-outline-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-letter-x {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    color: currentColor;
    letter-spacing: -0.5px;
    user-select: none;
}

.logo-circle:hover .logo-outline-ring {
    transform: scale(1.06);
}

/* Sidebar Model Tools Rail (16 App Models) - Evenly Distributed Across Full Height */
.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    flex: 1;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 2px 0;
    min-height: 0;
}

.sidebar-nav-group::-webkit-scrollbar {
    display: none;
}

.sidebar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-icon-btn svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.sidebar-icon-btn:hover {
    background-color: var(--bg-pill-hover);
    color: var(--text-primary);
}

/* Active Icon - Solid Dark Pill Circle */
.sidebar-icon-btn.active {
    background-color: var(--color-dark-active);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(24, 25, 29, 0.25);
}

.sidebar-icon-btn.active:hover {
    background-color: var(--color-dark-hover);
}

/* Tooltip */
.sidebar-icon-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: #111215;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
}

.sidebar-icon-btn[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-dashboard {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --------------------------------------------------------------------------
   Header Bar (Modern Glassmorphic Redesign)
   -------------------------------------------------------------------------- */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    gap: 16px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

body.dark-theme .top-header {
    background: rgba(26, 29, 36, 0.82);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.08);
}

.header-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

/* Modern Header Title Pill with Live Status Indicator */
.header-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    user-select: none;
    letter-spacing: -0.2px;
}

.header-title-pill::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    flex-shrink: 0;
}

/* Modern Segmented Navigation Tabs */
.header-nav-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.035);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body.dark-theme .header-nav-tabs {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
}

.header-nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.nav-tab-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

body.dark-theme .nav-tab-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

.nav-tab-link.active {
    color: var(--text-primary);
    font-weight: 700;
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-theme .nav-tab-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Header Right Actions (Circular Action Buttons matching Search button) */
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.circle-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: var(--transition);
}

.circle-action-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.circle-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Dark Mode Toggle Button */
.theme-icon-sun {
    display: block;
    color: var(--accent-yellow);
}

.theme-icon-moon {
    display: none;
    color: #60a5fa;
}

body.dark-theme .theme-icon-sun {
    display: none;
}

body.dark-theme .theme-icon-moon {
    display: block;
}

/* --------------------------------------------------------------------------
   Main Workspace Split
   (Text Analysis Console INCREASED HORIZONTALLY: 1.85fr vs 1fr)
   -------------------------------------------------------------------------- */
.main-workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.workspace-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-card-border);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    min-width: 0;
    transition: var(--transition);
    box-sizing: border-box;
    gap: 14px;
}

/* Ensure top content section fills available space without empty gaps */
.workspace-card > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Footer section (controls/turnstile) sits neatly at the bottom */
.workspace-card > div:last-child:not(:first-child) {
    flex-shrink: 0;
    margin-top: auto;
}

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

.card-header-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-icon.purple {
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
}

.card-header-icon.blue {
    background: var(--accent-blue-bg);
    color: var(--accent-blue);
}

.card-header-icon.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.card-header-icon.orange {
    background: var(--accent-orange-bg);
    color: var(--accent-orange);
}

.card-header-icon.red {
    background: var(--accent-red-bg);
    color: var(--accent-red);
}

.card-header-icon.camera {
    background: var(--bg-card-subtle);
    color: var(--text-primary);
}

.card-header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-title-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title-sub {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-mode-badge {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Live Badge */
.live-stream-badge {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ef4444;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Quick Action Toolbar for Text Input */
.text-input-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-tool-pill:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

.btn-tool-pill svg {
    width: 14px;
    height: 14px;
}

.text-meta-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* WIDE & LARGE Text Input & Analyzer Box */
.text-analyzer-box {
    background: var(--bg-card-subtle);
    border: 1.5px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-primary);
    flex: 1;
    min-height: 280px;
    max-height: 440px;
    overflow-y: auto;
    margin-bottom: 0;
    scrollbar-width: thin;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.text-analyzer-box:focus-within {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.text-analyzer-box::-webkit-scrollbar {
    width: 6px;
}
.text-analyzer-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

body.dark-theme .text-analyzer-box::-webkit-scrollbar-thumb {
    background: #374151;
}

/* Highlighted AI detection phrases */
.hl-ai {
    background-color: var(--accent-red-bg);
    border-bottom: 2px solid var(--accent-red);
    padding: 2px 4px;
    border-radius: 4px;
    color: #dc2626;
    font-weight: 500;
}

body.dark-theme .hl-ai {
    color: #f87171;
}

.hl-mixed {
    background-color: var(--accent-yellow-bg);
    border-bottom: 2px solid var(--accent-yellow);
    padding: 2px 4px;
    border-radius: 4px;
    color: #b45309;
    font-weight: 500;
}

body.dark-theme .hl-mixed {
    color: #fbbf24;
}

.hl-human {
    background-color: var(--accent-green-bg);
    border-bottom: 2px solid var(--accent-green);
    padding: 2px 4px;
    border-radius: 4px;
    color: #059669;
}

body.dark-theme .hl-human {
    color: #34d399;
}

/* Scrubber / Score Slider */
.scrubber-section {
    margin-bottom: 14px;
}

.scrubber-track-wrap {
    position: relative;
    width: 100%;
    height: 7px;
    background: #e6eaf2;
    border-radius: 6px;
    margin: 8px 0;
}

body.dark-theme .scrubber-track-wrap {
    background: #252834;
}

.scrubber-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 46.73%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ff6433 100%);
    border-radius: 6px;
}

.scrubber-knob {
    position: absolute;
    left: 46.73%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #18191d;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
}

body.dark-theme .scrubber-knob {
    background: #ffffff;
    border: 2.5px solid #0e1015;
}

.scrubber-time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Scanner Controls Row */
.scanner-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.scanner-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ctrl-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ctrl-circle:hover {
    background: var(--bg-pill-hover);
}

.btn-ctrl-play {
    padding: 11px 24px;
    background: #18191d;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(24, 25, 29, 0.22);
    transition: var(--transition);
    white-space: nowrap;
}

body.dark-theme .btn-ctrl-play {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-ctrl-play:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Redesigned Prominent Humanize & Bypass Action Button */
.btn-ctrl-humanize {
    padding: 11px 22px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-ctrl-humanize:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.48);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: #ffffff;
}

.btn-ctrl-humanize:active {
    transform: translateY(0);
}

.btn-ctrl-humanize svg {
    stroke-width: 2.2;
}

body.dark-theme .btn-ctrl-humanize {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.recaptcha-inline-proof {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.recaptcha-inline-proof svg {
    color: var(--accent-blue);
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   Right Card: 24 Engines Matrix (COMPACT BOXES)
   -------------------------------------------------------------------------- */
.engines-matrix-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Top Hero Verdict Header */
.matrix-hero-verdict {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hero-verdict-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verdict-badge-pill {
    background: var(--accent-yellow-bg);
    color: #b45309;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

body.dark-theme .verdict-badge-pill {
    color: #fbbf24;
}

.verdict-score-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.verdict-sub-text {
    font-size: 10.5px;
    color: var(--text-secondary);
}

/* Filter Pills */
.filter-pills-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill.active {
    background: #18191d;
    color: #ffffff;
    border-color: #18191d;
}

body.dark-theme .filter-pill.active {
    background: #ffffff;
    color: #18191d;
    border-color: #ffffff;
}

.filter-pill:hover:not(.active) {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

/* 24 Engines Grid (3 Columns, Fully Visible, No Scrolling) */
.engines-scroll-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    scrollbar-width: none;
}

.engines-scroll-list::-webkit-scrollbar {
    display: none;
}

/* Compact engine boxes */
.engine-item-card {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: 9px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    gap: 5px;
    min-width: 0;
}

.engine-item-card:hover {
    background: var(--bg-card);
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.engine-item-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* Authentic Brand SVG Logo Containers */
.engine-brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    overflow: hidden;
}

.engine-brand-logo svg {
    width: 15px;
    height: 15px;
}

.engine-brand-logo img,
.brand-favicon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

[data-theme="dark"] .engine-brand-logo {
    background: #232733;
    border-color: rgba(255, 255, 255, 0.12);
}

.engine-meta-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.engine-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.engine-status-tag {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.engine-score-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.engine-score-pill.flagged-ai {
    background: var(--accent-red-bg);
    color: var(--accent-red);
}

.engine-score-pill.human {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.engine-score-pill.mixed {
    background: var(--accent-yellow-bg);
    color: #d97706;
}

body.dark-theme .engine-score-pill.mixed {
    color: #fbbf24;
}

/* Bottom Matrix Utility Controls */
.matrix-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--bg-card-border);
    gap: 8px;
}

.matrix-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    color: var(--text-secondary);
    font-weight: 600;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.legend-dot.red { background: var(--accent-red); }
.legend-dot.green { background: var(--accent-green); }
.legend-dot.yellow { background: var(--accent-yellow); }

.matrix-action-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.icon-action-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-action-small:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Readability & Linguistic Diagnostics Panel (Full-Width, High Density)
   -------------------------------------------------------------------------- */
.readability-analytics-panel {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.fade-in {
    animation: fadeInPanel 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.readability-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.readability-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.readability-panel-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.readability-panel-sub {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.readability-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
}

@media (max-width: 900px) {
    .readability-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .readability-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.readability-metric-tile {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.readability-metric-tile:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.tile-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 2px 0;
}

.tile-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Bottom 3 Cards
   -------------------------------------------------------------------------- */
.bottom-widgets-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.bottom-widget-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-card-border);
    padding: 20px 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: var(--transition);
    min-width: 0;
}

.bottom-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 28, 45, 0.06);
}

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

.widget-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.widget-icon-wrap.star {
    color: var(--accent-yellow);
}

.widget-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
}

/* Card 1: AI Tips */
.ai-tip-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ai-tip-body p {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.btn-tip-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
}

.btn-tip-action:hover {
    text-decoration: underline;
}

/* Widget Metrics List */
.engine-metric-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.metric-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-card-border);
    width: 100%;
}

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

.metric-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.metric-val {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    white-space: nowrap;
}

/* Card 2: Security Alarm Panel Buttons */
.security-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.security-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.security-circle-btn:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

.security-circle-btn.dark-active {
    background: #18191d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 25, 29, 0.25);
}

body.dark-theme .security-circle-btn.dark-active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Card 3: Latest Updates */
.update-item-row {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-text-meta {
    flex: 1;
    min-width: 0;
}

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

.update-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.update-time {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.update-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Small Footer (with just the necessary links)
   -------------------------------------------------------------------------- */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-top: 4px;
    gap: 16px;
    flex-wrap: wrap;
    transition: var(--transition);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.footer-brand {
    font-weight: 700;
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-muted);
}

.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1280px) {
    .bottom-widgets-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bottom-widget-card:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .main-workspace-grid {
        grid-template-columns: 1fr;
    }
    body {
        padding: 14px 16px;
    }
    .app-container {
        gap: 14px;
    }
    .bottom-widgets-grid {
        grid-template-columns: 1fr;
    }
    .bottom-widget-card:nth-child(3) {
        grid-column: span 1;
    }
    .app-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 8px 10px;
    }
    .app-container {
        flex-direction: column;
        gap: 12px;
        padding-left: 0;
    }

    .floating-sidebar {
        width: 100%;
        min-height: auto;
        flex-direction: row;
        border-radius: var(--radius-full);
        padding: 8px 14px;
        position: sticky;
        top: 8px;
        left: auto;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        overflow-x: auto;
    }

    .logo-container {
        margin-bottom: 0;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .logo-circle {
        width: 36px;
        height: 36px;
    }

    .logo-outline-ring {
        width: 34px;
        height: 34px;
    }

    .logo-letter-x {
        font-size: 18px;
    }

    .sidebar-nav-group {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .sidebar-nav-group::-webkit-scrollbar {
        display: none;
    }

    .sidebar-icon-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .sidebar-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .top-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-nav-left {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-title-pill {
        width: 100%;
        justify-content: center;
    }

    .header-nav-tabs {
        width: 100%;
        padding-bottom: 4px;
    }

    .header-actions-right {
        justify-content: space-between;
        width: 100%;
    }

    .workspace-card {
        padding: 16px;
        border-radius: var(--radius-lg);
        min-height: auto;
    }

    .text-analyzer-box {
        min-height: 220px;
        max-height: 280px;
    }

    .engines-scroll-list {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
        overflow: visible;
    }

    @media (max-width: 480px) {
        .engines-scroll-list {
            grid-template-columns: 1fr;
        }
    }

    .scanner-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .scanner-actions-group {
        justify-content: space-between;
        width: 100%;
    }

    .btn-ctrl-play {
        flex: 1;
        justify-content: center;
    }

    .recaptcha-inline-proof {
        justify-content: center;
    }

    .matrix-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .matrix-action-icons {
        width: 100%;
        justify-content: flex-end;
    }

    .footer-nav-links {
        gap: 14px;
    }
}

/* ==========================================================================
   Real Interactive Cloudflare Turnstile CAPTCHA Box
   ========================================================================== */
.real-turnstile-slot {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 65px !important;
    min-width: 300px !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 20 !important;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.real-turnstile-slot .cf-turnstile,
.real-turnstile-slot iframe {
    min-width: 300px !important;
    min-height: 65px !important;
    width: 300px !important;
    height: 65px !important;
    display: block !important;
    border-radius: 6px !important;
}

.real-turnstile-slot.turnstile-highlight {
    animation: turnstilePulse 1.2s ease infinite;
    outline: 2px solid #6366f1;
    outline-offset: 4px;
}

@keyframes turnstilePulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@media (max-width: 768px) {
    .turnstile-verification-bar {
        padding: 8px 10px;
    }
    .turnstile-widget-slot {
        width: 100% !important;
        min-width: 100% !important;
    }
}

.turnstile-captcha-widget {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.turnstile-captcha-widget:hover {
    border-color: #cbd5e1;
}

body.dark-theme .turnstile-captcha-widget:hover {
    border-color: #475569;
}

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

.captcha-checkbox-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 0;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
}

.captcha-checkbox-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

body.dark-theme .captcha-checkbox-box {
    border-color: #475569;
}

.captcha-checkbox-btn:hover .captcha-checkbox-box {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.captcha-check-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
    display: none;
}

.captcha-spinner-ring {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    display: none;
    animation: captchaSpin 0.7s linear infinite;
}

@keyframes captchaSpin {
    to { transform: rotate(360deg); }
}

/* Universal Continuous Rolling / Spinning Keyframes */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.spin,
.rolling-icon,
.btn-rolling-spinner {
    -webkit-animation: spin 0.8s linear infinite !important;
    animation: spin 0.8s linear infinite !important;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    display: inline-block;
}

.btn-spinner-ring {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    -webkit-animation: spin 0.75s linear infinite !important;
    animation: spin 0.75s linear infinite !important;
    box-sizing: border-box;
    flex-shrink: 0;
}

.loading-spinner-ring {
    width: 52px;
    height: 52px;
    border: 3.5px solid rgba(124, 58, 237, 0.18);
    border-top-color: var(--accent-purple, #7c3aed);
    border-radius: 50%;
    display: inline-block;
    -webkit-animation: spin 0.8s linear infinite !important;
    animation: spin 0.8s linear infinite !important;
    box-sizing: border-box;
}

#watermarkLoadingState {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 380px;
    height: 100%;
    padding: 32px 24px;
    box-sizing: border-box;
}

.rounded-spinner-ring {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    -webkit-animation: spin 0.75s linear infinite !important;
    animation: spin 0.75s linear infinite !important;
    box-sizing: border-box;
}

.captcha-checkbox-box.verifying {
    border-color: var(--accent-blue);
}

.captcha-checkbox-box.verifying .captcha-spinner-ring {
    display: block;
}

.captcha-checkbox-box.verified {
    border-color: #10b981;
    background: #ecfdf5;
}

body.dark-theme .captcha-checkbox-box.verified {
    background: rgba(16, 185, 129, 0.2);
}

.captcha-checkbox-box.verified .captcha-check-icon {
    display: block;
    animation: checkPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes checkPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.captcha-label-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.captcha-brand-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.captcha-brand-icon {
    color: var(--accent-blue);
    display: flex;
    align-items: center;
}

.captcha-brand-meta {
    display: flex;
    flex-direction: column;
}

.captcha-brand-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.captcha-brand-sub {
    font-size: 9.5px;
    color: var(--text-muted);
}

.captcha-token-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #10b981;
    padding-top: 2px;
}

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

/* ==========================================================================
   Tool Page Dedicated Workspaces (Side-by-Side Dual Console)
   ========================================================================== */
.tool-workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.tool-output-box {
    background: var(--bg-card-subtle);
    border: 1.5px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-primary);
    min-height: 330px;
    max-height: 360px;
    overflow-y: auto;
    margin-bottom: 16px;
    scrollbar-width: thin;
    outline: none;
    position: relative;
}

.tool-output-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.options-pill-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.option-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.option-select-btn:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

.option-select-btn.active {
    background: #18191d;
    color: #ffffff;
    border-color: #18191d;
}

body.dark-theme .option-select-btn.active {
    background: #ffffff;
    color: #18191d;
    border-color: #ffffff;
}

/* Diff View Highlights */
.diff-del {
    background: #fee2e2;
    color: #dc2626;
    text-decoration: line-through;
    padding: 2px 4px;
    border-radius: 4px;
    margin-right: 4px;
}

.diff-add {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
}

body.dark-theme .diff-del {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

body.dark-theme .diff-add {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
}

/* ==========================================================================
   Grammar Checker Diagnostic Cards & Replacement Buttons
   ========================================================================== */
.grammar-issue-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 12px;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.grammar-issue-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.grammar-issue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.grammar-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-red-bg);
    color: var(--accent-red);
}

.grammar-rule {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.grammar-issue-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.grammar-replacements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-replacement-pill {
    background: #18191d;
    color: #ffffff;
    border: 1px solid #18191d;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-replacement-pill:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

/* Annotated Output Text Area with Mistakes Underlined in Red (matching user Image 2) */
.grammar-annotated-output {
    min-height: 220px;
    max-height: 380px;
    overflow-y: auto;
    line-height: 1.8;
    position: relative;
    padding: 16px 18px;
    font-size: 14.5px;
    word-break: break-word;
    white-space: pre-wrap;
}

.grammar-error-word {
    text-decoration: underline;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 3px;
    padding: 1px 3px;
    cursor: pointer;
    transition: background 0.15s ease, text-decoration-color 0.15s ease;
    display: inline;
    position: relative;
}

.grammar-error-word:hover {
    background: rgba(239, 68, 68, 0.22);
    text-decoration-color: #dc2626;
}

.grammar-error-word.fixed {
    text-decoration: none !important;
    background: transparent !important;
    cursor: text !important;
}

/* Floating Fix Popover */
.grammar-popover-card {
    position: absolute;
    z-index: 1000;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--bg-card-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 12px 14px;
    min-width: 220px;
    max-width: 320px;
    animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.grammar-popover-rule {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ef4444;
    margin-bottom: 4px;
}

.grammar-popover-msg {
    font-size: 12.5px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.grammar-popover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-popover-apply {
    background: var(--accent-green-bg, #ecfdf5);
    color: var(--accent-green, #10b981);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-popover-apply:hover {
    background: #10b981;
    color: #ffffff;
}

.btn-popover-close {
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

body.dark-theme .btn-replacement-pill {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

body.dark-theme .btn-replacement-pill:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.empty-suggestions-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--bg-card-border);
    margin-top: 0;
    min-height: 260px;
    box-sizing: border-box;
}

.empty-suggestions-state .empty-state-icon {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-suggestions-state .empty-state-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-suggestions-state .empty-state-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 380px;
    line-height: 1.5;
    margin: 0 auto;
}

/* Empty Editor Placeholder & Drag Drop Active State */
.text-analyzer-box:empty::before,
.text-analyzer-editor:empty::before,
.tool-text-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    pointer-events: none;
    display: block;
    font-size: 14.5px;
    line-height: 1.6;
}

.text-analyzer-box.drag-active,
.text-analyzer-editor.drag-active,
.tool-text-editor.drag-active {
    border-color: var(--accent-blue) !important;
    background: var(--accent-blue-bg) !important;
    outline: 2px dashed var(--accent-blue);
}

/* Plagiarism Source Match Card */
.source-match-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.source-match-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0 !important;
}

.source-match-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-match-title:hover {
    color: var(--accent-blue);
}

.source-match-similarity {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--accent-red-bg);
    color: var(--accent-red);
    flex-shrink: 0;
}

/* Citations Output */
.citation-format-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.citation-format-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.citation-style-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.citation-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-primary);
    font-family: serif;
}

/* ==========================================================================
   Comprehensive SEO Sections (Cards, FAQ, Comparison Matrix)
   ========================================================================== */
.seo-page-section,
.seo-content-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-card-border);
    padding: 36px 38px;
    box-shadow: var(--shadow-card);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.seo-section-header,
.seo-lead-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.seo-super-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    background: var(--accent-blue-bg);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.seo-main-h2,
.seo-lead-header h1,
.seo-section-header h1 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.seo-sub-p,
.seo-subtitle,
.seo-lead-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.seo-article-block {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin: 10px 0;
}

.seo-article-block h2,
.seo-article-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 14px;
    margin-bottom: 8px;
}

.seo-article-block h2:first-child,
.seo-article-block h3:first-child {
    margin-top: 0;
}

.seo-article-block p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.seo-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-card-border);
    margin: 12px 0;
}

.seo-benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.seo-benchmark-table th {
    padding: 12px 16px;
    background: var(--bg-card-subtle);
    color: var(--text-secondary);
    font-weight: 700;
    border-bottom: 1px solid var(--bg-card-border);
}

.seo-benchmark-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-card-border);
    color: var(--text-primary);
}

.seo-benchmark-table tr:last-child td {
    border-bottom: none;
}

/* SEO 3-Card Grid (Universal for .seo-features-grid and .seo-grid-cards) */
.seo-features-grid,
.seo-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
    width: 100%;
}

@media (max-width: 900px) {
    .seo-features-grid,
    .seo-grid-cards {
        grid-template-columns: 1fr;
    }
}

.seo-feature-box,
.seo-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.seo-feature-box:hover,
.seo-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
    border-color: rgba(59, 130, 246, 0.3);
}

.seo-feature-icon,
.seo-feature-card .card-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seo-feature-card .card-header-icon.blue {
    background: var(--accent-blue-bg);
    color: var(--accent-blue);
    border: none;
}

.seo-feature-card .card-header-icon.purple {
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
    border: none;
}

.seo-feature-card .card-header-icon.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: none;
}

.seo-feature-card .card-header-icon.orange {
    background: var(--accent-orange-bg);
    color: var(--accent-orange);
    border: none;
}

.seo-feature-card .card-header-icon.red {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    border: none;
}

.seo-feature-title,
.seo-feature-card h3,
.seo-feature-card .card-title-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.seo-feature-desc,
.seo-feature-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Comparison Table Wrap */
.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.seo-table th {
    background: var(--bg-card-subtle);
    color: var(--text-primary);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg-card-border);
}

.seo-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
}

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

.seo-table tr:hover td {
    background: var(--bg-card-subtle);
}

.table-check {
    color: #10b981;
    font-weight: 800;
}

.table-cross {
    color: #ef4444;
}

/* ==========================================================================
   FAQ Accordion Section (Side-by-Side 2-Column Redesign)
   ========================================================================== */
.seo-faq-container,
.faq-accordion-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.faq-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (max-width: 860px) {
    .faq-grid-2col {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.seo-faq-container h2,
.faq-accordion-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: left;
}

.faq-item,
.faq-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item:hover,
.faq-accordion-item:hover {
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.faq-item.active,
.faq-accordion-item.active {
    border-color: rgba(59, 130, 246, 0.45);
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.faq-question-btn,
.faq-item-header {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: inherit;
    transition: color 0.2s ease;
    user-select: none;
}

.faq-question-btn:hover,
.faq-item-header:hover {
    color: var(--accent-blue);
}

.faq-question-btn span,
.faq-item-header span {
    flex: 1 1 auto;
    line-height: 1.5;
}

.faq-arrow-icon,
.faq-toggle-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
    flex-shrink: 0 !important;
    color: var(--text-secondary);
    stroke: currentColor;
    stroke-width: 2.2;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s ease, color 0.2s ease;
    display: inline-block !important;
    vertical-align: middle;
}

.faq-item.active .faq-arrow-icon,
.faq-accordion-item.active .faq-toggle-icon,
.faq-question-btn[aria-expanded="true"] .faq-arrow-icon {
    transform: rotate(180deg);
    color: var(--accent-blue);
    stroke: var(--accent-blue);
}

.faq-answer-body,
.faq-item-body {
    display: none;
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.faq-answer-body p,
.faq-item-body p {
    margin: 0;
}

.faq-answer-body a,
.faq-item-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item.active .faq-answer-body,
.faq-accordion-item.active .faq-item-body {
    display: block !important;
    animation: fadeSlideUp 0.28s ease-out both;
}

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

/* ==========================================================================
   Search Modal & Toast
   ========================================================================== */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 16, 21, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-modal-backdrop.active {
    opacity: 1;
}

.search-modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 620px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-card-border);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    color: var(--text-secondary);
}

.search-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    font-family: inherit;
}

.search-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    border-radius: 6px;
}

.search-modal-close:hover {
    color: var(--text-primary);
}

.search-results-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-item:hover {
    background: var(--bg-card-subtle);
}

.search-result-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
}

.search-result-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--bg-card-subtle);
    border-top: 1px solid var(--bg-card-border);
    font-size: 11px;
    color: var(--text-muted);
}

.search-modal-footer kbd {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-item {
    background: #18191d;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .toast-item {
    background: #232733;
}

.toast-item.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    display: flex;
    align-items: center;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info .toast-icon {
    color: var(--accent-blue);
}

/* ==========================================================================
   Tool Page Custom Components (Headlines, Citations, Images, Inputs)
   ========================================================================== */
.app-text-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.app-text-input:focus {
    border-color: var(--accent-blue);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Headline & Hook Workspace Layout - Aligned to Standard App Style */
.headline-workspace {
    align-items: stretch;
}

.headline-workspace .headline-card {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.headline-workspace .headline-card > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.headline-workspace .headline-card > div:last-child:not(:first-child) {
    flex-shrink: 0;
    margin-top: auto;
}

.headline-workspace .headline-topic-textarea {
    width: 100%;
    min-height: 140px;
    height: 140px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--bg-card-border);
    background: var(--bg-card-subtle);
    color: var(--text-primary);
    font-size: 14.5px;
    line-height: 1.7;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.headline-workspace .headline-topic-textarea:focus {
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.headline-workspace .topic-inspiration-box {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.headline-workspace .scanner-controls-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bg-card-border);
}

.headline-workspace .empty-suggestions-state {
    flex: 1;
    min-height: 280px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-card-subtle);
    border: 1.5px dashed var(--bg-card-border);
    border-radius: var(--radius-md);
}

.headlines-results-container,
#headlinesResultsList {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.headline-result-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}

.headline-result-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.headline-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-orange);
    background: var(--accent-orange-bg);
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.headline-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.45;
}

.btn-copy-hook {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card-subtle, #f1f5f9);
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border: 1px solid var(--bg-card-border, #e2e8f0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
}

.btn-copy-hook svg {
    width: 15px;
    height: 15px;
    stroke: var(--text-secondary, #64748b);
    display: block;
    flex-shrink: 0;
}

.btn-copy-hook:hover {
    background: var(--accent-blue-bg, #eff6ff);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-copy-hook:hover svg {
    stroke: var(--accent-blue, #2563eb);
}

body.dark-theme .btn-copy-hook {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.dark-theme .btn-copy-hook:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
}

/* 2. Redesigned Citation Generator Workspace */
.citation-search-console {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.citation-search-console:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(155, 81, 224, 0.12);
}

.citation-omni-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 12px;
    transition: var(--transition);
}

.citation-omni-input-row:focus-within {
    border-color: var(--accent-purple);
    background: var(--bg-card);
}

.citation-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.citation-omni-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14.5px;
    font-family: inherit;
    font-weight: 500;
    padding: 8px 4px;
    outline: none;
    min-width: 0;
}

.citation-omni-input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.citation-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.citation-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card-subtle);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.citation-mini-btn:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

.citation-mini-btn.clear-btn {
    padding: 5px 8px;
    color: var(--text-muted);
}

.citation-mini-btn.clear-btn:hover {
    color: var(--accent-red);
    background: var(--accent-red-bg);
}

/* Source Type Badges */
.citation-types-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.citation-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.citation-type-pill:hover,
.citation-type-pill.active {
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Sample Sources Grid */
.citation-sample-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.citation-sample-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.citation-sample-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 81, 224, 0.08);
}

.citation-sample-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.citation-sample-badge.nature {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.citation-sample-badge.arxiv {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.citation-sample-badge.acm {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.citation-sample-badge.cell {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.citation-sample-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.citation-sample-id {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 2px;
}

/* Feature / Standards Info Card (Fills white space cleanly) */
.citation-features-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    font-size: 11.5px;
    color: var(--text-secondary);
    gap: 8px;
    flex-wrap: wrap;
}

.citation-features-banner span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Output Card & Rich Display */
.citation-output-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 380px;
}

.citation-empty-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 18px;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-lg);
    border: 1.5px dashed var(--border-color);
    flex: 1;
    gap: 12px;
}

.citation-empty-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    box-shadow: 0 4px 16px rgba(155, 81, 224, 0.12);
}

.citation-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.citation-empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 380px;
    line-height: 1.55;
    margin: 0 auto;
}

.citation-formats-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 440px;
    margin-top: 4px;
}

.citation-format-chip {
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
}

.citation-format-chip-label {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.citation-format-chip-example {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Active Result Card Suite */
.citation-result-suite {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.citation-style-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card-subtle);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.citation-style-tab-btn {
    flex: 1;
    min-width: 65px;
    padding: 7px 10px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.citation-style-tab-btn:hover {
    color: var(--text-primary);
}

.citation-style-tab-btn.active {
    background: var(--bg-card);
    color: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

body.dark-theme .citation-style-tab-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.citation-reference-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    position: relative;
}

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

.citation-edition-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
}

.citation-text-hanging {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    padding-left: 28px;
    text-indent: -28px;
    margin: 0;
    word-break: break-word;
    font-family: inherit;
}

/* In-Text Citation Pair */
.citation-intext-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.citation-intext-card {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.citation-intext-info {
    min-width: 0;
}

.citation-intext-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.citation-intext-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-mini-copy {
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-mini-copy:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

/* Metadata Inspection Grid */
.citation-metadata-inspect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.citation-meta-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
}

.citation-meta-tile-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.citation-meta-tile-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Comprehensive Readability & Word Counter Analytics
   ========================================================================== */
.analytics-dashboard-suite {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* 1. Quick Stats Strip (WordCounter.net Hero Stats) */
.analytics-volume-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.volume-stat-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.volume-stat-box:hover {
    border-color: var(--accent-purple);
    background: var(--bg-card);
}

.volume-stat-num {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.volume-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* 2. Pacing & Timing Bar */
.analytics-pacing-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
}

.pacing-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pacing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
}

.pacing-icon.reading {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.pacing-icon.speaking {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.pacing-icon.handwriting {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.pacing-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pacing-val {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pacing-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Flesch Reading Ease Hero Card */
.readability-hero-banner {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-ease-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-ease-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-ease-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.hero-ease-score-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hero-ease-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.hero-ease-max {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-ease-track {
    width: 100%;
    height: 7px;
    border-radius: 6px;
    background: var(--border-color);
    overflow: hidden;
    position: relative;
}

.hero-ease-progress {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background: #10b981;
    width: 0%;
}

/* 4. 6-Index Comparison Grid */
.readability-indices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.readability-index-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.index-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.index-tile-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.index-tile-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2px 0;
}

.index-tile-target {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5. Flow & Linguistic Diagnostics */
.flow-diagnostics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.flow-diagnostic-pill {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
}

.flow-diagnostic-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-diagnostic-val {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

/* 6. Keyword Density Section (WordCounter.net signature) */
.analytics-keyword-section {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.keyword-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keyword-chips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.keyword-density-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11.5px;
}

.keyword-chip-word {
    font-weight: 700;
    color: var(--text-primary);
}

.keyword-chip-count {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
}

.keyword-empty-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
}

/* 3. Image Forensics & Watermark Cards */
.image-verdict-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition);
}

.image-verdict-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-card-border);
    margin-bottom: 12px;
}

.image-verdict-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.image-score-number {
    font-size: 15px;
    font-weight: 800;
}

.image-verdict-card.flagged-ai {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(to bottom, var(--accent-red-bg), var(--bg-card));
}

.image-verdict-card.real {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(to bottom, var(--accent-green-bg), var(--bg-card));
}

.image-artifact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.image-artifact-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.image-artifact-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--accent-orange);
    font-size: 16px;
    top: -2px;
}

.watermark-success-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.image-dropzone {
    border: 2px dashed var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    margin: 16px 0;
    background: var(--bg-card-subtle);
    transition: var(--transition);
}

.image-dropzone:hover,
.image-dropzone.drag-active {
    border-color: var(--accent-blue);
    background: var(--accent-blue-bg);
}

/* 4. Plagiarism Source Items - 100% Full Width, Single Column, No Shrink/Overlap, No Horizontal Scroll */
.plagiarism-scroll-list,
#plagiarismResultsList {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    max-height: 480px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 4px 6px 4px 2px !important;
    scrollbar-width: thin !important;
}

.plagiarism-scroll-list::-webkit-scrollbar,
#plagiarismResultsList::-webkit-scrollbar {
    width: 6px;
}

.plagiarism-scroll-list::-webkit-scrollbar-thumb,
#plagiarismResultsList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

body.dark-theme .plagiarism-scroll-list::-webkit-scrollbar-thumb,
body.dark-theme #plagiarismResultsList::-webkit-scrollbar-thumb {
    background: #374151;
}

.plagiarism-source-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    transition: var(--transition);
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    min-height: 58px !important;
    overflow: hidden !important;
    position: relative !important;
}

.plagiarism-source-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.plagiarism-source-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.plagiarism-source-link {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.4 !important;
}

.plagiarism-source-link:hover {
    color: var(--accent-blue) !important;
    text-decoration: underline !important;
}

.plagiarism-source-url {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.3 !important;
}

.plagiarism-pct-badge {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    background: var(--accent-red-bg) !important;
    color: var(--accent-red) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   Modern Redesigned Neural Translation Toolbar & Language Selection
   ========================================================================== */
.translation-language-bar {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 12px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-selector-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-bar-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.lang-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.lang-direction-indicator {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.lang-target-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.lang-pills-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lang-pill-btn {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-canvas);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.lang-pill-btn:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.lang-pill-btn.active {
    background: var(--color-dark-active);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-select-wrapper {
    position: relative;
    display: inline-flex;
}

.lang-custom-select {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-canvas);
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.lang-custom-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   Comprehensive 4-Column Modern Footer
   ========================================================================== */
.app-footer-comprehensive {
    margin-top: 0;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 36px 32px 24px;
    transition: var(--transition);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.footer-col-brand {
    padding-right: 16px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mini-ring {
    width: 32px;
    height: 32px;
    border-width: 2px;
}

.mini-ring .logo-letter-x {
    font-size: 16px;
}

.footer-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-brand-motto {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-badge-pill svg {
    width: 13px;
    height: 13px;
    color: var(--accent-green);
}

.footer-col-title {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

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

.footer-links-list li a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links-list li a:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom-protocols {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-protocol-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-protocol-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-col-brand {
        grid-column: span 1;
    }
    .app-footer-comprehensive {
        padding: 24px 18px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Redesigned About Page Modern Showcase Styles (Full-Width Dashboard Layout)
   ========================================================================== */
.about-showcase-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.about-hero-box {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 28px 28px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.about-hero-box::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -60px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-green-bg);
    color: #10b981;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.1px;
}

.about-hero-split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

@media (max-width: 992px) {
    .about-hero-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-hero-box {
        padding: 20px 18px;
    }
}

.about-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0 0 12px 0;
}

.about-hero-subtitle {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 18px 0;
}

.about-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.about-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.about-hero-tag svg {
    color: var(--accent-purple);
    flex-shrink: 0;
}

.about-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.about-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.about-hero-btn.primary {
    background: var(--text-primary);
    color: var(--bg-card);
}

.about-hero-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.about-hero-btn.secondary {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
}

.about-hero-btn.secondary:hover {
    background: var(--bg-pill-hover);
    border-color: var(--accent-purple);
}

/* Telemetry Console (Right Column) */
.about-hero-console {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.dark-theme .about-hero-console {
    background: rgba(22, 25, 32, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.console-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 10px;
}

.console-mini-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.console-mini-status {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: var(--accent-green-bg);
    padding: 3px 8px;
    border-radius: 6px;
}

.console-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.console-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.console-metric-val {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.console-metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.console-mini-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--bg-card-border);
    padding-top: 10px;
}

.console-mini-footer svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

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

.about-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition);
}

.about-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
    border-color: rgba(59, 130, 246, 0.3);
}

.about-kpi-num {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.about-kpi-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.about-kpi-detail {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Visual Consensus Architecture Pipeline */
.about-pipeline-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    box-shadow: var(--shadow-card);
    margin-bottom: 0;
}

.about-section-header {
    margin-bottom: 24px;
}

.about-section-tag {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.about-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.about-section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.pipeline-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 16px;
    overflow-x: auto;
    padding: 12px 4px;
}

.pipeline-step-node {
    flex: 1;
    min-width: 160px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pipeline-step-node:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.pipeline-node-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-node-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.pipeline-node-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.pipeline-node-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.pipeline-node-icon.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.pipeline-node-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pipeline-node-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.pipeline-arrow {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pipeline-arrow svg {
    width: 20px;
    height: 20px;
}

/* 24 Engines Grid Showcase */
.about-engines-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    box-shadow: var(--shadow-card);
    margin-bottom: 0;
}

.engines-grid-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.engine-showcase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.engine-showcase-item:hover {
    border-color: var(--accent-blue);
    background: var(--bg-pill-hover);
}

.engine-showcase-info {
    display: flex;
    flex-direction: column;
}

.engine-showcase-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.engine-showcase-tech {
    font-size: 10.5px;
    color: var(--text-muted);
}

.engine-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Pillars Grid */
.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 0;
}

.about-pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.about-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
    border-color: rgba(59, 130, 246, 0.3);
}

.pillar-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.pillar-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .about-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .engines-grid-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-pillars-grid {
        grid-template-columns: 1fr;
    }
    .about-hero-title {
        font-size: 26px;
    }
}

/* --------------------------------------------------------------------------
   Interactive Contact & Enterprise Desk Styles
   -------------------------------------------------------------------------- */
.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-card-border);
    padding: 28px;
    box-shadow: var(--shadow-card);
    min-height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-card-border);
    padding: 28px;
    box-shadow: var(--shadow-card);
    min-height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.form-field-input,
.form-field-select,
.form-field-textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-canvas);
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-field-input:focus,
.form-field-select:focus,
.form-field-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: var(--bg-card);
}

.contact-channel-item {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    transition: var(--transition);
}

.contact-channel-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.status-beacon-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.status-beacon-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseDot 1.5s infinite;
}

/* --------------------------------------------------------------------------
   Homepage Trust, Model Compatibility & Benchmark Table
   -------------------------------------------------------------------------- */
.trust-models-banner {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-models-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-tag-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trust-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
}

.trust-tag-pill strong {
    color: var(--text-primary);
}

/* Benchmark Comparison Table */
.benchmark-table-container {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin: 32px 0;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.benchmark-table th {
    padding: 14px 18px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--bg-card-border);
}

.benchmark-table th.highlight-col {
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px 8px 0 0;
}

.benchmark-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
}

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

.benchmark-table td.highlight-col {
    background: rgba(16, 185, 129, 0.04);
    font-weight: 700;
    color: var(--text-primary);
}

.benchmark-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 700;
}

.benchmark-cross {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-weight: 600;
}

/* 3-Step Workflow Grid */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0 36px 0;
}

@media (max-width: 850px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition);
}

.workflow-card:hover {
    transform: translateY(-2px);
}

.workflow-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #18191d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

body.dark-theme .workflow-step-num {
    background: var(--accent-blue);
    color: #ffffff;
}

/* Legal Document Layout (Privacy & Terms) */
/* Legal Document Layout (Privacy & Terms) - High-Fidelity Executive SaaS */
.legal-layout-wrap {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
}

.legal-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 30px 34px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-hero-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.legal-hero-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .legal-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .legal-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.legal-metric-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 14px 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.legal-metric-box:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.legal-metric-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.legal-metric-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-metric-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.legal-callout-hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(16, 185, 129, 0.07));
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.legal-section-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px 30px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-section-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    font-size: 13px;
    font-weight: 800;
    font-family: monospace;
    flex-shrink: 0;
}

.legal-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.legal-body-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.legal-feature-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-feature-icon {
    width: 17px;
    height: 17px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 3px;
}

.legal-highlight-text {
    color: var(--text-primary);
    font-weight: 700;
}

/* ==========================================================================
   QuillBot / Scribbr Authentic Paraphraser Color Diff & Thesaurus Engine
   ========================================================================== */
.paraphrase-legend-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-secondary, #94a3b8);
    flex-wrap: wrap;
    user-select: none;
}

.paraphrase-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.paraphrase-legend-dot {
    display: inline-block;
    border-radius: 50%;
}

.paraphrase-legend-dot.changed {
    width: 10px;
    height: 10px;
    background-color: #dc583b; /* Orange/Coral for Changed Words */
}

.paraphrase-legend-dot.structural {
    width: 16px;
    height: 3px;
    background-color: #ca8a04; /* Gold/Yellow for Structural Changes */
    border-radius: 2px;
}

.paraphrase-legend-dot.longest {
    width: 10px;
    height: 10px;
    background-color: #2563eb; /* Blue for Longest Unchanged Words */
}

/* Output Word Highlights inside Paraphraser */
.pq-word-changed {
    color: #dc583b !important;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    padding: 0 1px;
    transition: background 0.15s ease, color 0.15s ease;
}

.pq-word-changed:hover {
    background: rgba(220, 88, 59, 0.15);
    text-decoration: underline;
}

.pq-structural-clause {
    border-bottom: 2px solid #ca8a04 !important;
    padding-bottom: 1px;
    display: inline;
}

.pq-longest-unchanged {
    color: #2563eb !important;
    font-weight: 400;
}

/* Interactive Thesaurus Popover */
.thesaurus-popover {
    position: absolute;
    z-index: 9999;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    padding: 12px;
    min-width: 230px;
    max-width: 320px;
    backdrop-filter: blur(16px);
    font-family: inherit;
    animation: fadeInPopover 0.15s ease-out;
}

@keyframes fadeInPopover {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.thesaurus-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
}

.thesaurus-popover-orig {
    font-weight: 700;
    color: #dc583b;
    font-size: 12px;
}

.thesaurus-synonym-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 210px;
    overflow-y: auto;
}

.thesaurus-syn-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--text-primary, #f8fafc);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.thesaurus-syn-btn:hover {
    background: rgba(220, 88, 59, 0.12);
    border-color: rgba(220, 88, 59, 0.35);
    color: #dc583b;
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Workspace Card & Box Symmetry Optimization
   Ensures 50/50 balance and eliminates empty white space across all tool pages
   -------------------------------------------------------------------------- */
.grammar-fixes-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.headline-topic-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--bg-card-border);
    background: var(--bg-card-subtle);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    min-height: 100px;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.headline-topic-textarea:focus {
    border-color: var(--accent-orange);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.topic-inspiration-box {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-inspiration-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-topic-pill {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-topic-pill:hover {
    background: var(--bg-pill-hover);
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-1px);
}

.image-dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border: 2px dashed var(--bg-card-border);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-card-subtle);
    transition: var(--transition);
    box-sizing: border-box;
}

.image-dropzone:hover {
    border-color: var(--accent-purple);
    background: var(--bg-card);
}

/* ==========================================================================
   Homepage SaaS Design System: Trust, Bento, Pillars, Cadence & CTA
   ========================================================================== */

/* 1. Institutional Trust & Proof Bar */
.trust-proof-bar {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow: var(--shadow-card);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.trust-proof-header {
    text-align: center;
}

.trust-proof-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.trust-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px 36px;
    width: 100%;
}

.trust-logo-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.85;
    transition: var(--transition);
    user-select: none;
    max-height: 28px;
}

.trust-logo-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0 !important;
}

.trust-logo-item:hover {
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-1px);
}

.trust-logo-item:hover svg {
    color: var(--accent-blue);
}

.trust-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--bg-card-border);
}

@media (max-width: 820px) {
    .trust-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-stats-strip {
        grid-template-columns: 1fr;
    }
}

.trust-stat-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.trust-stat-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.trust-stat-number {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.trust-stat-number.gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-stat-number.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-stat-number.gradient-green {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-stat-number.gradient-orange {
    background: linear-gradient(135deg, #f97316, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-stat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   As Seen In: High-End Animated Media Marquee
   ========================================================================== */
.as-seen-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px 36px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.as-seen-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.as-seen-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
    display: inline-block;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.55; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px rgba(16, 185, 129, 0.9); }
}

.as-seen-eyebrow {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
}

.as-seen-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 10px 0;
}

.as-seen-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marqueeStopSlide 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

.as-seen-marquee-wrapper:hover .as-seen-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeStopSlide {
    0%, 13.33% {
        transform: translateX(0);
    }
    16.66%, 30% {
        transform: translateX(-8.333%);
    }
    33.33%, 46.66% {
        transform: translateX(-16.666%);
    }
    50%, 63.33% {
        transform: translateX(-25%);
    }
    66.66%, 80% {
        transform: translateX(-33.333%);
    }
    83.33%, 96.66% {
        transform: translateX(-41.666%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.as-seen-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    color: var(--text-secondary);
    opacity: 0.85;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}

.as-seen-item:hover {
    opacity: 1;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.as-seen-logo {
    display: block;
    height: 42px;
    width: auto;
}

/* 2. Architecture Deep Dive & Pillars */
.section-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-badge-pill.blue {
    background: var(--accent-blue-bg);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-badge-pill.purple {
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-badge-pill.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.section-badge-pill.orange {
    background: var(--accent-orange-bg);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.architecture-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .architecture-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .architecture-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.arch-pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.arch-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

.arch-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
    border-color: rgba(59, 130, 246, 0.3);
}

.arch-pillar-card:hover::before {
    background: var(--accent-blue);
}

.arch-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arch-card-icon-wrap.blue {
    background: var(--accent-blue-bg);
    color: var(--accent-blue);
}

.arch-card-icon-wrap.purple {
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
}

.arch-card-icon-wrap.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.arch-card-icon-wrap.orange {
    background: var(--accent-orange-bg);
    color: var(--accent-orange);
}

.arch-card-icon-wrap.red {
    background: var(--accent-red-bg);
    color: var(--accent-red);
}

.arch-pillar-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.arch-pillar-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.arch-pillar-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card-subtle);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-card-border);
    width: fit-content;
}

/* 3. Modern Feature Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

body.dark-theme .bento-card:hover {
    border-color: #383c4a;
}

.bento-card.span-2 {
    grid-column: span 2;
}

.bento-card.span-3,
.bento-card.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 960px) {
    .bento-card.span-2,
    .bento-card.span-3,
    .bento-card.full-width {
        grid-column: span 1;
    }
}

.bento-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.bento-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bento-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.bento-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 6px;
}

.bento-engine-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.bento-engine-chip:hover {
    background: var(--bg-pill-hover);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

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

.bento-preview-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.bento-humanizer-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

@media (max-width: 768px) {
    .bento-humanizer-flow {
        flex-direction: column;
    }
}

.flow-step-box {
    flex: 1 1 0;
    min-width: 160px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.flow-step-box:hover {
    background: var(--bg-card);
    border-color: rgba(59, 130, 246, 0.3);
}

.flow-step-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.flow-step-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.flow-arrow-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .flow-arrow-icon {
        transform: rotate(90deg);
    }
}

/* 4. Cadence & Linguistic Profile Comparison */
.cadence-comparison-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 820px) {
    .cadence-comparison-wrap {
        grid-template-columns: 1fr;
    }
}

.cadence-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 26px;
    border: 1px solid var(--bg-card-border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: var(--transition);
}

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

body.dark-theme .cadence-card:hover {
    border-color: #383c4a;
}

.cadence-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cadence-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cadence-profile-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.cadence-profile-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.cadence-points-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.cadence-point-item {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

.cadence-point-item:hover {
    background: var(--bg-card);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cadence-icon-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.cadence-icon-badge.cross {
    background: var(--accent-red-bg);
    color: var(--accent-red);
}

.cadence-icon-badge.check {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.cadence-point-text {
    flex: 1;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cadence-point-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.cadence-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 2px;
}

.cadence-tag.red {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cadence-tag.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cadence-meter-box {
    margin-top: auto;
    padding: 14px 16px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cadence-meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.cadence-meter-track {
    width: 100%;
    height: 7px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

body.dark-theme .cadence-meter-track {
    background: rgba(255, 255, 255, 0.08);
}

.cadence-meter-fill.red {
    height: 100%;
    width: 94%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: var(--radius-full);
}

.cadence-meter-fill.green {
    height: 100%;
    width: 99.8%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: var(--radius-full);
}

/* 5. Persona & Solutions Grid */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .personas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .personas-grid {
        grid-template-columns: 1fr;
    }
}

.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.persona-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
    border-color: var(--border-hover);
}

.persona-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    background: var(--accent-blue-bg);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.persona-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.persona-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.persona-highlight {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-card-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-card-border);
}

/* 5.1 Interactive Forensic Comparison Lab */
.forensic-lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 860px) {
    .forensic-lab-grid {
        grid-template-columns: 1fr;
    }
}

.forensic-lab-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
}

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

body.dark-theme .forensic-lab-card:hover {
    border-color: #383c4a;
}

.forensic-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.forensic-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.forensic-source-badge.red {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.forensic-source-badge.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.forensic-score-badge {
    font-size: 13px;
    font-weight: 800;
}

.forensic-score-badge.red {
    color: var(--accent-red);
}

.forensic-score-badge.green {
    color: var(--accent-green);
}

.forensic-text-content {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 18px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-primary);
    min-height: 140px;
    font-family: inherit;
}

.ai-flag-highlight {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: underline wavy rgba(239, 68, 68, 0.45);
}

body.dark-theme .ai-flag-highlight {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    text-decoration-color: rgba(239, 68, 68, 0.6);
}

.forensic-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.forensic-metric-item {
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forensic-metric-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.forensic-metric-val {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
}

/* 5.2 Mathematical Readability Diagnostics Lab */
.readability-lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 960px) {
    .readability-lab-grid {
        grid-template-columns: 1fr;
    }
}

.readability-formula-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}

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

body.dark-theme .readability-formula-card:hover {
    border-color: #383c4a;
}

.formula-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.formula-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.readability-formula-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--bg-card-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
    word-break: break-all;
    line-height: 1.4;
}

body.dark-theme .readability-formula-badge {
    color: #60a5fa;
}

.formula-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.formula-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--bg-card-border);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
}

/* 5.3 Enterprise Ecosystem & Privacy Infrastructure */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 960px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

.ecosystem-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}

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

body.dark-theme .ecosystem-card:hover {
    border-color: #383c4a;
}

/* 6. Conversion CTA Banner */
.conversion-cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%), var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-xl);
    padding: 42px 36px;
    box-shadow: var(--shadow-card);
    margin-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

body.dark-theme .conversion-cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%), var(--bg-card);
    border-color: rgba(59, 130, 246, 0.35);
}

.conversion-cta-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    max-width: 680px;
    line-height: 1.25;
}

.conversion-cta-sub {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.6;
}

.conversion-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cta-btn-primary {
    background: #18191d;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 14px 28px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    font-family: inherit;
}

.cta-btn-primary:hover {
    background: #2b2d35;
    transform: translateY(-2px);
    box-shadow: var(--shadow-floating);
    color: #ffffff;
}

body.dark-theme .cta-btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

body.dark-theme .cta-btn-primary:hover {
    background: #2563eb;
}

.cta-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.cta-btn-secondary:hover {
    background: var(--bg-card-subtle);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.conversion-cta-guarantees {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--bg-card-border);
    width: 100%;
    max-width: 600px;
}

.cta-guarantee-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.cta-guarantee-item svg {
    color: var(--accent-green);
    flex-shrink: 0;
}
