/* ============================================================
   ToolsOx CSS - Same Design as Next.js Version
   Dark Theme: Black BG + Gold/Yellow Text
   Light Theme: Black & White
   ============================================================ */

/* Tailwind CDN - Production CSS */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

:root {
    --radius: 0.625rem;
    --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
    --font-mono: 'Geist Mono', monospace;
    
    /* Black & White Light Theme */
    --background: #ffffff;
    --foreground: #000000;
    --card: #ffffff;
    --card-foreground: #000000;
    --popover: #ffffff;
    --popover-foreground: #000000;
    --primary: #000000;
    --primary-foreground: #ffffff;
    --secondary: #f4f4f5;
    --secondary-foreground: #000000;
    --muted: #f4f4f5;
    --muted-foreground: #000000;
    --accent: #f4f4f5;
    --accent-foreground: #000000;
    --destructive: #ef4444;
    --border: #e4e4e7;
    --input: #ebebeb;
    --ring: #000000;
    --chart-1: #000000;
    --chart-2: #1a1a1a;
    --chart-3: #333333;
    --chart-4: #d4d4d8;
    --chart-5: #f4f4f5;
    --sidebar: #fafafa;
    --sidebar-foreground: #000000;
    --sidebar-primary: #000000;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #f4f4f5;
    --sidebar-accent-foreground: #000000;
    --sidebar-border: #ebebeb;
    --sidebar-ring: #000000;
    
    /* Gold/Yellow for dark mode accents */
    --gold: #d4a017;
    --gold-light: #f0d060;
    --gold-dark: #a07c10;
}

.dark {
    /* Dark Theme - Vibrant Gold/Yellow on Black */
    --background: #141414;
    --foreground: #d4a017;
    --card: #1e1e1e;
    --card-foreground: #d4a017;
    --popover: #1e1e1e;
    --popover-foreground: #d4a017;
    --primary: #d4a017;
    --primary-foreground: #141414;
    --secondary: #282828;
    --secondary-foreground: #d4a017;
    --muted: #282828;
    --muted-foreground: #9a7b30;
    --accent: #282828;
    --accent-foreground: #d4a017;
    --destructive: #ef4444;
    --border: #383838;
    --input: #333333;
    --ring: #d4a017;
    --chart-1: #d4a017;
    --chart-2: #b8890f;
    --chart-3: #8a6a0a;
    --chart-4: #5c4705;
    --chart-5: #333333;
    --sidebar: #1a1a1a;
    --sidebar-foreground: #d4a017;
    --sidebar-primary: #d4a017;
    --sidebar-primary-foreground: #141414;
    --sidebar-accent: #282828;
    --sidebar-accent-foreground: #d4a017;
    --sidebar-border: #333333;
    --sidebar-ring: #d4a017;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

* {
    border-color: var(--border);
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
}

/* Utility Classes */
.bg-background { background-color: var(--background) !important; }
.text-foreground { color: var(--foreground) !important; }
.bg-card { background-color: var(--card) !important; }
.text-card-foreground { color: var(--card-foreground) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary-foreground { color: var(--secondary-foreground) !important; }
.bg-muted { background-color: var(--muted) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-accent { background-color: var(--accent) !important; }
.text-accent-foreground { color: var(--accent-foreground) !important; }
.border-border { border-color: var(--border) !important; }
.border-input { border-color: var(--input) !important; }
.ring-ring { --tw-ring-color: var(--ring) !important; }
.bg-popover { background-color: var(--popover) !important; }
.text-popover-foreground { color: var(--popover-foreground) !important; }

/* Background with opacity */
.bg-background-95 { background-color: color-mix(in srgb, var(--background) 95%, transparent) !important; }
.bg-background-60 { background-color: color-mix(in srgb, var(--background) 60%, transparent) !important; }

/* Black & White Hover */
.bw-hover {
    transition: all 0.3s ease;
}
.bw-hover:hover {
    background-color: var(--foreground);
    color: var(--background);
}

/* Tool Card Styles */
.tool-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Category Card */
.category-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
}
.badge-new {
    background-color: var(--primary);
    color: var(--primary-foreground);
}
.badge-popular {
    background-color: var(--gold);
    color: #141414;
}

/* SEO Content */
.seo-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.seo-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.seo-content p { margin-bottom: 1rem; line-height: 1.75; }
.seo-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.seo-content li { margin-bottom: 0.5rem; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.seo-content th, .seo-content td { border: 1px solid var(--border); padding: 0.75rem; text-align: left; }
.seo-content th { background-color: var(--muted); font-weight: 600; }

/* Search Results */
.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.search-result-item:hover {
    background-color: var(--accent);
}
.search-result-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 640px) {
    .hero-title { font-size: 2rem !important; }
    .hero-subtitle { font-size: 1rem !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

/* Theme transition */
html.theme-transitioning,
html.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}


/* ============================================================
   HERO SECTION - REDESIGNED
   ============================================================ */

.hero-section {
    padding: 3rem 0 2.5rem;
    text-align: center;
    position: relative;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 40px, var(--border) calc(100% - 40px), transparent);
}

.dark .hero-section::after {
    background: linear-gradient(to right, transparent, var(--border) 40px, var(--border) calc(100% - 40px), transparent);
}

.dark .hero-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
}

.hero-title .highlight {
    color: var(--primary);
}

.dark .hero-title .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Trust Badges - Above Title */
.hero-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: 0.01em;
    opacity: 0.85;
}

