/* ========================================
   MAIN.CSS — ESTRUTURA GLOBAL
   CoudFy — Digital Solutions
   ======================================== */

/* ========================================
   01 — VARIÁVEIS CSS & RESET GLOBAL
   ======================================== */
:root {
    --color-white:       #ffffff;
    --color-black:       #05080f;
    --color-dark:        #0c1220;
    --color-gray-950:    #09101c;
    --color-gray-900:    #131d2e;
    --color-gray-800:    #1e2d42;
    --color-gray-700:    #334d69;
    --color-gray-600:    #6b84a0;
    --color-gray-500:    #98b4cc;
    --color-orange:      #3b82f6;
    --color-orange-dark: #1d4ed8;
    --color-orange-light:#60a5fa;
    --transition-normal: 0.5s ease;
}

*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) var(--color-dark);
}

html { scroll-behavior: auto; width: 100%; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    margin: 0; padding: 0;
}

/* ========================================
   02 — SCROLLBAR PERSONALIZADA
   ======================================== */
::-webkit-scrollbar { width: 14px; height: 14px; }

::-webkit-scrollbar-track {
    background: var(--color-dark);
    border-left: 2px solid var(--color-gray-900);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-orange), var(--color-orange-dark));
    border-radius: 10px;
    border: 3px solid var(--color-dark);
    box-shadow: inset 0 0 10px rgba(59,130,246,0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-orange-light), var(--color-orange));
    box-shadow: inset 0 0 15px rgba(59,130,246,0.5);
}

::-webkit-scrollbar-thumb:active { background: var(--color-orange-dark); }

/* ========================================
   03 — CURSOR PERSONALIZADO
   ======================================== */
body, html {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%233b82f6" opacity="0.3"/><circle cx="12" cy="12" r="3" fill="%233b82f6"/></svg>') 12 12, auto;
}

a, button, .cta-button, .carousel-btn, .chatbot-send-btn,
.menu-toggle, .quick-reply-btn, .mobile-sidebar-link {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><circle cx="14" cy="14" r="10" fill="%233b82f6" opacity="0.3"/><circle cx="14" cy="14" r="5" fill="%233b82f6"/><circle cx="14" cy="14" r="2" fill="%23ffffff"/></svg>') 14 14, pointer;
}

input, textarea, select, [contenteditable] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="32" viewBox="0 0 24 32"><rect x="10" y="0" width="4" height="32" fill="%233b82f6"/><rect x="6" y="0" width="12" height="4" fill="%233b82f6"/><rect x="6" y="28" width="12" height="4" fill="%233b82f6"/></svg>') 12 16, text;
}

.carousel-track, .projects-carousel-track {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="%233b82f6" opacity="0.2"/><path d="M12 10 L12 22 M16 10 L16 22 M20 10 L20 22" stroke="%233b82f6" stroke-width="2" fill="none"/></svg>') 16 16, grab;
}

.carousel-track:active, .projects-carousel-track:active {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%233b82f6" opacity="0.3"/><path d="M12 10 L12 22 M16 10 L16 22 M20 10 L20 22" stroke="%23ffffff" stroke-width="2.5" fill="none"/></svg>') 16 16, grabbing;
}

[disabled], .disabled {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="none" stroke="%233b82f6" stroke-width="3"/><line x1="8" y1="8" x2="24" y2="24" stroke="%233b82f6" stroke-width="3"/></svg>') 16 16, not-allowed;
}

