/* ============================================================
   OmniToolkit — Stylesheet (merged)
   Includes: fonts, theme variables, base, components, RTL, pages
   ============================================================ */

/* ============================================================
   1) FONT FACES — INTER (Latin)
   ============================================================ */
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   2) FONT FACES — VAZIR (Persian/Arabic)
   ============================================================ */
@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"),
         url("../fonts/Vazirmatn-Regular.woff") format("woff"),
         url("../fonts/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"),
         url("../fonts/Vazirmatn-Medium.woff") format("woff"),
         url("../fonts/Vazirmatn-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"),
         url("../fonts/Vazirmatn-SemiBold.woff") format("woff"),
         url("../fonts/Vazirmatn-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"),
         url("../fonts/Vazirmatn-Bold.woff") format("woff"),
         url("../fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

/* ============================================================
   3) CSS VARIABLES — LIGHT (default)
   ============================================================ */
:root {
    --font-primary: "Inter", system-ui, -apple-system, sans-serif;
    --font-fa: "Vazir", "Inter", system-ui, sans-serif;

    /* Colors - Light */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.92);
    --bg-input: #f8fafc;
    --bg-hover: #f1f5f9;
    --bg-active: rgba(37, 99, 235, 0.08);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --accent-glow: rgba(37, 99, 235, 0.15);

    --green: #10b981;
    --green-light: #ecfdf5;
    --amber: #f59e0b;
    --amber-light: #fffbeb;
    --red: #ef4444;
    --red-light: #fef2f2;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);

    /* Bootstrap override (bg-secondary class) */
    --bs-secondary-rgb: 248, 249, 250;
}

/* ============================================================
   4) CSS VARIABLES — DARK
   ============================================================ */
[data-theme="dark"] {
    --bg-primary: #0a0a0d;
    --bg-secondary: #141418;
    --bg-tertiary: #1a1a20;
    --bg-card: #15151a;
    --bg-navbar: rgba(10, 10, 13, 0.96);
    --bg-input: #1a1a20;
    --bg-hover: #1f1f26;
    --bg-active: rgba(79, 140, 255, 0.2);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-tertiary: #5c5c6e;
    --text-inverse: #0a0a0d;

    --border-color: #262630;
    --border-light: #1f1f26;

    --accent: #4f8cff;
    --accent-hover: #6ba0ff;
    --accent-light: #111827;
    --accent-glow: rgba(79, 140, 255, 0.25);

    --green-light: #0a2218;
    --amber-light: #221a0a;
    --red-light: #220a0a;
    --purple-light: #150a22;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -2px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.9);

    --bs-secondary-rgb: 20, 20, 24;
}

/* ============================================================
   5) BASE / RESET
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   6) FONT SWITCHING — Persian/Arabic (fixed)
   ============================================================ */
:root:lang(fa) body,
:root:lang(fa) body *,
:root:lang(ar) body,
:root:lang(ar) body *,
html[lang="fa"] body,
html[lang="fa"] body *,
html[lang="ar"] body,
html[lang="ar"] body *,
body.lang-fa,
body.lang-fa *,
body[lang="fa"],
body[lang="fa"] *,
body[lang="ar"],
body[lang="ar"] * {
    font-family: "Vazir", "Inter", system-ui, sans-serif !important;
}

/* Preserve Bootstrap Icons */
:root:lang(fa) body .bi,
:root:lang(fa) body [class^="bi-"],
:root:lang(fa) body [class*=" bi-"],
:root:lang(ar) body .bi,
:root:lang(ar) body [class^="bi-"],
:root:lang(ar) body [class*=" bi-"],
html[lang="fa"] body .bi,
html[lang="fa"] body [class^="bi-"],
html[lang="fa"] body [class*=" bi-"],
html[lang="ar"] body .bi,
html[lang="ar"] body [class^="bi-"],
html[lang="ar"] body [class*=" bi-"],
body.lang-fa .bi,
body.lang-fa [class^="bi-"],
body.lang-fa [class*=" bi-"],
body[lang="fa"] .bi,
body[lang="fa"] [class^="bi-"],
body[lang="fa"] [class*=" bi-"],
body[lang="ar"] .bi,
body[lang="ar"] [class^="bi-"],
body[lang="ar"] [class*=" bi-"] {
    font-family: "bootstrap-icons" !important;
}

