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

:root {
    --primary-color: #0062FF;
    --primary-rgb: 0, 98, 255;
    --secondary-color: #1E293B;
    --accent-color: #00D8F6;
    --bg-color: #F8FAFC;
    --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(0, 98, 255, 0.08);
    --text-color: #0F172A;
    --text-muted: #64748B;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(15, 23, 42, 0.04);
    --shadow-glow: rgba(0, 98, 255, 0.15);
    --toast-bg: rgba(15, 23, 42, 0.9);
    --toast-text: #FFFFFF;
    --font-sans: 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --container-width: 1280px;
    --header-height: 72px;
}

.dark-theme {
    --primary-color: #3B82F6;
    --primary-rgb: 59, 130, 246;
    --secondary-color: #E2E8F0;
    --accent-color: #38BDF8;
    --bg-color: #0B0F19;
    --bg-gradient: linear-gradient(135deg, #0B0F19 0%, #111827 100%);
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-color: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(59, 130, 246, 0.25);
    --toast-bg: rgba(255, 255, 255, 0.95);
    --toast-text: #0F172A;
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(135deg, #0F4CFF 0%, #2563EB 50%, #1D4ED8 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(15, 76, 255, 0.08);
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.header-scrolled {
    height: 64px;
    background: linear-gradient(135deg, #0A3ECC 0%, #1E40AF 60%, #1D4ED8 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-svg {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 4px;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-svg {
    box-shadow: 0 0 20px rgba(0, 216, 246, 0.6);
    border-color: #00D8F6;
    background: rgba(255, 255, 255, 0.18);
}

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

.nav-item {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border-radius: 50px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(255, 255, 255, 0.1);
}

.nav-item:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00D8F6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px #00D8F6;
}

.nav-item:not(.active):hover {
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.nav-item:not(.active):hover::after {
    width: 60%;
}

/* Mega Dropdown menu */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    width: 250px;
    padding: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper.focused .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    padding-left: 16px;
}

/* Nav Actions (Search, Theme, Menu) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.action-btn:hover {
    background: #00D8F6;
    color: #050816;
    border-color: #00D8F6;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 216, 246, 0.4);
}

.action-btn svg {
    transition: transform 0.4s ease;
}

.action-btn:hover svg {
    transform: rotate(45deg);
}

.hamburger-btn {
    display: none;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 999;
}

.reading-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.1s ease;
}

/* App Main Content */
main {
    flex: 1;
    margin-top: calc(var(--header-height) + 24px);
    padding-bottom: 48px;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 10px;
}

.breadcrumb-active {
    color: var(--text-color);
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 48px 0 24px 0 !important;
    min-height: auto;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 8px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-color) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 6px;
    padding-bottom: 6px;
    overflow: visible;
    text-align: center;
    width: 100%;
}

.dark-theme .hero-content h1 {
    background: linear-gradient(135deg, #FFFFFF 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 650px;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056e0 100%);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-2px);
}

.btn-danger {
    background: #EF4444;
    color: #FFFFFF;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Hero Illustration */
.hero-illustration {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 450px;
}

.illustration-card {
    width: 320px;
    height: 320px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px var(--shadow-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.illustration-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.svg-container {
    width: 240px;
    height: 240px;
    position: relative;
}

/* Tool Directory & Cards */
.directory-section {
    padding: 40px 0;
}

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

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Search Bar (Dashboard) */
.dashboard-search-container {
    margin-bottom: 32px;
    position: relative;
    max-width: 600px;
}

.dashboard-search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 15px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.dashboard-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px var(--shadow-glow);
}

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

/* Directory Categories Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 4px 12px var(--shadow-glow);
}

/* Tool Grid Layout */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--card-bg);
    border: 2px solid rgba(var(--primary-rgb), 0.12);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 6px 18px var(--shadow-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: var(--primary-color);
    box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.2), 0 0 12px rgba(var(--primary-rgb), 0.1);
}

.dark-theme .tool-card {
    border-color: rgba(59, 130, 246, 0.25);
}

.dark-theme .tool-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--primary-rgb), 0.25);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 18px;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.05);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-card-icon {
    background: var(--primary-color);
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.25);
}

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

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

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    margin-top: auto;
}

