@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-50: #eff6ff;
    --secondary: #1e293b;
    --white: #ffffff;
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition)
}

a:hover {
    color: var(--primary-dark)
}

img {
    max-width: 100%;
    height: auto
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--secondary)
}

h1 {
    font-size: 2.25rem
}

h2 {
    font-size: 1.75rem
}

h3 {
    font-size: 1.25rem
}

ul {
    list-style: none
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px
}

/* ============ PRELOADER ============ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity .5s ease, visibility .5s ease
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden
}

.loader-logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    animation: pulseLogo 1.5s ease-in-out infinite;
}

.loader-logo img {
    width: 48px;
    height: 48px;
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: var(--max-width);
    margin: 0 auto
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--secondary)
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm)
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: none;
    border: none
}

.menu-toggle:hover {
    background: var(--surface)
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition)
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg)
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg)
}

/* ============ SIDEBAR NAV ============ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition)
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible
}

.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    padding: 80px 24px 24px
}

.sidebar.active {
    right: 0
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    transition: var(--transition)
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--primary-50);
    color: var(--primary)
}

.sidebar a .nav-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center
}

.sidebar-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border)
}

.sidebar-section-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    padding: 0 16px;
    margin-bottom: 8px;
    font-weight: 600
}

/* ============ HERO (Clean & Trusty) ============ */
.hero {
    padding: 80px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    border-bottom: 1px solid var(--border)
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-50);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--primary-light)
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.15;
    letter-spacing: -.03em
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6
}

.search-wrapper {
    max-width: 640px;
    margin: 0 auto 32px;
    position: relative
}

.search-wrapper input {
    width: 100%;
    padding: 20px 140px 20px 60px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-sm)
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1)
}

.search-wrapper input::placeholder {
    color: var(--text-muted)
}

.search-wrapper .search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--text-muted)
}

.search-wrapper .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit
}

.search-wrapper .search-btn:hover {
    background: var(--primary-dark)
}

.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 20px
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: var(--text-secondary);
    font-weight: 500
}

.hero-trust-item span:first-child {
    font-size: 1.2rem;
    color: var(--primary)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35)
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
    color: var(--white)
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border)
}

.btn-secondary:hover {
    background: var(--surface-2);
    transform: translateY(-1px)
}

.btn-sm {
    padding: 8px 16px;
    font-size: .85rem;
    border-radius: var(--radius-sm)
}

.btn-xs {
    padding: 6px 12px;
    font-size: .8rem;
    border-radius: 6px
}

.btn-success {
    background: var(--success);
    color: var(--white)
}

.btn-success:hover {
    background: #059669
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary)
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white)
}

/* ============ SECTIONS ============ */
.section {
    padding: 60px 0
}

.section-header {
    text-align: center;
    margin-bottom: 40px
}

.section-header h2 {
    margin-bottom: 12px
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto
}

.section-alt {
    background: var(--surface)
}

/* ============ TOOL CARDS ============ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text)
}

.tool-card .tool-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius);
    transition: var(--transition)
}

.tool-card:hover .tool-icon {
    background: var(--primary-light);
    transform: scale(1.05)
}

.tool-card .tool-title {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.3
}

.tools-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px
}

.tools-grid-sm .tool-card {
    padding: 16px;
    gap: 8px
}

.tools-grid-sm .tool-card .tool-icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem
}

/* ============ TOP TOOLS ============ */
.top-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px
}

.top-tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text)
}

.top-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text)
}

.top-tool-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px
}

.top-tool-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px
}

.top-tool-card p {
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.5
}

/* ============ CATEGORY FILTER ============ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px
}

.category-btn {
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: .85rem;
    transition: var(--transition);
    color: var(--text-secondary)
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary)
}

/* ============ TOOL PAGE ============ */
.tool-page {
    padding: 24px 0 60px
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: .85rem;
    color: var(--text-muted);
    flex-wrap: wrap
}

.breadcrumb a {
    color: var(--text-secondary)
}

.breadcrumb a:hover {
    color: var(--primary)
}

.breadcrumb .sep {
    color: var(--border)
}

.tool-page h1 {
    font-size: 2rem;
    margin-bottom: 8px
}

.tool-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem
}

.tool-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm)
}

.tool-container textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', monospace;
    font-size: .9rem;
    resize: vertical;
    transition: var(--transition);
    background: var(--surface);
    line-height: 1.6
}

.tool-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    background: var(--white)
}

.tool-container input[type="text"],
.tool-container input[type="number"],
.tool-container input[type="date"],
.tool-container input[type="email"],
.tool-container input[type="url"],
.tool-container input[type="color"],
.tool-container select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: .9rem;
    transition: var(--transition);
    background: var(--surface)
}

