/* OttoCare VEHICLE PAGE module — scoped to .oc-vpage. Look moved from rewards_review_3.html (#vehicle-page, .vehicle-pill). */
.oc-vpage, .oc-vpage * { box-sizing: border-box; }
.oc-vpage {
  position: absolute;          /* covers .oc-phone; vehicle-page.js switches to fixed when there is no phone */
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  background: #000 var(--vpage-bg, none) center top / cover no-repeat;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}
.oc-vpage::before { content: ''; position: absolute; inset: 0; background: rgba(4, 10, 24, 0.35); pointer-events: none; }
.oc-vpage[hidden], .oc-vpage [hidden] { display: none !important; }
.oc-vpage button { font: inherit; color: inherit; }

.oc-vpage-top { position: relative; z-index: 2; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 44px 22px 16px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 75%, rgba(0, 0, 0, 0.35) 100%); }
.oc-vpage-back {
  position: absolute; left: 18px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); font-size: 15px; cursor: pointer;
}
.oc-vpage-back:hover { background: rgba(255, 255, 255, 0.18); }
.oc-vpage-title { font-family: 'DM Serif Display', serif; font-size: 18px; }

.oc-vpage-scroll {
  position: relative; z-index: 1; flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; padding-bottom: 110px;
  scrollbar-width: thin; scrollbar-color: rgba(201, 168, 76, 0.55) transparent;
}
.oc-vpage-scroll::-webkit-scrollbar { width: 4px; }
.oc-vpage-scroll::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.55); border-radius: 4px; }

