/* ==========================================================================
   TAPTOOL MODERN THEME - HEADER & HERO (MOBILE-RESPONSIVE FIRST)
   ========================================================================== */

:root {
    --theme-orange: #f97316;
    --theme-orange-hover: #ea580c;
    --theme-orange-dark: #c2410c;
    --theme-orange-light: #fff7ed;
    --theme-orange-border: #fed7aa;
    --theme-orange-glow: rgba(249, 115, 22, 0.28);
    --theme-text-dark: #0f172a;
    --theme-text-muted: #64748b;
    --theme-border-light: #e2e8f0;
    --theme-bg-light: #ffffff;
    --theme-bg-subtle: #f8fafc;
    --theme-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   GLOBAL OVERFLOW & RESPONSIVE RESETS
   -------------------------------------------------------------------------- */
html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: clip;
    overflow-y: auto;
    position: relative;
    min-height: 100%;
    max-width: 100% !important;
    width: 100% !important;
}

.page {
    position: relative;
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
}

.page-wrapper, .page-content, .homepage-content {
    overflow-x: clip !important;
    max-width: 100% !important;
    width: 100% !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    box-sizing: border-box !important;
}

@media (max-width: 575.98px) {
    .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }
    .row > * {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

body {
    font-family: var(--theme-font);
    color: var(--theme-text-dark);
    background-color: #fafbfc;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   MODERN STICKY NAVBAR
   -------------------------------------------------------------------------- */
.modern-navbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1040 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.theme-dark .modern-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modern-navbar .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.modern-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: var(--theme-text-dark) !important;
    transition: transform 0.2s ease;
}

body.theme-dark .modern-brand {
    color: #f8fafc !important;
}

.modern-brand:hover {
    transform: translateY(-1px);
}

.brand-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.brand-icon-badge svg {
    width: 20px;
    height: 20px;
}

.brand-logo-img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

/* Center Nav Links */
.modern-nav-menu {
    display: flex;
    align-items: center;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    gap: 0.25rem;
}

.modern-nav-item {
    position: relative;
}

.modern-nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569 !important;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}

body.theme-dark .modern-nav-link {
    color: #cbd5e1 !important;
}

.modern-nav-link:hover {
    color: var(--theme-orange) !important;
}

/* Active Indicator with Orange bottom pill */
.modern-nav-link.active {
    color: var(--theme-orange) !important;
    font-weight: 600;
}

.modern-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: var(--theme-orange);
    border-radius: 9999px;
}

/* Right Nav Controls */
.modern-nav-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Compact Header Search Pill */
.header-search-wrapper {
    position: relative;
}

.header-search-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    width: 210px;
}

body.theme-dark .header-search-pill {
    background: #1e293b;
    border-color: #334155;
}

.header-search-pill:focus-within {
    background: #ffffff;
    border-color: var(--theme-orange);
    box-shadow: 0 0 0 3px var(--theme-orange-glow);
    width: 240px;
}

body.theme-dark .header-search-pill:focus-within {
    background: #0f172a;
}

.header-search-input {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--theme-text-dark);
    width: 100%;
    outline: none;
}

body.theme-dark .header-search-input {
    color: #f8fafc;
}

.header-search-input::placeholder {
    color: #94a3b8;
}

/* Header search results dropdown */
.header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    padding: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
}

body.theme-dark .header-search-results {
    background: #1e293b;
    border-color: #334155;
}

.header-search-result-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--theme-text-dark);
    transition: background 0.15s ease;
}

body.theme-dark .header-search-result-item {
    color: #f8fafc;
}

.header-search-result-item:hover {
    background: #f8fafc;
    color: var(--theme-orange);
}

body.theme-dark .header-search-result-item:hover {
    background: #334155;
}

/* Circular Theme Mode Button */
.btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

body.theme-dark .btn-theme-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.btn-theme-toggle:hover {
    background: #e2e8f0;
    color: var(--theme-orange);
    transform: scale(1.05);
}

body.theme-dark .btn-theme-toggle:hover {
    background: #334155;
    color: #fb923c;
}

/* Orange CTA Button */
.btn-cta-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.5rem 1.35rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-cta-orange:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Mobile Toggler Button */
.modern-navbar-toggler {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    padding: 0;
    transition: all 0.2s ease;
}

body.theme-dark .modern-navbar-toggler {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.modern-navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--theme-orange-glow);
    outline: none;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-ambient-glow-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.modern-hero-section {
    position: relative;
    z-index: 30;
    background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
    padding: 3.5rem 0 3rem 0;
    overflow: visible !important;
}

body.theme-dark .modern-hero-section {
    background: linear-gradient(180deg, #090d16 0%, #0f172a 100%);
}

/* Soft Ambient Radial Glow Behind Graphic */
.hero-ambient-glow {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.38) 0%, rgba(255, 237, 213, 0.15) 45%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

body.theme-dark .hero-ambient-glow {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.05) 45%, rgba(15, 23, 42, 0) 70%);
}

/* Hero Badge Pill */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.08);
}

body.theme-dark .hero-badge-pill {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.35);
    color: #fb923c;
}

.hero-badge-icon {
    margin-right: 0.45rem;
    font-size: 0.95rem;
}

/* Hero Main Title */
.hero-main-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--theme-text-dark);
    margin-bottom: 1rem;
}

body.theme-dark .hero-main-title {
    color: #f8fafc;
}

.hero-highlight-orange {
    color: var(--theme-orange);
    position: relative;
    display: inline-block;
}

/* Hero Subtitle */
.hero-subtitle-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

body.theme-dark .hero-subtitle-text {
    color: #94a3b8;
}

/* Hero Search Box */
.hero-search-container {
    position: relative;
    max-width: 580px;
    width: 100%;
    margin-bottom: 2.25rem;
    z-index: 40;
}

.hero-search-wrapper {
    position: relative !important;
    width: 100% !important;
    z-index: 50;
}

.hero-search-pill {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.35rem 0.45rem 0.35rem 1.25rem;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

body.theme-dark .hero-search-pill {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.3);
}

.hero-search-pill:focus-within {
    border-color: var(--theme-orange);
    box-shadow: 0 12px 30px -4px rgba(249, 115, 22, 0.18), 0 0 0 4px var(--theme-orange-glow);
}

.hero-search-input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--theme-text-dark);
    width: 100%;
    min-width: 0 !important;
    flex: 1 1 auto;
    outline: none;
    padding: 0.45rem 0.5rem;
    text-overflow: ellipsis;
}

body.theme-dark .hero-search-input {
    color: #f8fafc;
}

.hero-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.btn-hero-search {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 9999px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    flex-shrink: 0;
}

.btn-hero-search:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.45);
    transform: translateY(-1px);
}

/* Hero Search Results Dropdown */
.hero-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px -6px rgba(0, 0, 0, 0.16), 0 10px 20px -4px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    padding: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
}

body.theme-dark .hero-search-results {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.5);
}

.hero-search-result-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--theme-text-dark);
    transition: background 0.15s ease, transform 0.15s ease;
}

