/* ============================================================
   FarmBrawl — VIP Pass modal (farm theme)
   Compact: everything visible on open, no scrollbar.
   ============================================================ */

.vip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #1a1208;
  border: 2px solid #0a0806;
  border-radius: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #f0d060, #c49a20);
  box-shadow: 0 3px 0 #0a0806;
  transition: filter 0.12s, transform 0.1s;
}
.vip-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #0a0806;
}
.vip-btn:active {
  transform: translate(1px, 2px);
  box-shadow: 0 1px 0 #0a0806;
}
.vip-crown { color: #5b3a00; }

/* ── Backdrop: center, no page scroll ── */
.vip-pass-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30060 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(6, 4, 2, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden;
}
.vip-pass-backdrop.vip-pass-visible { opacity: 1; }

/* ── Modal: fit viewport, no internal scrollbar ── */
.vip-pass-modal {
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 220, 150, 0.03) 0 2px,
      transparent 2px 10px
    ),
    linear-gradient(180deg, #2e2418 0%, #1c1610 55%, #14100c 100%);
  border: 2px solid #0a0806;
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(240, 208, 96, 0.5),
    0 20px 50px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 220, 150, 0.1);
  transform: scale(0.97) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.vip-pass-visible .vip-pass-modal {
  transform: scale(1) translateY(0);
}

