/* ==========================================================================
   WorkStation Web App Stylesheet
   Modern, Dark-Mode First Responsive Design Mirroring Android Compose UX
   ========================================================================== */

:root {
  --bg-canvas: #06090e;
  --bg-surface: #0e1522;
  --bg-surface-elevated: #162032;
  --bg-surface-active: #1e2c45;
  --bg-card: #0f1728;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;
  --border-active: rgba(16, 185, 129, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-disabled: #475569;

  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-primary-glow: rgba(16, 185, 129, 0.22);
  --accent-secondary: #3b82f6;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 120px;
  --mobile-nav-height: 68px;
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Global Announcement Banner
   ========================================================================== */
.global-banner {
  background: linear-gradient(90deg, #065f46, #047857);
  color: #ecfdf5;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 100;
}

.global-banner .close-btn {
  background: transparent;
  border: none;
  color: #ecfdf5;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
}

.global-banner .close-btn:hover {
  opacity: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 21, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-primary-glow);
}

.brand-badge svg {
  width: 22px;
  height: 22px;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #f8fafc 40%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.location-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.location-picker svg {
  width: 15px;
  height: 15px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.location-picker select {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 500;
}

.location-picker select option {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.search-container {
  flex: 1;
  max-width: 600px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-container .search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-container input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-container input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.search-container input::placeholder {
  color: var(--text-tertiary);
}

.clear-search {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 18px;
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.primary-post-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-primary-glow);
  transition: transform 0.15s, opacity 0.15s;
}

.primary-post-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.primary-post-btn svg {
  width: 18px;
  height: 18px;
}

.user-menu-wrapper {
  display: flex;
  align-items: center;
}

.auth-nav-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.auth-nav-btn:hover {
  background: var(--bg-surface-active);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.user-name-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Categories Bar
   ========================================================================== */
.categories-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(10, 15, 25, 0.6);
}

.categories-scroll {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-chip svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  transition: color 0.15s;
}

.cat-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.cat-chip:hover svg {
  color: var(--text-primary);
}

.cat-chip.is-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-primary);
}

.cat-chip.is-active svg {
  color: var(--accent-primary);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - var(--header-height));
}

.feed-header, .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-badge {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-surface-elevated);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Tab Pills */
.tab-pill-group {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.pill-btn {
  background: transparent;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn.is-active {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   Listings Grid & Listing Card
   ========================================================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #090d16;
  overflow: hidden;
}

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

.listing-card:hover .card-image {
  transform: scale(1.03);
}

.card-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: linear-gradient(135deg, #0e1522 0%, #162032 100%);
}

.card-image-fallback svg {
  width: 36px;
  height: 36px;
}

.card-sector-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 21, 34, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-governorate-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(14, 21, 34, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-governorate-badge svg {
  width: 12px;
  height: 12px;
  color: var(--accent-primary);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.fact-chip {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -0.3px;
}

.card-period {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 2px;
}

.card-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Empty State & Loader */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
}

.feed-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
  color: var(--text-secondary);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Modals & Bottom Sheets
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  animation: scaleUp 0.2s ease;
}

@keyframes scaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.sheet-drag-handle {
  display: none;
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: -10px auto 16px auto;
}

.close-sheet-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s;
}

.close-sheet-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.sheet-header {
  margin-bottom: 22px;
  padding-right: 36px;
}

.sheet-header h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.sheet-header .subtle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.field select option {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.two-column-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.category-specific-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px dashed rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.field-box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-primary-glow);
  transition: opacity 0.15s, transform 0.15s;
}

.primary-button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.primary-button.full-width {
  width: 100%;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}

/* ==========================================================================
   Listing Detail Sheet Content
   ========================================================================== */
.detail-sheet {
  max-width: 820px;
  padding: 0;
  overflow: hidden;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  background: #000;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 21, 34, 1) 0%, rgba(14, 21, 34, 0) 40%);
}

.detail-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.detail-price-box {
  text-align: right;
}

.detail-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.5px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-description {
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-line;
}

.seller-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  gap: 14px;
}

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

.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.seller-name {
  font-weight: 600;
  font-size: 15px;
}

.seller-role {
  font-size: 12px;
  color: var(--accent-primary);
}

.detail-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.contact-seller-btn {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.contact-seller-btn:hover {
  background: var(--bg-surface-active);
}

.order-now-btn {
  flex: 1.5;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 14px var(--accent-primary-glow);
  transition: transform 0.15s;
}

.order-now-btn:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   Order Modal Details
   ========================================================================== */
.order-item-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.order-preview-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.order-preview-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.order-preview-price {
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 13px;
}

.order-summary-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.summary-line.total-line {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-line.total-line span:last-child {
  color: var(--accent-primary);
}

/* ==========================================================================
   Orders View & Cards
   ========================================================================== */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-id-label {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-tertiary);
}

.order-status-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-assigned { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-in_transit { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-delivered { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.order-card-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.order-info-line {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-info-line strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Profile & Wallet Section
   ========================================================================== */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.profile-header-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-secondary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-banner {
  background: linear-gradient(135deg, #0e1e2d 0%, #122a3f 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wallet-balance-num {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.wallet-balance-num span {
  font-size: 16px;
  color: #93c5fd;
  margin-left: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Mobile Bottom Navigation & Responsiveness
   ========================================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(14, 21, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 90;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 11px;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.15s;
}

.mobile-nav-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-btn.is-active {
  color: var(--accent-primary);
  font-weight: 600;
}

.mobile-nav-post-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 11px;
  cursor: pointer;
  margin-top: -24px;
}

.post-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-primary-glow);
  border: 3px solid var(--bg-canvas);
}

.post-circle svg {
  width: 24px;
  height: 24px;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 768px) {
  .location-picker {
    display: none;
  }

  .primary-post-btn span {
    display: none;
  }

  .primary-post-btn {
    padding: 8px;
  }

  .main-content {
    padding: 16px 16px calc(var(--mobile-nav-height) + 24px) 16px;
  }

  .mobile-nav {
    display: flex;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-sheet {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: none;
    max-height: 85vh;
    padding: 20px;
    animation: slideUpMobile 0.25s ease;
  }

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

  .sheet-drag-handle {
    display: block;
  }

  .two-column-form {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