body.theme-dark .hero-search-result-item {
    color: #f8fafc;
}

.hero-search-result-item:hover {
    background: #fff7ed;
    color: var(--theme-orange);
    transform: translateX(4px);
}

body.theme-dark .hero-search-result-item:hover {
    background: rgba(249, 115, 22, 0.12);
}

/* 2 Trust / Feature Badges Under Search */
.hero-trust-badges-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.theme-dark .trust-badge-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(51, 65, 85, 0.8);
}

.trust-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge-icon.green {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
}

body.theme-dark .trust-badge-icon.green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.trust-badge-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

body.theme-dark .trust-badge-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.trust-badge-icon.purple {
    background: #f5f3ff;
    color: #8b5cf6;
    border: 1px solid #ede9fe;
}

body.theme-dark .trust-badge-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.trust-badge-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 0.1rem;
}

body.theme-dark .trust-badge-title {
    color: #f8fafc;
}

.trust-badge-desc {
    font-size: 0.775rem;
    color: var(--theme-text-muted);
    line-height: 1.25;
}

body.theme-dark .trust-badge-desc {
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN 3D FLOATING ILLUSTRATION
   -------------------------------------------------------------------------- */
.hero-graphic-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Handwritten annotation doodle */
.hero-doodle-note {
    position: absolute;
    top: 15px;
    right: 25px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-align: right;
    line-height: 1.2;
    z-index: 12;
    pointer-events: none;
}

body.theme-dark .hero-doodle-note {
    color: #cbd5e1;
}

.hero-doodle-arrow {
    display: block;
    margin-left: auto;
    margin-top: 4px;
    transform: rotate(10deg);
}

/* Central Document Card */
.central-doc-card {
    width: 200px;
    height: 250px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    position: relative;
    transform: rotate(-3deg);
    animation: heroDocFloat 6s ease-in-out infinite;
    z-index: 5;
}

body.theme-dark .central-doc-card {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Red PDF Badge */
.doc-card-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
    margin-bottom: 1.25rem;
    text-align: center;
    width: 100%;
}

.doc-card-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-line {
    height: 6px;
    border-radius: 9999px;
    background: #e2e8f0;
}

body.theme-dark .doc-line {
    background: #334155;
}

.doc-line.short {
    width: 60%;
}

.doc-line.medium {
    width: 80%;
}

/* Floating Satellite App Icons */
.floating-tool-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 8;
    cursor: default;
    transition: transform 0.25s ease;
}

.floating-tool-badge svg {
    width: 24px;
    height: 24px;
}

.floating-tool-badge:hover {
    transform: scale(1.15) !important;
}

/* Positions & Color Schemes */
/* 1. Word (Blue) - Top Right */
.badge-word {
    top: 40px;
    right: 150px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
    animation: floatSlow 5s ease-in-out infinite;
}

/* 2. Excel (Green) - Far Top Right */
.badge-excel {
    top: 60px;
    right: 35px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.35);
    animation: floatMedium 5.5s ease-in-out infinite 0.7s;
}

/* 3. Security (Red Lock) - Right Middle */
.badge-lock {
    top: 195px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.35);
    animation: floatFast 4.8s ease-in-out infinite 1.2s;
}

/* 4. Unlock / Protect (Purple) - Bottom Right */
.badge-unlock {
    bottom: 50px;
    right: 50px;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    box-shadow: 0 10px 22px rgba(147, 51, 234, 0.35);
    animation: floatSlow 5.2s ease-in-out infinite 1.8s;
}

/* 5. Edit (Violet) - Bottom Left */
.badge-edit {
    bottom: 55px;
    left: 85px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 10px 22px rgba(139, 92, 246, 0.35);
    animation: floatMedium 4.6s ease-in-out infinite 0.5s;
}

/* 6. Image (Orange) - Left Middle */
.badge-image {
    top: 145px;
    left: 60px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
    animation: floatFast 5.8s ease-in-out infinite 1.4s;
}

