/* VISVA-KARMA Modern Design System */
:root {
  --primary: #1976d2;
  --primary-hover: #1565c0;
  --primary-light: #e3f2fd;
  --primary-dark: #0d47a1;
  --primary-container: #d0e4ff;
  --on-primary: #ffffff;
  
  --surface: #ffffff;
  --surface-dim: #f8fafc;
  --surface-container: #f1f5f9;
  --surface-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-primary: #ffffff;
  
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --error: #dc2626;
  --error-bg: #fee2e2;
  --badge-accent: #eff6ff;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 64px;
}

[data-theme="dark"] {
  --surface: #0f172a;
  --surface-dim: #0b1120;
  --surface-container: #1e293b;
  --surface-card: #1e293b;
  --border: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --primary-light: #1e3a5f;
  --primary-container: #172554;
  --badge-accent: #1e293b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea, .chip, .mobile-nav-btn {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface-dim);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* TOP NAVBAR (Desktop & Mobile) */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--primary);
  color: var(--on-primary);
  height: var(--nav-height);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: white;
  padding: 2px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.68rem;
  opacity: 0.9;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* DESKTOP TABS */
.desktop-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  border-radius: var(--radius-full);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  font-size: 1.15rem;
}

/* NAVBAR RIGHT ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 4px;
  color: white;
  cursor: pointer;
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid white;
}

.user-switcher select {
  background: transparent;
  border: none;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.user-switcher select option {
  background: var(--surface);
  color: var(--text-primary);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* MAIN CONTENT */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem 1rem;
}

/* TAB CONTENT SECTIONS */
.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HEADER BARS */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.view-title-group h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.view-title-group p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(25, 118, 210, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(25, 118, 210, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--surface-container);
  border-color: var(--text-muted);
}

/* SEARCH & FILTER BAR */
.search-filter-box {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-dim);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--surface-card);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.filter-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-dim);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.chip:hover {
  background: var(--surface-container);
  color: var(--text-primary);
}

.chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ==========================================================================
   MISSION-202611-002: CALM HERO, TRUST RIBBON & DECLUTTERED HOME VIEW (Linear/Stripe Style)
   ========================================================================== */

