/* پس‌کوچه - App Styles */
:root {
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fff7ed;
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #2563eb;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
    --font: 'Vazirmatn', Tahoma, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

body.page-seller { padding-bottom: 80px; padding-top: 48px; }

/* Seller top bar */
.seller-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.seller-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
}

.seller-top-title { font-weight: 600; font-size: .95rem; }
.seller-logout { color: var(--danger); font-size: .9rem; font-weight: 600; }

.shop-link-actions {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}

/* Product card links */
.product-card-link { display: block; color: inherit; }
.product-title-link { color: inherit; text-decoration: none; }
.product-title-link h3 { transition: color .2s; }
.product-title-link:hover h3 { color: var(--accent); }

.product-desc-preview {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0 0 .35rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-body .btn-sm { margin-bottom: .35rem; }

/* Product detail page */
.product-detail-page { padding: 1rem 0 2rem; }

.product-detail-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-detail-image {
    width: 100%;
    max-height: 420px;
    background: var(--bg);
    overflow: hidden;
}

.product-detail-image.aspect-1-1 { aspect-ratio: 1 / 1; max-height: none; }
.product-detail-image.aspect-2-3 { aspect-ratio: 2 / 3; max-height: 520px; }
.product-detail-image.aspect-3-4 { aspect-ratio: 3 / 4; max-height: 520px; }
.product-detail-image.aspect-4-3 { aspect-ratio: 4 / 3; }

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info { padding: 1.25rem; }

.product-detail-shop {
    font-size: .9rem;
    margin-bottom: .5rem;
}

.product-detail-shop a { font-weight: 600; }

.product-stock {
    font-size: .9rem;
    color: var(--text-muted);
    margin: .5rem 0;
}

.product-detail-desc {
    margin: 1.25rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.product-detail-desc h2 {
    font-size: 1rem;
    margin-bottom: .75rem;
}

.product-desc-body {
    line-height: 1.8;
    font-size: .95rem;
    color: var(--text);
}

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

.product-buy-sticky { margin-top: 1rem; }

@media (min-width: 768px) {
    .product-detail-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-image { max-height: none; min-height: 360px; }
}


a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

/* Typography */
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
.section-title { margin: 1.5rem 0 1rem; font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); }

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

.btn-sm { padding: .4rem .75rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .35rem; }

.form-group label {
    font-weight: 600;
    font-size: .9rem;
}

.form-control {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    background: var(--surface);
    transition: border-color .2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.form-hint { font-size: .8rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.color-input { height: 48px; padding: .25rem; cursor: pointer; }

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    cursor: pointer;
}

.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: .5rem;
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .9rem;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }

.error-list { margin: 0; padding-right: 1.2rem; }

.dev-otp code {
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(0,0,0,.08);
    padding: .2rem .5rem;
    border-radius: 6px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-muted { background: var(--border); color: var(--text-muted); }

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--info);
    color: #fff;
    border-radius: 50%;
    font-size: .7rem;
    vertical-align: middle;
    margin-right: .25rem;
}

/* Cards */
.card-form, .auth-card, .order-card, .hero-card, .success-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

/* Home */
.home-container { padding-top: 2rem; padding-bottom: 3rem; }

.hero-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
}

.hero-logo { font-size: 3rem; margin-bottom: .5rem; }
.hero-text { color: var(--text-muted); margin-bottom: 1.25rem; }

.hero-section-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 .75rem;
    font-weight: 600;
}

.hero-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: 1rem;
}

.hero-explore-link { margin-top: .25rem; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-block { width: 100%; display: block; text-align: center; }

.auth-links-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Explore / marketplace */
.explore-container { padding-bottom: 2rem; }

.explore-search-form { margin-bottom: 1rem; }

.explore-search-row {
    display: flex;
    gap: .5rem;
}

.explore-search-row .form-control { flex: 1; }

.explore-customer-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.explore-customer-cta p {
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.shop-browse-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 640px) {
    .shop-browse-grid { grid-template-columns: repeat(2, 1fr); }
}

.shop-browse-card {
    display: flex;
    gap: .85rem;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
}

.shop-browse-card:hover { border-color: var(--accent); }

.shop-browse-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.shop-browse-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    font-size: 1.5rem;
}

