/* Vara Demo — Design System (#003566 + #ffc300) */
:root {
    --primary: #003566;
    --primary-light: #004d99;
    --primary-dark: #002845;
    --accent: #ffc300;
    --accent-hover: #e6b000;
    --accent-soft: rgba(255, 195, 0, 0.14);
    --accent-glow: rgba(255, 195, 0, 0.35);
    --surface: #ffffff;
    --paper: #f4f7fb;
    --paper-2: #eaf0f7;
    --text: #003566;
    --text-muted: #5a7290;
    --line: #d8e2ee;
    --success: #0d9488;
    --success-soft: rgba(13, 148, 136, 0.12);
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 53, 102, 0.06);
    --shadow: 0 8px 28px rgba(0, 53, 102, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 53, 102, 0.12);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body.vara-demo {
    margin: 0;
    font-family: Vazirmatn, sans-serif;
    color: var(--text);
    background: var(--paper);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 53, 102, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 195, 0, 0.06), transparent);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav & Stepper ── */
.demo-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    box-shadow: 0 4px 24px rgba(0, 40, 69, 0.25);
}

.demo-nav-inner { max-width: 480px; margin: 0 auto; padding: 0.85rem 1rem 1rem; }

.demo-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.demo-nav-top-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.demo-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.demo-nav-action {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.demo-nav-action:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.demo-nav-action--accent {
    background: rgba(255, 195, 0, 0.18);
    border-color: rgba(255, 195, 0, 0.45);
    color: #ffc300;
}

.demo-nav-action--accent:hover {
    background: rgba(255, 195, 0, 0.28);
    color: #ffe066;
}

.demo-nav-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    margin-top: 0.15rem;
}

.demo-nav-top a:not(.vara-brand__link):hover { color: var(--accent); }

.demo-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    position: relative;
}

.demo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
}

.demo-step-num {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    transition: var(--transition);
}

.demo-step.is-active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.demo-step.is-active .demo-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.demo-step.is-done .demo-step-num {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.demo-step:hover:not(.is-active) { color: rgba(255,255,255,0.75); }

/* ── Layout ── */
.demo-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.75rem 1rem 3.5rem;
}

.demo-page-head { margin-bottom: 1.5rem; }

.demo-page-head--center { text-align: center; }

.demo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--accent-soft);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.demo-title {
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 900;
    margin: 0 0 0.35rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.demo-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.55;
}

/* ── Cards ── */
.demo-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.demo-card + .demo-card { margin-top: 0.85rem; }

.demo-card--flush { padding: 1.15rem; }

.demo-card-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.demo-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary);
}

.demo-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.1rem 0 0;
}

/* ── Forms ── */
.form-group { margin-bottom: 1.15rem; }

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.1);
}

.form-control::placeholder { color: #94a3b8; }

/* Shipping cards */
.shipping-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.shipping-card {
    position: relative;
    cursor: pointer;
}

.shipping-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipping-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: var(--transition);
}

.shipping-card input:checked + .shipping-card-body {
    border-color: var(--primary);
    background: rgba(0, 53, 102, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.08);
}

.shipping-card input:checked + .shipping-card-body::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    flex-shrink: 0;
}

.shipping-card-label { font-weight: 700; font-size: 0.875rem; color: var(--primary); }

.shipping-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

.shipping-card-price { font-weight: 800; font-size: 0.875rem; color: var(--primary); white-space: nowrap; }

/* Product rows */
.row-flex { display: flex; gap: 0.55rem; }
.row-flex .form-control { flex: 1; }
.row-flex .form-control.price { max-width: 9.5rem; }
.item-row + .item-row { margin-top: 0.55rem; }

.order-create-summary {
    margin-top: 0.85rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--paper-2);
}

.order-create-summary .order-row strong {
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

.add-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
}