/* ========================================
   04 — LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at 30% 20%, #0a1a3a 0%, #05080f 45%, #020508 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 10000;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    overflow: hidden;
}

.loading-screen.hide { opacity: 0; visibility: hidden; }

.loading-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 12s linear infinite;
}

@keyframes grid-drift {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}

.loading-orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); pointer-events: none;
    animation: orb-breathe 8s ease-in-out infinite;
}

.loading-orb-1 { width: 500px; height: 500px; top: -150px; left: -100px; background: rgba(29,78,216,0.22); animation-duration: 9s; }
.loading-orb-2 { width: 350px; height: 350px; bottom: -100px; right: -80px; background: rgba(59,130,246,0.18); animation-duration: 11s; animation-direction: reverse; }

@keyframes orb-breathe {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 0.8; }
    50%       { transform: translate(25px,25px) scale(1.12); opacity: 1; }
}

.loading-particle {
    position: absolute;
    left: var(--px, 50%); top: var(--py, 50%);
    width: var(--ps, 4px); height: var(--ps, 4px);
    border-radius: 50%; background: #3b82f6; opacity: 0;
    animation: lp-float 4.5s ease-in-out var(--pd, 0s) infinite;
    box-shadow: 0 0 8px #3b82f6;
}

@keyframes lp-float {
    0%   { transform: translateY(0) scale(0); opacity: 0; }
    40%  { opacity: 0.9; transform: translateY(-60px) scale(1); }
    100% { transform: translateY(-150px) scale(0); opacity: 0; }
}

.particula {
    position: absolute; border-radius: 50%;
    background: var(--color-orange); pointer-events: none;
    z-index: 1; animation: particula-float linear infinite;
}

@keyframes particula-float {
    0%   { transform: translateY(0) scale(1); opacity: inherit; }
    50%  { transform: translateY(-80px) scale(1.4); opacity: .6; }
    100% { transform: translateY(-160px) scale(0); opacity: 0; }
}

.loading-center {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; gap: 32px; margin-bottom: 70px;
}

.loading-ring-wrapper {
    position: relative; width: 480px; height: 480px;
    display: flex; align-items: center; justify-content: center;
}

.loading-ring { position: absolute; border-radius: 50%; }

.loading-ring-pulse { width: 480px; height: 480px; border: 1px solid rgba(59,130,246,0.15); animation: ring-pulse 3s ease-in-out infinite; }
.loading-ring-outer { width: 440px; height: 440px; border: 2px solid transparent; border-top-color: #3b82f6; border-right-color: rgba(59,130,246,0.25); animation: ring-spin 1.4s linear infinite; }
.loading-ring-inner { width: 390px; height: 390px; border: 2px solid transparent; border-bottom-color: #60a5fa; border-left-color: rgba(96,165,250,0.25); animation: ring-spin 1.0s linear infinite reverse; }

.loading-ring-wrapper::before,
.loading-ring-wrapper::after { display: none; }

@keyframes ring-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.06); opacity: 0.7; } }

.loading-logo-container {
    position: absolute; width: 380px; height: 260px;
    background: transparent; border: none; box-shadow: none;
    display: flex; align-items: center; justify-content: center;
}

@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 25px rgba(59,130,246,0.7)) drop-shadow(0 0 60px rgba(59,130,246,0.3)); }
    50%       { filter: drop-shadow(0 0 50px rgba(59,130,246,1)) drop-shadow(0 0 100px rgba(59,130,246,0.5)); }
}

.loading-logo {
    width: 360px; height: 240px; object-fit: contain;
    animation: logo-hover 3s ease-in-out infinite, logo-glow 3s ease-in-out infinite;
}

@keyframes logo-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.loading-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.loading-brand-name {
    font-size: 38px; font-weight: 800;
    letter-spacing: 8px; color: #fff; text-transform: uppercase;
    animation: name-glow 2.5s ease-in-out infinite;
}

@keyframes name-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(59,130,246,0.5), 0 0 50px rgba(59,130,246,0.2); }
    50%       { text-shadow: 0 0 40px rgba(59,130,246,0.9), 0 0 90px rgba(59,130,246,0.4); }
}

.loading-brand-tagline {
    font-size: 11px; font-weight: 600; letter-spacing: 5px;
    color: rgba(96,165,250,0.65); text-transform: uppercase;
}

.loading-bar-wrapper {
    position: absolute; bottom: 55px; width: 340px;
    display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2;
}

.loading-progress {
    width: 100%; height: 3px;
    background: rgba(59,130,246,0.12); border-radius: 10px;
    overflow: visible; position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa);
    border-radius: 10px; width: 0;
    animation: pb-fill 2.1s ease-out forwards;
    box-shadow: 0 0 18px rgba(59,130,246,0.9), 0 0 35px rgba(59,130,246,0.4);
    position: relative;
}

.loading-progress-bar::after {
    content: ''; position: absolute; right: -3px; top: -4px;
    width: 10px; height: 10px; background: #60a5fa; border-radius: 50%;
    box-shadow: 0 0 12px #3b82f6, 0 0 25px #3b82f6;
}

@keyframes pb-fill { 0% { width: 0%; } 100% { width: 100%; } }

.loading-status {
    font-size: 10px; font-weight: 700; letter-spacing: 3px;
    color: rgba(59,130,246,0.55); text-transform: uppercase;
    animation: status-pulse 1.5s ease-in-out infinite;
}

@keyframes status-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ========================================
   05 — NAVBAR DESKTOP
   ======================================== */
