/* 4:4:4 Camera rental prototype — global styles (Direction A system) */
:root {
  --bg: #141416;
  --bg2: #17171a;
  --panel: #1b1b1f;
  --panel2: #1d1d21;
  --line: #26262a;
  --line2: #2c2c31;
  --ink: #e8e8e6;
  --ink2: #b9b9bf;
  --mut: #8e8e95;
  --mut2: #6d6d74;
  --accent: #e8e8e6;
  --accent-ink: #141416;
  --green: #2fb457;
  --amber: #e0a63b;
  --red: #e25555;
  --blue: #3b6fe0;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Archivo", sans-serif; font-size: 14px; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: #3a3a44; }

#root { min-height: 100vh; display: flex; flex-direction: column; }
.shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ------------------------------------------------ header */
.hd { display: flex; align-items: center; gap: 26px; padding: 0 24px; height: 64px; border-bottom: 1px solid var(--line); flex-shrink: 0; position: sticky; top: 0; background: var(--bg); z-index: 40; }
.hd-logo { height: 50px; display: block; filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; cursor: pointer; }
.hd-nav { display: flex; gap: 20px; }
.hd-nav button { background: none; border: none; padding: 6px 2px; font-size: 13.5px; color: var(--mut); cursor: pointer; white-space: nowrap; }
.hd-nav button.on { color: #fff; font-weight: 600; }
.hd-spacer { flex: 1; }
.hd-search { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; padding: 0 12px; width: 230px; height: 36px; }
.hd-search input { background: none; border: none; outline: none; color: var(--ink); font-size: 13px; width: 100%; }
.hd-search input::placeholder { color: var(--mut2); }
.hd-search span { color: var(--mut2); }
.hd-link { background: none; border: none; font-size: 13.5px; color: var(--ink2); cursor: pointer; padding: 6px 4px; position: relative; white-space: nowrap; }
.hd-link:hover { color: #fff; }
.hd-badge { position: absolute; top: -2px; right: -10px; background: var(--amber); color: #141416; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 1px 5px; }
.hd-order { display: flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 7px; border: none; cursor: pointer; white-space: nowrap; }
.hd-order em { font-style: normal; background: #141416; color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.hd-user { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line2); border-radius: 99px; padding: 6px 14px 6px 6px; cursor: pointer; color: var(--ink2); font-size: 13px; }
.hd-user .av { width: 26px; height: 26px; border-radius: 99px; background: #2e2e35; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }

/* user menu */
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; min-width: 200px; padding: 6px; z-index: 60; box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.menu .mi { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--ink2); font-size: 13.5px; padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.menu .mi:hover { background: #26262c; color: #fff; }
.menu .mh { padding: 8px 12px 4px; font-size: 11px; color: var(--mut2); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 5px 0; }

/* ------------------------------------------------ layout */
.body-cols { display: grid; grid-template-columns: 236px 1fr 324px; flex: 1; align-items: stretch; min-height: 0; }
.body-cols.no-tray { grid-template-columns: 236px 1fr; }
.page-pad { padding: 26px 30px 50px; max-width: 1180px; margin: 0 auto; width: 100%; }

/* sidebar */
.side { border-right: 1px solid var(--line); padding: 22px 14px; }
.side-sticky { position: sticky; top: 86px; }
.side h4 { margin: 0 0 10px; padding: 0 10px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut2); font-weight: 600; }
.ci { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ink2); cursor: pointer; text-align: left; white-space: nowrap; gap: 8px; }
.ci:hover { color: #fff; }
.ci.on { background: #222227; color: #fff; font-weight: 600; }
.ci.sub { padding-left: 24px; font-size: 13px; color: var(--mut); }
.ci.sub.on { color: #fff; }
.ci i { font-style: normal; color: #5c5c63; font-size: 11px; }

/* ------------------------------------------------ product grid */
.crumb { font-size: 12.5px; color: var(--mut2); margin-bottom: 6px; }
.title-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.title-row h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.title-row span { font-size: 13px; color: var(--mut2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.grid.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid #28282d; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card.added { border-color: #3f3f46; box-shadow: 0 0 0 1px #3f3f46; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-body b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.card-body small { font-size: 12px; color: #7e7e85; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.new-dot { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--green); }

/* photo-forward card: image fills the card, text overlaid on a gradient */
.card.ov { position: relative; min-height: 236px; justify-content: flex-end; }
.card.ov.compact { min-height: 196px; }
.card-bg { position: absolute; inset: 0; }
.card-bg .ph-img { height: 100%; }
.card-body.ov { position: relative; z-index: 1; padding-top: 34px; }
.card-body.ov b { text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 0 10px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,1); }
/* crisp 1px outline for the small category label */
.card-body.ov small { color: #cfcfd4; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, -1px 0 0 #000, 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000; }
.card-body.ov small .new-dot, .card-body.ov .new-dot { text-shadow: none !important; }
/* "Details" link on photo cards: dark text with a white outline so it reads on any photo */
.card-body.ov .card-foot .btn.quiet { color: #1a1a1c; font-weight: 600; text-shadow: -0.5px -0.5px 0 #fff, 0.5px -0.5px 0 #fff, -0.5px 0.5px 0 #fff, 0.5px 0.5px 0 #fff, -0.5px 0 0 #fff, 0.5px 0 0 #fff, 0 -0.5px 0 #fff, 0 0.5px 0 #fff; }
.card-body.ov .card-foot .btn.quiet:hover { color: #000; }
.ph-img.fit { background: var(--panel); }
.ph-img.fit img { object-fit: contain; }

.ph-img { display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, rgba(255,255,255,0.015) 10px 20px); overflow: hidden; }
.ph-img span { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em; color: rgba(255,255,255,0.38); text-transform: uppercase; text-align: center; padding: 0 12px; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }

/* buttons + steppers */
.btn { border: none; border-radius: 7px; font-weight: 700; font-size: 13.5px; padding: 10px 16px; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: #2a2a30; border: 1px solid #3a3a41; color: #fff; font-weight: 600; }
.btn.ghost:hover { background: #33333a; }
.btn.quiet { background: none; border: none; color: var(--mut); font-weight: 500; }
.btn.quiet:hover { color: #fff; }
.btn.danger { background: none; border: 1px solid #54302f; color: var(--red); font-weight: 600; }
.btn.danger:hover { background: #2a1c1c; }
.btn.green { background: var(--green); color: #08130b; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; }
.add-btn { background: #2a2a30; border: 1px solid #3a3a41; color: #fff; font-weight: 600; font-size: 12.5px; padding: 7px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.add-btn:hover { background: #33333a; }
.step { display: inline-flex; align-items: center; background: var(--accent); border-radius: 7px; overflow: hidden; }
.step button { width: 30px; height: 30px; border: none; background: transparent; color: var(--accent-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.step b { min-width: 22px; text-align: center; color: var(--accent-ink); font-size: 13.5px; }
.step.sm button { width: 24px; height: 24px; font-size: 14px; }
.step.sm b { min-width: 18px; font-size: 12.5px; }

/* ------------------------------------------------ order tray */
.tray { border-left: 1px solid var(--line); background: var(--bg2); padding: 22px 20px; }
.tray-sticky { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.tray h3 { margin: 0; font-size: 15px; font-weight: 700; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.datebox { background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; padding: 8px 10px; }
.datebox small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut2); margin-bottom: 3px; }
.datebox input { background: none; border: none; outline: none; color: var(--ink); font-size: 13px; font-weight: 600; width: 100%; padding: 0; color-scheme: dark; }
.tray-list { display: flex; flex-direction: column; }
.tray-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #232327; }
.tray-item .th { width: 40px; height: 32px; border-radius: 5px; flex-shrink: 0; overflow: hidden; }
.tray-item .nm { flex: 1; min-width: 0; }
.tray-item .nm b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-item .nm small { font-size: 11px; color: var(--mut2); }
.tray-empty { font-size: 12.5px; color: var(--mut2); line-height: 1.6; padding: 14px 0; text-align: center; border: 1px dashed var(--line2); border-radius: 8px; }
.tray-note { font-size: 11.5px; color: var(--mut2); line-height: 1.5; text-align: center; }

/* editing banner */
.edit-banner { display: flex; align-items: center; gap: 14px; background: #2b2415; border: 1px solid #57451c; border-radius: 9px; padding: 10px 14px; margin-bottom: 18px; font-size: 13px; color: #ecd9a8; }
.edit-banner b { color: #fff; }
.edit-banner .sp { flex: 1; }

/* ------------------------------------------------ badges + status */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; }
.badge.pending { background: #2b2415; color: var(--amber); }
.badge.approved { background: #16281b; color: var(--green); }
.badge.declined { background: #2c1a1a; color: var(--red); }
.badge.cancelled { background: #26262b; color: var(--mut); }
.badge.completed { background: #1b2333; color: #7ea0e8; }
.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; border-radius: 5px; padding: 3px 8px; }
.flag.new { background: var(--green); color: #08130b; }
.flag.modified { background: var(--amber); color: #1d1505; }

/* ------------------------------------------------ panels, lists, forms */
.panel { background: var(--panel); border: 1px solid #28282d; border-radius: 12px; }
.panel-pad { padding: 18px 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut2); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; color: var(--ink); font-size: 13.5px; padding: 9px 11px; outline: none; color-scheme: dark; }
.field input:focus, .field textarea:focus { border-color: #4a4a52; }
.field textarea { resize: vertical; min-height: 70px; }

.olist { display: flex; flex-direction: column; gap: 10px; }
.ocard { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid #28282d; border-radius: 11px; padding: 14px 18px; cursor: pointer; text-align: left; width: 100%; color: var(--ink); }
.ocard:hover { border-color: #3a3a41; }
.ocard.hot { border-color: #57451c; background: #1d1b15; }
.ocard .num { font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 600; width: 84px; }
.ocard .who { width: 150px; font-size: 13px; color: var(--ink2); }
.ocard .rng { font-size: 13px; color: var(--ink2); width: 150px; }
.ocard .cnt { font-size: 12.5px; color: var(--mut2); width: 70px; }
.ocard .sp { flex: 1; }
.ocard .meta { font-size: 11.5px; color: var(--mut2); }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 16px 1fr; gap: 12px; }
.tl .rail { display: flex; flex-direction: column; align-items: center; }
.tl .dot { width: 8px; height: 8px; border-radius: 99px; background: #4a4a52; margin-top: 5px; flex-shrink: 0; }
.tl .dot.hot { background: var(--amber); }
.tl .line { width: 1px; flex: 1; background: var(--line2); }
.tl .tx { padding-bottom: 16px; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.tl .tx small { display: block; color: var(--mut2); font-size: 11.5px; margin-top: 2px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #222227; font-size: 13.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: none; border: 1px solid var(--line2); color: var(--ink2); font-size: 12.5px; border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* modal */
.modal-veil { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 80; display: grid; place-items: center; }
.modal { background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; padding: 22px 24px; width: 420px; max-width: 92vw; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.modal h3 { margin: 0 0 8px; font-size: 17px; }
.modal p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink2); line-height: 1.55; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #232328; border: 1px solid #3a3a41; color: #fff; font-size: 13.5px; padding: 11px 20px; border-radius: 99px; z-index: 90; box-shadow: 0 12px 36px rgba(0,0,0,0.5); }

/* admin */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 30px; background: var(--bg); }
.admin-tabs button { background: none; border: none; color: var(--mut); font-size: 13.5px; font-weight: 600; padding: 14px 16px; cursor: pointer; border-bottom: 2px solid transparent; position: relative; }
.admin-tabs button.on { color: #fff; border-bottom-color: var(--accent); }
.admin-tabs button .hd-badge { right: -4px; }

.photo-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-cell { position: relative; width: 110px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line2); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell .x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 99px; border: none; background: rgba(0,0,0,0.7); color: #fff; font-size: 12px; cursor: pointer; line-height: 1; }
.photo-add { width: 110px; height: 84px; border-radius: 8px; border: 1px dashed #3a3a41; background: none; color: var(--mut); font-size: 12px; cursor: pointer; }
.photo-add:hover { color: #fff; border-color: #55555e; }

.empty { text-align: center; color: var(--mut2); font-size: 13.5px; line-height: 1.6; padding: 50px 20px; }
.empty b { color: var(--ink2); }

/* ------------------------------------------------ two-column page layouts */
.cols { display: grid; align-items: start; gap: 22px; }
.cols-152 { grid-template-columns: 1.5fr 1fr; }
.cols-121 { grid-template-columns: 1.2fr 1fr; gap: 28px; }
.cols-cat { grid-template-columns: 250px 1fr; gap: 26px; }

/* mobile-only helpers (hidden on desktop) */
.mob-only { display: none; }

/* ------------------------------------------------ mobile */
@media (max-width: 920px) {
  .mob-only { display: block; }
  .hd { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px 14px; }
  .hd-logo { height: 36px; }
  .hd-nav { gap: 12px; }
  .hd-spacer { display: none; }
  .hd-search { order: 10; flex: 1 1 100%; width: 100%; }
  .hd-order { margin-left: auto; }

  .body-cols, .body-cols.no-tray { display: block; padding-bottom: 80px; }
  .side { display: none; }
  .side.mob { display: block; border-right: none; padding: 0; }
  .side.mob .side-sticky { position: static; }
  .tray { display: none; }

  .page-pad { padding: 20px 16px 90px; }
  .cols-152, .cols-121, .cols-cat { grid-template-columns: 1fr; }

  .mob-cats { margin-bottom: 14px; }
  .mob-cats-panel { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 12px; margin-top: 10px; }

  .mob-orderbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg2); border-top: 1px solid var(--line2); z-index: 50; box-shadow: 0 -10px 30px rgba(0,0,0,0.4); }
  .mob-orderbar .info { flex: 1; font-size: 13px; color: var(--ink2); line-height: 1.35; }
  .mob-orderbar .info small { display: block; color: var(--mut2); font-size: 11.5px; }

  .admin-tabs { padding: 0 14px; overflow-x: auto; }
  .ocard { flex-wrap: wrap; gap: 8px 14px; }
  .ocard .num, .ocard .who, .ocard .rng, .ocard .cnt { width: auto; }
  .edit-banner { flex-wrap: wrap; }
}

/* sign in */
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 40px 20px; }
.auth { width: 420px; max-width: 94vw; }
.auth h2 { margin: 0 0 6px; font-size: 24px; }
.auth .sub { color: var(--mut); font-size: 13.5px; margin: 0 0 22px; }
.demo-acct { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--panel); border: 1px solid #28282d; border-radius: 11px; padding: 13px 16px; cursor: pointer; color: var(--ink); text-align: left; }
.demo-acct:hover { border-color: #3f3f46; }
.demo-acct .av { width: 36px; height: 36px; border-radius: 99px; background: #2e2e35; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.demo-acct .nm b { display: block; font-size: 14px; }
.demo-acct .nm small { color: var(--mut2); font-size: 12px; }
.demo-acct .tag { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; color: var(--mut2); border: 1px solid var(--line2); border-radius: 5px; padding: 3px 8px; }