/* Keyframe Animations */
@keyframes heroDocFloat {
    0%, 100% {
        transform: rotate(-3deg) translateY(0);
    }
    50% {
        transform: rotate(-3deg) translateY(-8px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatFast {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    /* Navbar Mobile Collapse */
    .modern-navbar .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid #e2e8f0;
        margin-top: 0.75rem;
        padding: 1.25rem;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.theme-dark .modern-navbar .navbar-collapse {
        background: #1e293b;
        border-color: #334155;
    }

    .modern-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .modern-nav-item {
        width: 100%;
    }

    .modern-nav-link {
        width: 100%;
        padding: 0.65rem 0.85rem;
    }

    .modern-nav-link.active::after {
        display: none;
    }

    .modern-nav-link.active {
        background: #fff7ed;
        color: var(--theme-orange) !important;
    }

    body.theme-dark .modern-nav-link.active {
        background: rgba(249, 115, 22, 0.15);
    }

    .header-search-wrapper {
        display: none !important;
    }

    .modern-hero-section {
        padding: 2.25rem 0 1.75rem 0;
        text-align: center;
        overflow: visible !important;
        position: relative;
        z-index: 30;
        max-width: 100%;
    }

    .hero-badge-pill {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-main-title {
        font-size: 2.35rem;
        line-height: 1.2;
    }

    .hero-subtitle-text {
        margin: 0 auto 1.5rem auto;
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .hero-search-container {
        margin: 0 auto 1.75rem auto;
        width: 100%;
        max-width: 540px;
    }

    .hero-trust-badges-row {
        justify-content: center;
        gap: 1rem;
    }

    .hero-graphic-wrapper {
        margin-top: 2rem;
        max-width: 100%;
        width: 100%;
        height: 320px;
        overflow: hidden;
    }

    .central-doc-card {
        width: 160px;
        height: 200px;
    }

    .doc-card-badge {
        font-size: 1.2rem;
        padding: 0.65rem 1rem;
    }

    .floating-tool-badge {
        width: 42px;
        height: 42px;
    }

    .floating-tool-badge svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 575.98px) {
    .modern-hero-section {
        padding: 1.75rem 0 1.25rem 0 !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 30 !important;
    }

    .hero-badge-pill {
        font-size: 0.775rem;
        padding: 0.25rem 0.8rem;
        margin-bottom: 0.75rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-main-title {
        font-size: 1.85rem !important;
        line-height: 1.22 !important;
        letter-spacing: -0.02em;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle-text {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin: 0 auto 1.25rem auto !important;
        padding: 0 0.25rem;
    }

    .hero-search-container {
        margin: 0 auto 1.35rem auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 2px !important;
    }

    .hero-search-pill {
        padding: 4px 6px 4px 12px !important;
        border-width: 1.5px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-search-input {
        font-size: 0.85rem !important;
        padding: 5px 6px !important;
        min-width: 0 !important;
    }

    .btn-hero-search {
        padding: 6px 14px !important;
        font-size: 0.825rem !important;
        font-weight: 600 !important;
        border-radius: 9999px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .hero-trust-badges-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
    }

    .trust-badge-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        border-radius: 10px !important;
        padding: 5px 8px !important;
        gap: 0.45rem !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    }

    body.theme-dark .trust-badge-item {
        background: rgba(30, 41, 59, 0.6) !important;
        border-color: rgba(51, 65, 85, 0.8) !important;
    }

    .trust-badge-icon {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }

    .trust-badge-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .trust-badge-title {
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .trust-badge-desc {
        font-size: 0.66rem !important;
        line-height: 1.15 !important;
    }

    .hero-ambient-glow {
        width: 220px !important;
        height: 220px !important;
        right: -80px !important;
        opacity: 0.4 !important;
    }

    .hero-graphic-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: 220px !important;
        overflow: hidden !important;
        margin-top: 1.25rem !important;
        transform: scale(0.75) !important;
        transform-origin: center top !important;
    }

    .central-doc-card {
        width: 130px;
        height: 160px;
    }

    .doc-card-badge {
        font-size: 1.05rem;
        padding: 0.5rem 0.85rem;
    }

    .floating-tool-badge {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .floating-tool-badge svg {
        width: 16px;
        height: 16px;
    }

    .badge-word { top: 20px; right: 40px; }
    .badge-excel { top: 30px; right: 5px; }
    .badge-lock { top: 100px; right: 0px; }
    .badge-unlock { bottom: 20px; right: 15px; }
    .badge-edit { bottom: 20px; left: 25px; }
    .badge-image { top: 70px; left: 10px; }
}
/* ==========================================================================
   POPULAR TOOLS SECTION
   ========================================================================== */
.popular-tools-section {
    padding-top: 1rem;
}
.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--theme-text-dark);
}
body.theme-dark .section-title {
    color: #f8fafc;
}
.section-subtitle {
    font-size: 0.925rem;
    color: var(--theme-text-muted);
}
body.theme-dark .section-subtitle {
    color: #94a3b8;
}
.section-view-all {
    color: var(--theme-orange);
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.section-view-all:hover {
    color: var(--theme-orange-hover);
    transform: translateX(3px);
}
.section-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}
.section-icon-badge.fire {
    font-size: 1.25rem;
}
.section-icon-badge.category-badge svg {
    width: 20px;
    height: 20px;
}

/* Popular Tool Cards */
.popular-tool-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
body.theme-dark .popular-tool-card {
    background: #1e293b;
    border-color: #334155;
}
.popular-tool-card:hover {
    transform: translateY(-4px);
    border-color: #fed7aa;
    box-shadow: 0 12px 24px -4px rgba(249, 115, 22, 0.14);
}
body.theme-dark .popular-tool-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.4);
}
.popular-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.popular-tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.popular-tool-card:hover .popular-tool-icon-wrapper {
    transform: scale(1.08);
}
.popular-tool-icon-wrapper.red { background: #fee2e2; color: #ef4444; }
.popular-tool-icon-wrapper.purple { background: #f3e8ff; color: #9333ea; }
.popular-tool-icon-wrapper.green { background: #dcfce7; color: #16a34a; }
.popular-tool-icon-wrapper.blue { background: #dbeafe; color: #2563eb; }
.popular-tool-icon-wrapper.orange { background: #ffedd5; color: #ea580c; }
.popular-tool-icon-wrapper.violet { background: #ede9fe; color: #7c3aed; }

body.theme-dark .popular-tool-icon-wrapper.red { background: rgba(239, 68, 68, 0.18); }
body.theme-dark .popular-tool-icon-wrapper.purple { background: rgba(147, 51, 234, 0.18); }
body.theme-dark .popular-tool-icon-wrapper.green { background: rgba(22, 163, 74, 0.18); }
body.theme-dark .popular-tool-icon-wrapper.blue { background: rgba(37, 99, 235, 0.18); }
body.theme-dark .popular-tool-icon-wrapper.orange { background: rgba(234, 88, 12, 0.18); }
body.theme-dark .popular-tool-icon-wrapper.violet { background: rgba(124, 58, 237, 0.18); }

.tool-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.popular-tool-icon-wrapper svg {
    width: 22px;
    height: 22px;
}
.popular-tool-info {
    min-width: 0;
    flex-grow: 1;
}
.popular-tool-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-dark .popular-tool-title {
    color: #f8fafc;
}
.popular-tool-desc {
    font-size: 0.775rem;
    color: var(--theme-text-muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-dark .popular-tool-desc {
    color: #94a3b8;
}

/* ==========================================================================
   BROWSE BY CATEGORY SECTION
   ========================================================================== */
.browse-categories-section {
    padding-top: 1rem;
}
.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
body.theme-dark .category-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
body.theme-dark .category-card:hover {
    border-color: #475569;
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.4);
}
.category-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.category-icon-box.red { background: #fee2e2; color: #ef4444; }
.category-icon-box.blue { background: #dbeafe; color: #2563eb; }
.category-icon-box.violet { background: #ede9fe; color: #7c3aed; }
.category-icon-box.green { background: #dcfce7; color: #16a34a; }
.category-icon-box.rose { background: #ffe4e6; color: #e11d48; }
.category-icon-box.amber { background: #fef3c7; color: #d97706; }
.category-icon-box.cyan { background: #cffafe; color: #0891b2; }
.category-icon-box.indigo { background: #e0e7ff; color: #4f46e5; }

body.theme-dark .category-icon-box.red { background: rgba(239, 68, 68, 0.2); }
body.theme-dark .category-icon-box.blue { background: rgba(37, 99, 235, 0.2); }
body.theme-dark .category-icon-box.violet { background: rgba(124, 58, 237, 0.2); }
body.theme-dark .category-icon-box.green { background: rgba(22, 163, 74, 0.2); }
body.theme-dark .category-icon-box.rose { background: rgba(225, 29, 72, 0.2); }
body.theme-dark .category-icon-box.amber { background: rgba(217, 119, 6, 0.2); }
body.theme-dark .category-icon-box.cyan { background: rgba(8, 145, 178, 0.2); }
body.theme-dark .category-icon-box.indigo { background: rgba(79, 70, 229, 0.2); }

.category-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-text-dark);
}
body.theme-dark .category-title {
    color: #f8fafc;
}
.category-count-badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 3px 10px;
}
.category-count-badge.red { background: #fff1f2; color: #e11d48; }
.category-count-badge.blue { background: #eff6ff; color: #2563eb; }
.category-count-badge.violet { background: #f5f3ff; color: #7c3aed; }
.category-count-badge.green { background: #f0fdf4; color: #16a34a; }
.category-count-badge.rose { background: #fff1f2; color: #e11d48; }
.category-count-badge.amber { background: #fffbeb; color: #d97706; }
.category-count-badge.cyan { background: #ecfeff; color: #0891b2; }
.category-count-badge.indigo { background: #eef2ff; color: #4f46e5; }

body.theme-dark .category-count-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.category-tools-list {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.theme-dark .category-tools-list {
    border-top-color: #334155;
}
.category-tool-item {
    text-decoration: none;
    color: #475569;
    font-size: 0.885rem;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}
body.theme-dark .category-tool-item {
    color: #cbd5e1;
}
.category-tool-item:hover {
    color: var(--theme-orange);
    background: #fff7ed;
    transform: translateX(4px);
}
body.theme-dark .category-tool-item:hover {
    color: #fb923c;
    background: rgba(249, 115, 22, 0.12);
}
.tool-chevron {
    color: #94a3b8;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}
.category-view-all {
    font-size: 0.865rem;
    font-weight: 600;
    color: var(--theme-orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.category-view-all:hover {
    color: var(--theme-orange-hover);
    transform: translateX(3px);
}

/* ==========================================================================
   BOTTOM TRUST FEATURES STRIP
   ========================================================================== */
.trust-features-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px 32px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
body.theme-dark .trust-features-card {
    background: #1e293b;
    border-color: #334155;
}
.trust-strip-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.trust-strip-icon.red { background: #fee2e2; color: #ef4444; }
.trust-strip-icon.orange { background: #ffedd5; color: #ea580c; }
.trust-strip-icon.blue { background: #dbeafe; color: #2563eb; }
.trust-strip-icon.pink { background: #fce7f3; color: #db2777; }

body.theme-dark .trust-strip-icon.red { background: rgba(239, 68, 68, 0.2); }
body.theme-dark .trust-strip-icon.orange { background: rgba(234, 88, 12, 0.2); }
body.theme-dark .trust-strip-icon.blue { background: rgba(37, 99, 235, 0.2); }
body.theme-dark .trust-strip-icon.pink { background: rgba(219, 39, 119, 0.2); }

.trust-strip-title {
    font-size: 0.985rem;
    font-weight: 700;
    color: var(--theme-text-dark);
}
body.theme-dark .trust-strip-title {
    color: #f8fafc;
}
.trust-strip-desc {
    font-size: 0.825rem;
    color: var(--theme-text-muted);
    line-height: 1.45;
}
body.theme-dark .trust-strip-desc {
    color: #94a3b8;
}

/* Tool item icon in category list */
.tool-item-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
body.theme-dark .tool-item-icon-box {
    background: #0f172a;
    border-color: #334155;
}
.category-tool-item:hover .tool-item-icon-box {
    transform: scale(1.12);
    background: #ffffff;
    border-color: #fed7aa;
}
body.theme-dark .category-tool-item:hover .tool-item-icon-box {
    background: #1e293b;
    border-color: rgba(249, 115, 22, 0.4);
}
.category-tool-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Responsive tweaks for Popular Tools, Categories and Trust Strip */
@media (max-width: 991.98px) {
    .popular-tool-card {
        padding: 12px 14px;
    }
    .trust-features-card {
        padding: 24px 20px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.18rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.01em !important;
    }
    .section-subtitle {
        font-size: 0.825rem !important;
        line-height: 1.4 !important;
    }
    .section-icon-badge {
        width: 24px !important;
        height: 24px !important;
    }
    .section-icon-badge.category-badge svg {
        width: 18px !important;
        height: 18px !important;
    }
    .popular-tool-card {
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }
    .popular-tool-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    .popular-tool-icon-wrapper svg,
    .popular-tool-icon-wrapper .tool-icon-img {
        width: 20px !important;
        height: 20px !important;
    }
    .popular-tool-title {
        font-size: 0.885rem !important;
    }
    .popular-tool-desc {
        font-size: 0.725rem !important;
    }
    .category-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }
    .category-icon-box {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }
    .category-icon-box svg {
        width: 16px !important;
        height: 16px !important;
    }
    .category-title {
        font-size: 0.925rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
    }
    .category-count-badge {
        font-size: 0.65rem !important;
        padding: 2px 7px !important;
    }
    .category-tools-list {
        margin-top: 10px !important;
        padding-top: 10px !important;
        gap: 6px !important;
    }
    .category-tool-item {
        padding: 4px 6px !important;
        font-size: 0.825rem !important;
    }
    .category-tool-item .tool-name {
        min-width: 0 !important;
    }
    .tool-item-icon-box {
        width: 24px !important;
        height: 24px !important;
        border-radius: 6px !important;
    }
    .category-tool-icon {
        width: 16px !important;
        height: 16px !important;
    }
    .category-view-all {
        font-size: 0.825rem !important;
    }
    .trust-features-card {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }
    .trust-strip-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    .trust-strip-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .trust-strip-title {
        font-size: 0.9rem !important;
    }
    .trust-strip-desc {
        font-size: 0.775rem !important;
    }
}
/* ==========================================================================
   MODERN EYE-CATCHING FOOTER
   ========================================================================== */
.modern-footer {
    background: #090d16 !important;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

/* Ambient Radial Glow on Footer Top */
.footer-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 180px;
    background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Footer Widget Titles */
.footer-widget h3,
.footer-widget-title,
.footer-widget .text-primary {
    color: #f8fafc !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    margin-bottom: 1.15rem !important;
    position: relative;
    display: inline-block;
}

.footer-widget h3::after,
.footer-widget-title::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--theme-orange);
    border-radius: 9999px;
    margin-top: 6px;
}

/* Footer Widget Text */
.footer-about-text,
.footer-widget p {
    color: #94a3b8;
    font-size: 0.885rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Footer Lists (Remove all ugly browser bullets and nesting) */
.footer-widget ul,
.footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-widget ul li,
.footer-links-list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.875rem;
}

/* Footer Links */
.footer-widget a,
.footer-links-list a,
.footer-widget ul li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    padding: 3px 0;
    font-size: 0.885rem;
    font-weight: 400;
}

.footer-widget a:hover,
.footer-links-list a:hover,
.footer-widget ul li a:hover {
    color: var(--theme-orange) !important;
    transform: translateX(4px);
}

/* Social Media Buttons */
.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1 !important;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.footer-social-btn:hover {
    background: var(--theme-orange) !important;
    border-color: var(--theme-orange) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright-text {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-copyright-text strong {
    color: #cbd5e1;
}

/* Back to Top Button */
.btn-back-to-top {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-to-top:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-2px);
}
/* Footer Brand Box */
.footer-brand-box {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
}
.footer-brand-box .modern-brand {
    display: inline-flex !important;
    align-items: center !important;
}
.footer-brand-widget .footer-widget-title,
.footer-brand-widget h3 {
    display: block !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

/* ==========================================================================
   TOOL DETAILS PAGE REDESIGN (SaaS Standard)
   ========================================================================== */

/* ==========================================================================
   TOOL DETAILS PAGE (Clean, Borderless & Mobile First)
   ========================================================================== */

/* 1. Seamless Tool Header (No Box, No Border) */
.modern-tool-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0 1.25rem;
    position: relative;
}

body.theme-dark .modern-tool-header {
    background: #090d16;
    border-bottom-color: #1e293b;
}

/* Breadcrumbs (Mobile Friendly Single Line) */
.tool-breadcrumb-wrapper {
    position: relative;
    z-index: 5;
    margin-bottom: 0.5rem;
}

.tool-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    padding: 0 0 2px 0;
    margin: 0;
    font-size: 0.82rem;
    scrollbar-width: none; /* Firefox */
}

.tool-breadcrumb::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tool-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.tool-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

body.theme-dark .tool-breadcrumb-link {
    color: #94a3b8;
}

.tool-breadcrumb-link:hover {
    color: var(--theme-orange, #ea580c);
}

.tool-breadcrumb-sep {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
}

body.theme-dark .tool-breadcrumb-sep {
    color: #475569;
}

.tool-breadcrumb-item.active span {
    color: #0f172a;
    font-weight: 600;
}

body.theme-dark .tool-breadcrumb-item.active span {
    color: #ffffff;
}

/* Clean Header Content Layout (No Box, No Outer Border) */
.tool-hero-clean-layout {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.tool-hero-icon-badge {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
}

body.theme-dark .tool-hero-icon-badge {
    background: #111827;
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.18);
}

.tool-hero-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tool-category-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 9999px;
    padding: 2px 9px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.tool-category-badge-pill:hover {
    background: #ffedd5;
    color: #c2410c;
}

body.theme-dark .tool-category-badge-pill {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.35);
    color: #fb923c;
}

.tool-category-badge-pill .pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ea580c;
}

.tool-hero-title {
    font-size: 1.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

body.theme-dark .tool-hero-title {
    color: #ffffff;
}

.tool-hero-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 800px;
}

body.theme-dark .tool-hero-subtitle {
    color: #94a3b8;
}

/* Mobile responsive refinements */
@media (max-width: 768px) {
    .modern-tool-header {
        padding: 1rem 0 0.85rem;
    }
    .tool-hero-icon-badge {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
    }
    .tool-hero-icon-img {
        width: 26px;
        height: 26px;
    }
    .tool-hero-title {
        font-size: 1.45rem;
    }
    .tool-hero-subtitle {
        font-size: 0.86rem;
        line-height: 1.45;
    }
}

/* 2. Tool Workspace Container */
.modern-tool-box-container {
    margin-bottom: 2rem;
}

.modern-tool-workspace-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 8px -2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

body.theme-dark .modern-tool-workspace-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
}

.tool-workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.6rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

body.theme-dark .tool-workspace-topbar {
    background: #131d31;
    border-bottom-color: #1e293b;
}

.workspace-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    display: inline-block;
}

.workspace-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    white-space: nowrap;
}

body.theme-dark .workspace-label {
    color: #94a3b8;
}

.btn-workspace-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .tool-workspace-topbar {
        padding: 0.7rem 0.95rem;
    }
    .workspace-label {
        font-size: 0.74rem;
    }
    .btn-workspace-action {
        padding: 4px 9px;
        font-size: 0.74rem;
        gap: 4px;
    }
}

body.theme-dark .btn-workspace-action {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.btn-workspace-action:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-1px);
}

.btn-workspace-action.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.tool-workspace-body {
    padding: 2rem;
}

@media (max-width: 768px) {
    .tool-workspace-body {
        padding: 1.25rem 1rem;
    }
    .tool-hero-title {
        font-size: 1.6rem;
    }
    .tool-header-action-box {
        align-items: flex-start;
        margin-top: 0.5rem;
    }
}

/* Tool Input & Form Styling inside workspace */
.tool-workspace-body .form-control,
.tool-workspace-body textarea,
.tool-workspace-body select {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
    line-height: 1.55 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.tool-workspace-body .form-control:focus,
.tool-workspace-body textarea:focus,
.tool-workspace-body select:focus {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3.5px rgba(255, 107, 53, 0.16) !important;
    outline: none !important;
}

body.theme-dark .tool-workspace-body .form-control,
body.theme-dark .tool-workspace-body textarea,
body.theme-dark .tool-workspace-body select {
    background: #0b1120 !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

body.theme-dark .tool-workspace-body .form-control:focus,
body.theme-dark .tool-workspace-body textarea:focus,
body.theme-dark .tool-workspace-body select:focus {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3.5px rgba(255, 107, 53, 0.25) !important;
}

/* Primary Tool Action Buttons (Count, Convert, Submit) */
.tool-workspace-body .btn-info,
.tool-workspace-body .btn-primary,
.tool-workspace-body button[type="submit"] {
    background: linear-gradient(135deg, #ff6b35 0%, #ea580c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 0.7rem 1.6rem !important;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3) !important;
    transition: all 0.2s ease !important;
}

.tool-workspace-body .btn-info:hover,
.tool-workspace-body .btn-primary:hover,
.tool-workspace-body button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.42) !important;
    color: #ffffff !important;
}

/* Secondary Buttons (Sample, Reset) */
.tool-workspace-body .btn-lime {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.7rem 1.4rem !important;
    transition: all 0.2s ease !important;
}

.tool-workspace-body .btn-lime:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
}

body.theme-dark .tool-workspace-body .btn-lime {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-dark .tool-workspace-body .btn-lime:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

.tool-workspace-body .btn-warning {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.7rem 1.4rem !important;
    transition: all 0.2s ease !important;
}

.tool-workspace-body .btn-warning:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    transform: translateY(-2px) !important;
}

body.theme-dark .tool-workspace-body .btn-warning {
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.theme-dark .tool-workspace-body .btn-warning:hover {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

/* Stat Chips (Words, Characters, etc.) */
.tool-workspace-body .form-group .btn:not(.btn-info):not(.btn-lime):not(.btn-warning):not(.btn-primary):not([type="submit"]):not(.btn-icon) {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    cursor: default !important;
    margin-right: 6px;
    margin-bottom: 6px;
}

body.theme-dark .tool-workspace-body .form-group .btn:not(.btn-info):not(.btn-lime):not(.btn-warning):not(.btn-primary):not([type="submit"]):not(.btn-icon) {
    background: #131d31 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

/* 3. Modern Related Tools Grid */
.modern-related-tools-section {
    position: relative;
}

.modern-related-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 9999px;
}

.modern-related-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
}

body.theme-dark .modern-related-title {
    color: #ffffff;
}

.modern-related-subtitle {
    font-size: 0.88rem;
}

.modern-related-tool-card {
    display: block;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    transition: all 0.25s ease;
    height: 100%;
}

body.theme-dark .modern-related-tool-card {
    background: #0f172a;
    border-color: #1e293b;
}

.modern-related-tool-card:hover {
    transform: translateY(-3px);
    border-color: #ff6b35;
    box-shadow: 0 12px 24px -6px rgba(255, 107, 53, 0.15);
}

.related-tool-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-tool-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
}

body.theme-dark .related-tool-icon-box {
    background: #1e293b;
    border-color: #334155;
}

.related-tool-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.related-tool-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
}

body.theme-dark .related-tool-name {
    color: #f1f5f9;
}

.modern-related-tool-card:hover .related-tool-name {
    color: #ff6b35;
}

.related-tool-action {
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    transition: color 0.2s ease;
}

.modern-related-tool-card:hover .related-tool-action {
    color: #ff6b35;
}

.modern-related-tool-card:hover .related-tool-action svg {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

.related-tool-new-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 9999px;
}

/* 4. Modern Content Box & SEO Prose */
.modern-tool-content-card .card {
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

body.theme-dark .modern-tool-content-card .card {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.modern-content-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.6rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

body.theme-dark .modern-content-box-header {
    background: #131d31;
    border-bottom-color: #1e293b;
}

.content-header-badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-content-box-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

body.theme-dark .modern-content-box-title {
    color: #ffffff;
}

.modern-content-box-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 3px 10px;
}

body.theme-dark .modern-content-box-tag {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.modern-tool-prose {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #334155;
}

body.theme-dark .modern-tool-prose {
    color: #cbd5e1;
}

.modern-tool-prose h2,
.modern-tool-prose h3,
.modern-tool-prose h4 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.85rem;
}

body.theme-dark .modern-tool-prose h2,
body.theme-dark .modern-tool-prose h3,
body.theme-dark .modern-tool-prose h4 {
    color: #ffffff;
}

.modern-tool-prose h2::before,
.modern-tool-prose h3::before,
.modern-tool-prose h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3.5px;
    border-radius: 9999px;
    background: #ff6b35;
}

/* Modern Social Share Buttons */
.modern-social-share-wrap {
    border-top: 1px solid #e2e8f0 !important;
}

body.theme-dark .modern-social-share-wrap {
    border-top-color: #1e293b !important;
}

.modern-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 9999px;
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
}

.modern-share-btn.share-facebook {
    background: #1877f2;
    color: #ffffff !important;
}

.modern-share-btn.share-twitter {
    background: #0f1419;
    color: #ffffff !important;
    border: 1px solid #334155;
}

.modern-share-btn.share-linkedin {
    background: #0a66c2;
    color: #ffffff !important;
}

.modern-share-btn.share-reddit {
    background: #ff4500;
    color: #ffffff !important;
}

.modern-share-btn.share-pinterest {
    background: #bd081c;
    color: #ffffff !important;
}

.modern-share-btn.share-copy {
    background: #ff6b35;
    color: #ffffff !important;
    cursor: pointer;
}

.modern-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    color: #ffffff !important;
}

/* 5. Modern Sidebar Widgets */
.modern-sidebar-widget {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

body.theme-dark .modern-sidebar-widget {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.modern-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

body.theme-dark .modern-sidebar-header {
    background: #131d31;
    border-bottom-color: #1e293b;
}

.sidebar-header-accent {
    width: 4px;
    height: 16px;
    border-radius: 9999px;
    background: #ff6b35;
}

.sidebar-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
    margin: 0;
}

body.theme-dark .sidebar-header-title {
    color: #f8fafc;
}

.modern-sidebar-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.theme-dark .modern-sidebar-tool-link {
    border-bottom-color: #1e293b;
    color: #cbd5e1;
}

.modern-sidebar-tool-link:hover {
    background: rgba(255, 107, 53, 0.06);
    color: #ff6b35;
    padding-left: 1.45rem;
}

.sidebar-tool-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.modern-sidebar-tool-link:hover .sidebar-tool-dot {
    background: #ff6b35;
}

.sidebar-tool-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.modern-sidebar-tool-link:hover .sidebar-tool-arrow {
    transform: translateX(3px);
    color: #ff6b35;
}

.modern-sidebar-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none !important;
    transition: background 0.2s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.theme-dark .modern-sidebar-post-item {
    border-bottom-color: #1e293b;
}

.modern-sidebar-post-item:last-child {
    border-bottom: none;
}

.modern-sidebar-post-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.sidebar-post-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-post-info {
    flex: 1 1 auto;
    min-width: 0 !important;
    overflow: hidden;
}

.sidebar-post-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: color 0.2s ease;
}

body.theme-dark .sidebar-post-title {
    color: #f1f5f9;
}

.modern-sidebar-post-item:hover .sidebar-post-title {
    color: #ff6b35;
}

.sidebar-post-date {
    font-size: 0.74rem;
    color: #94a3b8;
    display: block;
    line-height: 1.2;
}

/* Tool Workspace Resets & Special Controls */
.tool-workspace-body > .card-body {
    padding: 0 !important;
}

.tool-workspace-body .btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #475569;
    transition: all 0.2s ease;
}

.tool-workspace-body .btn-icon:hover {
    transform: scale(1.06);
    border-color: #ff6b35;
    color: #ff6b35;
}

body.theme-dark .tool-workspace-body .btn-icon {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.theme-dark .tool-workspace-body .btn-icon:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

/* Image & PDF Tool Dropzones */
.tool-workspace-body .dropzone {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    padding: 2.5rem 1.5rem !important;
    transition: all 0.25s ease !important;
}

.tool-workspace-body .dropzone:hover {
    border-color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.03) !important;
}

body.theme-dark .tool-workspace-body .dropzone {
    background: #0b1120 !important;
    border-color: #334155 !important;
}

body.theme-dark .tool-workspace-body .dropzone:hover {
    border-color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.06) !important;
}

.tool-workspace-body .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 0.65rem 1.5rem !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.tool-workspace-body .btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
}

.tool-workspace-body .input-group-text {
    border-radius: 0 12px 12px 0 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-left: none !important;
    background: #f8fafc !important;
}

body.theme-dark .tool-workspace-body .input-group-text {
    background: #0b1120 !important;
    border-color: #1e293b !important;
}

/* ==========================================================================
   MODERN BLOG & SINGLE POST STYLING
   ========================================================================== */

/* 1. Blog Header & Hero */
.modern-blog-header,
.modern-post-header {
    background: transparent !important;
    border: none !important;
    padding: 1.5rem 0 0.5rem 0;
}

.blog-hero-clean-layout {
    margin-bottom: 0.5rem;
}

.blog-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.2;
}

body.theme-dark .blog-hero-title {
    color: #f8fafc;
}

.blog-hero-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 680px;
    line-height: 1.5;
}

body.theme-dark .blog-hero-subtitle {
    color: #94a3b8;
}

/* Post Hero Specific */
.post-hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.25;
}

body.theme-dark .post-hero-title {
    color: #f8fafc;
}

.post-hero-lead {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 780px;
}

body.theme-dark .post-hero-lead {
    color: #94a3b8;
}

.post-meta-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 9999px;
}

body.theme-dark .post-meta-chip {
    background: #1e293b;
    color: #94a3b8;
}

/* 2. Modern Blog Cards Grid */
.modern-blog-container {
    padding-bottom: 2rem;
}

.modern-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.theme-dark .modern-blog-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.modern-blog-card:hover {
    transform: translateY(-5px);
    border-color: #fed7aa;
    box-shadow: 0 16px 32px -8px rgba(234, 88, 12, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

body.theme-dark .modern-blog-card:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
}

/* Thumbnail */
.blog-card-thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

body.theme-dark .blog-card-thumb-wrap {
    background: #1e293b;
}

.blog-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-blog-card:hover .blog-card-thumb-img {
    transform: scale(1.05);
}

/* Floating Date Badge */
.blog-card-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Card Content */
.blog-card-content {
    padding: 1.35rem 1.35rem 1.15rem 1.35rem;
}

.blog-card-badge-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ea580c;
    background: #ffedd5;
    padding: 2px 9px;
    border-radius: 9999px;
}

body.theme-dark .blog-card-badge-pill {
    background: rgba(234, 88, 12, 0.18);
    color: #fb923c;
}

.blog-card-read-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
}

.blog-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    letter-spacing: -0.015em;
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

body.theme-dark .blog-card-title a {
    color: #f8fafc;
}

.blog-card-title a:hover {
    color: #ea580c !important;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.theme-dark .blog-card-excerpt {
    color: #94a3b8;
}

.blog-card-action-bar {
    border-top: 1px solid #f1f5f9;
}

body.theme-dark .blog-card-action-bar {
    border-top-color: #1e293b;
}

.blog-card-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ea580c;
    text-decoration: none !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.blog-card-read-link:hover {
    color: #c2410c;
    transform: translateX(3px);
}

.blog-link-arrow {
    transition: transform 0.2s ease;
}

.blog-card-read-link:hover .blog-link-arrow {
    transform: translateX(3px);
}

/* Empty State */
.modern-blog-empty-state {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 1.5rem;
}

body.theme-dark .modern-blog-empty-state {
    background: #0f172a;
    border-color: #1e293b;
}

.empty-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8fafc;
}

body.theme-dark .empty-icon-wrap {
    background: #1e293b;
}

/* 3. Modern Single Post View */
.modern-post-content-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modern-post-content-card > .card {
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
}

body.theme-dark .modern-post-content-card > .card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.modern-post-content-card .card-body {
    padding: 2rem !important;
}

.modern-post-featured-wrapper {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f5f9;
}

.modern-post-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* Modern Article Typography & Prose */
.modern-tool-prose h2,
.modern-post-content-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

body.theme-dark .modern-tool-prose h2,
body.theme-dark .modern-post-content-card h2 {
    color: #f8fafc;
    border-bottom-color: #1e293b;
}

.modern-tool-prose h3,
.modern-post-content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

body.theme-dark .modern-tool-prose h3,
body.theme-dark .modern-post-content-card h3 {
    color: #f1f5f9;
}

.modern-tool-prose p,
.modern-post-content-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.25rem;
}

body.theme-dark .modern-tool-prose p,
body.theme-dark .modern-post-content-card p {
    color: #cbd5e1;
}

.modern-tool-prose ul,
.modern-tool-prose ol,
.modern-post-content-card ul,
.modern-post-content-card ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #334155;
    line-height: 1.7;
}

body.theme-dark .modern-tool-prose ul,
body.theme-dark .modern-tool-prose ol,
body.theme-dark .modern-post-content-card ul,
body.theme-dark .modern-post-content-card ol {
    color: #cbd5e1;
}

.modern-tool-prose li,
.modern-post-content-card li {
    margin-bottom: 0.5rem;
}

.modern-tool-prose blockquote,
.modern-post-content-card blockquote {
    border-left: 4px solid #ea580c;
    background: #fff7ed;
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
    font-style: italic;
    color: #475569;
    margin: 1.5rem 0;
}

body.theme-dark .modern-tool-prose blockquote,
body.theme-dark .modern-post-content-card blockquote {
    background: rgba(234, 88, 12, 0.08);
    border-left-color: #ea580c;
    color: #cbd5e1;
}

/* 4. Modern Author Box */
.modern-author-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

body.theme-dark .modern-author-box {
    background: #131d31;
    border-color: #1e293b;
}

.modern-author-avatar-img {
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.theme-dark .modern-author-avatar-img {
    border-color: #1e293b;
}

.modern-author-name {
    font-size: 1.05rem;
    color: #0f172a;
}

body.theme-dark .modern-author-name {
    color: #f8fafc;
}

.modern-author-badge {
    background: #ffedd5 !important;
    color: #ea580c !important;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

body.theme-dark .modern-author-badge {
    background: rgba(234, 88, 12, 0.18) !important;
    color: #fb923c !important;
}

.modern-author-bio {
    line-height: 1.55;
}

.modern-author-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.modern-author-social-link:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    transform: translateY(-2px);
}

body.theme-dark .modern-author-social-link {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.theme-dark .modern-author-social-link:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

/* 5. Mobile Responsiveness */
@media (max-width: 767.98px) {
    .blog-hero-title,
    .post-hero-title {
        font-size: 1.75rem;
    }

    .modern-post-content-card .card-body {
        padding: 1.25rem !important;
    }

    .blog-card-content {
        padding: 1.1rem;
    }

    .modern-author-box {
        padding: 1.25rem !important;
    }
}

/* ==========================================================================
   MODERN CMS PAGE (ABOUT, PRIVACY, TERMS, CONTACT, REPORT) STYLING
   ========================================================================== */

/* 1. Page Header & Hero */
.modern-page-header {
    background: transparent !important;
    border: none !important;
    padding: 1.5rem 0 0.5rem 0;
}

.page-hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.25;
}

body.theme-dark .page-hero-title {
    color: #f8fafc;
}

.page-hero-lead {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 780px;
}

body.theme-dark .page-hero-lead {
    color: #94a3b8;
}

/* 2. CMS Page Content Card */
.modern-cms-page-content-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modern-cms-page-content-card > .card {
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
}

body.theme-dark .modern-cms-page-content-card > .card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.modern-cms-page-content-card .card-body {
    padding: 2.5rem !important;
}

/* 3. Page Prose Typography */
.modern-page-prose {
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
}

body.theme-dark .modern-page-prose {
    color: #cbd5e1;
}

.modern-page-prose h1,
.modern-page-prose h2 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

body.theme-dark .modern-page-prose h1,
body.theme-dark .modern-page-prose h2 {
    color: #f8fafc;
    border-bottom-color: #1e293b;
}

.modern-page-prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

body.theme-dark .modern-page-prose h3 {
    color: #f1f5f9;
}

.modern-page-prose h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

body.theme-dark .modern-page-prose h4 {
    color: #e2e8f0;
}

.modern-page-prose p {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.25rem;
}

body.theme-dark .modern-page-prose p {
    color: #cbd5e1;
}

.modern-page-prose strong,
.modern-page-prose b {
    font-weight: 700;
    color: #0f172a;
}

body.theme-dark .modern-page-prose strong,
body.theme-dark .modern-page-prose b {
    color: #f8fafc;
}

.modern-page-prose a {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.modern-page-prose a:hover {
    color: #c2410c;
    text-decoration: underline;
}

body.theme-dark .modern-page-prose a {
    color: #fb923c;
}

body.theme-dark .modern-page-prose a:hover {
    color: #ffedd5;
}

.modern-page-prose ul,
.modern-page-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #334155;
    line-height: 1.7;
}

body.theme-dark .modern-page-prose ul,
body.theme-dark .modern-page-prose ol {
    color: #cbd5e1;
}

.modern-page-prose li {
    margin-bottom: 0.5rem;
}

.modern-page-prose table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

body.theme-dark .modern-page-prose table {
    border-color: #334155;
}

.modern-page-prose th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

body.theme-dark .modern-page-prose th {
    background: #1e293b;
    color: #f8fafc;
    border-bottom-color: #334155;
}

.modern-page-prose td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: #475569;
}

body.theme-dark .modern-page-prose td {
    border-bottom-color: #1e293b;
    color: #cbd5e1;
}

.modern-page-prose tr:last-child td {
    border-bottom: none;
}

/* 4. Modern Form Controls (Contact & Report) */
.modern-styled-form {
    max-width: 760px;
}

.modern-form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

body.theme-dark .modern-form-label {
    color: #cbd5e1;
}

.modern-form-control {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
}

body.theme-dark .modern-form-control {
    background: #0b1120 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.modern-form-control:focus {
    background: #ffffff !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12) !important;
    outline: none !important;
}

body.theme-dark .modern-form-control:focus {
    background: #0f172a !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2) !important;
}

.modern-form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 0.9rem;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 9999px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-modern-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.38) !important;
    color: #ffffff !important;
}

.btn-modern-primary:active {
    transform: translateY(0) !important;
}

@media (max-width: 767.98px) {
    .page-hero-title {
        font-size: 1.85rem;
    }

    .modern-cms-page-content-card .card-body {
        padding: 1.35rem 1.15rem !important;
    }
}

/* ==========================================================================
   MODERN AUTH PAGES (Login, Register, Forgot Password, Reset Password)
   ========================================================================== */
.modern-auth-page-content {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0 !important;
    position: relative;
    overflow: hidden;
}

.modern-auth-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    max-width: 95vw;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.4) 0%, rgba(255, 237, 213, 0.15) 45%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

body.theme-dark .modern-auth-glow {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.05) 45%, rgba(15, 23, 42, 0) 70%);
}

.modern-auth-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.modern-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--theme-orange, #f97316);
    border-radius: 22px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    padding: 2.25rem 2rem;
    transition: all 0.25s ease;
}

body.theme-dark .modern-auth-card {
    background: #1e293b;
    border-color: #334155;
    border-top-color: var(--theme-orange, #f97316);
    box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.6);
}

.modern-auth-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.18);
    transition: transform 0.2s ease;
}

.modern-auth-badge:hover {
    transform: scale(1.06);
}

body.theme-dark .modern-auth-badge {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.35);
    color: #fb923c;
}

