/* ============================================
   FLIP SHIPS 4.7.1 — TRACKER STYLES
   ============================================ */

:root {
  --bg-deep: #050810;
  --bg-panel: rgba(12, 20, 35, 0.65);
  --bg-panel-solid: #0a1220;
  --bg-modal: rgba(10, 18, 32, 0.96);
  --border: rgba(0, 220, 255, 0.18);
  --border-bright: rgba(0, 220, 255, 0.45);
  --cyan: #00e5ff;
  --cyan-soft: #4dd0e1;
  --amber: #ffb74d;
  --amber-bright: #ffa726;
  --green: #00e676;
  --red: #ff5252;
  --purple: #ba68c8;
  --pink: #ec407a;
  --text: #e8f4ff;
  --text-dim: #7a8ba0;
  --text-faint: #4a5a70;
  --grid: rgba(0, 220, 255, 0.04);
}

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

html, body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============== ANIMATED BACKGROUND ============== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 229, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 167, 38, 0.05), transparent 50%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent 0, transparent 2px,
    rgba(0, 229, 255, 0.015) 2px, rgba(0, 229, 255, 0.015) 4px);
  pointer-events: none;
  z-index: 1;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.star {
  position: absolute;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 0.6; } }

/* ============== LAYOUT ============== */
.container {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 40px 80px;
}

/* ============== HEADER ============== */
header {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 200px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.logo-block { display: flex; align-items: center; gap: 18px; }

.logo-mark {
  width: 56px; height: 56px;
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3), inset 0 0 20px rgba(0, 229, 255, 0.1);
}

.logo-mark::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid var(--cyan-soft);
}

.logo-mark span {
  transform: rotate(-45deg);
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--cyan);
  letter-spacing: 1px;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 4px;
}

.subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.subtitle .accent { color: var(--amber); }

.status-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.status-pill {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}

.status-pill.live { color: var(--green); border-color: rgba(0, 230, 118, 0.3); }
.status-pill.offline { color: var(--red); border-color: rgba(255, 82, 82, 0.3); }

.status-pill .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.status-pill.offline .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }

@keyframes pulse { 50% { opacity: 0.4; } }

/* ============== USER NAME INPUT ============== */
.user-input-wrap {
  display: flex; align-items: center; gap: 10px;
}

.user-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 10px;
  width: 120px;
  letter-spacing: 1px;
}

.user-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

/* ============== DASHBOARD ============== */
.dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr 1fr; }
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 22px 24px;
  position: relative;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.stat-card.amber::before { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.stat-card.green::before { background: var(--green); box-shadow: 0 0 12px var(--green); }

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-value .unit {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 400;
}

.stat-card.main .stat-value {
  font-size: 24px;
  margin-bottom: 12px;
}

.global-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.global-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  width: 0%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--cyan);
  position: relative;
}

.global-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.global-bar-fill.complete {
  background: linear-gradient(90deg, var(--green), #69f0ae);
  box-shadow: 0 0 12px var(--green);
}

/* ============== CATEGORY ============== */
.category { margin-bottom: 50px; }

.category-header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}

.category-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--amber); letter-spacing: 1px;
}

.category-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600; font-size: 16px;
  letter-spacing: 3px; text-transform: uppercase;
}

.category-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-dim); letter-spacing: 1.5px;
}

.category-meta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-dim); letter-spacing: 1px;
}

