/*
 * Public site: home, sign in, register, password reset.
 * Loaded after the app css, so every rule is scoped under body.site to win
 * over Bootstrap/AdminLTE without touching the signed-in screens.
 */
body.site {
    --ink: #0A1A3F;
    --ink-2: #142A5E;
    --ink-line: #24407F;
    --ink-deep: #07132F;
    --paper: #FFFFFF;
    --canvas: #F2F5F9;
    --line: #DCE3EC;
    --text: #0F1B33;
    --muted: #56647D;
    --on-ink: #E8EEF8;
    --on-ink-muted: #9FB0CF;
    --mint: #14C9A4;
    --mint-hover: #3BD8B7;
    --mint-deep: #0A8A70;
    --mint-wash: #E3F8F2;
    --amber: #F2A33A;
    --danger: #C2412D;
    --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
    --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --r: 10px;

    background: var(--canvas);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
html:has(body.site) { background: var(--canvas, #F2F5F9); height: auto; }
body.site *, body.site *::before, body.site *::after { box-sizing: border-box; }
body.site a { color: inherit; }
body.site a:hover, body.site a:focus { text-decoration: none; }
body.site h1, body.site h2, body.site h3 {
    font-family: var(--f-display);
    font-stretch: 112%;
    line-height: 1.08;
    text-wrap: balance;
    margin: 0;
    letter-spacing: -0.01em;
    color: inherit;
}
body.site p { margin: 0; }
body.site :focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
body.site .site-main { flex: 1 0 auto; }

.site .wrap { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.site .eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- header ---------- */
.site .top { background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); position: relative; z-index: 5; }
.site .top .wrap { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.site .brand { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.site .brand:hover { color: var(--paper); }
.site .brand svg { width: 34px; height: 34px; flex: none; }
.site .brand b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; display: block; line-height: 1.2; }
.site .brand small { display: block; font-size: 11px; color: var(--on-ink-muted); font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; }
.site .nav-links { display: flex; gap: 22px; font-size: 15px; }
.site .nav-links a { color: var(--on-ink-muted); }
.site .nav-links a:hover { color: var(--paper); }
.site .top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site .top-actions details { margin: 0 !important; }
.site .top-actions summary { color: var(--on-ink-muted) !important; font-size: 14px !important; border: 1px solid var(--ink-line); border-radius: 8px; padding: 8px 10px; cursor: pointer; list-style: none; }
.site .top-actions summary::-webkit-details-marker { display: none; }
.site .top-actions summary::after { content: "▾"; margin-left: 6px; font-size: 11px; }
.site .top-actions .tw-dw-menu { color: var(--text); font-size: 14px; max-height: 70vh; overflow-y: auto; flex-wrap: nowrap; }
.site .top-actions .tw-dw-menu a { color: var(--text); cursor: pointer; }

/* ---------- buttons ---------- */
.site .btn-s { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 18px; font: 600 15px/1.1 var(--f-body); cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; text-align: center; }
.site .btn-mint { background: var(--mint); color: var(--ink); }
.site .btn-mint:hover, .site .btn-mint:focus { background: var(--mint-hover); color: var(--ink); }
.site .btn-ghost { color: var(--paper); border-color: var(--ink-line); background: transparent; }
.site .btn-ghost:hover, .site .btn-ghost:focus { border-color: var(--on-ink-muted); color: var(--paper); }
.site .btn-ink { background: var(--ink); color: var(--paper); }
.site .btn-ink:hover, .site .btn-ink:focus { background: var(--ink-2); color: var(--paper); }
.site .btn-line { background: var(--paper); color: var(--text); border-color: var(--line); }
.site .btn-line:hover, .site .btn-line:focus { border-color: var(--muted); color: var(--text); }
.site .btn-lg { padding: 15px 22px; font-size: 16px; }
.site .btn-block { width: 100%; }

/* ---------- hero ---------- */
.site .hero { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.site .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-top: 72px; }
.site .hero-copy { padding-bottom: 72px; min-width: 0; }
.site .hero .eyebrow { color: var(--mint); }
.site .hero h1 { color: var(--paper); font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin-top: 16px; }
.site .hero h1 em { font-style: normal; color: var(--mint); }
.site .hero-lead { margin-top: 20px; font-size: 19px; color: var(--on-ink); max-width: 34em; }
.site .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.site .hero-note { margin-top: 22px; font-size: 14px; color: var(--on-ink-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site .hero-note span::before { content: "✓"; color: var(--mint); margin-right: 6px; font-weight: 700; }

.site .till { position: relative; align-self: end; display: flex; justify-content: flex-end; min-width: 0; }
.site .receipt { position: relative; width: 330px; max-width: 100%; background: var(--paper); color: #1d1d1d; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.5; padding: 22px 22px 34px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); transform: rotate(-1.5deg); animation: site-print 1s ease-out both; }
.site .receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 7px, var(--paper) 0) 0 0/14px 14px repeat-x, linear-gradient(45deg, transparent 7px, var(--paper) 0) 0 0/14px 14px repeat-x; }
@keyframes site-print { from { transform: translateY(60px) rotate(-1.5deg); } to { transform: translateY(0) rotate(-1.5deg); } }
.site .r-head { text-align: center; border-bottom: 1px dashed #999; padding-bottom: 10px; margin-bottom: 10px; }
.site .r-head b { font-size: 14px; letter-spacing: 0.06em; display: block; }
.site .r-row { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.site .r-row span:first-child { min-width: 0; }
.site .r-sub { color: #666; padding-left: 10px; }
.site .r-sep { border-top: 1px dashed #999; margin: 8px 0; }
.site .r-total { font-weight: 600; font-size: 15px; }
.site .r-foot { text-align: center; margin-top: 12px; color: #555; }
.site .r-bar { height: 34px; margin: 10px auto 0; width: 80%; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }

.site .stat-card { position: absolute; left: -24px; bottom: 150px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px 16px; width: 180px; color: var(--on-ink); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); z-index: 1; }
.site .stat-card .eyebrow { color: var(--on-ink-muted); font-size: 10.5px; }
.site .stat-card .big { font-family: var(--f-mono); font-size: 22px; font-weight: 600; color: var(--paper); margin-top: 4px; font-variant-numeric: tabular-nums; }
.site .stat-card .mini { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--on-ink-muted); margin-top: 8px; }
.site .stat-card .mini b { color: var(--paper); font-family: var(--f-mono); font-weight: 500; }
.site .stat-card .warn b { color: var(--amber); }

/* ---------- home sections ---------- */
.site .strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.site .strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-top: 20px; padding-bottom: 20px; font-size: 15px; color: var(--muted); }
.site .strip b { color: var(--text); font-weight: 600; }

.site .block { padding-top: 84px; padding-bottom: 84px; }
.site .block-tight-top { padding-top: 0; }
.site .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 44px; }
.site .sec-head .eyebrow { color: var(--mint-deep); }
.site .sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; margin-top: 10px; }
.site .sec-head p { color: var(--muted); font-size: 17px; max-width: 34em; }

.site .features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--paper); }
.site .feat { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.site .feat svg { width: 26px; height: 26px; stroke: var(--mint-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site .feat h3 { font-size: 18px; font-weight: 700; font-stretch: 105%; }
.site .feat p { color: var(--muted); font-size: 15px; }

.site .steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site .step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.site .step .num { font-family: var(--f-mono); font-size: 13px; color: var(--mint-deep); font-weight: 600; }
.site .step h3 { font-size: 20px; font-weight: 700; font-stretch: 105%; }
.site .step p { color: var(--muted); font-size: 15px; }

.site .pricing { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.site .plan { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--paper); min-width: 0; }
.site .plan.featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.site .plan-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.site .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--mint-wash); color: var(--mint-deep); white-space: nowrap; }
.site .plan.featured .tag { background: var(--mint); color: var(--ink); }
.site .price { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.site .price small { display: block; font-family: var(--f-body); font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 8px; }
.site .plan.featured .price small, .site .plan.featured .plan-desc { color: var(--on-ink-muted); }
.site .plan-desc { color: var(--muted); font-size: 15px; }
.site .plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.site .plan li { display: flex; gap: 10px; }
.site .plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--mint-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230A8A70' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.site .plan .btn-s { margin-top: auto; }
.site .plans-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.site .plans-note a { color: var(--mint-deep); font-weight: 600; }

.site .help { background: var(--ink); color: var(--on-ink); }
.site .help .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.site .help h2 { color: var(--paper); font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
.site .help p { color: var(--on-ink-muted); margin-top: 8px; }
.site .help p b { color: var(--paper); font-family: var(--f-mono); font-weight: 500; }
.site .help-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.site .foot { background: var(--ink-deep); color: var(--on-ink-muted); font-size: 14px; flex-shrink: 0; }
.site .foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.site .foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site .foot a:hover { color: var(--paper); }

/* ---------- sign in / register / reset ---------- */
.site .auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 140px); }
.site .auth-main { background: var(--paper); display: flex; justify-content: center; padding: 56px 40px; min-width: 0; }
.site .auth-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.site .auth-form h1 { font-size: 34px; font-weight: 800; color: var(--text); }
.site .auth-form .sub { color: var(--muted); margin-top: 8px; }
.site .auth-form .sub a { color: var(--mint-deep); font-weight: 600; }
.site .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.site .field > label, .site .field .lbl { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; margin: 0; color: var(--text); }
.site .field > label a { color: var(--mint-deep); font-weight: 600; }
.site .field > label a:hover { text-decoration: underline; }
.site .input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--paper); transition: border-color .15s, box-shadow .15s; box-shadow: none; }
.site .input:hover { border-color: #B9C4D4; }
.site .input:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 3px var(--mint-wash); }
.site .has-error .input { border-color: var(--danger); }
.site .err { color: var(--danger); font-size: 13px; font-weight: 500; }
.site .pw { position: relative; }
.site .pw .input { padding-right: 70px; }
.site .pw button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font: 600 13px var(--f-body); cursor: pointer; border-radius: 6px; }
.site .pw button:hover { background: var(--canvas); color: var(--text); }
.site .check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; margin: 0; cursor: pointer; }
.site .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--mint-deep); }
.site .divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.site .divider::before, .site .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.site .small-print { font-size: 13px; color: var(--muted); }
.site .small-print a { color: var(--mint-deep); font-weight: 600; }
.site .alert-s { border-radius: 8px; padding: 12px 14px; font-size: 14px; background: var(--mint-wash); color: var(--mint-deep); }
.site .alert-s.bad { background: #FBEAE6; color: var(--danger); }

.site .auth-side { background: var(--ink); color: var(--on-ink); padding: 56px 40px; display: flex; justify-content: center; min-width: 0; }
.site .side-inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 28px; }
.site .side-inner h2 { color: var(--paper); font-size: 26px; font-weight: 750; margin-top: 10px; }
.site .side-inner .eyebrow { color: var(--mint); }
.site .news { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink-line); }
.site .news li { padding: 16px 0; border-bottom: 1px solid var(--ink-line); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.site .news time { font-family: var(--f-mono); font-size: 12px; color: var(--on-ink-muted); padding-top: 3px; }
.site .news b { color: var(--paper); font-weight: 600; display: block; }
.site .news span { color: var(--on-ink-muted); font-size: 14px; }
.site .notice { border: 1px solid var(--ink-line); border-radius: var(--r); padding: 16px; font-size: 14px; color: var(--on-ink-muted); display: flex; gap: 12px; }
.site .notice svg { flex: none; width: 20px; height: 20px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site .notice b { color: var(--paper); }
.site .side-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site .contact-lines { display: grid; gap: 6px; font-size: 15px; }
.site .contact-lines b { color: var(--paper); font-family: var(--f-mono); font-weight: 500; }

/* demo shop shortcuts (APP_ENV=demo only) */
.site .demo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.site .demo-list a { border: 1px solid var(--ink-line); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: var(--on-ink); }
.site .demo-list a:hover { border-color: var(--mint); color: var(--paper); }

/* ---------- register wizard (jquery-steps markup) ---------- */
.site .reg-main { align-items: flex-start; }
.site .reg-form { max-width: 680px; }
.site .trial-box { background: var(--ink-2); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; font-size: 15px; }
.site .trial-box b { color: var(--paper); }
.site .reg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.site .reg-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--on-ink-muted); }
.site .reg-points li::before { content: "✓"; color: var(--mint); font-weight: 700; }
.site .reg-points b { color: var(--paper); display: block; font-weight: 600; }