.modern-auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--theme-text-dark, #0f172a);
    margin-bottom: 0.35rem;
}

body.theme-dark .modern-auth-title {
    color: #f8fafc;
}

.modern-auth-subtitle {
    font-size: 0.885rem;
    color: #64748b;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

body.theme-dark .modern-auth-subtitle {
    color: #94a3b8;
}

/* Form Group & Labels */
.modern-form-group {
    margin-bottom: 1.15rem;
}

.modern-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

body.theme-dark .modern-form-label {
    color: #cbd5e1;
}

.modern-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.modern-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 3;
}

.modern-form-input {
    width: 100%;
    height: 46px;
    padding: 0.5rem 1rem 0.5rem 2.65rem;
    font-size: 0.925rem;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.theme-dark .modern-form-input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.modern-form-input::placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
}

.modern-form-input:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3.5px rgba(249, 115, 22, 0.18) !important;
}

.modern-input-wrapper:focus-within .modern-input-icon {
    color: #ea580c;
}

/* Password Toggle */
.modern-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    z-index: 3;
}

.modern-pass-toggle:hover {
    color: #ea580c;
    background: rgba(249, 115, 22, 0.08);
}

.modern-forgot-link {
    font-size: 0.825rem;
    font-weight: 600;
    color: #ea580c;
    text-decoration: none;
    transition: color 0.15s ease;
}

