/* styles.css */

:root {
  --bg: #020617;
  --bg-elevated: #020b26;
  --accent: #00f6ff;
  --accent-soft: rgba(0, 246, 255, 0.14);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --danger: #f97373;
  --success: #22c55e;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #0b1120, #020617);
  color: var(--text);
}

/* Top notification */
.top-banner {
  width: 100%;
  background: linear-gradient(90deg, #00f6ff, #4f46e5);
  color: #020617;
  padding: 8px 16px;
  font-size: 14px;
  text-align: center;
}

/* Layout */
.app-shell {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

/* Hero section */
.hero {
  padding: 24px 12px;
}

.logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f97316, #c026d3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.subtitle {
  margin: 0 0 16px;
  color: var(--text-soft);
  max-width: 460px;
  line-height: 1.5;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* Panel */
.panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(8, 47, 73, 0.8));
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

/* Steps */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.step-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.7);
}

.step.active .step-index {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.step.active .step-label {
  color: var(--text);
}

/* Cards */
.card {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.5);
  padding: 18px 16px 18px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.card-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-soft);
}

/* Buttons */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease-out;
}

.btn.primary {
  background: linear-gradient(120deg, #00f6ff, #4f46e5);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.5);
}

.btn.ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.full {
  width: 100%;
}

.btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field-label {
  font-size: 13px;
  color: var(--text-soft);
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

/* Pay summary */
.pay-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent),
    rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.7);
  margin-bottom: 14px;
}

.pay-summary .label {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pay-summary .value {
  font-size: 14px;
}

.status-pill {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: rgba(148, 163, 184, 0.15);
}

/* Claim mini history */
.mini-history {
  margin-top: 16px;
  border-top: 1px dashed rgba(148, 163, 184, 0.3);
  padding-top: 10px;
  font-size: 12px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mini-label {
  color: var(--text-soft);
}

.mini-value {
  color: var(--text);
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
}

/* Hint */
.hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Overlay & popup */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 40;
}

.popup {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, 92vw);
  border-radius: 18px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
  padding: 14px 16px 16px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.popup-header h3 {
  margin: 0;
  font-size: 16px;
}

.popup-body {
  font-size: 14px;
  color: var(--text-soft);
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #020617;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 13px;
  z-index: 60;
}

/* Helpers */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }

  .panel {
    order: -1;
  }
}