/* RTL direction */
:root:lang(fa) body,
:root:lang(ar) body,
html[lang="fa"] body,
html[lang="ar"] body,
body.lang-fa,
body[lang="fa"],
body[lang="ar"] {
    direction: rtl;
    text-align: right;
}

/* RTL adjustments */
body.lang-fa .navbar,
body[lang="fa"] .navbar,
body[lang="ar"] .navbar { direction: rtl; }

body.lang-fa .dropdown-menu,
body[lang="fa"] .dropdown-menu,
body[lang="ar"] .dropdown-menu { text-align: right; }

body.lang-fa .ltr-content,
body[lang="fa"] .ltr-content,
body[lang="ar"] .ltr-content {
    direction: ltr;
    text-align: left;
}

body.lang-fa .text-start,
body[lang="fa"] .text-start,
body[lang="ar"] .text-start { text-align: right !important; }

body.lang-fa .text-end,
body[lang="fa"] .text-end,
body[lang="ar"] .text-end { text-align: left !important; }

body.lang-fa .me-auto,
body[lang="fa"] .me-auto,
body[lang="ar"] .me-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body.lang-fa .ms-auto,
body[lang="fa"] .ms-auto,
body[lang="ar"] .ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

body.lang-fa .me-2,
body[lang="fa"] .me-2,
body[lang="ar"] .me-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

body.lang-fa .ms-2,
body[lang="fa"] .ms-2,
body[lang="ar"] .ms-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

body.lang-fa .nav-link.btn-accent,
body[lang="fa"] .nav-link.btn-accent,
body[lang="ar"] .nav-link.btn-accent {
    margin-left: 0;
    margin-right: 0.5rem;
}

body.lang-fa .dropdown-item .lang-check,
body[lang="fa"] .dropdown-item .lang-check,
body[lang="ar"] .dropdown-item .lang-check {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================================
   7) TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

p { color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
small, .text-muted { color: var(--text-tertiary); }

/* ============================================================
   8) UTILITY CLASSES
   ============================================================ */
.section-padding { padding: 5rem 0; }
@media (max-width: 768px) { .section-padding { padding: 3rem 0; } }

.section-header { margin-bottom: 3rem; }
.section-header .badge-accent {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.bg-secondary { background-color: var(--bg-secondary); }
.bg-accent-light { background-color: var(--accent-light); }
.text-accent { color: var(--accent) !important; }

.bg-purple-light { background-color: #e9d5ff; }
.text-purple { color: #7c3aed; }

[data-theme="dark"] .bg-accent-light { background-color: #1e293b !important; }

.fs-0-7 { font-size: 0.7rem; }
.fs-0-9 { font-size: 0.9rem; }

/* ============================================================
   9) ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes subtlePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}
@keyframes loaderBar {
    0%   { transform: scaleX(0); }
    50%  { transform: scaleX(0.7); }
    100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes privacyFadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Page loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    animation: loaderBar 1.5s ease-in-out infinite;
    transform-origin: left;
}

/* ============================================================
   10) NAVBAR
   ============================================================ */
.glass-nav {
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar {
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    z-index: 1030;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.03em;
}
.navbar-brand .brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
    vertical-align: middle;
    position: relative;
    top: -4px;
}
.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    background: var(--bg-hover);
}
.nav-link.btn-accent {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 0.5rem;
}
.nav-link.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    margin-left: 0.5rem;
}
.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   11) BUTTONS
   ============================================================ */
.btn {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
    font-size: 0.9rem;
}
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-outline-primary {
    border-color: var(--border-color);
    color: var(--text-primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ============================================================
   12) HERO SECTION (generic / FxArt)
   ============================================================ */

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ============================================================
   13) HOME HERO (OmniToolkit)
   ============================================================ */
.home-hero {
    padding: 3rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}
.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.home-hero .hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ============================================================
   14) PAGE / CATEGORY HERO
   ============================================================ */
.page-hero {
    background: var(--bg-secondary);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-secondary); max-width: 600px; }