.site #business_register_form { display: block; }
.site .wizard > .steps { margin-bottom: 28px; }
.site .wizard > .steps > ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.site .wizard > .steps > ul > li { width: auto !important; float: none !important; margin: 0; }
.site .wizard > .steps a,
.site .wizard > .steps a:hover,
.site .wizard > .steps a:active { display: block; margin: 0; padding: 10px 0 0; border-radius: 0; background: transparent !important; color: var(--muted) !important; border-top: 3px solid var(--line); font-size: 14px; font-weight: 600; cursor: default; }
.site .wizard > .steps .current a,
.site .wizard > .steps .current a:hover { color: var(--text) !important; border-top-color: var(--mint-deep); }
.site .wizard > .steps .done a,
.site .wizard > .steps .done a:hover { color: var(--mint-deep) !important; border-top-color: var(--mint); cursor: pointer; }
.site .wizard > .steps .number { font-family: var(--f-mono); font-weight: 500; margin-right: 4px; }
.site .wizard > .steps .audible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site .wizard > .content { background: transparent !important; margin: 0; min-height: 0; border-radius: 0; overflow: visible; }
.site .wizard > .content > .title { position: absolute; left: -9999px; }
.site .wizard > .content > .body { position: relative; width: auto; height: auto; padding: 0; float: none; }
.site #business_register_form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* the fields are Bootstrap columns (15px gutters): pull them out so they line up with the heading */
.site #business_register_form fieldset.body { margin: 0 -15px; }
.site #business_register_form legend { font-family: var(--f-display); font-stretch: 110%; font-weight: 750; font-size: 22px; border: 0; margin: 0 0 18px; padding: 0 15px; color: var(--text) !important; width: 100%; }
.site #business_register_form .form-group { margin-bottom: 18px; }
.site #business_register_form label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.site #business_register_form label.error { color: var(--danger); font-size: 13px; font-weight: 500; margin: 6px 0 0; display: block; }
.site #business_register_form .input-group { display: flex; width: 100%; }
.site #business_register_form .input-group-addon { display: none; }
.site #business_register_form .form-control { height: 48px; border: 1px solid var(--line); border-radius: 8px !important; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--paper); box-shadow: none; flex: 1; width: 100%; }
.site #business_register_form .form-control[readonly] { background: var(--paper); cursor: pointer; }
.site #business_register_form .form-control:focus { border-color: var(--mint-deep); box-shadow: 0 0 0 3px var(--mint-wash); }
.site #business_register_form .form-control.error { border-color: var(--danger); }
.site #business_register_form .select2-container { width: 100% !important; flex: 1; }
.site #business_register_form .select2-container--default .select2-selection--single { height: 48px; border: 1px solid var(--line); border-radius: 8px; }
.site #business_register_form .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; font-size: 16px; color: var(--text); }
.site #business_register_form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.site #business_register_form .select2-container--focus .select2-selection--single,
.site #business_register_form .select2-container--open .select2-selection--single { border-color: var(--mint-deep); }
/* logo upload (bootstrap-fileinput): caption box + Browse button side by side */
.site #business_register_form .file-input .input-group { flex-wrap: nowrap; }
.site #business_register_form .file-input .file-caption { height: 48px; border-radius: 8px 0 0 8px !important; display: flex; align-items: center; min-width: 0; overflow: hidden; }
.site #business_register_form .file-input .input-group-btn { display: flex; width: auto; flex: none; white-space: nowrap; }
.site #business_register_form .file-input .btn { height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 0; font: 600 15px var(--f-body); }
.site #business_register_form .file-input .input-group-btn > .btn:last-child,
.site #business_register_form .file-input .input-group-btn > .btn-file:last-child { border-radius: 0 8px 8px 0; }
.site #business_register_form .file-input .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.site #business_register_form .file-input .glyphicon { display: none; }
.site #business_register_form .file-input .hidden-xs { display: inline !important; }
.site .wizard > .steps a:focus { outline: none; }
.site #business_register_form .file-input-new .fileinput-remove-button,
.site #business_register_form .file-input-new .fileinput-remove { display: none !important; }
.site #business_register_form .terms_condition { color: var(--mint-deep); }
.site .wizard > .actions { margin-top: 12px; padding: 0; }
.site .wizard > .actions > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 12px; width: 100%; }
.site .wizard > .actions > ul > li { float: none; margin: 0; }
.site .wizard > .actions > ul > li:first-child { margin-right: auto; }
.site .wizard > .actions a,
.site .wizard > .actions a:hover,
.site .wizard > .actions a:active { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 50px; padding: 0 22px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 16px var(--f-body); border: 1px solid var(--ink); text-transform: none; }
.site .wizard > .actions a:hover { background: var(--ink-2); }
.site .wizard > .actions a[href="#previous"] { background: var(--paper); color: var(--text); border-color: var(--line); }
.site .wizard > .actions .disabled a,
.site .wizard > .actions .disabled a:hover { visibility: hidden; }