.trust-badge svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.dark .trust-badge svg {
    color: #4ade80;
}

.trust-badge-sep {
    display: none;
}

/* Visual dot separator between badges */
.hero-trust-badges .trust-badge + .trust-badge::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--muted-foreground);
    opacity: 0.3;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Hero Subtitle - SEO Optimized */
.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search Bar */
.hero-search-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-search {
    display: flex;
    align-items: center;
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 0 1.25rem;
    height: 56px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.dark .hero-search {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background-color: #1a1a1a;
}

.hero-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(251,191,36,0.12);
}

.dark .hero-search:focus-within {
    border-color: #fbbf24;
    box-shadow: 0 4px 24px rgba(251,191,36,0.15);
}

.hero-search-icon {
    width: 20px;
    height: 20px;
    color: var(--muted-foreground);
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--foreground);
    font-family: var(--font-sans);
}

.hero-search input::placeholder {
    color: var(--muted-foreground);
}

.hero-search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--muted-foreground);
    flex-shrink: 0;
}

/* Hero Search Dropdown */
.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background-color: var(--card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.dark .hero-search-dropdown {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-search-dropdown.active {
    display: block;
}

.hero-search-dropdown .search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--foreground);
    transition: background-color 0.15s;
}

.hero-search-dropdown .search-result-item:hover {
    background-color: var(--accent);
}

.hero-search-dropdown .search-result-item:last-child {
    border-bottom: none;
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark .category-pill:hover {
    background: rgba(255, 255, 255, 0.06);
}

.category-pill svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.category-pill .pill-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
}

/* ============================================================
   CATEGORY CARDS - WITH ICONS
   ============================================================ */

.cat-card-top {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.cat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--secondary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dark .cat-card-icon {
    background: linear-gradient(135deg, #282828, #1e1e1e);
    border: 1px solid #383838;
}

.cat-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.category-card:hover .cat-card-icon {
    background-color: var(--primary);
}

.category-card:hover .cat-card-icon svg {
    color: var(--primary-foreground);
}

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

.cat-card-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s;
}

.category-card:hover .cat-card-name {
    color: var(--primary);
}

.cat-card-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 400;
}

.cat-card-desc {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--secondary);
    flex-shrink: 0;
}

.section-icon-wrap svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 9999px;
    background-color: var(--secondary);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

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

.section-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   TOOL CARDS - WITH ICONS
   ============================================================ */

.tool-card-top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.tool-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--secondary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tool-card-icon svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.tool-card:hover .tool-card-icon {
    background-color: var(--primary);
}

.tool-card:hover .tool-card-icon svg {
    color: var(--primary-foreground);
}

.tool-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 2.75rem;
}

/* More Tools Card */
.tool-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed !important;
    min-height: 80px;
}

