  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --sam7-blue: #1E10C7;
    --sam7-blue-dark: #0f0a8a;
    --sam7-blue-light: #e8e7fe;
    --sam7-white: #F8F9F7;
    --sam7-black: #000000;
    --gray-100: #f0f2fa;
    --gray-200: #e2e6f0;
    --gray-400: #9ba3be;
    --gray-600: #5a6282;
    --gray-800: #1e2240;
  }

  @keyframes fadeInUp { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
  @keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }

  body {
    font-family: 'Roboto', sans-serif;
    background: #e8eaf4;
    color: var(--gray-800);
    min-height: 100vh;
    padding: 2rem 1rem;
  }

  .container {
    max-width: 820px;
    margin: 0 auto;
    animation: fadeInUp .5s ease both;
  }

  /* ===== HEADER ===== */
  .header {
    background: linear-gradient(135deg, var(--sam7-blue-dark), var(--sam7-blue) 55%, #3b2ef5);
    border-radius: 20px;
    padding: 2rem 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
  }
  .header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -30px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
  }

  .header-left { position: relative; z-index: 1; }

  .badge-orcamento {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
  }

  .header h1 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .header-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
  }

  .header-right {
    position: relative;
    z-index: 1;
    text-align: right;
    flex-shrink: 0;
  }

  .logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
  }
  .logo-text span { color: rgba(255,255,255,0.5); }

  .header-date {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
  }

  /* ===== CARD ===== */
  .card {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--gray-200);
    animation: fadeInUp .5s ease both;
  }

  .card:nth-child(2) { animation-delay: .05s; }
  .card:nth-child(3) { animation-delay: .10s; }
  .card:nth-child(4) { animation-delay: .15s; }

  .section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--sam7-blue);
    margin-bottom: 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sam7-blue-light);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .section-label::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--sam7-blue);
    border-radius: 2px;
    flex-shrink: 0;
  }

  /* ===== CLIENTE INFO ===== */
  .client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .client-item {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 12px 16px;
  }
  .client-item-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: 3px;
  }
  .client-item-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
  }

  /* ===== SERVIÇOS ===== */
  .servico-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
  }
  .servico-row:last-child { border-bottom: none; padding-bottom: 0; }
  .servico-row:first-child { padding-top: 0; }

  .servico-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sam7-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }

  .servico-body { flex: 1; }

  .servico-nome {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
  }

  .servico-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.6;
  }

  .servico-desc ul {
    list-style: none;
    margin-top: 6px;
  }
  .servico-desc ul li {
    padding: 2px 0;
    display: flex;
    gap: 6px;
  }
  .servico-desc ul li::before {
    content: '\2713';
    color: var(--sam7-blue);
    font-weight: 700;
    flex-shrink: 0;
  }

  .servico-preco {
    font-size: 20px;
    font-weight: 900;
    color: var(--sam7-blue);
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
  }
  .servico-preco-label {
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 400;
    text-align: right;
    margin-top: 2px;
  }

  /* ===== TOTAL ===== */
  .total-box {
    background: linear-gradient(135deg, var(--sam7-blue-dark), var(--sam7-blue));
    border-radius: 16px;
    padding: 1.4rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
  }

  .total-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .total-items {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
  }

  .total-val {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
  }

  /* ===== ENTREGÁVEIS ===== */
  .entrega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .entrega-item {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 14px 16px;
    border-left: 3px solid var(--sam7-blue);
    font-size: 13px;
    color: var(--gray-800);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .entrega-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sam7-blue);
    flex-shrink: 0;
  }

  /* ===== VALIDADE / PAGAMENTO ===== */
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .info-item {
    padding: 14px 16px;
    background: var(--gray-100);
    border-radius: 12px;
  }
  .info-item-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: 4px;
  }
  .info-item-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
  }

  /* ===== FOOTER ===== */
  .footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--gray-400);
    font-size: 12px;
    line-height: 1.8;
  }
  .footer strong {
    color: var(--sam7-blue);
    font-weight: 700;
  }

  @media (max-width: 600px) {
    .header { flex-direction: column; gap: 1rem; }
    .header-right { text-align: left; }
    .client-grid, .entrega-grid, .info-grid { grid-template-columns: 1fr; }
    .servico-preco { font-size: 17px; }
    .total-val { font-size: 28px; }
    body { padding: 1rem .6rem; }
    .card { padding: 1.4rem 1.2rem; }
  }