/* Body grows with content — NO scrollbars */
.vip-pass-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Header (compact) ── */
.vip-pass-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3d3020 0%, #2a1f14 100%);
  border-bottom: 2px solid #0a0806;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 150, 0.1),
    inset 0 -1px 0 rgba(196, 154, 32, 0.25);
}
.vip-pass-title {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffe066;
  text-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
  margin: 0;
}
.vip-pass-title i {
  color: #fbbf24;
  font-size: 16px;
  filter: drop-shadow(1px 1px 0 #000);
}
.vip-pass-sub {
  margin: 3px 0 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #f0e6d4;
  line-height: 1.3;
  text-shadow: 1px 1px 0 #000;
}
.vip-pass-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: #dc2626;
  border: 2px solid #0a0806;
  border-radius: 0;
  box-shadow: 0 3px 0 #7f1d1d;
  cursor: pointer;
}
.vip-pass-close:hover { filter: brightness(1.12); }
.vip-pass-close:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* ── Sale strip (one line) ── */
.vip-pass-sale-banner {
  flex-shrink: 0;
  margin: 8px 12px 0;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1208;
  text-align: center;
  background: linear-gradient(180deg, #ffe066 0%, #f0d060 45%, #c49a20 100%);
  border: 2px solid #0a0806;
  box-shadow: 0 2px 0 #0a0806, inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.vip-pass-sale-banner .vip-sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #dc2626;
  color: #fff;
  border: 2px solid #0a0806;
  box-shadow: 0 2px 0 #7f1d1d;
  text-shadow: 1px 1px 0 #000;
}
.vip-pass-sale-banner .vip-sale-old {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #5c4030;
  font-weight: 800;
}
.vip-pass-sale-banner .vip-sale-new {
  color: #064e3b;
  font-weight: 900;
}

/* ── Status (compact) ── */
.vip-pass-active-banner {
  flex-shrink: 0;
  margin: 6px 12px 0;
  padding: 6px 10px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.45);
  border: 2px solid #0a0806;
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.35);
  text-shadow: 1px 1px 0 #000;
}
.vip-pass-active-banner strong { color: #ecfdf5; }
.vip-pass-active-banner-neutral {
  color: #f0e6d4;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 1px rgba(240, 208, 96, 0.3);
}
.vip-pass-active-banner-neutral strong { color: #ffe066; }

/* ── Cards ── */
.vip-pass-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 8px 12px 10px;
  overflow: hidden;
}
@media (max-width: 700px) {
  .vip-pass-grid { grid-template-columns: 1fr; }
}

.vip-pass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px;
  border: 2px solid #0a0806;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px rgba(196, 154, 32, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.vip-card-violet,
.vip-card-featured {
  background: linear-gradient(180deg, rgba(62, 48, 28, 0.65) 0%, rgba(12, 10, 8, 0.72) 100%);
  box-shadow:
    0 0 0 1px rgba(240, 208, 96, 0.55),
    0 0 16px rgba(196, 154, 32, 0.12),
    inset 0 1px 0 rgba(255, 220, 150, 0.08);
}
.vip-card-slate {
  background: rgba(0, 0, 0, 0.52);
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vip-card-active {
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.55),
    0 0 14px rgba(16, 185, 129, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.vip-card-glow { display: none; }

.vip-card-top {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.vip-card-icon {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 #000);
}
.vip-card-head { flex: 1; min-width: 0; }
.vip-card-title {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #ffe066;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.15;
  margin: 0;
}
.vip-card-slate .vip-card-title { color: #86efac; }
.vip-card-sub {
  margin: 2px 0 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #e8dcc8;
  line-height: 1.25;
  text-shadow: 1px 1px 0 #000;
}

.vip-card-tag,
.vip-card-status,
.vip-card-blocked {
  flex-shrink: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  border: 2px solid #0a0806;
  border-radius: 0;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.vip-tag-violet {
  background: linear-gradient(180deg, #ffe066, #c49a20);
  color: #1a1208;
  box-shadow: 0 2px 0 #0a0806;
}
.vip-tag-slate {
  background: rgba(0, 0, 0, 0.55);
  color: #e8dcc8;
  text-shadow: 1px 1px 0 #000;
}
.vip-tag-gold {
  background: linear-gradient(180deg, #ffe066, #c49a20);
  color: #1a1208;
}
.vip-card-status {
  background: linear-gradient(180deg, #34d399, #059669);
  color: #fff;
  box-shadow: 0 2px 0 #064e3b;
  text-shadow: 1px 1px 0 #000;
}
.vip-card-blocked {
  background: rgba(0, 0, 0, 0.55);
  color: #cbd5e1;
  text-shadow: 1px 1px 0 #000;
}

/* Price row */
.vip-card-price {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  flex-shrink: 0;
}
.vip-card-amount {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #ffe066;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}
.vip-card-slate .vip-card-amount { color: #6ee7b7; }
.vip-card-unit {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #f0e6d4;
  text-shadow: 1px 1px 0 #000;
}
.vip-card-list-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #c4b49a;
  text-shadow: 1px 1px 0 #000;
}
.vip-card-list-price s {
  color: #d4c4a8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.vip-card-sale-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: #dc2626;
  border: 2px solid #0a0806;
  box-shadow: 0 2px 0 #7f1d1d;
  text-shadow: 1px 1px 0 #000;
}

/* Benefit strip */
.vip-benefit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  text-align: center;
  padding: 5px 8px;
  margin-bottom: 6px;
  border: 2px solid #0a0806;
  border-radius: 0;
  flex-shrink: 0;
}
.vip-benefit-banner--save {
  background: rgba(196, 154, 32, 0.22);
  box-shadow: 0 0 0 1px rgba(240, 208, 96, 0.3);
}
.vip-benefit-banner--std {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 1px rgba(200, 184, 160, 0.18);
}
.vip-benefit-pct {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #ffe066;
  text-shadow: 1px 1px 0 #000;
  line-height: 1;
}
.vip-benefit-banner--std .vip-benefit-pct { color: #e8dcc8; }
.vip-benefit-text {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fff8e8;
  text-shadow: 1px 1px 0 #000;
}
.vip-benefit-banner--std .vip-benefit-text { color: #e8dcc8; }
.vip-benefit-text strong { color: #fff; }

.vip-perks-heading {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #f0d060;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 5px;
  text-shadow: 1px 1px 0 #000;
  flex-shrink: 0;
}
.vip-card-slate .vip-perks-heading { color: #86efac; }

/* Perks: 2 columns, single-line chips — all visible */
.vip-perk-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-content: start;
  overflow: hidden;
}
.vip-perk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  background: rgba(0, 0, 0, 0.48);
  border: 2px solid #0a0806;
  border-radius: 0;
  min-width: 0;
}
.vip-perk-item--highlight {
  background: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.3);
}
.vip-perk-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(196, 154, 32, 0.4);
  color: #ffe8b0;
}
.vip-perk-copy {
  min-width: 0;
  flex: 1;
}
.vip-perk-title {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #fff8e8;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-perk-item--highlight .vip-perk-title { color: #86efac; }
/* Sub hidden in compact mode — titles only, full list fits */
.vip-perk-sub { display: none; }

/* Buy button */
.vip-card-btn {
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
  padding: 9px 12px;
  border: 2px solid #0a0806;
  border-radius: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: filter 0.12s, transform 0.1s;
}
.vip-card-btn:hover { filter: brightness(1.06); }
.vip-card-btn:active { transform: translateY(2px); }
.vip-btn-violet {
  color: #1a1208;
  background: linear-gradient(180deg, #ffe066, #c49a20);
  box-shadow: 0 3px 0 #0a0806;
}
.vip-btn-violet:hover { box-shadow: 0 4px 0 #0a0806; }
.vip-btn-violet:active { box-shadow: 0 1px 0 #0a0806; }
.vip-btn-slate {
  color: #ecfdf5;
  background: linear-gradient(180deg, #3d6b52, #1f3d2e);
  box-shadow: 0 3px 0 #0a0806;
  text-shadow: 1px 1px 0 #000;
}
.vip-btn-slate:hover { box-shadow: 0 4px 0 #0a0806; }
.vip-btn-slate:active { box-shadow: 0 1px 0 #0a0806; }
.vip-btn-gold {
  color: #1a1208;
  background: linear-gradient(180deg, #ffe066, #c49a20);
  box-shadow: 0 3px 0 #0a0806;
}

.vip-card-footer {
  text-align: center;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
  border: 2px solid #0a0806;
  border-radius: 0;
  flex-shrink: 0;
  margin-top: auto;
}
.vip-card-footer-active {
  background: rgba(6, 78, 59, 0.45);
  color: #86efac;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.3);
  text-shadow: 1px 1px 0 #000;
}
.vip-card-footer-muted {
  background: rgba(0, 0, 0, 0.45);
  color: #d4c4a8;
  text-shadow: 1px 1px 0 #000;
}

.vip-pass-footnote {
  flex-shrink: 0;
  padding: 7px 12px 9px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #e8dcc8;
  text-align: center;
  border-top: 2px solid #0a0806;
  background: rgba(0, 0, 0, 0.35);
  text-shadow: 1px 1px 0 #000;
}
.vip-pass-footnote strong { color: #ffe066; }

/* Sidebar VIP entry */
#sidebar .tab.tab--vip { color: #f0d060; }
#sidebar .tab.tab--vip .tab-ic-wrap--vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #f0d060;
  background: linear-gradient(180deg, rgba(240, 208, 96, 0.2), rgba(196, 154, 32, 0.12));
  border: 1px solid rgba(240, 208, 96, 0.45);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}
#sidebar .tab.tab--vip .tab-ic-wrap--vip i {
  font-size: 11px;
  line-height: 1;
}
#sidebar .tab.tab--vip:hover,
#sidebar .tab.tab--vip:focus-visible {
  color: #fde68a;
  filter: brightness(1.08);
}

/* Shop CTA */
.shop-vip-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 12px 14px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 220, 150, 0.03) 0 2px,
      transparent 2px 8px
    ),
    linear-gradient(180deg, #2a1f14, #1a1410);
  border: 2px solid #0a0806;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff8e8;
}
.shop-vip-cta-text {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 1px 1px 0 #000;
}
.shop-vip-cta-text strong { color: #ffe066; }
.shop-vip-cta-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe066, #c49a20);
  border: 2px solid #0a0806;
  box-shadow: 0 3px 0 #0a0806;
  cursor: pointer;
  white-space: nowrap;
}
.shop-vip-cta-btn:hover { filter: brightness(1.06); }

/* Narrow / short screens: still no scroll — tighter */
@media (max-height: 700px) {
  .vip-pass-header { padding: 8px 12px; }
  .vip-pass-title { font-size: 16px; }
  .vip-pass-sub { font-size: 11px; }
  .vip-pass-sale-banner { margin-top: 6px; padding: 5px 8px; font-size: 12px; }
  .vip-pass-active-banner { padding: 5px 8px; font-size: 11px; }
  .vip-pass-grid { gap: 8px; padding: 6px 10px 8px; }
  .vip-pass-card { padding: 8px; }
  .vip-card-amount { font-size: 22px; }
  .vip-card-title { font-size: 14px; }
  .vip-perk-list { gap: 3px; }
  .vip-perk-item { padding: 4px 6px; }
  .vip-perk-title { font-size: 11px; }
  .vip-card-btn { padding: 7px 10px; font-size: 13px; }
  .vip-pass-footnote { padding: 5px 10px 7px; font-size: 10px; }
}

@media (max-width: 700px) {
  .vip-perk-list { grid-template-columns: 1fr 1fr; }
  .vip-pass-backdrop { overflow-y: auto; } /* only mobile fallback */
  .vip-pass-modal { max-height: none; }
  .vip-pass-body { overflow: visible; }
}

@media (max-width: 520px) {
  .shop-vip-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-vip-cta-btn { text-align: center; }
}
