/* ============================================================
   IT Man Platform — main.css v2
   All CSS for: layout, components, sections, animations,
   FAB panel, chat widget, GDPR, search, slider, carousel,
   services, contact, articles, footer, responsive.
   Uses CSS variables from themes.css
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* ─── Global Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body.itman-body {
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.35s ease, color 0.25s ease;
    overflow-x: hidden;
    min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ─── Matrix Canvas ───────────────────────────────────────────── */
#matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    width: 100vw;
    height: 100vh;
}

/* ─── Scroll Reveal Animations ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}

/* ─── Navbar ──────────────────────────────────────────────────── */
.itman-navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 1050;
}
.itman-navbar.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--border-accent);
}


      .itman-logo img {
        transition: opacity 0.2s;
        height: 28px !important;
        width: auto !important;
        max-height: 28px !important;

    
}
.navbar-nav .nav-link {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text) !important;
    padding: 0.42rem 0.9rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--accent-dim);
    color: var(--accent) !important;
}

.btn-icon-nav {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    padding: 0; font-size: 1rem;
}
.btn-icon-nav:hover {
    background: var(--accent-dim);
    border-color: var(--border-accent);
    color: var(--accent);
}

/* Hamburger */
.navbar-toggler { border: none; padding: 6px; }
.navbar-toggler:focus { box-shadow: none; }
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.hamburger-icon span {
    display: block; height: 2px; width: 100%;
    background: var(--text); border-radius: 2px;
    transition: all 0.3s;
}

/* Language Dropdown */
.lang-dropdown .dropdown-toggle { font-size: 0.82rem; font-weight: 700; }
.lang-dropdown .dropdown-toggle::after { display: none; }
.lang-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    min-width: 115px;
    border-radius: 10px;
    overflow: hidden;
}
.lang-item {
    color: var(--text);
    font-size: 0.83rem;
    padding: 0.42rem 1rem;
    transition: background 0.15s;
}
.lang-item:hover, .lang-item.active {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Mobile Offcanvas */
.itman-offcanvas {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    max-width: 300px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}
.mobile-nav a:hover,
.mobile-nav a:active {
    background: var(--accent-dim);
    color: var(--accent);
    padding-left: 1.4rem;
}
.mobile-lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.lang-btn-grid {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem;
    text-align: center;
    border-radius: 6px;
    font-size: 0.78rem; font-weight: 700;
    transition: all 0.2s; cursor: pointer;
}
.lang-btn-grid:hover, .lang-btn-grid.active {
    background: var(--accent-dim);
    border-color: var(--border-accent);
    color: var(--accent);
}

/* ─── Search Overlay ──────────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 13vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-inner { width: min(700px, 92vw); position: relative; }
.search-close {
    position: absolute; top: -52px; right: 0;
    background: transparent; border: none; color: var(--text);
    font-size: 1.5rem; cursor: pointer; padding: 8px;
    transition: color 0.2s;
}
.search-close:hover { color: var(--accent); }
.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-results {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 420px;
    overflow-y: auto;
}
.search-result-item {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.search-result-item:hover { background: var(--accent-dim); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item h6 { color: var(--accent); margin: 0 0 4px; font-size: 0.88rem; }
.search-result-item p { color: var(--text-muted); font-size: 0.78rem; margin: 0; }

/* ─── Section Blocks ──────────────────────────────────────────── */
.section-block {
    padding: 5.5rem 0;
    position: relative;
}
.section-eyebrow {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
    display: block;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}
.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ─── Hero / Slider ───────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active { opacity: 1; }

/* Parallax effect on desktop */
@media (min-width: 1025px) {
    .hero-slide { background-attachment: fixed; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.42) 50%,
        rgba(0,0,0,0.68) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease both;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}
.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.9s 0.1s ease both;
}
.hero-title span { color: var(--accent); }
.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.25rem;
    max-width: 560px;
    animation: fadeInUp 0.9s 0.2s ease both;
}
.hero-actions { animation: fadeInUp 0.9s 0.3s ease both; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.slider-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Slider Controls (Admin-driven) */
.slider-admin-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.slider-admin-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.slider-admin-btn.prev { left: 2rem; }
.slider-admin-btn.next { right: 2rem; }

/* ─── CTA Buttons ─────────────────────────────────────────────── */
.btn-itman {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.78rem 1.9rem;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-itman-primary {
    background: var(--accent);
    color: var(--bg);
}
.btn-itman-primary:hover {
    background: var(--accent-hover);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.btn-itman-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-accent);
}
.btn-itman-outline:hover {
    background: var(--accent-dim);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ─── About Section ───────────────────────────────────────────── */
.about-section { background: transparent; }
.about-text { font-size: 1.05rem; color: var(--text); line-height: 1.85; }
.about-glow {
    position: absolute;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(var(--accent-rgb),0.14) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.stat-item:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem; font-weight: 800;
    color: var(--accent); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Services Section ────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 2rem 1.6rem 1.6rem;
    text-decoration: none;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb),0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow);
    border-color: var(--border-accent);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 48px; height: 48px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--accent);
    margin-bottom: 1.1rem;
}
.service-card h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; line-height: 1.6; }
.service-read-more {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--accent);
    display: flex; align-items: center; gap: 5px;
}