.navbar-desktop {
    position: fixed; top: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center;
    background: var(--color-black);
    border-radius: 50px; padding: 15px 30px;
    border: 2px solid var(--color-gray-800);
    z-index: 1000;
    /* Transição cobre tanto Y quanto X para o slide para esquerda */
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4,0,0.2,1), visibility 0.45s ease;
    opacity: 0;
    animation: slideDown 0.8s ease forwards 2.2s;
}

/* Quando esconde — sai pela ESQUERDA */
.navbar-desktop.hide {
    opacity: 0;
    transform: translateX(calc(-50vw - 400px));
    pointer-events: none;
    visibility: hidden;
}

/* Logo flutuando à esquerda */
.navbar-logo-left {
    position: absolute; left: -270px;
    width: 240px; height: 160px;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    border: none;
    transition: opacity 0.4s ease;
}

.navbar-logo-left img {
    width: 235px; height: 155px;
    object-fit: contain;
}

/* Logo some junto com o navbar */
.navbar-desktop.hide .navbar-logo-left {
    opacity: 0;
}

.navbar-center { display: flex; gap: 35px; padding: 0 10px; }

.navbar-center a {
    text-decoration: none; color: var(--color-white);
    font-weight: 600; font-size: 15px;
    transition: all 0.3s ease; position: relative;
}

.navbar-center a::after {
    content: ''; position: absolute;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--color-orange);
    transition: width 0.3s ease;
}

.navbar-center a:hover { color: var(--color-orange); }
.navbar-center a:hover::after { width: 100%; }

.navbar-social-right {
    position: absolute; right: -185px;
    display: flex; gap: 15px;
}

/* User Dropdown */
.ud-wrapper { position: relative; }

.ud-trigger {
    position: relative; width: 45px; height: 45px;
    background: var(--color-black); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--color-orange); color: var(--color-orange);
    font-size: 20px; text-decoration: none;
    box-shadow: 0 5px 20px rgba(59,130,246,0.3);
    transition: all 0.3s ease;
}

.ud-trigger:hover { background: var(--color-orange); color: #fff; box-shadow: 0 8px 30px rgba(59,130,246,0.6); }

.ud-tooltip {
    position: absolute; top: 50%; right: -15px;
    transform: translateY(-50%) translateX(100%);
    background: #0d1220; color: #fff;
    padding: 10px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.3s ease;
    border: 2px solid var(--color-gray-800); z-index: 1001;
}

.ud-trigger:hover .ud-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(calc(100% + 10px)); }

.ud-menu {
    position: absolute; top: calc(100% + 15px); right: 0;
    min-width: 260px; background: var(--color-gray-950);
    border: 2px solid var(--color-gray-800); border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 10001; overflow: hidden;
}

.ud-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }

.ud-header {
    padding: 18px 20px; display: flex; align-items: center; gap: 14px;
    background: rgba(59,130,246,0.05);
    border-bottom: 1px solid var(--color-gray-800);
}

.ud-avatar {
    width: 46px; height: 46px; background: var(--color-dark);
    border: 2px solid var(--color-orange); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--color-orange); flex-shrink: 0;
}

