/* Croptopia dashboard styles — reuses the landing's tokens from /css/style.css */
.app-body { min-height: 100vh; }
.app-main { padding-block: 40px 96px; }

.app-banner {
  background: #fff6df; border: 1px solid #e7cf8f; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 30px; font-size: 14px; color: #6b5420;
}

.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; flex-wrap: wrap; }
.app-title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.04em; line-height: 1.08; }
.app-sub { max-width: 540px; margin-top: 12px; }

.wallet-chip { display: flex; flex-direction: column; gap: 6px; background: linear-gradient(165deg,#fcfbf5,#eef1e4); border: 1px solid #cdd5bc; border-radius: 11px; padding: 14px 18px; min-width: 190px; }
.chip-row { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.chip-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f9d52; }
.chip-bal { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; }
.chip-bal img { image-rendering: auto; }

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 30px; }
.stat-band .sb { background: linear-gradient(170deg,#fcfbf5,#eef1e4); border: 1px solid #cdd5bc; border-radius: 12px; padding: 20px; }
.sb-ic { display: inline-flex; margin-bottom: 10px; }
.sb-ic img { image-rendering: auto; filter: drop-shadow(0 3px 4px rgba(40,60,40,.18)); }
.stat-band dt { font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.stat-band dd { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.03em; margin-top: 4px; }

.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 44px; }
.open-card, .harvest-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(165deg,#fcfbf5,#e9eddd); border: 1px solid #cdd5bc; border-radius: 14px; padding: 26px 28px; }
.harvest-card { background: linear-gradient(165deg,#21402f,#17301f); color: #f2ead2; border-color: #2c4a37; }
.open-card h2, .harvest-card h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; }
.open-card p { font-size: 13px; margin-top: 5px; max-width: 320px; }
.harvest-card p { font-size: 13px; margin-top: 5px; max-width: 320px; color: #c9d6bd; }
.harvest-amt { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-weight: 700; font-size: 17px; }

.plots-panel { border-top: 1px solid #d7ddc8; padding-top: 30px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.panel-head h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; }

.my-plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.empty-note { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; border: 1px dashed #c9d1b5; border-radius: 12px; }

.plot-card { position: relative; background: linear-gradient(165deg,#fcfbf5,#e9eddd); border: 1px solid #cdd5bc; border-radius: 12px; padding: 12px; transition: transform .2s, box-shadow .2s; }
.plot-card:hover { transform: translateY(-4px); box-shadow: 0 14px 24px rgba(40,60,40,.14); }
.plot-lv { position: absolute; top: 16px; left: 16px; z-index: 2; font: 10px var(--mono); letter-spacing: .07em; background: #203f32; color: #f1e3bd; padding: 3px 8px; border-radius: 5px; }
.plot-img { width: 100%; height: auto; image-rendering: auto; filter: drop-shadow(0 8px 11px rgba(40,60,40,.18)); }
.plot-meta { display: flex; justify-content: space-between; align-items: center; margin: 6px 4px 12px; }
.plot-id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plot-status { font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid #cdd5bc; border-radius: 5px; padding: 2px 7px; }
.plot-status.on { color: #2f7a41; border-color: #9fcaa7; background: #eaf5ec; }
.plot-actions { display: flex; gap: 8px; }
.btn-sm { flex: 1; min-height: 40px; border: 1px solid #c3cdb0; background: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background .15s, transform .15s; }
.btn-sm:hover { background: #f3f5ea; }
.btn-sm.btn-up { background: #203f32; color: #f2ead2; border-color: #203f32; }
.btn-sm.btn-up:hover { background: #2b5243; }
.btn-sm:disabled { opacity: .5; cursor: not-allowed; }
.up-note { display: block; margin-top: 9px; font: 11px var(--mono); color: var(--muted); text-align: center; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #203f32; color: #f2ead2; padding: 13px 22px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 90vw; }
.toast[data-kind="err"] { background: #7a2e2e; }

@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(2,1fr); } .action-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stat-band { grid-template-columns: 1fr; } .open-card, .harvest-card { flex-direction: column; align-items: flex-start; } }

/* XP progress on plot cards */
.xp-row { margin: 0 4px 12px; }
.xp-label { display: block; font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.xp-bar { height: 7px; background: #dfe4d3; border-radius: 6px; overflow: hidden; }
.xp-fill { display: block; height: 100%; width: 0; background: #b89a3e; border-radius: 6px; transition: width .4s; }
.xp-fill.ready { background: #3f9d52; }