.tool-card-more-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.more-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.more-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .hero-title { font-size: 2rem !important; }
    .hero-trust-badges { gap: 0.25rem; margin-bottom: 1rem; }
    .trust-badge { font-size: 0.6875rem; gap: 0.2rem; }
    .trust-badge svg { width: 13px; height: 13px; }
    .trust-badge-sep { display: none; }
    .hero-subtitle { font-size: 0.9375rem; margin-bottom: 1.5rem; }
    .hero-search { height: 48px; border-radius: 0.875rem; }
    .hero-search input { font-size: 0.875rem; }
    .category-pills { gap: 0.375rem; }
    .category-pill { padding: 0.3rem 0.625rem; font-size: 0.75rem; }
    .tool-card-desc { padding-left: 0; }
}


/* ============================================================
   CATEGORY HERO
   ============================================================ */

.cat-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
}

.cat-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 40px, var(--border) calc(100% - 40px), transparent);
}

.dark .cat-hero {
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

.cat-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--secondary);
    margin-bottom: 1rem;
}

.dark .cat-hero-icon {
    background: linear-gradient(135deg, #282828, #1e1e1e);
    border: 1px solid #383838;
}

.cat-hero-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.cat-hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.cat-hero-desc {
    font-size: 1.0625rem;
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.cat-hero-stats {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cat-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background-color: var(--card);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
}

.cat-stat-badge svg {
    color: var(--primary);
}



/* ============================================================
   TOOL PAGE
   ============================================================ */

.tool-page-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tool-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--secondary);
    flex-shrink: 0;
}

.dark .tool-page-icon {
    background: linear-gradient(135deg, #282828, #1e1e1e);
    border: 1px solid #383838;
}

.tool-page-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.tool-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.tool-page-desc {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .tool-page-header { flex-direction: column; align-items: center; text-align: center; }
}


/* ============================================================
   CATEGORY PAGE - REDESIGNED
   ============================================================ */

/* Category page hero override */
.cat-page-hero .hero-title {
    font-size: 2.25rem;
}

@media (min-width: 768px) {
    .cat-page-hero .hero-title { font-size: 3rem; }
}

/* Filter Pills - Popular / New */
.cat-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark .filter-pill:hover {
    background: rgba(255, 255, 255, 0.06);
}

.filter-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.filter-pill.active .pill-count {
    background-color: var(--muted);
    color: var(--primary);
}

.filter-pill svg {
    width: 15px;
    height: 15px;
}

.filter-pill.active svg {
    color: var(--primary);
}

/* Clean Tool Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Clean Tool Card - No icons, no badges, beautiful minimal */
.clean-tool-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1rem;
    text-decoration: none;
    color: var(--foreground);
    transition: all 0.25s ease;
    position: relative;
    min-height: 120px;
    cursor: pointer;
}

.clean-tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.dark .clean-tool-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.clean-tool-name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    transition: color 0.2s;
}

.clean-tool-card:hover .clean-tool-name {
    color: var(--primary);
}

.clean-tool-desc {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.clean-tool-arrow {
    position: absolute;
    top: 1.125rem;
    right: 1rem;
    width: 18px;
    height: 18px;
    color: var(--muted-foreground);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}

.clean-tool-card:hover .clean-tool-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

/* Category Navigation Pills - Below tools */
.cat-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cat-nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.cat-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-nav-pill:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark .cat-nav-pill:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cat-nav-pill svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.cat-nav-pill .pill-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
}

/* Mobile Responsive for Category Page */
@media (max-width: 640px) {
    .cat-page-hero .hero-title { font-size: 1.75rem !important; }
    .cat-filter-pills { gap: 0.375rem; }
    .filter-pill { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
    .tools-grid { gap: 0.625rem; }
    .clean-tool-card { padding: 1rem 1rem 0.875rem; min-height: 100px; }
    .clean-tool-name { font-size: 0.875rem; }
    .clean-tool-desc { font-size: 0.75rem; }
    .cat-nav-pills { gap: 0.375rem; }
    .cat-nav-pill { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
}


/* Elegant Separator - Half width, centered, thin, 40px fade */
.elegant-separator {
    position: relative;
}

.elegant-separator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 40px, var(--border) calc(100% - 40px), transparent);
    pointer-events: none;
}

@media (max-width: 640px) {
    .hero-section::after,
    .cat-hero::after,
    .elegant-separator::before {
        width: 70%;
    }
}

/* Header Elegant Border */
.header-elegant-border {
    position: relative;
}