.category-hero {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.category-hero h1 { margin-bottom: 0.5rem; }
.category-hero p { color: var(--text-secondary); margin-bottom: 0; }

/* ============================================================
   15) PAGE CONTENT
   ============================================================ */
.page-content {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ============================================================
   16) TOOL CARD (OmniToolkit)
   ============================================================ */
.tool-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    height: 100%;
}
.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: inherit;
    text-decoration: none;
}
.tool-card h5,
.tool-card h6 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}
.tool-card small { color: var(--text-secondary); }

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    align-self: flex-start;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   Category card — فقط صفحه‌ی اصلی
   کارت دسته دارای بج تعداد ابزار در پایین است.
   کارت‌های ابزار در صفحات داخلی این کلاس را ندارند و از این
   استایل‌ها بهره‌مند نمی‌شوند.
   ------------------------------------------------------------ */
.tool-card-category .tool-count {
    margin-top: auto;             /* چسبیدن به کف کارت */
    align-self: flex-start;       /* عرض به اندازه محتوا */
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tool-card-category:hover .tool-count {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   17) PRODUCT / FEATURE / STAT CARDS
   ============================================================ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.product-card-img {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-body { padding: 1.5rem; }
.product-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}
.product-card .badge-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ============================================================
   18) TABLE
   ============================================================ */

/* RTL alignment for tables */

body.lang-fa .table-custom th,
body.lang-fa .table-custom td,
body[lang="fa"] .table-custom th,
body[lang="fa"] .table-custom td,
body[lang="ar"] .table-custom th,
body[lang="ar"] .table-custom td { text-align: right !important; }

/* Mobile stacked table */
@media (max-width: 768px) {
    
    
    
}

/* ============================================================
   19) BADGES (final, light-mode tuned)
   ============================================================ */
.badge {
    padding: 0.4em 0.8em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.badge-active,
.badge-paid    { background-color: #10b981 !important; color: #ffffff !important; }
.badge-pending { background-color: #f59e0b !important; color: #1f2937 !important; }
.badge-warning { background-color: #fbbf24 !important; color: #1f2937 !important; }
.badge-cancelled { background-color: #6b7280 !important; color: #ffffff !important; }
.badge-info    { background-color: #3b82f6 !important; color: #ffffff !important; }
.badge-secondary { background-color: #4b5563 !important; color: #ffffff !important; }
.badge-expired { background-color: #ef4444 !important; color: #ffffff !important; }

/* ============================================================
   20) FORM ELEMENTS
   ============================================================ */
.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-input);
    color: var(--text-primary);
}
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   21) CARD
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

/* ============================================================
   22) ACCORDION
   ============================================================ */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}
.accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.1rem 1.5rem;
    box-shadow: none !important;
    border-radius: var(--radius-md) !important;
}
.accordion-button:not(.collapsed) {
    background: var(--accent-light);
    color: var(--accent);
}
.accordion-button::after { filter: invert(0.5); }
.accordion-body {
    color: var(--text-secondary);
    padding: 1rem 1.5rem 1.5rem;
    line-height: 1.7;
}

/* ============================================================
   23) FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}
.footer h6 {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.footer a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: block;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}
.footer a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.footer-bottom span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.footer-bottom .d-flex a {
    padding: 0;
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.footer-bottom .d-flex a:hover { color: var(--accent); }

.footer-brand { font-weight: 700; }
.footer-brand .brand-dot { color: var(--accent); }
.footer-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 300px;
}
[dir="rtl"] .footer-description {
    max-width: 300px;
    margin-right: 0;
}

/* ============================================================
   24) BREADCRUMB
   ============================================================ */
.breadcrumb-custom {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}
.breadcrumb-custom a {
    color: var(--text-secondary);
    text-decoration: none;
}
.breadcrumb-custom a:hover { color: var(--accent); }
.breadcrumb-custom .separator { margin: 0 0.5rem; }

/* ============================================================
   25) LICENSE CARD
   ============================================================ */

/* ============================================================
   26) SIDEBAR
   ============================================================ */
.sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 65px);
    padding: 1.5rem 0;
    position: sticky;
    top: 65px;
}
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem !important;
    border-radius: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
}
.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* ============================================================
   27) MODAL
   ============================================================ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}