.add-row-btn:hover { color: var(--primary-light); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: var(--radius);
    padding: 0.9rem 1.25rem;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.2;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    width: 100%;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid var(--line);
    width: 100%;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 53, 102, 0.03);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-ghost {
    background: none;
    border: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.btn-ghost:hover { color: var(--primary-light); }

.btn-sm { padding: 0.55rem 0.85rem; font-size: 0.78rem; }

.btn-row { display: flex; gap: 0.55rem; margin-top: 1rem; }
.btn-row .btn { flex: 1; min-width: 0; width: auto; }

.link-page-actions { margin-top: 1rem; }
.link-page-actions .btn-row { margin-top: 0; }
.link-page-foot {
    margin-top: 0.75rem;
}
.link-page-new-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.875rem;
    line-height: 1.2;
    transition: var(--transition);
    text-decoration: none;
    box-sizing: border-box;
}
.link-page-new-order:hover {
    border-color: var(--primary);
    border-style: solid;
    background: rgba(0, 53, 102, 0.03);
    color: var(--primary);
    transform: translateY(-1px);
}
.link-page-new-order:active {
    transform: translateY(0);
}
.link-page-back {
    margin-top: 1.25rem;
    text-align: center;
}
.link-page-back .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-order-tools {
    margin-top: 1rem;
}
.portal-order-tools .demo-card-head {
    margin-bottom: 0.85rem;
}
.portal-order-tools .order-details-grid {
    margin-bottom: 0.85rem;
}
.portal-order-tools .order-detail__value .badge {
    font-size: 0.68rem;
    vertical-align: middle;
}
.portal-order-tools__receipt {
    width: 100%;
    margin-bottom: 0.65rem;
}
.portal-order-tools .dashboard-order-actions {
    margin-top: 0;
}
.portal-order-tools .dashboard-order-actions form {
    flex: 1;
    display: flex;
    min-width: 0;
}
.portal-order-tools .dashboard-order-actions .btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
}
.portal-order-tools .dashboard-order-actions .btn-success {
    width: 100%;
}

/* ── Order rows ── */
.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--paper-2);
    font-size: 0.875rem;
}

.order-row:last-child { border-bottom: 0; }

.order-row--muted { color: var(--text-muted); }

.order-total {
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--primary);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 2px solid var(--accent-soft) !important;
}

.order-total span:last-child { color: var(--primary); }

/* ── Copy field ── */
.copy-field {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.copy-field .form-control {
    flex: 1;
    min-width: 0;
    background: var(--paper);
    font-size: 0.82rem;
    padding: 0.75rem 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.copy-btn:hover {
    border-color: var(--primary);
    background: var(--accent-soft);
}

.message-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.82rem;
    white-space: pre-line;
    line-height: 1.75;
    color: var(--text);
}

/* ── Success hero ── */
.success-hero { text-align: center; margin-bottom: 1.5rem; }

.success-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    background: var(--success-soft);
    border: 3px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--success);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ── Badges & Alerts ── */
.alert {
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(13, 148, 136, 0.2);
}

.alert-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.15);
}

