/* ============ Robin's Acres — UI Styles ============ */

:root {
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 8px 32px rgba(20, 40, 30, 0.18);
  --text-main: #1d3324;
  --text-light: #f4fff7;
  --green: #2ecc71;
  --green-dark: #1f9d55;
  --gold: #f5b942;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  user-select: none;
}

#game-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

/* ============ Overlay layout ============ */

#ui-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none; /* canvas stays clickable; re-enable per element */
  z-index: 10;
}

#ui-overlay button,
#ui-overlay .balance-pill,
#ui-overlay .hud-left,
#plot-popup {
  pointer-events: auto;
}

/* ============ Glassmorphism base ============ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ============ Top HUD ============ */

#hud-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-lg);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe29a, #ffa751);
  display: grid;
  place-items: center;
  font-size: 24px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.15);
}

.wallet-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wallet-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(29, 51, 36, 0.65);
}

.wallet-address {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

#profile-chip { cursor: pointer; transition: transform 0.15s ease; }
#profile-chip:hover { transform: scale(1.03); }

.xp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.level-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd66b, #f59e0b);
  color: #5a3b00;
  white-space: nowrap;
}

.xp-bar {
  width: 74px;
  height: 6px;
  border-radius: 3px;
  background: rgba(29, 51, 36, 0.15);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #43d97b, #1f9d55);
  transition: width 0.4s ease;
}

/* Full-width progress bar (pre-TGE early-earn cap, etc.) */
.cap-bar {
  width: 100%;
  height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(29, 51, 36, 0.15);
  overflow: hidden;
}

.cap-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffd66b, #f59e0b);
  transition: width 0.4s ease;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.85), rgba(31, 157, 85, 0.85));
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-light);
  font-size: 15px;
  transition: transform 0.15s ease;
}

.balance-pill.bump { animation: bump 0.35s ease; }

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.bor-icon { font-size: 18px; }

.balance-text { display: flex; align-items: baseline; gap: 6px; }
.balance-text b { font-weight: 800; }

.balance-usd {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}

.withdraw-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background: rgba(67, 217, 123, 0.85);
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.withdraw-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.withdraw-btn.locked {
  background: rgba(120, 128, 124, 0.55);
  color: rgba(255, 255, 255, 0.75);
}

.withdraw-btn.claimable {
  background: linear-gradient(135deg, #ffd66b, #f59e0b);
  color: #5a3b00;
  animation: pulse-dot 1.1s infinite;
}

/* ============ Bottom Dock ============ */

#dock {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  pointer-events: auto;
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 78px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  color: var(--text-main);
}

.dock-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.30);
  box-shadow: 0 10px 26px rgba(20, 40, 30, 0.25);
}

.dock-btn:active { transform: translateY(-1px) scale(0.98); }

.dock-emoji { font-size: 24px; }

.dock-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============ Quest tracker ============ */

#quest-chip {
  position: absolute;
  top: 86px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: var(--radius-lg);
  max-width: 260px;
  pointer-events: auto;
  animation: quest-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#quest-chip.hidden { display: none; }

@keyframes quest-pop {
  from { opacity: 0; transform: translateX(-16px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

.quest-icon { font-size: 22px; }

.quest-info { display: flex; flex-direction: column; line-height: 1.25; }

.quest-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.quest-meta {
  font-size: 11px;
  font-weight: 700;
  color: rgba(29, 51, 36, 0.6);
}

/* ============ Plot Popup (Contextual UI) ============ */

#plot-popup {
  position: absolute;
  min-width: 190px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, calc(-100% - 18px));
  transition: opacity 0.18s ease, scale 0.18s ease;
  opacity: 1;
  scale: 1;
}

#plot-popup.hidden {
  opacity: 0;
  scale: 0.85;
  pointer-events: none !important;
}

.popup-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.popup-status {
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0 10px;
  color: rgba(29, 51, 36, 0.65);
}

.popup-status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}