.modal-header { border-bottom: 1px solid var(--border-color); }
.modal-footer { border-top: 1px solid var(--border-color); }

/* ============================================================
   28) PAGINATION
   ============================================================ */
.pagination .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    margin: 0 3px;
    transition: all var(--transition-fast);
}
.pagination .page-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}
.pagination .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================================
   29) ALERT
   ============================================================ */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 1rem 1.25rem;
}
.alert-info    { border-left: 4px solid var(--accent); }
.alert-success { border-left: 4px solid var(--green); }
.alert-warning { border-left: 4px solid var(--amber); }
.alert-danger  { border-left: 4px solid var(--red); }

/* ============================================================
   30) TABS
   ============================================================ */
.nav-tabs { border-bottom: 2px solid var(--border-color); }
.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}
.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-tertiary);
}
.nav-tabs .nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}

/* ============================================================
   31) DROPDOWN
   ============================================================ */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}
.dropdown-item {
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}
.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.dropdown-divider { border-color: var(--border-color); }

/* ============================================================
   32) TOOLTIP
   ============================================================ */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ============================================================
   33) HERO SLIDER
   ============================================================ */

.hero-slider-section .carousel-indicators button.active {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.2);
}

.carousel-fade .carousel-item.active { opacity: 1; }

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end { opacity: 0; }

.carousel-item.active .animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.carousel-item.active .animate-fade-in { animation: fadeIn 0.5s ease forwards; }

/* ============================================================
   34) TOOL FORM (OmniToolkit)
   ============================================================ */
.tool-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.tool-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.btn-download {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}
.btn-download:hover {
    background: #059669;
    color: #fff;
    text-decoration: none;
}

.tool-header { margin-bottom: 2rem; }
.tool-header h1 { margin-bottom: 0.5rem; }
.tool-header .lead { color: var(--text-secondary); }

/* ============================================================
   35) HOME SEARCH FORM (OmniToolkit)
   ============================================================ */
.home-search-form {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}
.home-search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.home-search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.14);
}
.home-search-icon {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.home-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1rem;
    color: var(--text-primary) !important;
    padding: 0.5rem 0;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}
.home-search-input::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}
.home-search-btn {
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}
.home-search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.home-search-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.home-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    text-align: left;
}
[dir="rtl"] .home-search-results { text-align: right; }
.home-search-results.open { display: block; }

/* Home stats */
.home-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2.5rem;
    max-width: 720px;
    margin: 0 auto;
}
.home-stat {
    text-align: center;
    min-width: 90px;
}
.home-stat-value {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.home-stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

[dir="rtl"] .home-search-input-wrap {
    padding: 0.35rem 1.25rem 0.35rem 0.35rem;
}
[dir="rtl"] .home-search-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ============================================================
   36) NAVBAR — SEARCH WIDGET
   ============================================================ */
.search-widget {
    position: relative;
    display: flex;
    align-items: center;
}
.search-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 1.05rem;
    padding: 0 !important;
    margin: 0;
    line-height: 1;
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.search-trigger:hover,
.search-trigger:focus {
    background: var(--bg-hover) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    outline: none;
    box-shadow: none !important;
}
.search-trigger i { display: block; line-height: 1; }