.alert-danger ul { margin: 0; padding-right: 1.2rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.badge-pending { background: var(--accent-soft); color: #92680a; }
.badge-declared { background: rgba(0, 53, 102, 0.1); color: var(--primary); }
.badge-confirmed { background: var(--success-soft); color: var(--success); }

.status-card {
    text-align: center;
    padding: 1.25rem;
}

.status-card p { margin: 0; color: var(--primary); font-size: 0.9rem; line-height: 1.6; }

/* ── Dashboard ── */
.dashboard-order {
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.dashboard-order:hover { box-shadow: var(--shadow); }

.dashboard-order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.dashboard-order-name { font-weight: 800; font-size: 0.95rem; color: var(--primary); }

.dashboard-order-products {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.dashboard-order-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.dashboard-order-actions .btn { flex: 1; font-size: 0.78rem; padding: 0.6rem; }

.demo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.35rem;
    text-align: center;
    margin-top: 1.75rem;
    position: relative;
    overflow: hidden;
}

.demo-banner::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background: var(--accent-glow);
    top: -80px;
    left: -60px;
    pointer-events: none;
}

.demo-banner-title {
    font-weight: 900;
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
    position: relative;
}

.demo-banner p {
    margin: 0 0 1.1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    position: relative;
}

.demo-banner .btn {
    background: var(--accent);
    color: var(--primary);
    width: auto;
    position: relative;
}

/* ── Dashboard stats ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-card--primary {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.stat-card--primary .stat-card__label { color: rgba(255,255,255,0.75); }
.stat-card--primary .stat-card__icon { background: rgba(255,255,255,0.15); color: var(--accent); }

.stat-card--accent {
    background: linear-gradient(145deg, #003566 0%, #004080 100%);
    color: #fff;
}

.stat-card--accent .stat-card__value { color: var(--accent); }
.stat-card--accent .stat-card__label { color: rgba(255,255,255,0.75); }
.stat-card--accent .stat-card__icon { background: rgba(255, 195, 0, 0.2); color: var(--accent); }

.stat-card--warn .stat-card__value { color: #b45309; }

.stat-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.stat-card__value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-card__label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 600;
}

/* ── Finance summary ── */
.finance-summary { margin-bottom: 0.85rem; }

.finance-bars { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }

.finance-bar__head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.finance-bar__head strong { color: var(--primary); font-size: 0.8rem; }

.finance-bar__track {
    height: 8px;
    background: var(--paper-2);
    border-radius: 999px;
    overflow: hidden;
}

.finance-bar__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.finance-bar__fill--confirmed { background: var(--success); }
.finance-bar__fill--declared { background: var(--primary); }
.finance-bar__fill--pending { background: var(--accent); }

.finance-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--paper-2);
}

.finance-meta__item {
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
}

.finance-meta__item span { display: block; color: var(--text-muted); margin-bottom: 0.15rem; }
.finance-meta__item strong { color: var(--primary); font-size: 0.85rem; }

/* ── Filter tabs ── */
.filter-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface);
    border: 1.5px solid var(--line);
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
}

.filter-tab:hover { border-color: var(--primary); color: var(--primary); }

.filter-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.filter-tab.is-active .filter-tab__count {
    background: var(--accent);
    color: var(--primary);
}

.filter-tab__count {
    font-size: 0.68rem;
    font-weight: 800;
    background: var(--paper-2);
    color: var(--primary);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.25rem;
    text-align: center;
}

.orders-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.orders-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.orders-section-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dashboard-order-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.75rem 0;
    padding: 0.65rem;
    background: var(--paper);
    border-radius: var(--radius-sm);
}

.order-item-chip {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text);
}

.order-item-chip strong { color: var(--primary); white-space: nowrap; }

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.order-detail {
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
}

.order-detail__label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.order-detail__value {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}

.detail-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--text-muted);
}

.detail-tag--ok {
    background: var(--success-soft);
    color: var(--success);
}

.order-link-row {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.order-link-input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--paper);
    font-family: ui-monospace, monospace;
    min-width: 0;
}

@media (min-width: 400px) {
    .stat-card__value { font-size: 1.1rem; }
}

/* ── Receipt upload ── */
.receipt-upload { margin-bottom: 0; }

.pay-flow .receipt-upload { margin-bottom: 0.85rem; }

.receipt-dropzone {
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--paper);
}

.receipt-dropzone:hover, .receipt-dropzone.is-dragover {
    border-color: var(--primary);
    background: rgba(0, 53, 102, 0.03);
}

.receipt-dropzone-icon {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.receipt-dropzone-text { font-size: 0.85rem; font-weight: 700; color: var(--primary); }

.receipt-dropzone-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

.receipt-input { display: none; }

.receipt-hint { margin: 0.4rem 0 0; font-size: 0.72rem; color: var(--text-muted); }

.receipt-error { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--danger); }

.receipt-preview {
    margin-top: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
    background: var(--surface);
}

.receipt-preview img { max-width: 100%; max-height: 200px; border-radius: var(--radius-sm); }

/* ── Payment info ── */
.pay-info { margin-top: 0; }

.pay-info__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pay-info__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 53, 102, 0.22);
    flex-shrink: 0;
}