.ud-info { display: flex; flex-direction: column; gap: 4px; }
.ud-name { font-size: 15px; font-weight: 700; color: #fff; }

.ud-rank {
    font-size: 11px; font-weight: 600; color: var(--color-orange);
    background: rgba(59,130,246,0.15); padding: 2px 10px;
    border-radius: 20px; display: inline-block; width: fit-content;
}

.ud-divider { height: 1px; background: var(--color-gray-800); }

.ud-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 600;
    transition: all 0.25s ease; border-left: 3px solid transparent;
}

.ud-item:hover { background: rgba(59,130,246,0.15); border-left-color: var(--color-orange); padding-left: 25px; }
.ud-item i { font-size: 17px; color: var(--color-orange); width: 22px; text-align: center; transition: transform 0.25s ease; }
.ud-item:hover i { transform: translateX(3px); color: #fff; }

.ud-item-danger { color: #fca5a5; border-top: 1px solid rgba(239,68,68,0.15); margin-top: 4px; }
.ud-item-danger i { color: #ef4444; }
.ud-item-danger:hover { background: rgba(239,68,68,0.18); border-left-color: #ef4444; color: #fff; }
.ud-item-danger:hover i { color: #fff; }

.navbar-social-right > a {
    width: 45px; height: 45px; background: var(--color-black);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--color-gray-800); transition: all 0.3s ease;
    color: var(--color-white); font-size: 20px;
}

.navbar-social-right a:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(59,130,246,0.5); background: var(--color-orange); border-color: var(--color-orange); }

.navbar-user-link { position: relative; }

.navbar-user-link .user-tooltip {
    position: absolute; top: 50%; right: -15px;
    transform: translateY(-50%) translateX(100%);
    background: linear-gradient(135deg, var(--color-dark), var(--color-gray-950));
    color: var(--color-white); padding: 12px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    border: 2px solid var(--color-gray-800);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1001;
}

.navbar-user-link:hover .user-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(calc(100% + 10px)); }
.navbar-user-link.logged-out { border-color: var(--color-gray-700) !important; color: var(--color-gray-600) !important; }
.navbar-user-link.logged-out:hover { background: var(--color-gray-800) !important; border-color: var(--color-gray-600) !important; color: var(--color-white) !important; }
.navbar-user-link.logged-in { border-color: var(--color-orange) !important; color: var(--color-orange) !important; box-shadow: 0 5px 20px rgba(59,130,246,0.3) !important; }
.navbar-user-link.logged-in:hover { background: var(--color-orange) !important; border-color: var(--color-orange) !important; color: var(--color-white) !important; }

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-50px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========================================
   06 — NAVBAR MOBILE
   ======================================== */
.navbar-mobile {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; z-index: 1000;
}

.navbar-mobile-content {
    background: rgba(5,8,15,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between; /* LOGO ESQUERDA, HAMBURGER DIREITA */
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(59,130,246,0.15);
}

/* Logo no mobile: tamanho correto */
.mobile-logo {
    width: auto;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.menu-toggle {
    width: 45px; height: 45px;
    background: var(--color-black);
    border: 2px solid var(--color-orange); border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; cursor: pointer; transition: all 0.3s ease;
}

.menu-toggle span { width: 22px; height: 2px; background: var(--color-white); transition: all 0.3s ease; }
.menu-toggle.active { background: var(--color-orange); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* ========================================
   07 — MOBILE SIDEBAR — LADO DIREITO
   ======================================== */
.mobile-sidebar-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.82); backdrop-filter: blur(5px);
    z-index: 9998; opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.mobile-sidebar-overlay.active { opacity: 1; visibility: visible; }

/* SIDEBAR AGORA VEM DA DIREITA */
.mobile-sidebar {
    position: fixed;
    top: 0; right: 0;        /* ← direita */
    left: auto;               /* ← remove left */
    width: 320px; height: 100%;
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-black) 100%);
    z-index: 9999;
    transform: translateX(100%);   /* ← entra da direita */
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    border-left: 2px solid var(--color-gray-800);  /* ← borda esquerda */
    border-right: none;
}

.mobile-sidebar.active { transform: translateX(0); }

.mobile-sidebar-header {
    padding: 20px 20px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--color-gray-900);
    background: var(--color-gray-950);
    min-height: 90px;
}

/* LOGO NO SIDEBAR MAIOR E CORRETA */
.mobile-sidebar-logo {
    display: flex; align-items: center; justify-content: flex-start;
    background: transparent; border: none; box-shadow: none;
}

.mobile-sidebar-logo img {
    width: 130px;
    height: auto;
    min-height: 55px;
    object-fit: contain;
}

.mobile-sidebar-close {
    width: 45px; height: 45px; flex-shrink: 0;
    background: var(--color-dark);
    border: 2px solid var(--color-gray-800); border-radius: 12px;
    color: var(--color-white); font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.mobile-sidebar-close:hover { background: var(--color-orange); border-color: var(--color-orange); transform: rotate(90deg); }

.mobile-sidebar-content {
    flex: 1; display: flex; flex-direction: column;
    overflow-y: auto; padding: 20px 0;
}

.mobile-sidebar-content::-webkit-scrollbar { width: 6px; }
.mobile-sidebar-content::-webkit-scrollbar-track { background: var(--color-dark); }
.mobile-sidebar-content::-webkit-scrollbar-thumb { background: var(--color-gray-700); border-radius: 10px; }

.mobile-sidebar-nav { flex: 1; padding: 10px 15px; }

.mobile-sidebar-link {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 18px; margin-bottom: 10px;
    background: rgba(255,255,255,0.02);
    border: 2px solid var(--color-gray-900); border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}

.mobile-sidebar-link::before {
    content: ''; position: absolute; left: 0; top: 0;
    width: 4px; height: 100%; background: var(--color-orange);
    transform: scaleY(0); transition: transform 0.3s ease;
}

.mobile-sidebar-link:hover::before,
.mobile-sidebar-link:active::before { transform: scaleY(1); }

.mobile-sidebar-link:hover {
    background: rgba(59,130,246,0.1); border-color: var(--color-orange);
    transform: translateX(-5px); /* ← move para a esquerda (sidebar vem da direita) */
    box-shadow: 0 5px 20px rgba(59,130,246,0.2);
}

.mobile-sidebar-link-icon {
    width: 54px; height: 54px; background: var(--color-dark);
    border: 2px solid var(--color-gray-800); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--color-orange); flex-shrink: 0; transition: all 0.3s ease;
}

.mobile-sidebar-link:hover .mobile-sidebar-link-icon { background: var(--color-orange); color: var(--color-white); border-color: var(--color-orange); transform: scale(1.1); }

.mobile-sidebar-link-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mobile-sidebar-link-title { font-size: 20px; font-weight: 700; color: var(--color-white); transition: color 0.3s ease; }
.mobile-sidebar-link-desc  { font-size: 14px; color: var(--color-gray-600); transition: color 0.3s ease; }
.mobile-sidebar-link:hover .mobile-sidebar-link-title { color: var(--color-orange); }
.mobile-sidebar-link:hover .mobile-sidebar-link-desc  { color: var(--color-gray-500); }

.mobile-sidebar-link-arrow { font-size: 16px; color: var(--color-gray-700); transition: all 0.3s ease; }
.mobile-sidebar-link:hover .mobile-sidebar-link-arrow { color: var(--color-orange); transform: translateX(-5px); }

.mobile-sidebar-footer {
    padding: 20px; border-top: 2px solid var(--color-gray-900);
    background: var(--color-gray-950);
}

.mobile-sidebar-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; margin-top: 15px; }

