﻿/*
Theme Name: Snap Ratio 2.0
Theme URI: https://snapratio.com
Author: SnapRatio
Description: SnapRatio 2.0 - Free Online Image, Text & Word Tools theme.
Version: 2.0.1
*/

/* Rich Text Formatting for Color Info */
.info-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.info-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.info-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-text li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.info-text strong {
    color: #111827;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Global Warm Background - Not Peach, but Warm Off-White/Clay Tint */
    background-color: var(--bg-color);
    
    min-height: 100vh;
    font-family: var(--body-font), -apple-system, sans-serif;
    color: #1f2937;
}

.hidden {
    display: none !important;
}

/* HEADER */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    /* Slightly taller */
}

/* LOGO */
.logo,
.custom-logo-link {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-color);
    /* Deep Orange/Clay */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    /* Deep Clay Gradient */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-nav a:hover {
    background: #FFEDD5;
    /* Very Light Orange */
    color: var(--primary-color);
}

.main-nav a.active {
    background: var(--primary-color);
    color: white;
}

/* Breadcrumbs */
#breadcrumbs {
    font-family: var(--body-font), sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

#breadcrumbs a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

#breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

#breadcrumbs .breadcrumb_last {
    color: #9ca3af;
    font-weight: 400;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 12px;
    min-width: 200px;
    flex-direction: column;
    border: 1px solid #f3f4f6;
    z-index: 50;
}

.main-nav li:hover>ul {
    display: flex;
}

.main-nav ul ul a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu {
    border-top: 1px solid #f3f4f6;
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: #FFF7ED;
    color: var(--primary-color);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 900;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Force hide mobile menu on desktop to prevent duplicates */
@media (min-width: 769px) {

    .mobile-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Tools Tabs container */
.tools-nav-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 12px;
    margin-top: 20px;
}

.tools-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 12px 4px;
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    scroll-behavior: smooth;
}

.tools-tabs::-webkit-scrollbar {
    display: none;
}

.tools-tabs a {
    padding: 8px 16px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    border-radius: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.tools-tabs a:hover {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.03);
}

.tools-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #FFF7ED;
}

/* Scroll Arrows */
.nav-arrow {
    background: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 10;
    flex-shrink: 0;
    user-select: none;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background: #f9fafb;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.color-search-section {
    background: transparent;
    padding: 48px 24px;
    text-align: center;
}

.color-search-title {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.color-search-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 24px;
}

.color-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-search-input {
    padding: 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    width: 320px;
    font-family: 'Monaco', 'Consolas', monospace;
    text-align: center;
    transition: border-color 0.2s;
}

.color-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.color-search-btn {
    padding: 16px 32px;
    background: var(--primary-color);
    /* Solid Clay/Orange */
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.color-search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* HERO */
.hero {
    text-align: center;
    padding: 40px 24px 32px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 20px;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* MAIN TOOL CARD */
.app-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.tool-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* WORKSPACE */
#editor-workspace {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

#canvas-wrapper {
    background: #F3F4F6;
    /* Cool Grey */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    cursor: crosshair;
    border: 2px dashed #E5E7EB;
}

#main-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* MAGNIFIER */
#magnifier {
    position: fixed;
    z-index: 1000;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    overflow: hidden;
    background: #fff;
}

/* SIDEBAR */
.color-preview {
    width: 100%;
    height: 100px;
    border-radius: 16px;
    background: #e5e7eb;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.input-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.input-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.05);
}