/* Header Post Task Pill Button */
.btn-header-post {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-header-post:hover {
  background: #f0f7ff;
  color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

/* Secondary header actions responsive management */
@media (max-width: 960px) {
  .nav-action-secondary {
    display: none !important;
  }
}

/* 1. Calm Hero Section */
.home-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(25, 118, 210, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem 1.5rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

[data-theme="dark"] .home-hero {
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.25) 0%, rgba(15, 23, 42, 0) 100%);
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .hero-badge {
  background: rgba(30, 58, 95, 0.6);
  color: #93c5fd;
}

.hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

/* Hero Search Box */
.hero-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 680px;
  margin-bottom: 1.15rem;
}

.hero-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

.hero-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-search-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

/* Horizontal Trade Category Chips */
.hero-chips-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.hero-chips-scroll::-webkit-scrollbar {
  display: none;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.hero-chip:hover {
  background: var(--surface-container);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.hero-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(25, 118, 210, 0.25);
}

/* 2. Interactive 1-Line Trust Ribbon */
.trust-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  box-shadow: var(--shadow-sm);
}

.trust-ribbon::-webkit-scrollbar {
  display: none;
}

.trust-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.trust-ribbon-item:hover {
  background: var(--surface-dim);
  color: var(--text-primary);
}

.trust-icon {
  font-size: 17px;
}

.trust-divider {
  color: var(--border);
  font-size: 0.85rem;
  user-select: none;
}

/* 3. 1-Row Credibility Stats Bar */
.home-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.35rem 0.25rem 0.75rem 0.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.home-metrics-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.home-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.home-metric-pill strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* METRICS STATS BAR */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* LIST CARDS (Glide Inspired Minimalist Style) */
.cards-collection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-main {
  flex: 1;
  min-width: 0;
}

.card-price-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-blue { background: var(--primary-light); color: var(--primary-dark); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-yellow { background: var(--warning-bg); color: #b45309; }
.badge-gray { background: var(--surface-container); color: var(--text-secondary); }

.card-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

/* GRID COLLECTION (Karma Tasks) */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.task-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.task-image-box {
  width: 100%;
  height: 160px;
  position: relative;
  background: var(--surface-container);
}

.task-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.task-budget-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}

.task-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.task-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.task-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-provider {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* COMPACT TASK CARD (Find Work Tab) */
#karma-tasks-grid.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.task-card.compact-task-card {
  display: flex;
  flex-direction: row;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  min-height: 122px;
}

.task-card.compact-task-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.task-card.compact-task-card .task-image-box {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: auto;
  align-self: stretch;
  position: relative;
  background: var(--surface-container);
  overflow: hidden;
  flex-shrink: 0;
}

.task-card.compact-task-card .task-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.task-card.compact-task-card:hover .task-image {
  transform: scale(1.05);
}

.task-card.compact-task-card .task-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.task-card.compact-task-card .task-content {
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.task-card.compact-task-card .task-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.task-card.compact-task-card .task-header-row .badge {
  font-size: 0.72rem;
  padding: 1px 6px;
}

.task-card.compact-task-card .task-budget-tag {
  position: static;
  background: #eff6ff;
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  backdrop-filter: none;
  border: 1px solid rgba(37, 99, 235, 0.2);
  line-height: 1.2;
}

.task-card.compact-task-card .task-title {
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card.compact-task-card .task-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.task-card.compact-task-card .task-meta-row {
  display: flex;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.task-card.compact-task-card .task-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.task-card.compact-task-card .task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
}

.task-card.compact-task-card .task-provider {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card.compact-task-card .btn-primary {
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* PROFILE SCREEN (Deep link / Visvakarma style) */
.profile-view {
  max-width: 800px;
  margin: 0 auto;
}

.profile-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.profile-breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.profile-hero-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.profile-header-split {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.profile-info {
  flex: 1;
  min-width: 240px;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.profile-role-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.profile-user-id {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.profile-quick-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* PROFILE STATS 2x2 BOXES */
.stats-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-box {
  background: var(--surface-container);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-box-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-box-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.25rem;
}

.stars-row {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
  font-size: 0.9rem;
  margin-top: 2px;
}

/* SECTION CARDS */
.section-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.section-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

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

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* SKILLS CHIPS DISPLAY */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

/* RATING STARS INTERACTIVE COMPONENT */
.interactive-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* MODAL DIALOGS (Strict Compliance with Modern Web Guidance) */
dialog:modal {
  overscroll-behavior: contain;
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  width: 90vw;
  margin: auto;
  padding: 0;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--surface-container);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* FORM CONTROLS */
.form-group {
  margin-bottom: 1.1rem;
}

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

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-dim);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--surface-card);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

/* Modern Web Guidance: non-intrusive validation feedback after interaction */
.form-control:user-invalid {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.form-control:user-valid:not(:placeholder-shown) {
  border-color: var(--success);
}

/* View Transitions API for smooth app-like transitions */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* MOBILE FLOATING ACTION BUTTON (FAB) */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  right: 18px;
  z-index: 990;
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  height: 50px;
  padding: 0 18px;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.45);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  backdrop-filter: blur(4px);
}

.mobile-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(25, 118, 210, 0.55);
}

.mobile-fab:active {
  transform: scale(0.94);
}

.mobile-fab .material-symbols-outlined {
  font-size: 22px;
}

/* BOTTOM NAVBAR (Mobile App Experience) */
.mobile-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .mobile-navbar {
  background: rgba(15, 23, 42, 0.95);
  border-top-color: #334155;
}

.mobile-nav-items {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  height: 100%;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

.mobile-nav-btn:active {
  transform: scale(0.92);
}

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

.mobile-nav-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600;
  transform: translateY(-1px);
}

.mobile-nav-btn.active::after {
  content: '';
  position: absolute;
  top: 4px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.mobile-nav-btn .material-symbols-outlined {
  font-size: 1.4rem;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE ARCHITECTURE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide Desktop navigation, enable Mobile App navigation */
  .desktop-tabs {
    display: none !important;
  }
  .mobile-navbar {
    display: block !important;
  }
  .mobile-fab {
    display: inline-flex !important;
  }

  /* Main viewport padding with safe area compensation */
  .main-wrapper {
    padding: 0.85rem 0.75rem calc(80px + env(safe-area-inset-bottom, 0px)) 0.75rem !important;
    max-width: 100vw !important;
  }

  /* Compact Sleek Top Navbar */
  .top-navbar {
    height: 56px !important;
  }
  .nav-container {
    padding: 0 0.65rem !important;
    gap: 0.35rem !important;
  }
  .brand-logo {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
  }
  .brand-title {
    font-size: 1.05rem !important;
    letter-spacing: 0.02em !important;
  }
  .brand-subtitle {
    display: none !important;
  }
  .nav-actions {
    gap: 0.3rem !important;
  }

  /* Compact Action Buttons in Top Navbar */
  #btn-login-trigger {
    padding: 0.28rem 0.55rem !important;
    font-size: 0.75rem !important;
  }
  #btn-login-trigger .login-text-full {
    display: none !important;
  }
  #btn-login-trigger .login-text-short {
    display: inline !important;
  }

  #btn-nav-worker {
    padding: 0.3rem 0.5rem !important;
    border-radius: var(--radius-full) !important;
  }
  #btn-nav-worker .nav-btn-text {
    display: none !important;
  }

  .btn-points-nav {
    padding: 0.28rem 0.55rem !important;
    font-size: 0.74rem !important;
  }

  .user-switcher select {
    display: none !important;
  }
  .user-switcher {
    padding: 2px !important;
    border: none !important;
    background: transparent !important;
  }

  #btn-theme-toggle,
  #btn-ai-assistant {
    width: 32px !important;
    height: 32px !important;
  }

  /* View Header and Title Bars */
  .view-header {
    margin-bottom: 0.85rem !important;
    gap: 0.5rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .view-header .btn-primary {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }
  .view-title-group h2 {
    font-size: 1.25rem !important;
  }
  .view-title-group p {
    font-size: 0.8rem !important;
  }

  /* Search & Filter Bar Mobile */
  .search-filter-box {
    padding: 0.7rem !important;
    margin-bottom: 1rem !important;
    border-radius: var(--radius-sm) !important;
  }
  .search-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 0.6rem 0.85rem 0.6rem 2.4rem !important;
  }

  /* Category Filter Chips Horizontal Smooth Touch Scroll */
  .filter-chips {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    padding: 2px 0 6px 0 !important;
    gap: 0.45rem !important;
  }
  .filter-chips::-webkit-scrollbar {
    display: none !important;
  }
  .chip {
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.84rem !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Trust & Safety Strip Horizontal Snap Swipe */
  .trust-safety-strip {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 0.65rem !important;
    padding-bottom: 6px !important;
    margin-bottom: 1rem !important;
  }
  .trust-safety-strip::-webkit-scrollbar {
    display: none !important;
  }
  .trust-item {
    flex: 0 0 240px !important;
    scroll-snap-align: start !important;
    padding: 0.75rem 0.85rem !important;
  }

  /* Annual Awards Banner Mobile Stack */
  .annual-awards-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1rem !important;
    gap: 0.85rem !important;
    text-align: left !important;
  }
  .annual-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Smart Matcher Banner Mobile Stack */
  .smart-matcher-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1rem !important;
    gap: 0.85rem !important;
    text-align: left !important;
  }
  .btn-smart-matcher {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Subview Switcher Buttons */
  .karma-subview-switcher {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .karma-subview-switcher button {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  /* Grids: Single Column on Mobile */
  .tasks-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .comparison-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
    margin-bottom: 1rem !important;
  }
  .metric-card {
    padding: 0.75rem 0.85rem !important;
    gap: 0.65rem !important;
  }
  .metric-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.15rem !important;
    border-radius: 8px !important;
  }
  .metric-value {
    font-size: 1.2rem !important;
  }
  .metric-label {
    font-size: 0.7rem !important;
  }

  /* Task Card Mobile */
  .task-card:not(.compact-task-card) .task-image-box {
    height: 160px !important;
  }
  .task-card:not(.compact-task-card) .task-content {
    padding: 0.95rem !important;
  }
  .task-card:not(.compact-task-card) .task-meta-row {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }
  .task-card:not(.compact-task-card) .btn-primary {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Compact Task Card Mobile */
  #karma-tasks-grid.tasks-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
  .task-card.compact-task-card {
    min-height: 110px !important;
    flex-direction: row !important;
  }
  .task-card.compact-task-card .task-image-box {
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    height: auto !important;
    align-self: stretch !important;
  }
  .task-card.compact-task-card .task-content {
    padding: 0.55rem 0.65rem !important;
    gap: 0.25rem !important;
  }
  .task-card.compact-task-card .task-title {
    font-size: 0.88rem !important;
  }
  .task-card.compact-task-card .task-budget-tag {
    font-size: 0.85rem !important;
    padding: 1px 5px !important;
  }
  .task-card.compact-task-card .btn-primary {
    width: auto !important;
    min-height: 30px !important;
    padding: 0.25rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  /* Worker Card Mobile */
  .worker-card {
    padding: 1rem !important;
  }
  .worker-card-actions {
    flex-direction: row !important;
    gap: 0.4rem !important;
  }
  .worker-card-actions button,
  .worker-card-actions a {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Profile View Mobile App Style */
  .profile-header-split {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.85rem !important;
  }
  .profile-avatar-lg {
    width: 80px !important;
    height: 80px !important;
  }
  .profile-role-line {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  .profile-quick-actions {
    justify-content: center !important;
    width: 100% !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
  }
  .profile-quick-actions button {
    flex: 1 1 30% !important;
    justify-content: center !important;
    padding: 0.5rem 0.4rem !important;
    font-size: 0.78rem !important;
    min-height: 40px !important;
  }
  .stats-2x2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
  }
  .stat-box {
    padding: 0.85rem 0.5rem !important;
  }
  .stat-box-num {
    font-size: 1.35rem !important;
  }
  .detail-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    padding: 0.55rem 0 !important;
  }
  .detail-value {
    text-align: left !important;
    word-break: break-all !important;
  }

  /* Form Inputs iOS Compliance */
  input, select, textarea, .form-control {
    font-size: 16px !important; /* Critical to prevent iOS auto-zoom */
  }

  /* Native Mobile Bottom Sheet Modals */
  dialog:modal {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    max-height: 88vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: bottomSheetSlide 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  dialog::backdrop {
    backdrop-filter: blur(6px) !important;
    background-color: rgba(15, 23, 42, 0.65) !important;
  }

  .modal-header {
    position: relative !important;
    padding: 1.1rem 1.25rem 0.75rem 1.25rem !important;
    flex-shrink: 0 !important;
  }
  .modal-header::before {
    content: '' !important;
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 40px !important;
    height: 4px !important;
    background: var(--border) !important;
    border-radius: 2px !important;
  }
  .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 1rem 1.15rem !important;
    max-height: calc(88vh - 125px) !important;
  }
  .modal-footer {
    flex-shrink: 0 !important;
    padding: 0.75rem 1.15rem !important;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--surface-card) !important;
    display: flex !important;
    gap: 0.5rem !important;
  }
  .modal-footer button {
    flex: 1 !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  @keyframes bottomSheetSlide {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Leaderboard & Tables Responsive */
  .section-card table {
    min-width: 480px !important;
  }
}

/* ==========================================================================
   ULTRA-COMPACT SCREENS (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .brand-title {
    font-size: 0.98rem !important;
  }
  #btn-login-trigger {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.72rem !important;
  }
  .btn-points-nav {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.72rem !important;
  }
  .interactive-rating .star-btn {
    font-size: 1.6rem !important;
  }
  dialog:modal {
    max-height: 92vh !important;
  }
  .modal-body {
    max-height: calc(92vh - 125px) !important;
  }
}

/* AUTHENTICATION UI (Google Account & Email/Password) */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.btn-google:hover {
  background-color: #f8fafd;
  border-color: #c2e7ff;
  box-shadow: 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 0.75rem;
  letter-spacing: 0.05em;
}

.auth-alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-alert.error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: block;
}

.auth-alert.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.2);
  display: block;
}