/* warranty banner */
.oc-vpage-warranty { display: flex; align-items: center; gap: 14px; padding: 14px 16px 18px; background: linear-gradient(135deg, rgba(93, 142, 255, 0.16) 0%, rgba(93, 142, 255, 0.08) 100%); }
.oc-vpage-warranty-badge { width: 76px; height: 76px; flex-shrink: 0; object-fit: contain; }
.oc-vpage-warranty-title { margin-bottom: 4px; color: #5d8eff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.oc-vpage-warranty-text { color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 1.4; }

/* vehicle cards — classes and look from the old vehicle page */
.oc-vpage-list { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 0; }
.oc-vpage-empty { padding: 48px 24px; text-align: center; color: rgba(255, 255, 255, 0.3); font-size: 14px; }
.oc-vpage .vehicle-pill { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(145deg, #1a1a2e 0%, #12121e 60%, #0a0a16 100%); }
.oc-vpage .vehicle-pill-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px 10px; }
.oc-vpage .vehicle-pill-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; }
.oc-vpage .vehicle-pill-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6); font-size: 18px; }
.oc-vpage .vehicle-pill-side:hover .vehicle-pill-icon, .oc-vpage .vehicle-pill-side.on .vehicle-pill-icon { border-color: rgba(201, 168, 76, 0.45); color: #c9a84c; }
.oc-vpage .vehicle-pill-mini { color: rgba(255, 255, 255, 0.4); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; }
.oc-vpage .vehicle-pill-caret { color: rgba(255, 255, 255, 0.25); font-size: 10px; line-height: 1; }
.oc-vpage .vehicle-pill-info { flex: 1; min-width: 0; }
.oc-vpage .vehicle-pill-year { overflow: hidden; color: rgba(255, 255, 255, 0.35); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-overflow: ellipsis; white-space: pre; }
.oc-vpage .vehicle-pill-name { font-family: 'DM Serif Display', serif; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }

/* health gauge */
.oc-vpage-gauge { position: relative; display: block; width: 64px; height: 34px; }
.oc-vpage-gauge svg { display: block; width: 64px; height: 34px; overflow: visible; }
.oc-vpage-gauge-track, .oc-vpage-gauge-fill { fill: none; stroke-width: 7; stroke-linecap: round; }
.oc-vpage-gauge-track { stroke: rgba(255, 255, 255, 0.18); }
.oc-vpage-gauge-fill { stroke: var(--health-gauge-gradient); stroke-dasharray: var(--health-percent, 0) 100; filter: drop-shadow(0 0 8px var(--health-glow, transparent)); }
.oc-vpage-gauge-tick { stroke: rgba(13, 17, 23, 0.55); stroke-width: 1.6; stroke-linecap: round; }
.oc-vpage-score { position: absolute; left: 0; right: 0; bottom: 0; font-size: 16px; font-weight: 700; line-height: 1; text-align: center; }

/* health panel */
.oc-vpage .vehicle-health-panel { padding: 0 16px 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.oc-vpage .vehicle-summary-box { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.oc-vpage .vehicle-summary-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #c9a84c; }
.oc-vpage .vehicle-summary-text { color: rgba(255, 255, 255, 0.7); font-size: 12px; line-height: 1.6; }
.oc-vpage .vehicle-category-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.oc-vpage .vehicle-category-row:last-of-type { border-bottom: 0; }
.oc-vpage .vehicle-cat-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; }
.oc-vpage .vehicle-cat-icon.good { background: #e4f5e9; color: #3a9e5f; }
.oc-vpage .vehicle-cat-icon.soon, .oc-vpage .vehicle-cat-icon.watching { background: #f5e6d0; color: #c8761a; }
.oc-vpage .vehicle-cat-icon.attention { background: #fde8e8; color: #d94040; }
.oc-vpage .vehicle-cat-info { flex: 1; min-width: 0; }
.oc-vpage .vehicle-cat-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.oc-vpage .vehicle-cat-tagline { margin-top: 2px; color: rgba(255, 255, 255, 0.35); font-size: 10px; }
.oc-vpage .vehicle-cat-badge, .oc-vpage-badge { flex-shrink: 0; padding: 4px 10px; border: 0; border-radius: 50px; font-size: 10px !important; font-weight: 700 !important; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; }
.oc-vpage .vehicle-cat-badge.good, .oc-vpage-badge.good { background: rgba(74, 175, 80, 0.15); color: #4caf7d; }
.oc-vpage .vehicle-cat-badge.soon, .oc-vpage .vehicle-cat-badge.watching, .oc-vpage-badge.soon, .oc-vpage-badge.watching { background: rgba(201, 168, 76, 0.15); color: #c9a84c; }
.oc-vpage .vehicle-cat-badge.attention, .oc-vpage-badge.attention { background: rgba(224, 92, 92, 0.15); color: #e05c5c; }
.oc-vpage .vehicle-health-cta { margin-top: 14px; }
.oc-vpage .vehicle-health-cta-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #c9a84c 0%, #d4b85a 100%); color: #0a0800; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; }

/* repair orders */
.oc-vpage .vehicle-repair-panel { margin: 8px 10px 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.oc-vpage .vehicle-repair-panel:last-child { margin-bottom: 10px; }
.oc-vpage .vehicle-repair-panel[data-act] { cursor: pointer; }
.oc-vpage .vehicle-repair-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 16px; user-select: none; }
.oc-vpage .vehicle-repair-header-left { display: flex; flex-direction: column; gap: 2px; }
.oc-vpage .vehicle-repair-header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.25); font-size: 12px; }
.oc-vpage .vehicle-ase-certification { flex-shrink: 0; width: 38px; height: 38px; object-fit: contain; }
.oc-vpage .vehicle-repair-date { font-size: 14px; font-weight: 600; }
.oc-vpage .vehicle-repair-ronumber { color: rgba(255, 255, 255, 0.45); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.oc-vpage .repair-order-detail { padding: 0 16px 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); cursor: default; }
.oc-vpage .warranty-info-section { margin: 12px 0; padding: 12px; border-left: 3px solid #5d8eff; border-radius: 6px; background: rgba(93, 142, 255, 0.08); }
.oc-vpage .warranty-info-section.expired { border-left-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.05); }
.oc-vpage .warranty-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.oc-vpage .warranty-info-copy { text-align: right; }
.oc-vpage .warranty-info-date { color: #5d8eff; font-size: 13px; font-weight: 600; }
.oc-vpage .warranty-info-section.expired .warranty-info-date { color: rgba(255, 255, 255, 0.6); }
.oc-vpage .warranty-info-readable { margin-top: 2px; color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.oc-vpage .vehicle-repair-advisors { margin: 8px 0; padding: 10px 12px; border-radius: 6px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); }
.oc-vpage .vehicle-repair-advisor-row { display: flex; justify-content: flex-start; margin-bottom: 8px; }
.oc-vpage .vehicle-repair-advisor-row:last-child { margin-bottom: 0; }
.oc-vpage .vehicle-repair-label { flex-shrink: 0; color: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.oc-vpage .vehicle-repair-name { margin-left: 8px; font-size: 12px; }
.oc-vpage .repair-performed-section { margin-bottom: 8px; padding: 4px 10px 8px; border-radius: 6px; background: linear-gradient(to bottom, rgba(29, 158, 117, 0.14), rgba(29, 158, 117, 0.03)); }
.oc-vpage .repair-declined-section { padding: 4px 10px 8px; border-radius: 6px; background: linear-gradient(to bottom, rgba(204, 0, 0, 0.14), rgba(204, 0, 0, 0.03)); }
.oc-vpage .vehicle-repair-section-title { margin: 12px 0 8px; color: rgba(255, 255, 255, 0.45); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.oc-vpage .vehicle-repair-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 4px; }
.oc-vpage .vehicle-repair-item:nth-child(even) { background: rgba(255, 255, 255, 0.05); }
.oc-vpage .vehicle-repair-item-icon { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.oc-vpage .vehicle-repair-item-icon i { color: #1d9e75; }
.oc-vpage .vehicle-repair-item.declined .vehicle-repair-item-icon i { color: #d94040; }
.oc-vpage .vehicle-repair-item-name { color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 1.3; }
.oc-vpage .vehicle-repair-note { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.5); font-size: 12px; }

/* health item detail sheet */
.oc-vpage-sheet { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; }
.oc-vpage-sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.oc-vpage-sheet-box {
  position: relative; width: 100%; max-height: 75%; overflow-y: auto;
  padding: 26px 22px 110px; border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px 22px 0 0;
  background: #1a1a1a; animation: oc-vpage-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin; scrollbar-color: rgba(201, 168, 76, 0.55) transparent;
}
@keyframes oc-vpage-up { from { transform: translateY(100%); } to { transform: none; } }
.oc-vpage-sheet-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.oc-vpage-sheet-title { padding-right: 36px; font-family: 'DM Serif Display', serif; font-size: 19px; line-height: 1.3; }
.oc-vpage-sheet-title .oc-vpage-badge { font-family: 'DM Sans', sans-serif; }
.oc-vpage-sheet-body { margin-top: 12px; color: rgba(255, 255, 255, 0.78); font-size: 13.5px; line-height: 1.5; }
.oc-vpage-sheet-body p { margin-top: 10px; }
.oc-vpage-sheet-body ul { margin: 6px 0 0 18px; }
.oc-vpage-sheet-label { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08);  color: rgba(255, 255, 255, 0.5); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.oc-vpage-sheet-meta { color: rgba(255, 255, 255, 0.45); font-size: 12px; }
.oc-vpage-sheet-schedule { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 42px; margin-top: 18px; padding: 10px 8px; border: 1px solid #c9a84c; border-radius: 9px; background: #c9a84c; color: #141414 !important; font: 600 11px 'DM Sans', sans-serif !important; cursor: pointer; }
.oc-vpage-sheet-schedule i { font-size: 11px; }
.oc-vpage-sheet-schedule:hover { filter: brightness(1.1); }
