/* =============================================
   MultiTools Hub — Main Stylesheet
   ============================================= */

/* ---------- Google Font + Reset ---------- */
:root {
    --primary:       #4F46E5;
    --primary-dark:  #3730A3;
    --primary-light: #818CF8;
    --secondary:     #0EA5E9;
    --accent:        #F59E0B;
    --success:       #10B981;
    --danger:        #EF4444;
    --dark:          #0F172A;
    --gray-50:       #F8FAFC;
    --gray-100:      #F1F5F9;
    --gray-200:      #E2E8F0;
    --gray-300:      #CBD5E1;
    --gray-400:      #94A3B8;
    --gray-500:      #64748B;
    --gray-600:      #475569;
    --gray-700:      #334155;
    --gray-800:      #1E293B;
    --gray-900:      #0F172A;
    --font-base:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --radius-xl:     28px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:     0 10px 40px rgba(79,70,229,.18);
    --transition:    all .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-base);
    color: var(--gray-800);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }

/* =============================================
   NAVBAR
   ============================================= */
#mainNav {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: .85rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.navbar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.02em;
}

.nav-link {
    font-weight: 500;
    font-size: .93rem;
    color: var(--gray-600) !important;
    padding: .4rem .8rem !important;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--gray-100);
}

.tools-dropdown {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: .5rem;
    min-width: 280px;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

/* Custom Scrollbar for Dropdown */
.tools-dropdown::-webkit-scrollbar { width: 6px; }
.tools-dropdown::-webkit-scrollbar-track { background: transparent; }
.tools-dropdown::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
.tools-dropdown::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: .55rem .75rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-700);
}

.dropdown-item:hover { background: var(--gray-100); color: var(--primary); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, #EEF2FF 0%, #F0F9FF 50%, #FFF7ED 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(79,70,229,.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(14,165,233,.10), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(79,70,229,.1);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 99px;
    border: 1px solid rgba(79,70,229,.2);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.04em;
}

.hero-stat span {
    font-size: .8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.hero-card .card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.hero-card h6 {
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.hero-card p {
    font-size: .78rem;
    color: var(--gray-500);
    margin: .25rem 0 0;
}

/* =============================================
   TOOL CARDS GRID
   ============================================= */
.tools-section { padding: 4rem 0; background: var(--gray-50); }

.section-badge {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--primary);
    background: rgba(79,70,229,.08);
    padding: .3rem .8rem;
    border-radius: 99px;
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.tool-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-3deg); }

.tool-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}

.tool-card p {
    font-size: .875rem;
    color: var(--gray-500);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.tool-card .btn-tool {
    width: 100%;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-sm);
    padding: .6rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    transition: var(--transition);
}