.mobile-sidebar-social-btn {
    width: 50px; height: 50px; background: var(--color-dark);
    border: 2px solid var(--color-gray-800); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-size: 20px;
    transition: all 0.3s ease; text-decoration: none;
}

.mobile-sidebar-social-btn:hover { background: var(--color-orange); border-color: var(--color-orange); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(59,130,246,0.4); }

.mobile-sidebar-cta {
    width: 100%; padding: 16px 30px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
    color: var(--color-white); border: none; border-radius: 50px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(59,130,246,0.3);
}

.mobile-sidebar-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(59,130,246,0.5); }
.mobile-sidebar-cta i { font-size: 20px; }

.mobile-sidebar-user {
    padding: 20px 15px; background: rgba(255,255,255,0.02);
    border: 2px solid var(--color-gray-900); border-radius: 15px; margin-bottom: 15px;
}

.mobile-sidebar-user-info {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 15px; padding-bottom: 15px;
    border-bottom: 1px solid var(--color-gray-900);
}

.mobile-sidebar-user-avatar {
    width: 50px; height: 50px; background: var(--color-dark);
    border: 2px solid var(--color-orange); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--color-orange); flex-shrink: 0;
}

.mobile-sidebar-user-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mobile-sidebar-user-name { font-size: 15px; font-weight: 700; color: var(--color-white); }
.mobile-sidebar-user-rank { font-size: 12px; color: var(--color-gray-600); }
.mobile-sidebar-user-actions { display: flex; flex-direction: column; gap: 10px; }

