/* ==========================================================================
   BimmerManiacs — Estilos da Garagem (partilhados por garagem.html,
   manutencao.html e progresso.html)
   ========================================================================== */
 :root {
 --bg-main: radial-gradient(circle at 50% 0%, #161b26 0%, #08090c 75%); /* ALINHADO COM COMUNIDADE */
 --bg-card: rgba(13, 17, 23, 0.85); 
 --bg-card-hover: #161b26;
 --accent: #1e90ff; 
 --accent-hover: #63a4ff;
 --accent-glow: rgba(30, 144, 255, 0.4);
 --text-main: #ffffff;
 --text-muted: #8b949e; 
 --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 --max-width: 1250px; /* ALINHADO 100% COM A COMUNIDADE */
 --m-blue: #0066b2;
 --m-darkblue: #151f6d; 
 --m-red: #ce1226;
 --radius: 12px;
 --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
 }

 *, body, button, input, textarea, select { 
 margin: 0; 
 padding: 0; 
 box-sizing: border-box; 
 font-family: var(--font-stack) !important; 
 }

 /* FORÇAR SCROLLBAR PARA EVITAR DESALINHAMENTO HORIZONTAL ENTRE PÁGINAS */
 html {
   overflow-y: scroll;
 }

 html, body {
 width: 100%;
 max-width: 100%;
 overflow-x: hidden;
 background: var(--bg-main);
 background-attachment: fixed;
 color: var(--text-main);
 line-height: 1.5;
 scroll-behavior: smooth;
 min-height: 100vh;
 }

 img { max-width: 100%; height: auto; display: block; }

 /* CABEÇALHO CLONADO DA COMUNIDADE */
 header { 
 background: #000000; 
 border-bottom: 1px solid rgba(255,255,255,0.08); 
 position: fixed; 
 top: 0; 
 left: 0; 
 z-index: 100; 
 width: 100%; 
 }

 .header-container { 
 max-width: var(--max-width); 
 margin: 0 auto; 
 padding: 15px 20px; 
 display: flex; 
 flex-direction: column; 
 align-items: center; 
 gap: 12px; 
 width: 100%; 
 box-sizing: border-box; 
 }
 
 .brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
 .brand-stripes { display: flex; gap: 2.5px; transform: skewX(-20deg); }
 .stripe { width: 5.5px; height: 22px; border-radius: 1px; }
 .stripe.blue { background: var(--m-blue); } 
 .stripe.dark { background: var(--m-darkblue); } 
 .stripe.red { background: var(--m-red); }
 .brand-text { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: 2px; text-transform: uppercase; }
 .brand-text span { color: var(--m-blue); }
 
 nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
 nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: var(--transition); cursor: pointer; }
 nav a:hover, nav a.active { color: var(--accent); }

 .header-right { display: flex; align-items: center; gap: 10px; position: relative; margin-top: 5px; }

 .header-chat-trigger { 
   background: rgba(255, 255, 255, 0.04); 
   color: #fff; 
   border: 1px solid rgba(255, 255, 255, 0.12); 
   border-radius: 50%; 
   width: 40px; 
   height: 40px; 
   display: flex; 
   align-items: center; 
   justify-content: center; 
   cursor: pointer; 
   position: relative; 
   transition: var(--transition); 
 }
 .header-chat-trigger svg {
   width: 20px;
   height: 20px;
   fill: #ffffff;
   stroke: none;
   transition: var(--transition); 
 }
 .header-chat-trigger:hover { 
   border-color: var(--accent); 
   background: rgba(30,144,255,0.12); 
   transform: translateY(-1px); 
 }
 .header-chat-trigger:hover svg {
   fill: var(--accent);
 }
 .header-chat-badge { position: absolute; top: -4px; right: -4px; background: #00e676; color: #000; border-radius: 50%; font-size: 9px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-weight: 900; border: 2px solid #08090c; }

 .header-messages-wrapper { position: relative; }
 .header-messages-dropdown {
     position: absolute;
     top: 50px;
     right: 0;
     background: rgba(13, 17, 23, 0.98);
     border: 1px solid rgba(30, 144, 255, 0.3);
     color: #fff;
     border-radius: var(--radius);
     box-shadow: 0 10px 30px rgba(0,0,0,0.8);
     z-index: 9999;
     width: 340px;
     display: none;
     flex-direction: column;
     overflow: hidden;
 }
 .header-messages-dropdown.show { display: flex !important; }
 .msg-drop-header { padding: 14px 16px; font-size: 14px; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); }
 .msg-drop-header span { color: var(--accent); font-size: 12px; cursor: pointer; font-weight: 600; }
 .msg-drop-header span:hover { text-decoration: underline; }

 .msg-drop-to-box { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.2); }
 .msg-drop-to-box label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
 .msg-drop-to-box input { flex: 1; background: transparent; border: none; color: #fff; font-size: 13px; outline: none; }
 
 .msg-drop-list { max-height: 310px; overflow-y: auto; display: flex; flex-direction: column; }
 .msg-drop-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; transition: var(--transition); text-decoration: none; color: inherit; }
 .msg-drop-item:hover { background: rgba(30, 144, 255, 0.1); }
 .msg-drop-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--accent); flex-shrink: 0; }
 .msg-drop-info { flex: 1; min-width: 0; }
 .msg-drop-info h5 { font-size: 13px; color: #fff; font-weight: 700; margin-bottom: 2px; display: flex; justify-content: space-between; }
 .msg-drop-info h5 span { font-size: 10px; color: var(--text-muted); font-weight: 400; }
 .msg-drop-info p { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .msg-drop-footer { padding: 10px; text-align: center; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); display: none; }
 .msg-drop-footer.show { display: block; }
 .msg-drop-footer a { font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 600; cursor: pointer; }

 .icon-btn { 
 background: rgba(255, 255, 255, 0.04); 
 border: 1px solid rgba(255, 255, 255, 0.12); 
 width: 40px; 
 height: 40px; 
 border-radius: 50%; 
 display: flex; 
 align-items: center; 
 justify-content: center; 
 color: #fff; 
 cursor: pointer; 
 transition: var(--transition); 
 font-size: 18px; 
 position: relative; 
 }
 .icon-btn:hover { 
 background: rgba(30,144,255,0.12); 
 border-color: var(--accent); 
 color: var(--accent);
 transform: translateY(-1px); 
 }
 .icon-badge { position: absolute; top: -2px; right: -2px; background: var(--m-red); color: #fff; font-size: 9px; font-weight: 800; width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-main); }

 #fbNotificationPopup {
     position: absolute;
     top: 50px;
     right: 0;
     background: rgba(13, 17, 23, 0.98);
     border: 1px solid rgba(30, 144, 255, 0.3);
     color: #fff;
     padding: 16px;
     border-radius: var(--radius);
     box-shadow: 0 10px 30px rgba(0,0,0,0.8);
     z-index: 9999;
     width: 340px;
     display: none;
     flex-direction: column;
     gap: 12px;
 }
 #fbNotificationPopup.show { display: flex; }
 .fb-notif-header { font-size: 15px; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; }
 .fb-notif-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
 .fb-notif-icon { font-size: 16px; background: rgba(255, 193, 7, 0.15); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255, 193, 7, 0.4); color: #ffc107; }
 .fb-notif-text h5 { font-size: 13px; color: #fff; margin-bottom: 2px; font-weight: 700; }
 .fb-notif-text p { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

 .user-profile-avatar-btn { 
 width: 40px; 
 height: 40px; 
 border-radius: 50%; 
 padding: 2px; 
 border: 2px solid var(--accent); 
 cursor: pointer; 
 transition: var(--transition); 
 overflow: hidden; 
 background: rgba(255,255,255,0.05); 
 display: flex;
 align-items: center;
 justify-content: center;
 }
 .user-profile-avatar-btn:hover { 
 transform: scale(1.08); 
 box-shadow: 0 0 12px var(--accent-glow); 
 }
 .user-profile-avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

 .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 10000; }
 .modal-card { background: rgba(13, 17, 23, 0.98); border: 1px solid rgba(255,255,255,0.1); width: 90%; max-width: 500px; border-radius: var(--radius); padding: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.9); }
 .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
 .modal-header h3 { font-size: 16px; font-weight: 700; color: #fff; }
 .close-modal { background: rgba(255,255,255,0.06); border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
 .close-modal:hover { background: rgba(255,255,255,0.12); color: #fff; }

 .form-group { margin-bottom: 15px; }
 .form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
 .form-control { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 10px 14px; color: #fff; outline: none; font-size: 13px; }
 .profile-hero { text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 16px; margin-bottom: 16px; }
 .profile-hero img.avatar-lg { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--accent); margin: 0 auto 10px auto; object-fit: cover; }
 .profile-hero h2 { font-size: 20px; color: #fff; }
 .profile-hero p { font-size: 13px; color: var(--text-muted); }

 .btn-primary { background: linear-gradient(135deg, var(--accent), #0052cc); color: #fff; padding: 9px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 15px var(--accent-glow); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
 .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5); }
 .btn-secondary { width: 100%; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--transition); }
 .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }

 /* PADDING E ALINHAMENTO DO CORPO IGUAL À COMUNIDADE */
 main { 
 max-width: var(--max-width); 
 margin: 0 auto; 
 padding: 25px 20px; 
 margin-top: 90px; 
 min-height: 70vh;
 }

 @media (max-width: 768px) {
 main { margin-top: 110px; }
 }

 @media (min-width: 768px) {
 header .header-container { flex-direction: row; justify-content: space-between; padding: 15px 40px; }
 nav { gap: 20px; }
 main { padding: 25px 40px; margin-top: 90px; }
 footer { padding: 35px 40px; }
 }
 /* =====================================================================
    GARAGEM VIRTUAL — estilo "Gran Turismo" (v3)
    Linhas finas, tipografia condensada, pouca cor e nada de emojis na UI.
    ===================================================================== */
 :root { --gt-panel: #0b0e13; --gt-line: rgba(255,255,255,0.08); --gt-label: #7d8590; --gt-font: 'Barlow Condensed', system-ui, sans-serif; }
 .gx-layout { display: flex; flex-direction: column; gap: 18px; }
 .gx-label { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gt-label); }
 .gx-num { font-family: var(--gt-font); font-weight: 600; }

 /* ---------- HERO / SHOWROOM ---------- */
 .gx-hero { position: relative; height: 560px; border-radius: 6px; overflow: hidden; background: linear-gradient(180deg, #121722 0%, #06080b 100%); border: 1px solid var(--gt-line); isolation: isolate; }
 .gx-hero-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(30px) brightness(0.3) saturate(1.1); transform: scale(1.1); z-index: -2; }
 .gx-hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, transparent 0%, #000 60%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
 .gx-slides { position: absolute; inset: 0 0 64px 0; }
 .gx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.7s ease, transform 8s ease; transform: scale(1.01); }
 .gx-slide.active { opacity: 1; transform: scale(1.04); }
 .gx-hero.cover-fit .gx-slides { inset: 0; }
 .gx-hero.cover-fit .gx-slide { object-fit: cover; }
 .gx-hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,8,11,0.85) 0%, rgba(6,8,11,0) 22%, rgba(6,8,11,0) 52%, rgba(6,8,11,0.96) 88%); }
 .gx-floor { position: absolute; left: 15%; right: 15%; bottom: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); pointer-events: none; }

 .gx-empty { position: absolute; inset: 0 0 64px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; color: rgba(255,255,255,0.22); }
 .gx-empty p { max-width: 380px; font-size: 13px; line-height: 1.5; color: var(--gt-label); }

 .gx-top { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; z-index: 5; }
 .gx-owner { display: flex; align-items: center; gap: 10px; min-width: 0; }
 .gx-owner img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.35); flex-shrink: 0; }
 .gx-owner-txt { min-width: 0; }
 .gx-owner-txt h4 { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.3px; }
 .gx-owner-txt p { font-size: 11px; color: var(--gt-label); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
 .gx-top-actions { display: flex; gap: 6px; flex-shrink: 0; }
 .gx-icon-btn { width: 36px; height: 36px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.16); background: rgba(6,8,11,0.5); color: #c9d1d9; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
 .gx-icon-btn svg { width: 16px; height: 16px; }
 .gx-icon-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

 .gx-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
 .gx-bottom-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 0 26px 16px; }
 .gx-title small { display: block; margin-bottom: 2px; }
 .gx-title h1 { font-family: var(--gt-font); font-style: italic; font-weight: 800; font-size: 54px; line-height: 0.95; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
 .gx-title h1 .make { color: rgba(255,255,255,0.45); font-weight: 600; margin-right: 10px; }
 .gx-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
 .gx-pill { font-family: var(--gt-font); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 1px 9px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.25); color: #e6edf3; }
 .gx-pill.stage { background: var(--m-red); border-color: var(--m-red); color: #fff; }
 .gx-pill.stock { border-color: rgba(255,255,255,0.4); }
 .gx-cta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
 .gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer; border: 1px solid rgba(255,255,255,0.22); background: rgba(6,8,11,0.55); color: #e6edf3; transition: var(--transition); text-decoration: none; white-space: nowrap; }
 .gx-btn:hover { border-color: rgba(255,255,255,0.55); color: #fff; background: rgba(255,255,255,0.05); }
 .gx-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
 .gx-btn.primary:hover { filter: brightness(1.12); background: var(--accent); }

 /* barra de dados no fundo do hero (estilo GT) */
 .gx-datastrip { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--gt-line); background: rgba(6,8,11,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
 .gx-datastrip div { padding: 10px 18px 11px; min-width: 0; }
 .gx-datastrip div + div { border-left: 1px solid var(--gt-line); }
 .gx-datastrip b { display: block; font-family: var(--gt-font); font-size: 24px; font-weight: 600; color: #fff; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .gx-datastrip b small { font-size: 13px; color: var(--gt-label); margin-left: 3px; font-weight: 500; }
 .gx-datastrip b.na { color: rgba(255,255,255,0.22); }

 .gx-arrow { position: absolute; top: calc(50% - 40px); transform: translateY(-50%); z-index: 6; width: 40px; height: 64px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.14); background: rgba(6,8,11,0.45); color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
 .gx-arrow:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }
 .gx-arrow.prev { left: 16px; } .gx-arrow.next { right: 16px; }

 /* ---------- MINIATURAS ---------- */
 .gx-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
 .gx-thumb { position: relative; flex: 0 0 auto; width: 128px; height: 72px; border-radius: 3px; overflow: hidden; cursor: pointer; border: 1px solid var(--gt-line); opacity: 0.5; transition: var(--transition); background: #000; }
 .gx-thumb img { width: 100%; height: 100%; object-fit: cover; }
 .gx-thumb:hover { opacity: 0.85; }
 .gx-thumb.active { opacity: 1; border-color: #fff; }
 .gx-thumb.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
 .gx-thumb .cover-tag { position: absolute; left: 5px; top: 5px; font-size: 8.5px; font-weight: 800; letter-spacing: 1.2px; background: rgba(0,0,0,0.75); color: #fff; padding: 1px 5px; border-radius: 2px; text-transform: uppercase; }
 .gx-thumb-add { flex: 0 0 auto; width: 128px; height: 72px; border-radius: 3px; border: 1px dashed rgba(255,255,255,0.25); background: transparent; color: var(--gt-label); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: var(--transition); }
 .gx-thumb-add:hover { border-color: #fff; color: #fff; }
 .gx-thumb-add span { font-size: 20px; font-weight: 300; line-height: 1; }

 /* ---------- KPIs ---------- */
 .gx-kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12px; }
 .gx-kpi { background: var(--gt-panel); border: 1px solid var(--gt-line); border-radius: 6px; padding: 14px 18px; position: relative; }
 .gx-kpi .lbl { font-size: 9.5px; font-weight: 700; color: var(--gt-label); text-transform: uppercase; letter-spacing: 2px; }
 .gx-kpi .val { font-family: var(--gt-font); font-size: 38px; font-weight: 600; color: #fff; margin-top: 2px; line-height: 1; }
 .gx-kpi .val small { font-size: 16px; color: var(--gt-label); margin-left: 3px; font-weight: 500; }
 .gx-kpi .sub { font-size: 11px; color: var(--gt-label); margin-top: 4px; }
 .gx-kpi.rank { padding: 0; border: none; background: transparent; }

 /* ---------- FICHA TÉCNICA (data sheet) ---------- */
 .gx-section { background: var(--gt-panel); border: 1px solid var(--gt-line); border-radius: 6px; padding: 20px 22px; }
 .gx-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
 .gx-section-head h2 { font-family: var(--gt-font); font-style: italic; font-size: 22px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 10px; }
 .gx-section-head h2::before { content: ""; width: 3px; height: 18px; background: var(--accent); transform: skewX(-15deg); }
 .gx-specs { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
 .gx-spec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gt-line); min-width: 0; }
 .gx-spec .ico { display: none; }
 .gx-spec .txt { display: contents; }
 .gx-spec .txt span { font-size: 10px; color: var(--gt-label); font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; white-space: nowrap; }
 .gx-spec .txt b { font-family: var(--gt-font); font-size: 19px; color: #fff; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .gx-spec.empty .txt b { color: rgba(255,255,255,0.22); }
 .gx-facts { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
 .gx-facts h4 { font-size: 10px; color: var(--gt-label); font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; margin-bottom: 4px; }
 .gx-facts p { font-size: 13.5px; color: #c9d1d9; line-height: 1.55; }
 .gx-complete { min-width: 190px; }
 .gx-complete .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; font-weight: 700; color: var(--gt-label); letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 6px; }
 .gx-complete .row b { font-family: var(--gt-font); font-size: 18px; color: #fff; letter-spacing: 0; }
 .gx-complete .bar { height: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
 .gx-complete .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s cubic-bezier(0.4,0,0.2,1); }

 /* ---------- TABS ---------- */
 .gx-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--gt-line); overflow-x: auto; padding: 0 4px; }
 .gx-tab { position: relative; flex-shrink: 0; background: transparent; border: none; color: var(--gt-label); font-size: 11.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; padding: 14px 0; cursor: pointer; transition: color 0.2s; white-space: nowrap; text-decoration: none; }
 .gx-tab:hover { color: #fff; }
 .gx-tab.active { color: #fff; }
 .gx-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
 .gx-tab .count { font-family: var(--gt-font); font-size: 13px; color: var(--gt-label); margin-left: 6px; letter-spacing: 0; }
 .gx-panel { display: none; }
 .gx-panel.active { display: block; animation: aeroFadeIn 0.3s ease; }
 .gx-telemetry-wrap { display: flex; justify-content: center; padding: 30px 10px; }
 @keyframes aeroFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

 /* ---------- POSTS ---------- */
 .gx-post-menu { display: none; position: absolute; right: 0; top: 30px; background: #11151d; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.6); z-index: 50; width: 150px; overflow: hidden; }
 .gx-post-menu.show { display: block; }
 .gx-post-menu button { width: 100%; background: transparent; border: none; color: #e6edf3; padding: 11px 14px; text-align: left; font-size: 12.5px; font-weight: 600; cursor: pointer; display: flex; gap: 8px; align-items: center; }
 .gx-post-menu button:hover { background: rgba(255,255,255,0.06); }
 .gx-post-menu button.danger { color: #ff6b6b; border-top: 1px solid var(--gt-line); }
 .gx-post-menu button.danger:hover { background: rgba(239,68,68,0.1); }
 .gx-dots { background: transparent; border: none; color: var(--gt-label); cursor: pointer; font-size: 18px; width: 32px; height: 32px; border-radius: 3px; transition: var(--transition); }
 .gx-dots:hover { color: #fff; background: rgba(255,255,255,0.06); }
 .gx-post-card { background: var(--gt-panel); border: 1px solid var(--gt-line); border-radius: 6px; padding: 20px; transition: var(--transition), opacity 0.3s; }
 .gx-post-card.removing { opacity: 0.3; pointer-events: none; }
 .gx-cat { font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gt-label); border: 1px solid var(--gt-line); padding: 3px 8px; border-radius: 2px; white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
 .gx-vis-select { background: #11151d; border: 1px solid var(--accent); color: #fff; border-radius: 3px; padding: 2px 6px; font-size: 11px; font-weight: 700; outline: none; cursor: pointer; margin-left: 2px; }
 .gx-edit-area { width: 100%; min-height: 90px; background: rgba(0,0,0,0.4); border: 1px solid var(--accent); border-radius: 4px; padding: 12px; color: #fff; font-size: 14px; outline: none; resize: vertical; margin-bottom: 10px; font-family: inherit; }
 .gx-post-gallery { display: grid; gap: 3px; border-radius: 4px; overflow: hidden; margin-bottom: 15px; }
 .gx-post-gallery img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; cursor: zoom-in; }
 .gx-post-gallery.n2 { grid-template-columns: 1fr 1fr; } .gx-post-gallery.n2 img { height: 280px; }
 .gx-post-gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .gx-post-gallery.n3 img:first-child { grid-row: span 2; height: 100%; } .gx-post-gallery.n3 img { height: 180px; }
 .gx-post-actions button { flex: 1; background: transparent; border: none; color: var(--gt-label); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; padding: 9px; border-radius: 3px; transition: var(--transition); }
 .gx-post-actions button:hover { color: #fff; background: rgba(255,255,255,0.04); }
 .gx-post-actions button.on { color: var(--accent); }
 .gx-empty-feed { text-align: center; padding: 40px 20px; color: var(--gt-label); font-size: 13px; background: var(--gt-panel); border: 1px dashed rgba(255,255,255,0.12); border-radius: 6px; }
 .gx-empty-feed span { display: none; }
 #garagemComposerBox { border-radius: 6px !important; background: var(--gt-panel) !important; border: 1px solid var(--gt-line) !important; box-shadow: none !important; }

 /* ---------- MODAL CONFIGURAÇÃO ---------- */
 .gx-modal { position: fixed; inset: 0; z-index: 100001; background: rgba(0,0,0,0.82); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; }
 .gx-modal.show { display: flex; animation: aeroFadeIn 0.2s ease; }
 .gx-modal-card { width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto; background: #0b0e13; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; box-shadow: 0 30px 70px rgba(0,0,0,0.9); position: relative; }
 .gx-modal-card::before { content: ""; position: sticky; top: 0; display: block; height: 3px; z-index: 3; background: linear-gradient(90deg, var(--m-blue) 0 33.3%, var(--m-darkblue) 33.3% 66.6%, var(--m-red) 66.6%); }
 .gx-modal-head { position: sticky; top: 3px; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: #0b0e13; border-bottom: 1px solid var(--gt-line); }
 .gx-modal-head h3 { font-family: var(--gt-font); font-style: italic; font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; }
 .gx-modal-body { padding: 20px 22px; }
 .gx-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
 .gx-field label { display: block; font-size: 10px; font-weight: 700; color: var(--gt-label); text-transform: uppercase; letter-spacing: 1.8px; margin-bottom: 6px; }
 .gx-field input, .gx-field select, .gx-field textarea { width: 100%; background: #06080b; border: 1px solid rgba(255,255,255,0.12); border-radius: 3px; padding: 10px 12px; color: #fff; font-size: 13.5px; outline: none; transition: border-color 0.2s; font-family: inherit; }
 .gx-field input:focus, .gx-field select:focus, .gx-field textarea:focus { border-color: var(--accent); }
 .gx-field select option { background: #0b0e13; }
 .gx-field.wide { grid-column: 1 / -1; }
 .gx-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
 .gx-photo-item { position: relative; aspect-ratio: 16/10; border-radius: 3px; overflow: hidden; border: 1px solid var(--gt-line); background: #000; }
 .gx-photo-item.cover { border-color: #fff; }
 .gx-photo-item img { width: 100%; height: 100%; object-fit: cover; }
 .gx-photo-item .acts { position: absolute; inset: auto 5px 5px 5px; display: flex; justify-content: space-between; gap: 5px; }
 .gx-photo-item .acts button { flex: 1; border: none; border-radius: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px; cursor: pointer; background: rgba(0,0,0,0.8); color: #fff; }
 .gx-photo-item .acts button.del { flex: 0 0 28px; color: #ff6b6b; }
 .gx-photo-item .acts button:hover { background: var(--accent); color: #fff; }
 .gx-photo-item .acts button.del:hover { background: #ef4444; }
 .gx-help { font-size: 11.5px; color: var(--gt-label); margin-top: 8px; }
 .gx-modal-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: #0b0e13; border-top: 1px solid var(--gt-line); }
 .gx-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #11151d; border: 1px solid rgba(255,255,255,0.14); border-left: 3px solid #00e676; color: #fff; padding: 12px 20px; border-radius: 3px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.7); opacity: 0; transition: all 0.3s; z-index: 200001; pointer-events: none; }
 .gx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
 .gx-toast.error { border-left-color: #ef4444; }

 @media (max-width: 1000px) {
   .gx-kpis { grid-template-columns: 1fr 1fr 1fr; }
   .gx-kpi.rank { grid-column: 1 / -1; }
   .gx-specs { grid-template-columns: 1fr 1fr; }
   .gx-title h1 { font-size: 42px; }
 }
 @media (max-width: 768px) {
   .gx-hero { height: 520px; }
   .gx-top { top: 14px; left: 14px; right: 14px; }
   .gx-bottom-main { flex-direction: column; align-items: stretch; padding: 0 14px 12px; }
   .gx-title h1 { font-size: 34px; }
   .gx-cta { justify-content: stretch; }
   .gx-cta .gx-btn { flex: 1; padding: 10px; }
   .gx-datastrip { grid-template-columns: repeat(6, 1fr); }
   .gx-datastrip div { padding: 7px 6px; text-align: center; grid-column: span 2; border-left: none !important; }
   .gx-datastrip div:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--gt-line); }
   .gx-datastrip div:nth-child(2), .gx-datastrip div:nth-child(3), .gx-datastrip div:nth-child(5) { border-left: 1px solid var(--gt-line) !important; }
   .gx-cat { display: none; }
   .gx-datastrip b { font-size: 17px; }
   .gx-datastrip .gx-label { font-size: 8px; letter-spacing: 1px; }
   .gx-arrow { width: 32px; height: 50px; top: 35%; }
   .gx-arrow.prev { left: 6px; } .gx-arrow.next { right: 6px; }
   .gx-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
   .gx-kpi { padding: 10px 12px; }
   .gx-kpi .val { font-size: 28px; }
   .gx-kpi .sub { display: none; }
   .gx-specs { grid-template-columns: 1fr; }
   .gx-facts { grid-template-columns: 1fr; }
   .gx-form-grid { grid-template-columns: 1fr 1fr; }
   .gx-section { padding: 16px; }
   .gx-tabs { gap: 20px; }
   .gx-thumb, .gx-thumb-add { width: 100px; height: 58px; }
 }
 @media (max-width: 420px) {
   .gx-form-grid { grid-template-columns: 1fr; }
 }


 /* ---------- LAYOUT FICHA + PILOTO (v4) ---------- */
 .gx-slides { inset: 0 0 30px 0; }
 .gx-empty { inset: 0 0 150px 0; }
 .gx-info { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: stretch; }
 /* As duas caixas ficam sempre com a mesma altura e o conteúdo distribui-se até ao fundo */
 .gx-sheet, .gx-driver { display: flex; flex-direction: column; height: 100%; }
 .gx-sheet .gx-specs { flex: 1; grid-auto-rows: 1fr; }
 .gx-sheet .gx-spec { align-items: center; }
 .gx-sheet .gx-specs { grid-template-columns: 1fr 1fr; column-gap: 36px; }
 .gx-spec.wide { grid-column: 1 / -1; }
 .gx-sheet .gx-facts { display: block; margin-top: 20px; }
 .gx-driver .gx-complete { margin-top: auto !important; padding-top: 16px; }
 .gx-driver-stats { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
 .gx-driver { padding: 20px; }
 .gx-driver-id { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
 .gx-driver-id img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.3); flex-shrink: 0; }
 .gx-driver-id h4 { font-size: 15px; font-weight: 700; color: #fff; }
 .gx-driver-id p { font-size: 12px; color: var(--gt-label); }
 .gx-driver-stats { margin-top: 14px; }
 .gx-driver-stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--gt-line); }
 .gx-driver-stats span { font-size: 10px; color: var(--gt-label); font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; }
 .gx-driver-stats b { font-family: var(--gt-font); font-size: 20px; font-weight: 600; color: #fff; }
 .gx-driver-stats b small { font-size: 12px; color: var(--gt-label); margin-left: 3px; font-weight: 500; }
 .gx-driver .gx-complete { margin-top: 16px; min-width: 0; }
 .gx-complete-hint { font-size: 11px; color: var(--gt-label); margin-top: 6px; line-height: 1.4; }
 @media (max-width: 1000px) {
   .gx-info { grid-template-columns: 1fr; }
   .gx-driver { height: auto; }
   .gx-sheet { height: auto; }
   .gx-sheet .gx-specs { grid-auto-rows: auto; }
   .gx-driver-stats { flex: none; }
 }
 @media (max-width: 768px) {
   .gx-slides { bottom: 150px; }
   .gx-empty { bottom: 190px; }
   .gx-sheet .gx-specs { grid-template-columns: 1fr; }
 }


 /* ---------- v5: COLUNA ESQUERDA (Ficha + Bimmer Track) | PILOTO ---------- */
 .gx-info { align-items: stretch !important; }
 .gx-sheet, .gx-driver { height: auto !important; }
 .gx-col-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
 .gx-sheet .gx-specs { flex: none !important; grid-auto-rows: auto !important; }
 .gx-track { flex: 1; display: flex; flex-direction: column; }
 .gx-live { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gt-label); }
 .gx-live i { width: 7px; height: 7px; border-radius: 50%; background: #555; }
 .gx-live.on i { background: #00e676; box-shadow: 0 0 8px #00e676; animation: gxBlink 1.6s infinite; }
 @keyframes gxBlink { 50% { opacity: 0.35; } }
 .gx-track-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gt-line); border-bottom: 1px solid var(--gt-line); margin-top: 6px; }
 .gx-track-grid div { padding: 12px 14px; min-width: 0; }
 .gx-track-grid div + div { border-left: 1px solid var(--gt-line); }
 .gx-track-grid b { display: block; font-family: var(--gt-font); font-size: 28px; font-weight: 600; color: #fff; line-height: 1.1; margin-top: 2px; white-space: nowrap; }
 .gx-track-grid b small { font-size: 13px; color: var(--gt-label); margin-left: 3px; font-weight: 500; }
 .gx-track-grid b.na { color: rgba(255,255,255,0.22); }
 .gx-track-runs { flex: 1; margin-top: 14px; display: flex; flex-direction: column; min-height: 0; }
 .gx-track-runs-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
 .gx-run { display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--gt-line); font-size: 12px; color: var(--gt-label); }
 .gx-run b { font-family: var(--gt-font); font-size: 17px; color: #fff; font-weight: 600; }
 .gx-run b small { font-size: 11px; color: var(--gt-label); margin-left: 2px; font-weight: 500; }
 .gx-run .best { color: #00e676; }
 .gx-track-empty { font-size: 12.5px; color: var(--gt-label); padding: 14px 0; }
 .gx-track-actions { display: flex; gap: 8px; margin-top: 16px; }
 .gx-track-actions .gx-btn { flex: 1; }

 .gx-driver .gx-driver-stats { flex: none !important; display: block !important; }
 .gx-friends { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gt-line); flex: 1; display: flex; flex-direction: column; }
 .gx-friends-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
 .gx-friends-head b { font-family: var(--gt-font); font-size: 20px; color: #fff; font-weight: 600; }
 .gx-friends-avatars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
 .gx-friend { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; text-decoration: none; }
 .gx-friend img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.2); transition: border-color 0.2s; }
 .gx-friend:hover img { border-color: var(--accent); }
 .gx-friend span { font-size: 9.5px; color: var(--gt-label); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .gx-friends-empty { font-size: 12px; color: var(--gt-label); margin-bottom: 12px; }
 .gx-friends-btn { width: 100%; margin-top: auto; }
 .gx-driver .gx-complete { margin-top: 16px !important; }

 .gx-feed-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gt-line); padding-bottom: 10px; }
 .gx-feed-head h2 { font-family: var(--gt-font); font-style: italic; font-size: 26px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 10px; }
 .gx-feed-head h2::before { content: ""; width: 3px; height: 20px; background: var(--accent); transform: skewX(-15deg); }
 .gx-feed-head .count { font-size: 18px; color: var(--gt-label); font-style: normal; }

 .gx-track-modal { position: relative; width: 100%; max-width: 520px; display: flex; justify-content: center; }
 .gx-track-modal .telemetry-panel-box { width: 100% !important; max-width: 520px !important; }
 .gx-track-close { position: absolute; top: -14px; right: -14px; z-index: 30; }

 @media (max-width: 1000px) {
   .gx-track-grid { grid-template-columns: 1fr 1fr; }
   .gx-track-grid div:nth-child(3) { border-left: none; }
   .gx-track-grid div:nth-child(n+3) { border-top: 1px solid var(--gt-line); }
 }
 @media (max-width: 768px) {
   .gx-run { grid-template-columns: 1fr auto auto; }
   .gx-run .km { display: none; }
   .gx-track-actions { flex-direction: column; }
   .gx-track-close { top: 6px; right: 6px; }
 }


 /* ---------- v8: Bimmer Track direto + Publicações com filtros ---------- */
 .gx-track-split { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; margin-top: 14px; min-height: 0; }
 .gx-track-split .gx-track-runs { margin-top: 0; }
 .gx-run { gap: 14px; }
 .gx-link { text-decoration: none; color: var(--accent) !important; }
 .gx-link:hover { color: #fff !important; }
 .gx-board-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--gt-line); }
 .gx-board-row .pos { font-family: var(--gt-font); font-style: italic; font-size: 18px; font-weight: 700; color: var(--gt-label); }
 .gx-board-row:first-child .pos { color: #ffd54f; }
 .gx-board-row .nm { font-size: 13px; color: #e6edf3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .gx-board-row b { font-family: var(--gt-font); font-size: 17px; color: #fff; font-weight: 600; }
 .gx-board-row b small { font-size: 11px; color: var(--gt-label); margin-left: 2px; font-weight: 500; }
 .gx-board-row.me { background: linear-gradient(90deg, rgba(30,144,255,0.14), transparent); box-shadow: inset 2px 0 0 var(--accent); padding-left: 8px; }
 .gx-board-row.me .nm { color: #fff; font-weight: 700; }
 .gx-track-hint { font-size: 12px; color: var(--gt-label); line-height: 1.5; border-left: 2px solid var(--gt-line); padding-left: 12px; }
 .gx-track-hint b { color: #c9d1d9; }
 .gx-only-touch { display: none !important; }
 body.gx-touch .gx-only-touch { display: inline-flex !important; }
 body.gx-touch .gx-only-desktop { display: none !important; }
 @media (hover: none), (pointer: coarse) {
   .gx-only-touch { display: inline-flex !important; }
   .gx-only-desktop { display: none !important; }
 }
 .gx-feed-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
 .gx-chip { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--gt-line); color: var(--gt-label); padding: 6px 12px; border-radius: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; transition: var(--transition); }
 .gx-chip span { font-family: var(--gt-font); font-size: 13px; letter-spacing: 0; color: var(--gt-label); }
 .gx-chip:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
 .gx-chip.active { color: #fff; border-color: var(--accent); background: rgba(30,144,255,0.12); }
 .gx-chip.active span { color: #fff; }
 @media (max-width: 768px) {
   .gx-track-split { grid-template-columns: 1fr; gap: 18px; }
 }


 /* ---------- MANUTENÇÃO ---------- */
 .gx-maint-title .gx-maint-ico { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 3px; background: rgba(30,144,255,0.14); color: var(--accent); }
 .gx-maint-title .gx-maint-ico svg { width: 17px; height: 17px; }
 .gx-maint .gx-section-head h2::before { display: none; }
 .gx-maint-head-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
 .gx-private { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gt-label); }
 .gx-alert-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9100; box-shadow: 0 0 8px #ff9100; margin-left: 2px; }
 .gx-btn svg { flex-shrink: 0; }
 .gx-alerts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 16px; }
 .gx-alert { text-align: left; background: rgba(255,255,255,0.02); border: 1px solid var(--gt-line); border-left: 3px solid #3a414c; border-radius: 4px; padding: 12px 14px; cursor: pointer; transition: var(--transition); color: inherit; font-family: inherit; }
 .gx-alert:hover { background: rgba(255,255,255,0.05); }
 .gx-alert b { display: block; font-family: var(--gt-font); font-size: 21px; font-weight: 600; color: #fff; margin: 3px 0 1px; }
 .gx-alert small { font-size: 11px; color: var(--gt-label); }
 .gx-alert.ok { border-left-color: #00e676; }
 .gx-alert.soon { border-left-color: #ff9100; background: rgba(255,145,0,0.06); }
 .gx-alert.soon b { color: #ffb74d; }
 .gx-alert.late { border-left-color: #ef4444; background: rgba(239,68,68,0.08); }
 .gx-alert.late b { color: #ff7b7b; }
 .gx-alert.none b { color: rgba(255,255,255,0.35); }
 .gx-maint-sum { display: grid; grid-template-columns: 1fr 1fr 0.7fr 1.6fr; border-top: 1px solid var(--gt-line); border-bottom: 1px solid var(--gt-line); }
 .gx-maint-sum > div { padding: 12px 16px; min-width: 0; }
 .gx-maint-sum > div + div { border-left: 1px solid var(--gt-line); }
 .gx-maint-sum b { display: block; font-family: var(--gt-font); font-size: 26px; font-weight: 600; color: #fff; margin-top: 2px; }
 .gx-km-edit { display: flex; gap: 6px; margin-top: 6px; }
 .gx-km-edit input { flex: 1; min-width: 0; background: #06080b; border: 1px solid rgba(255,255,255,0.12); border-radius: 3px; padding: 7px 10px; color: #fff; font-family: var(--gt-font); font-size: 18px; outline: none; }
 .gx-km-edit input:focus { border-color: var(--accent); }
 .gx-km-edit .gx-btn { padding: 7px 12px; }
 .gx-maint-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
 .gx-mt-list { display: flex; flex-direction: column; }
 .gx-mt-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 16px; align-items: center; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--gt-line); cursor: pointer; transition: background 0.2s; box-shadow: inset 3px 0 0 var(--mt); padding-left: 14px; }
 .gx-mt-item:hover { background: rgba(255,255,255,0.03); }
 .gx-mt-date { text-align: center; }
 .gx-mt-date b { display: block; font-family: var(--gt-font); font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }
 .gx-mt-date span { font-size: 10.5px; color: var(--gt-label); letter-spacing: 1px; }
 .gx-mt-body { min-width: 0; }
 .gx-mt-type { font-size: 9.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mt); }
 .gx-mt-body h4 { font-size: 14.5px; color: #fff; font-weight: 700; margin: 2px 0; }
 .gx-mt-body p { font-size: 12px; color: var(--gt-label); }
 .gx-mt-body p.notes { color: #a9b1bb; margin-top: 3px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
 .gx-mt-next { display: inline-block; margin-top: 5px; font-size: 10.5px; font-weight: 700; color: #c9d1d9; border: 1px solid var(--gt-line); padding: 1px 7px; border-radius: 2px; }
 .gx-mt-thumbs { display: flex; gap: 4px; }
 .gx-mt-thumbs img { width: 46px; height: 46px; object-fit: cover; border-radius: 3px; border: 1px solid var(--gt-line); cursor: zoom-in; }
 .gx-mt-cost { font-family: var(--gt-font); font-size: 20px; font-weight: 600; color: #fff; min-width: 80px; text-align: right; }
 .gx-mt-empty { padding: 22px 0 6px; color: var(--gt-label); font-size: 13px; line-height: 1.6; }
 .gx-mt-empty b { color: #fff; }
 .gx-mt-empty .gx-btn { margin-top: 12px; }
 .gx-mt-types { display: flex; flex-wrap: wrap; gap: 6px; }
 @media (max-width: 1000px) {
   .gx-alerts { grid-template-columns: 1fr 1fr; }
   .gx-maint-sum { grid-template-columns: 1fr 1fr; }
   .gx-maint-sum > div:nth-child(3) { border-left: none; }
   .gx-maint-sum > div:nth-child(n+3) { border-top: 1px solid var(--gt-line); }
 }
 @media (max-width: 768px) {
   .gx-mt-item { grid-template-columns: 48px 1fr auto; gap: 12px; }
   .gx-mt-thumbs { display: none; }
   .gx-mt-cost { font-size: 17px; min-width: 0; }
   .gx-maint-sum .km { grid-column: 1 / -1; border-left: none !important; }
 }

 /* --- CSS DA CAIXA DE PUBLICAÇÃO INLINE DO FEED --- */
 .feed-inline-composer {
   background: var(--bg-card); 
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: var(--radius); 
   padding: 16px; 
   margin-bottom: 20px;
   box-shadow: 0 8px 25px rgba(0,0,0,0.4); 
   transition: var(--transition);
   position: relative; 
   z-index: 10;
 }
 .composer-top-row { display: flex; align-items: flex-start; gap: 12px; }
 .composer-avatar {
   width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
   border: 2px solid var(--accent); flex-shrink: 0; margin-top: 2px;
 }
 .composer-input-wrapper {
   flex: 1; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 22px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   display: flex; flex-direction: column; overflow: hidden;
 }
 .composer-input-wrapper:hover { background: rgba(0, 0, 0, 0.65); border-color: rgba(255,255,255,0.15); }
 .composer-input-wrapper.expanded {
   background: rgba(0, 0, 0, 0.8); border-color: var(--accent);
   border-radius: 12px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
 }
 .composer-real-input {
   background: transparent; border: none; padding: 11px 18px; color: #fff; font-size: 14px;
   resize: none; outline: none; height: 44px; line-height: 20px; font-family: inherit;
   width: 100%; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }
 .composer-real-input::placeholder { color: var(--text-muted); }
 .composer-input-wrapper.expanded .composer-real-input { height: 70px; }
 .inner-preview-area { padding: 0 14px 10px 14px; display: flex; gap: 10px; flex-wrap: wrap; }
 .inner-preview-area:empty { display: none; }
 .composer-expanded-options { display: none; padding: 12px 0 0 54px; animation: aeroFadeIn 0.3s ease forwards; }
 .composer-form-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
 
 .composer-select {
   background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
   color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 13px; outline: none; width: 100%;
 }
 .composer-select:focus { border-color: var(--accent); }
 
 .img-preview-box { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid var(--accent); }
 .img-preview-box img { width: 100%; height: 100%; object-fit: cover; }
 .remove-img-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.7); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
 .remove-img-btn:hover { background: var(--m-red); }
 
 .composer-actions-row {
   display: flex; justify-content: space-between; align-items: center;
   padding-top: 12px; margin-top: 12px; 
   border-top: 1px solid rgba(255, 255, 255, 0.06); 
   gap: 8px; position: relative;
 }
 .composer-btn-group { display: flex; gap: 8px; flex: 1; justify-content: space-around; } 
 .composer-action-btn {
   flex: 1; background: transparent; border: none; color: var(--text-muted);
   font-size: 12px; font-weight: 700; padding: 8px; border-radius: 8px;
   cursor: pointer; display: flex; align-items: center; justify-content: center;
   gap: 6px; transition: var(--transition);
 }
 .composer-action-btn:hover { background: rgba(30, 144, 255, 0.12); color: #fff; }
 .btn-publish-inline {
   background: linear-gradient(135deg, var(--accent), #0052cc); color: #fff;
   border: none; padding: 9px 20px; border-radius: 20px; font-size: 13px; font-weight: 800;
   cursor: pointer; box-shadow: 0 4px 15px var(--accent-glow); transition: var(--transition);
   display: none;
 }
 .btn-publish-inline:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5); }
 
 /* EMOJI PICKER FLUTUANTE */
 .feed-composer-emoji-panel {
   position: absolute; 
   bottom: calc(100% + 10px); 
   right: 0; 
   background: #1e1e24; 
   border: 1px solid rgba(255, 255, 255, 0.15);
   border-radius: 12px; 
   padding: 14px; 
   box-shadow: 0 15px 40px rgba(0,0,0,0.9);
   width: 280px;
   z-index: 99999;
   display: none; 
   flex-direction: column;
   animation: aeroFadeIn 0.2s ease forwards;
 }
 .feed-composer-emoji-panel.show-emoji {
   display: flex !important;
 }
 .feed-emoji-category-title {
   font-size: 12px;
   color: var(--text-muted);
   margin-bottom: 10px;
   font-weight: 700;
   text-align: left;
 }
 .feed-emoji-grid {
   display: grid; 
   grid-template-columns: repeat(6, 1fr); 
   gap: 6px; 
   max-height: 160px;
   overflow-y: auto;
   padding-right: 4px;
 }
 .feed-emoji-grid::-webkit-scrollbar { width: 5px; }
 .feed-emoji-grid::-webkit-scrollbar-track { background: transparent; }
 .feed-emoji-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
 .feed-emoji-grid span { font-size: 22px; cursor: pointer; text-align: center; user-select: none; border-radius: 6px; padding: 4px 0; transition: transform 0.2s, background 0.2s; }
 .feed-emoji-grid span:hover { transform: scale(1.2); background: rgba(255,255,255,0.1); }

 footer { background: #030405; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 35px 20px; margin-top: 60px; }
 .footer-container { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
 .social-row { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: center; }
 .social-row span { color: var(--accent); font-weight: bold; font-size: 13px; }
 .social-row a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: var(--transition); }
 .social-row a:hover { color: var(--text-main); }
 .footer-links { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: center; }
 .footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
 .footer-links a:hover { color: var(--accent); }
 .copyright { color: var(--text-muted); font-size: 13px; margin-top: 20px; text-align: center; width: 100%; }


 /* resumo da manutenção na Garagem */
 .gx-maint .gx-alerts a.gx-alert { display: block; }
 .gx-maint-mini { font-size: 12.5px; color: var(--gt-label); margin: 2px 0 0; }
 .gx-maint-mini b { color: #e6edf3; font-weight: 700; }