.shop-browse-body { min-width: 0; }
.shop-browse-body h3 { font-size: 1rem; margin-bottom: .2rem; }
.shop-browse-meta { font-size: .85rem; color: var(--text-muted); margin: .1rem 0 0; }

.product-shop-link {
    display: block;
    font-size: .8rem;
    color: var(--accent);
    margin-bottom: .15rem;
    text-decoration: none;
}

/* Customer bottom nav */
.my-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}

.my-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    font-size: .7rem;
    color: var(--text-muted);
    padding: .25rem .35rem;
    min-width: 56px;
    flex: 1;
}

.my-bottom-nav a.active { color: var(--accent); font-weight: 600; }
.my-nav-spacer { height: 72px; }

.page-my-orders .my-orders-container,
.page-explore .explore-container {
    padding-bottom: 1rem;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.info-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.info-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* Auth */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card { width: 100%; max-width: 420px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-note { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 1rem; }
.link-back { display: inline-block; margin-bottom: 1rem; font-size: .9rem; }

.auth-card-modern {
    max-width: 480px;
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}
.auth-container-wide .auth-card-modern { max-width: 560px; }
.auth-step-badge {
    display: inline-block;
    font-size: .75rem;
    color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
    padding: .25rem .65rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}
.auth-footer-links { text-align: center; margin-top: 1.25rem; font-size: .9rem; }
.auth-footer-links.muted { color: var(--text-muted); font-size: .85rem; }
.auth-alt-login { margin-top: 1rem; }
.form-section-title {
    font-size: 1rem;
    margin: 1.5rem 0 .75rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border, #e5e7eb);
}
.payment-method-options { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.payment-method-option {
    display: flex; align-items: center; gap: .65rem;
    padding: .85rem 1rem; border: 2px solid var(--border, #e5e7eb);
    border-radius: 12px; cursor: pointer;
}
.payment-method-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.05);
}
.payment-method-option input { accent-color: var(--accent); }
.card-payment-box { background: #faf9f7; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.card-info { background: #fff; border-radius: 10px; padding: .75rem 1rem; margin: .75rem 0 1rem; }
.card-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .9rem; }
.card-row span { color: var(--text-muted); }

/* Shop */
.shop-page { min-height: 100vh; }

.shop-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    padding: 2rem 1rem 2.5rem;
}

.shop-profile {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.shop-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.4);
    flex-shrink: 0;
}

.shop-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.2);
    font-size: 2rem;
}

.shop-info h1 { font-size: 1.35rem; display: flex; align-items: center; gap: .25rem; }
.shop-location { opacity: .9; font-size: .9rem; margin: .25rem 0; }
.shop-bio { opacity: .85; font-size: .9rem; margin: .5rem 0 0; line-height: 1.7; }

.shop-products { padding-bottom: 2rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-image-wrap {
    background: var(--bg);
    overflow: hidden;
}

.product-image-wrap.aspect-1-1 { aspect-ratio: 1 / 1; }
.product-image-wrap.aspect-2-3 { aspect-ratio: 2 / 3; }
.product-image-wrap.aspect-3-4 { aspect-ratio: 3 / 4; }
.product-image-wrap.aspect-4-3 { aspect-ratio: 4 / 3; }

.product-image-preview.aspect-1-1 { aspect-ratio: 1 / 1; max-width: 280px; }
.product-image-preview.aspect-2-3 { aspect-ratio: 2 / 3; max-width: 220px; }
.product-image-preview.aspect-3-4 { aspect-ratio: 3 / 4; max-width: 240px; }
.product-image-preview.aspect-4-3 { aspect-ratio: 4 / 3; max-width: 300px; }

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--accent-light);
}

.product-body {
    padding: .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.product-body h3 {
    font-size: .9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: .95rem;
    margin: 0;
}

.product-price-lg {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
}

.shop-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: .85rem;
}

/* Order */
.order-container { padding: 1rem 0 2rem; }

.order-product {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.order-product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.payment-info {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.payment-info h2 { font-size: 1rem; margin-bottom: .5rem; }

.card-info { display: flex; flex-direction: column; gap: .5rem; }

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}

.delivery-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: 1rem;
}

.delivery-option { cursor: pointer; position: relative; }

.delivery-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-option-box {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem;
    background: var(--bg);
}

.delivery-option-box strong {
    display: block;
    font-size: .9rem;
    margin-bottom: .15rem;
}