.input-label {
    font-weight: 700;
    font-size: 12px;
    color: #9ca3af;
    width: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-value {
    flex: 1;
    text-align: right;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 15px;
    color: #111827;
    background: none;
    border: none;
    outline: none;
    font-weight: 500;
}

.copy-btn {
    margin-left: 12px;
    background: #FFF7ED;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* HARMONIES */
.harmony-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.harmony-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.05em;
}

.swatch-row {
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* PALETTE */
#palette-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.palette-swatch {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid white;
    transition: transform 0.1s;
}

.palette-swatch:hover {
    transform: scale(1.1);
    z-index: 2;
}

/* UPLOAD BUTTON */
.upload-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.upload-btn:hover {
    background: var(--secondary-color);
}

/* FEATURES */
.features-section {
    padding: 60px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

.feature-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    padding: 60px 24px 100px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 40px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.faq-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* FOOTER */
.site-footer {
    background: #111827;
    /* Very Dark Grey */
    color: #e5e7eb;
    padding: 80px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    /* Highlight Color */
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 14px;
}

.footer-widget a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #6b7280;
    font-size: 13px;
}

.footer-tagline {
    color: #6b7280;
    font-size: 13px;
}

/* Page Card */
.page-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

.page-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.page-card h1 {
    font-size: 38px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.page-card p,
.page-card li {
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
}

.page-card a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(234, 88, 12, 0.3);
}

.page-card a:hover {
    border-bottom-color: var(--primary-color);
}

/* ============================================
   TOOL PAGE SPECIFIC STYLES
   ============================================ */

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

/* Tool Card (already exists at line 322, but ensure consistency) */
.tool-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
}

/* Color Input Area */
.color-inputs {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Color Swatch (clickable color picker) */
.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.color-swatch input[type="color"] {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: none;
}

/* Hex Input Field */
.hex-input {
    padding: 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    width: 200px;
    font-family: 'Monaco', 'Consolas', monospace;
    text-align: center;
    transition: border-color 0.2s;
}

.hex-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

/* Format Conversion Grid */
.conv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.conv-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
}

.conv-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.conv-value {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', monospace;
    cursor: pointer;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: block;
    word-break: break-all;
    transition: all 0.2s;
}

.conv-value:hover {
    border-color: var(--primary-color);
    background: #FFF7ED;
}