.tool-card-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.2s ease;
}

.dark-theme .tool-card-category {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

.tool-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--primary-color);
    color: #FFFFFF !important;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
    transition: all 0.25s ease;
}

.tool-card:hover .tool-card-arrow {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.35);
}

/* Tool Actions UI components (Favorites, Star icon) */
.tool-star-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.tool-star-btn:hover {
    transform: scale(1.15);
}

.tool-star-btn.favorited {
    color: #FFB000;
}

/* Tool Page Specific Layout */
.tool-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tool-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.tool-workspace {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: 0 15px 40px var(--shadow-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.sidebar-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 10px 25px var(--shadow-color);
}

.sidebar-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Tool Controls, Textareas and Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    font-family: inherit;
}

.character-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
}

.tool-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.action-left, .action-right {
    display: flex;
    gap: 10px;
}

/* Results panel */
.result-panel {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}

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

.result-title {
    font-size: 15px;
    font-weight: 700;
}

.result-box {
    width: 100%;
    padding: 16px;
    background: rgba(var(--primary-rgb), 0.03);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    font-size: 13px;
    color: var(--text-color);
    min-height: 120px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.result-stat-box {
    background: rgba(var(--primary-rgb), 0.03);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    text-align: center;
}

.result-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.result-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* SEO Rich Content styling */
.seo-content-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 15px 40px var(--shadow-color);
    backdrop-filter: blur(12px);
    margin-top: 40px;
}

.seo-rich-text {
    color: var(--text-color);
}