.delivery-option-box small {
    color: var(--text-muted);
    font-size: .75rem;
}

.delivery-option input:checked + .delivery-option-box {
    border-color: var(--accent);
    background: var(--accent-light);
}

.post-delivery-fields {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: .75rem;
    margin-bottom: 1rem;
}

.order-delivery-info {
    font-size: .85rem;
    color: var(--text-muted);
    margin: .5rem 0;
    padding: .65rem .75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.order-delivery-info p { margin: .2rem 0; }

.success-card { text-align: center; max-width: 420px; margin: 2rem auto; }
.success-icon { font-size: 3rem; margin-bottom: .5rem; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-icon { font-size: 3rem; margin-bottom: .5rem; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label { font-size: .85rem; color: var(--text-muted); }
.stat-warning .stat-value { color: var(--warning); }
.stat-success .stat-value { color: var(--success); }

/* Page header */
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-subtitle { color: var(--text-muted); font-size: .9rem; margin: 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Admin nav */
.admin-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1rem;
}

.admin-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .5rem 1rem;
}

.admin-nav a {
    padding: .5rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .85rem;
    font-weight: 500;
}

.admin-nav a.active, .admin-nav a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.admin-nav .nav-logout { color: var(--danger); margin-right: auto; }

.admin-nav .nav-badge {
    display: inline-flex;
    min-width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: #fff;
    font-size: .7rem;
    border-radius: 999px;
    padding: 0 .35rem;
    margin-right: .25rem;
}

.admin-alert-pending { margin-bottom: 1.25rem; }
.admin-alert-pending .alert-link { font-weight: 600; margin-right: .5rem; }

.stats-grid-compact { grid-template-columns: repeat(3, 1fr); }

.admin-section { margin-top: 2rem; }
.admin-section-title { font-size: 1.1rem; margin-bottom: 1rem; }

.registration-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.registration-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.registration-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

.registration-meta { font-size: .88rem; color: var(--text-muted); margin: .2rem 0; }
.registration-meta.muted { font-size: .8rem; }

.quick-link-badge {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    font-size: .75rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    margin-right: .35rem;
}

.registration-review-list { display: flex; flex-direction: column; gap: 1rem; }

.registration-review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.registration-review-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.registration-review-card p { margin: .25rem 0; font-size: .9rem; }
.registration-review-card .muted { color: var(--text-muted); font-size: .85rem; }

.registration-receipt .receipt-thumb {
    max-width: 220px;
    max-height: 280px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: .5rem;
}

.registration-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
}

.inline-form { display: inline; }

@media (min-width: 768px) {
    .registration-cards { grid-template-columns: repeat(2, 1fr); }
    .registration-review-card { grid-template-columns: 1fr auto; align-items: start; }
    .registration-review-actions { grid-column: 1 / -1; }
}

/* Bottom nav (seller) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    color: var(--text-muted);
    font-size: .7rem;
    padding: .25rem .5rem;
    min-width: 56px;
}

.bottom-nav a.active { color: var(--accent); }
.nav-icon { font-size: 1.25rem; }

/* Tables */
.table-responsive { overflow-x: auto; margin-bottom: 1rem; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: .85rem;
}

.data-table th, .data-table td {
    padding: .75rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg);
    font-weight: 600;
    white-space: nowrap;
}

.table-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.actions-cell { white-space: nowrap; }

