/* Jara CSS Design System & Theme Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Common Design Tokens */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

  /* Light Theme Colors (Default) */
  --bg-app: hsl(220, 25%, 97%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-card-hover: hsl(220, 20%, 95%);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-color: rgba(226, 232, 240, 0.8);
  --border-focus: hsl(262, 80%, 60%);

  --text-primary: hsl(224, 25%, 12%);
  --text-secondary: hsl(220, 15%, 45%);
  --text-muted: hsl(220, 13%, 65%);
  --text-on-accent: hsl(0, 0%, 100%);

  --primary: hsl(262, 80%, 52%);
  --primary-hover: hsl(262, 85%, 45%);
  --primary-glow: rgba(139, 92, 246, 0.15);

  --secondary: hsl(174, 90%, 36%);
  --secondary-hover: hsl(174, 95%, 30%);
  --secondary-glow: rgba(13, 148, 136, 0.15);

  --accent-pink: hsl(330, 85%, 55%);
  --accent-amber: hsl(40, 95%, 50%);

  --success: hsl(142, 76%, 36%);
  --error: hsl(350, 80%, 48%);

  --glow-color: rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-app: hsl(224, 25%, 8%);
  --bg-card: hsl(224, 25%, 12%);
  --bg-card-hover: hsl(224, 22%, 16%);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-color: rgba(30, 41, 59, 0.8);
  --border-focus: hsl(262, 80%, 65%);

  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 15%, 50%);

  --primary: hsl(262, 83%, 60%);
  --primary-hover: hsl(262, 90%, 68%);
  --primary-glow: rgba(167, 139, 250, 0.15);

  --secondary: hsl(174, 85%, 45%);
  --secondary-hover: hsl(174, 90%, 52%);
  --secondary-glow: rgba(20, 184, 166, 0.15);

  --success: hsl(142, 70%, 45%);
  --error: hsl(350, 75%, 55%);

  --glow-color: rgba(167, 139, 250, 0.3);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

/* Layout Elements */
.header-glass {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 800;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-accent);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-on-accent);
  box-shadow: 0 4px 14px var(--secondary-glow);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--border-color);
}

.btn-wallet {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-wallet:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* App Main Container */
main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

/* Shared UI Components */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

/* Page: Landing */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 100px 0;
}

@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 0;
  }

  .hero-actions {
    justify-content: center;
  }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-ring {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(20px);
  animation: pulse-glow 6s infinite ease-in-out;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

.featured-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.feature-card {
  text-align: left;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 15px;
}

/* Page: Marketplace */
.marketplace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.search-filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .search-filter-bar {
    grid-template-columns: 1fr;
  }
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-icon-wrapper .input-field {
  padding-left: 48px;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

.task-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.task-category {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-digital {
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary);
}

.cat-social {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
}

.cat-local {
  background: rgba(13, 148, 136, 0.12);
  color: var(--secondary);
}

.cat-testing {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.task-reward {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--secondary);
}

.task-reward-nanopayment {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.task-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.task-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.task-business {
  display: flex;
  align-items: center;
  gap: 8px;
}

.biz-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

/* Page: Create Task */
.form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-title {
  font-size: 32px;
  margin-bottom: 8px;
  text-align: center;
}

.form-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

/* Page: My Tasks */
.tabs-navigation {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  gap: 24px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

/* List UI */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 16px;
  transition: all var(--transition-fast);
  gap: 16px;
}

.list-item:hover {
  border-color: var(--text-muted);
}

@media (max-width: 768px) {
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item-action {
    align-self: stretch;
    justify-content: flex-end;
  }
}

.list-item-info {
  flex-grow: 1;
}

.list-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.list-item-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.badge-completed {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.badge-active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

/* Page: Wallet & Earnings */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 968px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.wallet-balance-card {
  background: linear-gradient(135deg, hsl(262, 80%, 48%) 0%, hsl(174, 90%, 34%) 100%);
  color: var(--text-on-accent);
  border: none;
  position: relative;
  overflow: hidden;
}

.wallet-balance-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.network-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 24px;
}

.balance-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.balance-value {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 24px;
}

.tx-history-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.tx-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.tx-icon-wrapper.income {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.tx-icon-wrapper.outcome {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.tx-title {
  font-weight: 600;
  font-size: 14px;
}

.tx-date {
  font-size: 12px;
  color: var(--text-muted);
}

.tx-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-body {
  margin-bottom: 24px;
}

/* Nanopayment Success Ring Animation */
.success-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.circle-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 36px;
  box-shadow: 0 0 30px var(--secondary-glow);
  animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scale-up {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* User Role Banner Switcher */
.role-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 30px auto;
  box-shadow: var(--shadow-sm);
}

.role-btn {
  background: none;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-btn.active {
  background: var(--primary);
  color: var(--text-on-accent);
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 24px;
  margin-top: auto;
  background: var(--bg-glass);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* ================= ESCROW & MULTI-STEP TX STYLING ================= */

.escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.escrow-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -16px;
  width: 2px;
  background: var(--border-color);
  z-index: 1;
}

.timeline-step.completed:not(:last-child)::after {
  background: var(--secondary);
}

.timeline-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.timeline-step.active .timeline-node {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.timeline-step.completed .timeline-node {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--bg-app);
}

.timeline-content {
  flex: 1;
  padding-top: 2px;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.timeline-meta {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted);
  margin-top: 4px;
  word-break: break-all;
}

.tx-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.tx-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.tx-step-item.pending {
  color: var(--text-primary);
  font-weight: 500;
}

.tx-step-item.completed {
  color: var(--success);
}

.tx-step-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================= TASK VERIFICATION ELEMENT STYLING ================= */

.upload-zone {
  border: 2px dashed var(--border-color);
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 8px;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.upload-preview {
  max-width: 100%;
  max-height: 160px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.location-checker {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: monospace;
  width: fit-content;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.inventory-table th,
.inventory-table td {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.inventory-table th {
  background: var(--bg-app);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
}

.variance-indicator {
  font-weight: 700;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.variance-indicator.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.variance-indicator.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.variance-indicator.neutral {
  background: var(--bg-app);
  color: var(--text-muted);
}

/* Use Cases Grid & Card Styling */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.use-case-card:hover::before {
  opacity: 1;
}

.use-case-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-normal);
}

.use-case-card:hover .use-case-icon-wrapper {
  transform: scale(1.1);
}

.use-case-icon-wrapper.purple {
  background: var(--primary-glow);
  color: var(--primary);
}

.use-case-icon-wrapper.teal {
  background: var(--secondary-glow);
  color: var(--secondary);
}

.use-case-icon-wrapper.pink {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
}

.use-case-icon-wrapper.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.use-case-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.use-case-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.use-case-impact-box {
  background: var(--bg-app);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 13px;
  text-align: left;
}

.use-case-impact-box.teal {
  border-left-color: var(--secondary);
}

.use-case-impact-box.pink {
  border-left-color: var(--accent-pink);
}

.use-case-impact-box.amber {
  border-left-color: var(--accent-amber);
}

.use-case-impact-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.use-case-impact-text {
  color: var(--text-secondary);
  line-height: 1.4;
}

.use-case-rewards-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.use-case-reward-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: left;
}

.use-case-reward-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--secondary);
  text-align: right;
}

.use-case-reward-nano {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}