.pay-info__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.pay-info__desc {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pay-card-visual {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.1rem;
    background: linear-gradient(145deg, #002845 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 53, 102, 0.3);
    margin-bottom: 0.85rem;
}

.pay-card-visual__glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 195, 0, 0.18) 0%, transparent 70%);
    top: -70px;
    left: -50px;
    pointer-events: none;
}

.pay-card-visual__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.pay-card-visual__brand {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.pay-card-visual__chip {
    width: 2.2rem;
    height: 1.55rem;
    border-radius: 0.35rem;
    background: linear-gradient(135deg, var(--accent) 0%, #ffe066 50%, #e6b000 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.pay-card-visual__number-block {
    position: relative;
    z-index: 1;
    margin-bottom: 1.1rem;
}

.pay-card-visual__label {
    display: block;
    font-size: 0.68rem;
    opacity: 0.65;
    margin-bottom: 0.35rem;
}

.pay-card-visual__number-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pay-card-visual__number {
    flex: 1;
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    word-break: break-all;
    line-height: 1.4;
}

.pay-card-visual__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.pay-card-visual__field { min-width: 0; }

.pay-card-visual__field--amount {
    text-align: left;
    margin-right: auto;
}

.pay-card-visual__value {
    font-size: 0.9rem;
    font-weight: 600;
}

.pay-card-visual__amount-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pay-card-visual__amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
}

.pay-card-visual__amount small {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    color: #fff;
}

.pay-copy-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 195, 0, 0.2);
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

.pay-copy-btn--sm {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
}

.pay-copy-btn:hover { background: rgba(255, 195, 0, 0.32); }
.pay-copy-btn:active { transform: scale(0.94); }
.pay-copy-btn.is-copied { background: rgba(255, 195, 0, 0.45); color: var(--primary); }
.pay-copy-btn__check { display: none; }
.pay-copy-btn.is-copied .pay-copy-btn__icon { display: none; }
.pay-copy-btn.is-copied .pay-copy-btn__check { display: block; }

.pay-copy-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px var(--accent-glow);
    font-family: inherit;
}

.pay-copy-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.pay-copy-primary.is-copied {
    background: var(--primary);
    color: var(--accent);
}

.pay-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pay-steps li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pay-steps li span {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Unified payment flow ── */
.pay-flow { padding: 1.25rem; }

.pay-flow__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pay-flow__receipt {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1.5px dashed var(--line);
}

.pay-flow__receipt-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pay-flow__step-badge {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pay-flow__receipt-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

.pay-flow__receipt-desc {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pay-flow .receipt-dropzone {
    background: var(--surface);
    border-color: var(--line);
    padding: 1.35rem 1rem;
}

.pay-flow .receipt-dropzone:hover,
.pay-flow .receipt-dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.pay-flow__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.status-card__note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 380px) {
    .pay-card-visual__number { letter-spacing: 0.04em; font-size: 1rem; }
}

/* ── Customer payment (vara/customer) ── */
.customer-pay {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-top: 0.85rem;
}

.customer-pay__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.customer-pay__header-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 53, 102, 0.2);
}

.customer-pay__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.customer-pay__desc {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.customer-pay__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    margin-bottom: 0.85rem;
    background: linear-gradient(145deg, #002845 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 14px 36px rgba(0, 53, 102, 0.28);
}

.customer-pay__card-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 195, 0, 0.2) 0%, transparent 70%);
    top: -60px;
    left: -40px;
    pointer-events: none;
}