.search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 1050;
    overflow: hidden;
}
.search-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.search-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    transform: rotate(45deg);
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.search-input-icon {
    position: absolute;
    left: 1.6rem;
    color: var(--text-tertiary);
    font-size: 1rem;
    pointer-events: none;
    line-height: 1;
}
.search-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem 0.25rem 2.25rem;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
    margin: 0;
}
.search-input::placeholder { color: var(--text-tertiary); opacity: 1; }

.search-results { max-height: 420px; overflow-y: auto; }
.search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.1s ease;
    border-bottom: 1px solid var(--border-light);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}
.search-result-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.95rem;
}
.search-result-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.search-result-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-cat {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.search-loading,
.search-empty {
    padding: 1.75rem 1rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

[dir="rtl"] .search-panel { right: auto; left: 0; }
[dir="rtl"] .search-panel::before {
    right: auto;
    left: 14px;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}
[dir="rtl"] .search-input-icon { left: auto; right: 1.6rem; }
[dir="rtl"] .search-input {
    padding: 0.25rem 2.25rem 0.25rem 0.5rem;
}

/* ============================================================
   37) NAVBAR — TOOLS DROPDOWN
   ============================================================ */
.nav-tools-dropdown {
    min-width: 260px;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.nav-tools-dropdown.nav-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem;
    min-width: 500px;
}
.nav-tools-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
}
.nav-tools-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}
.nav-tools-link.active {
    background: var(--accent-light);
    color: var(--accent);
}
.nav-tools-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.nav-tools-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   38) LANGUAGE SELECTOR
   ============================================================ */
.language-selector .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border-color: var(--border-color);
    background: transparent;
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.language-selector .dropdown-toggle:hover,
.language-selector .dropdown-toggle:focus {
    background: var(--bg-hover);
    border-color: var(--accent);
}
.language-selector .dropdown-toggle .lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}
.language-selector .dropdown-toggle .lang-name { font-weight: 500; }
.language-selector .dropdown-menu {
    min-width: 140px;
    padding: 0.4rem 0;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.language-selector .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: background 0.15s ease;
}
.language-selector .dropdown-item:hover { background: var(--bg-hover); }
.language-selector .dropdown-item.active {
    background: var(--bg-active);
    color: var(--accent);
    font-weight: 600;
}
.language-selector .dropdown-item .lang-flag {
    font-size: 1rem;
    line-height: 1;
}
.language-selector .dropdown-item .lang-check {
    margin-left: auto;
    color: var(--accent);
}

[data-theme="dark"] .language-selector .dropdown-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

/* Language dropdown scroll */
.language-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}
.language-dropdown-menu::-webkit-scrollbar { width: 4px; }
.language-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.language-dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.language-dropdown-menu::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ============================================================
   39) TICKET CONVERSATION
   ============================================================ */

/* ============================================================
   40) AD SLOTS
   ============================================================ */
.ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.ad-slot-header_banner {
    width: 100%;
    margin-top: 0;
    margin-bottom: 2rem;
    min-height: 90px;
}
.ad-slot-footer_banner {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 0;
    min-height: 90px;
}
.ad-slot-result_banner {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 0;
    min-height: 90px;
}
.ad-slot-sidebar_left,
.ad-slot-sidebar_right {
    width: 100%;
    max-width: 300px;
    min-height: 250px;
}
@media (max-width: 991.98px) {
    .ad-slot-sidebar_left,
    .ad-slot-sidebar_right { display: none !important; }
}

