/* ==========================================================
   PhotoBiz — design tokens
   Palette built around the subject: field photography /
   property inspection. Deep navy-charcoal ground (not pure
   black), a copper "lens ring" accent instead of the usual
   green/terracotta defaults, teal for verified/approved states.
   ========================================================== */
:root {
    --bg-base:      #0E1016;
    --bg-surface:   #161923;
    --bg-elevated:  #1E2230;
    --border:       rgba(255, 255, 255, 0.08);
    --border-strong:rgba(255, 255, 255, 0.16);

    --text-primary: #EDEFF4;
    --text-muted:   #8A90A3;
    --text-faint:   #5B6072;

    --accent:       #C99A4B;   /* copper — lens ring / primary action */
    --accent-dim:   #8A6B34;
    --accent-soft:  rgba(201, 154, 75, 0.14);

    --teal:         #4FA8A0;   /* approved / verified / money-in */
    --teal-soft:    rgba(79, 168, 160, 0.14);

    --danger:       #E0645A;
    --danger-soft:  rgba(224, 100, 90, 0.14);

    --amber:        #E0B34A;   /* pending / awaiting */
    --amber-soft:   rgba(224, 179, 74, 0.14);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}
body {
    background-image:
        radial-gradient(circle at 12% -10%, rgba(201,154,75,0.08), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(79,168,160,0.06), transparent 35%);
    background-attachment: fixed;
    min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { color: var(--text-muted); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--font-mono); }

/* ---------- layout shell ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.page { padding: 40px 0 80px; }

.navbar {
    border-bottom: 1px solid var(--border);
    background: rgba(14, 16, 22, 0.85);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.brand-mark {
    width: 28px; height: 28px; border-radius: 50%;
    background: conic-gradient(var(--accent) 0deg 300deg, var(--bg-elevated) 300deg 360deg);
    display: inline-block; position: relative;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-base);
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .92rem; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-role-tag {
    font-family: var(--font-mono); font-size: .72rem; color: var(--accent);
    border: 1px solid var(--accent-dim); padding: 3px 8px; border-radius: 20px;
}

/* ---------- cards / surfaces ---------- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.card + .card { margin-top: 20px; }
.card-elevated { background: var(--bg-elevated); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.eyebrow {
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: .92rem;
    padding: 12px 20px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #14110A; }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn-teal { background: var(--teal); color: #08201E; }
.btn-danger { background: var(--danger); color: #200909; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }

/* ---------- forms ---------- */
label { display: block; font-size: .85rem; color: var(--text-muted); margin: 16px 0 6px; }
label:first-child { margin-top: 0; }
input, select, textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--bg-base); border: 1px solid var(--border-strong);
    color: var(--text-primary); font-family: var(--font-body); font-size: .95rem;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-hint { font-size: .78rem; color: var(--text-faint); margin-top: 4px; }
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.checkbox-row input { width: auto; }

/* ---------- alerts / flash ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; }
.alert-success { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(79,168,160,.3); }
.alert-error   { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(224,100,90,.3); }
.alert-info    { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(201,154,75,.3); }

/* ---------- aperture status ring — signature element ----------
   Order lifecycle rendered as camera-aperture blades closing in,
   rather than a generic colored pill. */
.aperture {
    --pct: 0;
    width: 54px; height: 54px; border-radius: 50%; position: relative; flex-shrink: 0;
    background: conic-gradient(var(--ring-color, var(--accent)) calc(var(--pct) * 1%), var(--bg-elevated) 0);
}
.aperture::after {
    content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-surface);
    border: 1px solid var(--border);
}
.aperture-wrap { display: flex; align-items: center; gap: 14px; }
.aperture-label { font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); }
.aperture-label strong { color: var(--text-primary); display: block; font-family: var(--font-body); font-size: .95rem; }

/* status -> ring fill + color, applied via inline style/data attr in PHP */
.status-pending_payment   { --pct: 10;  --ring-color: var(--text-faint); }
.status-awaiting_agent    { --pct: 25;  --ring-color: var(--amber); }
.status-agent_accepted    { --pct: 50;  --ring-color: var(--accent); }
.status-photos_uploaded   { --pct: 75;  --ring-color: var(--accent); }
.status-admin_review      { --pct: 90;  --ring-color: var(--amber); }
.status-approved_completed{ --pct: 100; --ring-color: var(--teal); }
.status-declined_no_agent { --pct: 100; --ring-color: var(--danger); }
.status-cancelled         { --pct: 100; --ring-color: var(--danger); }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: .72rem; font-family: var(--font-mono); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-teal  { background: var(--teal-soft); color: var(--teal); }
.badge-danger{ background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: rgba(255,255,255,.06); color: var(--text-muted); }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: .9rem; }
tr:last-child td { border-bottom: none; }

/* ---------- product picker ---------- */
.product-card {
    border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px;
    background: var(--bg-elevated); cursor: pointer; transition: border-color .15s;
}
.product-card:hover, .product-card.selected { border-color: var(--accent); }
.product-price { font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent); margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; text-align: left; }
.hero h1 { font-size: 3rem; max-width: 640px; }
.hero p { font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; }

.footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--text-faint); font-size: .82rem; text-align: center; }