.modern-forgot-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

/* Checkbox */
.modern-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.modern-checkbox-input {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid #cbd5e1;
    accent-color: #f97316;
    margin-right: 0.55rem;
    cursor: pointer;
}

.modern-checkbox-text {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

body.theme-dark .modern-checkbox-text {
    color: #94a3b8;
}

/* Submit Button */
.btn-modern-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
}

.btn-modern-auth:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
    transform: translateY(-1px);
}

.btn-modern-auth:active {
    transform: translateY(0);
}

.btn-modern-auth .auth-btn-arrow {
    transition: transform 0.2s ease;
}

.btn-modern-auth:hover .auth-btn-arrow {
    transform: translateX(3px);
}

/* Divider */
.modern-auth-divider {
    position: relative;
    text-align: center;
    margin: 1.65rem 0 1.25rem 0;
}

.modern-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

body.theme-dark .modern-auth-divider::before {
    background: #334155;
}

.modern-auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 0.85rem;
    font-size: 0.775rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

body.theme-dark .modern-auth-divider span {
    background: #1e293b;
    color: #64748b;
}

/* Social Buttons */
.btn-modern-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155 !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.theme-dark .btn-modern-social {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc !important;
}

.btn-modern-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

body.theme-dark .btn-modern-social:hover {
    background: #1e293b;
    border-color: #475569;
    color: #ffffff !important;
}

