/* Chevpac Maintenance Countdown Popup */
  #cpmm-overlay, #cpmm-overlay * { box-sizing: border-box; }
  #cpmm-overlay {
    position: fixed; inset: 0; z-index: 2147483000;
    display: none; align-items: center; justify-content: center;
    padding: 16px; background: rgba(8, 10, 13, .82);
    backdrop-filter: blur(3px);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  #cpmm-overlay.cpmm-open { display: flex; animation: cpmm-fade .35s ease-out; }
  @keyframes cpmm-fade { from { opacity: 0 } to { opacity: 1 } }
  @keyframes cpmm-rise { from { transform: translateY(24px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
  @keyframes cpmm-spin { to { transform: rotate(360deg) } }
  @keyframes cpmm-spin-rev { to { transform: rotate(-360deg) } }
  @keyframes cpmm-blink { 50% { opacity: .25 } }

  .cpmm-card {
    position: relative; width: 100%; max-width: 640px; max-height: 94vh; overflow-y: auto;
    color: #e9edf2; text-align: center;
    background:
      radial-gradient(circle at 15% 0%, rgba(255,153,0,.12), transparent 45%),
      linear-gradient(160deg, #20262e 0%, #14181d 100%);
    border: 1px solid #3a4452; border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06);
    animation: cpmm-rise .45s cubic-bezier(.2,.8,.2,1);
  }
  /* hazard stripe */
  .cpmm-stripe {
    height: 14px; border-radius: 14px 14px 0 0;
    background: repeating-linear-gradient(-45deg, #ffb000 0 14px, #15181c 14px 28px);
  }
  .cpmm-body { padding: 26px 28px 28px; }

  .cpmm-close {
    position: absolute; top: 24px; right: 12px; width: 34px; height: 34px;
    border: 1px solid #465163; border-radius: 50%; background: #1b2027; color: #cfd6df;
    font-size: 20px; line-height: 1; cursor: pointer; transition: .2s;
  }
  .cpmm-close:hover { background: #ffb000; color: #111; border-color: #ffb000; }

  /* gears */
  .cpmm-gears { position: relative; height: 62px; width: 96px; margin: 0 auto 6px; }
  .cpmm-gear { position: absolute; fill: #ffb000; }
  .cpmm-gear.big { width: 54px; height: 54px; left: 8px; top: 4px; animation: cpmm-spin 9s linear infinite; }
  .cpmm-gear.small { width: 38px; height: 38px; left: 50px; top: 22px; fill: #8f9aa8; animation: cpmm-spin-rev 6.5s linear infinite; }

  .cpmm-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font: 700 11px/1 "Courier New", monospace; letter-spacing: .18em; text-transform: uppercase;
    color: #ffb000; border: 1px solid rgba(255,176,0,.45); background: rgba(255,176,0,.08);
    padding: 7px 12px; border-radius: 4px;
  }
  .cpmm-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; animation: cpmm-blink 1.2s infinite; }

  .cpmm-title { margin: 14px 0 8px; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: .01em; color: #fff; text-transform: uppercase; }
  .cpmm-title span { color: #ffb000; }
  .cpmm-text { margin: 0 auto; max-width: 500px; font-size: 15.5px; line-height: 1.6; color: #b9c2cd; }
  .cpmm-text strong { color: #fff; }

  /* timer panel */
  .cpmm-timer-wrap {
    margin: 22px 0 8px; padding: 16px 12px 14px;
    background: #0d1014; border: 1px solid #333c49; border-radius: 10px;
    box-shadow: inset 0 0 24px rgba(0,0,0,.6);
  }
  .cpmm-timer-label { font: 600 11px/1 "Courier New", monospace; letter-spacing: .2em; text-transform: uppercase; color: #7f8a98; margin-bottom: 12px; }
  .cpmm-timer { display: flex; justify-content: center; align-items: flex-start; gap: 8px; }
  .cpmm-unit { flex: 1 1 0; max-width: 112px; }
  .cpmm-digits {
    position: relative; padding: 12px 4px 10px;
    font: 700 44px/1 "Courier New", "Lucida Console", monospace; color: #ffb000;
    background: linear-gradient(#1c2128 0 49%, #12161b 51% 100%);
    border: 1px solid #3a4452; border-radius: 8px;
    text-shadow: 0 0 14px rgba(255,176,0,.55); font-variant-numeric: tabular-nums;
  }
  /* centre hinge line like a flip clock */
  .cpmm-digits::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(0,0,0,.65); }
  .cpmm-digits::before, .cpmm-digits i { content: ""; position: absolute; top: 50%; width: 4px; height: 9px; margin-top: -4px; background: #3a4452; border-radius: 2px; }
  .cpmm-digits::before { left: -3px; }
  .cpmm-digits i { right: -3px; }
  .cpmm-cap { margin-top: 8px; font: 700 11px/1 "Courier New", monospace; letter-spacing: .16em; text-transform: uppercase; color: #8d98a6; }
  .cpmm-sep { align-self: center; padding-bottom: 20px; font: 700 34px/1 "Courier New", monospace; color: #4b5666; animation: cpmm-blink 1s steps(2, start) infinite; }

  /* progress */
  .cpmm-bar { margin-top: 14px; height: 8px; background: #1a1f26; border-radius: 6px; overflow: hidden; border: 1px solid #2c3440; }
  .cpmm-bar > div { height: 100%; width: 0; border-radius: 6px; background: repeating-linear-gradient(-45deg, #ffb000 0 10px, #e69a00 10px 20px); transition: width 1s linear; }
  .cpmm-bar-note { margin-top: 7px; font-size: 12px; color: #7f8a98; }

  .cpmm-down { margin: 16px auto 0; padding: 11px 14px; max-width: 500px; font-size: 13.5px; line-height: 1.5; color: #ffd27a; background: rgba(255,176,0,.07); border-left: 3px solid #ffb000; border-radius: 4px; text-align: left; }

  .cpmm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
  .cpmm-btn {
    display: inline-block; padding: 13px 24px; border-radius: 6px; text-decoration: none !important;
    font: 800 14px/1 "Segoe UI", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: .2s; border: 2px solid transparent;
  }
  .cpmm-btn.primary { background: #ffb000; color: #14171b !important; box-shadow: 0 6px 18px rgba(255,176,0,.3); }
  .cpmm-btn.primary:hover { background: #ffc233; transform: translateY(-2px); }
  .cpmm-btn.ghost { background: transparent; color: #e9edf2 !important; border-color: #4b5666; }
  .cpmm-btn.ghost:hover { border-color: #ffb000; color: #ffb000 !important; }
  .cpmm-foot { margin-top: 14px; font-size: 12px; color: #6f7a88; }

  @media (max-width: 520px) {
    .cpmm-body { padding: 22px 16px 22px; }
    .cpmm-title { font-size: 21px; }
    .cpmm-text { font-size: 14.5px; }
    .cpmm-digits { font-size: 28px; padding: 10px 2px 8px; }
    .cpmm-timer { gap: 4px; }
    .cpmm-sep { font-size: 22px; padding-bottom: 18px; }
    .cpmm-cap { font-size: 9.5px; letter-spacing: .08em; }
    .cpmm-btn { width: 100%; text-align: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cpmm-gear, .cpmm-dot, .cpmm-sep, #cpmm-overlay.cpmm-open, .cpmm-card { animation: none !important; }
  }
