:root {
  --black: #000;
  --white: #fff;
  --text-primary: #E8E8E8;
  --text-secondary: #AAAAAA;
  --text-muted: #777777;
  --cream: #FDFBF7;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #333;
  --gray-300: #444;
  --gray-400: #888;
  --gray-600: #aaa;
  --gray-800: #1a1a1a;
  --green: #00FFB6;
  --green-light: rgba(0, 255, 182, 0.15);
  --green-dark: #00cc92;
  --coral: #FF8352;
  --coral-light: rgba(255, 131, 82, 0.15);
  --celo-green: #00FFB6;
  --celo-dark: #0a0a0a;
  --purple: #00FFB6;
  --purple-dark: #00cc92;
  --purple-light: rgba(0, 255, 182, 0.15);
  --yellow: #eab308;
  --red: #ef4444;
  --red-light: rgba(239, 68, 68, 0.15);
  
  /* Font families */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

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

/* Header */
.header {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.header h1 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--white);
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--green);
  border-radius: 100px;
  text-transform: uppercase;
  background: transparent;
  color: var(--green);
}

/* Auth */
.auth-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-loading {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.auth-logged-in {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--black);
  display: none;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: var(--green);
  color: var(--black);
  border: none;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 255, 182, 0.3);
  line-height: 1;
}

.btn:hover {
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 255, 182, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 0 20px rgba(0, 255, 182, 0.3);
}

.btn-coral {
  background: var(--coral);
  color: var(--black);
  box-shadow: 0 0 20px rgba(255, 131, 82, 0.3);
}

.btn-coral:hover {
  background: var(--white);
  box-shadow: 0 0 30px rgba(255, 131, 82, 0.5);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  background: var(--gray-800);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

textarea.input, #config-editor {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.8rem;
  resize: vertical;
  min-height: 200px;
}

/* Section Headers */
h2 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 0.5rem;
}

/* Hero Section */
.hero-section {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  margin: -3rem -2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 182, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 131, 82, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  border-bottom: none;
  padding-bottom: 0;
  line-height: 1.15;
  color: var(--white);
  font-family: var(--font-sans);
}

.hero-subline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.hero-integration {
  margin-top: 3rem;
  padding-top: 2.5rem;
}

.hero-integration .section-card {
  text-align: left;
}

.manual-verify-link {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-200);
  text-align: center;
}

.manual-verify-link a {
  color: var(--green);
  text-decoration: none;
}

.manual-verify-link a:hover {
  text-decoration: underline;
}

.pillar {
  background: var(--gray-800);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  box-shadow: none;
  transition: all 0.2s ease;
}

.pillar:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.pillar-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--green);
}