.tool-container input:focus,
.tool-container select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    background: var(--white)
}

.tool-container label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 6px;
    color: var(--text-secondary)
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0
}

.tool-output {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 80px;
    font-size: .9rem;
    white-space: pre-wrap;
    word-break: break-word;
    position: relative;
    line-height: 1.7
}

.tool-output:empty::before {
    content: 'Output will appear here...';
    color: var(--text-muted);
    font-style: italic
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    font-size: .75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-secondary)
}

.copy-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary)
}

.copy-btn.copied {
    background: var(--success);
    color: var(--white);
    border-color: var(--success)
}

.tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px
}

.tool-group {
    margin-bottom: 16px
}

.result-box {
    background: var(--primary-50);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center
}

.result-box .result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px
}

.result-box .result-label {
    font-size: .85rem;
    color: var(--text-secondary)
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary)
}

.stat-card .stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 4px
}

/* ============ COLOR PREVIEW ============ */
.color-preview {
    width: 100%;
    height: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 12px 0;
    transition: var(--transition)
}

.color-swatch {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition)
}

.gradient-preview {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 12px 0
}

/* ============ SEO CONTENT ============ */
.seo-content {
    margin-top: 40px
}

.seo-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-50)
}

.seo-content h3 {
    font-size: 1.15rem;
    margin: 24px 0 12px
}

.seo-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8
}

.seo-content ul,
.seo-content ol {
    margin: 12px 0 16px 20px;
    color: var(--text-secondary)
}

.seo-content ul li,
.seo-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    list-style: disc
}

.seo-content ol li {
    list-style: decimal
}

/* ============ RELATED TOOLS ============ */
.related-tools {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border)
}

.related-tools h2 {
    margin-bottom: 20px
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text)
}

.related-card:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    transform: translateX(4px);
    color: var(--text)
}

.related-card .r-icon {
    font-size: 1.3rem
}

.related-card .r-title {
    font-weight: 600;
    font-size: .85rem
}

/* ============ FOOTER ============ */
.footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, .8);
    padding: 48px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.footer-brand .logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white)
}

.footer-brand p {
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .6)
}

.footer h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .05em
}

.footer ul li {
    margin-bottom: 10px
}

.footer ul li a {
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    transition: var(--transition)
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 4px
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4)
}

/* ============ INFO PAGES ============ */
.info-page {
    padding: 40px 0 80px
}

.info-page h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-50)
}

.info-page h2 {
    font-size: 1.3rem;
    margin: 28px 0 12px
}

.info-page p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8
}

.info-page ul {
    margin: 12px 0 16px 20px
}

.info-page ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    list-style: disc;
    line-height: 1.6
}

.contact-form {
    max-width: 600px;
    margin-top: 24px
}

.contact-form .tool-group {
    margin-bottom: 20px
}

.contact-form textarea {
    min-height: 140px
}

/* ============ SLIDER / RANGE ============ */
.tool-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    transition: var(--transition);
    padding: 0;
    border: none;
    margin: 8px 0
}

.tool-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .3)
}

.range-value {
    font-weight: 600;
    color: var(--primary);
    font-size: .9rem
}

/* ============ CHECKBOX / RADIO ============ */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    cursor: pointer;
    font-weight: 500
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px
}

/* ============ TABS ============ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition)
}

.tab:hover {
    color: var(--text)
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary)
}

.tab-content {
    display: none
}

.tab-content.active {
    display: block
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999
}

.toast.show {
    transform: translateY(0);
    opacity: 1
}

.toast.success {
    background: var(--success)
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .hero h1 {
        font-size: 2.2rem
    }
}

@media(max-width:768px) {
    .hero {
        padding: 60px 16px 40px
    }

    .hero h1 {
        font-size: 1.75rem
    }

    .hero p {
        font-size: 1rem
    }

    .tool-row {
        grid-template-columns: 1fr
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
    }

    .top-tools-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .section {
        padding: 40px 0
    }

    h1 {
        font-size: 1.75rem
    }

    h2 {
        font-size: 1.4rem
    }

    .tool-container {
        padding: 20px
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr))
    }

    .related-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:480px) {
    .hero h1 {
        font-size: 1.5rem
    }

    .top-tools-grid {
        grid-template-columns: 1fr
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr))
    }

    .tool-card .tool-icon {
        width: 44px;
        height: 44px;
        font-size: 1.6rem
    }

    .related-grid {
        grid-template-columns: 1fr
    }

    .category-filter {
        gap: 6px
    }

    .category-btn {
        padding: 6px 14px;
        font-size: .8rem
    }
}

/* ============ PRINT ============ */
@media print {

    .header,
    .footer,
    .sidebar,
    .nav-overlay,
    #preloader {
        display: none !important
    }
}