/* Search & filters */
.search-form, .filter-form {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.filter-tabs a {
    padding: .5rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: .85rem;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.filter-tabs a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Quick links */
.quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.quick-link-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 600;
    text-align: center;
    transition: transform .2s;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    color: var(--accent);
}

/* Shop link */
.shop-link-card {
    background: var(--accent-light);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.shop-link {
    display: block;
    word-break: break-all;
    font-weight: 600;
    margin: .5rem 0;
    direction: ltr;
    text-align: left;
}

/* Product list (seller) */
.product-list { display: flex; flex-direction: column; gap: .75rem; }

.product-list-item {
    display: flex;
    gap: .75rem;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: .75rem;
    box-shadow: var(--shadow);
}

.product-list-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-list-info { flex: 1; min-width: 0; }
.product-list-info h3 { font-size: .95rem; margin-bottom: .15rem; }
.product-list-info p { margin: 0; font-size: .85rem; color: var(--accent); font-weight: 600; }
.product-list-actions { display: flex; flex-direction: column; gap: .35rem; }

/* Order list (seller) */
.order-list { display: flex; flex-direction: column; gap: .75rem; }

.order-card-item {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.order-card-body { padding: .75rem 1rem; font-size: .9rem; }
.order-card-body p { margin: .25rem 0; }
.order-card-actions { padding: .75rem 1rem; border-top: 1px solid var(--border); }

/* Profile */
.profile-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    font-size: 2rem;
}

.product-edit-preview {
    margin-bottom: 1rem;
    text-align: center;
}

.product-edit-preview img {
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin: 0 auto;
}

/* QR */
.qr-section, .qr-page { text-align: center; margin-top: 1.5rem; }
.qr-display { margin: 1.5rem 0; }
.qr-image { margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.qr-hint { color: var(--text-muted); font-size: .9rem; }
.qr-url { margin-bottom: .25rem; color: var(--text-muted); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .5rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: .9rem;
}

.page-link.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Action bar */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.inline-form { display: inline; }

/* Responsive */
@media (min-width: 640px) {
    .info-cards { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .quick-links { grid-template-columns: 1fr 1fr; }
    .product-grid { gap: 1rem; }
    h1 { font-size: 1.75rem; }
}

@media (min-width: 768px) {
    .product-list-actions { flex-direction: row; }
}

/* Utilities */
.hidden { display: none !important; }
.hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Product image picker */
.product-image-group { margin-bottom: .5rem; }

.product-image-preview-wrap { margin-bottom: .75rem; }

.product-image-preview {
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
}

.product-image-placeholder span { font-size: 2.5rem; display: block; margin-bottom: .25rem; }
.product-image-placeholder p { margin: 0; font-size: .85rem; }

.product-image-meta {
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    margin: .5rem 0 0;
}

.product-image-actions {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

body.crop-open { overflow: hidden; }

/* Crop modal */
.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.crop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.crop-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    background: var(--surface);
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.crop-modal-header {
    padding: 1rem 1.25rem .5rem;
    border-bottom: 1px solid var(--border);
}

.crop-modal-header h2 { font-size: 1.1rem; margin-bottom: .15rem; }
.crop-modal-header p { margin: 0; font-size: .85rem; color: var(--text-muted); }

.crop-modal-body {
    flex: 1;
    overflow: hidden;
    padding: .75rem;
    min-height: 280px;
}

.crop-container {
    width: 100%;
    height: 55vh;
    max-height: 420px;
    background: #111;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.crop-container img {
    max-width: 100%;
    display: block;
}

.crop-modal-footer {
    display: flex;
    gap: .5rem;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.crop-modal-footer .btn { flex: 1; }

@media (min-width: 640px) {
    .crop-modal { align-items: center; padding: 1rem; }
    .crop-modal-dialog { border-radius: var(--radius); max-height: 88vh; }
}

/* Aspect ratio selector */
.ratio-selector {
    display: flex;
    gap: .35rem;
    padding: .75rem 1rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}

.ratio-btn {
    flex-shrink: 0;
    padding: .45rem .75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--font);
    font-size: .8rem;
    cursor: pointer;
}

.ratio-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Customer orders */
.my-orders-container { padding-bottom: 2rem; }

.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

.my-order-list { display: flex; flex-direction: column; gap: .75rem; }

.my-order-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.my-order-top {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .75rem;
}

.my-order-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.my-order-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    font-size: 1.5rem;
}

.my-order-info { flex: 1; min-width: 0; }
.my-order-info h3 { font-size: .95rem; margin-bottom: .2rem; }
.my-order-shop { font-size: .85rem; color: var(--text-muted); margin: 0; }
.my-order-price { color: var(--accent); font-weight: 700; margin: .25rem 0 0; }
.my-order-date { font-size: .8rem; color: var(--text-muted); margin: .15rem 0 0; }

.order-timeline {
    display: flex;
    justify-content: space-between;
    gap: .25rem;
    margin: .75rem 0;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline-step {
    flex: 1;
    text-align: center;
    font-size: .75rem;
    color: var(--text-muted);
    position: relative;
}

.timeline-step .dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto .35rem;
}

.timeline-step.done { color: var(--success); }
.timeline-step.done .dot { background: var(--success); }
.timeline-step.current { color: var(--accent); font-weight: 600; }
.timeline-step.current .dot { background: var(--accent); }
.timeline-step.rejected { color: var(--danger); }
.timeline-step.rejected .dot { background: var(--danger); }

.order-timeline-5 .timeline-step { font-size: .65rem; line-height: 1.3; }
.order-timeline-rejected { justify-content: flex-start; gap: 2rem; }

.hero-card .btn-secondary { margin-top: .5rem; }

/* Seller profile: address & geo */
.form-section-title {
    font-size: 1rem;
    margin: 1.25rem 0 .75rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
}

.section-note { margin: -.25rem 0 .75rem; }

.geo-box {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem;
    margin-bottom: 1rem;
}

.geo-status { margin: .5rem 0 0; }

/* Shop contact */
.shop-address {
    font-size: .9rem;
    color: var(--text-muted);
    margin: .25rem 0;
    line-height: 1.5;
}

.shop-map-link { margin: .5rem 0; }
.shop-actions { margin-top: .75rem; }

.shop-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0;
}

.shop-social-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.shop-social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.shop-social-icon { font-size: 1rem; }

/* Tickets */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.ticket-list-item {
    display: block;
    background: var(--surface);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
}

.ticket-list-item:hover { border-color: var(--accent); }

.ticket-list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .35rem;
}

.ticket-meta,
.ticket-preview {
    font-size: .85rem;
    color: var(--text-muted);
    margin: .15rem 0 0;
}

.ticket-view-meta {
    margin-bottom: 1rem;
    font-size: .9rem;
}

.ticket-view-meta p { margin: .25rem 0; }

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem;
}

.ticket-msg {
    background: var(--surface);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    box-shadow: var(--shadow);
    border-right: 3px solid var(--border);
}

.ticket-msg-customer { border-right-color: var(--accent); }
.ticket-msg-seller { border-right-color: #3b82f6; }
.ticket-msg-admin { border-right-color: #8b5cf6; }

.ticket-msg-head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .35rem;
    font-size: .85rem;
}

.ticket-msg-body {
    font-size: .95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.badge-muted {
    background: var(--bg);
    color: var(--text-muted);
}

/* Seller dashboard & wizard */
.seller-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
    margin-bottom: 1.25rem;
}

.seller-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 1rem .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: .85rem;
    font-weight: 500;
    min-height: 80px;
    transition: border-color .2s, box-shadow .2s;
}

.seller-action-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(249, 115, 22, .12);
}