/* ============================================================
   41) PRIVACY NOTICE
   ============================================================ */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    background: var(--green-light, #ecfdf5);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm, 8px);
    animation: privacyFadeIn 0.3s ease;
}
.privacy-notice-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #ffffff;
    color: #10b981;
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}
.privacy-notice-body { flex: 1 1 auto; min-width: 0; }
.privacy-notice-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.15rem;
    line-height: 1.35;
}
.privacy-notice-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #047857;
}
[dir="rtl"] .privacy-notice { text-align: right; }
[data-theme="dark"] .privacy-notice {
    background: #0a2218;
    border-color: rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .privacy-notice-icon {
    background: #0f2e22;
    color: #34d399;
    box-shadow: none;
}
[data-theme="dark"] .privacy-notice-title { color: #6ee7b7; }
[data-theme="dark"] .privacy-notice-text { color: #a7f3d0; }

/* ============================================================
   42) DARK MODE — READABILITY IMPROVEMENTS
   ============================================================ */
[data-theme="dark"] .text-muted {
    color: #b0b0c0 !important;
    opacity: 1;
}
[data-theme="dark"] small.text-muted { color: #a8a8b8 !important; }
[data-theme="dark"] strong { color: #f0f0f5 !important; }
[data-theme="dark"] .stat-card strong,
[data-theme="dark"] .card strong { color: #f0f0f5 !important; }

[data-theme="dark"] .form-control::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}
[data-theme="dark"] .form-control { color: #f0f0f5; }
[data-theme="dark"] .form-control:focus { color: #f0f0f5; }

[data-theme="dark"] .form-select {
    background-color: var(--bg-input);
    color: #f0f0f5;
    border-color: var(--border-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a0a0b0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
[data-theme="dark"] .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
[data-theme="dark"] .form-select option {
    background-color: #1e293b;
    color: #f0f0f5;
}

[data-theme="dark"] .table {
    color: #f0f0f5;
    --bs-table-bg: transparent;
    --bs-table-color: #f0f0f5;
}
[data-theme="dark"] .table.table-borderless td,
[data-theme="dark"] .table.table-borderless th {
    background-color: transparent;
    color: #f0f0f5;
}
[data-theme="dark"] .table td.text-muted { color: #a8a8b8 !important; }

[data-theme="dark"] .form-check-label { color: #d0d0e0; }
[data-theme="dark"] .card .d-flex.justify-content-between span { color: #d0d0e0; }
[data-theme="dark"] .card-body .col-md-4,
[data-theme="dark"] .card-body .mt-2 { color: #d0d0e0; }
[data-theme="dark"] .card-body strong { color: #f0f0f5; }

[data-theme="dark"] .alert-info {
    color: #c8d6e5;
    background-color: #1a2744;
    border-color: #2a3f6e;
}

/* ============================================================
   43) RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .nav-tools-dropdown,
    .nav-tools-dropdown.nav-tools-grid {
        display: block;
        min-width: 100%;
        grid-template-columns: none;
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0.25rem 0 0.25rem 1rem;
    }
    .nav-tools-link { padding: 0.4rem 0.5rem; }

    .search-panel {
        position: fixed;
        top: 70px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
    .search-panel::before { display: none; }
    [dir="rtl"] .search-panel { right: 16px; left: 16px; }
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .home-hero { padding: 2rem 0 2rem; }
    .home-hero .hero-subtitle { margin-bottom: 1.5rem; }

    .home-search-input-wrap { padding: 0.3rem 0.3rem 0.3rem 1rem; }
    .home-search-btn { padding: 0.55rem 1rem; }
    .home-search-btn-text { display: none; }

    .home-stats { gap: 1.5rem; padding-top: 1.75rem; }
    .home-stat { min-width: 70px; }

    .tool-card { padding: 1rem; }
    .tool-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .sidebar {
        min-height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.5rem 0;
    }
    .sidebar .nav-link {
        padding: 0.5rem 1rem !important;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .sidebar .nav-link.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }

    
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    

    
    
    
    
}

@media (max-width: 575.98px) {
    .privacy-notice {
        padding: 0.75rem 0.85rem;
        gap: 0.65rem;
    }
    .privacy-notice-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.85rem;
    }
    .privacy-notice-title { font-size: 0.85rem; }
    .privacy-notice-text { font-size: 0.78rem; }

    
    
    
}