:root {
  --bg: #f1f1f5;
  --surface: #fff;
  --line: #dfe3ea;
  --text: #23272f;
  --muted: #343941;
  --brand: #a96d06;
  --brand-soft: #d8ba6091;
  --blue: #2b83d3;
  --green: #5ea52b;
  --danger: #c04444;
  --shadow: 0 12px 26px rgba(61, 66, 78, .12);
}

* { box-sizing: border-box; }
.advantages-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap: 18px; margin-top:25px; }
.advantage-card{padding:14px 16px; border-radius:18px; background:rgba(255,255,255,.03); border:1px solid var(--line); transition:.3s; align-items:center; gap:14px; }
.advantage-card:hover{transform:translateY(-6px); border-color:#ff7b00; box-shadow:0 10px 20px rgba(0,0,0,.08); }
.advantage-icon{width:44px; height:44px; display:flex; align-items:center; justify-content:center; font-size:18px; border-radius:14px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 0; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 24px; font-size: 25px; font-weight: 780; color: #172033; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #c04444; color: #fff; }
.nav { display: grid; gap: 2px; padding: 0 5px;}
.nav-link { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 24px; color: #71757a; font-weight: 700; border-left: 4px solid transparent; }
.nav-link:hover, .nav-link.active { background: #edf6e7; color: #0f172a; border-left-color: transparent; border-radius: 15px; box-shadow: none;}
.nav-link.active::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff7b00;}
.nav-badge { min-width: 22px; min-height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 12px; line-height: 1; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 0 24px; display: grid; gap: 12px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.main { min-width: 0; }
.topbar { min-height: 80px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 40px; }
.topbar h1 { margin: 0; color: #4f8d26; font-size: 26px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.flash { margin: 24px 40px 0; padding: 14px 16px; border-radius: 6px; background: #edf6e7; color: #3f7b1d; font-weight: 700; }
.flash.error { background: #f9e8e8; color: var(--danger); }

.panel, .notice, .metric-card { background: var(--surface); box-shadow: var(--shadow); }
.panel { margin: 28px 40px; padding: 23px; border-radius: 15px; }
.notice { display: flex; gap: 14px; margin: 28px 40px; padding: 24px 30px; }
.notice-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #7eb3dd; color: #5c9dce; font-size: 22px; flex: 0 0 auto; }
.notice h2, .panel h2 { margin: 0 0 16px; color: #172033; font-size: 18px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 30px; margin: 28px 40px; }
.metric-card { min-height: 150px; display: grid; gap: 14px; padding: 24px; }
.metric-card span { color: #4f8d26; font-size: 14px; font-weight: 730; text-transform: uppercase; }
.metric-card strong { color: var(--blue); font-size: 30px; }
.metric-card p { margin: 0; line-height: 1.45; }
.notification-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 24px; margin: 28px 40px; }
.notification-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.notification-card.active { border-left: 4px solid #ff7b00; }
.notification-card h2 { margin: 8px 0; color: #555a61; font-size: 18px; }
.notification-card p { margin: 0; color: #656b73; line-height: 1.45; }
.notification-count { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 50%; background: #edf6e7; color: #4f8d26; font-weight: 800; }
.notification-card.active .notification-count { background: #4f8d26; color: #fff; }
.notice-soft { padding: 14px 16px; background: #f7f8fa; border: 1px solid var(--line); color: #555d67; font-weight: 700; line-height: 1.45; }
.info-grid .notification-card { align-items: flex-start; }
.info-grid .notification-card p { white-space: normal; }

.store-head { margin: 28px 40px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.store-head h2 { margin: 0; font-size: 25px; color: #172033; }
.landing-hero { margin: 28px 40px; padding: 42px; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; background: radial-gradient(circle at top left, rgba(255,123,0,.25), transparent 40%); box-shadow: var(--shadow); border-radius: 24px; }
.landing-hero h2 { margin: 0 0 14px; font-size: 46px; line-height: 1.05; color: #4f8d26; text-align: center; }
.landing-hero p { max-width: 690px; margin: 0; color: #555d67; font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-panel { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 10px; background: linear-gradient(135deg, rgba(255,123,0,.2), rgba(255,123,0,.05)); border: 1px solid rgba(255,123,0,.3); box-shadow: 0 10px 20px rgba(61, 66, 78, .08); text-align: center; border-radius: 24px; }
.hero-panel strong { color: var(--blue); font-size: 42px; }
.hero-panel span { color: var(--muted); font-weight: 700; }
.landing-section { margin: 28px 40px; padding: 30px; background: var(--surface); box-shadow: var(--shadow); border-radius: 15px; }
.landing-section h2 { margin: 0 0 18px; color: #172033; font-size: 25px; }
.feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; }
.feature-grid article, .steps-grid article { padding: 18px; border: 1px solid var(--line); background: #fff; border-radius: 15px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.steps-grid article:hover{ transform:translateY(-10px); border-color:var(--brand); box-shadow: 0 15px 35px rgba(0,0,0,.15); }
.feature-grid h3, .steps-grid h3 { margin: 0 0 8px; font-size: 17px; }
.feature-grid p, .steps-grid p, .contact-box p { margin: 0; color: #656b73; line-height: 1.45; }
.steps-grid span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: #ff7b00; color: #fff; font-weight: 800; }
.split-info { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.check-list { margin: 0; padding-left: 20px; color: #4e555e; line-height: 1.7; }
.contact-box { padding: 22px; background: linear-gradient(135deg, rgba(255,123,0,.12), rgba(255,123,0,.03)); border: 1px solid #ead39b; border-radius: 15px; max-width: 360px; margin-top: auto; text-align: center}
.contact-box:hover{ transform:translateY(-6px); }
.contact-box h2 { margin: 0 0 10px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 24px; margin: 24px 40px 40px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 25px; overflow: hidden; transition:.25s; }
.product-art { width: 100%; aspect-ratio: 16 / 10; min-height: 136px; display: grid; place-items: center; border: 0; padding: 18px; background: linear-gradient(135deg, #f4c15d, #72a35b); color: #fff; font-size: 36px; font-weight: 800; text-decoration: none; cursor: pointer; overflow: hidden; }
.product-art.has-image { display: grid; place-items: center; background: #f7f8fa; }
.product-art img { width: auto !important; height: auto !important; max-width: 82% !important; max-height: 190px !important; display: block; object-fit: contain !important; object-position: center center; }
.product-card:hover{ transform:translateY(-8px); }
.product-card:nth-child(2n) .product-art { background: linear-gradient(135deg, #5f9bd2, #81a85b); }
.product-card:nth-child(2n) .product-art.has-image { background: #f7f8fa; }
.product-body { display: grid; gap: 12px; padding: 18px; justify-content: space-around; }
.product-body h3 { margin: 0; font-size: 18px; }
.store-title-link:hover { color: var(--blue); }
.product-body p { margin: 0; color: #656b73; line-height: 1.45; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { color: #ff7b00; font-size: 24px; font-weight: 800; display:inline-flex; align-items:center; gap:8px; padding:10px 18px; background:linear-gradient(135deg, rgba(255,123,0,.12), rgba(255,123,0,.05)); border:1px solid rgba(255,123,0,.2); border-radius:14px; }
.load-more-wrap { margin: -16px 40px 40px; display: flex; justify-content: center; }

.editor-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; margin: 28px 40px; }
.payout-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; margin: 28px 40px; }
.editor-layout .panel, .payout-layout .panel, .checkout-layout .panel { margin: 0; }
.checkout-layout > .panel, .checkout-layout > form { align-self: start; }
.checkout-layout .form-grid.one { align-content: start; }
.checkout-layout .product-art { aspect-ratio: auto !important; min-height: 260px; max-height: 390px; padding: 12px !important; background: #f7f8fa; overflow: hidden; }
.checkout-layout .product-art img { width: auto !important; height: auto !important; max-width: 72% !important; max-height: 320px !important; object-fit: contain !important; object-position: center center; }
.checkout-layout .panel > .product-art + h2 { margin-top: 22px; color: #343941; font-size: 22px; font-weight: 700; }
.product-description { margin: 0 0 16px; color: var(--text); line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.one { grid-template-columns: 1fr; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #343941; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--text); padding: 10px 12px; }
label small { color: var(--muted); font-weight: 400; }
textarea { resize: vertical; }
.rich-editor { min-height: 130px; display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); padding: 10px 12px; font-weight: 400; line-height: 1.45; outline: none; resize: vertical; }
.text-red { color: #c04444; }
.text-green { color: #4f8d26; }
fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin: 0; }
legend { padding: 0 6px; color: #676d75; font-weight: 700; }
.limit-field { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.limit-field input[type="number"] { grid-column: 1 / -1; }
.delivery-field { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f7f8fa; }
.delivery-field p { grid-column: 1 / -1; margin: 0; color: #656b73; line-height: 1.45; }
.radio-row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.radio-row input { width: auto; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row input { width: 20px; height: 20px; }
.quota-box { display: grid; gap: 6px; padding: 14px 16px; background: #f7f8fa; border: 1px solid var(--line); }
.quota-box span { color: var(--muted); }
.quota-form { display: grid; grid-template-columns: 120px auto auto; align-items: center; gap: 8px; }
.quota-form input { min-width: 0; }
.upload-status { display: none; gap: 8px; padding: 14px 16px; background: #f7f8fa; border: 1px solid var(--line); color: #555d67; }
.upload-status.show { display: grid; }
.upload-status small { color: var(--muted); }
.upload-bar { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: #e4e8ee; }
.upload-bar span { position: absolute; inset: 0 auto 0 0; width: 42%; border-radius: inherit; background: var(--brand); animation: uploadMove 1.1s ease-in-out infinite; }
button:disabled { opacity: .65; cursor: wait; }

@keyframes uploadMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(240%); }
}

.primary-button, .outline-button, .mini-action, .row-actions button { min-height: 36px; border-radius: 999px; border: 1px solid var(--line); padding: 8px 14px; background: #fff; color: #555b63; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.primary-button { background: linear-gradient(135deg, #ff7b00, #ff9f43); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(255,123,0,.2); }
.outline-button { border-color: #d8ba60; color: #4f8d26; box-shadow:0 10px 30px rgba(255,123,0,.15); }
.mini-action { border: 0; color: var(--danger); padding: 4px 0; background: transparent; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { margin-top: 12px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #767b83; font-size: 13px; text-transform: uppercase; white-space: nowrap; }
.products-table-wrap { overflow-x: visible; }
.products-table { table-layout: fixed; }
.products-table th, .products-table td { white-space: normal; overflow-wrap: anywhere; }
.products-table th:first-child, .products-table td:first-child { width: 34%; }
.products-table th:nth-last-child(1), .products-table td:nth-last-child(1) { width: 92px; }
.products-table small { color: var(--muted); line-height: 1.35; }
.product-cell { display: flex; align-items: flex-start; gap: 10px; }
.product-thumb { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; border-radius: 4px; border: 1px solid var(--line); background: #f7f8fa; }
.product-thumb.placeholder { display: grid; place-items: center; color: #fff; background: var(--brand); font-weight: 800; }
.seller-product-list { display: grid; gap: 14px; }
.seller-product-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.seller-product-item h3 { margin: 0 0 6px; font-size: 16px; color: #4d535c; overflow-wrap: anywhere; }
.seller-product-item h3 a:hover { color: var(--brand); }
.seller-product-item p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.seller-product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: #656b73; font-size: 13px; }
.seller-product-meta span:not(.pill) { padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: #f7f8fa; }
.seller-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy-square { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid #d8ba60; border-radius: 4px; background: #fff; color: #a96d06; font-size: 18px; font-weight: 800; cursor: pointer; }
.copy-square:hover { background: var(--brand-soft); }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 40px 18px; }
.category-nav a { min-height: 34px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; color: #1e201d; font-weight: 700; text-decoration: none; }
.category-nav a.active { border-color: #ff7b00; background: #ff7b00; color: #fff; }
.product-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.product-details span { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); background: #f7f8fa; color: #4d535c; overflow-wrap: anywhere; border-radius: 9px;}
.product-details strong { color: #767b83; font-size: 12px; text-transform: uppercase; }
.admin-product-list { display: grid; gap: 16px; margin: 28px 40px; }
.admin-product-item { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(430px, 1.35fr) minmax(160px, 180px); gap: 16px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 18px rgba(61, 66, 78, .08); overflow: hidden; }
.admin-product-item > * { min-width: 0; }
.admin-product-item h3 { margin: 0 0 6px; font-size: 17px; color: #343941; overflow-wrap: anywhere; }
.admin-product-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.admin-product-meta { display: grid; grid-template-columns: minmax(72px, 1fr) minmax(64px, .8fr) minmax(92px, 1fr) minmax(74px, .8fr) minmax(120px, 1.05fr); gap: 10px; }
.admin-product-meta span { display: grid; gap: 5px; min-width: 0; color: #343941; }
.admin-product-meta strong { color: #767b83; font-size: 12px; text-transform: uppercase; }
.admin-product-meta .pill { justify-self: start; max-width: 100%; font-style: normal; white-space: nowrap; overflow-wrap: normal; }
.admin-product-actions { display: grid; gap: 8px; }
.admin-product-actions form { display: grid; gap: 8px; }
.admin-product-actions button, .admin-product-actions .outline-button { width: 100%; min-width: 0; min-height: 38px; padding-left: 10px; padding-right: 10px; text-align: center; white-space: normal; word-break: normal; overflow-wrap: normal; }
.admin-product-actions .mini-action { justify-content: center; color: var(--danger); }
.pill { display: inline-flex; min-height: 26px; align-items: center; padding: 0 10px; border-radius: 99px; background: #edf6e7; color: #4f8d26; font-weight: 700; }
.danger-pill { background: #f9e8e8; color: var(--danger); }
.image-modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 28px; background: rgba(20, 24, 30, .78); }
.image-modal.show { display: grid; }
.image-modal img { max-width: min(100%, 1100px); max-height: 88vh; object-fit: contain; background: #fff; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.image-modal button { position: fixed; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }
.payout-total { padding: 22px; background: #f7f8fa; border: 1px solid var(--line); margin-bottom: 16px; border-radius: 15px; text-align: center}
.payout-total strong { color: var(--green); font-size: 34px; }
.pay-box p { line-height: 1.5; }
.payment-confirm-form { display: grid; grid-template-columns: minmax(180px, 280px) auto; gap: 10px; align-items: center; max-width: 520px; }
.requisites { display: inline-block; margin: 10px 0; padding: 18px; background: #f7f8fa; border: 1px solid var(--line); font-size: 24px; font-weight: 800; }
.auth-card { max-width: 460px; }
.ticket-list { display: grid; gap: 16px; }
.ticket { padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.ticket h3 { margin: 0 0 8px; }
.ticket-author { margin: -2px 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.site-footer { margin: 18px 40px 24px; display: flex; flex-wrap: wrap; gap: 8px 14px; color: #9aa0a8; font-size: 12px; }
.site-footer a { color: #8b929c; text-decoration: none; }
.site-footer a:hover { color: #6f7680; }
.maintenance-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.maintenance-box { width: min(560px, calc(100% - 32px)); padding: 34px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.maintenance-box h1 { margin: 0 0 22px; font-size: 28px; line-height: 1.25; }
.copyright-lock { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 10px; padding: 32px; background: #fff; color: #343941; text-align: center; }
.copyright-lock h1 { margin: 0; font-size: 28px; }
.copyright-lock p { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
  .metric-grid, .store-grid, .feature-grid, .steps-grid, .notification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-layout, .payout-layout, .checkout-layout, .landing-hero, .split-info, .admin-product-item { grid-template-columns: 1fr; }
  .admin-product-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; }
  .topbar { padding: 18px; }
  .panel, .notice, .metric-grid, .store-head, .store-grid, .category-nav, .load-more-wrap, .editor-layout, .payout-layout, .checkout-layout, .landing-hero, .landing-section, .site-footer, .notification-grid, .admin-product-list { margin-left: 14px; margin-right: 14px; }
  .landing-hero, .landing-section { padding: 22px; }
  .landing-hero h2 { font-size: 34px; }
  .metric-grid, .store-grid, .form-grid, .feature-grid, .steps-grid, .quota-form, .notification-grid, .limit-field, .delivery-field, .admin-product-meta, .product-details { grid-template-columns: 1fr; }
  .payment-confirm-form { grid-template-columns: 1fr; }
  .delivery-field p { grid-column: auto; }
  .checkout-layout .product-art { min-height: 190px; max-height: 280px; padding: 20px; }
  .checkout-layout .product-art img { max-width: 82% !important; max-height: 220px !important; }
}
.feature-grid article { position: relative; overflow: hidden; }
.feature-grid article:hover{ transform: translateY(-10px) scale(1.02); border-color:#6d5dfc; box-shadow: 0 20px 40px rgba(109,93,252,.18);
}