.header-elegant-border::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 40px, var(--border) calc(100% - 40px), transparent);
    pointer-events: none;
}

/* Footer Elegant Separator - slightly wider */
footer.elegant-separator::before {
    width: 60%;
}

/* Footer copyright separator */
footer .elegant-separator::before {
    width: 40%;
}

/* ============================================================
   TRUST STATS ROW
   ============================================================ */

.trust-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .trust-stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
}

.trust-stat svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.7;
}

.trust-stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trust-stat-num {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dark .trust-stat-num {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
    letter-spacing: 0.02em;
}


/* ============================================================
   SECTION HEADING (shared)
   ============================================================ */

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-heading-title { font-size: 2rem; }
}

.section-heading-desc {
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .how-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.how-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.how-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dark .how-step-icon {
    background: linear-gradient(135deg, #282828, #1e1e1e);
    border: 1px solid #383838;
}

.how-step-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.how-step:hover .how-step-icon {
    background-color: var(--primary);
}

.how-step:hover .how-step-icon svg {
    color: var(--primary-foreground);
}

.how-step-num {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--muted-foreground);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.how-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.how-step-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* Connector line between steps on desktop */
@media (min-width: 768px) {
    .how-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 3.5rem;
        right: -1rem;
        width: calc(2rem);
        height: 1px;
        background: linear-gradient(to right, var(--border), transparent);
    }
}


/* ============================================================
   WHY CHOOSE US
   ============================================================ */

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.dark .why-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dark .why-card-icon {
    background: linear-gradient(135deg, #282828, #1e1e1e);
    border: 1px solid #383838;
}

.why-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.why-card:hover .why-card-icon {
    background-color: var(--primary);
}

.why-card:hover .why-card-icon svg {
    color: var(--primary-foreground);
}

.why-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.why-card-desc {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .trust-stat { padding: 0.75rem; gap: 0.5rem; }
    .trust-stat-num { font-size: 1.125rem; }
    .trust-stat-label { font-size: 0.6875rem; }
    .trust-stat svg { width: 22px; height: 22px; }
    .section-heading-title { font-size: 1.5rem; }
    .section-heading-desc { font-size: 0.875rem; }
    .how-step { padding: 1.5rem 1rem; }
    .why-card { padding: 1.25rem; }
}


/* ============================================================
   REQUEST A TOOL
   ============================================================ */

.request-tool-card {
    text-align: center;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.request-tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.request-tool-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.request-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--secondary);
    margin-bottom: 1.5rem;
}

.dark .request-tool-icon {
    background: linear-gradient(135deg, #282828, #1e1e1e);
    border: 1px solid #383838;
}

.request-tool-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.request-tool-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .request-tool-title { font-size: 1.75rem; }
}

.request-tool-desc {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.request-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dark .request-tool-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #141414;
    box-shadow: 0 4px 16px rgba(251,191,36,0.2);
}

.request-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.dark .request-tool-btn:hover {
    box-shadow: 0 8px 24px rgba(251,191,36,0.3);
}

.request-tool-btn svg {
    width: 18px;
    height: 18px;
}

.request-tool-note {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
    opacity: 0.7;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .request-tool-card { padding: 2rem 1.5rem; }
    .request-tool-title { font-size: 1.25rem; }
    .request-tool-desc { font-size: 0.875rem; }
    .request-tool-btn { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
}


/* ============================================================
   TOOL PAGE - FUTURISTIC DESIGN
   ============================================================ */

/* Breadcrumb */
.tool-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.tool-breadcrumb a {
    color: var(--muted-foreground);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

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

.bc-sep {
    opacity: 0.3;
    margin: 0 0.125rem;
    user-select: none;
}

.bc-current {
    color: var(--foreground);
    font-weight: 500;
}

/* Tool Hero */
.tool-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}


.tool-hero-info {
    flex: 1;
    min-width: 0;
}

.tool-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.tool-hero-desc {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.tool-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tool-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-action-btn:hover {
    border-color: var(--primary);
    background-color: var(--accent);
    transform: translateY(-1px);
}

.tool-action-btn svg {
    width: 18px;
    height: 18px;
}

.tool-action-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.tool-action-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tool Workspace */
.tool-workspace {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.tool-coming-soon {
    text-align: center;
    padding: 3rem;
    color: var(--muted-foreground);
}

.tool-coming-soon h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--foreground);
}

/* Tool SEO Content */
.tool-seo-content {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Tool Page Layout: Sidebar + Main Content */
.tool-page-section {
    padding-bottom: 2rem;
    overflow: visible;
}

.tool-page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
    min-height: calc(100vh - 200px);
}

.tool-page-layout > .tool-main-content {
    min-width: 0;
}

/* Left Sidebar */
.tool-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    align-self: start;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    z-index: 10;
}

.tool-sidebar::-webkit-scrollbar {
    width: 4px;
}

.tool-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.tool-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

.tool-sidebar-section {
    margin-bottom: 1.25rem;
}

.tool-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.625rem;
    padding: 0 0.5rem;
}