/* ─── News/Articles Carousel ──────────────────────────────────── */
.news-carousel-section { background: transparent; }
.news-carousel-track-wrapper {
    overflow: hidden;
    position: relative;
}
.news-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.news-carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    display: block;
}
.news-carousel-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-carousel-item:hover .news-carousel-img { transform: scale(1.06); }
.news-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.1) 80%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.35s;
}
.news-carousel-item:hover .news-carousel-overlay { opacity: 1; }
.news-carousel-placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.1) 80%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}
.news-carousel-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.news-carousel-controls { display: flex; gap: 8px; margin-top: 1.5rem; justify-content: center; }
.carousel-ctrl-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.carousel-ctrl-btn:hover { background: var(--accent); color: var(--bg); }

/* ─── Contact Section ─────────────────────────────────────────── */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
}
.form-control, .form-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--border-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12) !important;
    background: var(--input-bg) !important;
    color: var(--text) !important;
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-label {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--text-muted); margin-bottom: 6px;
}
/* Honeypot anti-spam */
.spam-field { display: none !important; }

/* Captcha */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}
.captcha-row input {
    width: 70px;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--accent) !important;
    border-radius: 0 !important;
    text-align: center;
    color: var(--accent) !important;
    font-weight: 700; font-size: 1.1rem;
}
.captcha-label { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Article Pages ───────────────────────────────────────────── */
.article-hero {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex; align-items: flex-end;
    position: relative;
    padding-top: 80px;
}
.article-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 30%, rgba(0,0,0,0.28) 100%);
}
.article-hero-content { position: relative; z-index: 1; padding: 3rem 0; }
.article-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.article-body {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.07rem;
    line-height: 1.85;
    color: var(--text);
}
.article-body p { margin-bottom: 1.5rem; }
.article-body h2, .article-body h3 { margin: 2.5rem 0 1rem; }
.article-body img { border-radius: 10px; margin: 2rem 0; }
.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--accent-dim);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.article-card-body { padding: 1.5rem; }
.article-card-badge {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--accent);
    background: var(--badge-bg);
    padding: 3px 10px; border-radius: 100px;
    display: inline-block; margin-bottom: 0.75rem;
}
.article-card-title {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 1.05rem; color: var(--text);
    margin-bottom: 0.5rem; line-height: 1.3;
}
.article-card-summary { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.article-read-more {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--accent);
    display: flex; align-items: center; gap: 5px;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.itman-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}
.footer-copy { font-size: 0.83rem; color: var(--text-muted); }
.itman-footer a { color: var(--text-muted); font-size: 0.83rem; }
.itman-footer a:hover { color: var(--accent); }

/* ─── FAB Panel (Left Sidebar — Chat, Theme, Top) ────────────── */
.fab-panel {
    position: fixed;
    left: 1.5rem;
    bottom: 2rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.fab-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    background: var(--fab-bg);
    color: var(--accent);
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    text-decoration: none;
}
.fab-btn:hover {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}
/* Theme dropdown from FAB */
.theme-dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    backdrop-filter: blur(14px);
    min-width: 185px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.theme-item {
    color: var(--text) !important;
    font-size: 0.84rem;
    padding: 0.55rem 1rem;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
    background: transparent;
}
.theme-item i { opacity: 0.85; }
.theme-item:hover {
    background: var(--accent-dim);
    color: var(--accent) !important;
}
.theme-item.active {
    background: var(--accent);
    color: var(--bg) !important;
    font-weight: 700;
}
.theme-item.active i { opacity: 1; }

/* Back to Top — hidden until scrolled */
#backTopBtn { opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.2s; }
#backTopBtn.show { opacity: 1; pointer-events: auto; }