/* ============== ITEM GRID ============== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 18px 20px 16px;
  position: relative;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  opacity: 0;
  animation: itemIn 0.6s ease forwards;
  cursor: pointer;
}

@keyframes itemIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.item:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.08);
}

.item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.item:hover::before { opacity: 0.8; }

.item.complete {
  border-color: rgba(0, 230, 118, 0.4);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.06), var(--bg-panel));
}

.item.complete::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 1;
}

.item.complete .item-name { color: var(--green); }

.item-corner {
  position: absolute; top: 6px; right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--text-faint); letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}

.rarity-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}

.item.complete .item-corner { color: var(--green); }

.item-icon {
  font-size: 22px;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  margin-right: 4px;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  margin-top: 4px;
}

.item-name-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }

.item-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.item-short {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  margin-top: 2px;
  font-style: italic;
}

.item-count {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--cyan);
  white-space: nowrap;
  transition: color 0.3s, transform 0.2s;
}

.item-count .total {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 13px;
}

.item.complete .item-count { color: var(--green); }

.item-count.bump { transform: scale(1.15); }

.progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  width: 0%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  box-shadow: 0 0 8px var(--cyan);
}

.item.complete .progress-fill {
  background: linear-gradient(90deg, var(--green), #69f0ae);
  box-shadow: 0 0 10px var(--green);
}

.controls {
  display: flex; gap: 6px; align-items: center;
}

.ctrl-btn {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.ctrl-btn:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.ctrl-btn:active:not(:disabled) { transform: scale(0.92); }
.ctrl-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.ctrl-btn.minus { color: var(--amber); }
.ctrl-btn.minus:hover:not(:disabled) {
  background: rgba(255, 167, 38, 0.1);
  border-color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 167, 38, 0.3);
}

.ctrl-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 6px 8px;
  height: 32px;
  -moz-appearance: textfield;
}

.ctrl-input::-webkit-outer-spin-button,
.ctrl-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

.ctrl-input:focus {
  outline: none; border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 0 1px var(--cyan);
}

.ctrl-quick {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 0 8px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-quick:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.item-info-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px; height: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.item-info-btn:hover {
  color: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 167, 38, 0.3);
}

/* ============== DETAIL MODAL ============== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  background: var(--bg-modal);
  border: 1px solid var(--border-bright);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
}

.modal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

.modal::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--cyan));
}

.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.modal-rarity {
  position: absolute; top: 18px; right: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
}

.modal-icon {
  font-size: 32px;
  color: var(--cyan);
  filter: drop-shadow(0 0 10px var(--cyan));
  margin-bottom: 8px;
  display: inline-block;
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 36px; height: 36px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-bright); }

.modal-section {
  margin-bottom: 28px;
}

.modal-section:last-child { margin-bottom: 0; }

.modal-section h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section h3::before {
  content: '▸';
  color: var(--cyan);
}

.modal-description {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* Submission box */
.submission-box {
  background: rgba(255, 167, 38, 0.06);
  border: 1px solid rgba(255, 167, 38, 0.25);
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  line-height: 1.8;
}

.submission-box .mission-name {
  color: var(--amber);
  font-style: italic;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 1px;
}

.submission-box .req-line { color: var(--text); }
.submission-box .req-num { color: var(--amber); font-weight: 700; }
.submission-box .req-total {
  color: var(--cyan);
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dotted var(--border);
}

/* Location cards */
.location-list { display: flex; flex-direction: column; gap: 12px; }

.location-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 14px 16px;
  position: relative;
  transition: border-color 0.2s;
}

.location-card:hover { border-color: var(--border-bright); }

.location-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--type-color, var(--cyan));
}

.location-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}

.location-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
}

.location-system {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.location-system .body { color: var(--cyan-soft); }

.location-type-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.location-details {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.location-wiki {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px dotted var(--cyan);
  display: inline-block;
  padding-bottom: 1px;
}

.location-wiki:hover { color: var(--amber); border-color: var(--amber); }

/* Tips */
.tips-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}

.tips-list li {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}

.tips-list li::before {
  content: '◢';
  position: absolute;
  left: 0; top: 2px;
  color: var(--amber);
  font-size: 11px;
}

/* Notes textarea */
.notes-area {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}

.notes-area:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

/* ============== ACTION BAR ============== */
.action-bar {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.action-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.action-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.action-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(255, 82, 82, 0.05);
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.2);
}

.action-btn.export:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* ============== TOAST ============== */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-panel-solid);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 14px 24px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; gap: 10px;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.toast.info { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 229, 255, 0.3); }
.toast.warn { color: var(--amber); border-color: var(--amber); box-shadow: 0 0 20px rgba(255, 167, 38, 0.3); }

.toast .icon {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}

/* ============== CONFETTI ============== */
.confetti {
  position: fixed;
  width: 6px; height: 6px;
  pointer-events: none;
  z-index: 199;
  animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

/* ============== FOOTER ============== */
footer {
  margin-top: 30px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ============== MOBILE ============== */
@media (max-width: 600px) {
  .container { padding: 20px 16px 40px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 20px; letter-spacing: 2px; }
  .dashboard { grid-template-columns: 1fr; }
  .modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .modal-header, .modal-body { padding-left: 18px; padding-right: 18px; }
}