.tool-card:hover .btn-tool {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

/* Category badges */
.cat-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 99px;
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Icon color classes */
.ic-purple { background: rgba(79,70,229,.12); color: var(--primary); }
.ic-blue   { background: rgba(14,165,233,.12); color: var(--secondary); }
.ic-amber  { background: rgba(245,158,11,.12); color: var(--accent); }
.ic-green  { background: rgba(16,185,129,.12); color: var(--success); }
.ic-red    { background: rgba(239,68,68,.12); color: var(--danger); }

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section { padding: 4rem 0; }

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover { background: var(--gray-50); }

.feature-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h5 {
    font-size: .975rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .35rem;
}

.feature-item p {
    font-size: .875rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

/* =============================================
   TOOL PAGE LAYOUT
   ============================================= */
.tool-page-header {
    background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.tool-page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.tool-page-header p.lead {
    color: var(--gray-500);
    font-size: 1.05rem;
}

.tool-workspace {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.tool-workspace h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Stat Pills */
.stat-pills { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: .75rem 1.25rem;
    min-width: 100px;
    transition: var(--transition);
}

.stat-pill .pill-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-pill .pill-label {
    font-size: .72rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .25rem;
}

/* Tool textarea */
.tool-textarea {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-family: var(--font-base);
    font-size: .9rem;
    line-height: 1.65;
    resize: vertical;
    transition: var(--transition);
    color: var(--gray-800);
    background: #fff;
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), #6366F1);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .65rem 1.5rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,.35);
    color: #fff;
}

.btn-secondary-custom {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .65rem 1.5rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-secondary-custom:hover {
    background: var(--gray-200);
    color: var(--dark);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--gray-100);
}

.sidebar-tool-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .5rem;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-size: .87rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-tool-link:hover, .sidebar-tool-link.active {
    background: rgba(79,70,229,.08);
    color: var(--primary);
}

/* =============================================
   PASSWORD GENERATOR
   ============================================= */
.password-display {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    word-break: break-all;
    min-height: 60px;
    color: var(--dark);
    display: flex;
    align-items: center;
    letter-spacing: .05em;
}

.strength-bar {
    height: 6px;
    border-radius: 99px;
    background: var(--gray-200);
    overflow: hidden;
    margin-top: .75rem;
}

.strength-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease, background .3s ease;
}

.strength-label {
    font-size: .8rem;
    font-weight: 600;
    margin-top: .4rem;
}

/* =============================================
   AGE CALCULATOR
   ============================================= */
.age-result-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.age-result-main {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;
}

.age-result-main sup {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: text-top;
    margin-top: .5rem;
    display: inline-block;
}

.age-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.age-breakdown div {
    text-align: center;
}

.age-breakdown strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.age-breakdown span {
    font-size: .8rem;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* =============================================
   KEYWORD DENSITY
   ============================================= */
.density-result {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.density-percent {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -.04em;
    line-height: 1;
}

.keyword-highlight { background: rgba(249,216,100,.6); border-radius: 3px; padding: 0 2px; }

/* =============================================
   FORMS & INPUTS
   ============================================= */
.form-control-custom {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    font-family: var(--font-base);
    font-size: .9rem;
    color: var(--gray-800);
    background: #fff;
    transition: var(--transition);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

label.form-label-custom {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .4rem;
    display: block;
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: var(--gray-200);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(79,70,229,.4);
    cursor: pointer;
}

/* Checkbox custom */
.check-group {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 0;
    cursor: pointer;
}

.check-group input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.check-group span {
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* =============================================
   GENERAL PAGE CONTENT
   ============================================= */
.page-header {
    background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0;
}

.page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.03em;
    margin: 0;
}

.page-breadcrumb {
    font-size: .83rem;
    color: var(--gray-500);
    margin-top: .5rem;
}

.page-breadcrumb a { color: var(--primary); }

.prose-content {
    max-width: 800px;
}

.prose-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 .75rem;
}

.prose-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 .5rem;
}

.prose-content p { margin-bottom: 1rem; color: var(--gray-600); line-height: 1.75; }
.prose-content ul, .prose-content ol { margin-left: 1.5rem; margin-bottom: 1rem; color: var(--gray-600); }
.prose-content li { margin-bottom: .5rem; line-height: 1.65; }

/* Alert box */
.info-box {
    background: rgba(79,70,229,.06);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.info-box p { margin: 0; font-size: .9rem; color: var(--gray-700); }

/* =============================================
   IMAGE COMPRESSOR
   ============================================= */
.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-50);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(79,70,229,.04);
}

.drop-zone .dz-icon {
    font-size: 2.5rem;
    color: var(--gray-400);
    margin-bottom: .75rem;
}

.drop-zone h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .4rem;
}

.drop-zone p { font-size: .85rem; color: var(--gray-500); margin: 0; }

/* Image preview comparison */
.img-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.img-compare-item img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.img-compare-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .4rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
}

.footer-main { padding: 3.5rem 0 1.5rem; }

.footer-brand .brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.footer-brand .brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline { font-size: .88rem; color: var(--gray-500); margin: 0; }