.seo-rich-text h1, .seo-rich-text h2, .seo-rich-text h3 {
    color: var(--text-color);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.seo-rich-text h1 {
    font-size: 32px;
    margin-top: 0;
    background: linear-gradient(135deg, var(--text-color) 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-rich-text h2 {
    font-size: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.seo-rich-text h3 {
    font-size: 18px;
}

.seo-rich-text p {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.seo-rich-text ul, .seo-rich-text ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 15px;
}

.seo-rich-text li {
    margin-bottom: 8px;
}

/* FAQ Accordion Styles */
.faq-accordion {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease-out;
    color: var(--text-muted);
    font-size: 14px;
}

.faq-item.active {
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.faq-item.active .faq-answer {
    padding: 8px 20px 20px 20px;
    max-height: 250px;
}

.faq-icon {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Footer Section */
footer.main-footer {
    position: relative;
    background: linear-gradient(135deg, #050816 0%, #0B1120 40%, #111827 75%, #1E3A8A 100%);
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: auto;
    padding: 80px 0 40px 0;
    overflow: hidden;
}

footer.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #00D8F6, #0062FF, #00D8F6);
    background-size: 200% auto;
    animation: footerGradientFlow 4s linear infinite;
}

@keyframes footerGradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

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

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF !important;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 16px 0 24px 0;
    max-width: 280px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 98, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
    color: #FFFFFF !important;
    transform: translateY(-4px) rotate(8deg) scale(1.1);
}

.social-link.fb:hover {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
}
.social-link.ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.5);
}
.social-link.ln:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    box-shadow: 0 0 15px rgba(10, 102, 194, 0.5);
}
.social-link.x:hover {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #00D8F6 !important;
    transform: translateX(6px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #00D8F6;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px #00D8F6;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500;
    box-shadow: 0 -1px 10px rgba(0, 98, 255, 0.05);
}

.copyright-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.copyright-link:hover {
    color: #00D8F6 !important;
    text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: var(--toast-bg);
    color: var(--toast-text);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--card-border);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.hide {
    animation: fadeOut 0.2s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 998;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Global Search Modal Overlay */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2050;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    transition: all 0.25s ease;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    width: 90%;
    max-width: 720px;
    max-height: 80vh;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(-20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active .search-modal {
    transform: translateY(0);
}

.search-modal-header {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.search-modal-input {
    width: 100%;
    padding: 22px 24px 22px 56px;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    border: none;
    color: var(--text-color);
}

.search-modal-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
}

.search-modal-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    padding: 4px 8px;
    background: rgba(var(--primary-rgb), 0.08);
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

/* Recent & Popular Metadata sections */
.search-meta-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.search-meta-section h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-clear-btn {
    font-size: 10px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.search-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(var(--primary-rgb), 0.03);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

/* Search results list */
.search-results-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    background: rgba(var(--primary-rgb), 0.01);
    transition: all 0.2s ease;
}

.search-result-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    width: 100%;
}

.search-result-item:hover, .search-result-item.selected {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.search-result-item:hover {
    transform: translateX(4px);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.search-result-item:hover .search-result-icon,
.search-result-item.selected .search-result-icon {
    background: var(--primary-color);
    color: #FFFFFF;
    transform: scale(1.05);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title-bar {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.search-result-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.search-result-badge {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-open {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Match highlighting */
.search-modal mark {
    background: rgba(0, 98, 255, 0.12);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 2px;
    padding: 0 1px;
}

.search-no-results {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.search-modal-shortcuts {
    padding: 12px 20px;
    background: rgba(var(--primary-rgb), 0.03);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.shortcut-badge {
    background: var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 2px;
    font-family: monospace;
    font-size: 10px;
}

.shortcut-badge {
    background: var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 2px;
    font-family: monospace;
    font-size: 10px;
}

/* Homepage Category Dashboard Styles */
.dashboard-heading-section {
    padding: 48px 0 32px 0;
    text-align: center;
}

.dashboard-heading-section h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-color) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.dark-theme .dashboard-heading-section h1 {
    background: linear-gradient(135deg, #FFFFFF 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-heading-section p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Homepage Category-Wise Tool Directory Styles */
.category-section {
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 32px;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: rgba(var(--primary-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.category-header-left h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
}

.category-header-left p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

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

.category-view-all-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    transition: opacity 0.2s ease;
}

.category-view-all-btn:hover {
    opacity: 0.8;
}

/* Toggle Grid Collapse Button */
.toggle-grid-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.toggle-grid-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

/* Responsive 5-Column Category Tools Grid */
.category-section-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
    max-height: 10000px;
    opacity: 1;
    overflow: hidden;
}

.category-section-grid.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .category-section-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .category-section-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-section-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Tool Styling Rules (V4.0) */
.premium-tool-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.premium-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 16px;
    font-size: 15px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    resize: vertical;
}
.premium-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-glow);
}
.textarea-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.btn-group-sm {
    display: flex;
    gap: 8px;
}
.btn-group-sm .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}
.btn-danger-hover:hover {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
    color: #FFFFFF !important;
}
.char-word-live-indicator {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}
.collapsible-settings-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.settings-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}
.form-group-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    accent-color: var(--primary-color);
}
.result-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.premium-table th {
    background: rgba(0, 98, 255, 0.04);
    font-weight: 700;
    color: var(--text-color);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.premium-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}
.premium-table tr:last-child td {
    border-bottom: none;
}
.serp-preview-simulator-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #FFFFFF;
    padding: 16px;
    font-family: Arial, sans-serif;
}
.dark-theme .serp-preview-simulator-box {
    background: #171717;
}
.serp-title {
    font-size: 19px;
    color: #1a0dab;
    line-height: 1.3;
    margin-bottom: 4px;
    font-weight: normal;
}
.dark-theme .serp-title {
    color: #8ab4f8;
}
.serp-url {
    font-size: 12px;
    color: #202124;
    margin-bottom: 4px;
}
.dark-theme .serp-url {
    color: #bdc1c6;
}
.serp-snippet {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.57;
}
.dark-theme .serp-snippet {
    color: #bdc1c6;
}
.btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.text-lg {
    font-size: 17px;
}
.text-xl {
    font-size: 20px;
}
.mt-6 {
    margin-top: 24px;
}
.mb-4 {
    margin-bottom: 16px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Schema Split-Screen & Layout Rules (V4.0) */
.schema-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}
@media (max-width: 992px) {
    .schema-split-container {
        grid-template-columns: 1fr;
    }
}
.schema-form-pane {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.schema-preview-pane {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (max-width: 992px) {
    .schema-preview-pane {
        position: relative;
        top: 0;
    }
}
.schema-preview-code {
    background: #1E1E2F;
    color: #A3E635;
    padding: 16px;
    border-radius: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    max-height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.schema-validation-box {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 16px;
    background: var(--card-bg);
    max-height: 250px;
    overflow-y: auto;
}
.schema-summary-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    background: var(--card-bg);
}
.suggestion-pass {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10B981;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 8px;
}
.suggestion-fail {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #EF4444;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 8px;
}
.suggestion-warn {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #F59E0B;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 8px;
}
.list-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
}
.drag-handle {
    cursor: grab;
    font-size: 20px;
    color: var(--text-muted);
}
.required-indicator {
    color: #EF4444;
    font-weight: bold;
    margin-left: 4px;
}
.accordion-item-custom {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-header-custom {
    padding: 12px 16px;
    background: rgba(0, 98, 255, 0.03);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.accordion-body-custom {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

/* Text Processing Split-Screen & Stats Panel Rules (V4.0) */
.text-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}
@media (max-width: 768px) {
    .text-split-container {
        grid-template-columns: 1fr;
    }
}
.text-editor-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.text-preview-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}
.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}
.stat-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}
.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}
.diff-added {
    background-color: rgba(16, 185, 129, 0.15);
    color: #047857;
    text-decoration: none;
}
.diff-removed {
    background-color: rgba(239, 68, 68, 0.15);
    color: #B91C1C;
    text-decoration: line-through;
}

/* Encoder/Decoder & Hash Layout Rules (V3.1) */
.verification-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}
.verification-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
}
.status-match {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid #10B981;
}
.status-mismatch {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid #EF4444;
}
.swap-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
}
.swap-btn {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-glow);
    transition: all 0.3s ease;
}
.swap-btn:hover {
    transform: rotate(180deg);
}
.strength-meter-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}
.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}
.entropy-score-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ==========================================================================
   V4.11 - Consistent Vertical Single-Column Layout for Schema Markup Tools
   ========================================================================== */
