:root {
  --primary: #0F172A; /* Deep diplomat slate navy */
  --primary-light: #1E293B;
  --secondary: #2B4C7E; /* Classic diplomatic blue */
  --accent: #C5A059; /* Muted antique gold */
  --accent-light: #F7F3E9;
  --accent-border: #D8C38B;
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --success: #15803D;
  --success-bg: #DCFCE7;
  --warning: #B45309;
  --warning-bg: #FEF3C7;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: #ECEEF2;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Wrapper: Constrained to Mobile/Tablet screen proportions */
.app-wrapper {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.07);
  position: relative;
  padding-bottom: 74px; /* Space for bottom nav */
}

/* Header */
.app-header {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

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

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

.brand-crest {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94A3B8;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-selector-pill {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2px 8px;
  gap: 4px;
  transition: all 0.2s ease;
}

.lang-selector-pill:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.lang-globe-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-select-input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 3px 0;
  font-family: var(--font-sans);
}

.lang-select-input option {
  background-color: #0F172A;
  color: #FFFFFF;
}

.auth-lang-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  margin-top: -6px;
  margin-bottom: 28px;
  background: transparent;
  border: none;
}

.auth-lang-bar .lang-select-input {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.auth-lang-bar .lang-select-input:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.auth-lang-bar .lang-select-input option {
  background-color: #FFFFFF;
  color: var(--text-main);
}

.member-id-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.member-id-pill:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.member-id-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.user-chip {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-chip:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

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

.user-chip-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-chip-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip-loc {
  font-size: 0.65rem;
  color: var(--accent);
}

.chevron-icon {
  color: #94A3B8;
}

/* Mission Bar */
.mission-bar {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-tag {
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22C55E;
}

.role-badge {
  background-color: rgba(197, 160, 89, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
  flex: 1;
}

/* Search Section */
.search-section {
  padding: 14px 16px 8px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 12px;
  gap: 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.search-icon {
  color: var(--text-muted);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-main);
}

.clear-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.filter-action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.filter-action-btn:hover {
  background-color: #F1F5F9;
}

.filter-action-btn.active {
  background-color: #E2E8F0;
  border-color: #94A3B8;
  color: var(--primary);
}

.filter-reset-action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 5px 8px;
  color: #DC2626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.filter-reset-action-btn:hover {
  background-color: #FEE2E2;
  border-color: #FCA5A5;
}

.filter-fav-action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 5px 9px;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-fav-action-btn:hover {
  background-color: #FEF3C7;
  color: #D97706;
  border-color: #FCD34D;
}

.filter-fav-action-btn.active {
  background-color: #FEF3C7;
  color: #D97706;
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Feed Filters Collapsible Panel */
.feed-filters-panel {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.feed-filters-panel.hidden {
  display: none !important;
}

.feed-filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-filter-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.filter-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-price-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 0.82rem;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-main);
  outline: none;
}

.filter-price-input:focus {
  border-color: var(--secondary);
}

.filter-price-separator {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.filter-price-apply-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--secondary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.filter-price-apply-btn:hover {
  background-color: var(--secondary-dark, #0e7490);
}

/* Scope Tabs */
.scope-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.scope-tabs::-webkit-scrollbar {
  display: none;
}

.scope-tab {
  flex: 1;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s;
}

.scope-tab.active {
  background-color: var(--secondary);
  color: #FFFFFF;
  border-color: var(--secondary);
  font-weight: 600;
}

/* Category Carousel */
.category-carousel-wrapper {
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.category-carousel {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.cat-pill.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.cat-icon {
  font-size: 0.95rem;
}

/* Diplomatic Privacy Shield Banner */
.diplomatic-shield-banner {
  background: linear-gradient(90deg, #F8FAFC, #F1F5F9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.banner-icon {
  font-size: 1.1rem;
}

.badge-accent {
  background: var(--accent-light);
  color: #8C6D28;
  border: 1px solid var(--accent-border);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Active Filter Chips */
.active-filters-bar {
  padding: 8px 16px;
  background-color: #EEF2F6;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: 500;
}

.reset-link {
  background: none;
  border: none;
  color: var(--secondary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.72rem;
  margin-left: auto;
}

/* Products Feed */
.products-container {
  padding: 14px 16px;
}

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

.results-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sort-selector select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: var(--text-main);
  outline: none;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:active {
  transform: scale(0.985);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #E2E8F0;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card-condition-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-scope-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
}
}

.card-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

.card-status-sold {
  background: #2563EB;
  color: #FFFFFF;
}

.card-status-deleted {
  background: #DC2626;
  color: #FFFFFF;
}

.card-content {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2px;
}

.card-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.card-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-expiry-badge {
  display: inline-block;
  font-size: 0.65rem;
  color: #B91C1C;
  background: #FEE2E2;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  width: fit-content;
  font-weight: 500;
}

.detail-meta-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.detail-date-pill {
  font-size: 0.78rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.card-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35rem;
}

.card-author-tag {
  margin: 0 0 3px 0 !important;
  font-size: 0.73rem !important;
  line-height: 1.2;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.card-price {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
}

.card-fav-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  color: #94A3B8;
  transition: transform 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.card-fav-btn:hover {
  transform: scale(1.2);
}

.card-fav-btn:active {
  transform: scale(0.9);
}

.card-fav-btn.active {
  color: #F59E0B;
  text-shadow: 0 0 3px rgba(245, 158, 11, 0.4);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-author-origin {
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
  margin-top: 15px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.empty-state h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 680px;
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 60;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s;
}

.nav-item.active {
  color: var(--secondary);
  font-weight: 600;
}

.nav-fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
  border: 3px solid #FFFFFF;
  transition: transform 0.15s ease;
}

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

/* Modals & Bottom Sheets */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: flex-end; /* Sheet on mobile */
  justify-content: center;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-sheet {
  background: var(--bg-surface);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
  .modal-sheet {
    border-radius: 20px;
    max-height: 85vh;
  }
}

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

.modal-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.modal-body-scroll {
  padding: 18px 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.col-5 { flex: 5; }
.col-6 { flex: 6; }
.col-7 { flex: 7; }

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-main);
  background-color: #FFFFFF;
  outline: none;
  transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
}

/* Radio Cards (Requirement 8 Scope) */
.diplomatic-box {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.box-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.box-icon {
  font-size: 1.2rem;
}

.box-title strong {
  font-size: 0.84rem;
  color: var(--primary);
  display: block;
}

.box-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.radio-card {
  border: 1px solid var(--border-medium);
  background: #FFFFFF;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.15s;
}

.radio-card:has(input:checked) {
  border-color: var(--secondary);
  background: #F0F4F8;
}

.radio-card input {
  margin-top: 3px;
}

.card-content .radio-title {
  font-size: 0.78rem;
  font-weight: 600;
  display: block;
}

.card-content .radio-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
}

.radio-option:has(input:checked) {
  border-color: var(--secondary);
  background: #F0F4F8;
}

.radio-option input {
  margin-top: 3px;
}

/* Exclude countries panel (Requirements 8 & 9) */
.exclude-panel {
  margin-top: 12px;
  background: #FFFFFF;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  padding: 12px;
}

.exclude-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.exclude-header label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
}

.input-sm {
  padding: 6px 10px !important;
  font-size: 0.75rem !important;
}

.countries-checkbox-grid {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #FAFAFA;
}

.country-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  cursor: pointer;
  padding: 2px 4px;
}

.country-check-label:hover {
  background: #E2E8F0;
  border-radius: 4px;
}

.selected-exclusions-summary {
  font-size: 0.72rem;
  color: var(--danger);
  font-weight: 500;
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
}

.btn:disabled, .btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.65;
  cursor: not-allowed !important;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: #E2E8F0;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #CBD5E1;
}

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Product Detail Modal */
.detail-cat-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  background-color: #0F172A;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: zoom-in;
}

.detail-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.detail-image-box:hover img {
  transform: scale(1.02);
}

.detail-condition {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(15, 23, 42, 0.7);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  user-select: none;
}

.gallery-nav-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #FFFFFF;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: -6px;
  margin-bottom: 14px;
}

.gallery-thumb-btn {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #E2E8F0;
  transition: all 0.15s ease;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-btn.active {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.3);
}

.detail-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.detail-header-info h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.2;
}

.det-price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 12px;
}

.detail-scope-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.scope-pill {
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.detail-section {
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.detail-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.det-text {
  font-size: 0.86rem;
  color: var(--text-main);
  white-space: pre-line;
}

.author-card {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.author-avatar {
  font-size: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.author-mission {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.author-origin {
  font-size: 0.74rem;
  color: var(--secondary);
  font-weight: 500;
}

/* User Switcher Cards */
.users-quick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-quick-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.user-quick-card:hover {
  border-color: var(--secondary);
  background: #F0F4F8;
}

.user-quick-card.active-user {
  border-color: var(--accent);
  background: #FFFDF9;
  box-shadow: 0 0 0 1px var(--accent);
}

.user-quick-flag {
  font-size: 1.8rem;
}

.user-quick-info {
  flex: 1;
}

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

.user-quick-details {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-quick-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E2E8F0;
  color: var(--text-main);
  font-weight: 600;
}

/* Admin Dashboard (Requirement 6) */
.view-panel {
  padding: 16px;
}

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

.panel-header h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary);
}

.panel-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

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

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  margin: 4px 0 2px;
}

.stat-sub {
  font-size: 0.68rem;
  color: var(--text-light);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.table-container {
  overflow-x: auto;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.admin-table th {
  background: #F8FAFC;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

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

.user-status-pill {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.68rem;
}

.user-status-pill.active {
  background: var(--success-bg);
  color: var(--success);
}

.user-status-pill.suspended {
  background: var(--danger-bg);
  color: var(--danger);
}

.analytics-block {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.analytics-block h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.chart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.76rem;
}

.chart-bar-bg {
  flex: 1;
  height: 10px;
  background: #F1F5F9;
  border-radius: 5px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 5px;
}

/* Profile View */
.profile-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid var(--accent);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.profile-mission {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.profile-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.profile-edit-form {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

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

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

.detail-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-item strong {
  font-size: 0.8rem;
  color: var(--text-main);
}

.profile-actions-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
}

.profile-actions-box h4 {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.profile-actions-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.location-spec-box {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

/* Privacy Preferences Card (Auditorio) */
.profile-privacy-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.privacy-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.privacy-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.privacy-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.privacy-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1.4;
}

.privacy-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.privacy-checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.15s ease;
}

.privacy-checkbox-item:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.privacy-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-checkbox-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.privacy-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

.privacy-item-example {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 2px;
}

.privacy-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.privacy-save-feedback {
  font-size: 0.8rem;
  color: #16A34A;
  font-weight: 600;
}

/* Author Page Privacy Notice */
.author-privacy-notice {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  background: #F1F5F9;
  border-left: 3px solid #64748B;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.author-silhouette-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hidden {
  display: none !important;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-1 { margin-top: 4px; }

/* Photo Uploader Styles */
.file-input-hidden {
  display: none !important;
}

.photo-upload-dropzone {
  border: 2px dashed var(--border-medium);
  background: #F8FAFC;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.photo-upload-dropzone:hover {
  border-color: var(--secondary);
  background: #F1F5F9;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-camera-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.upload-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.photo-preview-wrapper {
  position: relative;
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0F172A;
}

.photo-preview-wrapper img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.btn-remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}

.btn-remove-photo:hover {
  background: #B91C1C;
}

.photo-multi-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.photo-preview-card {
  position: relative;
  width: 100%;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: #0F172A;
  border: 1px solid var(--border-medium);
}

.photo-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-badge-primary {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(14, 116, 144, 0.95);
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  pointer-events: none;
}

.btn-card-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}

.btn-card-remove-photo:hover {
  background: #B91C1C;
}

.photo-add-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 6px;
  gap: 10px;
}

.btn-add-more-photos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  color: var(--secondary);
  border: 1.5px dashed var(--secondary);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-more-photos:hover {
  background: #E0F2FE;
  border-style: solid;
}

.photo-counter-badge {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.url-fallback-details {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.url-fallback-summary {
  cursor: pointer;
  color: var(--secondary);
  font-weight: 500;
}

/* ========================================================
   MESSAGING SYSTEM STYLES (Diplomatic Private Chat)
   ======================================================== */

.nav-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.messages-container {
  display: flex;
  height: calc(100vh - 165px);
  min-height: 440px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin-bottom: 16px;
}

/* Sidebar: Conversations List */
.messages-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: #FAFAFA;
}

.messages-sidebar-header {
  padding: 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
}

.messages-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages-header-title-row h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.badge-count {
  background: var(--accent-subtle);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.messages-header-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.conv-item:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.conv-item.active {
  background: #EEF2F6;
  border-color: var(--secondary);
  box-shadow: inset 3px 0 0 var(--secondary);
}

.conv-thumb-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #E2E8F0;
  flex-shrink: 0;
}

.conv-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.conv-top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.conv-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.conv-prod-title {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.conv-last-msg {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
  margin-left: 4px;
}

.empty-conv {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
}

.empty-conv .empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.empty-conv h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.empty-conv p {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Chat Pane */
.messages-chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  position: relative;
}

.chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
}

.chat-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.chat-placeholder h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.chat-placeholder p {
  font-size: 0.8rem;
  max-width: 320px;
  line-height: 1.5;
}

/* Active Chat Box */
.chat-active-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.chat-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.btn-back-conversations {
  display: none; /* Visible only on mobile */
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}

.chat-product-preview {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-product-preview:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  flex-shrink: 0;
}

.btn-chat-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
}

.btn-chat-header-action:hover {
  background: #F1F5F9;
  color: #1E293B;
  border-color: #CBD5E1;
}

.btn-chat-header-action.btn-chat-report:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.btn-chat-header-action.btn-chat-delete:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.chat-action-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.chat-product-preview img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-prod-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-prod-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-prod-price {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
}

/* Chat History Messages */
.chat-messages-history {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
}

.chat-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.chat-bubble-row.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-row.received {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.chat-bubble-row.sent .chat-bubble {
  background: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

.chat-bubble-row.received .chat-bubble {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.chat-msg-time {
  font-size: 0.65rem;
  color: #94A3B8;
  margin-top: 3px;
  padding: 0 4px;
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 10px 14px 12px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.chat-input-bar textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
  background: #F8FAFC;
  resize: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.chat-input-bar textarea:focus {
  background: #FFFFFF;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(43, 76, 126, 0.1);
}

.chat-input-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.btn-chat-send {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.btn-chat-send:hover {
  background: var(--secondary);
}

/* Report Listing Button (Mejora 3: Fuera del recuadro del autor) */
.detail-report-section {
  margin-top: 14px;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}

.btn-report-listing {
  background: transparent;
  color: #DC2626;
  border: 1px dashed #FCA5A5;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  transition: all 0.15s ease;
}

.btn-report-listing:hover {
  background: #FEF2F2;
  border-color: #EF4444;
}

/* Report modal styles */
.report-intro-text {
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.report-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.report-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dark);
  cursor: pointer;
}

.report-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.report-badge-pending {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
}

.report-badge-resolved {
  background: #DCFCE7;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
}

.report-badge-dismissed {
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
}

/* Disabled button state for self product */
.btn-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: #94A3B8 !important;
  border-color: #94A3B8 !important;
}

/* Responsive Mobile Chat Layout */
@media (max-width: 768px) {
  .messages-container {
    height: calc(100vh - 150px);
    margin-bottom: 10px;
  }

  .messages-sidebar {
    width: 100%;
  }

  .messages-chat-pane {
    display: none;
    width: 100%;
  }

  /* When chat is active on mobile */
  .messages-container.chat-open .messages-sidebar {
    display: none;
  }

  .messages-container.chat-open .messages-chat-pane {
    display: flex;
  }

  .btn-back-conversations {
    display: flex;
  }

  .chat-product-preview {
    max-width: none;
    padding: 4px 8px;
    gap: 8px;
  }

  .chat-product-preview img {
    width: 32px;
    height: 32px;
  }

  .chat-prod-title {
    font-size: 0.74rem;
  }

  .chat-prod-price {
    font-size: 0.68rem;
  }

  .chat-header-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  .btn-chat-header-action {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .btn-chat-header-action .chat-action-text {
    display: inline;
  }
}

/* ========================================================
   AUTHENTICATION & WELCOME SCREEN (Acceso Registrado)
   ======================================================== */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 30px 24px;
  animation: fadeInAuth 0.3s ease-out;
}

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

.auth-branding {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 32px;
}

.auth-crest {
  display: none !important;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.auth-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 12px;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .auth-title {
    font-size: 2.35rem;
  }
  .auth-subtitle {
    font-size: 1.02rem;
  }
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

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

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

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-lg {
  padding: 12px 20px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

/* Friendly Auth Form & Larger Inputs (Requisito 8) */
.auth-form-friendly {
  gap: 16px !important;
}

.auth-label-friendly {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  margin-bottom: 6px !important;
  display: block;
}

.auth-input-wrapper {
  position: relative;
  width: 100%;
}

.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-friendly {
  width: 100% !important;
  padding: 14px 16px !important;
  font-size: 1.02rem !important;
  color: #0F172A !important;
  background-color: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.auth-password-wrapper .auth-input-friendly {
  padding-right: 48px !important;
}

.auth-input-friendly:focus {
  background-color: #FFFFFF !important;
  border-color: #0F172A !important;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08) !important;
  outline: none !important;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  user-select: none;
}

.btn-toggle-password:hover {
  opacity: 1;
}

.btn-auth-submit {
  margin-top: 6px;
  padding: 14px 20px !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  background: #0F172A !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22) !important;
}

.auth-error-msg {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-test-credentials {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  text-align: left;
}

.cred-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cred-chip {
  background: #F1F5F9;
  color: var(--secondary);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #E2E8F0;
  transition: all 0.15s ease;
}

.cred-chip:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Verification Code Step */
.verification-box {
  text-align: center;
  padding: 10px 0;
}

.verification-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.verification-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.verification-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.highlight-email {
  color: var(--primary);
  font-weight: 700;
}

.dev-code-alert {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.dev-alert-icon {
  font-size: 1.4rem;
}

.dev-alert-content {
  font-size: 0.78rem;
  color: #1E40AF;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-code-badge {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #1D4ED8;
}

.code-input-wrapper {
  margin: 14px 0 16px;
}

.code-input-wrapper input {
  font-family: monospace;
  font-size: 1.8rem !important;
  font-weight: 800;
  letter-spacing: 12px;
  text-align: center;
  padding: 12px 16px !important;
  border: 2px solid var(--secondary) !important;
  border-radius: 12px !important;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  display: block;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.btn-link.text-muted {
  color: var(--text-muted);
  text-decoration: none;
}

/* RTL Support for Arabic (العربية) */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .user-chip-text {
  text-align: right;
}

html[dir="rtl"] .search-bar input {
  padding-right: 38px;
  padding-left: 36px;
}

html[dir="rtl"] .search-icon {
  right: 12px;
  left: auto;
}

html[dir="rtl"] .clear-btn {
  left: 42px;
  right: auto;
}

html[dir="rtl"] .filter-action-btn {
  left: 6px;
  right: auto;
}

html[dir="rtl"] .messages-sidebar {
  border-left: 1px solid var(--border-subtle);
  border-right: none;
}

html[dir="rtl"] .chat-user-meta {
  text-align: right;
}

html[dir="rtl"] .modal-header .close-modal-btn {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .auth-lang-bar {
  justify-content: flex-start;
}

/* Diplomatic Verification Banner & Card */
.diplomatic-status-banner {
  margin-bottom: 16px;
}

.status-box {
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.status-box-warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.status-box-info {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

.status-box-success {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}

.status-box-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-box-icon {
  font-size: 1.5rem;
  line-height: 1.2;
}

.status-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.status-box-sub {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 4px;
  opacity: 0.9;
}

.status-box-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.submitted-doc-pill {
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
}

.doc-upload-container {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 12px;
}

.doc-upload-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 540px) {
  .doc-upload-row {
    flex-direction: row;
    align-items: center;
  }
}

.btn-doc-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-doc-upload:hover {
  background-color: var(--secondary);
}

.doc-upload-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #78350F;
  margin: 0;
}

.doc-feedback-badge {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Admin Verification Badges & Buttons */
.badge-verified {
  background: #DCFCE7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.badge-submitted {
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.badge-pending {
  background: #F1F5F9;
  color: #64748B;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-block;
}

.badge-rejected {
  background: #FEE2E2;
  color: #991B1B;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-block;
}

.admin-actions-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ========================================================
   REQUISITO 1: MIS PUBLICACIONES & SELECTOR PUBLICAR
   ======================================================== */

/* Publish choice action cards */
.choice-action-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
  font-family: inherit;
}

.choice-action-card:active {
  background: #F8FAFC;
  transform: scale(0.98);
}

.choice-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.choice-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.choice-content strong {
  font-size: 0.92rem;
  color: var(--primary);
}

.choice-content span {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.choice-arrow {
  font-size: 1.4rem;
  color: #94A3B8;
  font-weight: 300;
}

/* My Listings List & Cards */
.my-listings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.my-listing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.my-listing-card.status-sold-card {
  opacity: 0.78;
  background: #F8FAFC;
}

.my-listing-card.status-unavailable-card {
  opacity: 0.78;
  background: #FFFBEB;
}

.my-listing-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.my-listing-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: #F1F5F9;
}

.my-listing-details {
  flex: 1;
  min-width: 0;
}

.my-listing-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.my-listing-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.my-listing-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.my-listing-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Badges for status */
.badge-status-active {
  background: #DCFCE7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status-sold {
  background: #E0E7FF;
  color: #3730A3;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status-unavailable {
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status-expired {
  background: #FEE2E2;
  color: #991B1B;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.my-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.btn-listing-action {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: #FFFFFF;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-listing-action:active {
  transform: scale(0.96);
}

.btn-action-sold {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.btn-action-unavailable {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.btn-action-reactivate {
  background: #F0FDF4;
  color: #15803D;
  border-color: #BBF7D0;
}

.btn-action-delete {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.btn-action-delete:hover {
  background: #FEE2E2;
}

/* ========================================================
   REQUISITO 2: PERFIL DE AUTOR Y SUS PUBLICACIONES
   ======================================================== */
.author-profile-header {
  margin-bottom: 16px;
}

.btn-back-from-author {
  margin-bottom: 12px;
  cursor: pointer;
}

.author-banner-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.author-banner-avatar {
  font-size: 2.2rem;
  background: #F8FAFC;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.author-banner-info {
  flex: 1;
  min-width: 0;
}

.author-banner-info h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.author-banner-username {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

.author-banner-meta {
  font-size: 0.74rem;
  color: var(--text-dark);
  margin-top: 3px;
}

/* Product Detail Header Layout & Contact Button */
.detail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}

.detail-modal-header .detail-cat-badge {
  max-width: 32%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-contact-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 26px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.btn-contact-header:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-contact-header:active {
  transform: translateY(0) scale(0.98);
}

.btn-contact-header.btn-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: #94A3B8 !important;
  border-color: #94A3B8 !important;
  transform: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

/* Favorite Star Row in Product Detail */
.detail-fav-row {
  margin-top: 8px;
  margin-bottom: 6px;
}

.btn-det-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  transition: all 0.2s ease;
}

.btn-det-fav:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #B45309;
}

.btn-det-fav.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #B45309;
}

.det-fav-star {
  font-size: 1.15rem;
  color: #F59E0B;
  line-height: 1;
}

.det-fav-label {
  font-size: 0.8rem;
}

/* Email Verification Notice Card (Formal & Diplomatic) */
.email-notice-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #2B4C7E;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 20px 0;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.5;
}

.notice-sender-line {
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sender-highlight {
  color: #0F172A;
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

.notice-spam-tip {
  color: #64748B;
  font-size: 0.83rem;
  border-top: 1px dashed #CBD5E1;
  padding-top: 8px;
  margin-top: 6px;
}

.btn-resend-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  color: #94A3B8 !important;
  text-decoration: none !important;
}

/* Visor / Lightbox a Pantalla Completa (Zoom In de Fotos) */
.image-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  user-select: none;
}

.image-lightbox-modal.hidden {
  display: none !important;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  animation: zoomInAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInAnim {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(1.08);
}




