:root {
    --bg: #0c0d14;
    --bg2: #161826;
    --border: rgba(255, 255, 255, 0.08);
    --text: #94a3b8;
    --heading: #f1f5f9;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    --radius: 12px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 13, 20, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.dt-nav a {
    margin-left: 24px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dt-nav a:hover {
    color: var(--heading);
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.page-title {
    font-size: 3.5rem;
    color: var(--heading);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-sub {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
}

/* Tool Main Grid */
.tool-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr 380px;
    gap: 30px;
    padding-bottom: 100px;
}

@media (max-width: 1200px) {
    .tool-main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .config-sidebar {
        grid-column: 1 / -1;
        display: flex;
        gap: 20px;
    }

    .config-sidebar .config-card {
        flex: 1;
    }
}

@media (max-width: 900px) {
    .tool-main-grid {
        grid-template-columns: 1fr;
    }

    .config-sidebar {
        flex-direction: column;
    }
}

/* Sidebar & Cards */
.config-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.config-card h3 {
    font-size: 0.95rem;
    color: var(--heading);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schema-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s;
}

.type-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.type-btn.active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    color: var(--heading);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Wizard Container */
.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
}

.pane-header {
    margin-bottom: 30px;
}

.pane-header h2 {
    font-size: 2rem;
    color: var(--heading);
    margin-bottom: 8px;
}

/* FAQ Inputs */
.faq-input-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.faq-item-input {
    position: relative;
    border-color: rgba(99, 102, 241, 0.2);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--heading);
    font-weight: 700;
}

.remove-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.input-row {
    margin-bottom: 16px;
}

.input-row:last-child {
    margin-bottom: 0;
}

input,
textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Buttons */
.primary-btn {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.ghost-btn {
    background: none;
    border: 1px dashed var(--border);
    color: var(--text);
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}

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

/* Google Snippet Preview */
.preview-card {
    background: #fff;
    /* White background for Google mock */
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.preview-header {
    background: #f1f5f9;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.preview-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    margin-left: 4px;
}

.google-result-mockup {
    padding: 20px;
    color: #4d5156;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.mock-favicon {
    width: 18px;
    height: 18px;
    background: #f1f3f4;
    border-radius: 50%;
}

.mock-site-name {
    font-size: 0.85rem;
    color: #202124;
}

.mock-title {
    font-size: 1.25rem;
    color: #1a0dab;
    margin-bottom: 4px;
    cursor: pointer;
}

.mock-url {
    font-size: 0.85rem;
    color: #202124;
    margin-bottom: 8px;
}

.mock-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4d5156;
    margin-bottom: 16px;
}

/* Rich Snippet: FAQ */
.mock-rich-snippet {
    display: none;
    margin-top: 12px;
    border-top: 1px solid #dadce0;
}

.mock-rich-snippet.active {
    display: block;
}

.mock-faq-row {
    padding: 12px 0;
    border-bottom: 1px solid #dadce0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #202124;
    font-weight: 500;
}

.mock-arrow {
    color: #70757a;
    font-size: 0.7rem;
}

/* Code Output */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.output-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    background: #1e293b;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.action-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
}

.code-container {
    background: #000;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

pre#schema-output {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2.5rem;
    }

    .tool-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ============================================
   Global Scrollbar Override — Modern & Dark
   ============================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) rgba(255, 255, 255, 0.03);
}

/* Chromium / Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.65);
}

::-webkit-scrollbar-corner {
    background: transparent;
}
