/* TOVIROO DESIGN SYSTEM - ULTRA FAST, CLEAN & MODERN */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --dark-muted: #334155;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-focus: #818cf8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px -2px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 28px -4px rgba(0,0,0,0.09);
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #fcfcfd;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.brand img {
    height: 58px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.brand:hover img {
    transform: scale(1.02);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-muted);
    font-size: 15px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SEARCH INPUT */
.search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 9999px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    min-width: 220px;
    transition: all 0.2s ease;
}

.search-trigger:hover {
    border-color: var(--border-focus);
    background: var(--white);
}

.search-kbd {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* LANGUAGE SELECTOR */
.lang-select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-muted);
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 10%, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-search-box {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border-radius: 9999px;
    border: 2px solid var(--border);
    font-size: 16px;
    box-shadow: var(--shadow-md);
    outline: none;
    transition: all 0.2s ease;
}

.hero-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.hero-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* SECTION TITLES */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

/* TOOL CARDS GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.tool-card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
}

.tool-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.tool-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tool-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 16px;
}

.tool-card-action {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CATEGORY CARDS */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.cat-card:hover {
    border-color: var(--cat-color, var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.cat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #f1f5f9;
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 10%, transparent);
    color: var(--cat-color, var(--primary));
    transition: all 0.2s ease;
}

.cat-card:hover .cat-card-icon {
    transform: scale(1.08);
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 16%, transparent);
}

.cat-card-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.cat-card-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark);
    line-height: 1.3;
}

.cat-card-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* BREADCRUMBS */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 24px 0 16px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: #cbd5e1;
}

/* TOOL PAGE CONTAINER */
.tool-page-header {
    margin-bottom: 24px;
}

.tool-h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.tool-tagline {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 800px;
}

/* INTERACTIVE TOOL CARD */
.tool-engine-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 36px;
}

/* Reset nested engine cards to avoid double border/padding */
.tool-engine-card .tool-engine-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

.tool-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-control-sm, .form-select-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.form-control-lg, .form-select-lg {
    padding: 14px 18px;
    font-size: 17px;
    border-radius: 10px;
}

textarea.form-control {
    min-height: 120px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

.input-group-text {
    background-color: var(--light);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.tool-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #0284c7 100%);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(79, 70, 229, 0.38);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    border-color: var(--border);
    color: var(--dark-muted) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--dark) !important;
}

/* UNIVERSAL ACTIVE STATE: Logo gradient + crisp white text */
.btn.active,
.btn.active:hover,
.btn.active:focus,
.btn-secondary.active,
.btn-secondary.active:hover,
.btn-secondary.active:focus,
.btn-primary.active,
.btn-primary.active:hover,
.btn-primary.active:focus,
.btn-outline-primary.active,
.btn-outline-primary.active:hover,
.btn-outline-primary.active:focus,
.btn-check:checked + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary:hover,
.sort-pill.active,
.sort-pill.active:hover,
.sort-pill.active:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
}

/* SORT PILLS (CATEGORY & TOOLS PAGES) */
.sort-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark-muted) !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    line-height: 1.4;
    cursor: pointer;
}

.sort-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--dark) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--dark-muted) !important;
}

.btn-outline-secondary:hover, .btn-outline-secondary.active, .btn-check:checked + .btn-outline-secondary {
    background: var(--light);
    border-color: #cbd5e1;
    color: var(--dark) !important;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: var(--white) !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: var(--white) !important;
}

.btn-outline-success {
    background: transparent;
    border-color: var(--success);
    color: var(--success) !important;
}

.btn-outline-success:hover, .btn-outline-success.active, .btn-check:checked + .btn-outline-success {
    background: var(--success);
    border-color: var(--success);
    color: var(--white) !important;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: var(--white) !important;
}

.btn-outline-danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger) !important;
}

.btn-outline-danger:hover, .btn-outline-danger.active, .btn-check:checked + .btn-outline-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white) !important;
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #1e293b !important;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: var(--white) !important;
}

.btn-light {
    background: var(--light);
    border-color: var(--border);
    color: var(--dark) !important;
}

.btn-light:hover {
    background: #e2e8f0;
}

/* Button Sizing */
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

/* CARDS & BADGES */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
    line-height: 1;
}

.badge-primary, .bg-primary {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.bg-primary-subtle {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

.bg-success-subtle {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}

.bg-danger-subtle {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

.bg-warning-subtle {
    background-color: #fffbeb !important;
    color: #92400e !important;
}

.bg-info-subtle {
    background-color: #f0f9ff !important;
    color: #075985 !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

/* CALCULATOR CARD & HELPERS */
.calculator-card {
    background: transparent;
}

.calc-header {
    margin-bottom: 24px;
}

.calc-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.calc-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.calc-actions {
    margin-top: 24px;
}

/* MODE TABS & PILLS */
.mode-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--light);
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.mode-tab {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.mode-tab:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.7);
}

.mode-tab.active,
.mode-tab.active:hover,
.mode-tab.active:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.32) !important;
}