body[data-category="Schema Markup"]:not([data-is-category="true"]) main.container {
    max-width: 960px !important; /* Centered max-width between 900px and 1000px */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .tool-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 24px !important; /* Consistent vertical spacing between 20px and 32px */
    width: 100% !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .tool-workspace {
    width: 100% !important;
    max-width: 100% !important;
    padding: 32px !important;
    box-sizing: border-box !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .schema-split-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 24px !important;
    width: 100% !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .schema-form-pane,
body[data-category="Schema Markup"]:not([data-is-category="true"]) .schema-preview-pane {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .schema-preview-pane {
    position: relative !important;
    top: 0 !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .list-item-row,
body[data-category="Schema Markup"]:not([data-is-category="true"]) .list-item-row.accordion-item-custom {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .tool-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .sidebar-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .settings-grid {
    grid-template-columns: 1fr !important; /* Stack input fields in settings grid to full width */
    width: 100% !important;
}

/* Ensure output and preview elements span full width cleanly */
body[data-category="Schema Markup"]:not([data-is-category="true"]) .result-panel,
body[data-category="Schema Markup"]:not([data-is-category="true"]) .collapsible-settings-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .schema-preview-code,
body[data-category="Schema Markup"]:not([data-is-category="true"]) .schema-validation-box,
body[data-category="Schema Markup"]:not([data-is-category="true"]) .schema-summary-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive button wrapping */
body[data-category="Schema Markup"]:not([data-is-category="true"]) .btn-group-responsive {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

body[data-category="Schema Markup"]:not([data-is-category="true"]) .btn-group-responsive .btn {
    flex: 1 1 auto !important;
    min-width: 120px !important;
}

/* Sidebar links theme-aware style fix */
.sidebar-box .footer-links a {
    color: var(--text-color) !important;
}

.sidebar-box .footer-links a:hover {
    color: var(--primary-color) !important;
}