.pillar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dashboard Mode - Full screen agent cockpit */
body.dashboard-mode .container {
  max-width: 100%;
  padding: 1rem 2rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dashboard-mode .header {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

body.dashboard-mode .agents-section {
  flex: 1;
  margin-bottom: 0;
  overflow: hidden;
}

body.dashboard-mode .dashboard-layout {
  height: 100%;
}

body.dashboard-mode .cockpit-main {
  height: 100%;
  overflow-y: auto;
}

/* Agents Section */
.agents-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.agents-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agent-card {
  border: 2px solid var(--black);
  padding: 1.25rem;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.agent-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.agent-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  background: var(--gray-100);
}

.agent-status.active {
  background: #dcfce7;
  color: #166534;
}

.agent-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.agent-stats {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-value.wallet-addr {
  font-size: 0.85rem;
  font-family: monospace;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
}

.agent-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  border: 2px dashed var(--gray-300);
  color: var(--gray-600);
}

.loading {
  padding: 2rem;
  text-align: center;
  color: var(--gray-600);
}

.error {
  color: var(--red);
}

/* Create Form */
.create-form {
  border: 2px solid var(--black);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.output-box {
  padding: 1rem;
  background: var(--gray-100);
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* How It Works */
.how-it-works {
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-card {
  padding: 1.5rem;
  border: 2px solid var(--black);
}

.step-card .step-num {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Pricing */
.pricing-section {
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pricing-card {
  padding: 1.5rem;
  border: 2px solid var(--gray-300);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--black);
  background: var(--gray-100);
}

.pricing-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.pricing-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.pricing-card ul {
  list-style: none;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.pricing-card li {
  padding: 0.25rem 0;
}

.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 1rem;
}

/* What Makes ClawPit Different */
.why-clawpit {
  margin-bottom: 3rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.value-block {
  border: 2px solid var(--black);
  padding: 1.5rem;
}

.value-block h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.value-block p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Agent Economy */
.agent-economy {
  margin-bottom: 3rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.economy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.economy-item {
  padding: 1.25rem;
  background: var(--gray-100);
}

.economy-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.economy-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Technology */
.tech-section {
  margin-bottom: 3rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tech-item {
  padding: 1rem;
  background: var(--gray-100);
}

.tech-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.tech-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Advanced Section */
.advanced-section {
  margin-bottom: 3rem;
  border: 2px solid var(--gray-300);
}

.advanced-section summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
}

.advanced-section summary h2 {
  display: inline;
  font-size: 1rem;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.advanced-content {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-300);
}

.advanced-content p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-box {
  border: 2px solid var(--black);
  padding: 1rem;
  text-align: center;
}

.status-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.status-value {
  font-weight: 700;
  font-size: 0.85rem;
}

.status-value.ok { color: var(--green); }
.status-value.warn { color: var(--yellow); }
.status-value.err { color: var(--red); }

/* Setup Steps */
.setup-steps {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.setup-step h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Env Check */
.env-check {
  margin: 1.5rem 0;
}

.env-check h4 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

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

.env-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--gray-100);
  font-size: 0.85rem;
}

.env-row code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.8rem;
}

.env-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

.env-badge.set {
  background: #dcfce7;
  color: #166534;
}

.env-badge.not-set {
  background: #fee2e2;
  color: #b91c1c;
}

/* Config Editor */
.config-editor-section {
  margin-top: 1.5rem;
}

.config-editor-section h4 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

#config-editor {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--black);
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.8rem;
  resize: vertical;
  min-height: 200px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--white);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border: 3px solid var(--black);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.modal-header h3 {
  font-size: 1rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-info p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.modal-info code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.8rem;
  background: var(--gray-100);
  padding: 0.1rem 0.3rem;
}

.modal-info pre {
  background: var(--gray-100);
  padding: 1rem;
  font-size: 0.75rem;
  overflow-x: auto;
  margin-top: 0.5rem;
}

.modal-info h4 {
  font-size: 0.85rem;
  margin: 1rem 0 0.5rem;
}

.modal-info ul {
  list-style: none;
  font-size: 0.85rem;
}

.modal-info li {
  padding: 0.25rem 0;
}

.modal-info hr {
  border: none;
  border-top: 1px solid var(--gray-300);
  margin: 1rem 0;
}

/* Wallet Balance */
.wallet-balance {
  display: flex;
  gap: 2rem;
}

.balance-item {
  display: flex;
  flex-direction: column;
}

.balance-value {
  font-size: 1.75rem;
  font-weight: 900;
}

.balance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
}

.note {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* Chat Interface */
.chat-interface {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.chat-msg {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.chat-msg.user {
  background: var(--gray-100);
  margin-left: 2rem;
}

.chat-msg.assistant {
  background: var(--black);
  color: var(--white);
  margin-right: 2rem;
}

.chat-msg.error {
  background: #fee2e2;
  color: var(--red);
}

.chat-msg.loading {
  opacity: 0.6;
}

.chat-cost {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: right;
  margin-bottom: 0.5rem;
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-300);
}

.chat-input-area .input {
  flex: 1;
}

/* Footer */
.footer {
  border-top: 1px solid var(--gray-300);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer .sep {
  color: var(--gray-300);
}

.footer a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* Secrets Manager */
.secrets-manager {
  max-width: 500px;
}

.secrets-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.secret-item {
  border: 2px solid var(--gray-200);
  padding: 1rem;
}

.secret-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.secret-name {
  font-weight: 600;
}

.secret-status {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  background: var(--gray-100);
  color: var(--gray-600);
}

.secret-status.set {
  background: var(--green);
  color: var(--white);
}

.secret-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.secret-form .input {
  flex: 1;
}

.secret-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Skills Manager */
.skills-manager {
  max-width: 550px;
}

.add-skill-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.add-skill-form .form-row {
  display: flex;
  gap: 0.5rem;
}

.add-skill-form .form-row .input {
  flex: 1;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  border: 2px solid var(--gray-200);
  padding: 0.75rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.skill-name {
  font-weight: 600;
}

.skill-price {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

.skill-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

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

/* Analytics Dashboard */
.analytics-dashboard {
  max-width: 550px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.analytics-card {
  border: 2px solid var(--gray-200);
  padding: 1rem;
  text-align: center;
}

.analytics-card.positive {
  border-color: var(--green);
}

.analytics-card.negative {
  border-color: var(--red);
}

.analytics-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.analytics-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
}

.positive { color: var(--green); }
.negative { color: var(--red); }

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem;
}

.tx-amount {
  font-weight: 600;
}

.tx-endpoint {
  color: var(--gray-600);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 200px;
}

.empty {
  color: var(--gray-600);
  font-style: italic;
}

/* Onboarding */
.onboarding-section {
  margin: 2rem 0;
}

.onboarding-card {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.onboarding-card h2 {
  margin-bottom: 0.5rem;
}

.onboarding-card h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.onboarding-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.onboarding-form textarea.input {
  resize: vertical;
  min-height: 80px;
}

.onboarding-form .note {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.onboarding-form .form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .onboarding-form .form-actions {
    flex-direction: column;
  }
}

/* Marketplace */
.marketplace-dashboard {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--gray-300);
  background: var(--gray-100);
}

.marketplace-dashboard .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.marketplace-filters {
  display: flex;
  gap: 0.5rem;
}

.marketplace-filters .input {
  min-width: 150px;
}

.marketplace-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.marketplace-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 1rem;
}

.marketplace-card:hover {
  border-color: var(--black);
}

.marketplace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.marketplace-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.skill-provider {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 700px) {
  .container {
    padding: 2rem 1rem;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .hero-section {
    margin: -2rem -1rem 2rem;
  }
  
  .hero-headline {
    font-size: 1.75rem;
  }
  
  .hero-pillars {
    grid-template-columns: 1fr;
  }
  
  .value-grid,
  .economy-grid,
  .steps-grid,
  .pricing-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  min-height: 70vh;
}

.agents-sidebar {
  border-right: 2px solid var(--black);
  padding-right: 1.5rem;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-300);
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.agents-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-agent {
  padding: 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-agent:hover {
  background: var(--gray-100);
}

.nav-agent.active {
  background: var(--black);
  color: var(--white);
}

.nav-agent-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-agent-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  background: var(--gray-200);
}

.nav-agent-status.active {
  background: #dcfce7;
  color: #166534;
}

.nav-agent.active .nav-agent-status {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.nav-agent.active .nav-agent-status.active {
  background: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.nav-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.chat-welcome {
  padding: 2rem;
  text-align: center;
  color: var(--gray-600);
}

.agent-nav-item {
  padding: 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.agent-nav-item:hover {
  background: var(--gray-100);
}

.agent-nav-item.active {
  background: var(--black);
  color: var(--white);
}

.agent-nav-item .nav-name {
  font-weight: 600;
  display: block;
}

.agent-nav-item .nav-credits {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.agent-nav-item.active .nav-credits {
  color: var(--gray-300);
}

/* Cockpit Main */
.cockpit-main {
  min-height: 60vh;
}

.cockpit-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  border: 2px dashed var(--gray-300);
}

.empty-content {
  text-align: center;
  max-width: 400px;
}

.empty-content h2 {
  margin-bottom: 0.5rem;
}

.empty-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Cockpit View */
.cockpit-view {
  display: flex;
  flex-direction: column;
}

.cockpit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--black);
  margin-bottom: 1rem;
}

.agent-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agent-identity h2 {
  font-size: 1.5rem;
}

.cockpit-stats {
  display: flex;
  gap: 2rem;
}

.cockpit-stat {
  text-align: right;
}

/* Cockpit Tabs */
.cockpit-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--black);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tab-btn:hover {
  background: var(--gray-100);
}

.tab-btn.active {
  background: var(--black);
  color: var(--white);
  border-bottom-color: var(--black);
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Console Tab */
.console-container {
  display: flex;
  flex-direction: column;
  height: 50vh;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  margin-bottom: 1rem;
}

.chat-message {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
}

.chat-message.user {
  background: var(--black);
  color: var(--white);
  margin-left: 2rem;
}

.chat-message.assistant {
  background: var(--white);
  border: 1px solid var(--gray-300);
  margin-right: 2rem;
}

.chat-message .message-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  resize: none;
}

/* Config Panel */
.config-panel {
  max-width: 600px;
}

.config-panel h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.secrets-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.secret-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
}

.secret-item .secret-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.secret-item .secret-status {
  font-size: 0.75rem;
  color: var(--green);
}

/* Skills Panel */
.skills-panel h4 {
  margin-bottom: 0.5rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
}

.skill-item .skill-info {
  flex: 1;
}

.skill-item .skill-name {
  font-weight: 600;
}

.skill-item .skill-price {
  font-size: 0.85rem;
  color: var(--gray-600);
}

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

.skills-marketplace-preview {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-300);
}

/* Wallet Panel */
.wallet-panel {
  max-width: 600px;
}

.wallet-balance-card {
  padding: 1.5rem;
  border: 2px solid var(--black);
  margin-bottom: 2rem;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1rem 0;
}

.balance-item {
  display: flex;
  flex-direction: column;
}

.balance-value {
  font-size: 2rem;
  font-weight: 700;
}

.balance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
}

.wallet-address {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-300);
}

.wallet-address label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.wallet-address code {
  font-size: 0.8rem;
  word-break: break-all;
}

.credits-section h4,
.transactions-section h4 {
  margin-bottom: 0.5rem;
}

.credits-options {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.credit-option {
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  cursor: pointer;
  font-size: 0.85rem;
}

.credit-option:hover {
  background: var(--gray-200);
}

.transactions-list {
  padding: 1rem;
  background: var(--gray-100);
  min-height: 100px;
}

/* Data Panel */
.data-panel h4 {
  margin-bottom: 0.5rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.analytics-stat {
  padding: 1rem;
  border: 1px solid var(--gray-300);
  text-align: center;
}

.analytics-stat .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.analytics-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-600);
}

.activity-log {
  padding: 1rem;
  background: var(--gray-100);
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 1rem;
  width: 1.5rem;
  text-align: center;
}

.activity-icon.positive {
  color: var(--green);
}

.activity-icon.negative {
  color: var(--red);
}

.activity-desc {
  flex: 1;
  font-size: 0.85rem;
}

.activity-amount {
  font-weight: 600;
  font-size: 0.85rem;
}

.activity-amount.positive {
  color: var(--green);
}

.activity-amount.negative {
  color: var(--red);
}

.identity-section {
  padding: 1rem;
  border: 1px solid var(--gray-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Models Status */
.models-status-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
}

.models-count {
  font-size: 0.85rem;
  font-weight: 600;
}

.provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.provider-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.provider-badge.available {
  background: #dcfce7;
  color: #166534;
}

.provider-badge.unavailable {
  background: var(--gray-200);
  color: var(--gray-600);
}

/* Create Wizard */
.create-wizard {
  border: 2px solid var(--black);
  padding: 2rem;
}

.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.wizard-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}

.wizard-step.active {
  opacity: 1;
}

.wizard-step.completed {
  opacity: 0.7;
}

.step-num {
  width: 28px;
  height: 28px;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.wizard-step.active .step-num {
  background: var(--black);
  color: var(--white);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.wizard-content {
  max-width: 500px;
  margin: 0 auto;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-panel h3 {
  margin-bottom: 0.5rem;
}

.wizard-panel > p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.wizard-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.hint {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.review-summary {
  border: 1px solid var(--gray-300);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.review-item {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  width: 100px;
  font-weight: 600;
  font-size: 0.85rem;
}

.review-value {
  flex: 1;
  font-size: 0.85rem;
}

.free-credits-note {
  padding: 1rem;
  background: #dcfce7;
  border: 1px solid #22c55e;
  text-align: center;
}

.free-credits-note p {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Goals Panel */
.goals-panel, .tasks-panel {
  padding: 1rem;
}

.goal-card, .task-card {
  background: var(--gray-100);
  border: 2px solid var(--black);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.goal-card.completed {
  opacity: 0.6;
  border-color: var(--green);
}

.goal-card.paused {
  border-style: dashed;
}

.goal-header, .task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.goal-priority {
  background: var(--black);
  color: var(--white);
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.goal-status, .task-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.status-active { color: var(--green); }
.status-completed { color: var(--gray-600); }
.status-paused { color: var(--yellow); }

.goal-text, .task-description {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.goal-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.goal-progress .progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  position: relative;
}

.goal-progress .progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--green);
  width: inherit;
}

.goal-actions, .task-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.task-card.inactive {
  opacity: 0.7;
  border-style: dashed;
}

.task-name {
  font-weight: 600;
}

.task-cron {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.task-meta {
  font-size: 0.75rem;
  color: var(--gray-600);
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

/* Tool Executions */
.tool-executions-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--gray-300);
  padding: 0.5rem;
}

.execution-entry {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.85rem;
}

.execution-entry:last-child {
  border-bottom: none;
}

.execution-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.tool-name {
  font-weight: 600;
  font-family: monospace;
}

.execution-time {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.execution-details {
  display: flex;
  gap: 0.5rem;
}

.execution-cost {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.execution-status {
  font-size: 0.75rem;
  font-weight: 600;
}

.execution-entry.success .execution-status { color: var(--green); }
.execution-entry.error .execution-status { color: var(--red); }

/* Button variants */
.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-danger:hover {
  background: #dc2626;
}

/* Add form styling */
.add-form {
  background: var(--gray-100);
  border: 2px solid var(--black);
  padding: 1rem;
  margin-top: 1rem;
}

.add-form h5 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .agents-sidebar {
    border-right: none;
    border-bottom: 2px solid var(--black);
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .agents-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .nav-agent {
    padding: 0.5rem 0.75rem;
  }
  
  .cockpit-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cockpit-stats {
    width: 100%;
    justify-content: space-between;
  }
  
  .cockpit-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem;
  }
  
  .balance-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

/* Service Connection */
.service-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  margin-bottom: 0.5rem;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-icon {
  font-size: 1.5rem;
}

.service-info strong {
  display: block;
}

.status-text {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.status-text.connected {
  color: var(--green);
}

/* Template Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.template-card {
  border: 2px solid var(--gray-200);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.template-card:hover {
  border-color: var(--gray-600);
}

.template-card.selected {
  border-color: var(--black);
  background: var(--gray-100);
}

.template-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.template-card strong {
  display: block;
  font-size: 0.85rem;
}

.template-card p {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* Activity Feed */
.activity-feed {
  max-height: 600px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 1.25rem;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 500;
}

.activity-agent {
  color: var(--gray-600);
  font-size: 0.85rem;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.activity-description {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: var(--gray-800);
}

/* Sidebar sections */
.sidebar-section {
  margin-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}

.sidebar-section .sidebar-header {
  margin-bottom: 0.5rem;
}

.sidebar-section .sidebar-header h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray-600);
}

/* Compact activity feed for sidebar */
.activity-feed-compact {
  max-height: 250px;
  overflow-y: auto;
}

.activity-item-compact {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8rem;
}

.activity-item-compact:last-child {
  border-bottom: none;
}

.activity-item-compact .activity-title {
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.2rem;
}

.activity-item-compact .activity-meta {
  display: flex;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.7rem;
}

.loading-small {
  color: var(--gray-600);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

.activity-empty {
  color: var(--gray-600);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

/* ============================================
   SELFMOLT STYLES
   ============================================ */

.tag-green {
  background: var(--green-light);
  color: var(--green);
  border: none;
}

.tag-purple {
  background: var(--purple-light);
  color: var(--purple);
  border: none;
}

.text-green {
  color: var(--green);
}

.text-purple {
  color: var(--purple);
}

.btn-green {
  background: var(--green);
  color: var(--black);
  border: none;
}

.btn-green:hover {
  background: var(--white);
}

.header-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  transition: all 0.2s;
  background: transparent;
}

.nav-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.selfclaw-hero .hero-headline {
  font-size: 3.25rem;
  line-height: 1.15;
  text-transform: none;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--white);
}

.pillar-icon-green,
.pillar-icon-purple {
  color: var(--green);
}

/* Verify Section */
.verify-section,
.check-section,
.api-section,
.claw-section,
.why-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
}

/* Input Button Row */
.input-button-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.input-button-row .input {
  flex: 1;
}

.input-button-row .btn {
  flex-shrink: 0;
}

/* Claw Section */
.claw-install {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.claw-code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 1rem 1.5rem;
  background: var(--black);
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
}

.copy-btn {
  white-space: nowrap;
}

.claw-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.claw-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.claw-step .step-num {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.why-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 800px;
}

.text-green {
  color: var(--green);
}

.section-card {
  background: var(--gray-800);
  padding: 2.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  box-shadow: none;
}

.section-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  border-bottom: none;
  color: var(--text-primary);
}

.section-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.verify-steps {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.verify-step {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-family: var(--font-mono);
}

.step-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 500px;
}

.qr-container {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem;
  background: var(--purple-light);
  border: 1px solid var(--purple);
  border-radius: 16px;
}

.qr-code {
  margin: 1rem auto;
  max-width: 250px;
}

/* Check Section */
.check-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.check-form .form-group {
  flex: 1;
  min-width: 300px;
}

.check-result {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--gray-800);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
}

.check-result.verified {
  border-color: var(--green);
  background: rgba(0, 255, 182, 0.1);
}

.check-result.not-verified {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

.check-result h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.check-result .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

.check-result .verified-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--green);
  color: var(--black);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.check-result .not-verified-badge {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}

/* API Section */
.code-block {
  display: block;
  background: var(--gray-800);
  color: var(--green);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 1rem 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--gray-300);
}

.api-hint {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.api-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Why Section */
.why-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  border-bottom: none;
  color: var(--text-primary);
}

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

.why-card {
  padding: 1.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  background: var(--gray-800);
  box-shadow: none;
  transition: all 0.2s ease;
}

.why-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--green);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.selfclaw-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-powered {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin: 0;
}

.selfclaw-footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.selfclaw-footer a:hover {
  text-decoration: underline;
}

.footer-credit {
  color: var(--gray-600);
  font-size: 0.75rem;
  margin: 0;
}

.footer-credit a {
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 400;
}

.footer-credit a:hover {
  color: var(--green);
  text-decoration: underline;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 0 2rem;
}

.divider-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-600), transparent);
}

.divider-emoji {
  font-size: 1.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
  
  .header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
  }
  
  .header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .tag {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }
  
  .auth-section {
    width: 100%;
  }
  
  .header-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }
  
  .donate-link {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .hero-headline {
    font-size: 1.75rem;
  }
  
  .hero-subhead {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .donate-modal-content {
    width: 95%;
    max-width: none;
    margin: 1rem;
  }
}

.donate-link {
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.donate-link:hover {
  color: var(--green);
}

.donate-modal-content {
  max-width: 560px;
  width: 90%;
}

.donate-title {
  color: var(--gray-300);
}

.donate-mission {
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.donate-wallet {
  background: var(--black);
  border: 1px solid var(--gray-600);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.donate-wallet label {
  display: block;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.wallet-address-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-address-row code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  word-break: break-all;
  padding: 0.75rem;
  background: rgba(0, 255, 182, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 182, 0.15);
}

.donate-thanks {
  color: var(--gray-400);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1.5rem;
}

/* Agent Integration Section */
.agent-integration-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
}

.integration-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--green);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.code-copy-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 255, 182, 0.08);
  border: 1px solid rgba(0, 255, 182, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.code-copy-block code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  word-break: break-all;
}

.copy-btn {
  background: var(--green);
  color: var(--black);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-sans);
}

.copy-btn:hover {
  opacity: 0.85;
}

.integration-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.integration-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--green);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-text strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.step-text span {
  font-size: 0.85rem;
  color: var(--gray-400);
}

@media (max-width: 600px) {
  .code-copy-block {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .code-copy-block code {
    font-size: 0.8rem;
  }
  
  .copy-btn {
    width: 100%;
    text-align: center;
  }
}

/* Comprehensive Mobile Styles */
@media (max-width: 480px) {
  /* Header - stacked and centered */
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
  }
  
  .header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .header h1 {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }
  
  .tag {
    font-size: 0.55rem;
    padding: 0.3rem 0.6rem;
  }
  
  .auth-section {
    width: 100%;
  }
  
  .header-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }
  
  .nav-link,
  .btn-outline {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .donate-link {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  
  /* Hero section */
  .selfclaw-hero .hero-headline {
    font-size: 1.75rem;
  }
  
  .hero-subhead {
    font-size: 1.5rem !important;
  }
  
  .hero-tagline {
    font-size: 0.85rem;
  }
  
  /* Section cards - reduced padding */
  .section-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .section-card h2 {
    font-size: 1.2rem;
  }
  
  .section-intro {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  /* Verify steps - stack vertically */
  .verify-steps {
    flex-direction: column;
    gap: 1rem;
  }
  
  .verify-step {
    min-width: unset;
    width: 100%;
  }
  
  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }
  
  .step-content h4 {
    font-size: 0.85rem;
  }
  
  .step-content p {
    font-size: 0.8rem;
  }
  
  /* Why grid - single column */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .why-card {
    padding: 1.25rem;
  }
  
  .why-card h3 {
    font-size: 0.9rem;
  }
  
  .why-card p {
    font-size: 0.85rem;
  }
  
  .why-title {
    font-size: 1.2rem;
  }
  
  .why-intro {
    font-size: 0.85rem;
  }
  
  /* Form inputs - larger touch targets */
  .input {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.75rem;
  }
  
  .btn {
    min-height: 44px;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 0.875rem 1.5rem;
  }
  
  /* QR popup - fit mobile viewport */
  .popup-content {
    width: 95%;
    max-width: none;
    margin: 0.5rem;
    padding: 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  #qr-code-img {
    width: 160px !important;
    height: 160px !important;
  }
  
  #qr-code-img img,
  #qr-code-img canvas {
    width: 160px !important;
    height: 160px !important;
  }
  
  /* Footer */
  .selfclaw-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }
  
  .footer-row {
    font-size: 0.8rem;
  }
  
  /* Divider */
  .section-divider {
    margin: 2rem 0;
  }
  
  .divider-emoji {
    font-size: 1.25rem;
    padding: 0 0.75rem;
  }
}