.tool-sidebar-heading svg {
    color: var(--primary);
}

.tool-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.tool-sidebar-item:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.tool-sidebar-item:hover .tool-sidebar-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.tool-sidebar-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-sidebar-arrow {
    color: var(--muted-foreground);
    opacity: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}



/* Main Content Area */

/* Mobile: Stack vertically */
@media (max-width: 1023px) {
    .tool-page-layout {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .tool-sidebar-section {
        margin-bottom: 0;
    }

    .tool-sidebar-heading {
        font-size: 0.6875rem;
    }
}

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


/* ============================================================
   FUTURISTIC TOOL COMPONENTS
   ============================================================ */

/* Futuristic Tool Wrapper - consistent spacing */
.futuristic-tool {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input/Output Parallel Grid */
.ft-io-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ft-io-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Section */
.ft-section {
}

.ft-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.ft-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ft-char-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
}

/* Scroll Area for textarea & output */
.ft-scroll-area {
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.ft-scroll-area::-webkit-scrollbar {
    width: 5px;
}

.ft-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.ft-scroll-area::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

.ft-scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: var(--muted-foreground);
}

/* Textarea */
.ft-textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background-color: var(--muted);
    color: var(--foreground);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    resize: vertical;
    transition: border-color 0.2s;
    flex: 1;
}

.dark .ft-textarea {
    background-color: #1a1a1a;
}

.ft-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.ft-textarea::placeholder {
    color: var(--muted-foreground);
    opacity: 0.6;
}

/* Output Actions (above output) */
.ft-output-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ft-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ft-action-chip:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark .ft-action-chip:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ft-action-chip-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.ft-action-chip-primary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark .ft-action-chip-primary:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Case Options Grid */
.ft-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .ft-options { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    .ft-options { grid-template-columns: repeat(6, 1fr); }
}

.ft-opt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ft-opt-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark .ft-opt-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ft-opt-btn.ft-opt-active {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.ft-opt-preview {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.7;
}

.ft-opt-active .ft-opt-preview {
    opacity: 1;
    color: var(--primary);
}

.ft-opt-label {
    font-size: 0.5625rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ft-opt-active .ft-opt-label {
    color: var(--primary);
    opacity: 0.8;
}

/* Output Area */
.ft-output {
    width: 100%;
    min-height: 180px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background-color: var(--secondary);
    color: var(--foreground);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
}

.dark .ft-output {
    background-color: #1a1a1a;
    border-color: #383838;
}

/* Inline Actions (legacy) */
.ft-actions-inline {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ft-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ft-inline-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark .ft-inline-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ft-inline-btn-muted {
    color: var(--muted-foreground);
}

.ft-inline-btn-muted:hover {
    color: var(--foreground);
}

/* Stats Row */
.ft-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.ft-stat {
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--secondary);
}

.dark .ft-stat {
    background-color: #1a1a1a;
}

.ft-stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.ft-stat-lbl {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile */
@media (max-width: 768px) {
    .ft-io-grid {
        grid-template-columns: 1fr;
    }
    .ft-textarea { min-height: 140px; font-size: 0.8125rem; }
    .ft-output { min-height: 140px; font-size: 0.8125rem; }
    .ft-options { grid-template-columns: repeat(3, 1fr); }
    .ft-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tool-hero { flex-direction: column; align-items: center; text-align: center; }
    .tool-hero-actions { justify-content: center; margin-top: 0.75rem; }
}
