/* ===================================================
   MELON STORE — Shop, Rules, Cabinet, Profile, modals
   =================================================== */

/* ===========================
   SHOP
   =========================== */
.shop {
  padding: 56px 28px 0;
}
.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.shop-title {
  font-size: 56px;
  line-height: 1;
  margin-top: 12px;
  letter-spacing: -0.03em;
}
.shop-title .accent { color: var(--accent); }
.shop-head-side { width: 320px; }
.shop-balance {
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.shop-balance-v {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shop-balance-v span { color: var(--text-muted); font-weight: 500; font-size: 22px; }

/* Toolbar */
.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.cat-chip:hover { border-color: var(--border-strong); color: var(--text); }
.cat-chip.active {
  background: var(--accent);
  color: #1a1500;
  border-color: var(--accent);
}
.cat-chip-n {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-weight: 600;
}
.cat-chip.active .cat-chip-n { background: rgba(0,0,0,0.18); color: rgba(26, 21, 0, 0.7); }

.shop-tools { display: flex; gap: 12px; align-items: center; }
.search {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 14px;
  height: 42px;
  border-radius: 10px;
  color: var(--text-muted);
  transition: border-color .15s var(--ease);
}
.search:focus-within { border-color: var(--accent); color: var(--text); }
.search input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: var(--text);
}
.search input::placeholder { color: var(--text-muted); }
.sort {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
[data-density="compact"] .shop-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
[data-density="roomy"]   .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card.featured {
  border-color: rgba(245, 200, 75, 0.35);
  box-shadow: var(--accent-glow);
}
.product-icon-wrap {
  position: relative;
  height: 160px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.92);
  overflow: hidden;
}
.product-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6));
}
.product-icon-wrap svg { position: relative; z-index: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-cat-row { display: flex; gap: 6px; flex-wrap: wrap; }
.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.product-sub { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

.product-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.product-perk {
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}
.product-perk svg { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.product-perk.muted { color: var(--text-muted); padding-left: 22px; }

.product-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.product-price { display: flex; flex-direction: column; }
.product-old { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }
.product-now {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.product-ribbon {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--accent);
  color: #1a1500;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 4px;
}
.product-discount {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: var(--danger);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

/* Product modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 32px;
  animation: fade-in .2s var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  animation: pop-in .25s var(--ease-out);
}
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: white;
  border: 1px solid var(--border);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.modal-close:hover { background: rgba(0,0,0,0.6); }

.modal-hero {
  height: 200px;
  display: grid; place-items: center;
  color: white;
  position: relative;
}
.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,20,22,0.8));
}
.modal-hero svg { position: relative; z-index: 1; }

.modal-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-title { font-size: 26px; letter-spacing: -0.02em; }
.modal-sub { color: var(--text-2); margin: 0; }
.modal-perks { display: flex; flex-direction: column; gap: 10px; }
.modal-perks-h { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.modal-perk { display: flex; gap: 10px; align-items: flex-start; }
.modal-perk-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.modal-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.modal-price span { font-size: 22px; color: var(--text-muted); font-weight: 500; }

/* ===========================
   RULES
   =========================== */
.rules { padding: 56px 28px 0; }

/* Top quad cards */
.rules-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.rules-quad-card {
  position: relative;
  aspect-ratio: 16 / 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #0d0d10 0%, #1a1a1f 100%);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.rules-quad-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rules-quad-bg {
  position: absolute;
  left: -30px; top: 50%;
  transform: translateY(-50%);
  width: 180px; height: 180px;
  opacity: 0.55;
}
.rules-quad-bg img { width: 100%; height: 100%; object-fit: contain; }
.rules-quad-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, var(--surface) 90%);
}
.rules-quad-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--text);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rules-quad-label .rules-quad-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.rules-quad-sub {
  position: absolute;
  bottom: 14px; right: 28px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}
.rules-quad-icon {
  position: absolute;
  top: 14px; right: 18px;
  color: var(--text-dim);
  z-index: 2;
}

/* Tabs */
.rules-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.rules-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.rules-tab:hover { background: var(--surface); }
.rules-tab.active {
  background: var(--accent);
  color: #1a1500;
}
.rules-tab-n {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}
.rules-tab.active .rules-tab-n { background: rgba(0,0,0,0.18); }

/* Section banner */
.rules-section-banner {
  position: relative;
  padding: 32px 36px;
  margin-bottom: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.rules-section-bg {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 320px; height: 320px;
  opacity: 0.06;
  filter: grayscale(.2);
}
.rules-section-bg img { width: 100%; height: 100%; object-fit: contain; }
.rules-section-words { position: relative; z-index: 2; }
.rules-section-kicker {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.rules-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.rules-section-title .rules-section-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.rules-section-intro {
  position: relative;
  z-index: 2;
  color: var(--text-2);
  font-size: 14px;
  max-width: 480px;
  text-align: right;
}

/* Rule cards */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
[data-density="compact"] .rules-grid { grid-template-columns: repeat(5, 1fr); }
[data-density="roomy"]   .rules-grid { grid-template-columns: repeat(3, 1fr); }

.rule-card {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.rule-n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rule-n span { color: var(--accent); }
.rule-text {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}
.rule-tags {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  align-items: center;
}
.rule-tag {
  background: var(--accent);
  color: #1a1500;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}
.rule-tag-l {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1px;
}
.rule-tag-v {
  font-size: 12px;
  font-weight: 700;
}
.rule-tag-divider {
  width: 20px; height: 20px;
  opacity: 0.6;
}
.rule-tag-divider img { width: 100%; height: 100%; object-fit: contain; }

.rules-notice {
  margin-top: 32px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-color: rgba(245, 200, 75, 0.25);
  background: var(--accent-softer);
}
.rules-notice svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.rules-notice .link { color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ===========================
   CABINET
   =========================== */
.cabinet { padding: 56px 28px 0; }
.cabinet-greeting {
  display: flex; justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.cabinet-h {
  font-size: 48px;
  margin-top: 6px;
  letter-spacing: -0.03em;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cabinet-balance { grid-row: span 2; padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }

.card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.card-hd-l {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.card-hd-l svg { color: var(--accent); }

.cabinet-balance-v {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cabinet-balance-v span { color: var(--text-muted); font-weight: 500; font-size: 32px; }
.cabinet-balance-meta { font-size: 13px; color: var(--text-muted); }
.cabinet-balance-meta b { color: var(--text); }
.cabinet-balance-meta b.accent { color: var(--accent); }

.cabinet-amounts {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.amount-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.amount-chip:hover { border-color: var(--border-strong); }
.amount-chip.active {
  background: var(--accent);
  color: #1a1500;
  border-color: var(--accent);
}
.amount-custom {
  display: flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 100px;
}
.amount-custom input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  width: 100%;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text);
}

.cabinet-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s var(--ease);
}
.method-card:hover { border-color: var(--border-strong); }
.method-card.active {
  border-color: var(--accent);
  background: var(--accent-softer);
}
.method-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.method-card.active .method-icon { background: var(--accent); color: #1a1500; }
.method-text { flex: 1; }
.method-l { font-size: 13px; font-weight: 600; }
.method-s { font-size: 11px; color: var(--text-muted); }
.method-fee { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* Privileges in cabinet */
.cabinet-privs { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.cabinet-empty {
  padding: 40px 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  color: var(--text-muted);
}
.priv-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 8px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.priv-icon {
  grid-row: span 2;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
}
.priv-text { display: flex; flex-direction: column; }
.priv-t { font-weight: 600; }
.priv-s { font-size: 12px; }
.priv-time { text-align: right; }
.priv-time-l { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.priv-time-v { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.priv-bar-wrap { grid-column: 2 / -1; }
.priv-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.priv-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .4s var(--ease);
}

/* Server list */
.cabinet-server { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.server-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
  gap: 12px;
}
.server-row.is-soon { opacity: 0.6; border-style: dashed; }
.server-name { font-weight: 600; }
.server-ip { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.server-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* Recent */
.cabinet-recent { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.recent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
}
.recent-row:hover { background: var(--surface-2); }
.recent-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.recent-dot.ok { background: var(--success); }
.recent-dot.warn { background: var(--warn); }
.recent-dot.info { background: var(--info); }
.recent-text { flex: 1; font-size: 13.5px; }
.recent-amt { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.recent-amt.pos { color: var(--success); }
.recent-amt.neg { color: var(--text-2); }

/* ===========================
   PROFILE
   =========================== */
.profile { padding: 56px 28px 0; }

.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 40px;
  margin-bottom: 24px;
}
.profile-hero-bg {
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 360px; height: 360px;
  opacity: 0.08;
}
.profile-hero-bg img { width: 100%; height: 100%; object-fit: contain; }
.profile-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  color: #1a1500;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.profile-name {
  font-size: 36px;
  letter-spacing: -0.03em;
}
.profile-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 6px;
  font-size: 13px;
}
.profile-xp {
  margin-top: 14px;
  width: 100%;
  max-width: 420px;
}
.profile-xp-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.profile-xp-bar span {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.profile-xp-label {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
}
.profile-xp-label b { color: var(--accent); font-family: var(--font-mono); }

.profile-quick {
  display: flex; gap: 12px;
}
.profile-quick-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: left;
  min-width: 110px;
}
.profile-quick-v {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.profile-tabs {
  display: flex; gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.profile-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.profile-tab:hover { color: var(--text); background: var(--surface); }
.profile-tab.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(245, 200, 75, 0.2);
}

/* Profile summary cards */
.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.sum-card {
  padding: 18px 20px;
}
.sum-l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.sum-v {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.02em;
}
.sum-v span { font-size: 20px; color: var(--text-muted); font-weight: 500; }
.sum-v-sm { font-size: 22px; }
.sum-v.accent { color: var(--accent); }

/* Purchases table */
.purchases-card { padding: 6px 0 6px; }
.purchases-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.purchases-h-cell {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.purchase-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 14px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background .15s var(--ease);
}
.purchase-row:last-child { border-bottom: none; }
.purchase-row:hover { background: var(--surface-2); }
.purchase-cell { font-size: 14px; }
.purchase-name { display: flex; align-items: center; gap: 12px; }
.purchase-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.purchase-icon.in { background: rgba(74, 222, 128, 0.16); color: var(--success); }
.purchase-icon.out { background: rgba(245, 200, 75, 0.16); color: var(--accent); }
.purchase-amt { font-family: var(--font-mono); font-weight: 700; }
.purchase-amt.pos { color: var(--success); }
.purchase-amt.neg { color: var(--text-2); }

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.achievement {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
}
.achievement.locked { opacity: 0.55; }
.ach-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: white;
}
.achievement.locked .ach-icon { color: var(--text-muted); }
.ach-t { font-weight: 700; font-family: var(--font-display); letter-spacing: -0.01em; }
.ach-d { font-size: 12px; margin-top: 2px; }

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-card { padding: 22px 24px; }
.settings-h {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.settings-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.toggle {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--surface-3);
  border: none;
  position: relative;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.toggle span {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: transform .15s var(--ease);
}
.toggle.on { background: var(--accent); }
.toggle.on span { transform: translateX(18px); background: #1a1500; }

/* ===========================
   TOAST
   =========================== */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  z-index: 300;
  animation: toast-in .35s var(--ease-out);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.toast-ok { border-color: rgba(74, 222, 128, 0.35); }
.toast-ok svg { color: var(--success); }
.toast-warn { border-color: rgba(251, 191, 36, 0.4); }
.toast-warn svg { color: var(--warn); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ===========================
   RESPONSIVE ish
   =========================== */
@media (max-width: 1180px) {
  .hero-title { font-size: 64px; }
  .hero-inner { grid-template-columns: 1fr 360px; gap: 40px; }
  .featured-grid, .shop-grid, .rules-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  .featured-grid, .shop-grid, .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .cabinet-grid { grid-template-columns: 1fr; }
  .cabinet-balance { grid-row: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-servers-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-main { grid-template-columns: 1fr; }
  .news-cover { border-right: none; border-bottom: 1px solid var(--border); }
  .profile-hero-content { grid-template-columns: auto 1fr; }
  .profile-quick { grid-column: 1 / -1; }
  .profile-summary { grid-template-columns: 1fr 1fr; }
  .achievements-grid, .settings-grid { grid-template-columns: 1fr; }
  .rules-quad { grid-template-columns: repeat(2, 1fr); }
  .rules-section-banner { grid-template-columns: 1fr; }
  .rules-section-intro { text-align: left; }
  .rules-section-title { font-size: 42px; }
}