.customer-pay__card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.customer-pay__brand {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.customer-pay__chip {
    width: 2rem;
    height: 1.45rem;
    border-radius: 0.3rem;
    background: linear-gradient(135deg, var(--accent) 0%, #ffe066 50%, #e6b000 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.customer-pay__field {
    position: relative;
    z-index: 1;
    margin-bottom: 0.85rem;
}

.customer-pay__field:last-child { margin-bottom: 0; }

.customer-pay__label {
    display: block;
    font-size: 0.68rem;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.customer-pay__number-row,
.customer-pay__amount-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.customer-pay__number {
    flex: 1;
    min-width: 0;
    font-size: clamp(1rem, 4.2vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    word-break: break-all;
    line-height: 1.45;
    cursor: pointer;
}

.customer-pay__card-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.customer-pay__field--amount {
    margin-right: auto;
    text-align: left;
}

.customer-pay__value {
    font-size: 0.88rem;
    font-weight: 600;
}

.customer-pay__amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
}

.customer-pay__amount small {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.customer-pay__copy {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 195, 0, 0.22);
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
}

.customer-pay__copy--sm {
    width: 2rem;
    height: 2rem;
}

.customer-pay__copy:hover { background: rgba(255, 195, 0, 0.35); }
.customer-pay__copy:active { transform: scale(0.94); }
.customer-pay__copy.is-copied { background: var(--accent); color: var(--primary); }

.customer-pay__copy-main {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: var(--transition);
}

.customer-pay__copy-main:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.customer-pay__copy-main.is-copied {
    background: var(--primary);
    color: var(--accent);
}

.customer-pay__form {
    padding-top: 1.15rem;
    border-top: 1.5px dashed var(--line);
}

.customer-pay__upload-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.customer-pay__required { color: var(--danger); }

.customer-pay__dropzone {
    display: block;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1rem;
    text-align: center;
    cursor: pointer;
    background: var(--paper);
    transition: var(--transition);
}

.customer-pay__dropzone:hover,
.customer-pay__dropzone.is-dragover {
    border-color: var(--primary);
    background: rgba(0, 53, 102, 0.04);
}

.customer-pay__dropzone.has-file {
    border-color: var(--success);
    background: var(--success-soft);
    border-style: solid;
}

.customer-pay__dropzone-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.45rem;
    color: var(--primary);
}

.customer-pay__dropzone-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.customer-pay__dropzone-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.customer-pay__file {
    display: none;
}

.customer-pay__error {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--danger);
}

.customer-pay__preview {
    margin-top: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
    background: var(--surface);
}

.customer-pay__preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.customer-pay__preview span {
    display: block;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

.customer-pay__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

/* ── Toast ── */
.demo-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
    opacity: 0;
    pointer-events: none;
}

.demo-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.demo-toast svg { color: var(--accent); flex-shrink: 0; }

.muted { color: var(--text-muted); font-size: 0.8rem; text-align: center; margin-top: 1rem; }

.text-center { text-align: center; }

/* ── Demo index / flow ── */
.demo-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.demo-hero .demo-subtitle {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.flow-step {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.flow-step__num {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 900;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.flow-step__title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.25rem;
}

.flow-step__desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.sample-orders {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sample-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: var(--paper);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sample-order:hover {
    background: var(--accent-soft);
}

.sample-order strong {
    display: block;
    color: var(--primary);
    font-size: 0.88rem;
}

.sample-order__meta {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.demo-card--muted {
    background: var(--paper);
    text-align: center;
}

.demo-reset-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
}

.demo-nav-brand-link {
    text-decoration: none;
    color: inherit;
}

.demo-flow-tip {
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    color: var(--primary);
    line-height: 1.6;
}

.demo-flow-tip a {
    color: var(--primary);
    font-weight: 800;
}

/* ── Customer-only page (shared link) ── */
body.vara-customer {
    margin: 0;
    font-family: Vazirmatn, sans-serif;
    color: var(--text);
    background: var(--paper);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 53, 102, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 195, 0, 0.06), transparent);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.customer-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(0, 53, 102, 0.06);
}

.customer-site-header__inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    text-align: center;
}

.customer-site-header__store {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.customer-site-header__badge {
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
}

.customer-main {
    padding-top: 1.35rem;
    padding-bottom: 1.5rem;
}

.customer-site-footer {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    text-align: center;
}

.customer-site-footer p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.mb-0 { margin-bottom: 0; }

/* ── safe-area (موبایل‌های نوچ‌دار) ── */
.demo-toast { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }

/* ── focus-visible برای دسترس‌پذیری ── */
.shipping-card input:focus-visible + .shipping-card-body,
.storefront-product input:focus-visible + .storefront-product__body {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.18);
}

.btn.is-loading { opacity: 0.7; cursor: progress; }

.form-label__opt { font-weight: 500; color: var(--text-muted); font-size: 0.72rem; }

/* ── دکمه‌های اشتراک‌گذاری ── */
.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.5rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.share-btn svg { flex-shrink: 0; }
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.share-btn--whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn--telegram { background: #229ED9; border-color: #229ED9; color: #fff; }
.share-btn--copy { grid-column: 1 / -1; }

/* ── QR و استوری ── */
.qr-share {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.qr-box {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

.qr-share__actions { flex: 1; display: flex; flex-direction: column; gap: 0.55rem; align-items: stretch; min-width: 0; }
.qr-share__hint { margin: 0; font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
.qr-share__actions .btn { width: 100%; }
.qr-share__download {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0.75rem;
}

@media (max-width: 480px) {
    .qr-share {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-box {
        align-self: center;
    }
}

/* ── پرداخت آنلاین ── */
.online-pay__btn { margin-top: 0.25rem; }

.online-pay__divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.online-pay__divider::before,
.online-pay__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ── درگاه شبیه‌سازی‌شده ── */
.gateway-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    margin-top: 2rem;
}

.gateway-card__bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.gateway-card__lock { margin-left: 0.35rem; }
.gateway-card__body { padding: 1.5rem 1.35rem; text-align: center; }
.gateway-card__store { font-weight: 800; color: var(--primary); margin: 0 0 1rem; font-size: 0.95rem; }
.gateway-card__label { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 0.25rem; }
.gateway-card__amount { font-size: 1.65rem; font-weight: 900; color: var(--primary); margin: 0 0 0.5rem; }
.gateway-card__amount small { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.gateway-card__ref { font-size: 0.72rem; color: var(--text-muted); margin: 0 0 1.35rem; }
.gateway-card__actions { display: flex; flex-direction: column; gap: 0.55rem; }
.gateway-card__note { font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; margin: 1.1rem 0 0; }

/* ── نظر مشتری ── */
.review-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    font-size: 2rem;
    line-height: 1;
}

.review-stars input { position: absolute; opacity: 0; pointer-events: none; }

.review-stars label {
    color: var(--paper-2);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.review-stars label:hover,
.review-stars label:hover ~ label,
.review-stars input:checked ~ label {
    color: var(--accent);
}

.review-stars label:hover { transform: scale(1.15); }

.review-stars--static { font-size: 1.5rem; }
.review-stars--static span { color: var(--paper-2); }
.review-stars--static span.is-on { color: var(--accent); }
.review-stars--sm { font-size: 1.05rem; }

.review-textarea { margin-top: 0.85rem; resize: vertical; }

.review-done { text-align: center; }
.review-done__comment { margin: 0.65rem 0 0.35rem; font-size: 0.88rem; color: var(--text); line-height: 1.65; }
.review-done__thanks { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

.dashboard-review {
    margin-top: 0.65rem;
    padding: 0.65rem 0.75rem;
    background: var(--paper);
    border-radius: var(--radius-sm);
}

.dashboard-review__comment { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--text); line-height: 1.6; }

/* ── بج رهاشده + تگ‌های داشبورد ── */
.dashboard-order-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.badge-abandoned { background: #fef3c7; color: #b45309; }

/* ── مینی‌فروشگاه ── */
.storefront-ig { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

.storefront-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.storefront-product { position: relative; cursor: pointer; }
.storefront-product input { position: absolute; opacity: 0; pointer-events: none; }

.storefront-product__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    padding: 1rem 0.75rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: var(--transition);
    height: 100%;
}

.storefront-product.is-selected .storefront-product__body {
    border-color: var(--primary);
    background: rgba(0, 53, 102, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.08);
}

.storefront-product__emoji { font-size: 1.85rem; }
.storefront-product__name { font-size: 0.82rem; font-weight: 700; color: var(--primary); line-height: 1.4; }
.storefront-product__price { font-size: 0.78rem; font-weight: 800; color: var(--text-muted); }

.storefront-product__check {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.storefront-product.is-selected .storefront-product__check { opacity: 1; transform: scale(1); }

.storefront-bar {
    position: sticky;
    bottom: 0;
    margin-top: 1rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.storefront-bar__total { flex: 1; }
.storefront-bar__total span { display: block; font-size: 0.72rem; color: var(--text-muted); }
.storefront-bar__total strong { font-size: 1.05rem; font-weight: 900; color: var(--primary); }
.storefront-bar .btn { width: auto; flex-shrink: 0; }
.storefront-bar .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── پنل فروشنده (تنظیمات) ── */
.demo-steps--panel .demo-step {
    flex: 1;
    justify-content: center;
    text-align: center;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0.35rem 0 0;
}

.input-prefix {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.input-prefix__mark {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    border: 1.5px solid var(--line);
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.input-prefix .form-control {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.settings-tabs {
    margin-bottom: 1.15rem;
}

.settings-tab-panes { margin-bottom: 1.25rem; }

.settings-tab-pane { display: none; }
.settings-tab-pane.is-active { display: block; }

.settings-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.settings-check input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.settings-check__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.settings-check__body strong {
    font-size: 0.85rem;
    color: var(--primary);
}

.settings-check__body small {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.settings-shipping-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.85rem 0 0.65rem;
}

.settings-shipping-row {
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem;
    background: #fafbfd;
}

.settings-shipping-row__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--line);
}

.settings-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.settings-radio input { accent-color: var(--primary); }

.settings-remove-btn {
    border: 0;
    background: none;
    color: #dc3545;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 0.2rem 0.35rem;
}

.settings-remove-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.settings-form-foot {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.vara-settings-preview { margin-top: 1rem; }

.vara-phone-frame {
    background: #1a1a2e;
    border-radius: 2rem;
    padding: 0.65rem 0.55rem 0.85rem;
    box-shadow: 0 12px 40px rgba(0, 53, 102, 0.18);
    max-width: 320px;
    margin: 0 auto;
}

.vara-phone-frame__notch {
    width: 80px;
    height: 6px;
    background: #333;
    border-radius: 999px;
    margin: 0 auto 0.5rem;
}

.vara-phone-frame__screen {
    background: #f4f7fb;
    border-radius: 1.35rem;
    overflow: hidden;
    height: 520px;
}

.vara-phone-frame__screen iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #f4f7fb;
}

.vara-seller .demo-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vara-seller .demo-card-head .btn { margin-top: 0.15rem; }

/* ── لیست فروشگاه‌ها ── */
.shops-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.shop-card--active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.08);
}

.shop-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.shop-card__name {
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
    color: var(--primary);
}

.shop-card__ig {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0;
}

.shop-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.shop-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--line);
}

.shop-card__stat span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.shop-card__stat strong {
    font-size: 0.88rem;
    color: var(--primary);
}

.shop-card__actions {
    display: flex;
    gap: 0.5rem;
}

.shop-portal-access {
    background: linear-gradient(145deg, rgba(0, 53, 102, 0.05), rgba(255, 195, 0, 0.1));
    border: 1.5px solid rgba(0, 53, 102, 0.14);
    border-radius: var(--radius);
    padding: 0.9rem;
    margin-bottom: 0.85rem;
}

.shop-portal-access__head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.shop-portal-access__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
}

.shop-portal-access__titles {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.shop-portal-access__titles strong {
    font-size: 0.84rem;
    color: var(--primary);
}

.shop-portal-access__hint,
.shop-portal-access__missing {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.shop-portal-access__copy .copy-btn + .copy-btn {
    margin-inline-start: 0;
}

.shop-cred-reset {
    margin-bottom: 0.35rem;
}

.shop-portal-access .form-label {
    margin-bottom: 0.35rem;
}

.shop-portal-access__copy {
    margin-bottom: 0.55rem;
}

.shop-portal-access__copy .form-control {
    font-size: 0.75rem;
    padding: 0.7rem 0.75rem;
    letter-spacing: -0.01em;
}

.shop-portal-access__open {
    width: 100%;
    text-align: center;
    display: block;
}

.portal-logout-form {
    margin-top: 0.55rem;
    text-align: center;
}

.portal-logout-btn {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
}

/* ── هدر پورتال فروشگاه (موبایل‌اول) ── */
.shop-portal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 24px rgba(0, 40, 69, 0.28);
    padding-top: env(safe-area-inset-top, 0);
}

.shop-portal-header__inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 0.6rem 0.85rem 0.65rem;
}

.shop-portal-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
}

.shop-portal-header__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.shop-portal-header__mark {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffd033 0%, #ffc300 45%, #e6ad00 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(255, 195, 0, 0.4);
}

.shop-portal-header__store {
    min-width: 0;
    flex: 1;
}

.shop-portal-header__store-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.shop-portal-header__store-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.shop-portal-header__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.shop-portal-header__logout {
    margin: 0;
    padding: 0;
}

.shop-portal-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.shop-portal-header__action:hover,
.shop-portal-header__action:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
}

.shop-portal-header__action:active {
    transform: scale(0.96);
}

.shop-portal-header__action--logout {
    color: rgba(255, 255, 255, 0.78);
}

.shop-portal-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.18rem;
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 0.22rem;
}

.shop-portal-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.32rem 0.12rem;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.shop-portal-tab:hover:not(.is-active) {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
}

.shop-portal-tab.is-active {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(255, 195, 0, 0.32);
}

.shop-portal-tab:active {
    transform: scale(0.98);
}

.vara-shop-portal .demo-main {
    padding-top: 1rem;
}

.vara-shop-portal .demo-page-head {
    margin-bottom: 1.1rem;
}

.vara-shop-portal .demo-page-head--portal {
    margin-bottom: 0.95rem;
}

.vara-shop-portal .demo-page-head--portal .demo-eyebrow {
    margin-bottom: 0.25rem;
}

.vara-shop-portal .demo-page-head--portal .demo-title {
    font-size: 1.15rem;
}

@media (max-width: 360px) {
    .shop-portal-header__inner {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .shop-portal-header__store-name {
        font-size: 0.86rem;
    }

    .shop-portal-tabs {
        gap: 0.14rem;
        padding: 0.18rem;
    }

    .shop-portal-tab {
        font-size: 0.625rem;
        min-height: 2.25rem;
        padding: 0.28rem 0.08rem;
    }

    .shop-portal-header__action {
        width: 2.2rem;
        height: 2.2rem;
    }
}

@media (min-width: 361px) and (max-width: 399px) {
    .shop-portal-tab {
        font-size: 0.72rem;
        padding: 0.32rem 0.15rem;
    }
}

@media (min-width: 400px) {
    .shop-portal-header__inner {
        padding-top: 0.7rem;
        padding-bottom: 0.75rem;
    }

    .shop-portal-header__store-name {
        font-size: 1rem;
    }

    .shop-portal-tabs {
        gap: 0.22rem;
        padding: 0.26rem;
    }

    .shop-portal-tab {
        font-size: 0.78rem;
        min-height: 2.5rem;
        padding: 0.36rem 0.2rem;
    }
}

@media (min-width: 480px) {
    .shop-portal-tabs {
        gap: 0.28rem;
    }

    .shop-portal-tab {
        font-size: 0.82rem;
        min-height: 2.6rem;
        padding: 0.4rem 0.3rem;
    }
}

.portal-subscription .order-details-grid {
    margin-bottom: 0.85rem;
}
.portal-subscription__meta {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: var(--demo-muted, #6c757d);
}
.portal-subscription__alert {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
}
.portal-subscription__receipt {
    width: 100%;
}
.portal-subscription__renew {
    margin-top: 0.85rem;
}

.payment-settings-intro {
    margin: 0 0 1rem;
}

.payment-settings-block {
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem;
    background: #fafbfd;
    margin-bottom: 0.85rem;
}

.payment-settings-block:last-child {
    margin-bottom: 0;
}

.payment-settings-block__head {
    margin-bottom: 0;
}

.payment-settings-block__head .payment-settings-toggle {
    margin-top: 0;
}

.payment-settings-fields {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
}

.payment-settings-fields .form-group:last-child {
    margin-bottom: 0;
}
