/* EasyDropZone — shared styles (landing + dashboard) */
:root {
  --bg: #05060d;
  --bg-2: #0b0e19;
  --panel: rgba(20, 25, 40, 0.82);
  --panel-solid: #131827;
  --panel-2: #1a2033;
  --line: rgba(0, 255, 224, 0.16);
  --line-strong: rgba(0, 255, 224, 0.4);
  --accent: #00ffe0;
  --accent-ink: #001a17;
  --accent-soft: rgba(0, 255, 224, 0.1);
  --text: #dfe7fb;
  --muted: #8d9ab8;
  --danger: #ff5d6c;
  --warn: #ffb547;
  --ok: #37d67a;
  --violet: #a68bff;
  --radius: 14px;
  --display: 'Orbitron', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid var(--line-strong); background: transparent; color: var(--accent);
  padding: 0.55rem 1rem; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-soft); box-shadow: 0 0 14px rgba(0, 255, 224, 0.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #5effee; }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); box-shadow: none; }
.btn-danger { color: var(--danger); border-color: rgba(255, 93, 108, 0.45); }
.btn-danger:hover { background: rgba(255, 93, 108, 0.1); box-shadow: none; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; border-radius: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label, .label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.input, .field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 0.6rem 0.75rem; font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 255, 224, 0.12);
}
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 0.75rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
#toast-container { position: fixed; top: 16px; right: 16px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; max-width: min(340px, calc(100vw - 32px)); }
.toast {
  padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.86rem; color: #fff;
  background: #1b2133; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.25s ease-out;
}
.toast.success { border-color: rgba(55, 214, 122, 0.5); }
.toast.error { border-color: rgba(255, 93, 108, 0.6); }
.toast.leaving { animation: toast-out 0.3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- modal / drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(3, 5, 12, 0.75); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 1000; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 640px; background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 224, 0.06);
  animation: pop 0.2s ease-out;
}
.modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.modal-head h2 { margin: 0; font-family: var(--display); font-size: 1.05rem; color: var(--accent); letter-spacing: 0.04em; }
.modal-body { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 1rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.modal-foot .right { display: flex; gap: 0.6rem; margin-left: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--muted); white-space: nowrap;
}
.badge.status-research { color: #9fb3ff; border-color: rgba(159, 179, 255, 0.4); }
.badge.status-farming { color: var(--accent); border-color: var(--line-strong); }
.badge.status-waiting { color: var(--warn); border-color: rgba(255, 181, 71, 0.45); }
.badge.status-claimable { color: #0b1a10; background: var(--ok); border-color: var(--ok); }
.badge.status-claimed { color: var(--violet); border-color: rgba(166, 139, 255, 0.45); }
.badge.status-ended { color: #6b7590; border-color: rgba(107, 117, 144, 0.4); }
.badge.evm { color: #8fb4ff; border-color: rgba(143, 180, 255, 0.4); }
.badge.solana { color: #c79bff; border-color: rgba(199, 155, 255, 0.45); }
.badge.ok { color: var(--ok); border-color: rgba(55, 214, 122, 0.45); }
.badge.danger { color: var(--danger); border-color: rgba(255, 93, 108, 0.5); }
.badge.warn { color: var(--warn); border-color: rgba(255, 181, 71, 0.5); }
.mono { font-family: var(--mono); font-size: 0.85em; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: var(--radius); }