/* ─── AI Chat Widget ──────────────────────────────────────────── */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 950;
    width: min(380px, calc(100vw - 2rem));
    background: var(--chat-bg);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    box-shadow: var(--shadow), var(--shadow-glow);
    overflow: hidden;
    animation: chatSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes chatSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: none; }
}
.chat-header {
    background: var(--accent-dim);
    border-bottom: 1px solid var(--border-accent);
    padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: 10px;
}
.chat-status-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}
.chat-header span {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
    color: var(--text); flex: 1;
}
.chat-close-btn {
    background: transparent; border: none;
    color: var(--text-muted); font-size: 1rem;
    cursor: pointer; padding: 2px; border-radius: 4px;
    transition: color 0.2s;
}
.chat-close-btn:hover { color: var(--text); }
.chat-lead-form { padding: 1.25rem; }
.chat-lead-intro { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.55; }
.chat-messages {
    height: 280px; overflow-y: auto;
    padding: 1rem;
    display: flex; flex-direction: column; gap: 10px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.chat-msg {
    max-width: 86%;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    animation: msgIn 0.25s ease both;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.chat-msg.user {
    background: var(--accent); color: var(--bg);
    margin-left: auto;
    border-radius: 12px 12px 2px 12px;
}
.chat-msg.assistant {
    background: var(--input-bg); color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px 12px 12px 2px;
}
.chat-typing {
    display: flex; gap: 4px; align-items: center;
    padding: 8px 12px;
    background: var(--input-bg); border-radius: 12px;
    border: 1px solid var(--border);
    width: fit-content;
}
.chat-typing-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}
.chat-input-area {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px; align-items: center;
}
.chat-input-area .form-control {
    flex: 1;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px !important;
}
.chat-send-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--accent);
    color: var(--bg);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-send-btn:hover { background: var(--accent-hover); }

/* ─── GDPR Banner ─────────────────────────────────────────────── */
.gdpr-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(14px);
    padding: 1.25rem 2rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
.gdpr-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.gdpr-text { flex: 1; min-width: 280px; }
.gdpr-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; margin-bottom: 4px; color: var(--text); }
.gdpr-text p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.gdpr-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

/* ─── Toast Notifications ─────────────────────────────────────── */
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(12px);
}
.toast.toast-success { border-left: 3px solid var(--accent); }
.toast.toast-error   { border-left: 3px solid #ff4757; }
.toast-body { font-size: 0.875rem; }

/* ─── Admin Hint Badge ────────────────────────────────────────── */
.badge-accent {
    background: var(--badge-bg);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px; border-radius: 100px;
}

/* ─── Parallax wrapper ────────────────────────────────────────── */
[data-parallax] { will-change: transform; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-title { font-size: 2.6rem; }
    .news-carousel-item { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 768px) {
    .section-block { padding: 4rem 0; }
    .hero-section { min-height: 90svh; }
    .fab-panel { left: 1rem; bottom: 1.5rem; }
    .fab-btn { width: 42px; height: 42px; font-size: 1rem; }
    .gdpr-content { flex-direction: column; gap: 1rem; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .contact-form-wrapper { padding: 1.5rem; }
    .chat-widget { bottom: 0; right: 0; width: 100%; border-radius: 16px 16px 0 0; }
    .slider-admin-btn { display: none; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 0.95rem; }
    .articles-grid { grid-template-columns: 1fr; }
    .news-carousel-item { flex: 0 0 calc(90% - 0.5rem); }
    .services-grid { grid-template-columns: 1fr; }
}


/* ─── Theme dropdown fix ─────────────────────────────── */
.theme-dropdown-menu.dropdown-menu {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-accent) !important;
}
.theme-dropdown-menu .dropdown-item.theme-item {
    color: var(--text) !important;
    background: transparent !important;
}
.theme-dropdown-menu .dropdown-item.theme-item:hover,
.theme-dropdown-menu .dropdown-item.theme-item:focus {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
}
.theme-dropdown-menu .dropdown-item.theme-item.active {
    background: var(--accent) !important;
    color: var(--bg) !important;
}

/* Asigură vizibilitate egală pentru toate temele în dropdown */
.theme-dropdown-menu .dropdown-item.theme-item {
    opacity: 1 !important;
    color: var(--text) !important;
}
.theme-dropdown-menu .dropdown-item.theme-item i {
    opacity: 1 !important;
    color: inherit !important;
}

/* Ascunde FAB panel când offcanvas e deschis */
.offcanvas.show ~ .fab-panel,
.offcanvas.showing ~ .fab-panel {
    display: none !important;
}

/* ─── Mobile Icon Nav ─────────────────────────────── */
.mobile-icon-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-icon-nav::-webkit-scrollbar { display: none; }
.mobile-icon-nav button {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.mobile-icon-nav button:active,
.mobile-icon-nav button:hover {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}