/* ============================================
   CLAUDE CODE CLUB - Terminal UI Styles
   CRT/Terminal Aesthetic
   ============================================ */

:root {
  --term-bg: #050505;
  --term-text: #ffffff;
  --term-dim: #333333;
  --term-highlight: #ffffff;
  --secondary: #cccccc;
  --accent: #da7756;
  --claude-orange: #da7756;
  --scanline: rgba(255, 255, 255, 0.1);
  --glass: rgba(20, 20, 20, 0.9);
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--term-dim) var(--term-bg);
}

body {
  background-color: #000;
  background-image:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(20, 20, 20, 0.25) 50%),
    linear-gradient(90deg, rgba(50, 50, 50, 0.03), rgba(50, 50, 50, 0.03), rgba(50, 50, 50, 0.03));
  background-size: 100% 2px, 3px 100%;
  color: var(--term-text);
  font-family: "Cascadia Code", "IBM Plex Mono", Consolas, monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 14px;
}

/* CRT Overlay Effect */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% { opacity: 0.027906; }
  5% { opacity: 0.048953; }
  10% { opacity: 0.013483; }
  15% { opacity: 0.052953; }
  20% { opacity: 0.008953; }
  25% { opacity: 0.078953; }
  30% { opacity: 0.003483; }
  35% { opacity: 0.054953; }
  40% { opacity: 0.024953; }
  45% { opacity: 0.034953; }
  50% { opacity: 0.004953; }
  55% { opacity: 0.038953; }
  60% { opacity: 0.073483; }
  65% { opacity: 0.040953; }
  70% { opacity: 0.016953; }
  75% { opacity: 0.064953; }
  80% { opacity: 0.032953; }
  85% { opacity: 0.002953; }
  90% { opacity: 0.062953; }
  95% { opacity: 0.024953; }
  100% { opacity: 0.054953; }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--term-text);
}

/* ============================================
   App Container
   ============================================ */

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* ============================================
   Header
   ============================================ */

