/* Get Posted — brand shell. Mobile-first, iPhone Safari primary.
 *
 * Tokens are kept in sync with the marketing site (mothergoose-website:
 * tailwind.config.ts + src/app/globals.css) so an artist moving from
 * mothergoose.tattoo into this app doesn't feel the seam. The website is
 * editorial: deep forest green, cream, goose gold, Barlow Condensed display
 * type, square corners. Match it.
 */
:root {
  --mg-bg: #14271e;           /* deep forest green — the studio walls */
  --mg-bg-900: #0f1d16;       /* one step darker, for wells */
  --mg-ink: #f8f4e9;          /* cream paper */
  --mg-muted: #b8b2a4;        /* readable secondary on the green (passes AA) */
  --mg-accent: #f0b232;       /* goose gold */
  --mg-accent-2: #c59908;     /* deep gold */
  --mg-card: #0f1d16;
  --mg-line: rgba(248, 244, 233, 0.14);
  --mg-good: #7fbf6a;
  --mg-bad: #e0705a;
  --mg-radius: 0px;           /* square — the site has no rounded corners */
  --mg-font: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mg-display: "Barlow Condensed", Barlow, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--mg-bg); color: var(--mg-ink);
  font-family: var(--mg-font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--mg-accent); }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 18px 64px; }

.brandbar { display: flex; align-items: center; gap: 12px; padding: 8px 2px 20px; }
.brandbar img { height: 40px; width: auto; }
.brandbar .wordmark { font-family: var(--mg-display); font-weight: 700; letter-spacing: 0.25em;
  font-size: 12px; color: var(--mg-accent); text-transform: uppercase; }

h1 { font-family: var(--mg-display); font-size: 38px; line-height: 0.95; margin: 6px 0 12px;
  font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
h1 .accent { color: var(--mg-accent); }
h2 { font-family: var(--mg-display); text-transform: uppercase; letter-spacing: -0.01em; }
p.lede { color: var(--mg-muted); font-size: 16px; line-height: 1.5; margin: 0 0 24px; }

.card { background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: var(--mg-radius);
  padding: 20px; margin-bottom: 16px; }
.step { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.step .n { width: 26px; height: 26px; border-radius: 0; background: var(--mg-accent-2); color: var(--mg-bg);
  display: grid; place-items: center; font-family: var(--mg-display); font-size: 15px; font-weight: 700; flex: none; }
.step .t { font-weight: 600; font-size: 15px; }
.step.done .n { background: var(--mg-good); color: var(--mg-bg); }

label { display: block; font-size: 12px; color: var(--mg-accent); margin: 14px 0 6px;
  text-transform: uppercase; letter-spacing: 0.25em; }
input, select { width: 100%; padding: 14px; border-radius: 0; border: 1px solid var(--mg-line);
  background: var(--mg-bg-900); color: var(--mg-ink); font-size: 16px; font-family: inherit; }
input:focus, select:focus { outline: 2px solid var(--mg-accent); outline-offset: 2px; border-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 14px 18px; border-radius: 0; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 18px; text-decoration: none; text-align: center; }
.btn-primary { background: var(--mg-accent); border-color: var(--mg-accent); color: var(--mg-bg); }
.btn-primary:hover { background: transparent; color: var(--mg-accent); }
.btn-ghost { background: transparent; color: var(--mg-ink); border-color: var(--mg-line); }
.btn-ghost:hover { border-color: var(--mg-accent); color: var(--mg-accent); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.note { font-size: 13px; color: var(--mg-muted); margin-top: 12px; line-height: 1.4; }
.hidden { display: none !important; }
.devlink { word-break: break-all; background: var(--mg-bg-900); border: 1px dashed var(--mg-line);
  padding: 12px; border-radius: 0; font-size: 13px; margin-top: 14px; }

/* status pill — square, like the style tags on the website */
.pill { display: inline-block; padding: 4px 12px; border-radius: 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; }
.pill.active { background: rgba(127,191,106,0.16); color: var(--mg-good); }
.pill.past_due { background: rgba(240,178,50,0.16); color: var(--mg-accent); }
.pill.suspended { background: rgba(224,112,90,0.16); color: var(--mg-bad); }
.pill.lead, .pill.checkout { background: rgba(184,178,164,0.16); color: var(--mg-muted); }

/* reel grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reel { position: relative; border-radius: 0; overflow: hidden; background: #000;
  border: 1px solid var(--mg-line); aspect-ratio: 9/16; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel .tag { position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 3px 8px; border-radius: 0;
  background: rgba(0,0,0,0.55); color: var(--mg-ink); text-transform: uppercase; letter-spacing: 0.1em; }
.reel .tag.approved { background: rgba(127,191,106,0.9); color: var(--mg-bg); font-weight: 700; }
.reel .tag.scheduled { background: rgba(240,178,50,0.9); color: var(--mg-bg); font-weight: 700; }
.reel .actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; }
.reel .actions button { flex: 1; padding: 12px 0; border: 0; cursor: pointer; font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-family: inherit; }
.reel .approve { background: var(--mg-accent); color: var(--mg-bg); }
.reel .skip { background: rgba(15,29,22,0.85); color: var(--mg-muted); }

.empty { text-align: center; padding: 48px 20px; color: var(--mg-muted); }
.empty img { width: 120px; opacity: 0.8; margin-bottom: 12px; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,0.3); border-top-color: var(--mg-bg);
  border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--mg-ink); color: var(--mg-bg); padding: 12px 18px; border-radius: 0;
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); z-index: 50; }

/* plan selection */
.plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 18px 16px; border-radius: 0; border: 1px solid var(--mg-line); background: var(--mg-bg-900);
  color: var(--mg-ink); cursor: pointer; text-align: left; font-family: inherit; }
.plan:hover { border-color: var(--mg-accent); }
.plan[disabled] { opacity: 0.6; pointer-events: none; }
.plan-name { font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.plan-price { font-family: var(--mg-display); font-size: 28px; font-weight: 700; color: var(--mg-accent); line-height: 1; }
.plan-note { font-size: 12px; color: var(--mg-muted); line-height: 1.3; }
.plan-badge { position: absolute; top: -10px; right: 10px; background: var(--mg-accent); color: var(--mg-bg);
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em; }

/* cycle progress bar */
.progress { background: var(--mg-bg-900); border: 1px solid var(--mg-line); border-radius: 0;
  padding: 14px 16px; margin-bottom: 16px; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--mg-muted); margin-bottom: 8px; }
.progress .bar { height: 8px; border-radius: 0; background: rgba(248,244,233,0.1); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--mg-accent); border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