.auth-user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 4px;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-signout {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-signout:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* WORKER CREATION & DIRECTORY STYLES */
.btn-worker-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-worker-nav:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.worker-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.worker-cta-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1;
  min-width: 260px;
}

.worker-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(25, 118, 210, 0.25);
  border: 1px solid rgba(25, 118, 210, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.worker-cta-icon .material-symbols-outlined {
  font-size: 28px;
}

.worker-cta-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.worker-cta-text p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.btn-worker-cta {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

.btn-worker-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.subview-toggle-bar {
  display: flex;
  background: var(--surface-container);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  gap: 4px;
}

.subview-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.subview-btn.active {
  background: var(--surface-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.subview-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.preset-avatar-btn {
  background: var(--surface-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.preset-avatar-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* WORKER DIRECTORY CARD */
.worker-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.worker-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.worker-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.worker-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.worker-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.worker-card-rating {
  font-size: 0.85rem;
  color: #f59e0b;
  margin-top: 3px;
}

.worker-card-bio {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.worker-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.worker-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.worker-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25d366;
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1eb857;
  color: #ffffff;
}

/* ==========================================================================
   URBAN COMPANY, UBER EARNER & CARBON GIG FEATURES STYLING
   ========================================================================== */

/* 1. KarmaPoints & Pro Tiers (Uber Pro & UC Rewards Style) */
.btn-points-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-points-nav:hover {
  background: #f59e0b;
  color: #ffffff;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tier-bronze { background: #fed7aa; color: #9a3412; }
.tier-silver { background: #e2e8f0; color: #334155; }
.tier-gold { background: #fef08a; color: #854d0e; border: 1px solid #eab308; }
.tier-diamond { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #3730a3; border: 1px solid #818cf8; }

/* 2. Carbon App Trust Score (Credit / Reliability Indicator) */
.trust-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* 3. Annual Awards Banner & Hall of Fame */
.annual-awards-banner {
  background: linear-gradient(135deg, #422006 0%, #713f12 50%, #854d0e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border: 1px solid rgba(234, 179, 8, 0.3);
  box-shadow: 0 4px 14px rgba(113, 63, 18, 0.25);
}

.annual-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}

.annual-trophy {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(254, 240, 138, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fef08a;
  font-size: 26px;
  flex-shrink: 0;
}

.annual-btn {
  background: #fef08a;
  color: #713f12;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  white-space: nowrap;
}

.annual-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* 4. Trust & Safety Strip (Urban Company style) */
.trust-safety-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.trust-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.trust-item:hover {
  border-color: var(--primary);
  background: var(--surface-dim);
}

.trust-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 5. Smart Matcher Hero Bar */
.smart-matcher-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border: 1px solid rgba(129, 140, 248, 0.25);
  box-shadow: 0 4px 14px rgba(49, 46, 129, 0.25);
}

.btn-smart-matcher {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  white-space: nowrap;
}

.btn-smart-matcher:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* 6. Recent Work Thumbnails & Showcase */
.recent-work-thumb-box {
  background: var(--surface-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recent-work-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.recent-work-info {
  flex: 1;
  min-width: 0;
}

.recent-work-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-work-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 7. Comparison Matrix in Matcher Modal */
.match-candidate-card {
  background: var(--surface-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
}

.match-candidate-card.top-match {
  border-color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.match-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

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

.comparison-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.comparison-label {
  color: var(--text-muted);
}

.comparison-val {
  font-weight: 700;
  color: var(--text-primary);
}

/* 8. Dispute & Mediation Stepper */
.dispute-stepper {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.dispute-step-box {
  flex: 1;
  background: var(--surface-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
}

.dispute-step-box.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 700;
}

/* ==========================================================================
   MODULE 2: REAL-TIME IN-APP CHAT & NOTIFICATIONS
   ========================================================================== */
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#btn-notification-bell.has-unread {
  color: var(--primary);
}

#btn-notification-bell.has-unread .material-symbols-outlined {
  animation: bell-ring 3s ease-in-out infinite;
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-14deg); }
  50% { transform: rotate(0); }
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.notif-item:hover {
  background: var(--surface-dim);
}

.notif-item.unread {
  background: rgba(25, 118, 210, 0.08);
  border-left: 3px solid var(--primary);
}

.notif-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Chat Drawer & Messages */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 480px;
  max-height: 60vh;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface-dim);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.received {
  align-self: flex-start;
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.chat-bubble-author {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-bubble.sent .chat-bubble-author {
  color: rgba(255, 255, 255, 0.9);
}

.chat-bubble.received .chat-bubble-author {
  color: var(--primary);
}

.chat-meta {
  font-size: 0.68rem;
  margin-top: 3px;
  text-align: right;
  opacity: 0.75;
}

.chat-image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 4px;
  object-fit: cover;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   MODULE 3: UPI SETTLEMENT & ITEMIZED RECEIPTS
   ========================================================================== */
.upi-qr-card {
  text-align: center;
  background: #ffffff;
  color: #0f172a;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin: 1rem 0;
}

.upi-qr-image {
  width: 190px;
  height: 190px;
  margin: 0 auto 0.75rem auto;
  display: block;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
}

.receipt-sheet {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  font-family: inherit;
}

.receipt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.receipt-table th {
  background: #f1f5f9;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 700;
}

.receipt-table td {
  padding: 8px 10px;
  border-bottom: 1px dashed #e2e8f0;
}

/* ==========================================================================
   MODULE 4: DYNAMIC TRUST SCORE & KYC
   ========================================================================== */
.trust-score-gauge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--score-pct, 80) * 1%), #e2e8f0 0);
  box-shadow: var(--shadow-sm);
}

.trust-score-inner {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trust-score-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.trust-score-caption {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.kyc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.kyc-badge-verified {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.kyc-badge-pending {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.kyc-badge-unverified {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ==========================================================================
   MODULE 7: ADMIN MODERATION & FAIRPLAY DASHBOARD
   ========================================================================== */
.admin-navbar {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.admin-nav-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

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

.admin-nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  background: var(--surface-dim);
  padding: 10px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* ==========================================================================
   CYCLE 1: TOAST NOTIFICATIONS (Non-blocking modern UI feedback)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 32px);
}

.toast {
  pointer-events: auto;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.toast-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 0 2px 0;
  color: var(--text-primary);
}

.toast-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.35;
}

.toast-success {
  border-left: 4px solid #16a34a;
}
.toast-success .toast-icon {
  color: #16a34a;
}

.toast-error {
  border-left: 4px solid #dc2626;
}
.toast-error .toast-icon {
  color: #dc2626;
}

.toast-info {
  border-left: 4px solid var(--primary);
}
.toast-info .toast-icon {
  color: var(--primary);
}

.toast-points {
  border-left: 4px solid #f59e0b;
}
.toast-points .toast-icon {
  color: #f59e0b;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   CYCLE 4: ACTIVE LOYALTY VOUCHERS CARD ON PROFILE
   ========================================================================== */
.vouchers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.voucher-card {
  background: var(--surface-dim);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.voucher-card:hover {
  border-color: var(--primary);
  background: var(--surface-card);
}

.voucher-code-pill {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(25, 118, 210, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  user-select: all;
}

/* ==========================================================================
   CYCLE 3: PORTFOLIO ADD WORK MODAL & UPLOAD PREVIEWS
   ========================================================================== */
.photo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  background: var(--surface-dim);
  transition: all 0.2s ease;
}

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

.photo-preview-thumb {
  max-height: 120px;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
  margin-top: 8px;
}

/* ==========================================================================
   PROFILE SECTION & REGISTERED DIRECTORY RESPONSIVE STYLES
   ========================================================================== */
.profile-mode-bar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.profile-registered-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 680px) {
  .profile-mode-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .profile-mode-bar > div {
    width: 100% !important;
    justify-content: stretch !important;
  }
  .profile-mode-bar select {
    width: 100% !important;
    max-width: 100% !important;
  }
  .profile-mode-bar button {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-height: 40px !important;
  }
  .admin-user-card {
    padding: 10px !important;
  }
}

/* WORK SAMPLE CAMERA & TIMESTAMP STYLES */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.08); }
}

.photo-source-actions button {
  min-height: 42px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.photo-source-actions button:hover {
  transform: translateY(-1px);
}

#port-camera-container {
  transition: all 0.2s ease;
}

#port-preview-img {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Full Holding UX Elevation: Shimmer Skeleton & Tactile Touch Scaling
   ========================================================================== */
.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.5) 0%, rgba(248, 250, 252, 0.9) 50%, rgba(226, 232, 240, 0.5) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

button:active, .btn:active, .task-card:active, .worker-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}



