.rrt-wrap {
  --rrt-blue: #38bdf8;
  --rrt-blue-dark: #0ea5e9;
  --rrt-emerald: #34d399;
  --rrt-amber: #fbbf24;
  --rrt-purple: #a855f7;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rrt-wrap * { box-sizing: border-box; }

/* Only the "enter your order code" screen gets vertically centered — the
   loaded tracker (below) is a separate render path and is never affected. */
.rrt-wrap-search {
  min-height: 60vh;
  justify-content: center;
}
@media (max-width: 600px) {
  .rrt-wrap-search { min-height: 50vh; }
}

/* Shared frosted-glass card look */
.rrt-glass {
  position: relative;
  background: rgba(15, 23, 42, .62);
  border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.36);
}

/* Search box */
.rrt-search-box {
  position: relative;
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 34px rgba(0,0,0,.4);
}
.rrt-search-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: #93c5fd; margin-bottom: 12px;
}
.rrt-search-form {
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4);
}
.rrt-search-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 8px; color: #94a3b8; flex-shrink: 0; }
.rrt-search-icon svg { width: 16px; height: 16px; }
.rrt-search-form input[type="text"] {
  flex: 1; min-width: 0; background: transparent; border: none; color: #fff; padding: 10px 10px;
  font-size: 14px; font-family: inherit; outline: none;
}
.rrt-search-form input[type="text"]::placeholder { color: #94a3b8; }
.rrt-search-form button {
  background: linear-gradient(135deg, var(--rrt-blue), var(--rrt-blue-dark));
  color: #04121f; border: none; border-radius: 999px;
  padding: 11px 22px; font-weight: 700; font-size: 13px; cursor: pointer; transition: filter .2s ease, transform .15s ease;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(14,165,233,.35);
}
.rrt-search-form button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.rrt-error { color: #f87171; font-size: 13px; margin: 12px 4px 0; }

/* Header card */
.rrt-header { padding: 16px 20px; }
.rrt-header-eyebrow { font-size: 12px; font-weight: 500; color: #cbd5e1; }
.rrt-header-eyebrow strong { color: #fff; font-weight: 700; }
.rrt-build-title { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.rrt-order-code { font-size: 11px; letter-spacing: .5px; color: #a8b3c7; font-weight: 600; margin-top: 6px; }

/* Timeline card wrapper */
.rrt-timeline-card { padding: 16px 20px; }
.rrt-timeline { position: relative; display: flex; flex-direction: column; gap: 16px; }
.rrt-tl-row { position: relative; display: flex; gap: 14px; align-items: stretch; }
.rrt-tl-rail { position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.rrt-step-dot {
  width: 38px; height: 38px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.6); border: 1px solid rgba(255,255,255,.08); color: #64748b;
}
.rrt-step-dot svg { width: 16px; height: 16px; }
.rrt-step-line { width: 1px; flex: 1; min-height: 16px; background: rgba(255,255,255,.08); margin: 6px 0; }
.rrt-step-dot-done { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.5); color: var(--rrt-emerald); }
.rrt-step-line-done { background: rgba(52,211,153,.4); }
.rrt-step-dot-current {
  background: rgba(56,189,248,.2); border-color: rgba(56,189,248,.5); color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.rrt-step-line-current { background: rgba(56,189,248,.4); }

/* Per-stage card */
.rrt-step-card { flex: 1; margin-bottom: 0; overflow: hidden; border-radius: 16px; }
.rrt-step-current { background: rgba(15,23,42,.55); border-color: rgba(255,255,255,.14); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.rrt-step-done, .rrt-step-upcoming { background: rgba(15,23,42,.32); }
.rrt-step-card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
}
.rrt-step-card summary::-webkit-details-marker { display: none; }
.rrt-step-title-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rrt-step-label { font-weight: 700; font-size: 14px; color: #fff; }
.rrt-step-upcoming .rrt-step-label { color: #a8b3c7; }
.rrt-step-inprogress-pill {
  border: 1px solid rgba(56,189,248,.3); background: rgba(56,189,248,.15); color: #7dd3fc;
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.rrt-step-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.rrt-step-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rrt-doc-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #cbd5e1; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.rrt-doc-pill svg { width: 12px; height: 12px; }
.rrt-chevron { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; color: #94a3b8; }
.rrt-chevron svg { width: 12px; height: 12px; }
.rrt-step-card[open] .rrt-chevron { transform: rotate(180deg); }
.rrt-step-upcoming .rrt-chevron { display: none; }

.rrt-step-body { padding: 0 16px 16px; }
.rrt-step-loc { font-size: 11px; color: #a8b3c7; text-transform: uppercase; letter-spacing: .4px; }
.rrt-step-date { font-size: 11px; color: var(--rrt-emerald); font-weight: 700; margin-top: 6px; }

/* Attachments — horizontal scroll gallery like the reference */
.rrt-att-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #94a3b8; margin: 14px 0 10px; }
.rrt-attachments { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.rrt-att-card {
  display: block; text-decoration: none; flex-shrink: 0; width: 220px; scroll-snap-align: start;
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.rrt-att-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.rrt-att-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16/11; background: rgba(0,0,0,.35); overflow: hidden; }
.rrt-att-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.rrt-att-file { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #64748b; }
/* WhatsApp-style PDF thumbnail: an actual (non-interactive) peek at page 1 */
.rrt-att-pdf-thumb { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; }
.rrt-att-pdf-thumb iframe {
  position: absolute; top: 0; left: 0;
  width: 400%; height: 400%;
  transform: scale(.25); transform-origin: top left;
  border: none; pointer-events: none;
}
.rrt-att-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(2,6,23,.75); border: 1px solid rgba(255,255,255,.12);
  color: #e2e8f0; font-size: 9px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rrt-att-caption { padding: 10px 12px; }
.rrt-att-title { font-size: 12px; font-weight: 600; color: #f1f5f9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrt-att-sub { font-size: 10.5px; color: #a8b3c7; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Admin-only inline document management on the tracker page itself */
.rrt-admin-back-link { display: inline-block; font-size: 11px; font-weight: 700; color: #7dd3fc; text-decoration: none; margin-bottom: 8px; }
.rrt-admin-back-link:hover { text-decoration: underline; }
.rrt-att-empty-admin { font-size: 12px; color: #64748b; margin: 0 0 10px; }
.rrt-att-card { position: relative; }
.rrt-att-card-open { display: block; text-decoration: none; cursor: pointer; }
.rrt-att-delete-form { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.rrt-att-delete-btn {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(127,29,29,.85); border: 1px solid rgba(248,113,113,.5); color: #fecaca; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 0;
}
.rrt-att-delete-btn svg { width: 13px; height: 13px; }
.rrt-att-delete-btn:hover { background: rgba(153,27,27,.95); }
.rrt-att-add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  flex-shrink: 0; width: 220px; height: 190px; scroll-snap-align: start;
  border: 1.5px dashed rgba(255,255,255,.22); border-radius: 16px;
  color: #94a3b8; cursor: pointer; text-align: center; background: rgba(255,255,255,.02);
  transition: border-color .15s ease, background .15s ease;
}
.rrt-att-add-tile:hover { border-color: rgba(125,211,252,.5); background: rgba(56,189,248,.06); }
.rrt-att-add-plus {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: 18px; color: #e2e8f0;
}
.rrt-att-add-text { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.rrt-att-add-sub { font-size: 10.5px; color: #7d8aa0; }

/* Payment hero cards (Remaining Balance / Next Payment Due) */
.rrt-payment-highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rrt-payment-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(2,6,23,.55); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 16px;
}
.rrt-payment-eyebrow { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #a8b3c7; }
.rrt-payment-amount { display: block; font-size: 16px; font-weight: 800; color: #f1f5f9; margin-top: 4px; }
.rrt-payment-sub { display: block; font-size: 10.5px; color: #7d8aa0; margin-top: 2px; }
.rrt-payment-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.rrt-payment-icon-dollar { background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.4); color: var(--rrt-emerald); }
.rrt-payment-icon svg { width: 18px; height: 18px; }
.rrt-payment-cal-badge {
  flex-shrink: 0; width: 44px; border-radius: 10px; overflow: hidden; text-align: center;
  background: linear-gradient(160deg, var(--rrt-purple), #7e22ce);
  box-shadow: 0 4px 14px rgba(168,85,247,.35);
}
.rrt-cal-month { display: block; font-size: 9px; font-weight: 800; letter-spacing: .5px; color: #fff; background: rgba(0,0,0,.2); padding: 2px 0; }
.rrt-cal-day { display: block; font-size: 17px; font-weight: 800; color: #fff; padding: 3px 0; }

.rrt-admin-view-tracker { font-size: 11px; font-weight: 700; color: #7dd3fc; text-decoration: none; margin-top: 6px; display: inline-block; }
.rrt-admin-view-tracker:hover { text-decoration: underline; }

/* Sections (ship tracking, hardware config, payment, pickup) */
.rrt-section { padding: 16px 20px; }
.rrt-section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 12px; margin-bottom: 14px; }
.rrt-section-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #a8b3c7; display: block; }
.rrt-section-title { font-size: 14px; font-weight: 700; color: #fff; margin-top: 2px; }
.rrt-section-pill { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #cbd5e1; font-size: 11px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

.rrt-ship-grid, .rrt-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rrt-ship-grid > div, .rrt-spec-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(2,6,23,.55); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 10px 12px;
}
.rrt-spec-icon { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #cbd5e1; flex-shrink: 0; overflow: hidden; }
.rrt-spec-icon svg { width: 14px; height: 14px; }
.rrt-spec-icon-has-img { padding: 0; }
.rrt-spec-icon-has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rrt-spec-item > div { display: flex; flex-direction: column; min-width: 0; }
.rrt-ship-grid span, .rrt-spec-item span { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: #a8b3c7; display: block; }
.rrt-ship-grid strong, .rrt-spec-item strong { font-size: 12.5px; color: #f1f5f9; font-weight: 600; display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrt-balance { color: var(--rrt-amber) !important; }
.rrt-pass { color: var(--rrt-emerald) !important; font-family: monospace; letter-spacing: 1px; }
.rrt-specs-more {
  margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  background: transparent; border: none; color: #e2e8f0;
  padding: 6px 2px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.rrt-specs-more svg { width: 15px; height: 15px; color: #94a3b8; }

/* Built-in hardware icons — always rendered white regardless of source PNG color */
.rrt-spec-icon-default img { filter: brightness(0) invert(1); }

/* Centered chevron under the first 4 components, opens the rest */
.rrt-specs-more-chevron { display: flex; justify-content: center; margin-top: 8px; }
.rrt-specs-chevron { cursor: pointer; }
details[open] > summary .rrt-specs-chevron { transform: rotate(180deg); }

.rrt-live-link { display: inline-block; margin-top: 12px; color: #7dd3fc; font-weight: 600; font-size: 12px; text-decoration: none; }
.rrt-live-link:hover { text-decoration: underline; }

.rrt-footer { padding: 4px 6px; font-size: 11px; color: #a8b3c7; text-align: right; }

/* Ship route map — real OSM tiles, darkened with a CSS filter (no API key needed) */
.rrt-ship-inline { margin-top: 14px; }
.rrt-ship-map {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #0a1a2e;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.rrt-ship-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.rrt-ship-map .rrt-map-tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.7); }
.rrt-ship-map-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #7dd3fc; z-index: 1; pointer-events: none;
}
.rrt-ship-map .leaflet-control-attribution {
  background: rgba(5,15,25,.65) !important; color: #94a3b8 !important; font-size: 9px !important;
}
.rrt-ship-map .leaflet-control-attribution a { color: #94a3b8 !important; }

.rrt-map-pill {
  position: absolute; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(5,15,25,.65); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 5px 10px;
  font-size: 10.5px; font-weight: 700; color: #e2e8f0;
  backdrop-filter: blur(4px);
}
.rrt-map-pill-route { left: 10px; }
.rrt-map-pill-miami { left: 168px; }

/* Miami/Grenada endpoint labels — Leaflet gives these divIcons a 0x0 box
   (iconSize: [0,0]), so without an explicit width/white-space the text
   wraps one character per line. */
.rrt-ship-map .rrt-map-endpoint-label {
  width: auto !important; height: auto !important;
  white-space: nowrap; overflow: visible;
  font-size: 11px; font-weight: 700; color: #e2e8f0;
  background: rgba(5,15,25,.7); padding: 2px 7px; border-radius: 6px;
  pointer-events: none;
}

.rrt-ship-dot { width: 7px; height: 7px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 8px rgba(125,211,252,.8); flex-shrink: 0; }
.rrt-ship-dot-green { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.8); }

/* Rendered inside a Leaflet divIcon, so no absolute positioning needed here */
.rrt-leaflet-ship-icon { display: flex; flex-direction: column; align-items: center; gap: 3px; overflow: visible; }
.rrt-ship-marker-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--rrt-blue-dark);
  border: 2px solid #bae6fd;
  display: flex; align-items: center; justify-content: center; color: #04121f;
  box-shadow: 0 0 14px rgba(56,189,248,.7);
}
.rrt-ship-marker-icon svg { width: 13px; height: 13px; }
.rrt-ship-marker-label {
  font-size: 9px; font-weight: 800; letter-spacing: .4px; color: #e2e8f0;
  background: rgba(5,15,25,.75); padding: 2px 6px; border-radius: 6px; white-space: nowrap;
}

.rrt-ship-eta-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.rrt-ship-eta-bar span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cbd5e1; }
.rrt-ship-eta-bar span svg { width: 15px; height: 15px; color: #94a3b8; }
.rrt-ship-eta-bar strong { font-size: 12.5px; font-weight: 700; color: #4ade80; }

.rrt-ship-progress-label { font-size: 12px; color: #7dd3fc; font-weight: 600; margin-bottom: 14px; }
.rrt-live-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800;
  letter-spacing: .8px; color: #f87171; background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.35); border-radius: 999px; padding: 3px 9px; margin-bottom: 10px;
}
.rrt-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #f87171; animation: rrt-live-pulse 1.6s ease-in-out infinite; }
@keyframes rrt-live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(248,113,113,.6); }
  50% { opacity: .55; box-shadow: 0 0 0 4px rgba(248,113,113,0); }
}

/* Lightbox (images + inline PDF preview) */
.rrt-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(2,6,23,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.rrt-lightbox.is-open { display: flex; }
.rrt-lightbox-inner { position: relative; width: 100%; max-width: 720px; max-height: 88vh; display: flex; flex-direction: column; gap: 10px; }
.rrt-lightbox-media { width: 100%; flex: 1; min-height: 0; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.rrt-lightbox-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rrt-lightbox-media iframe { width: 100%; height: 70vh; border: none; display: block; background: #fff; }
.rrt-lightbox-caption { color: #e2e8f0; font-size: 13px; font-weight: 600; }
.rrt-lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%;
  background: #0f172a; border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  z-index: 2;
}
.rrt-lightbox-close svg { width: 16px; height: 16px; }
.rrt-lightbox-fallback { padding: 40px; text-align: center; color: #cbd5e1; }

/* Admin login prompt */
.rrt-admin-login-card { padding: 22px; text-align: left; }
.rrt-admin-login-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #7dd3fc; }
.rrt-admin-login-title { font-size: 18px; font-weight: 800; color: #fff; margin: 6px 0 2px; }
.rrt-admin-login-sub { font-size: 12px; color: #64748b; margin: 0 0 16px; }
.rrt-admin-login-form { display: flex; gap: 8px; flex-wrap: wrap; }
.rrt-admin-login-form input {
  flex: 1; min-width: 160px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; color: #fff; padding: 11px 16px; font-size: 14px; font-family: inherit; outline: none;
}
.rrt-admin-login-form button {
  background: linear-gradient(135deg, var(--rrt-blue), var(--rrt-blue-dark));
  color: #04121f; border: none; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 13px; cursor: pointer;
}

/* Admin panel */
.rrt-admin-panel { padding: 18px; }
.rrt-admin-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 12px; }
.rrt-admin-panel-head h2 { font-size: 16px; color: #fff; margin: 0; }
.rrt-admin-logout { font-size: 12px; color: #f87171; font-weight: 700; text-decoration: none; }
.rrt-admin-empty { color: #64748b; font-size: 13px; padding: 8px; }
.rrt-admin-order { padding: 16px 18px; margin-bottom: 12px; }
.rrt-admin-order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.rrt-admin-order-code { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.rrt-admin-order-name { font-size: 15px; font-weight: 700; color: #fff; margin-top: 2px; }
.rrt-admin-order-build { font-size: 12px; color: #7dd3fc; }
.rrt-admin-order-form { display: flex; gap: 8px; flex-wrap: wrap; }
.rrt-admin-order-form select {
  flex: 1; min-width: 160px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; color: #fff; padding: 9px 10px; font-size: 13px; font-family: inherit;
}
.rrt-admin-order-form button {
  background: linear-gradient(135deg, var(--rrt-blue), var(--rrt-blue-dark));
  color: #04121f; border: none; border-radius: 10px; padding: 9px 18px; font-weight: 700; font-size: 12px; cursor: pointer;
}

.rrt-admin-ship-form {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08);
}
.rrt-admin-ship-label { font-size: 11.5px; font-weight: 700; color: #cbd5e1; margin-top: 4px; }
.rrt-admin-ship-label span { font-weight: 400; color: #64748b; }
.rrt-admin-ship-form input {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; color: #fff; padding: 9px 10px; font-size: 13px; font-family: inherit; width: 100%;
}
.rrt-admin-ship-form button {
  align-self: flex-start; margin-top: 4px;
  background: linear-gradient(135deg, var(--rrt-blue), var(--rrt-blue-dark));
  color: #04121f; border: none; border-radius: 10px; padding: 9px 18px; font-weight: 700; font-size: 12px; cursor: pointer;
}

/* Mobile admin: photo upload / manage */
.rrt-admin-photos { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.rrt-admin-photos summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #7dd3fc; list-style: none; }
.rrt-admin-photos summary::-webkit-details-marker { display: none; }
.rrt-admin-upload-ok { color: #4ade80; font-size: 12px; font-weight: 700; margin: 8px 0 0; }
.rrt-admin-upload-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.rrt-admin-upload-form select,
.rrt-admin-upload-form input[type="text"] {
  flex: 1; min-width: 130px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; color: #fff; padding: 9px 10px; font-size: 13px; font-family: inherit;
}
.rrt-admin-upload-form input[type="file"] {
  flex-basis: 100%; color: #cbd5e1; font-size: 12px;
}
.rrt-admin-upload-form button {
  background: linear-gradient(135deg, var(--rrt-blue), var(--rrt-blue-dark));
  color: #04121f; border: none; border-radius: 10px; padding: 9px 18px; font-weight: 700; font-size: 12px; cursor: pointer;
}
.rrt-admin-photos-empty { color: #64748b; font-size: 12px; }
.rrt-admin-photo-stage { margin-bottom: 12px; }
.rrt-admin-photo-stage-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #a8b3c7; margin-bottom: 6px; }
.rrt-admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.rrt-admin-photo-thumb {
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px;
  text-align: center;
}
.rrt-admin-photo-thumb img { width: 100%; height: 60px; object-fit: cover; border-radius: 5px; display: block; }
.rrt-admin-photo-file { width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255,255,255,.04); border-radius: 5px; }
.rrt-admin-photo-title { font-size: 10px; color: #cbd5e1; margin: 5px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrt-admin-photo-remove {
  width: 100%; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3); color: #f87171;
  border-radius: 6px; padding: 4px 0; font-size: 10px; font-weight: 700; cursor: pointer;
}
.rrt-stage-pill {
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(125,211,252,.35); color: #bae6fd;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}

.rrt-admin-balance-form {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08);
}
.rrt-admin-balance-form input {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; color: #fff; padding: 9px 10px; font-size: 13px; font-family: inherit; width: 100%;
}
.rrt-admin-balance-form button {
  align-self: flex-start; margin-top: 4px;
  background: linear-gradient(135deg, var(--rrt-blue), var(--rrt-blue-dark));
  color: #04121f; border: none; border-radius: 10px; padding: 9px 18px; font-weight: 700; font-size: 12px; cursor: pointer;
}

@media (max-width: 480px) {
  .rrt-ship-grid, .rrt-specs-grid, .rrt-payment-highlight-grid { grid-template-columns: 1fr; }
  .rrt-admin-panel-head { flex-wrap: wrap; gap: 8px; }
}

/* Give the tracker some breathing room under the theme's mobile header, which
   otherwise overlaps the top of the page on phones. */
@media (max-width: 782px) {
  .rrt-wrap { margin-top: 64px; }
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .rrt-glass, .rrt-search-form, .rrt-step-card { background: rgba(15,23,42,.92); }
}