/* toastr / sweetalert keep their own look; just make sure they sit above */
.site #toast-container { z-index: 9999; }
/* the page-load spinner from the app layout has no place on these pages */
.site .pace { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .site .stat-card { display: none; }
    .site .till { justify-content: center; }
}
@media (max-width: 1000px) {
    .site .nav-links { display: none; }
    .site .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site .hero .wrap { gap: 32px; }
}
@media (max-width: 860px) {
    .site .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
    .site .hero-copy { padding-bottom: 0; }
    .site .till { padding-top: 10px; }
    .site .stat-card { display: none; }
    .site .sec-head, .site .steps-row { grid-template-columns: minmax(0, 1fr); }
    .site .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .site .auth-main { padding: 40px 16px; }
    .site .auth-side { padding: 40px 16px; }
    .site .reg-side { display: none; }
    .site .block { padding-top: 60px; padding-bottom: 60px; }
    .site .block-tight-top { padding-top: 0; }
}
@media (max-width: 560px) {
    .site .features { grid-template-columns: minmax(0, 1fr); }
    .site .top .wrap { gap: 12px; }
    .site .brand small, .site .top-actions details, .site .top-actions .hide-xs { display: none; }
    .site .btn-s { padding: 10px 14px; }
    .site .btn-lg { padding: 14px 18px; }
    .site .hero-lead { font-size: 17px; }
    .site .auth-form h1 { font-size: 28px; }
    .site .wizard > .steps > ul { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .site * { animation: none !important; transition: none !important; }
}

/* right-to-left languages */
[dir="rtl"] .site .top-actions, .site[dir="rtl"] .top-actions { margin-left: 0; margin-right: auto; }

/* ---------- small phones: nothing may be wider than the screen ---------- */
html { overflow-x: hidden; }
body.site { overflow-x: hidden; }
.site .top .wrap, .site .brand, .site .brand span { min-width: 0; }
.site .brand b, .site .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site input, .site select, .site textarea, .site .form-control { max-width: 100%; min-width: 0; }
.site .select2-container { max-width: 100%; }
.site .field > label, .site .field .lbl { flex-wrap: wrap; }
@media (max-width: 420px) {
    .site .wrap { padding-left: 14px; padding-right: 14px; }
    .site .top .wrap { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .site .brand { gap: 8px; }
    .site .brand svg { width: 30px; height: 30px; }
    .site .brand b { font-size: 17px; }
    .site .top-actions { gap: 6px; flex: none; }
    .site .top-actions .btn-s { padding: 9px 11px; font-size: 14px; }
    .site .auth-main, .site .auth-side { padding: 32px 14px; }
    .site .auth-form h1 { font-size: 26px; }
    .site .hero h1 { font-size: 34px; }
    .site .plan { padding: 22px; }
}
@media (max-width: 340px) {
    .site .brand b { font-size: 15px; }
    .site .top-actions .btn-s { padding: 8px 9px; font-size: 13px; }
}
