/* NFC SaaS shared styles */
:root {
  --bg: #0f0f1a;
  --card: #1a1a2e;
  --accent: #c41e3a;
  --gold: #d4af37;
  --text: #f5f0e8;
  --muted: #a89f94;
  --success: #2ecc71;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: radial-gradient(ellipse at top, #2a1520 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--gold); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #8b0000);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
}

.card {
  background: rgba(26, 26, 46, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 9999;
  font-size: 14px;
}

.hidden { display: none !important; }

.icp-footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: var(--muted);
  font-size: 12px;
  user-select: none;
}

.icp-footer span { cursor: default; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  width: min(360px, 100%);
  text-align: center;
  animation: pop 0.35s ease;
}

@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes shake-hint {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.shake-icon { animation: shake-hint 1.2s ease-in-out infinite; display: inline-block; }