.header {
  background: #111;
  border: 2px solid var(--term-dim);
  border-bottom: none;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.header-content {
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-social {
  color: var(--term-text);
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.header-social:hover {
  opacity: 1;
  color: var(--accent);
}

.logo {
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-bracket {
  color: var(--accent);
}

.logo-text {
  color: var(--term-text);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--term-text);
}

.nav-link.active {
  color: var(--accent);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.625rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================
   State Management
   ============================================ */

.state {
  display: none;
  width: 100%;
}

.state.active {
  display: block;
}

/* ============================================
   Terminal Window
   ============================================ */

.terminal-window {
  background: var(--term-bg);
  border: 2px solid var(--term-dim);
  border-top: none;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

.terminal-window.wide {
  max-width: none;
}

.terminal-header {
  background: #111;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--term-dim);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #333;
}

.terminal-dot.red { background: #333; }
.terminal-dot.yellow { background: #777; }
.terminal-dot.green { background: #ccc; }

.terminal-title {
  margin-left: 10px;
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.terminal-body {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Command Line Header
   ============================================ */

.command-line {
  margin-bottom: 30px;
  border-bottom: 1px dashed var(--term-dim);
  padding-bottom: 20px;
}

.prompt {
  color: var(--accent);
  margin-right: 8px;
}

.command-text {
  color: var(--secondary);
}

.page-title {
  color: var(--term-text);
  font-size: 1.5rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  margin: 10px 0;
  font-weight: normal;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: var(--term-text);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.page-version {
  color: #666;
  font-size: 0.75rem;
}

/* ============================================
   ASCII Logo
   ============================================ */

.ascii-logo {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px dashed var(--term-dim);
}

.logo-art {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 0 10px rgba(218, 119, 86, 0.4);
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0;
  white-space: pre;
  text-align: left;
  display: inline-block;
}

.logo-words {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 8px;
  font-size: 0.875rem;
  letter-spacing: 3px;
  color: var(--term-text);
}

/* ============================================
   Invite Gate
   ============================================ */

.invite-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px;
}

.invite-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  width: 100%;
}

.invite-gate .terminal-line {
  font-size: 0.9rem;
  text-align: center;
}

.invite-gate .terminal-line.warning {
  color: var(--warning);
}

.invite-input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 20px;
}

.invite-label {
  font-size: 0.875rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.invite-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 15px;
  background: #000;
  border: 2px solid var(--term-dim);
  color: var(--term-text);
  font-family: inherit;
  font-size: 0.875rem;
  text-align: center;
  transition: border-color 0.2s;
}

.invite-input:focus {
  outline: none;
  border-color: var(--accent);
}

.invite-input::placeholder {
  color: #444;
}

.invite-info {
  margin-top: 20px;
  text-align: center;
}

.invite-info p {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.invite-info code {
  background: #222;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}

.invite-steps {
  text-align: left;
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid #333;
}

.invite-steps .step {
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.invite-steps .step:last-child {
  margin-bottom: 0;
}

.invite-steps .step-num {
  color: var(--accent);
  font-weight: bold;
  min-width: 20px;
}

.invite-steps code {
  font-size: 0.7rem;
  word-break: break-all;
}

.github-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: #333;
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid #444;
  transition: all 0.2s;
}

.github-link:hover {
  background: #444;
  border-color: var(--accent);
}

/* ============================================
   Welcome Content
   ============================================ */

.welcome-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  flex: 1;
}

@media (max-width: 768px) {
  .welcome-content {
    grid-template-columns: 1fr;
  }
}

.clawd-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clawd-preview {
  width: 200px;
  height: 200px;
  background: #000;
  border: 2px solid var(--term-dim);
  position: relative;
  overflow: hidden;
}

.clawd-preview canvas {
  width: 100%;
  height: 100%;
}

.artwork-showcase {
  width: 256px;
  height: 256px;
  overflow: hidden;
}

.artwork-showcase iframe {
  width: 512px;
  height: 512px;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.preview-text {
  font-size: 4rem;
  font-weight: bold;
  color: var(--term-text);
  opacity: 0.3;
  animation: questionPulse 2s infinite;
}

@keyframes questionPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.preview-label {
  margin-top: 15px;
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.typewriter {
  margin-bottom: 10px;
}

.terminal-line {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 5px;
}

.terminal-line .prompt {
  color: var(--accent);
}

.terminal-line.success {
  color: var(--success);
}

.info-block {
  background: rgba(10, 10, 10, 0.5);
  padding: 15px 20px;
  border-left: 3px solid var(--accent);
}

.info-block p {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.6;
}

.info-block p:last-child {
  margin-bottom: 0;
}

.info-block .dim {
  color: #555;
  font-size: 0.75rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn, button.sys-btn, a.sys-btn {
  background: transparent;
  border: 1px solid var(--term-dim);
  color: var(--term-text);
  padding: 12px 30px;
  font-family: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:hover, button.sys-btn:hover, a.sys-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.btn-primary, button.sys-btn.primary, a.sys-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn-primary:hover, button.sys-btn.primary:hover, a.sys-btn.primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(218, 119, 86, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--term-dim);
  color: var(--term-text);
}

.btn-small {
  padding: 6px 15px;
  font-size: 0.625rem;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-mint {
  background: linear-gradient(135deg, var(--accent) 0%, #c45a3a 100%);
  border: none;
  color: #fff;
  padding: 15px 40px;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.btn-mint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-mint:hover::before {
  transform: translateX(100%);
}

.btn-mint:hover {
  box-shadow: 0 0 30px rgba(218, 119, 86, 0.5), 0 0 60px rgba(218, 119, 86, 0.2);
}

.mint-btn-text {
  margin-right: 10px;
}

.mint-btn-price {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  font-size: 0.625rem;
}

/* ============================================
   Claude Loading Animation
   ============================================ */

.loader-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.claude-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
}

.loader-spinner {
  color: var(--claude-orange);
  font-size: 1.5rem;
  width: 20px;
  text-align: center;
}

.loader-word {
  color: var(--claude-orange);
  min-width: 140px;
}

/* ============================================
   Analyzing State
   ============================================ */

.analyzing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 0;
}

.analyzing-logs {
  text-align: left;
  width: 100%;
  max-width: 400px;
  margin-bottom: 30px;
}

.log-line {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 8px;
  opacity: 0;
  animation: logAppear 0.3s forwards;
}

.log-line .prompt {
  color: var(--accent);
  margin-right: 8px;
}

.log-line.success {
  color: var(--success);
}

@keyframes logAppear {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.progress-bar {
  height: 2px;
  background: var(--term-dim);
  width: 100%;
  max-width: 400px;
  margin-bottom: 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--claude-orange));
  animation: progressFill 3.5s ease-out forwards;
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.progress-text {
  font-size: 0.75rem;
  color: #555;
}

/* ============================================
   Preview State
   ============================================ */

.preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 40px;
}

/* Two-column layout when showing both clawd and traits (after mint) */
.preview-content.reveal-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .preview-content,
  .preview-content.reveal-mode {
    display: flex;
    flex-direction: column;
  }
}

.clawd-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clawd-frame {
  width: 256px;
  height: 256px;
  background: #000;
  border: 2px solid var(--term-dim);
  overflow: hidden;
  position: relative;
}

.clawd-frame iframe {
  width: 512px;
  height: 512px;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  display: block;
}

.artwork-frame {
  background: #000;
}

.clawd-frame.ready {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(218, 119, 86, 0.3);
}

.clawd-frame.minted {
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.mint-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, transparent 70%, rgba(218, 119, 86, 0.15) 100%);
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.clawd-rarity {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.rarity-label {
  color: #666;
  text-transform: uppercase;
}

.rarity-value {
  color: var(--accent);
  font-weight: bold;
}

/* Achievements Panel (shown before mint) */
.achievements-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

/* Tier Display */
.tier-display {
  text-align: center;
  padding: 30px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--term-dim);
  border-radius: 4px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 400px;
}

.tier-label {
  font-size: 0.625rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.tier-name {
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: normal;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(218, 119, 86, 0.3);
}

.tier-description {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 15px;
}

.github-user {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.8;
}

/* Achievements Section */
.achievements-section {
  width: 100%;
  max-width: 400px;
  margin-bottom: 30px;
}

.achievements-header {
  font-size: 0.625rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-align: center;
}

.achievements-title {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 20px;
  font-weight: normal;
}

/* Mint Action */
.mint-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 400px;
  padding-top: 20px;
  border-top: 1px dashed var(--term-dim);
}

.mint-price-display {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--term-dim);
  border-radius: 4px;
}

.price-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-value {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: bold;
}

.btn-large {
  width: 100%;
  padding: 16px 30px;
  font-size: 0.875rem;
}

/* Wallet Connected Info (in achievements panel) */
.wallet-connected-info {
  width: 100%;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--success);
  border-radius: 4px;
  padding: 12px 15px;
}

.wallet-connected-info .wallet-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.wallet-connected-info .wallet-row:last-child {
  margin-bottom: 0;
}

.wallet-connected-info .wallet-label {
  color: #666;
}

.wallet-connected-info .wallet-address {
  color: var(--term-text);
  font-family: monospace;
}

.wallet-connected-info .wallet-balance {
  color: var(--success);
  font-weight: bold;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--term-dim);
  padding: 15px;
  border-radius: 4px;
}

.achievement-item.no-achievements {
  border-color: #333;
  opacity: 0.7;
}

.achievement-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.achievement-details {
  flex: 1;
}

.achievement-description {
  font-size: 0.875rem;
  color: var(--term-text);
  margin-bottom: 4px;
}

.achievement-reward {
  font-size: 0.75rem;
  color: #888;
}

.achievement-reward strong {
  color: var(--accent);
}

.ready-message {
  font-size: 1rem;
  color: var(--accent);
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  border: 1px dashed var(--term-dim);
  background: rgba(218, 119, 86, 0.1);
}

.github-info {
  text-align: center;
  margin-bottom: 20px;
}

.github-info .github-username {
  font-size: 0.875rem;
  color: #888;
}

/* Mystery Box (shown before mint) */
.mystery-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 256px;
  height: 256px;
  background: rgba(10, 10, 10, 0.8);
  border: 2px dashed var(--term-dim);
  border-radius: 4px;
}

.mystery-text {
  font-size: 4rem;
  color: var(--accent);
  font-family: monospace;
  animation: pulse 2s ease-in-out infinite;
}

.mystery-label {
  font-size: 0.875rem;
  color: #666;
  margin-top: 10px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Traits Panel */
.traits-panel {
  display: flex;
  flex-direction: column;
}

.traits-title {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 20px;
  font-weight: normal;
}

.bracket {
  color: var(--accent);
}

.traits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.trait-card {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--term-dim);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trait-category {
  font-size: 0.5rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trait-value {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: bold;
}

/* GitHub Stats */
.github-stats {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--term-dim);
  padding: 15px;
  margin-bottom: 20px;
}

.stats-title {
  font-size: 0.625rem;
  color: #555;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--term-dim);
}

.stats-row:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stat-label {
  color: #666;
}

.stat-value {
  color: var(--term-text);
}

/* ============================================
   Mint State
   ============================================ */

.mint-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  flex: 1;
}

@media (max-width: 768px) {
  .mint-content {
    grid-template-columns: 1fr;
  }
}

.mint-panel {
  display: flex;
  flex-direction: column;
}

.mint-title {
  font-size: 1rem;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: 20px;
}

.wallet-info {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--term-dim);
  padding: 15px;
  margin-bottom: 20px;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.wallet-row:last-child {
  margin-bottom: 0;
}

.wallet-label {
  color: #666;
}

.wallet-address {
  color: var(--term-text);
}

.wallet-balance {
  color: var(--success);
  font-weight: bold;
}

.mint-details {
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 10px 0;
  border-bottom: 1px dashed var(--term-dim);
}

.detail-row.total {
  border-bottom: none;
  font-weight: bold;
}

.detail-label {
  color: #666;
}

.detail-value {
  color: var(--term-text);
}

.detail-value.highlight {
  color: var(--accent);
}

.mint-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 15px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  color: var(--warning);
}

.warning-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mint-note {
  font-size: 0.625rem;
  color: #555;
  text-align: center;
  margin-top: 15px;
}

/* ============================================
   Success State
   ============================================ */

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  position: relative;
}

.success-header {
  margin-bottom: 30px;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--success);
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-title {
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--term-text);
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 0.875rem;
  color: #666;
}

.minted-clawd {
  margin-bottom: 30px;
}

.nft-info {
  margin-top: 15px;
  font-size: 0.875rem;
}

.nft-label {
  color: #666;
}

.nft-id {
  color: var(--accent);
  font-weight: bold;
}

.tx-info {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--term-dim);
  padding: 15px;
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
  max-width: 400px;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.tx-row:last-child {
  margin-bottom: 0;
}

.tx-label {
  color: #666;
}

.tx-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
}

.tx-link:hover {
  color: var(--term-text);
}

.external-icon {
  width: 12px;
  height: 12px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* Confetti */
.confetti-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  animation: confettiFall 4s linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(500px) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid var(--term-dim);
  border-top: none;
  background: #111;
  padding: 10px 15px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-text {
  font-size: 0.625rem;
  color: #555;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
  .app-container {
    padding: 10px;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .terminal-body {
    padding: 20px;
  }

  .traits-grid {
    grid-template-columns: 1fr;
  }

  .success-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
  display: none !important;
}

.dim {
  color: #555;
}

.highlight {
  color: var(--accent);
}

/* ============================================
   Loading Overlay & Error Message
   ============================================ */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  font-size: 48px;
  color: var(--claude-orange);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  0% { content: '⠋'; }
  14% { content: '⠙'; }
  28% { content: '⠹'; }
  42% { content: '⠸'; }
  57% { content: '⠼'; }
  71% { content: '⠴'; }
  85% { content: '⠦'; }
  100% { content: '⠧'; }
}

#loading-text {
  margin-top: 16px;
  color: var(--term-text);
  font-size: 16px;
}

.error-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--error);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1001;
  max-width: 80%;
  text-align: center;
}

.error-message.active {
  opacity: 1;
}