.dot.empty    { background: #9aa5a0; }
.dot.growing  { background: var(--green); animation: pulse-dot 1.2s infinite; }
.dot.ready    { background: var(--gold); animation: pulse-dot 0.8s infinite; }
.dot.withered { background: #8a7355; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.7; }
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 46vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.popup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.popup-btn:hover { transform: scale(1.04); filter: brightness(1.06); }
.popup-btn:active { transform: scale(0.97); }

.popup-btn.plant {
  background: linear-gradient(135deg, #43d97b, #1f9d55);
  color: #fff;
}

.popup-btn.harvest {
  background: linear-gradient(135deg, #ffd66b, #f59e0b);
  color: #5a3b00;
}

.popup-btn.clear {
  background: linear-gradient(135deg, #ff8a65, #e64a19);
  color: #fff;
}

.popup-btn.info {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-main);
  border: 1px solid rgba(29, 51, 36, 0.12);
}

.popup-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none !important;
  filter: none !important;
}

.popup-btn.locked {
  background: rgba(150, 155, 152, 0.4);
  color: rgba(29, 51, 36, 0.55);
}

.popup-btn .crop-price {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.9;
}

/* Stats grid inside the profile panel */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.stat-cell {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(29, 51, 36, 0.08);
  font-size: 12px;
  color: var(--text-main);
}

.stat-cell b { display: block; font-size: 15px; }

/* Leaderboard rows */
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  color: var(--text-main);
}

.lb-row.you {
  background: linear-gradient(135deg, rgba(67, 217, 123, 0.35), rgba(31, 157, 85, 0.3));
  border: 1px solid rgba(31, 157, 85, 0.4);
  font-weight: 700;
}

.lb-rank { width: 26px; text-align: center; font-weight: 800; }
.lb-name { flex: 1; }
.lb-score { font-weight: 800; }

.popup-arrow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.55);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ============ Toasts ============ */

#toast-container {
  position: absolute;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.toast {
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: rgba(24, 40, 30, 0.82);
  color: var(--text-light);
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: toast-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.out { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px) scale(0.92); }
}

/* ============ Floating labels (timers / rewards) ============ */

#float-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grow-timer {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(20, 40, 30, 0.18);
  white-space: nowrap;
}

.grow-timer.ready-tag {
  color: #8a5b00;
  background: rgba(255, 224, 130, 0.9);
  animation: pulse-dot 0.9s infinite;
}

.grow-timer.warn-tag {
  color: #fff;
  background: rgba(230, 74, 25, 0.92);
  animation: pulse-dot 0.45s infinite;
}

.grow-timer.withered-tag {
  color: #f4efe8;
  background: rgba(107, 88, 68, 0.9);
}

.grow-timer.hungry-tag {
  color: #fff;
  background: rgba(211, 84, 0, 0.92);
  animation: pulse-dot 0.7s infinite;
}

.grow-timer.sign-tag {
  color: #5a3b00;
  background: rgba(255, 213, 128, 0.95);
  border-color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  padding: 6px 12px;
  transition: transform 0.15s ease;
}

.grow-timer.sign-tag:hover { transform: translate(-50%, -50%) scale(1.08); }

.reward-float {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 900;
  color: #ffd66b;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  animation: reward-rise 1.1s ease-out forwards;
  white-space: nowrap;
}

@keyframes reward-rise {
  0%   { opacity: 0; translate: 0 10px; scale: 0.6; }
  15%  { opacity: 1; scale: 1.15; }
  30%  { scale: 1; }
  100% { opacity: 0; translate: 0 -70px; }
}

.reward-float.neg {
  color: #ff8a80;
  font-size: 16px;
}

/* ============ HUD item pills ============ */

.item-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
}

.item-pill b { font-weight: 800; }

#weather-pill { transition: background 0.4s ease; }

/* ============ Market / Inventory panel ============ */

#panel-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 28, 20, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

#panel-overlay.hidden {
  opacity: 0;
  pointer-events: none !important;
}

.panel {
  width: min(400px, calc(100vw - 40px));
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  animation: panel-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid rgba(29, 51, 36, 0.1);
}

.panel-close {
  border: none;
  background: rgba(29, 51, 36, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.panel-close:hover { background: rgba(29, 51, 36, 0.18); }

#panel-body {
  padding: 12px 16px 16px;
  max-height: 62vh;
  overflow-y: auto;
}

/* Market Shop/Trade tabs */
.panel-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  position: sticky;
  top: 0;
}
.ptab {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid rgba(29, 51, 36, 0.1);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.14s ease, transform 0.12s ease;
}
.ptab:hover { transform: translateY(-1px); }
.ptab.active {
  background: linear-gradient(135deg, #43d97b, #1f9d55);
  color: #fff;
  border-color: transparent;
}

/* Crop picker: no seeds in stock */
.popup-btn.seedless {
  background: rgba(150, 155, 152, 0.4);
  color: rgba(29, 51, 36, 0.6);
}

.panel-section {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(29, 51, 36, 0.55);
  margin: 10px 4px 6px;
}

.panel-btn.sm {
  padding: 6px 8px;
  font-size: 11px;
}

/* Achievements grid */
.ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ach-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(29, 51, 36, 0.08);
  font-size: 12px;
  color: var(--text-main);
}

.ach-cell.locked { opacity: 0.45; filter: grayscale(0.8); }
.ach-cell .ach-emoji { font-size: 20px; }
.ach-cell b { display: block; }
.ach-cell small { color: rgba(29, 51, 36, 0.55); }