.mobile-sidebar-user-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px; background: var(--color-dark);
    border: 2px solid var(--color-gray-800); border-radius: 10px;
    color: var(--color-white); font-size: 14px; font-weight: 600;
    text-decoration: none; transition: all 0.3s ease;
}

.mobile-sidebar-user-btn:hover { background: var(--color-orange); border-color: var(--color-orange); transform: translateX(-5px); }
.mobile-sidebar-user-btn.danger { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.3); color: #ef4444; }
.mobile-sidebar-user-btn.danger:hover { background: #dc2626; border-color: #dc2626; color: var(--color-white); }
.mobile-sidebar-user-btn i { font-size: 16px; }

.mobile-sidebar-login-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
    color: var(--color-white); border: none; border-radius: 50px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    text-decoration: none; transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59,130,246,0.3); margin-bottom: 20px;
}

.mobile-sidebar-login-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(59,130,246,0.5); }
.mobile-sidebar-login-btn i { font-size: 18px; }

/* Animação de entrada — agora da DIREITA */
.mobile-sidebar.active .mobile-sidebar-link {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
}

.mobile-sidebar.active .mobile-sidebar-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-sidebar.active .mobile-sidebar-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-sidebar.active .mobile-sidebar-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-sidebar.active .mobile-sidebar-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-sidebar.active .mobile-sidebar-link:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ========================================
   08 — UTILITIES
   ======================================== */
.chatbot-button.hidden { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

.project-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0d1220 0%, #050811 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 20px; border: 2px dashed var(--color-gray-700); border-radius: 15px;
    position: relative; overflow: hidden;
}

.project-placeholder::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
}

.project-placeholder i  { font-size: 80px; color: var(--color-orange); opacity: 0.3; z-index: 1; }
.project-placeholder h3 { font-size: 24px; color: var(--color-white); z-index: 1; }
.project-placeholder p  { font-size: 14px; color: var(--color-gray-600); z-index: 1; }

/* ========================================
   09 — MEDIA QUERIES — ESTRUTURA
   ======================================== */
@media (max-width: 768px) {

    html, body { overflow-x: hidden; width: 100%; position: relative; }
    section { overflow-x: hidden; max-width: 100vw; }

    .navbar-desktop { display: none; }
    .navbar-user-dropdown,
    .navbar-user-dropdown-wrapper { display: none !important; }

    .navbar-mobile {
        display: block;
        animation: slideDown 0.8s ease forwards 2.2s;
        opacity: 0; width: 100%; max-width: 100vw;
    }

    .mobile-sidebar { width: 300px; }
    .mobile-sidebar-login-btn { padding: 12px 20px; font-size: 14px; }
    .mobile-sidebar-cta { padding: 12px 20px; font-size: 14px; }

    /* Logo no sidebar mobile: garantir tamanho correto em telas menores */
    .mobile-sidebar-logo img {
        width: 110px;
        height: auto;
        min-height: 45px;
    }
}

@media (max-width: 380px) {
    .mobile-sidebar      { width: 280px; }
    .mobile-sidebar-link { padding: 15px 12px; }
    .mobile-sidebar-link-icon { width: 40px; height: 40px; font-size: 18px; }

    .mobile-sidebar-logo img {
        width: 95px;
        min-height: 40px;
    }
}