.footer-heading {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: .85rem;
}

.footer-links {
    list-style: none;
    padding: 0; margin: 0;
}

.footer-links li { margin-bottom: .4rem; }

.footer-links a {
    font-size: .875rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact-info {
    font-size: .875rem;
    color: var(--gray-500);
}

.footer-contact-info a { color: var(--primary-light); }

.footer-desc { font-size: .875rem; color: var(--gray-600); }

.social-links { display: flex; gap: .65rem; }

.social-links a {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-divider { border-color: var(--gray-800); margin: 1.75rem 0 1.25rem; }

.footer-bottom { padding-bottom: 1rem; font-size: .83rem; color: var(--gray-600); }

.footer-legal-links { display: flex; align-items: center; }

.footer-legal-links a {
    font-size: .83rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.footer-legal-links a:hover { color: var(--primary-light); }

/* =============================================
   AD ZONES
   ============================================= */
.ad-zone {
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 1rem 0;
}

/* =============================================
   ALERTS / TOASTS
   ============================================= */
.alert-custom {
    border-radius: var(--radius-sm);
    padding: .85rem 1.25rem;
    font-size: .9rem;
    font-weight: 500;
    border: none;
    margin-bottom: 1rem;
}

.alert-success-custom { background: rgba(16,185,129,.1); color: #065F46; }
.alert-error-custom   { background: rgba(239,68,68,.1); color: #991B1B; }
.alert-info-custom    { background: rgba(79,70,229,.1); color: #3730A3; }

/* =============================================
   UTILITIES
   ============================================= */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .hero-section { padding: 3rem 0; }
    .hero-visual { display: none; }
    .img-compare { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    /* Hero Section Mobile Fixes */
    .hero-section { text-align: center; padding: 2.5rem 0; }
    .hero-badge { margin: 0 auto 1.25rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; font-size: 1.05rem; }
    .hero-section .d-flex.gap-3.flex-wrap { flex-direction: column; width: 100%; }
    .hero-section .d-flex.gap-3.flex-wrap > a { width: 100%; justify-content: center; }
    .hero-stats { justify-content: center; gap: 1.25rem; }
    
    /* Tool Page Header Mobile Fixes */
    .tool-page-header { padding: 2rem 0; text-align: center; }
    .tool-page-header .d-flex.gap-3 { flex-direction: column; gap: 1rem !important; }
    .tool-page-header .d-flex.gap-2 { justify-content: center; margin-bottom: 1rem !important; }
    .tool-page-header h1 { font-size: 1.6rem; }
    .tool-page-header p.lead { font-size: .95rem; line-height: 1.6; }
    
    /* Tool Workspace Mobile Fixes */
    .tool-workspace { padding: 1.25rem; margin-bottom: 1.5rem; }
    .tool-workspace .d-flex.justify-content-between { flex-direction: column; align-items: stretch !important; gap: 1rem; }
    .tool-workspace .d-flex.justify-content-between h2 { text-align: center; margin-bottom: 0; }
    .tool-workspace .d-flex.justify-content-between .d-flex.gap-2 { width: 100%; flex-wrap: wrap; justify-content: center; }
    .tool-workspace .d-flex.justify-content-between .d-flex.gap-2 > * { flex: 1; text-align: center; white-space: nowrap; }

    /* Stats & Specific Tools */
    .stat-pills { gap: .5rem; }
    .stat-pill { flex: 1 1 calc(50% - .5rem); min-width: 0; padding: .6rem .5rem; }
    .stat-pill .pill-value { font-size: 1.15rem; }
    
    .age-breakdown { gap: 1rem; }
    .age-result-main { font-size: 2.2rem; }
    .density-percent { font-size: 2rem; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-msg {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--dark);
    color: #fff;
    padding: .85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    z-index: 9999;
    transform: translateY(20px);
    opacity: 0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    max-width: 320px;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-info    { border-left: 4px solid var(--primary); }

