:root {
  --bg: #f4f1eb;
  --panel: #d8d6d2;
  --panel-strong: #b0afad;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(18, 18, 18, 0.1);
  --text: #121212;
  --muted: #5f5c57;
  --shadow: 0 28px 60px rgba(48, 42, 33, 0.12);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --title-font: "Cooper Black", "Franklin Gothic Heavy", "Arial Black", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Bahnschrift, "Aptos", "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7f5f1;
}

body.admin-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(96, 101, 109, 0.22), transparent 28%),
    linear-gradient(180deg, #101114 0%, #23262b 50%, #34383d 100%);
  color: #f3f4f5;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select,
a {
  font: inherit;
}

.page-shell {
  width: min(1760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 26px;
}

.entry-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.entry-card {
  width: min(560px, 100%);
  padding: 34px 30px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  text-align: center;
}

.entry-card h1 {
  margin: 0;
  font-family: var(--title-font);
  letter-spacing: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.gate-form {
  margin-top: 22px;
}

.hero-bar,
.panel,
.manager-panel {
  background: var(--panel);
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: none;
}

body.admin-page .hero-bar,
body.admin-page .panel,
body.admin-page .manager-panel,
body.admin-page .entry-card {
  background: rgba(28, 30, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(3, 10, 12, 0.35);
}

.hero-bar {
  width: 100%;
  margin: 0 auto 10px;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.eyebrow,
.panel-kicker,
.product-category {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

body.admin-page .eyebrow,
body.admin-page .panel-kicker,
body.admin-page .product-category,
body.admin-page .hero-copy,
body.admin-page .helper-text,
body.admin-page .results-meta,
body.admin-page .latest-price,
body.admin-page .status-label {
  color: #c0c4ca;
}

body.admin-page .hero-bar h1,
body.admin-page .panel-heading h2,
body.admin-page .manager-title,
body.admin-page .product-title,
body.admin-page .entry-card h1,
body.admin-page .status-chip strong {
  color: #f3f4f5;
}

.hero-bar h1,
.panel-heading h2,
.manager-title,
.product-title {
  margin: 0;
  font-family: var(--title-font);
  letter-spacing: 0;
}

.hero-bar h1 {
  font-size: clamp(4.5rem, 6.4vw, 7.2rem);
  line-height: 0.9;
  text-transform: none;
}

.kakobuy-trigger {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.16);
  transition: transform 180ms ease, opacity 180ms ease;
}

.kakobuy-trigger:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.kakobuy-modal {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: grid;
  place-items: center;
  padding: 24px;
}

.kakobuy-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.kakobuy-card {
  position: relative;
  width: min(540px, 100%);
  padding: 30px;
  border-radius: 30px;
  background: #f6f3ed;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 34px 90px rgba(18, 18, 18, 0.28);
}

.kakobuy-badge {
  display: inline-flex;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 8px 13px;
  background: #e8e5df;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 900;
}

.kakobuy-card h2 {
  margin: 0;
  color: #151515;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  line-height: 1;
}

.kakobuy-copy {
  max-width: 410px;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.45;
}

.kakobuy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.kakobuy-open,
.kakobuy-close {
  min-width: 140px;
  border: 0;
  border-radius: 20px;
  padding: 16px 22px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
}

.kakobuy-open {
  background: #111111;
  color: #ffffff;
}

.kakobuy-close {
  background: #ffffff;
  color: #111111;
}

.discord-join-trigger {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.14);
  transition: transform 180ms ease, opacity 180ms ease;
}

.discord-join-trigger:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.contact-trigger {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.16);
  transition: transform 180ms ease, opacity 180ms ease;
}

.contact-trigger:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.42);
  cursor: pointer;
}

.contact-card {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 30px;
  background: #ebe7df;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 28px 70px rgba(18, 18, 18, 0.24);
}

.contact-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.contact-head h2 {
  margin: 4px 0 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 0.95;
}

.contact-close {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  color: #111111;
  text-decoration: none;
}

.contact-row span {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.contact-row strong {
  font-size: 1.05rem;
}

.contact-link:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.hero-copy {
  width: min(880px, 100%);
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.08rem;
}

.status-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.status-chip {
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(216, 214, 210, 0.72);
  text-align: center;
}

body.admin-page .status-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(0, 2.62fr) minmax(230px, 0.68fr);
  gap: 28px;
  align-items: stretch;
}

.admin-layout {
  grid-template-columns: minmax(300px, 1.05fr) minmax(0, 2.45fr);
}

.panel {
  border-radius: 36px;
  padding: 20px;
}

.analytics-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.analytics-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.analytics-actions {
  display: grid;
  gap: 10px;
  min-width: 180px;
}

.analytics-actions .secondary-button {
  width: 100%;
}

.analytics-actions .secondary-button.active {
  background: #f3f4f5;
  color: #111317;
}

.analytics-head h2 {
  margin: 4px 0 0;
  font-family: var(--title-font);
  letter-spacing: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.analytics-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
}

body.admin-page .analytics-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-card strong {
  font-family: var(--title-font);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.15;
}

.analytics-card-wide {
  grid-column: span 2;
}

.panel-side {
  min-height: 740px;
  display: flex;
  flex-direction: column;
}

.latest-panel {
  overflow: hidden;
}

.manage-side {
  gap: 18px;
}

.panel-heading {
  padding: 4px 0 18px;
}

.panel-heading h2,
.manager-title {
  font-size: clamp(1.9rem, 2.5vw, 2.5rem);
}

body:not(.admin-page) .panel-side .panel-heading h2 {
  font-family: "Franklin Gothic Heavy", "Arial Black", Bahnschrift, sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-list,
.latest-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 8px 2px 0;
}

.latest-list {
  flex: 1;
  min-height: 0;
  grid-auto-rows: minmax(104px, auto);
  align-content: stretch;
  padding-right: 0;
}

.category-chip,
.primary-button,
.secondary-button,
.ghost-button,
.admin-card-button,
.secondary-link {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.category-chip {
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
}

.category-chip-featured {
  margin-bottom: 10px;
}

body.admin-page .category-chip,
body.admin-page .secondary-button,
body.admin-page .secondary-link,
body.admin-page .picker-button,
body.admin-page .picker-option {
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f5;
  border-color: rgba(255, 255, 255, 0.14);
}

.category-chip:hover,
.category-chip.active,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.admin-card-button:hover,
.secondary-link:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.category-chip.active {
  background: #101010;
  color: #ffffff;
}

body.admin-page .category-chip.active {
  background: rgba(255, 255, 255, 0.18);
}

.primary-button {
  background: #111111;
  color: #ffffff;
  cursor: pointer;
}

body.admin-page .primary-button,
body.admin-page .product-link {
  background: linear-gradient(135deg, #e3e5e8, #9ba1a8);
  color: #111317;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary-button,
.secondary-link {
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  cursor: pointer;
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
}

body.admin-page .ghost-button,
body.admin-page .admin-card-button {
  color: #f3f4f5;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.admin-link-wrap {
  margin-top: auto;
  padding: 10px 10px 18px;
}

.secondary-link {
  display: block;
  text-align: center;
}

.products-panel {
  padding: 22px;
  background: #6e6d69;
  color: #ffffff;
  border-color: rgba(17, 17, 17, 0.2);
}

.catalog-heading {
  padding: 2px 0 14px;
}

.products-panel .panel-kicker {
  color: #ffffff;
  font-size: 1rem;
}

.products-panel .results-meta {
  color: rgba(255, 255, 255, 0.92);
}

.manager-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.manager-panel-side {
  margin-bottom: 0;
}

.manager-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.admin-workspace,
.password-form,
.item-form {
  display: grid;
  gap: 14px;
}

.admin-toolbar,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.password-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.toolbar {
  flex: 1;
  background: var(--panel);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 26px;
  padding: 12px 20px;
}

body.admin-page .toolbar {
  background: rgba(255, 255, 255, 0.08);
}

.toolbar input,
.item-form input,
.password-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.84);
  outline: none;
  font-size: 1.05rem;
}

body.admin-page .toolbar input,
body.admin-page .item-form input,
body.admin-page .password-form input {
  background: rgba(245, 245, 246, 0.95);
  color: #15171a;
}

.item-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-form label,
.password-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

body.admin-page .field-help {
  color: #c0c4ca;
}

.item-form label:last-of-type {
  grid-column: 1 / -1;
}

.picker-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.results-meta,
.helper-text,
.latest-price {
  margin: 0;
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 6px 6px 0;
}

.search-row {
  width: min(1060px, calc(100% - 520px));
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-action {
  flex: 0 0 auto;
  min-height: 54px;
  padding-inline: 22px;
  background: #ffffff;
}

body:not(.admin-page) .search-action {
  color: #111111;
}

@media (min-width: 1181px) {
  body:not(.admin-page) {
    overflow: hidden;
  }

  body:not(.admin-page) .page-shell {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
  }

  body:not(.admin-page) .layout-grid {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  body:not(.admin-page) .panel,
  body:not(.admin-page) .panel-side,
  body:not(.admin-page) .products-panel {
    min-height: 0;
    height: 100%;
  }

  body:not(.admin-page) .products-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  body:not(.admin-page) .products-grid {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 12px;
  }

  body:not(.admin-page) .category-list {
    min-height: 0;
    overflow: visible;
    padding-right: 0;
  }

  body:not(.admin-page) .latest-list {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-right: 0;
    grid-auto-rows: minmax(0, 1fr);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #efede8;
  border: 0;
  box-shadow: none;
}

.product-card-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.product-card-link:hover {
  transform: translateY(-2px);
}

body.admin-page .product-card {
  background: rgba(18, 20, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(3, 10, 12, 0.3);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1 / 0.92;
  background: #d4d0c8;
}

body.admin-page .product-image-wrap {
  background: linear-gradient(135deg, #5b6068, #23262b);
}

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

.product-ribbon {
  position: absolute;
  top: 18px;
  left: -38px;
  z-index: 4;
  width: 132px;
  padding: 7px 0;
  background: linear-gradient(135deg, #ff3535, #b40000);
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 900;
  transform: rotate(-45deg);
  box-shadow: 0 4px 0 rgba(20, 20, 20, 0.2), 0 12px 18px rgba(116, 10, 10, 0.28);
  pointer-events: none;
}

.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 4px 4px 2px;
}

.product-number {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.84);
  color: #ffffff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 18px rgba(17, 17, 17, 0.2);
}

body.admin-page .product-number {
  background: rgba(255, 255, 255, 0.16);
  color: #f3f4f5;
}

.product-title {
  font-size: 1rem;
  line-height: 1.1;
  color: #111111;
}

.product-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.product-row,
.product-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.product-row-with-views {
  justify-content: space-between;
}

.product-price,
.product-views,
.latest-title {
  margin: 0;
  font-weight: 800;
}

.product-price,
.product-views {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #d8d6d2;
  color: #111111;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.admin-page .product-price {
  background: rgba(255, 255, 255, 0.14);
  color: #f3f4f5;
}

.product-views {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

body.admin-page .product-views {
  background: rgba(255, 255, 255, 0.08);
  color: #d6d9de;
}

.product-link,
.admin-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  font-weight: 800;
  text-decoration: none;
}

.product-link {
  width: 100%;
  border-radius: 16px;
  background: #111111;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.admin-page .latest-item {
  background: rgba(255, 255, 255, 0.06);
}

.admin-card-button {
  background: rgba(17, 17, 17, 0.08);
  color: var(--text);
  cursor: pointer;
}

.admin-card-button.danger {
  background: rgba(255, 255, 255, 0.1);
}

.latest-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(86px, 48%) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 0;
  height: 100%;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease;
}

.latest-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
}

.latest-ribbon {
  top: 15px;
  left: -34px;
  width: 112px;
  padding: 5px 0;
  font-size: 0.52rem;
}

.latest-thumb {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  max-height: 118px;
  object-fit: cover;
  border-radius: 16px;
}

.latest-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.latest-title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.08;
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.latest-price {
  font-size: 0.76rem;
  line-height: 1;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
  color: var(--muted);
}

.message-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.picker-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.38);
}

.picker-card {
  position: relative;
  width: min(640px, 100%);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ebe7df;
  box-shadow: var(--shadow);
}

body.admin-page .picker-card {
  background: #23262b;
}

.picker-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.picker-option {
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.picker-option:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

@media (max-width: 1180px) {
  .search-row {
    width: 100%;
    padding: 0 4px;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-card-wide {
    grid-column: span 1;
  }

  .layout-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-side {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 20px;
  }

  .hero-bar,
  .panel,
  .manager-panel {
    border-radius: 28px;
  }

  .hero-bar h1 {
    font-size: 3.2rem;
  }

  .kakobuy-trigger {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 124px);
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .kakobuy-card {
    padding: 22px;
  }

  .kakobuy-actions {
    display: grid;
  }

  .kakobuy-open,
  .kakobuy-close {
    width: 100%;
  }

  .discord-join-trigger {
    width: 100%;
  }

  .contact-trigger {
    top: 12px;
    right: 12px;
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-head,
  .contact-row {
    display: grid;
  }

  .search-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-action {
    width: 100%;
  }

  .products-grid,
  .item-form,
  .password-form {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .picker-list {
    grid-template-columns: 1fr;
  }

  .status-strip,
  .manager-head,
  .analytics-head,
  .product-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-row {
    justify-content: flex-end;
  }

  .status-chip {
    width: 100%;
  }
}