/* Formats Grid (alternative layout) */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.format-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.format-label {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.format-value {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Copy Button */
.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* Shades & Tints Section */
.variations-section {
    margin-top: 32px;
}

.variations-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.variation-swatch {
    flex: 1;
    height: 60px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    font-size: 10px;
    font-weight: 600;
}

.variation-swatch:hover {
    transform: scale(1.05);
}

/* Color Harmonies */
.harmonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.harmony-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
}

.harmony-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.harmony-colors {
    display: flex;
    gap: 8px;
}

.harmony-swatch {
    flex: 1;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.harmony-swatch:hover {
    transform: scale(1.08);
}

/* Color Input Section (for larger color picker tools) */
.color-input-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Contrast Checker Specific */
.contrast-preview {
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.contrast-result {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.contrast-score {
    text-align: center;
}

.contrast-score .value {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
}

.contrast-score .label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

/* Gradient Maker Specific */
.gradient-preview {
    height: 200px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.gradient-stops {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Color Palette Generator */
.palette-preview {
    display: flex;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.palette-color {
    flex: 1;
    cursor: pointer;
    transition: flex 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

.palette-color:hover {
    flex: 1.2;
}

/* Blindness Simulator */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.vision-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.vision-card .title {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-top: 12px;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    #editor-workspace {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Tool Page Responsive */
    .color-input-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tool-card {
        padding: 24px;
    }

    .harmonies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
        height: 60px;
    }

    .logo {
        font-size: 18px;
    }

    .color-search-form {
        flex-direction: column;
        width: 100%;
    }

    .color-search-input,
    .color-search-btn {
        width: 100%;
        max-width: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .page-card {
        padding: 24px;
    }

    .page-card h1 {
        font-size: 28px;
    }

    /* Tool Page Responsive */
    .conv-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .color-inputs {
        flex-direction: column;
    }

    .color-swatch {
        width: 100%;
        height: 80px;
    }

    .hex-input {
        width: 100%;
    }

    .harmony-colors {
        flex-wrap: wrap;
    }

    .harmony-swatch {
        min-width: 45px;
        height: 40px;
    }
}

@media (max-width: 500px) {
    .main-nav {
        display: none;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============================================
   MISSING TOOL STYLES (Restored)
   ============================================ */

/* Color Info Page Specifics */
.color-hero {
    text-align: center;
    padding: 40px 24px;
    background: white;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.swatch-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.color-title {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.color-hex-display {
    font-family: 'Monaco', monospace;
    font-size: 18px;
    color: #6b7280;
    background: #f3f4f6;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}

.scheme-row {
    margin-bottom: 24px;
}

.scheme-lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.scheme-strip,
.gradient-grid {
    display: flex;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
}

.scheme-swatch,
.gradient-swatch {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    padding-bottom: 8px;
    font-size: 11px;
    font-family: monospace;
    color: rgba(0, 0, 0, 0.5);
    transition: flex 0.2s;
}

.scheme-swatch:hover,
.gradient-swatch:hover {
    flex: 1.5;
    color: black;
}

.scheme-code {
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.scheme-swatch:hover .scheme-code {
    opacity: 1;
}

.css-box {
    background: #1f2937;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.css-code {
    font-family: 'Monaco', monospace;
    font-size: 14px;
    color: #e5e7eb;
    white-space: pre-wrap;
    display: block;
}

.css-box .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Contrast Checker */
.ratio-display {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.ratio-value {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
}

.ratio-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}

.wcag-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.wcag-item {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.wcag-level {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

.wcag-status {
    font-size: 20px;
    margin: 4px 0;
}

.wcag-desc {
    font-size: 11px;
    color: #9ca3af;
}

/* Color Analysis */
.analysis-bar-wrap {
    margin-bottom: 24px;
}

.analysis-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.analysis-track {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.analysis-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease-out;
}

.analysis-marker {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 16px;
    background: #1f2937;
    border: 1px solid white;
    transform: translateX(-50%);
}

.insight-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 20px;
    margin-top: 32px;
}

.insight-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.insight-text {
    color: #7c2d12;
    font-size: 15px;
    line-height: 1.5;
}

/* Technical Formats */
.tech-table-container {
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tech-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f9fafb;
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.tech-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-family: 'Monaco', monospace;
    font-size: 14px;
}

.tech-desc {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    font-family: var(--body-font), sans-serif;
    margin-top: 2px;
}

/* Blindness Simulator */
.blind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.blind-item {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.blind-swatch {
    height: 100px;
    width: 100%;
}

.blind-label {
    padding: 12px 12px 4px;
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
}

.blind-hex {
    padding: 0 12px;
    font-family: monospace;
    color: #6b7280;
    font-size: 13px;
}

.blind-desc {
    padding: 4px 12px;
    font-size: 11px;
    color: #9ca3af;
}

/* Creative Aspects */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.creative-card {
    background: #f9fafb;
    padding: 24px;
    border-radius: 16px;
    text-align: left;
}

.creative-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.creative-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.creative-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.preview-box {
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.preview-lg {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.preview-sm {
    font-size: 14px;
    opacity: 0.8;
}

/* ==========================================================================
   PORTED SNAPRATIO TOOL STYLES (SCOPED)
   ========================================================================== */

/* Wrapper Class for Isolation */
.snapratio-tool-scope {
    /* 1. VARIABLES (Scoped - LIGHT MODE OVERRIDE) */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f3f4f6;
    /* Gray 100 */
    --color-accent: var(--primary-color);
    /* Orange 600 */
    --color-accent-light: #f97316;
    /* Orange 500 */
    --color-accent-dark: var(--secondary-color);
    /* Orange 700 */
    --color-accent-glow: rgba(234, 88, 12, 0.15);
    --color-accent-rgb: 234, 88, 12;
    --color-secondary: #06b6d4;
    --color-text-primary: #111827;
    /* Gray 900 */
    --color-text-secondary: #4b5563;
    /* Gray 600 */
    --color-text-muted: #9ca3af;
    /* Gray 400 */
    --color-border: #e5e7eb;
    /* Gray 200 */
    --color-border-hover: #d1d5db;
    /* Gray 300 */
    --color-success: #16a34a;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

    /* Reset internals for light mode context */
    color: var(--color-text-primary);
    background-color: transparent;
}

/* 2. COMPONENT CLASSES (Prefixed) */
.snapratio-tool-scope .surface {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.snapratio-tool-scope .surface--glass {
    background: rgba(17, 17, 19, 0.7);
    backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.08);
}

.snapratio-tool-scope .surface__content {
    padding: var(--space-6);
}

.snapratio-tool-scope .surface__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}

.snapratio-tool-scope .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    line-height: normal;
    text-decoration: none;
}

.snapratio-tool-scope .btn--primary {
    color: white;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
}

.snapratio-tool-scope .btn--secondary {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
}

.snapratio-tool-scope .btn--ghost {
    color: var(--color-text-secondary);
    background: transparent;
}

.snapratio-tool-scope .btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.snapratio-tool-scope .btn--full {
    width: 100%;
}

/* Tool Specifics */
.snapratio-tool-scope .tool-header {
    padding: var(--space-12) 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.snapratio-tool-scope .tool-header__title {
    font-size: 2.25rem;
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
    line-height: 1.2;
}

.snapratio-tool-scope .tool-header__desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.snapratio-tool-scope .tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.snapratio-tool-scope .upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: var(--space-8);
    background: var(--color-bg-tertiary);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
}

.snapratio-tool-scope .upload-zone:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
}

.snapratio-tool-scope .image-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.snapratio-tool-scope .result-value-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-accent);
    line-height: 1;
    margin: var(--space-2) 0;
}

/* 3. UTILITY SHIM (Prefixed for Specificity inside Wrapper) */
.snapratio-tool-scope .hidden {
    display: none !important;
}

.snapratio-tool-scope .block {
    display: block;
}

.snapratio-tool-scope .flex {
    display: flex;
}

.snapratio-tool-scope .flex-col {
    flex-direction: column;
}

.snapratio-tool-scope .items-center {
    align-items: center;
}

.snapratio-tool-scope .justify-between {
    justify-content: space-between;
}

.snapratio-tool-scope .justify-center {
    justify-content: center;
}

.snapratio-tool-scope .gap-2 {
    gap: 0.5rem;
}

.snapratio-tool-scope .gap-4 {
    gap: 1rem;
}

.snapratio-tool-scope .gap-6 {
    gap: 1.5rem;
}

.snapratio-tool-scope .grid {
    display: grid;
}

.snapratio-tool-scope .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.snapratio-tool-scope .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snapratio-tool-scope .p-4 {
    padding: 1rem;
}

.snapratio-tool-scope .p-6 {
    padding: 1.5rem;
}

.snapratio-tool-scope .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.snapratio-tool-scope .mb-2 {
    margin-bottom: 0.5rem;
}

.snapratio-tool-scope .mb-4 {
    margin-bottom: 1rem;
}

.snapratio-tool-scope .mb-6 {
    margin-bottom: 1.5rem;
}

.snapratio-tool-scope .mt-1 {
    margin-top: 0.25rem;
}

.snapratio-tool-scope .mt-2 {
    margin-top: 0.5rem;
}

.snapratio-tool-scope .mt-6 {
    margin-top: 1.5rem;
}

.snapratio-tool-scope .text-center {
    text-align: center;
}

.snapratio-tool-scope .text-white {
    color: white;
}

.snapratio-tool-scope .text-accent {
    color: var(--color-accent);
}

.snapratio-tool-scope .text-muted {
    color: var(--color-text-muted);
}

.snapratio-tool-scope .text-sm {
    font-size: 0.875rem;
}

.snapratio-tool-scope .text-lg {
    font-size: 1.125rem;
}

.snapratio-tool-scope .text-xl {
    font-size: 1.25rem;
}

.snapratio-tool-scope .text-2xl {
    font-size: 1.5rem;
}

.snapratio-tool-scope .text-4xl {
    font-size: 2.25rem;
}

.snapratio-tool-scope .font-bold {
    font-weight: 700;
}

.snapratio-tool-scope .font-medium {
    font-weight: 500;
}

.snapratio-tool-scope .font-mono {
    font-family: var(--font-mono);
}

.snapratio-tool-scope .uppercase {
    text-transform: uppercase;
}

.snapratio-tool-scope .tracking-wide {
    letter-spacing: 0.025em;
}

/* Custom Backgrounds & Borders */
.snapratio-tool-scope .bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.snapratio-tool-scope .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.snapratio-tool-scope .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.snapratio-tool-scope .rounded-lg {
    border-radius: 0.5rem;
}

.snapratio-tool-scope .rounded-xl {
    border-radius: 0.75rem;
}

.snapratio-tool-scope .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.snapratio-tool-scope .w-full {
    width: 100%;
}

@media (min-width: 768px) {
    .snapratio-tool-scope .md\:flex-row {
        flex-direction: row;
    }

    .snapratio-tool-scope .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .snapratio-tool-scope .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================================================
   PORTED FORM & RESULT STYLES (SCOPED)
   ========================================================================== */

/* Text Areas */
.snapratio-tool-scope .textarea-wrapper {
    position: relative;
}

.snapratio-tool-scope .textarea-wrapper label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.snapratio-tool-scope textarea,
.snapratio-tool-scope .input-text {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    resize: vertical;
    transition: all 0.2s;
}

.snapratio-tool-scope textarea:focus,
.snapratio-tool-scope .input-text:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.snapratio-tool-scope textarea::placeholder,
.snapratio-tool-scope .input-text::placeholder {
    color: var(--color-text-muted);
}

.snapratio-tool-scope .textarea-info {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Option Toggles */
.snapratio-tool-scope .options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
    .snapratio-tool-scope .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.snapratio-tool-scope .option-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.snapratio-tool-scope .option-toggle:hover {
    border-color: var(--color-border-hover);
}

.snapratio-tool-scope .option-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

.snapratio-tool-scope .option-toggle span {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Case Buttons */
.snapratio-tool-scope .case-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin: var(--space-6) 0;
}

@media (min-width: 640px) {
    .snapratio-tool-scope .case-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

.snapratio-tool-scope .case-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.snapratio-tool-scope .case-btn:hover {
    border-color: var(--color-accent);
}

.snapratio-tool-scope .case-btn.is-active {
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
}

.snapratio-tool-scope .case-btn__example {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.snapratio-tool-scope .case-btn__name {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Color Swatches */
.snapratio-tool-scope .color-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .snapratio-tool-scope .color-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.snapratio-tool-scope .color-swatch {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.snapratio-tool-scope .color-swatch__preview {
    height: 80px;
}

.snapratio-tool-scope .color-swatch__info {
    padding: var(--space-3);
}

.snapratio-tool-scope .color-swatch__hex {
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-mono);
}

.snapratio-tool-scope .color-swatch__rgb {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.snapratio-tool-scope .color-swatch__actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3) var(--space-3);
}

.snapratio-tool-scope .color-swatch__actions button {
    flex: 1;
    padding: var(--space-2);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.snapratio-tool-scope .color-swatch__actions button:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
}

/* Word Results */
.snapratio-tool-scope .word-results {
    margin-top: var(--space-6);
}

.snapratio-tool-scope .word-results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.snapratio-tool-scope .word-results__count {
    font-size: 1.125rem;
    font-weight: 600;
}

.snapratio-tool-scope .word-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.snapratio-tool-scope .word-item {
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.snapratio-tool-scope .word-item:hover {
    background: var(--color-accent);
    color: white;
}

/* Frequency Chart */
.snapratio-tool-scope .frequency-chart {
    margin-top: var(--space-6);
}

.snapratio-tool-scope .chart-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.snapratio-tool-scope .chart-bar__letter {
    width: 24px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: uppercase;
    text-align: center;
}

.snapratio-tool-scope .chart-bar__fill-wrapper {
    flex: 1;
    height: 24px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.snapratio-tool-scope .chart-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    border-radius: var(--radius-md);
    transition: width 0.5s ease;
}

.snapratio-tool-scope .chart-bar__count {
    width: 48px;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-align: right;
    color: var(--color-text-secondary);
}

.snapratio-tool-scope .chart-bar__percent {
    width: 48px;
    font-size: var(--text-sm);
    text-align: right;
    color: var(--color-text-muted);
}

/* Stats Grid */
.snapratio-tool-scope .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

@media (min-width: 640px) {
    .snapratio-tool-scope .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.snapratio-tool-scope .stat-card {
    padding: var(--space-6);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    text-align: center;
}

.snapratio-tool-scope .stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.snapratio-tool-scope .stat-card__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* FIX FOR MISSING BACKGROUNDS ON PORTED TOOLS */
.snapratio-tool-scope .tool-input-card,
.snapratio-tool-scope .tool-result-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    overflow: hidden;
}
