﻿:root {
  --paper: rgba(255, 255, 255, 0.82);
  --line: rgba(9, 51, 72, 0.16);
  --text: #082b3d;
  --muted: #385b6d;
  --accent: #0c84ad;
  --accent-dark: #0b6787;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #edf8ff 0%, #f4fffa 45%, #ffffff 100%);
}

.bg-orb {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(42px);
  z-index: 0;
  pointer-events: none;
}

.bg-orb-left {
  background: rgba(66, 175, 255, 0.18);
  left: -120px;
  top: -130px;
}

.bg-orb-right {
  background: rgba(27, 197, 145, 0.16);
  right: -150px;
  top: -80px;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 220px;
  height: 92px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.menu a {
  color: #15495f;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
}

.menu a:hover {
  background: rgba(8, 87, 121, 0.08);
}

.menu a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.menu .menu-max-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: transparent;
  border: none;
}

.menu .menu-max-link img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
  flex: 0 0 14px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(13, 80, 106, 0.22);
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  color: #12445a;
}

.container {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 0 6px 28px;
}

.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 14px 32px rgba(18, 71, 95, 0.1);
  animation: fade-up 0.6s ease both;
}

.hero-split {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.hero-small {
  padding-top: 34px;
  padding-bottom: 34px;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(8, 67, 90, 0.15);
}

.tag {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 12px 0 14px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0b6888);
}

.btn-ghost {
  color: #0d5772;
  border: 1px solid rgba(10, 100, 132, 0.24);
  background: #ffffff;
}

.grid-three,
.grid-two {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.panel-big {
  min-height: 180px;
}

.panel-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel p,
.panel li {
  margin: 0;
  color: #3e6373;
  line-height: 1.55;
}

.panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.panel-marketplace {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.panel-title-link {
  color: inherit;
  text-decoration: none;
}

.panel-title-link:hover {
  color: var(--accent);
}

.panel-action-link {
  margin-top: auto;
  padding: 10px 14px;
  font-size: 14px;
}

.panel-contact p {
  font-size: 20px;
  font-weight: 700;
  color: #0d3f56;
}

a {
  color: var(--accent);
}

.market-admin-page-root,
.market-admin-page {
  background: #edeef4;
}

.market-admin-page {
  min-height: 100vh;
}

.market-admin-page .bg-orb {
  display: none;
}

.container-repricer,
.market-admin-page .site-header,
.market-admin-page .site-footer {
  max-width: 1320px;
}

.repricer-shell {
  background: #f3f4f8;
  border: 1px solid #dfe1ea;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 20px rgba(52, 53, 72, 0.08);
}

.repricer-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.repricer-back-link {
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 14px;
}

.repricer-heading {
  margin: 6px 0 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.12;
}

.repricer-tabs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.repricer-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 6px;
  background: transparent;
  color: #7c7a89;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 700;
  cursor: pointer;
}

.repricer-tab.active {
  color: #12131f;
  border-bottom-color: #8040ff;
}

.repricer-toolbar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.repricer-edit-message {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.repricer-edit-message-success {
  color: #2e6f53;
}

.repricer-edit-message-error {
  color: #b4232f;
}

.repricer-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.repricer-store-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #525669;
  font-size: 14px;
  font-weight: 700;
}

.repricer-store-picker select {
  height: 40px;
  min-width: 220px;
  border: 1px solid #d7d8e2;
  border-radius: 10px;
  background: #f8f8fb;
  color: #232434;
  padding: 0 10px;
  font: inherit;
}

.repricer-search {
  width: min(100%, 350px);
  min-width: 240px;
  border: 1px solid #d7d8e2;
  border-radius: 10px;
  background: #f8f8fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
}

.repricer-search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 40px;
  color: #232434;
  font-size: 15px;
  outline: none;
}

.repricer-search span {
  color: #b1b2bf;
  font-size: 18px;
}

.repricer-btn {
  border: 1px solid #d6d8e3;
  background: #e8e9ef;
  color: #272839;
  border-radius: 10px;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.repricer-edit-btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #9a44ff, #7c33ef);
  color: #fff;
  font-weight: 700;
  height: 40px;
  min-height: 40px;
  padding: 0 20px;
  cursor: pointer;
}

.repricer-switches {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.repricer-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #636373;
  font-size: 15px;
  font-weight: 700;
}

.repricer-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.repricer-switch-ui {
  width: 26px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #c5c8d8;
  background: #ebeaf3;
  position: relative;
}

.repricer-switch-ui::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7a7f96;
  position: absolute;
  top: 2px;
  left: 2px;
}

.repricer-switch input:checked + .repricer-switch-ui {
  background: #ddd6ff;
  border-color: #8e69f1;
}

.repricer-switch input:checked + .repricer-switch-ui::after {
  left: 13px;
  background: #6d34ec;
}

.repricer-table-wrap {
  margin-top: 14px;
  border: 1px solid #dfe0ea;
  border-radius: 16px;
  background: #fff;
  overflow: auto;
}

.repricer-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.repricer-table th,
.repricer-table td {
  border-bottom: 1px solid #e8eaf2;
  padding: 18px 16px;
  vertical-align: top;
}

.repricer-table th {
  color: #7a7b88;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.repricer-table td {
  color: #1f2030;
  font-size: 15px;
}