/* CATEGORY FILTER PILLS (TOOLS DIRECTORY) */
.cat-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
    background: #f1f5f9;
    color: var(--dark-muted) !important;
    border: 1px solid transparent;
}

.cat-filter-pill:hover {
    background: #e2e8f0;
    color: var(--dark) !important;
    transform: translateY(-1px);
}

.cat-filter-pill.active,
.cat-filter-pill.active:hover,
.cat-filter-pill.active:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3) !important;
    transform: translateY(-1px);
}

.form-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* RESULTS BOX */
.tool-result-box {
    margin-top: 28px;
    padding: 24px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius);
    display: none;
}

.tool-result-box.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

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

.result-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.result-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.metric-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* CONTENT & SEO SECTIONS */
.tool-content-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 36px;
}

.content-article {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.content-article h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin: 32px 0 16px;
    letter-spacing: -0.4px;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3, .tool-rich-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 24px 0 10px;
    letter-spacing: -0.2px;
}

.content-article h4, .tool-rich-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 18px 0 8px;
    letter-spacing: -0.1px;
}

.content-article p, .tool-rich-text p {
    margin-bottom: 16px;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.content-article strong, .content-article b, .tool-rich-text strong, .tool-rich-text b {
    font-weight: 700;
    color: #0f172a;
}

.content-article em, .content-article i, .tool-rich-text em, .tool-rich-text i {
    font-style: italic;
}

.content-article u, .tool-rich-text u {
    text-decoration: underline;
}

.content-article ul, .tool-rich-text ul {
    list-style-type: disc !important;
    margin: 14px 0 20px 24px;
    padding-left: 8px;
    color: #334155;
}

.content-article ol, .tool-rich-text ol {
    list-style-type: decimal !important;
    margin: 14px 0 20px 24px;
    padding-left: 8px;
    color: #334155;
}

.content-article li, .tool-rich-text li {
    margin-bottom: 8px;
    line-height: 1.65;
    font-size: 15px;
}

.content-article blockquote, .tool-rich-text blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 18px;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
    font-style: italic;
    color: #475569;
}

.content-article a, .tool-rich-text a {
    color: var(--primary);
    text-decoration: underline;
}

.content-article code, .tool-rich-text code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 13.5px;
    color: #0f172a;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-question {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* AD SLOTS */
.ad-slot {
    margin: 28px 0;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 20px;
}

.ad-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
    .tool-content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .tool-form-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .search-trigger {
        min-width: unset;
    }
    .hero-title {
        font-size: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* PAGINATION SVG ARROWS */
nav[role="navigation"] svg,
.pagination svg,
svg.w-5,
svg.h-5 {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* HOMEPAGE HERO CHIPS */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-muted);
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.hero-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

/* HOW TOVIROO WORKS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

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

/* POPULAR TOOL COLLECTIONS */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.collection-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.collection-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.collection-icon svg {
    width: 22px;
    height: 22px;
}

.collection-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.collection-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    flex-grow: 1;
    margin: 0;
}

.collection-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* BRAND / VALUE CARDS */
.brand-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.brand-val-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.brand-val-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* HOMEPAGE SEO ARTICLE */
.home-seo-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 30px;
    box-shadow: var(--shadow-sm);
}

.home-seo-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.home-seo-content p:last-child {
    margin-bottom: 0;
}

/* HOMEPAGE FAQ ACCORDION */
.home-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-faq-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease;
}

.home-faq-card:hover {
    border-color: var(--border-focus);
}

.home-faq-btn {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
    font-family: inherit;
}

.home-faq-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: var(--primary);
}

.home-faq-card.open .home-faq-chevron {
    transform: rotate(180deg);
}

.home-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-faq-card.open .home-faq-body {
    max-height: 300px;
    padding: 0 20px 18px 20px;
}

/* FINAL CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius-lg);
    padding: 52px 24px;
    text-align: center;
    color: #ffffff;
    margin: 40px 0;
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.cta-search-wrap {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-search-input {
    flex: 1;
    min-width: 240px;
    padding: 14px 22px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    outline: none;
    color: var(--dark);
    cursor: pointer;
}

.cta-search-input:focus {
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.cta-btn-search {
    padding: 14px 26px;
    border-radius: 9999px;
    background: #ffffff;
    color: #312e81;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.cta-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    background: #f8fafc;
}

.cta-btn-browse {
    padding: 14px 24px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}

.cta-btn-browse:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
