* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
}

main {
  display: grid;
  gap: 2rem;
}

section {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

section h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.75rem;
}

/* Controls */
.control-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.875rem;
  color: #94a3b8;
}

.control-group input,
.control-group select {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* Wallet */
.wallet-info {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.wallet-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.wallet-label {
  font-size: 0.875rem;
  color: #94a3b8;
}

.wallet-value {
  font-size: 1rem;
  color: #cbd5e1;
  font-family: monospace;
}

/* Token Balances */
.balances h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.balance-item {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.balance-item .token {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #60a5fa;
  margin-bottom: 0.25rem;
}

.balance-item .amount {
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* Payment Form */
.payment-form .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  color: #94a3b8;
}

.field input,
.field select {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.btn-execute {
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}

.btn-execute:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Transactions */
.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

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

.tx-item.pending {
  border-left: 4px solid #fbbf24;
}

.tx-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.tx-id {
  font-family: monospace;
  color: #60a5fa;
}

.tx-recipient {
  color: #94a3b8;
  font-size: 0.875rem;
}

.tx-amount {
  color: #fff;
  font-weight: 500;
}

.tx-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-approve, .btn-reject {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-approve {
  background: #4ade80;
  color: #fff;
}

.btn-reject {
  background: #f87171;
  color: #fff;
}

/* AI Section */
.ai-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.ai-insight {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.ai-insight strong {
  color: #a855f7;
}

.ai-metrics {
  display: flex;
  gap: 2rem;
}

.ai-metric {
  display: flex;
  gap: 0.5rem;
}

.ai-metric .value {
  color: #4ade80;
  font-weight: 600;
}

/* Actions */
.actions-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  background: #8b5cf6;
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.btn:hover {
  background: #7c3aed;
}

/* Attribution Marker */
body::after {
  content: "KateelLearningDemos";
  position: fixed;
  bottom: 5px;
  right: 5px;
  font-size: 8px;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 9999;
}