.table-message {
  text-align: center;
  color: #6a7e89;
  font-weight: 700;
}

.repricer-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 290px;
}

.product-thumb {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dadce9;
  flex: 0 0 56px;
}

.product-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-title-link:hover {
  color: #7c33ef;
  text-decoration: underline;
}

.product-meta {
  margin: 4px 0 0;
  color: #818293;
  font-size: 14px;
  line-height: 1.4;
}

.num {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.repricer-inline-input {
  width: 120px;
  height: 38px;
  border: 1px solid #d7d8e2;
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  font: inherit;
  font-weight: 700;
  color: #1f2030;
}

.status-chip,
.muted-chip,
.club-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.muted-chip {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: #8f90a0;
  background: #f1f2f6;
  border: 1px solid #e6e7ed;
}

.status-chip {
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #1b8e5c;
  background: #e7f8ef;
  border: 1px solid #c2ecd5;
}

.club-badge {
  padding: 2px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #f33bb5, #8f3ffa);
}

.cabinet-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-intro {
  margin: 0;
}

.subscription-list,
.stores-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.subscription-item,
.store-card {
  background: #ffffff;
  border: 1px solid rgba(9, 51, 72, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
}

.subscription-head,
.store-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.subscription-item h4,
.store-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.subscription-item p,
.store-card p,
.store-empty {
  margin: 6px 0 0;
  color: #486a7a;
  line-height: 1.5;
}

.store-empty-success {
  color: #127b51;
}

.store-empty-error {
  color: #a93d2f;
}

.subscription-meta {
  font-size: 14px;
}

.subscription-paywall {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #f0dfaf;
  border-radius: 12px;
  background: #fff8e6;
}

.subscription-paywall h4 {
  margin: 0;
  font-size: 18px;
  color: #5b4205;
}

.subscription-paywall p {
  margin-top: 8px;
}

.subscription-offers {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.subscription-offer {
  background: #fff;
  border: 1px solid rgba(91, 66, 5, 0.2);
  border-radius: 10px;
  padding: 10px;
}

.subscription-offer h5 {
  margin: 0;
  font-size: 16px;
}

.subscription-offer-price {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  color: #10384a;
}

.subscription-offer button {
  border: 0;
  margin-top: 10px;
  cursor: pointer;
}

.subscription-payment-message {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #325e70;
}

.subscription-payment-message-success {
  color: #127b51;
}

.subscription-payment-message-error {
  color: #a93d2f;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.state-pill-active {
  color: #127b51;
  background: #e8f9f0;
  border: 1px solid #bfead2;
}

.state-pill-pending {
  color: #7b5d0f;
  background: #fff6df;
  border: 1px solid #f0dfaf;
}

.store-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.stores-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stores-panel-head h3 {
  margin: 0;
}

.stores-create-toggle {
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
}

.store-create-menu {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(10, 76, 103, 0.16);
  border-radius: 12px;
  background: #fbfdff;
}

.store-form label {
  color: #184a61;
  font-size: 14px;
  font-weight: 700;
}

.store-form input,
.store-form select {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid rgba(10, 76, 103, 0.22);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
  color: #12384b;
}

.store-form button {
  border: 0;
  margin-top: 6px;
  cursor: pointer;
}

.store-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-action-btn {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.store-action-btn-danger {
  color: #9a2f25;
  border-color: rgba(154, 47, 37, 0.25);
  background: #fff;
}

.auth-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-panel h3 {
  margin-bottom: 4px;
}

.auth-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: #184a61;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid rgba(10, 76, 103, 0.22);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
  color: #12384b;
}

.auth-form button {
  border: 0;
  margin-top: 6px;
  cursor: pointer;
}

.auth-message {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #335e70;
}

.auth-message-success {
  color: #127b51;
}

.auth-message-error {
  color: #a93d2f;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 10px 4px 0;
  display: flex;
  gap: 18px;
  color: #48697a;
}

.site-footer p {
  margin: 0;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .grid-three,
  .grid-two,
  .hero-split {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 250px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 68, 90, 0.14);
  }

  .menu.open {
    display: flex;
  }

  .site-header {
    position: sticky;
    top: 8px;
    z-index: 20;
  }

  .hero {
    padding: 26px 20px;
  }

  .brand-logo {
    width: 150px;
    height: 62px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .repricer-shell {
    padding: 14px;
  }

  .repricer-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .repricer-back-link {
    width: 100%;
    text-align: center;
  }

  .repricer-toolbar-left {
    width: 100%;
  }

  .repricer-search {
    width: 100%;
  }

  .repricer-store-picker {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .repricer-store-picker select {
    width: 100%;
    min-width: 0;
  }

  .repricer-btn,
  .repricer-edit-btn {
    width: 100%;
  }

  .cabinet-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .store-form button {
    width: 100%;
  }

  .stores-create-toggle {
    width: 100%;
  }

  .auth-form button {
    width: 100%;
  }
}

@media (min-width: 921px) {
  .repricer-toolbar-left {
    flex-wrap: nowrap;
  }

  .repricer-search {
    width: 300px;
    min-width: 300px;
    flex: 0 0 300px;
  }

  .repricer-store-picker select {
    min-width: 200px;
  }

  .repricer-btn-excel {
    margin-top: 0;
  }
}