/* Auth Card Footer */
.modern-auth-footer {
    margin-top: 1.65rem;
    font-size: 0.885rem;
    color: #64748b;
}

body.theme-dark .modern-auth-footer {
    color: #94a3b8;
}

.modern-auth-link {
    font-weight: 600;
    color: #ea580c;
    text-decoration: none;
    transition: color 0.15s ease;
}

.modern-auth-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

/* Universal Fallback Support for Tabler Auth (Register, Forgot, Reset) */
#login-page, #register-page, #reset-password-page {
    width: 100%;
}

#login-page .card.card-md,
#register-page .card.card-md,
#reset-password-page .card.card-md {
    border-radius: 22px !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid var(--theme-orange, #f97316) !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08) !important;
    background: #ffffff !important;
    padding: 1.5rem !important;
}

body.theme-dark #login-page .card.card-md,
body.theme-dark #register-page .card.card-md,
body.theme-dark #reset-password-page .card.card-md {
    background: #1e293b !important;
    border-color: #334155 !important;
    border-top-color: var(--theme-orange, #f97316) !important;
    box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.6) !important;
}

#login-page .btn-primary,
#register-page .btn-primary,
#reset-password-page .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
    font-weight: 600 !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
}

#login-page .btn-primary:hover,
#register-page .btn-primary:hover,
#reset-password-page .btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* Mobile Responsive */
@media (max-width: 575.98px) {
    .modern-auth-page-content {
        padding: 1.5rem 0 !important;
        min-height: calc(100vh - 180px);
    }

    .modern-auth-card {
        padding: 1.75rem 1.25rem !important;
        border-radius: 18px !important;
        margin: 0 0.5rem;
    }

    .modern-auth-title {
        font-size: 1.4rem !important;
    }

    .modern-auth-badge {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 0.85rem !important;
    }
}