.seller-action-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark, #ea580c) 100%);
    color: #fff;
    border-color: transparent;
}

.seller-action-primary:hover { color: #fff; }

.seller-action-icon { font-size: 1.5rem; }

.seller-section-title {
    font-size: 1rem;
    margin: 1.5rem 0 .75rem;
    color: var(--text-muted);
}

.wizard-steps {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: .65rem .25rem;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    opacity: .6;
}

.wizard-step.active, .wizard-step.done { opacity: 1; border-color: var(--accent); }
.wizard-step.active { background: rgba(249, 115, 22, .08); }

.wizard-step-num {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    color: var(--accent);
}

.wizard-step-label { font-size: .75rem; color: var(--text-muted); }

.wizard-form-title { font-size: 1rem; margin: 0 0 1rem; }

.wizard-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
}

.wizard-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
}

.wizard-divider span {
    position: relative;
    background: var(--bg, #faf9f7);
    padding: 0 .75rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.wizard-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.wizard-change-link { font-size: .85rem; margin-right: .5rem; }

.picker-option {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    cursor: pointer;
}

.picker-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(249, 115, 22, .05);
}

.picker-option-body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .9rem;
}

.picker-option-body span { color: var(--text-muted); font-size: .85rem; }

.customer-list { display: flex; flex-direction: column; gap: .65rem; }

.customer-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.customer-list-item p { margin: .15rem 0; font-size: .88rem; color: var(--text-muted); }

/* Customers page */
.customers-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin-bottom: 1rem;
}

.customers-search {
    display: flex;
    flex: 1;
    min-width: 200px;
    gap: .5rem;
}

.customer-add-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.customer-add-title { font-size: 1rem; margin: 0 0 1rem; }

.customer-add-actions {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
}

.label-optional { font-weight: 400; color: var(--text-muted); font-size: .85rem; }

.customers-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.customers-empty p { margin-bottom: 1rem; }

