@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@1,600;1,700&display=swap');

/*
  SONHO REAL VEÍCULOS
  Estilos do site em português.
  Versão leve: menu simplificado, carrossel menor na tela principal,
  imagens otimizadas e visual mais profissional.
*/

:root {
      --bg: #f4f5f7;
      --card: #ffffff;
      --text: #1b1f24;
      --muted: #6b7280;
      --primary: #c9a227;
      --primary-dark: #9c7b16;
      --dark: #101318;
      --border: #e5e7eb;
      --danger: #dc2626;
      --success: #16a34a;
      --warning: #f59e0b;
      --shadow: 0 20px 45px rgba(0,0,0,.12);
    }

    body.dark {
      --bg: #0f1115;
      --card: #171a21;
      --text: #f4f5f7;
      --muted: #a1a1aa;
      --border: #2d313a;
      --dark: #050608;
      --shadow: 0 20px 45px rgba(0,0,0,.35);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; }
    html { scroll-behavior: smooth; }
    body { background: var(--bg); color: var(--text); transition: .3s; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
    a { text-decoration: none; color: inherit; }
    button, input, select, textarea { font-family: inherit; }
    button { user-select: none; }

    .topbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 50;
      min-height: 74px; display: flex; align-items: center; justify-content: space-between;
      padding: 0 6%; background: rgba(10,12,16,.82); backdrop-filter: blur(12px);
      color: white; border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .5px; }
    .brand-logo {
      width: 58px; height: 58px; object-fit: contain; border-radius: 0;
      background: transparent; padding: 0;
      filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
    }
    .brand span { font-size: 17px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }

    .nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .nav button, .nav a {
      border: 0; background: transparent; color: white; cursor: pointer; font-size: 13px;
      padding: 9px 12px; border-radius: 999px; font-weight: 500; letter-spacing: .2px;
      transition: background .2s, color .2s;
    }
    .nav .admin-link { background: var(--primary); color: #111; font-weight: 700; letter-spacing: .3px; }

    .hero {
      min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
      overflow: hidden; color: white; text-align: center; padding: 120px 20px 80px;
    }
    .hero-bg {
      position: absolute; inset: 0; background-size: cover; background-position: center;
      transition: opacity 1s ease; z-index: 1;
    }
    .hero::after {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.76));
      z-index: 2;
    }
    .hero-content { position: relative; z-index: 3; max-width: 900px; }
    .hero-logo {
      width: min(640px, 90vw); margin-bottom: 22px; opacity: 1;
      filter: drop-shadow(0 12px 24px rgba(0,0,0,.6));
    }
    .hero h1 { font-size: clamp(34px, 7vw, 72px); line-height: 1.05; margin-bottom: 18px; font-weight: 900; letter-spacing: -2px; }
    .hero p { font-size: clamp(16px, 2.2vw, 21px); color: rgba(255,255,255,.82); margin-bottom: 30px; font-weight: 400; line-height: 1.7; }

    .btn {
      border: 0; background: var(--primary); color: #111; padding: 13px 26px; border-radius: 999px;
      font-weight: 700; font-size: 14px; letter-spacing: .4px; cursor: pointer; transition: .25s; display: inline-flex; align-items: center;
      justify-content: center; gap: 8px;
    }
    .btn:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
    .btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
    .btn.danger { background: var(--danger); color: white; }
    .btn.success { background: var(--success); color: white; }
    .btn.warning { background: var(--warning); color: #111; }

    section { padding: 70px 6%; }
    .section-title { font-size: clamp(26px, 4vw, 42px); margin-bottom: 12px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
    .section-title em { color: var(--primary); font-style: italic; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
    .section-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--primary); margin-bottom: 10px; display: block; }
    .section-subtitle { color: var(--muted); margin-bottom: 34px; max-width: 760px; line-height: 1.7; font-size: 15px; }

    .about-wrap {
      display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
    }
    .about-card, .finance-card, .delivery-card {
      background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 24px;
      box-shadow: var(--shadow);
    }
    .about-card p { color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
    .stat {
      background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.28);
      padding: 16px; border-radius: 18px;
    }
    .stat strong { font-size: 24px; color: var(--primary); display: block; }

    .bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 12px; margin-top: 20px; }
    .bank-logo {
      background: var(--card); border: 1px solid var(--border); border-radius: 14px;
      min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center;
      box-shadow: 0 4px 14px rgba(0,0,0,.07); padding: 12px 8px; gap: 6px; transition: transform .2s, box-shadow .2s;
    }
    .bank-logo:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.13); }
    .bank-logo img { width: 36px; height: 36px; object-fit: contain; display: block; border-radius: 6px; }
    .bk-name { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; letter-spacing: .1px; }

    .delivery-carousel { position: relative; }
    .delivery-viewport { overflow: hidden; }
    .delivery-track { display: flex; gap: 18px; transition: transform .65s ease; will-change: transform; }
    .delivery-slide { flex: 0 0 calc((100% - 54px) / 4); min-width: calc((100% - 54px) / 4); }
    .delivery-card { padding: 0; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
    .delivery-image-frame { width: 100%; height: 240px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    body.dark .delivery-image-frame { background: #11151b; }
    .delivery-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
    .delivery-card div { padding: 18px; flex: 1; }
    .delivery-card h3 { margin-bottom: 6px; }
    .delivery-card p { color: var(--muted); line-height: 1.5; }
    .delivery-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
    .carousel-buttons { display: flex; gap: 10px; }
    .carousel-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 20px; font-weight: 700; box-shadow: var(--shadow); }
    .carousel-btn:hover { border-color: var(--primary); color: var(--primary); }
    .carousel-dots { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; }
    .carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: #c7c9d1; border: 0; cursor: pointer; }
    .carousel-dot.active { background: var(--primary); }

    .filters { display: flex; gap: 12px; margin-bottom: 20px; }
    .filters input { flex: 1; }

    .category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; justify-content: center; }
    .pill { border: 1.5px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s; white-space: nowrap; }
    .pill:hover { border-color: var(--primary); color: var(--primary); }
    .pill.active { background: var(--primary); color: #111; border-color: var(--primary); }

    .vehicle-carousel { display: flex; align-items: center; gap: 10px; }
    .vehicle-carousel .grid { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .carousel-arrow { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, color .15s; }
    .carousel-arrow:hover { background: var(--primary); border-color: var(--primary); color: #111; }

    .carousel-dots { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s, transform .2s; }
    .dot.active { background: var(--primary); transform: scale(1.25); }

    input, select, textarea {
      width: 100%; border: 1px solid var(--border); background: var(--card); color: var(--text);
      border-radius: 12px; padding: 13px 14px; outline: none;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--primary); }

    .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
    .card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
    .card:hover { transform: translateY(-5px); box-shadow: 0 32px 60px rgba(0,0,0,.18); border-color: var(--primary); }
    .vehicle-imagem-area { background: linear-gradient(180deg, #121722, #0d1118); }
    .vehicle-img { height: 210px; width: 100%; object-fit: cover; object-position: center; background: linear-gradient(180deg, #121722, #0d1118); display: block; }
    .vehicle-body { padding: 18px; }
    .vehicle-title { font-size: 17px; margin-bottom: 6px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
    .vehicle-info { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
    .price { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 16px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }

    .status {
      display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
      margin-bottom: 12px; background: #e8f7ef; color: #137a3d;
    }
    .status.reserved { background: #fff7d6; color: #8a6500; }
    .status.sold { background: #fee2e2; color: #991b1b; }

    .admin-page { min-height: 100vh; padding: 110px 6% 60px; background: var(--bg); }
    .login-box {
      max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
      border-radius: 24px; box-shadow: var(--shadow); padding: 34px;
    }
    .login-box h1 { margin-bottom: 8px; font-size: 30px; }
    .login-box p { color: var(--muted); line-height: 1.5; margin-bottom: 24px; }

    .form-group { margin-bottom: 14px; }
    .form-group label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 14px; }
    .hint { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.4; }

    .message { padding: 12px 14px; border-radius: 12px; margin: 14px 0; font-weight: 700; display: none; }
    .message.error { background: #fee2e2; color: #991b1b; display: block; }
    .message.success { background: #dcfce7; color: #166534; display: block; }
    .message.warning { background: #fef3c7; color: #92400e; display: block; }

    .dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 28px; }
    .dashboard-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
    .sidebar {
      background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px;
      height: fit-content; box-shadow: var(--shadow); position: sticky; top: 92px;
    }
    .sidebar button {
      width: 100%; text-align: left; background: transparent; color: var(--text); border: 0;
      padding: 13px 14px; border-radius: 12px; cursor: pointer; font-weight: 700;
    }
    .sidebar button.active, .sidebar button:hover { background: var(--primary); color: #111; }

    .panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
    .panel h2 { margin-bottom: 18px; }
    .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
    .form-grid .full { grid-column: 1 / -1; }

    .cash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
    .cash-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 18px;
    }
    .cash-card small { color: var(--muted); font-weight: 700; display: block; margin-bottom: 8px; }
    .cash-card strong { font-size: 22px; display: block; }

    table { width: 100%; border-collapse: collapse; margin-top: 20px; overflow: hidden; }
    th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: middle; }
    th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
    .thumb { width: 74px; height: 52px; object-fit: contain; object-position: center; border-radius: 10px; background: linear-gradient(180deg, #121722, #0d1118); }
    .table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .small-btn { border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-weight: 700; background: var(--primary); color: #111; }
    .small-btn.danger { background: var(--danger); color: white; }
    .small-btn.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

        .image-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
    .preview-img-wrap { position: relative; display: inline-flex; cursor: grab; }
    .preview-img-wrap:active { cursor: grabbing; }
    .preview-img-wrap[draggable]:hover { outline: 2px solid var(--primary); border-radius: 10px; }
    .preview-img { width: 90px; height: 65px; border-radius: 10px; object-fit: contain; object-position: center; background: linear-gradient(180deg, #121722, #0d1118); border: 1px solid var(--border); pointer-events: none; }
    .img-badge { position: absolute; top: 4px; left: 4px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; line-height: 1.4; pointer-events: none; }
    .img-badge.cloud { background: #dcfce7; color: #166534; }
    .img-badge.local { background: #fef9c3; color: #854d0e; }
    .img-delete-btn { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(220,38,38,.85); color: #fff; border: none; font-size: 10px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
    .img-delete-btn:hover { background: #b91c1c; }

    .maintenance-box {
      background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 14px;
    }
    .maintenance-row {
      display: grid; grid-template-columns: 1.3fr .7fr .7fr auto; gap: 10px; margin-bottom: 10px; align-items: center;
    }
    .period-filter {
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px;
      background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 16px;
    }

    .whatsapp-float {
      position: fixed; right: 22px; bottom: 22px; background: #25d366; color: white; width: 62px; height: 62px;
      border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px;
      box-shadow: var(--shadow); z-index: 60; font-weight: 900;
    }
    .whatsapp-float svg { width: 31px; height: 31px; display: block; }

    .instagram-float {
      position: fixed; right: 22px; bottom: 94px;
      background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
      color: white; width: 62px; height: 62px;
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      box-shadow: var(--shadow); z-index: 60;
    }
    .instagram-float svg { width: 30px; height: 30px; display: block; }

    .modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 100; padding: 24px; align-items: center; justify-content: center; }
    .modal.open { display: flex; }
    .modal-content {
      background: var(--card); color: var(--text); max-width: 900px; width: 100%; border-radius: 24px;
      overflow: hidden; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto;
    }
    .modal-img { width: 100%; height: 420px; object-fit: contain; object-position: center; background: linear-gradient(180deg, #121722, #0d1118); }
    .modal-body { padding: 24px; }
    .modal-close { float: right; border: 0; background: var(--danger); color: white; border-radius: 999px; padding: 8px 13px; cursor: pointer; font-weight: 800; }

    .hide { display: none !important; }


    #app {
      margin-left: 280px;
    }

    .sidebar-site {
      position: fixed;
      top: 0;
      left: 0;
      width: 280px;
      height: 100vh;
      background: #12151b;
      color: #d8dee9;
      z-index: 80;
      border-right: 1px solid rgba(255,255,255,.08);
      display: flex;
      flex-direction: column;
      padding: 18px 18px 20px;
      overflow-y: auto;
    }

    .sidebar-logo {
      display: block;
      width: 100%;
      padding: 6px 4px 20px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      margin-bottom: 18px;
    }

    .sidebar-logo img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
      filter: drop-shadow(0 10px 16px rgba(0,0,0,.45));
    }

    .sidebar-menu {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .sidebar-menu a {
      display: flex;
      align-items: center;
      gap: 13px;
      padding: 14px 16px;
      border-radius: 12px;
      color: #aeb7c7;
      font-weight: 700;
      transition: .2s;
    }

    .sidebar-menu a span {
      width: 20px;
      text-align: center;
      color: var(--primary);
    }

    .sidebar-menu a:hover,
    .sidebar-menu a.active {
      background: rgba(201,162,39,.12);
      color: #fff;
      box-shadow: inset 3px 0 0 var(--primary);
    }

    .sidebar-deliveries { display: none; padding: 0 8px; width: 100%; overflow: hidden; box-sizing: border-box; }
    .sidebar-deliveries.has-deliveries { display: block; }
    .sdel-label {
      font-size: 9px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 1.5px; color: var(--muted); text-align: center;
      margin-bottom: 6px;
    }
    .sdel-img {
      width: 100%; height: 90px; object-fit: contain;
      border-radius: 8px; display: block;
      background: rgba(255,255,255,.04);
      transition: opacity .4s;
    }
    .sdel-caption {
      font-size: 11px; color: var(--muted); text-align: center;
      margin-top: 4px; margin-bottom: 4px; white-space: nowrap;
      overflow: hidden; text-overflow: ellipsis;
    }
    .sdel-dots {
      display: flex; justify-content: center; gap: 4px; margin-top: 4px; margin-bottom: 8px;
    }
    .sdel-dot {
      width: 4px; height: 4px; border-radius: 50%;
      background: rgba(255,255,255,.2); transition: background .3s;
    }
    .sdel-dot.active { background: var(--primary); }

    .sidebar-cta {
      margin-top: auto;
      border: 1px solid rgba(201,162,39,.36);
      background: rgba(201,162,39,.06);
      border-radius: 16px;
      padding: 18px;
      text-align: center;
    }

    .sidebar-cta h3 {
      color: #fff;
      font-size: 17px;
      margin-bottom: 8px;
      line-height: 1.3;
    }

    .sidebar-cta p {
      color: #b8c0cf;
      font-size: 14px;
      line-height: 1.5;
      margin-bottom: 14px;
    }

    .sidebar-cta a {
      display: block;
      background: var(--primary);
      color: #111;
      font-weight: 900;
      border-radius: 10px;
      padding: 11px 12px;
    }

    .topbar {
      left: 280px;
      height: 72px;
      padding: 0 34px;
      background: rgba(15,17,22,.94);
      border-bottom: 1px solid rgba(255,255,255,.08);
      justify-content: space-between;
      gap: 22px;
    }

    .top-search {
      flex: 1;
      max-width: 560px;
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255,255,255,.045);
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 999px;
      padding: 0 16px;
      color: #aeb7c7;
    }

    .top-search input {
      border: 0;
      background: transparent;
      color: #fff;
      padding: 13px 0;
    }

    .top-search input::placeholder {
      color: #8f98a8;
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .theme-icon {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.04);
      color: #fff;
      font-size: 20px;
      cursor: pointer;
    }

    .top-actions .admin-link {
      background: transparent;
      border: 1px solid rgba(255,255,255,.12);
      color: #d8dee9;
      padding: 12px 16px;
      border-radius: 10px;
      font-weight: 800;
    }

    .contact-link {
      background: var(--primary);
      color: #111;
      padding: 12px 18px;
      border-radius: 10px;
      font-weight: 900;
    }

    .hero {
      min-height: 92vh;
      justify-content: flex-start;
      text-align: left;
      padding-left: 12%;
      padding-right: 8%;
    }

    .hero-content {
      max-width: 720px;
    }

    .hero-logo {
      width: min(520px, 84vw);
      margin-bottom: 28px;
    }

    .hero h1 {
      font-size: clamp(42px, 5.6vw, 76px);
      line-height: .98;
    }

    .hero h1 em {
      color: var(--primary);
      font-style: italic;
      font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    }

    .hero p {
      max-width: 640px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero-actions .btn.secondary-dark {
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.24);
      color: #fff;
    }

    .hero-actions .btn.secondary-dark:hover {
      background: rgba(255,255,255,.16);
      color: #fff;
    }


    /* Ajustes de leveza, fonte e visual profissional */
    body {
      letter-spacing: -0.01em;
    }

    .vehicle-img,
    .modal-img,
    .preview-img,
    .thumb {
      background: transparent !important;
    }

    .vehicle-img {
      object-fit: cover !important;
    }

    .delivery-card,
    .vehicle-card,
    .card {
      border-color: rgba(255,255,255,.08);
    }

    .delivery-image-frame {
      background: transparent !important;
      height: 245px;
      border-radius: 18px;
    }

    .delivery-card {
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }

    .delivery-card img {
      border-radius: 18px;
      object-fit: cover !important;
    }

    .hero {
      min-height: 88vh;
      background: radial-gradient(circle at 70% 35%, rgba(201,162,39,.12), transparent 35%),
                  linear-gradient(135deg, #0d1016, #141922 55%, #080a0e);
      overflow: hidden;
      padding-left: 6%;
      padding-right: 7%;
    }

    .hero-bg {
      display: none !important;
    }

    .hero::after {
      display: none !important;
    }

    .hero-content {
      width: 100%;
      max-width: 1140px;
      display: grid;
      grid-template-columns: 1.04fr .96fr;
      gap: 42px;
      align-items: center;
      margin: 0 auto;
    }

    .hero-text-box {
      position: relative;
      z-index: 2;
    }

    .hero-text-box .hero-logo {
      width: min(460px, 78vw);
      margin-bottom: 30px;
    }

    .hero h1 {
      margin-bottom: 20px;
    }

    .hero-car-box {
      position: relative;
      z-index: 2;
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0;
      box-shadow: none;
      overflow: visible;
      margin-right: 22px;
    }

    .hero-car-frame {
      width: 100%;
      aspect-ratio: 4 / 3;
      min-height: 340px;
      border-radius: 18px;
      overflow: hidden;
      background: linear-gradient(135deg, #0d1118, #151a23);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero-car-frame img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      display: block;
      transition: opacity .6s ease, transform .35s ease;
      background: transparent;
      border-radius: 18px;
      box-shadow: 0 10px 28px rgba(0,0,0,.18);
    }

    .hero-car-box:hover .hero-car-frame img {
      transform: none;
    }

    .hero-car-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      padding: 10px 2px 0;
      color: #f5f7fb;
    }

    .hero-car-info strong {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .hero-car-info span {
      color: var(--primary);
      font-weight: 900;
      white-space: nowrap;
    }

    .delivery-only-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
      flex: 1;
    }

    .delivery-only-grid .delivery-card img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      object-position: center;
      display: block;
      background: linear-gradient(180deg, #121722, #0d1118);
    }

    @media (max-width: 1100px) {
      .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .hero-car-box {
        margin-right: 0;
      }

      .hero-actions {
        justify-content: center;
      }

      .hero-car-frame {
        min-height: 0;
        height: auto;
        border-radius: 16px;
      }

      .delivery-only-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 650px) {
      .hero-car-frame {
        min-height: 0;
        height: auto;
        border-radius: 16px;
      }

      .delivery-only-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 1100px) {
      .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .vehicle-carousel .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .bank-grid { grid-template-columns: repeat(3, 1fr); }
      .delivery-slide { flex-basis: calc((100% - 18px) / 2); min-width: calc((100% - 18px) / 2); }
      .form-grid, .dashboard-grid, .about-wrap, .cash-grid { grid-template-columns: 1fr; }
      .carousel-arrow { width: 36px; height: 36px; font-size: 22px; }
      .sidebar { position: static; }
      .brand span { display: none; }
    }

    @media (max-width: 650px) {

      #app {
        margin-left: 0;
      }

      .sidebar-site {
        position: relative;
        width: 100%;
        height: auto;
        padding: 14px;
        z-index: 90;
      }

      .sidebar-logo {
        max-width: 300px;
        margin: 0 auto 12px;
        border-bottom: 0;
        padding-bottom: 8px;
      }

      .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
      }

      .sidebar-cta {
        margin-top: 14px;
      }

      .topbar {
        position: sticky;
        left: 0;
        top: 0;
        height: auto;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
      }

      .top-search {
        max-width: none;
      }

      .top-actions {
        justify-content: space-between;
      }

      .hero {
        text-align: center;
        justify-content: center;
        padding-left: 5%;
        padding-right: 5%;
      }

      .hero-actions {
        justify-content: center;
      }

      .nav { font-size: 12px; gap: 3px; }
      .nav button, .nav a { font-size: 12px; padding: 7px 8px; }
      .grid, .bank-grid, .stats { grid-template-columns: 1fr; }
      .vehicle-carousel .grid { grid-template-columns: 1fr; }
      .vehicle-carousel { gap: 4px; }
      .carousel-arrow { width: 32px; height: 32px; font-size: 20px; }
      .delivery-slide { flex-basis: 100%; min-width: 100%; }
      section { padding: 52px 5%; }
      .admin-page { padding: 108px 5% 40px; }
      .dashboard-header { flex-direction: column; align-items: stretch; }
      table { display: block; overflow-x: auto; }
      .modal-img { height: 260px; }
      .delivery-image-frame { height: 220px; }
      .hero-logo { width: min(210px, 54vw); }
    }


/* Correção final: cards do estoque visíveis e sem faixa branca */
.vehicle-card {
  display: block;
  background: var(--card);
}

.vehicle-imagem-area {
  width: 100%;
  height: 210px;
  background: linear-gradient(180deg, #121722, #0d1118);
  overflow: hidden;
}

.vehicle-imagem-area .vehicle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  display: block;
}

#vehicleGrid {
  min-height: 260px;
}



/* Admin limpo: esconder chamadas comerciais dentro da área administrativa */
body.admin-mode .sidebar-cta,
body.admin-mode .contact-link,
body.admin-mode .whatsapp-float,
body.admin-mode .instagram-float {
  display: none !important;
}

.admin-home-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .admin-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .admin-home-grid {
    grid-template-columns: 1fr;
  }
}



/* Proteção simples da versão estática */
body:not(.admin-mode) .admin-link {
  display: none !important;
}

.security-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 14px;
}

body.admin-mode .sidebar-cta,
body.admin-mode .contact-link,
body.admin-mode .whatsapp-float,
body.admin-mode .instagram-float {
  display: none !important;
}



/* Opcionais e acessórios dos veículos */
.features-admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.feature-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #e5e7eb;
  color: #0b0d12;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

body.dark .feature-option {
  background: #242a35;
  color: #f5f7fb;
}

.feature-option input {
  display: none;
}

.feature-option span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #05070c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.feature-option:has(input:checked) {
  background: var(--primary);
  color: #111;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  background: #e5e7eb;
  color: #111827;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  margin: 4px 5px 0 0;
}

body.dark .feature-tag {
  background: #242a35;
  color: #f5f7fb;
}

.vehicle-features {
  margin-top: 12px;
}



/* Enquadramento completo das imagens interativas da tela principal */
.hero-car-frame {
  background: radial-gradient(circle at center, rgba(255,255,255,.035), rgba(13,17,24,.96)) !important;
}

.hero-car-frame img {
  object-fit: contain !important;
  padding: 0 !important;
}



/* Galeria do veículo e compartilhamento */
.vehicle-imagem-area {
  cursor: pointer;
}

.vehicle-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

body.dark .btn.secondary {
  color: #fff;
  border-color: #384152;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.modal-gallery {
  margin: 12px 0 18px;
}

.modal-gallery-main {
  width: 100%;
  background: linear-gradient(135deg, #0d1118, #151a23);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery-main img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  display: block;
}

.modal-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb-btn {
  border: 2px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb-btn.active {
  border-color: var(--primary);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.modal-description { color: var(--muted); line-height: 1.7; }

.modal-status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px;
}
.modal-status-badge.status-available { background: #dcfce7; color: #166534; }
.modal-status-badge.status-reserved  { background: #fef9c3; color: #854d0e; }
.modal-status-badge.status-sold      { background: #fee2e2; color: #991b1b; }

.modal-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.info-chip {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.info-chip-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.info-chip strong { font-size: 14px; color: var(--text); font-weight: 700; }

.modal-vehicle-desc {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 14px; border: 1px solid var(--border);
}

@media (max-width: 650px) {
  .modal-gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vehicle-card-actions .btn {
    width: 100%;
  }
}

@media print {
  .sidebar-site, .topbar, .sidebar, #reportsSection > h2 + p,
  #reportsSection > div:first-of-type, #reportsSection > div:nth-of-type(2) { display: none !important; }
  .admin-page { padding: 20px !important; margin: 0 !important; }
  .dashboard-grid { display: block !important; }
  .panel { display: block !important; }
  body { background: white !important; color: black !important; }
  table { border-collapse: collapse; width: 100%; }
  th, td { border: 1px solid #ccc; padding: 8px; }
}

