/* ═══════════════════════════════════════════════════════════════════════════
   XRVG Claim Page — Styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:          #0a0a0f;
  --bg-card:     #12121a;
  --bg-card-alt: #16161f;
  --border:      #1e1e2e;
  --border-glow: #2a2a3e;
  --text:        #e4e4ef;
  --text-muted:  #7a7a8e;
  --text-dim:    #0d9668;
  --accent:      #10b981;
  --accent-glow: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --green:       #10b981;
  --green-soft:  rgba(16, 185, 129, 0.12);
  --red:         #ef4444;
  --red-soft:    rgba(239, 68, 68, 0.12);
  --orange:      #f59e0b;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-tap-highlight-color: transparent;
}

/* ─── Background glow ─── */
.bg-glow {
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Navigation ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px; /* Minimum tap target for mobile */
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.btn-connect {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-connect:hover {
  background: var(--bg-card-alt);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.btn-connect.connected {
  border-color: var(--green);
  color: var(--green);
}

.btn-network {
  background: var(--bg-card);
  color: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.btn-network:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.btn-network.added {
  border-color: var(--green);
  color: var(--green);
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  z-index: 1;
}

.nft-showcase {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.nft-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow:
    0 0 30px rgba(16, 185, 129, 0.15),
    0 0 60px rgba(16, 185, 129, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nft-frame:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 0 40px rgba(16, 185, 129, 0.25),
    0 0 80px rgba(16, 185, 129, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(16, 185, 129, 0.5);
}

.nft-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-glow);
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 50%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Claim Card ─── */
.claim-section {
  display: flex;
  justify-content: center;
  padding: 0 24px 40px;
  position: relative;
  z-index: 1;
}

.claim-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.claim-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0.5;
}

.card-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.card-state.active {
  display: flex;
}

.card-state h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.card-state p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.eligible-icon {
  background: var(--green-soft);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.not-eligible-icon {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.2);
  color: var(--orange);
}

.success-icon {
  background: var(--green-soft);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.error-icon {
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--red);
}

/* ─── Allocation Grid ─── */
.allocation-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  margin: 8px 0;
}

.allocation-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.allocation-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.allocation-value {
  font-size: 2rem;
  font-weight: 800;
}

.allocation-divider {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ─── Claim Note ─── */
.claim-note {
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

/* ─── Transaction Link ─── */
.tx-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-glow);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}
.tx-link:hover {
  color: #6ee7b7;
}

/* ─── Success Details ─── */
.success-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 32px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.success-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.success-value {
  font-size: 2.5rem;
  font-weight: 800;
}

/* ─── Owned NFT Display ─── */
.owned-nft-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.owned-nft-image-frame {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.15), 0 0 60px rgba(52, 211, 153, 0.05);
  flex-shrink: 0;
}

.owned-nft-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owned-nft-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.owned-nft-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.owned-nft-info h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.owned-nft-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
}

.owned-nft-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.owned-nft-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.owned-nft-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.owned-nft-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.owned-nft-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.owned-nft-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.owned-nft-meta-row:last-child {
  border-bottom: none;
}

.owned-nft-meta-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.owned-nft-meta-value {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 600;
}

.owned-nft-contract {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ─── Send Value Section ─── */
.send-section {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.send-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--bg-card-alt);
  transition: background 0.2s;
  user-select: none;
}

.send-header:hover {
  background: var(--border);
}

.send-header-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.send-chevron {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.send-chevron.rotated {
  transform: rotate(180deg);
}

.send-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.send-panel.open {
  max-height: 400px;
  padding: 16px 20px 20px;
}

.send-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.send-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.send-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.send-input:focus {
  border-color: var(--accent);
}

.send-input::placeholder {
  color: var(--text-dim);
}

/* Remove number input spinners */
.send-input[type="number"]::-webkit-inner-spin-button,
.send-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.send-input[type="number"] {
  -moz-appearance: textfield;
}

.send-amount-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.send-amount-input {
  padding-right: 60px;
}

.send-max-btn {
  position: absolute;
  right: 8px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}

.send-max-btn:hover {
  background: rgba(16, 185, 129, 0.25);
}

.send-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.send-btn {
  width: 100%;
  justify-content: center;
}

.send-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}

/* ─── Spinner ─── */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Stats Bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 28px 16px;
  max-width: 800px;
  margin: 0 auto 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* ─── Contract Address ─── */
.contract-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}

.contract-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contract-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.contract-address-row:hover {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.contract-address {
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.contract-copy-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color 0.2s;
}

.contract-address-row:hover .contract-copy-icon {
  color: var(--accent);
}

.contract-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── Admin Panel ─── */
.admin-panel {
  max-width: 800px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #ef4444;
}

.admin-header h2 {
  font-size: 1.4rem;
  margin: 0;
  color: #ef4444;
}

.admin-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
}

.admin-hint code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.admin-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.admin-input:focus {
  outline: none;
  border-color: #ef4444;
}

.admin-input::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.admin-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.admin-textarea:focus {
  outline: none;
  border-color: #ef4444;
}

.admin-textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.admin-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 8px 0;
}

.admin-summary-divider {
  color: var(--border);
}

.admin-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  align-self: flex-start;
}

