:root {
  --bg: #0a0a0a;
  --card-bg: #141414;
  --card-border: #282828;
  --text: #f0f0f0;
  --muted: #777;

  --yellow: #ffe033;
  --yellow-hover: #f5d100;
  --ink: #0a0a0a;
  --red: #e8402f;
  --green: #4caf50;
  --green-dark: #2e7d32;
  --hash-color: #c97d2a;
  --hash-dark: #7a4a10;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, sans-serif;
}

/* ---- Public page: dark / yellow brand ---- */

body.public-page {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* hide McLovin decorations */
.decor, .decor-star {
  display: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.brand {
  margin-bottom: 8px;
  text-align: center;
}

.logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(255, 224, 51, 0.25));
}

.logo-fallback {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 52px;
  letter-spacing: 3px;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 224, 51, 0.3);
}

.tagline {
  font-family: 'Bebas Neue', 'Poppins', cursive;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 4px 0 28px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow), 0 4px 20px rgba(255, 224, 51, 0.15);
  transform: translateY(-2px);
}

.link-icon-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--yellow);
  color: var(--ink);
}

.link-icon-badge.icon-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
.link-icon-badge.icon-viber { background: #7b519d; color: #fff; }
.link-icon-badge.icon-signal { background: #2395e9; color: #fff; }
.link-icon-badge.icon-threema { background: #3d9e3d; color: #fff; }
.link-icon-badge.icon-link { background: var(--yellow); color: var(--ink); }

.link-label {
  flex: 1;
}

.showroom-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: var(--yellow);
  border: none;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 700;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 24px rgba(255, 224, 51, 0.25);
}

.showroom-cta:hover,
.showroom-cta:focus-visible {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(255, 224, 51, 0.35);
}

.back-link {
  align-self: flex-start;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  transition: color 0.12s ease;
}

.back-link:hover {
  color: var(--yellow);
}

.showroom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.showroom-card {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.showroom-card:hover {
  border-color: #333;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.showroom-video {
  width: 100%;
  max-height: 420px;
  display: block;
  background: #000;
}

.showroom-body {
  padding: 16px 18px 18px;
}

.showroom-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.showroom-title {
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  color: var(--text);
}

.showroom-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.showroom-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 40px 0;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 4px 0 20px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.section-divider span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
}

.powered-by {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}

.powered-by a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}

.powered-by a:hover {
  text-decoration: underline;
}

/* ---- Admin ---- */

.admin-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.admin-title {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--yellow);
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 4px;
}

input[type="text"],
input[type="url"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: #0f0f0f;
  color: var(--text);
  font-size: 14px;
}

button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  background: var(--yellow);
  color: var(--ink);
  margin-top: 12px;
  transition: background 0.12s ease;
}

button:hover, .btn:hover {
  background: var(--yellow-hover);
}

button.secondary, .btn.secondary {
  background: #222;
  color: var(--text);
}

button.secondary:hover, .btn.secondary:hover {
  background: #2e2e2e;
}

button.danger {
  background: #7a1f2b;
  color: #fff;
}

button.danger:hover {
  background: #9a2535;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}

.link-row:last-child {
  border-bottom: none;
}

.link-row.disabled {
  opacity: 0.45;
}

.link-row-main {
  flex: 1;
  min-width: 0;
}

.link-row-main .label {
  font-weight: 600;
}

.link-row-main .url {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.link-row-actions button {
  margin-top: 0;
  padding: 6px 10px;
  font-size: 12px;
}

.message {
  background: #1a2e1f;
  border: 1px solid #2a4a30;
  color: #7ee8a2;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.edit-fields {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--card-border);
}

.edit-fields.open {
  display: block;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.checkbox-row input {
  width: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.top-bar form {
  margin: 0;
}

/* ---- Category filter tabs (public showroom) ---- */

.category-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.cat-tab {
  flex: 1;
  padding: 10px 8px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.cat-tab:hover {
  border-color: #444;
  color: var(--text);
}

.cat-tab.active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.cat-tab.tab-weed.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
}

.cat-tab.tab-hash.active {
  background: var(--hash-color);
  color: #fff;
  border-color: var(--hash-dark);
}

/* ---- Category badges (public showroom cards) ---- */

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-badge.cat-weed {
  background: #1a3a1a;
  color: var(--green);
  border: 1.5px solid var(--green-dark);
}

.category-badge.cat-hash {
  background: #2e1e08;
  color: var(--hash-color);
  border: 1.5px solid var(--hash-dark);
}

/* ---- Price grid (public showroom) ---- */

.price-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.price-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #1a1600;
  border: 1.5px solid #3a3000;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.price-grams {
  color: var(--muted);
  font-weight: 600;
}

.price-sep {
  color: #444;
  font-weight: 400;
  font-size: 11px;
}

.price-amount {
  color: var(--yellow);
  font-weight: 700;
}

.price-currency {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

/* ---- Admin: category badge in item row ---- */

.admin-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: middle;
}

.admin-cat-badge.cat-weed {
  background: #1a3a1a;
  color: #7ee8a2;
}

.admin-cat-badge.cat-hash {
  background: #2e1e08;
  color: #f0c88a;
}

/* ---- Admin: category select ---- */

.admin-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: #0f0f0f;
  color: var(--text);
  font-size: 14px;
  font-family: 'Poppins', system-ui, sans-serif;
}

/* ---- Admin: gram tiers grid ---- */

.gram-tiers-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.gram-tier-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 0 2px;
}

.gram-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gram-tier-row input {
  margin: 0 !important;
  width: 100%;
}

/* ---- Announcement banner ---- */

.announcement-banner {
  width: 100%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 224, 51, 0.2);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ---- Inline SVG icon sizing ---- */

.icon-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ---- Showroom card: featured + sold-out overlays ---- */

.showroom-card--featured {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow), 0 4px 24px rgba(255, 224, 51, 0.15);
}

.featured-sticker {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px 5px 10px;
  border-radius: 0 8px 8px 0;
  white-space: nowrap;
}

.featured-sticker .icon-svg {
  width: 14px;
  height: 14px;
}

.sold-out-ribbon {
  position: absolute;
  top: 12px;
  right: 0;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px 5px 12px;
  border-radius: 8px 0 0 8px;
  white-space: nowrap;
}

/* ---- Product photo (when no video) ---- */

.showroom-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ---- Order button — full-width card bottom CTA ---- */

.showroom-card-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid #333;
  transition: background 0.12s ease, gap 0.12s ease;
}

.showroom-card-order .icon-svg {
  width: 18px;
  height: 18px;
  transition: transform 0.12s ease;
}

.showroom-card-order:hover,
.showroom-card-order:focus-visible {
  background: var(--yellow-hover);
  gap: 12px;
}

.showroom-card-order:hover .icon-svg {
  transform: scale(1.15);
}
