:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #172033;
  --muted: #64748b;
  --brand: #d99a18;
  --brand-dark: #b7790d;
  --brand-soft: #fff7df;
  --blue: #2563eb;
  --green: #16a34a;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, .06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(217, 154, 24, .09), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 0;
  background: rgba(255, 255, 255, .94);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 10px 0 30px rgba(15, 23, 42, .03);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 24px; font-size: 26px; font-weight: 800; color: #334155; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #f5c451); color: #fff; box-shadow: 0 8px 18px rgba(217, 154, 24, .24); }
.nav { display: grid; gap: 4px; padding: 0 12px; }
.nav-link { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #64748b; font-weight: 700; border-radius: 10px; border-left: 0; }
.nav-link:hover { background: #f1f5f9; color: #1e293b; }
.nav-link.active { background: var(--brand-soft); color: #1e293b; box-shadow: inset 3px 0 0 var(--brand); }
.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: 82px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 40px;
  backdrop-filter: blur(12px);
}
.topbar h1 { margin: 0; color: #334155; font-size: 28px; line-height: 1.15; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; font-weight: 800; }
.flash { margin: 24px 40px 0; padding: 15px 18px; border-radius: 12px; background: #ecfdf3; color: #166534; font-weight: 700; border: 1px solid #bbf7d0; }
.flash.error { background: #fef2f2; color: var(--danger); border-color: #fecaca; }

.panel, .notice, .metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { margin: 28px 40px; padding: 26px; }
.notice { display: flex; gap: 14px; margin: 28px 40px; padding: 24px 30px; }
.notice-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #93c5fd; color: #2563eb; font-size: 22px; flex: 0 0 auto; }
.notice h2, .panel h2 { margin: 0 0 16px; color: #334155; font-size: 20px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 22px; margin: 28px 40px; }
.metric-card { min-height: 142px; display: grid; gap: 12px; padding: 22px; }
.metric-card span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.metric-card strong { color: var(--blue); font-size: 32px; }
.metric-card p { margin: 0; line-height: 1.45; }
.notification-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 20px; 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); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.notification-card.active { border-color: #f1c95f; box-shadow: 0 12px 28px rgba(217, 154, 24, .12); }
.notification-card h2 { margin: 8px 0; color: #334155; font-size: 18px; }
.notification-card p { margin: 0; color: #64748b; line-height: 1.45; }
.notification-count { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 800; }
.notification-card.active .notification-count { background: var(--brand); color: #fff; }

.store-head { margin: 28px 40px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.store-head h2 { margin: 0; font-size: 30px; color: #334155; }
.landing-hero {
  margin: 28px 40px;
  padding: 46px;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff7e3 58%, #eef9f1 100%);
  border: 1px solid #f0dfb1;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.landing-hero h2 { margin: 0 0 16px; font-size: 48px; line-height: 1.05; color: #172033; }
.landing-hero p { max-width: 720px; margin: 0; color: #475569; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-panel { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 10px; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); text-align: center; }
.hero-panel strong { color: var(--blue); font-size: 42px; }
.hero-panel span { color: var(--muted); font-weight: 800; }
.landing-section { margin: 28px 40px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.landing-section h2 { margin: 0 0 20px; color: #334155; font-size: 26px; }
.feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; }
.feature-grid article, .steps-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.feature-grid h3, .steps-grid h3 { margin: 0 0 8px; font-size: 17px; color: #1e293b; }
.feature-grid p, .steps-grid p, .contact-box p { margin: 0; color: #64748b; line-height: 1.5; }
.steps-grid span { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: var(--brand); 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: #475569; line-height: 1.75; }
.contact-box { padding: 22px; background: var(--brand-soft); border: 1px solid #ead39b; border-radius: 12px; }
.contact-box h3 { margin: 0 0 10px; color: #1e293b; }

.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: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(15, 23, 42, .10); border-color: #d5dde8; }
.product-art { width: 100%; aspect-ratio: 16 / 10; min-height: 150px; display: grid; place-items: center; border: 0; padding: 18px; background: linear-gradient(135deg, #eeb743, #6bb98a); color: #fff; font-size: 36px; font-weight: 800; text-decoration: none; cursor: pointer; overflow: hidden; }
.product-art.has-image { background: #f8fafc; }
.product-art img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; display: block; object-fit: contain !important; object-position: center center; }
.product-card:nth-child(2n) .product-art { background: linear-gradient(135deg, #5d8fe8, #78bb7b); }
.product-card:nth-child(2n) .product-art.has-image { background: #f8fafc; }
.product-body { display: grid; gap: 12px; padding: 18px; }
.product-body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.store-title-link:hover { color: var(--blue); }
.product-body p { margin: 0; color: #64748b; line-height: 1.45; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { color: var(--green); font-size: 25px; font-weight: 800; }
.load-more-wrap { margin: -16px 40px 40px; display: flex; justify-content: center; }

.editor-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin: 28px 40px; }
.payout-layout { display: grid; grid-template-columns: 330px 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: 16 / 9; min-height: 280px; max-height: 380px; padding: 22px; background: #f8fafc; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.checkout-layout .product-art img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; object-position: center center; }
.checkout-layout .panel > .product-art + h2 { margin-top: 22px; color: #1e293b; font-size: 22px; font-weight: 700; }
.product-description { margin: 0 0 16px; color: var(--text); line-height: 1.55; }

.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: #475569; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
}
input:focus, textarea:focus, select:focus, .rich-editor:focus { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(37, 99, 235, .10); }
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: 10px; background: #fff; color: var(--text); padding: 11px 13px; 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: 12px; padding: 14px; margin: 0; background: #fff; }
legend { padding: 0 6px; color: #475569; 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: var(--surface-2); }
.delivery-field p { grid-column: 1 / -1; margin: 0; color: #64748b; 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: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.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: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: #475569; }
.upload-status.show { display: grid; }
.upload-status small { color: var(--muted); }
.upload-bar { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.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: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 9px 16px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary-button { background: linear-gradient(135deg, var(--brand), #e7ad31); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(217, 154, 24, .22); }
.primary-button:hover { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); transform: translateY(-1px); }
.outline-button { border-color: #d8ba60; color: #9a6507; background: #fff; }
.outline-button:hover { background: var(--brand-soft); }
.mini-action { border: 0; color: var(--danger); padding: 4px 0; background: transparent; box-shadow: none; }
.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: #64748b; font-size: 12px; 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: 8px; border: 1px solid var(--line); background: #f8fafc; }
.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: #334155; overflow-wrap: anywhere; }
.seller-product-item h3 a:hover { color: var(--blue); }
.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: #64748b; font-size: 13px; }
.seller-product-meta span:not(.pill) { padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: #f8fafc; }
.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: 10px; background: #fff; color: #9a6507; 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: 36px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; color: #475569; font-weight: 800; text-decoration: none; }
.category-nav a:hover { border-color: #bfdbfe; color: var(--blue); }
.category-nav a.active { border-color: var(--brand); background: var(--brand); 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: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: #334155; overflow-wrap: anywhere; }
.product-details strong { color: #64748b; 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); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.admin-product-item > * { min-width: 0; }
.admin-product-item h3 { margin: 0 0 6px; font-size: 17px; color: #1e293b; 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(130px, 1.05fr); gap: 10px; }
.admin-product-meta span { display: grid; gap: 5px; min-width: 0; color: #334155; }
.admin-product-meta strong { color: #64748b; 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: #dcfce7; color: #15803d; font-weight: 800; }
.danger-pill { background: #fee2e2; color: var(--danger); }

.image-modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 28px; background: rgba(15, 23, 42, .82); }
.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); border-radius: 10px; }
.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: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.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: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; font-size: 24px; font-weight: 800; }
.auth-card { max-width: 480px; }
.ticket-list { display: grid; gap: 16px; }
.ticket { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.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: #94a3b8; font-size: 12px; }
.site-footer a { color: #8491a3; text-decoration: none; }
.site-footer a:hover { color: #475569; }
.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); border-radius: var(--radius); 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; padding-bottom: 18px; }
  .topbar { padding: 18px; min-height: 74px; }
  .topbar h1 { font-size: 24px; }
  .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, .panel { 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: 220px; max-height: 300px; padding: 16px; }
}

/* e-work inspired marketplace theme */
:root {
  --bg: #f6fbf8;
  --surface: #ffffff;
  --surface-2: #f2fbf6;
  --line: #dbeee5;
  --text: #122033;
  --muted: #64748b;
  --brand: #16a34a;
  --brand-dark: #0f7a38;
  --brand-soft: #e9fbee;
  --blue: #2563eb;
  --green: #16a34a;
  --shadow: 0 22px 55px rgba(15, 23, 42, .10);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, .08);
  --radius: 18px;
}
body {
  background:
    radial-gradient(circle at 15% 0%, rgba(22, 163, 74, .16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, .11), transparent 28%),
    linear-gradient(180deg, #fbfffd 0%, var(--bg) 100%);
}
.sidebar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}
.brand { color: #102033; }
.brand-mark {
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 12px 26px rgba(22, 163, 74, .25);
}
.nav-link {
  border-radius: 999px;
  color: #5f6f84;
}
.nav-link:hover, .nav-link.active {
  background: var(--brand-soft);
  color: #0f172a;
  border-left-color: transparent;
  box-shadow: none;
}
.nav-link.active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.nav-badge, .notification-count, .pill {
  border-radius: 999px;
}
.topbar {
  background: rgba(255, 255, 255, .74);
}
.eyebrow {
  color: var(--brand-dark);
}
.panel, .notice, .metric-card, .landing-section, .product-card, .notification-card, .admin-product-item {
  border-color: rgba(22, 163, 74, .14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.landing-hero {
  position: relative;
  border: 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.72)),
    radial-gradient(circle at 84% 20%, rgba(22, 163, 74, .20), transparent 34%),
    radial-gradient(circle at 92% 82%, rgba(37, 99, 235, .16), transparent 35%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.landing-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: rgba(22, 163, 74, .12);
}
.landing-hero::after {
  content: "";
  position: absolute;
  right: 58px;
  bottom: 36px;
  width: 150px;
  height: 150px;
  border-radius: 40px;
  border: 1px solid rgba(22, 163, 74, .20);
  transform: rotate(12deg);
}
.landing-hero > * {
  position: relative;
  z-index: 1;
}
.landing-hero h2 {
  max-width: 760px;
  font-size: 54px;
  letter-spacing: 0;
}
.hero-panel {
  border-radius: 24px;
  border: 1px solid rgba(22, 163, 74, .16);
  background: rgba(255,255,255,.88);
}
.hero-panel strong {
  color: var(--brand);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 26px;
  max-width: 780px;
}
.hero-stats span {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 13px 15px;
  border: 1px solid rgba(22, 163, 74, .16);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.hero-stats strong {
  color: #0f172a;
  font-size: 20px;
}
.benefit-ticker {
  margin: -8px 40px 28px;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, .16);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
}
.benefit-ticker div {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 10px;
  animation: tickerMove 32s linear infinite;
}
.benefit-ticker span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #0f7a38;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tools-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}
.tools-section > div:first-child p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.6;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tools-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(22, 163, 74, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f4fbf7);
}
.tools-grid strong {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0;
}
.tools-grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #122033;
}
.tools-grid p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}
.final-cta {
  margin: 28px 40px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, .18), transparent 34%),
    linear-gradient(135deg, #102033, #123d35);
  color: #fff;
  box-shadow: var(--shadow);
}
.final-cta .eyebrow {
  color: #86efac;
}
.final-cta h2 {
  max-width: 720px;
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
}
.final-cta p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}
.final-cta .primary-button {
  flex: 0 0 auto;
  background: #fff;
  color: #0f7a38;
  box-shadow: none;
}
.primary-button {
  border-color: transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .25);
}
.primary-button:hover {
  background: linear-gradient(135deg, #0f7a38, #16a34a);
}
.outline-button, .copy-square, .category-nav a {
  border-color: rgba(22, 163, 74, .28);
  border-radius: 999px;
  color: var(--brand-dark);
}
.outline-button:hover, .copy-square:hover, .category-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.category-nav a.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.feature-grid article, .steps-grid article {
  border-radius: 18px;
  border-color: rgba(22, 163, 74, .14);
}
.feature-grid article:hover, .steps-grid article:hover, .product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.steps-grid span {
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}
.contact-box {
  border-radius: 20px;
  border-color: rgba(22, 163, 74, .18);
  background: linear-gradient(135deg, #ecfdf3, #eff6ff);
}
.product-card {
  border-radius: 20px;
}
.product-art {
  background: linear-gradient(135deg, #dcfce7, #dbeafe);
}
.product-card:nth-child(2n) .product-art {
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
}
input, textarea, select, .rich-editor, fieldset, .quota-box, .upload-status, .product-details span, .payout-total, .requisites, .ticket {
  border-radius: 14px;
}
input:focus, textarea:focus, select:focus, .rich-editor:focus {
  border-color: rgba(22, 163, 74, .55);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .10);
}
@media (max-width: 760px) {
  .landing-hero h2 { font-size: 36px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-ticker, .final-cta { margin-left: 14px; margin-right: 14px; }
  .tools-section, .tools-grid { grid-template-columns: 1fr; }
  .final-cta { display: grid; padding: 24px; }
  .final-cta h2 { font-size: 28px; }
}