.customer-cards { display: flex; flex-direction: column; gap: .5rem; }

.customer-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
}

.customer-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.customer-card-body { flex: 1; min-width: 0; }

.customer-card-body strong { display: block; margin-bottom: .15rem; }

.customer-card-mobile {
    font-size: .88rem;
    color: var(--text-muted);
}

.customer-card-notes {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Sale wizard unified step */
.wizard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.wizard-section { margin-bottom: .5rem; }

.wizard-section-title {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 .75rem;
    color: var(--text);
}

.wizard-section-new {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.wizard-or {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.wizard-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
}

.wizard-or span {
    position: relative;
    background: var(--surface);
    padding: 0 .75rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.wizard-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    background: rgba(249, 115, 22, .08);
    border: 1px solid rgba(249, 115, 22, .2);
    border-radius: var(--radius-sm);
    padding: .65rem .85rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.wizard-chip a {
    margin-right: auto;
    font-size: .85rem;
}

.wizard-card .picker-option { margin-bottom: .4rem; }

.wizard-card .btn-lg { margin-top: 1rem; }

.wizard-mode-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}

.wizard-tab-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wizard-mode-tab {
    flex: 1;
    padding: .65rem .5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

#tab_existing:checked ~ .wizard-mode-tabs label[for="tab_existing"],
#tab_new:checked ~ .wizard-mode-tabs label[for="tab_new"] {
    border-color: var(--accent);
    background: rgba(249, 115, 22, .08);
    color: var(--accent);
}

.customer-pane-new {
    display: none;
}

#tab_new:checked ~ .customer-pane-existing {
    display: none !important;
}

#tab_new:checked ~ .customer-pane-new {
    display: block !important;
}

.product-pane-new {
    display: none;
}

#tab_product_new:checked ~ .product-pane-existing {
    display: none !important;
}

#tab_product_new:checked ~ .product-pane-new {
    display: block !important;
}

#tab_product_existing:checked ~ .wizard-mode-tabs label[for="tab_product_existing"],
#tab_product_new:checked ~ .wizard-mode-tabs label[for="tab_product_new"] {
    border-color: var(--accent);
    background: rgba(249, 115, 22, .08);
    color: var(--accent);
}

.wizard-mode-tab.active {
    border-color: var(--accent);
    background: rgba(249, 115, 22, .08);
    color: var(--accent);
}

.wizard-pane.is-hidden,
.is-hidden {
    display: none !important;
}

.search-select { position: relative; }

.search-select-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: rgba(249, 115, 22, .08);
    border: 1px solid rgba(249, 115, 22, .25);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
}

.search-select-chip-body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.search-select-chip-body span { font-size: .88rem; color: var(--text-muted); }

.search-select-clear {
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: .25rem;
}

.search-select-field { position: relative; }

.search-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.search-select-dropdown.is-hidden { display: none !important; }

.search-select-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    width: 100%;
    padding: .7rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
}

.search-select-option:last-child { border-bottom: none; }

.search-select-option:hover,
.search-select-option:focus {
    background: rgba(249, 115, 22, .06);
}

.search-select-option span {
    font-size: .85rem;
    color: var(--text-muted);
}

.search-select-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .88rem;
}

.inventory-list { display: flex; flex-direction: column; gap: .65rem; }

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.inventory-item.inventory-low { border-color: var(--warning, #f59e0b); background: #fffbeb; }

.inventory-adjust-form {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.inventory-adjust-form .form-control { width: 80px; }

@media (min-width: 640px) {
    .seller-quick-actions { grid-template-columns: repeat(3, 1fr); }
}

.availability-options,
.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}

.radio-card input { flex-shrink: 0; }

.customer-card > .btn { align-self: center; margin-inline-start: auto; flex-shrink: 0; }

.plan-current-card { margin-bottom: 1.25rem; }

.plan-current-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: .35rem 0;
}

.plan-upgrade-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .plan-upgrade-grid { grid-template-columns: repeat(2, 1fr); }
}

.plan-upgrade-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.plan-upgrade-card.featured { border-color: var(--accent); }

.plan-upgrade-card .plan-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin: .5rem 0;
}

.plan-features {
    margin: .75rem 0 1rem;
    padding-right: 1.1rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.plan-upgrade-form { margin-top: 1rem; }