.admin-btn:hover {
  background: linear-gradient(135deg, #f87171, #ef4444) !important;
}

.admin-btn-danger {
  background: linear-gradient(135deg, #991b1b, #7f1d1d) !important;
}

.admin-btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
}

.admin-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.admin-header-sm {
  margin-bottom: 4px;
}

.admin-header-sm h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #ef4444;
}

.admin-warning {
  font-size: 0.8rem;
  color: #ef4444;
  opacity: 0.8;
  margin: 0 0 12px;
}

.admin-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.admin-status.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
}

.admin-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.admin-status.processing {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

/* ─── Info Cards ─── */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.info-card:hover {
  border-color: var(--border-glow);
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-xs);
  color: var(--accent-glow);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card strong {
  color: var(--text);
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
}

/* ─── Responsive ─── */

/* Tablets */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .claim-card { padding: 40px 28px; }
  .info-section { grid-template-columns: 1fr; max-width: 480px; }
  .stats-bar { padding: 24px 12px; max-width: 480px; }

  .owned-nft-stats {
    gap: 16px;
    padding: 16px 20px;
  }
  .owned-nft-stat-value {
    font-size: 1.5rem;
  }
  .owned-nft-stat-label {
    font-size: 0.6rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  nav {
    padding: 12px 16px;
  }

  .nav-logo { width: 30px; height: 30px; }
  .nav-title { font-size: 1.1rem; }

  .btn-connect span { display: none; }
  .btn-connect { padding: 10px 12px; }
  .btn-network span { display: none; }
  .btn-network { padding: 10px 12px; }
  .nav-actions { gap: 8px; }

  .hero {
    padding: 48px 16px 24px;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-badge { font-size: 0.65rem; padding: 5px 12px; margin-bottom: 16px; }

  .claim-section { padding: 0 16px 32px; }
  .claim-card {
    padding: 32px 20px;
    border-radius: 12px;
  }
  .card-state h2 { font-size: 1.2rem; }
  .card-state p { font-size: 0.9rem; }
  .card-icon { width: 64px; height: 64px; }
  .card-icon svg { width: 36px; height: 36px; }

  .allocation-grid {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .allocation-divider { transform: rotate(90deg); }
  .allocation-value { font-size: 1.5rem; }
  .allocation-label { font-size: 0.7rem; }

  .btn-primary { padding: 12px 24px; font-size: 0.95rem; }
  .btn-large { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 16px;
    margin: 0 16px 32px;
    border-radius: 12px;
  }
  .stat { border-right: none; border-bottom: none; }
  .stat-value { font-size: 1.1rem; }

  .owned-nft-image-frame {
    width: 140px;
    height: 140px;
    border-radius: 12px;
  }
  .owned-nft-info h2 { font-size: 1.25rem; }
  .owned-nft-stats {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .owned-nft-stat {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    justify-content: space-between;
  }
  .owned-nft-stat:last-child {
    border-bottom: none;
  }
  .owned-nft-stat-divider {
    display: none;
  }
  .owned-nft-stat-value {
    font-size: 1.3rem;
  }
  .owned-nft-stat-label {
    font-size: 0.7rem;
  }
  .owned-nft-meta-row {
    padding: 10px 16px;
  }
  .owned-nft-meta-label,
  .owned-nft-meta-value {
    font-size: 0.75rem;
  }

  .send-header { padding: 12px 16px; }
  .send-panel.open { padding: 14px 16px 16px; }
  .send-input { padding: 10px 12px; font-size: 0.85rem; }

  .info-section {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin-bottom: 48px;
    gap: 12px;
  }
  .info-card { padding: 20px 18px; border-radius: 10px; }
  .info-card h3 { font-size: 0.95rem; }
  .info-card p { font-size: 0.825rem; }
  .info-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .info-icon svg { width: 18px; height: 18px; }

  .success-details { padding: 16px 20px; }
  .success-value { font-size: 2rem; }

  footer { padding: 20px 16px; font-size: 0.75rem; }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.5rem; }
  .claim-card { padding: 24px 16px; }
  .allocation-value { font-size: 1.3rem; }
  .btn-large { padding: 12px 24px; font-size: 0.95rem; }

  .owned-nft-image-frame {
    width: 120px;
    height: 120px;
  }
  .owned-nft-stat-value {
    font-size: 1.1rem;
  }
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-state.active {
  animation: fadeIn 0.3s ease;
}

/* ─── NFT Lightbox ─── */
.owned-nft-image-frame {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.owned-nft-image-frame:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.25), 0 0 80px rgba(52, 211, 153, 0.1);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-image {
  max-width: 80vmin;
  max-height: 80vmin;
  width: auto;
  height: auto;
  border-radius: 20px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 60px rgba(52, 211, 153, 0.2), 0 0 120px rgba(52, 211, 153, 0.08);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-caption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.lightbox-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.lightbox-token-id {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ─── Wallet Prompt Modal ─── */
.wallet-prompt {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 380px;
  width: 90vw;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .wallet-prompt {
  transform: scale(1);
}

.wallet-prompt-icon {
  margin-bottom: 16px;
}

.wallet-prompt-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.wallet-prompt-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0 0 20px;
}

.wallet-prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-wallet:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-wallet-alt {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.wallet-prompt-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  line-height: 1.4;
}
