:root {
  --ink: #4a342f;
  --muted: #806f67;
  --paper: #f7efe3;
  --cream: #fffaf2;
  --card: rgba(255, 252, 247, .94);
  --brand: #ad6a73;
  --brand-dark: #75424b;
  --rose-gold: #c58b78;
  --latte: #caae90;
  --latte-dark: #8b6a58;
  --success: #567563;
  --danger: #a54949;
  --line: #ead9c7;
  --shadow: 0 18px 52px rgba(93, 60, 48, .11);
  --soft-shadow: 0 9px 28px rgba(93, 60, 48, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(197, 139, 120, .20), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(202, 174, 144, .24), transparent 30rem),
    linear-gradient(145deg, #fffaf1 0%, var(--paper) 48%, #f2e5d8 100%);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32;
  background-image: radial-gradient(rgba(117, 66, 75, .12) .7px, transparent .7px);
  background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 65%);
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.shell { position: relative; width: min(1180px, calc(100% - 32px)); margin: auto; }
.portal-shell { width: min(880px, calc(100% - 28px)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(197, 139, 120, .22); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-logo { width: clamp(150px, 18vw, 230px); height: 78px; padding: 4px; object-fit: contain; border-radius: 18px; background: rgba(255,250,242,.66); box-shadow: 0 10px 28px rgba(117, 66, 75, .12); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 1.2rem; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: .73rem; font-weight: 600; }
.logo { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--rose-gold), var(--brand-dark)); box-shadow: var(--soft-shadow); }
.nav { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px; border: 1px solid rgba(197,139,120,.20); border-radius: 999px; background: rgba(255,250,242,.66); }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: .9rem; }
.nav a:hover, .nav a.active { color: var(--brand-dark); background: #fff; box-shadow: 0 3px 12px rgba(93,60,48,.08); }
.staff-header { display: grid; justify-items: end; gap: 9px; }
.staff-session { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 34px 0 26px; }
.eyebrow { color: var(--brand); font-size: .76rem; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 11px; font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1.12; }
h2 { font-size: 1.18rem; }
.subtitle { color: var(--muted); max-width: 720px; line-height: 1.85; }
.pill, .operator-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(197,139,120,.32); color: var(--brand-dark); background: rgba(255,250,242,.92); padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.operator-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(86,117,99,.12); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.82); border-radius: 26px; padding: 23px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.metric { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.metric b { font-size: 2rem; }
.metric span { color: var(--muted); }
.metric-card { grid-column: span 2; width: 100%; text-align: right; color: var(--ink); cursor: pointer; }
.metric-card small { display: block; margin-top: 5px; color: var(--brand); font-size: .68rem; font-weight: 800; }
.metric-card:focus-visible { outline: 3px solid rgba(173,106,115,.32); outline-offset: 3px; }
.icon-tile { width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; background: #f7e7df; color: var(--brand); font-size: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: .9rem; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fffdfa; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--rose-gold); box-shadow: 0 0 0 4px rgba(197,139,120,.14); }
.btn { border: 0; border-radius: 14px; padding: 11px 17px; cursor: pointer; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--soft-shadow); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.btn-secondary { color: var(--brand-dark); background: #f7e5df; }
.btn-danger { color: var(--danger); background: #fff0ed; }
.btn-small { padding: 8px 12px; font-size: .82rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; text-align: right; border-bottom: 1px solid #f0e5da; white-space: nowrap; }
th { font-size: .79rem; color: var(--muted); }
.points-positive { color: var(--success); font-weight: 900; }
.points-negative { color: var(--danger); font-weight: 900; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.notice { padding: 13px 15px; border-radius: 15px; background: #fff4e4; color: #76552f; border: 1px solid #ead1ab; margin-bottom: 16px; }
.notice-success { background: #edf6ef; color: #3f6750; border-color: #cce0d2; }
.return-blocked { background: #fff0ed; color: #8f3434; border: 2px solid #d98c84; box-shadow: 0 10px 28px rgba(165,73,73,.12); }
.toast { position: fixed; left: 24px; bottom: 24px; padding: 14px 17px; max-width: 390px; color: white; background: var(--ink); border-radius: 15px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s; z-index: 20; }
.toast.show { opacity: 1; transform: translateY(0); }
.muted { color: var(--muted); }
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.reward { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; padding: 19px; background: linear-gradient(155deg, #fffdfa, #fdf5eb); min-height: 220px; display: flex; flex-direction: column; }
.reward::before { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(197,139,120,.10); top: -55px; left: -45px; }
.reward .emoji { font-size: 2rem; }
.reward h3 { margin: 12px 0 7px; }
.reward p { line-height: 1.65; }
.reward footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 16px; }
.reward-note { margin: 9px 0 0; font-size: .78rem; color: var(--muted); }
.badge, .status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 99px; font-size: .77rem; background: #f1e6dc; color: var(--latte-dark); }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { color: #8b642e; background: #fff3d8; }
.status-fulfilled { color: #456d55; background: #eaf4ed; }
.status-expired, .status-cancelled { color: #8b5555; background: #fae9e7; }
.balance-card { position: relative; overflow: hidden; color: white; background: linear-gradient(135deg, #b9777e 0%, #9d6069 48%, #75424b 100%); border: 1px solid rgba(255,255,255,.34); }
.balance-card::after { content: ""; position: absolute; width: 210px; height: 210px; border: 34px solid rgba(255,255,255,.08); border-radius: 50%; left: -75px; top: -90px; }
.balance-card::before { content: ""; position: absolute; width: 90px; height: 90px; background: rgba(255,255,255,.06); transform: rotate(45deg); right: -38px; bottom: -38px; }
.balance-number { font-size: clamp(3.2rem, 12vw, 5.4rem); font-weight: 900; letter-spacing: -.05em; }
.portal-login { max-width: 540px; margin: 8vh auto; padding: 34px; }
.portal-login h1 { font-size: 2.3rem; margin-top: 9px; }
.login-mark { display: grid; place-items: center; width: min(320px, 94%); height: 125px; margin: -4px auto 20px; border-radius: 28px; background: #fff7ef; box-shadow: var(--soft-shadow); }
.login-mark img { width: 92%; height: 105px; object-fit: contain; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 0 20px; }
.welcome-row h1 { font-size: clamp(2rem, 6vw, 2.65rem); margin: 5px 0 0; }
.welcome-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.customer-avatar { width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; display: grid; place-items: center; border-radius: 24px; color: var(--brand); background: #f7e7df; font-size: 1.8rem; box-shadow: var(--soft-shadow); }
.customer-avatar img, .cashier-customer-photo { width: 100%; height: 100%; object-fit: cover; }
.customer-photo-tile { overflow: hidden; padding: 0; }
.portal-account-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.portal-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.portal-back { white-space: nowrap; text-decoration: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 30px 2px 14px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { margin: 0; color: var(--muted); font-size: .86rem; }
.redemption-code { margin: 15px 0 8px; font: 900 clamp(1.8rem, 9vw, 2.5rem)/1.1 "Segoe UI", sans-serif; letter-spacing: .16em; text-align: center; color: var(--brand-dark); direction: ltr; }
.active-redemption { margin-top: 20px; border: 1px solid rgba(173,106,115,.34); background: linear-gradient(150deg, #fffdfa, #f9eae5); }
.redemption-list { display: grid; gap: 11px; }
.redemption-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #efe2d6; }
.redemption-item:last-child { border-bottom: 0; }
.redemption-item h3 { margin: 0 0 5px; font-size: .98rem; }
.redemption-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: .78rem; }
.footer { color: var(--muted); text-align: center; padding: 36px 0 28px; font-size: .84rem; }
.registration-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; margin: 10px 0 7px; }
.registration-shell { width: min(760px, calc(100% - 28px)); }
.registration-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 0; }
.registration-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.registration-header-actions a { text-decoration: none; }
.registration-card { margin-top: 4vh; padding: clamp(24px, 6vw, 48px); }
.registration-title { margin: 8px 0 12px; font-size: clamp(2rem, 7vw, 3rem); }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 30px 0; padding: 0; list-style: none; }
.stepper li { position: relative; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.stepper li::after { content: ""; height: 2px; flex: 1; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: white; font-weight: 900; }
.stepper li.active { color: var(--brand-dark); font-weight: 800; }
.stepper li.active span { color: white; border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px rgba(173,106,115,.12); }
.stepper li.done { color: var(--success); }
.stepper li.done span { color: white; border-color: var(--success); background: var(--success); }
.registration-step { animation: registration-in .28s ease; }
.registration-action { width: 100%; margin-top: 18px; padding: 14px 20px; }
.registration-actions .btn { flex: 1; }
.registration-back-link { display: block; margin-top: 14px; text-align: center; color: var(--brand-dark); font-weight: 800; }
.registration-final-actions .btn { flex: 1; min-width: 150px; }
.centered-actions { justify-content: center; }
.otp-input { direction: ltr; text-align: center; letter-spacing: .32em; font-size: 1.55rem; font-weight: 900; }
.development-code { display: inline-block; direction: ltr; margin: 8px 5px; font-size: 1.4rem; letter-spacing: .16em; color: var(--brand-dark); }
.consent-list { display: grid; gap: 10px; margin-top: 20px; }
.consent-item { grid-template-columns: auto 1fr; align-items: start; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fffdfa; cursor: pointer; }
.consent-item input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--brand); }
.consent-item span { display: grid; gap: 4px; color: var(--ink); }
.consent-item small { color: var(--muted); line-height: 1.5; }
.required-consent { border-color: rgba(173,106,115,.34); }
.profile-photo-upload { display: grid; grid-template-columns: 126px 1fr; align-items: center; gap: 18px; margin: 10px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fffdfa; }
.profile-photo-upload p { margin: 6px 0 10px; }
.profile-photo-button { width: 126px; height: 126px; padding: 0; overflow: hidden; display: grid; place-items: center; gap: 3px; border: 2px dashed rgba(173,106,115,.45); border-radius: 36px; color: var(--brand-dark); background: #f9e9e3; cursor: pointer; }
.profile-photo-button:hover { border-color: var(--brand); box-shadow: 0 0 0 5px rgba(173,106,115,.10); }
.profile-photo-button img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-button > span { font-size: 2.2rem; align-self: end; }
.profile-photo-button > small { max-width: 90px; align-self: start; color: var(--brand-dark); font-weight: 800; }
.generated-links-heading { display: grid; gap: 5px; margin-bottom: 12px; }
.generated-link-list { display: grid; gap: 12px; }
.generated-link-card { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 15px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.68); border: 1px solid #cce0d2; }
.registration-qr { width: 138px; height: 138px; padding: 7px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.generated-link-details { min-width: 0; display: grid; gap: 7px; }
.generated-link-details input { font-size: .8rem; }
.owner-logo-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: center; gap: 26px; }
.owner-logo-preview-wrap { min-height: 150px; display: grid; place-items: center; padding: 18px; border: 2px dashed rgba(173,106,115,.34); border-radius: 22px; background: #fffdfa; }
.owner-logo-preview-wrap img { width: 100%; max-height: 180px; object-fit: contain; }
.manager-security-card { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(380px, 1.2fr); gap: 26px; align-items: center; }
.manager-password-status { margin-bottom: 13px; }
.profit-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; }
.profit-hidden { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 99px; color: var(--muted); background: #f3ebe3; font-size: .78rem; font-weight: 800; }
.secure-dialog { width: min(470px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 26px; color: var(--ink); background: var(--card); box-shadow: 0 28px 75px rgba(69, 39, 43, .28); }
.secure-dialog::backdrop { background: rgba(50, 33, 35, .48); backdrop-filter: blur(4px); }
.secure-dialog form { padding: 25px; }
.metric-dialog { width: min(760px, calc(100% - 28px)); max-height: min(82vh, 820px); }
.metric-dialog-body { padding: 25px; }
.metric-detail-list { display: grid; gap: 10px; max-height: 62vh; overflow: auto; margin-top: 14px; padding-left: 3px; }
.metric-detail-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fffdfa; }
.metric-detail-item h3 { margin: 0 0 5px; font-size: 1rem; }
.metric-detail-item p { margin: 0 0 4px; color: var(--muted); }
.metric-detail-item small { color: var(--muted); }
.metric-detail-value { display: grid; justify-items: end; gap: 7px; white-space: nowrap; }
.secure-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.secure-dialog-heading h2 { margin: 5px 0 12px; }
.dialog-close { width: 38px; height: 38px; border: 0; border-radius: 13px; color: var(--brand-dark); background: #f5e5df; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.staff-login-card { max-width: 560px; margin: 6vh auto; padding: clamp(25px, 5vw, 42px); }
.staff-login-card label + label { margin-top: 12px; }
.staff-login-action { width: 100%; margin-top: 18px; padding: 14px 20px; }
.staff-create-grid { grid-template-columns: repeat(4, 1fr); }
.audit-details { min-width: 220px; max-width: 460px; overflow-wrap: anywhere; color: var(--muted); }
.legal-card { margin-top: 3vh; padding: clamp(25px, 6vw, 48px); line-height: 1.9; }
.legal-card h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal-card h2 { margin-top: 28px; margin-bottom: 7px; }
.contact-shell { width: min(980px, calc(100% - 28px)); }
.contact-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; margin: 3vh 0 18px; padding: clamp(28px, 6vw, 54px); overflow: hidden; background: linear-gradient(135deg, rgba(255,253,249,.98), rgba(246,225,216,.96)); }
.contact-hero h1 { margin: 8px 0 12px; font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.05; }
.contact-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.9; }
.contact-hero-mark { width: 126px; height: 126px; display: grid; place-items: center; border-radius: 42px; color: #fff; background: linear-gradient(145deg, var(--rose-gold), var(--brand-dark)); box-shadow: 0 18px 42px rgba(117,66,75,.22); font-size: 2rem; font-weight: 900; transform: rotate(-4deg); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 23px; text-decoration: none; background: var(--card); box-shadow: var(--soft-shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.contact-card:hover, .contact-social-card:hover { transform: translateY(-3px); border-color: rgba(173,106,115,.48); box-shadow: var(--shadow); }
.contact-card-whatsapp { border-color: rgba(86,117,99,.25); background: linear-gradient(145deg, #fffdf9, #edf5ef); }
.contact-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg, var(--rose-gold), var(--brand-dark)); font-size: 1.45rem; font-weight: 900; }
.contact-card-whatsapp .contact-icon { background: linear-gradient(145deg, #6f9a7c, #3f6b50); }
.contact-card-copy { min-width: 0; display: grid; gap: 3px; }
.contact-card-copy small { color: var(--muted); font-size: .72rem; font-weight: 800; }
.contact-card-copy strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-card-copy span { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.contact-arrow { color: var(--brand); font-size: 1.35rem; font-weight: 900; }
.contact-social-section { margin-top: 18px; }
.contact-social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-social-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; background: #fffdfa; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.contact-social-card > span:nth-child(2) { display: grid; gap: 3px; }
.contact-social-card small { color: var(--muted); }
.social-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff; font-size: 1.2rem; font-weight: 900; }
.contact-youtube .social-icon { background: #b54f55; }
.contact-facebook .social-icon { background: #506f9e; font-family: Arial, sans-serif; font-size: 1.65rem; }
.contact-safety { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px 18px; border: 1px solid rgba(86,117,99,.22); border-radius: 18px; color: #405d4c; background: rgba(239,247,241,.78); }
.contact-safety p { margin: 0; line-height: 1.7; }
.registration-success, .registration-error { text-align: center; padding: 18px 0; }
.store-order-list { display: grid; gap: 15px; }
.portal-store-order { overflow: hidden; }
.portal-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.portal-order-head h3 { margin: 5px 0 0; }
.portal-order-head > strong { color: var(--brand-dark); font-size: 1.25rem; white-space: nowrap; }
.order-progress { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 18px; }
.order-progress::before { content: ""; position: absolute; top: 17px; right: 10%; left: 10%; height: 3px; background: var(--line); }
.order-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; color: var(--muted); text-align: center; }
.order-step > span { width: 36px; height: 36px; display: grid; place-items: center; border: 3px solid var(--line); border-radius: 50%; background: var(--card); font-weight: 900; }
.order-step strong { font-size: .83rem; }
.order-step small { min-height: 1.1em; font-size: .7rem; }
.order-step.complete > span { border-color: var(--success); color: #fff; background: var(--success); }
.order-step.complete strong { color: #405d4c; }
.order-step.current > span { box-shadow: 0 0 0 6px rgba(86,117,99,.14); }
.order-payment-wait, .order-cancelled { margin: 18px 0; padding: 12px 15px; border-radius: 15px; font-weight: 800; }
.order-payment-wait { color: #805c13; background: #fff4d7; }
.order-cancelled { color: var(--danger); background: #fae7e4; }
.portal-store-order details { border-top: 1px solid var(--line); padding-top: 13px; }
.portal-store-order summary { color: var(--brand-dark); font-weight: 900; cursor: pointer; }
.portal-order-details { padding-top: 14px; }
.portal-order-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 13px; border-radius: 16px; background: #fffdfa; }
.portal-order-meta span { display: grid; gap: 3px; color: var(--muted); font-size: .78rem; }
.portal-order-meta strong { color: var(--ink); font-size: .88rem; }
.portal-order-details ul { list-style: none; padding: 0; }
.portal-order-details li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.portal-order-details .portal-order-item { display: block; }
.portal-order-item-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; }
.portal-order-item-row > span { display: grid; gap: 3px; }
.portal-order-item-row small { color: var(--muted); font-size: .75rem; }
.item-track-button { border: 1px solid rgba(173,106,115,.35); border-radius: 12px; padding: 7px 10px; color: var(--brand-dark); background: #fffdfa; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 900; }
.item-tracking-panel { margin-top: 10px; padding: 12px; border-radius: 15px; background: #fffdfa; }
.item-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.item-progress-step { display: grid; justify-items: center; gap: 6px; color: var(--muted); text-align: center; }
.item-progress-step > span { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-weight: 900; }
.item-progress-step > div { display: grid; gap: 3px; }
.item-progress-step strong { font-size: .72rem; }
.item-progress-step small { font-size: .65rem; }
.item-progress-step.complete > span { border-color: var(--success); color: #fff; background: var(--success); }
.item-progress-step.complete strong { color: #405d4c; }
.portal-notification-badge { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 99px; color: #fff; background: var(--danger); font-size: .78rem; vertical-align: middle; }
.portal-notifications { display: grid; gap: 9px; }
.portal-notification { display: flex; justify-content: space-between; gap: 14px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; }
.portal-notification.unread { border-color: rgba(173,106,115,.42); background: #fff4f1; box-shadow: inset -4px 0 0 var(--brand); }
.portal-notification p { margin: 4px 0 0; color: var(--muted); }
.portal-notification small { color: var(--muted); white-space: nowrap; }
.portal-address-book { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(360px,1.1fr); gap: 22px; }
.portal-address-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-content: start; }
.portal-address-form label { display: grid; gap: 5px; font-weight: 800; }
.portal-address-form .wide, .portal-address-form button { grid-column: 1 / -1; }
.portal-default-address { display: flex!important; grid-template-columns: auto 1fr; align-items: center; }
.portal-default-address input { width: auto; accent-color: var(--brand); }
.portal-address-list { display: grid; gap: 10px; align-content: start; }
.portal-address { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fffdfa; }
.portal-address p { margin: 4px 0; color: var(--muted); font-size: .82rem; }
.portal-address > div:last-child { display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 6px; }
.default-address-badge { margin-right: 5px; padding: 3px 7px; border-radius: 99px; color: #405d4c; background: #e5f2e8; font-size: .68rem; }
.portal-order-customer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.portal-order-total { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px; margin-top: 13px; }
.portal-order-total strong { color: var(--brand-dark); }
.success-mark, .error-mark { width: 88px; height: 88px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 30px; font-size: 2.8rem; font-weight: 900; }
.success-mark { color: white; background: var(--success); box-shadow: 0 16px 34px rgba(86,117,99,.2); }
.error-mark { color: white; background: var(--danger); box-shadow: 0 16px 34px rgba(165,73,73,.18); }
@keyframes registration-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 800px) {
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  #metrics .card { grid-column: span 12 !important; }
  .topbar, .hero { align-items: flex-start; flex-direction: column; }
  .staff-header, .staff-session { width: 100%; justify-items: stretch; justify-content: flex-start; }
  .form-row, .reward-grid { grid-template-columns: 1fr; }
  .nav { width: 100%; }
  .nav a { flex: 1; text-align: center; }
  .card { padding: 19px; border-radius: 21px; }
  .portal-login { margin: 5vh auto; padding: 25px; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .welcome-profile { width: 100%; }
  .portal-account-actions { width: 100%; justify-content: flex-start; }
  .portal-header-actions { width: 100%; justify-content: space-between; }
  .portal-header-actions .pill { white-space: normal; text-align: center; }
  .registration-link-row { grid-template-columns: 1fr 1fr; }
  .registration-link-row input { grid-column: 1 / -1; }
  .registration-header { align-items: flex-start; }
  .registration-header { flex-direction: column; }
  .registration-header-actions { width: 100%; justify-content: space-between; }
  .stepper li { font-size: .72rem; gap: 5px; }
  .profile-photo-upload { grid-template-columns: 1fr; text-align: center; }
  .profile-photo-button { margin: auto; }
  .generated-link-card { grid-template-columns: 1fr; }
  .registration-qr { margin: auto; }
  .owner-logo-card { grid-template-columns: 1fr; }
  .manager-security-card { grid-template-columns: 1fr; }
  .staff-create-grid { grid-template-columns: 1fr; }
  .metric-detail-item { grid-template-columns: 1fr; }
  .metric-detail-value { justify-items: start; }
  .contact-hero { grid-template-columns: 1fr; }
  .contact-hero-mark { width: 92px; height: 92px; border-radius: 30px; }
  .contact-grid, .contact-social-grid { grid-template-columns: 1fr; }
  .profit-controls { width: 100%; justify-content: flex-start; }
  .order-progress { grid-template-columns: 1fr; gap: 11px; }
  .order-progress::before { top: 15px; bottom: 15px; right: 17px; left: auto; width: 3px; height: auto; }
  .order-step { grid-template-columns: 36px 1fr; justify-items: start; text-align: right; }
  .order-step > span { grid-row: 1 / 3; }
  .order-step strong, .order-step small { padding-right: 4px; }
  .portal-order-meta { grid-template-columns: 1fr; }
  .portal-order-head { flex-direction: column; }
  .portal-address-book, .portal-address-form { grid-template-columns: 1fr; }
  .portal-address-form .wide, .portal-address-form button { grid-column: auto; }
  .portal-address { grid-template-columns: 1fr; }
  .portal-address > div:last-child, .portal-order-customer-actions { display: grid; justify-content: stretch; }
  .portal-notification { display: grid; }
  .portal-order-item-row { grid-template-columns: 1fr auto; }
  .item-track-button { grid-column: 1 / -1; width: 100%; }
  .item-progress { grid-template-columns: 1fr; }
  .item-progress-step { grid-template-columns: 30px 1fr; justify-items: start; text-align: right; }
  .item-progress-step > span { grid-row: 1; }
  .pending-customer-table,
  .pending-customer-table tbody,
  .pending-customer-table tr,
  .pending-customer-table td { display: block; width: 100%; }
  .pending-customer-table thead { display: none; }
  .pending-customer-table tbody { display: grid; gap: 13px; padding-top: 4px; }
  .pending-customer-table tr { overflow: hidden; padding: 8px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; }
  .pending-customer-table td { display: grid; grid-template-columns: minmax(88px, 32%) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0e5da; white-space: normal; }
  .pending-customer-table td::before { content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 800; }
  .pending-customer-table td:last-child { border-bottom: 0; }
  .pending-customer-table td:last-child .btn { width: 100%; }
  .brand-logo { width: min(220px, 68vw); height: 76px; }
}
