:root {
    --accent: #ff5b00;
    --accent-dark: #ff5b00;
    --ink: #171717;
    --muted: #646464;
    --line: #dedede;
    --soft: #f7f7f7;
    --white: #ffffff;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
.rider-theme { --accent: #ff5b00; --accent-dark: #ff5b00; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 47%) 1fr; padding: 16px; }
.auth-feature { position: relative; display: flex; min-height: calc(100vh - 32px); overflow: hidden; border-radius: 22px; background: var(--soft); }
.partner-logo { display: inline-block; color: #111; font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -.6px; }
.partner-logo span { color: var(--accent); }
.partner-logo em { display: inline-block; margin-left: 3px; padding: 2px 5px; color: var(--white); background: var(--accent); font-size: 15px; font-style: italic; letter-spacing: 0; transform: skew(-7deg); }
.auth-feature > .partner-logo { position: absolute; top: 34px; left: 38px; }
.feature-content { width: min(420px, 70%); margin: auto; }
.feature-illustration { width: 100%; max-width: 360px; margin: 0 auto 30px; }
.feature-illustration svg { display: block; width: 100%; height: auto; }
.feature-illustration .line { fill: none; stroke: #383838; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.feature-illustration .accent-fill { fill: var(--accent); stroke: var(--accent); stroke-width: 2; }
.feature-content h1 { max-width: 370px; margin: 0 0 22px; font-size: 26px; line-height: 1.25; letter-spacing: -.5px; }
.feature-list p { display: flex; align-items: center; gap: 18px; margin: 14px 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.feature-list i { display: grid; flex: 0 0 50px; height: 50px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--white); font-size: 20px; font-style: normal; }

.auth-area { display: flex; flex-direction: column; min-width: 0; }
.auth-header { display: flex; min-height: 80px; align-items: center; justify-content: flex-end; padding: 8px 24px; }
.language-pill { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 30px; text-decoration: none; }
.auth-card { width: min(480px, calc(100% - 48px)); margin: auto; padding: 45px 0 100px; }
.auth-card h2 { margin: 0 0 24px; font-size: 29px; line-height: 1.2; letter-spacing: -.7px; }
.form-intro { margin: -12px 0 24px; color: var(--muted); line-height: 1.5; }
.floating-field { position: relative; margin-bottom: 16px; }
.floating-field label { position: absolute; z-index: 1; top: 9px; left: 14px; color: var(--muted); font-size: 11px; pointer-events: none; }
.floating-field input, .floating-field select { width: 100%; height: 58px; padding: 22px 14px 7px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.floating-field select { cursor: pointer; }
.floating-field input:focus, .floating-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 27, 112, .1); }
.floating-field input.invalid, .floating-field select.invalid { border-color: #c62828; }
.password-field input { padding-right: 52px; }
.password-field button { position: absolute; top: 9px; right: 8px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; color: #526174; background: transparent; cursor: pointer; }
.password-field button:hover { color: var(--accent); }
.password-field button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.password-eye { display: block; flex-shrink: 0; }
.password-eye-slash { display: none; }
[data-password-toggle][aria-pressed="true"] .password-eye-slash { display: block; }
.field-error { display: block; margin: 5px 3px 0; color: #b42318; font-size: 12px; }
.remember { display: flex; align-items: center; gap: 8px; margin: 5px 0 20px; color: var(--muted); font-size: 14px; cursor: pointer; }
.remember input { accent-color: var(--accent); }
.primary-button { width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 8px; color: var(--white); background: var(--accent); font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:active { transform: translateY(1px); }
.auth-switch { margin: 36px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 700; text-decoration: none; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.4; }
.alert-success { color: #146c43; border: 1px solid #badbcc; background: #d1e7dd; }
.alert-danger { color: #842029; border: 1px solid #f5c2c7; background: #f8d7da; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full-width { grid-column: 1 / -1; }
.register-page .auth-card { width: min(650px, calc(100% - 48px)); padding-top: 28px; }
.register-page .feature-content { width: min(420px, 76%); }
.desktop-hidden { display: none; }

.partner-panel { min-height: 100vh; background: #f6f7f9; }
.panel-sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 250px; flex-direction: column; padding: 28px 18px; border-right: 1px solid #eee; background: var(--white); }
.panel-logo { flex-shrink: 0; padding: 0 12px 30px; }
.panel-nav { display: grid; align-content: start; flex: 1 1 auto; min-height: 0; gap: 7px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d9d9df transparent; }
.panel-nav::-webkit-scrollbar { width: 5px; }
.panel-nav::-webkit-scrollbar-track { background: transparent; }
.panel-nav::-webkit-scrollbar-thumb { border-radius: 3px; background: #d9d9df; }
.panel-nav::-webkit-scrollbar-thumb:hover { background: #bfbfc6; }
.panel-nav a, .sidebar-logout button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 8px; color: #555; background: transparent; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.panel-nav a span, .sidebar-logout span,
.panel-nav a > i, .sidebar-logout button > i { width: 20px; color: var(--accent); font-size: 16px; text-align: center; }
.panel-nav a.active, .panel-nav a:hover, .sidebar-logout button:hover { color: var(--accent); background: rgba(226, 27, 112, .08); }
.panel-nav-group{display:block}.panel-nav-toggle{display:flex;width:100%;align-items:center;gap:12px;padding:12px 14px;border:0;border-radius:8px;color:#555;background:transparent;font:inherit;font-weight:600;text-align:left;cursor:pointer}.panel-nav-toggle>i{width:20px;color:var(--accent);font-size:16px;text-align:center}.panel-nav-toggle .panel-nav-chevron{margin-left:auto;width:auto;color:#777;transition:transform .2s}.panel-nav-group.is-open .panel-nav-chevron{transform:rotate(180deg)}.panel-subnav{display:none;padding:4px 0 4px 34px}.panel-nav-group.is-open .panel-subnav{display:block}.panel-subnav a{padding:8px 12px;font-size:13px;border-radius:6px}.panel-subnav a.active{color:var(--accent);background:rgba(226,27,112,.1);font-weight:700;position:relative}.panel-subnav a.active:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:var(--accent)}
.sidebar-logout { flex-shrink: 0; margin-top: auto; padding-top: 10px; }
.panel-main { min-height: 100vh; margin-left: 250px; }
.panel-header { display: flex; height: 78px; align-items: center; justify-content: flex-end; padding: 0 34px; border-bottom: 1px solid #e9e9e9; background: var(--white); }
.panel-user { display: flex; align-items: center; gap: 11px; }
.panel-user .avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--white); background: var(--accent); font-weight: 800; }
.panel-user div { display: grid; gap: 3px; }
.panel-user small { color: var(--muted); }
.online-toggle { display: flex; align-items: center; gap: 8px; margin-left: 6px; padding-left: 16px; border-left: 1px solid #eee; cursor: pointer; user-select: none; }
.online-toggle input { position: absolute; width: 0; height: 0; opacity: 0; }
.online-toggle-track { position: relative; flex-shrink: 0; width: 38px; height: 22px; border-radius: 20px; background: #d7dbe0; transition: background-color .2s ease; }
.online-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.online-toggle:has(input:checked) .online-toggle-track { background: #22c55e; }
.online-toggle:has(input:checked) .online-toggle-thumb { transform: translateX(16px); }
.online-toggle:has(input:disabled) { opacity: .6; cursor: wait; }
.online-toggle-label { min-width: 48px; font-size: 12px; font-weight: 700; color: #9a9a9a; }
.online-toggle:has(input:checked) .online-toggle-label { color: #16a34a; }
.menu-button { display: none; margin-right: auto; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.panel-content { padding: 34px; }
.welcome-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px !important; color: var(--accent) !important; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; }
.welcome-row h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.welcome-row p { margin: 0; color: var(--muted); }
.status-badge { display:inline-flex; align-items:center; gap:7px; flex: 0 0 auto; padding: 9px 13px; border-radius: 20px; color: #137344; background: #dff5e8; font-size: 13px; font-weight: 700; }.status-badge i{font-size:12px}
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card { display: flex; min-width: 0; gap: 14px; padding: 22px; border: 1px solid #ededed; border-radius: 13px; background: var(--white); box-shadow: 0 3px 15px rgba(0,0,0,.025); }
.stat-icon { display: grid; flex: 0 0 45px; height: 45px; place-items: center; border-radius: 11px; color: var(--accent); background: rgba(226, 27, 112, .09); font-size: 21px; }
.stat-card div { min-width: 0; }
.stat-card small { color: var(--muted); font-weight: 600; }
.stat-card strong { display: block; margin: 5px 0; font-size: 27px; }
.stat-card p { overflow: hidden; margin: 0; color: #909090; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.empty-panel { margin-top: 22px; padding: 50px 24px; border: 1px solid #ededed; border-radius: 13px; background: var(--white); text-align: center; }
.order-summary-panel{margin-top:22px;padding:26px;border:1px solid #ededed;border-radius:16px;background:#fff;box-shadow:0 5px 22px rgba(30,40,60,.04)}.order-summary-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.order-summary-head h2{margin:0;font-size:22px}.today-sales{color:var(--muted);font-size:13px;text-align:right}.today-sales strong{display:block;margin-top:4px;color:#253347;font-size:17px}.order-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.order-summary-card{position:relative;display:flex;align-items:center;gap:13px;min-height:104px;padding:18px;border:1px solid #edf0f4;border-left:4px solid var(--status-color);border-radius:12px;color:#26364a;text-decoration:none;background:linear-gradient(135deg,#fff,#fbfcfe);transition:transform .2s,box-shadow .2s}.order-summary-card:hover{color:#26364a;transform:translateY(-2px);box-shadow:0 8px 20px rgba(30,40,60,.09)}.order-summary-icon{display:grid;flex:0 0 38px;height:38px;place-items:center;border-radius:10px;color:var(--status-color);background:color-mix(in srgb,var(--status-color) 12%,white)}.order-summary-info strong{display:block;font-size:24px;line-height:1}.order-summary-info small,.order-summary-info em{display:block;margin-top:5px;color:#687789;font-size:12px;font-style:normal}.order-summary-arrow{margin-left:auto;color:#aab4c0;font-size:12px}
.empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 15px; place-items: center; border-radius: 50%; color: var(--accent); background: rgba(226, 27, 112, .09); font-size: 26px; }
.empty-panel h2 { margin: 0 0 8px; font-size: 21px; }
.empty-panel p { margin: 0; color: var(--muted); }

.settings-page { width: 100%; margin: 0; }
.payout-settings{padding:20px;border:1px solid #f0e5ec;border-radius:12px;background:#fff5fa}.payout-settings>label{font-size:16px;font-weight:800}.payout-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.payout-method-grid label{display:block;margin-bottom:6px;color:#65707c;font-size:12px;font-weight:700}.payout-method-grid input,.payout-method-grid select{width:100%;height:42px;padding:0 12px;border:1px solid #dbe2e8;border-radius:7px;background:#fff}@media(max-width:650px){.payout-method-grid{grid-template-columns:1fr}}
.settings-page-narrow { width: 100%; }
.settings-heading { margin-bottom: 24px; }
.settings-heading h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -1px; }
.settings-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.settings-card { overflow: hidden; border: 1px solid #e7e7e7; border-radius: 16px; background: var(--white); box-shadow: 0 8px 30px rgba(20, 24, 32, .045); }
.settings-card-header { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid #ececec; background: #fcfcfc; }
.settings-card-header > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 12px; color: var(--white); background: var(--accent); font-size: 18px; font-weight: 800; }
.settings-card-header h2 { margin: 0 0 4px; font-size: 18px; }
.settings-card-header p { margin: 0; color: var(--muted); font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 20px; padding: 25px 24px; }
.settings-grid.one-column { grid-template-columns: 1fr; }
.settings-grid .full-width { grid-column: 1 / -1; }
.settings-field { min-width: 0; }
.settings-field label { display: block; margin-bottom: 7px; color: #333; font-size: 13px; font-weight: 700; }
.settings-field input,
.settings-field select,
.settings-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.settings-field input,
.settings-field select { height: 48px; padding: 0 13px; }
.settings-field textarea { min-height: 105px; padding: 12px 13px; resize: vertical; }
.settings-field input:focus,
.settings-field select:focus,
.settings-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 27, 112, .1); }
.settings-field input[type="file"] { height: auto; padding: 10px; color: var(--muted); background: #fafafa; }
.field-hint { display: block; margin-top: 6px; color: #888; font-size: 11px; }
.settings-upload img { display: block; width: 72px; height: 72px; margin-bottom: 10px; border: 1px solid #eee; border-radius: 12px; object-fit: cover; }
.settings-upload img.cover-preview { width: min(320px, 100%); height: 120px; }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 24px; border-top: 1px solid #ececec; background: #fcfcfc; }
.settings-actions a,
.settings-actions button { min-height: 44px; padding: 11px 18px; border-radius: 9px; font-weight: 700; text-decoration: none; }
.settings-actions a { color: #555; border: 1px solid var(--line); background: var(--white); }
.settings-actions button { border: 1px solid var(--accent); color: var(--white); background: var(--accent); cursor: pointer; }
.settings-actions button:hover { background: var(--accent-dark); }

/* Merchant product management */
.product-manager,
.product-editor { width: min(1240px, 100%); margin: 0 auto; }
.product-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.product-page-heading h1 { margin: 0 0 7px; font-size: clamp(29px, 4vw, 39px); letter-spacing: -1.2px; }
.product-page-heading > div > p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.product-primary-action,
.product-secondary-action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; flex: 0 0 auto; border-radius: 10px; font-weight: 700; text-decoration: none; }
.product-primary-action { color: #fff; background: var(--accent); box-shadow: 0 8px 20px rgba(226,27,112,.18); }
.product-secondary-action { color: #4b4b4b; border: 1px solid var(--line); background: #fff; }
.product-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.product-summary-grid article { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid #e8e8e8; border-radius: 13px; background: #fff; }
.product-summary-grid article > i { width: 43px; height: 43px; display: grid; flex: 0 0 43px; place-items: center; border-radius: 11px; color: var(--accent); background: rgba(226,27,112,.09); }
.product-summary-grid article div { min-width: 0; }
.product-summary-grid span { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-summary-grid strong { display: block; margin-top: 2px; font-size: 24px; }
.product-list-filters { display: flex; align-items: center; gap: 10px; padding: 13px; margin-bottom: 16px; border: 1px solid #e8e8e8; border-radius: 13px; background: #fff; }
.product-list-filters label { min-width: 220px; min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; flex: 1; border: 1px solid var(--line); border-radius: 9px; color: #8a8a8a; }
.product-list-filters input { width: 100%; border: 0; outline: 0; }
.product-list-filters select { min-width: 150px; height: 43px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.product-list-filters button,
.product-list-filters > a { min-height: 43px; padding: 0 16px; display: inline-flex; align-items: center; border: 0; border-radius: 9px; font-weight: 700; text-decoration: none; cursor: pointer; }
.product-list-filters button { color: #fff; background: var(--accent); }
.product-list-filters > a { color: #555; background: #f1f1f1; }
.product-table-card { overflow: hidden; border: 1px solid #e7e7e7; border-radius: 15px; background: #fff; box-shadow: 0 6px 25px rgba(20,24,32,.035); }
.product-table-wrap { overflow-x: auto; }
.product-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.product-table th { padding: 13px 15px; color: #777; background: #fafafa; font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .5px; }
.product-table td { padding: 14px 15px; border-top: 1px solid #ededed; color: #444; font-size: 13px; vertical-align: middle; }
.text-right { text-align: right !important; }
.product-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.product-thumb { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; overflow: hidden; border-radius: 9px; color: #aaa; background: #f1f1f1; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-cell div { min-width: 0; }
.product-cell strong,
.product-cell small { display: block; }
.product-cell strong { max-width: 240px; overflow: hidden; color: #222; text-overflow: ellipsis; white-space: nowrap; }
.product-cell small { margin-top: 3px; color: #8b8b8b; font-size: 10px; }
.old-price { display: block; color: #999; font-size: 10px; text-decoration: line-through; }
.stock-badge,
.source-badge,
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.stock-badge { color: #176b46; background: #e5f7ef; }
.stock-badge.low { color: #a43e26; background: #fff0e8; }
.source-badge { color: #555; background: #f0f1f3; }
.source-badge.own { color: #7c2853; background: #fce8f2; }
.status-pill { color: #8b3f2e; background: #fff0e9; }
.status-pill.active { color: #176b46; background: #e5f7ef; }
.product-actions { display: flex; justify-content: flex-end; gap: 6px; }
.product-actions form { margin: 0; }
.product-actions a,
.product-actions button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e3e3e3; border-radius: 8px; color: #555; background: #fff; cursor: pointer; }
.product-actions a:hover,
.product-actions button:hover { color: var(--accent); border-color: var(--accent); }
.product-actions .danger:hover { color: #c62828; border-color: #c62828; }
.read-only-label { color: #999; font-size: 10px; }
.product-pagination { padding: 13px 15px; border-top: 1px solid #eee; }
.product-pagination nav > div:first-child { display: none; }
.product-pagination nav > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #777; font-size: 12px; }
.product-pagination nav span,
.product-pagination nav a { display: inline-flex; align-items: center; gap: 4px; }
.product-pagination svg { width: 17px; height: 17px; }
.product-empty { padding: 65px 20px; text-align: center; }
.product-empty > i { width: 64px; height: 64px; display: grid; margin: 0 auto 17px; place-items: center; border-radius: 50%; color: var(--accent); background: rgba(226,27,112,.09); font-size: 26px; }
.product-empty h2 { margin: 0 0 7px; }
.product-empty p { margin: 0 0 17px; color: var(--muted); }
.product-empty a { display: inline-flex; padding: 10px 16px; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 700; text-decoration: none; }

.product-editor form { display: grid; gap: 18px; }
.product-form-card { overflow: hidden; border: 1px solid #e7e7e7; border-radius: 15px; background: #fff; box-shadow: 0 6px 25px rgba(20,24,32,.035); }
.product-form-card > header { display: flex; align-items: center; gap: 13px; padding: 19px 22px; border-bottom: 1px solid #ededed; background: #fcfcfc; }
.product-form-card > header > span { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border-radius: 10px; color: var(--accent); background: rgba(226,27,112,.09); }
.product-form-card > header h2 { margin: 0 0 3px; font-size: 17px; }
.product-form-card > header p { margin: 0; color: var(--muted); font-size: 12px; }
.product-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 23px 22px; }
.product-form-grid .full-width { grid-column: 1/-1; }
.product-form-body { padding: 23px 22px; }
.existing-product-images,
.new-image-preview { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 16px; }
.existing-product-images label { position: relative; width: 105px; overflow: hidden; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.existing-product-images img,
.new-image-preview img { width: 105px; height: 92px; display: block; object-fit: cover; }
.existing-product-images label span { display: flex; align-items: center; gap: 5px; padding: 6px; color: #a23b3b; font-size: 10px; }
.product-upload-zone { min-height: 165px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 22px; border: 2px dashed #d6d6d6; border-radius: 13px; color: #777; background: #fafafa; cursor: pointer; transition: .2s; }
.product-upload-zone:hover { border-color: var(--accent); background: rgba(226,27,112,.025); }
.product-upload-zone > i { color: var(--accent); font-size: 31px; }
.product-upload-zone strong { color: #333; }
.product-upload-zone span { font-size: 11px; }
.product-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.new-image-preview { margin: 15px 0 0; }
.new-image-preview img { border-radius: 9px; }
.product-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.product-type-switch label { cursor: pointer; }
.product-type-switch input { position: absolute; opacity: 0; }
.product-type-switch label > span { min-height: 86px; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.product-type-switch label > span > i { grid-row: 1/3; color: var(--accent); font-size: 21px; text-align: center; }
.product-type-switch b { align-self: end; }
.product-type-switch small { align-self: start; color: var(--muted); }
.product-type-switch input:checked + span { border-color: var(--accent); background: rgba(226,27,112,.04); box-shadow: 0 0 0 2px rgba(226,27,112,.09); }
.pricing-grid { padding: 0; }
.variant-section { margin-top: 4px; }
.variant-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.variant-heading h3 { margin: 0 0 3px; font-size: 16px; }
.variant-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.variant-heading button { min-height: 38px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); background: #fff; font-weight: 700; cursor: pointer; }
#variantRows { display: grid; gap: 10px; }
.variant-row { position: relative; display: grid; grid-template-columns: repeat(7,minmax(90px,1fr)) 75px 36px; gap: 8px; align-items: end; padding: 13px; border: 1px solid #e5e5e5; border-radius: 11px; background: #fafafa; }
.variant-row .settings-field label { font-size: 10px; }
.variant-row .settings-field input { height: 40px; padding: 0 8px; font-size: 12px; }
.variant-available { height: 40px; display: flex; align-items: center; gap: 6px; font-size: 11px; cursor: pointer; }
.variant-available input { accent-color: var(--accent); }
.remove-variant { width: 36px; height: 40px; border: 1px solid #f0caca; border-radius: 8px; color: #b23535; background: #fff; cursor: pointer; }
.inventory-extra { padding: 22px 0 0; }
.product-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; padding: 0 22px 22px; }
.product-options label { cursor: pointer; }
.product-options input { position: absolute; opacity: 0; }
.product-options span { min-height: 67px; display: flex; justify-content: center; flex-direction: column; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; }
.product-options b,
.product-options small { display: block; }
.product-options small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.product-options input:checked + span { color: var(--accent); border-color: var(--accent); background: rgba(226,27,112,.04); }
.product-form-actions { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 11px; padding: 14px 17px; border: 1px solid #e2e2e2; border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 -5px 25px rgba(0,0,0,.06); backdrop-filter: blur(8px); }
.product-form-actions a,
.product-form-actions button { min-height: 45px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 9px; font-weight: 700; text-decoration: none; }
.product-form-actions a { color: #555; border: 1px solid var(--line); background: #fff; }
.product-form-actions button { border: 1px solid var(--accent); color: #fff; background: var(--accent); cursor: pointer; }

@media (max-width: 1050px) {
    .auth-shell { grid-template-columns: minmax(360px, 42%) 1fr; }
    .feature-content { width: 78%; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .variant-row { grid-template-columns: repeat(4,minmax(90px,1fr)); }
}

@media (max-width: 760px) {
    .auth-shell { display: block; padding: 0; }
    .auth-feature { display: none; }
    .auth-header { min-height: 70px; justify-content: space-between; padding: 12px 20px; }
    .desktop-hidden { display: inline-block; }
    .mobile-hidden { display: none; }
    .auth-card, .register-page .auth-card { width: calc(100% - 36px); padding: 35px 0 60px; }
    .auth-card h2 { font-size: 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full-width { grid-column: auto; }
    .panel-sidebar { transform: translateX(-100%); transition: transform .25s; }
    .sidebar-open .panel-sidebar { transform: translateX(0); box-shadow: 10px 0 35px rgba(0,0,0,.15); }
    .panel-main { margin-left: 0; }
    .panel-header { padding: 0 18px; }
    .menu-button { display: block; }
    .panel-content { padding: 24px 18px; }
    .welcome-row { display: grid; }
    .stat-grid { grid-template-columns: 1fr; }
    .order-summary-head{align-items:flex-start;gap:12px}.order-summary-grid{grid-template-columns:1fr}.today-sales{text-align:left}
    .settings-grid { grid-template-columns: 1fr; padding: 20px 18px; }
    .settings-grid .full-width { grid-column: auto; }
    .settings-card-header,
    .settings-actions { padding-right: 18px; padding-left: 18px; }
    .product-page-heading { flex-direction: column; }
    .product-primary-action,
    .product-secondary-action { align-self: stretch; }
    .product-summary-grid { grid-template-columns: 1fr 1fr; }
    .product-list-filters { align-items: stretch; flex-direction: column; }
    .product-list-filters label,
    .product-list-filters select { width: 100%; min-width: 0; }
    .product-form-grid { grid-template-columns: 1fr; padding: 20px 18px; }
    .product-form-grid .full-width { grid-column: auto; }
    .product-form-body { padding: 20px 18px; }
    .product-type-switch { grid-template-columns: 1fr; }
    .variant-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-options { grid-template-columns: 1fr 1fr; padding: 0 18px 18px; }
}

@media (max-width: 430px) {
    .panel-user small { display: none; }
    .panel-user .avatar { width: 36px; height: 36px; }
    .online-toggle-label { display: none; }
    .online-toggle { margin-left: 4px; padding-left: 10px; }
    .product-summary-grid,
    .product-options,
    .variant-row { grid-template-columns: 1fr; }
    .remove-variant { width: 100%; }
}
.express-offer-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0;padding:18px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.express-offer-row p{margin:5px 0}.express-offer-row button{min-width:100px;padding:10px 18px;border:0;border-radius:9px;color:#fff;background:#ff5a00;font-weight:800}@media(max-width:600px){.express-offer-row{align-items:flex-start;flex-direction:column}.express-offer-row button{width:100%}}
/* Merchant auth/profile readability and searchable-select sizing. */
.partner-auth :where(p,a,label,input,select,button,small,span),
.partner-panel .settings-page :where(p,a,label,input,select,textarea,button,small,span),
.select2-container, .select2-dropdown, .select2-search__field { font-size: 14px !important; }
.floating-field .select2-container { width: 100% !important; }
.floating-field .select2-selection--single { height: 58px !important; padding: 19px 13px 0; border: 1px solid var(--line) !important; border-radius: 8px !important; }
.floating-field .select2-selection__arrow { height: 58px !important; }
.settings-field .select2-selection--single { height: 44px !important; padding-top: 7px; border: 1px solid #dbe2e8 !important; }
.settings-field .select2-selection__arrow { height: 42px !important; }

.login-options { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.login-options .remember { margin-bottom:0; }
.forgot-password { color:var(--accent); font-size:14px; text-decoration:none; }
.forgot-password:hover { text-decoration:underline; }