/* Land NFT panel */
.land-hero {
  text-align: center;
  padding: 14px 12px 16px;
  margin-bottom: 6px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(67, 217, 123, 0.28), rgba(245, 185, 66, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.land-emoji { font-size: 42px; }
.land-name { font-size: 18px; font-weight: 900; color: var(--text-main); margin-top: 2px; }
.land-collection { font-size: 12px; font-weight: 700; color: rgba(29, 51, 36, 0.6); margin-top: 3px; }
.land-owner {
  font-size: 12px;
  color: rgba(29, 51, 36, 0.7);
  margin-top: 6px;
  font-family: "Consolas", "Courier New", monospace;
}

.land-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 4px;
}

.land-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 51, 36, 0.2);
  background: rgba(255, 255, 255, 0.7);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  color: var(--text-main);
  box-sizing: border-box;
}

.land-input:focus { outline: 2px solid var(--green); border-color: transparent; }

/* Daily reward card */
#daily-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 28, 20, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: auto;
  z-index: 25;
}

#daily-overlay.hidden { display: none; }

.daily-card {
  width: min(300px, calc(100vw - 40px));
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  animation: panel-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.daily-emoji { font-size: 46px; animation: pulse-dot 1.4s infinite; }
.daily-title { font-size: 18px; font-weight: 800; color: var(--text-main); margin-top: 6px; }
.daily-streak { font-size: 13px; font-weight: 600; color: rgba(29, 51, 36, 0.6); margin: 4px 0 12px; }
.daily-amount {
  font-size: 24px; font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.daily-claim {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #43d97b, #1f9d55);
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.daily-claim:hover { transform: scale(1.03); filter: brightness(1.05); }
.daily-claim:active { transform: scale(0.98); }

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(29, 51, 36, 0.08);
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
}

.panel-item small {
  display: block;
  font-size: 11px;
  color: rgba(29, 51, 36, 0.55);
  font-weight: 500;
}

.panel-emoji { font-size: 24px; }

.panel-actions { display: flex; gap: 6px; }

.panel-btn {
  padding: 7px 12px;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(29, 51, 36, 0.1);
  color: var(--text-main);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.panel-btn.strong {
  background: linear-gradient(135deg, #43d97b, #1f9d55);
  color: #fff;
}

.panel-btn:hover:not(:disabled) { transform: scale(1.05); filter: brightness(1.05); }
.panel-btn:disabled { opacity: 0.45; cursor: default; }

.panel-note {
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(29, 51, 36, 0.6);
  text-align: center;
  font-weight: 500;
}

/* ============ Entry Gate (wallet connect + Land NFT check) ============ */

#entry-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(245, 185, 66, 0.18), transparent 60%),
    linear-gradient(180deg, #a7e0f4 0%, #d7f3e4 40%, #eef8ef 75%, #ffffff 100%);
  transition: opacity 0.45s ease;
}

#entry-gate.closing { opacity: 0; pointer-events: none; }

.entry-card {
  width: min(380px, calc(100vw - 40px));
  padding: 34px 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.entry-logo {
  width: 64px; height: 64px; margin: 0 auto 10px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.12);
}
.entry-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.entry-title { font-size: 24px; font-weight: 900; color: var(--text-main); letter-spacing: -0.01em; }
.entry-sub { font-size: 13.5px; color: rgba(29, 51, 36, 0.7); font-weight: 600; margin: 8px 0 20px; min-height: 34px; }

.entry-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.entry-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.entry-btn:disabled { opacity: 0.6; cursor: default; }
.entry-btn.primary { background: linear-gradient(135deg, #43d97b, var(--green-dark)); color: #fff; }
.entry-btn.ghost { background: rgba(255, 255, 255, 0.5); color: var(--text-main); border: 1px solid rgba(29, 51, 36, 0.12); }

.entry-result {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}
.entry-result.hidden { display: none; }
.entry-result.ok { background: rgba(46, 204, 113, 0.18); color: var(--green-dark); }
.entry-result.warn { background: rgba(230, 74, 25, 0.14); color: #c0432a; }
.entry-result.info { background: rgba(245, 185, 66, 0.2); color: #a06b06; }

.entry-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0;
  color: rgba(29, 51, 36, 0.4);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.entry-divider::before, .entry-divider::after { content: ''; flex: 1; height: 1px; background: rgba(29, 51, 36, 0.15); }

.entry-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}
.entry-link.hidden { display: none; }

.entry-note {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(29, 51, 36, 0.55);
  font-weight: 500;
}

/* ============ Small screens ============ */

@media (max-width: 640px) {
  .balance-text { font-size: 13px; }
  .dock-btn { min-width: 62px; padding: 8px 10px; }
  .dock-label { font-size: 11px; }
  .wallet-label { display: none; }
  .item-pill { padding: 7px 9px; font-size: 12px; }
}
