/* ============================================================================
   ARTWALLS - MOBILE-FIRST RESPONSIVE STYLES
   ============================================================================ */

/* ============================================================================
   1. RESET & BASE
   ============================================================================ */

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

:root {
  /* Colors */
  --primary: #4285f4;
  --primary-dark: #357ae8;
  --secondary: #666;
  --success: #22c55e;
  --success-dark: #16a34a;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --error: #dc2626;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --border: #e0e0e0;
  --bg: #f5f5f5;
  --white: #ffffff;
  
  /* Spacing (mobile-first) */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Touch targets (min 44x44px for accessibility) */
  --touch-target: 44px;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  overflow-x: hidden;
}

/* ============================================================================
   2. NAVIGATION (MOBILE-FIRST)
   ============================================================================ */

nav,
.shop-nav,
.artist-nav,
.scout-nav,
.buyer-nav,
.venue-owner-nav {
  background: #e8e8e8;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: white;
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.nav-links a {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-welcome {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: var(--spacing-sm) 0;
}

/* Admin Navigation */
.admin-nav {
  background: #e8e8e8;
  padding: var(--spacing-lg) var(--spacing-xl);
}

.admin-nav .nav-brand h1 {
  font-size: 22px;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: var(--spacing-md);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  top: 0;
}

/* Unified Navigation (ADR-038) */
/* Sticky header - must be on header element, not nav inside it */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.unified-nav {
  background: #e8e8e8;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unified-nav .nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.unified-nav .nav-brand img {
  height: 40px;
  width: auto;
}

.unified-nav .nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.unified-nav .nav-links a {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.unified-nav .nav-links a:hover,
.unified-nav .nav-links a:active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Active state for current role's dashboard link */
.unified-nav .nav-links a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

.nav-links form[action="/locale"] {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-left: var(--spacing-sm);
}

.nav-links form[action="/locale"] button[type="submit"] {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.375rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.nav-links form[action="/locale"] button[type="submit"]:hover,
.nav-links form[action="/locale"] button[type="submit"]:active {
  background: white;
  border-color: var(--primary);
  box-shadow: none;
  transform: none;
}

.nav-links form[action="/locale"] button[type="submit"].active,
.nav-links form[action="/locale"] button[type="submit"][aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary-dark);
}

.nav-links form[action="/locale"] button[type="submit"]:focus-visible {
  outline-offset: 3px;
  border-color: var(--primary-dark);
}

.nav-links form[action="/locale"] button[type="submit"] img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}

/* Unified Footer */
.site-footer {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-light);
  font-size: 14px;
}

/* ============================================================================
   3. MAIN CONTENT AREAS
   ============================================================================ */

main,
.admin-main,
.artist-main,
.scout-main,
.shop-main,
.venue-owner-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  min-height: calc(100vh - 200px);
}

/* ============================================================================
   4. TYPOGRAPHY (FLUID & RESPONSIVE)
   ============================================================================ */

h1 {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: clamp(18px, 3.5vw, 22px);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

p {
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

/* ============================================================================
   5. BUTTONS (MOBILE-OPTIMIZED)
   ============================================================================ */

.btn,
button[type="submit"],
button[type="button"]:not(.dashboard-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: var(--touch-target);
  line-height: 1;
  text-align: center;
  font-family: inherit;
}

.btn:hover,
.btn:active,
button[type="submit"]:hover,
button[type="submit"]:active,
button[type="button"]:not(.dashboard-btn):hover,
button[type="button"]:not(.dashboard-btn):active {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: #555;
}

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

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

.btn-success {
  background: var(--success);
}

.btn-success:hover {
  background: var(--success-dark);
}

.btn-warning {
  background: var(--warning);
  color: #1f2937;
}

.btn-warning:hover {
  background: var(--warning-dark);
  color: white;
}

.btn-danger {
  background: var(--error);
}

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

.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-secondary:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 14px;
  min-height: 36px;
}

.btn-lg,
.btn-large {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 18px;
  min-height: 56px;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Full-width buttons on small screens */
@media (max-width: 480px) {
  .btn-lg,
  .btn-large,
  .btn-purchase {
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* ============================================================================
   6. CARDS & GRIDS (RESPONSIVE)
   ============================================================================ */

/* Product Grid - Mobile First */
.products-grid,
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: var(--spacing-md);
  position: relative;
}

/* Product Cell & Thumbnail (Buyer Dashboard) */
.product-cell {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Large Product Card (Order Details) */
.product-card-large {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.product-card-large img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card-large .card-content {
  padding: var(--spacing-lg);
}

@media (min-width: 1024px) {
  .product-card-large img {
    max-width: 400px;
  }
}

.product-card:hover,
.product-card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card.sold {
  opacity: 0.7;
}

.product-card img,
.product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
}

.product-card h4,
.product-info h3 {
  font-size: 18px;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.artist-name {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
}

.price {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 700;
  color: var(--success);
  margin: var(--spacing-sm) 0;
}

/* Stat Cards */
.stat-card {
  position: relative;
  border: 1px solid rgba(148, 163, 253, 0.16);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.06), #ffffff);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card h3 {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: var(--spacing-sm) 0;
}

.stat-label {
  font-size: 14px;
  color: var(--text-lighter);
}

.stat-card-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-card-highlight h3,
.stat-card-highlight .stat-value,
.stat-card-highlight .stat-label {
  color: white;
}

/* ============================================================================
   7. FORMS (MOBILE-OPTIMIZED)
   ============================================================================ */

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-container h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--text);
}

.product-form fieldset,
.venue-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.product-form legend,
.venue-form legend {
  font-weight: 600;
  color: var(--text);
  padding: 0 var(--spacing-sm);
  font-size: 16px;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  min-height: var(--touch-target);
  -webkit-appearance: none;
  appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-group small {
  display: block;
  color: var(--text-light);
  font-size: 12px;
  margin-top: var(--spacing-xs);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
}

.error-message {
  display: block;
  color: var(--error);
  font-size: 12px;
  margin-top: var(--spacing-xs);
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

/* ============================================================================
   8. SHOP-SPECIFIC STYLES
   ============================================================================ */

.shop-header {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-xl);
}

.shop-header h1 {
  margin-bottom: var(--spacing-sm);
}

.shop-header p {
  font-size: clamp(16px, 3vw, 18px);
  color: var(--text-light);
}

/* Search Box */
.shop-search {
  margin: var(--spacing-lg) 0;
  position: relative;
}

.shop-search .search-input {
  width: 100%;
  padding: var(--spacing-md);
  font-size: 16px; /* Prevent iOS zoom */
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  background: white;
  min-height: var(--touch-target);
}

.shop-search .search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.shop-search .search-input::placeholder {
  color: #94a3b8;
}

/* Filter Buttons */
.shop-filters,
.filter-buttons {
  display: flex;
  gap: var(--spacing-xs);
  margin: var(--spacing-lg) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: var(--touch-target);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Placement Badges */
.placement-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--success);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.placement-badge.not-placed {
  background: #94a3b8;
}

/* Venue Links */
.venue-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  background: #f1f5f9;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #334155;
  transition: all 0.2s;
  min-height: var(--touch-target);
}

.venue-link:hover,
.venue-link:active {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.product-image-large {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.product-info-detailed h1 {
  margin-bottom: var(--spacing-sm);
}

.price-large {
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 700;
  color: var(--success);
  margin: var(--spacing-lg) 0;
}

/* Purchase Button */
.btn-purchase {
  background: var(--success);
  color: white;
  padding: var(--spacing-lg) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  min-height: 56px;
}

.btn-purchase:hover {
  background: var(--success-dark);
}

/* ============================================================================
   9. BADGES
   ============================================================================ */

.badge {
  display: inline-block;
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-sold {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-warning {
  background: #fff3e0;
  color: #e65100;
}

.badge-inactive {
  background: #f5f5f5;
  color: #757575;
}

.badge-paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-pending {
  background: #fff3e0;
  color: #e65100;
}

.badge-failed {
  background: #ffebee;
  color: #c62828;
}

.badge-buyer {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-artist {
  background: #e8f5f9;
  color: #2e7d32;
}

.badge-venue_scout {
  background: #fff3e0;
  color: #e65100;
}

.badge-admin {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-available {
  background: #e8f5e9;
  color: #2e7d32;
}

/* ============================================================================
   10. TABLES (RESPONSIVE)
   ============================================================================ */

.data-table,
.orders-table,
.products-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin: var(--spacing-lg) 0;
  display: block;
}

.data-table th,
.data-table td,
.orders-table th,
.orders-table td,
.products-table th,
.products-table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.data-table th,
.orders-table th,
.products-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table tr:last-child td,
.orders-table tr:last-child td,
.products-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover,
.orders-table tr:hover,
.products-table tr:hover {
  background: #f9fafb;
}

.clickable-row {
  cursor: pointer;
}

/* Venue owner notifications */
.venue-owner-main .dashboard-header.centered {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.venue-owner-main .header-left {
  justify-self: start;
}

.venue-owner-main .header-right {
  justify-self: end;
}

.venue-owner-main .dashboard-header.centered h2 {
  margin: 0;
}

.venue-owner-main .filter-tabs.buttons {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.venue-owner-main .notifications-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.venue-owner-main .notifications-table th,
.venue-owner-main .notifications-table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.venue-owner-main .notifications-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f5f5f5;
}

.venue-owner-main .notifications-table tr:last-child td {
  border-bottom: none;
}

.venue-owner-main .notification-row.unread {
  background-color: #f0f7ff;
}

.venue-owner-main .notification-row.unread strong {
  color: #0066cc;
}

.venue-owner-main .notification-message p {
  margin: var(--spacing-xs) 0 0;
  color: var(--text-light);
  font-size: 0.9em;
}

.venue-owner-main .notification-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid #ddd;
  background-color: #f5f5f5;
}

.venue-owner-main .notification-image {
  width: 60px;
  padding-right: 0;
}

.venue-owner-main .notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.venue-owner-main .notification-actions form {
  margin: 0;
}

/* ============================================================================
   11. ALERTS & MESSAGES
   ============================================================================ */

.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-lg);
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #1565c0;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  color: var(--text-lighter);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.empty-state h3 {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

/* ============================================================================
   12. DASHBOARD & SECTIONS
   ============================================================================ */

.dashboard-header,
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-toolbar .filter-tabs.buttons {
  margin-bottom: 0;
}

.filter-toolbar-label {
  font-weight: 600;
  white-space: nowrap;
}

.filter-toolbar-search {
  width: 100%;
  max-width: 300px;
  padding: var(--spacing-sm);
}

.products-section,
.venues-section {
  margin: var(--spacing-xl) 0;
}

.section-description {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

/* Venue Cards */
.venues-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.venue-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

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

.venue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.venue-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

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

.venue-stat strong {
  display: block;
  font-size: 20px;
  color: var(--text);
}

.venue-stat span {
  font-size: 12px;
  color: var(--text-lighter);
}

/* ============================================================================
   13. SUCCESS & INFO PAGES
   ============================================================================ */

.success-container {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: var(--spacing-xl) auto;
}

.success-icon {
  font-size: 64px;
  color: var(--success);
  margin-bottom: var(--spacing-lg);
}

.success-icon::before {
  content: "✓";
}

.success-container h2 {
  color: var(--text);
  margin-bottom: var(--spacing-md);
}

.success-container p {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  font-size: 16px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  align-items: center;
}

/* ============================================================================
   14. FOOTER
   ============================================================================ */

.shop-footer,
.scout-footer,
.venue-owner-footer,
.admin-footer {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  color: var(--text-lighter);
  font-size: 14px;
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--border);
}

/* ============================================================================
   15. VENUE SELECTION
   ============================================================================ */

.venue-selection {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.venue-option {
  display: flex;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all 0.2s;
  min-height: var(--touch-target);
}

.venue-option:hover,
.venue-option:active {
  border-color: var(--primary);
  background: #f8f9ff;
}

.venue-option input[type="radio"] {
  margin-right: var(--spacing-md);
  width: 60px;
  height: 60px;
  cursor: pointer;
  flex-shrink: 0;
}

.artwork-card.selectable input[type="checkbox"] {
  width: 60px;
  height: 60px;
  margin-right: var(--spacing-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.artwork-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #ccc;
  border-color: #ccc;
  color: #666;
}

.step-group {
  margin-bottom: var(--spacing-md);
}

.step-group h3 {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.venue-card-select {
  flex: 1;
}

.venue-card-select h4 {
  font-size: 18px;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.venue-card-select p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: var(--spacing-xs);
}

/* ============================================================================
   16. SEARCH INPUT
   ============================================================================ */

.search-input {
  width: 100%;
  max-width: 400px;
  padding: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  min-height: var(--touch-target);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Shared utilities */
.full-width {
  width: 100%;
}

/* Buyer role upgrades section */
.buyer-main .career-section {
  margin-top: var(--spacing-2xl);
  background: #f8fafc;
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.buyer-main .career-title {
  margin-top: 0;
  margin-bottom: 0;
  color: #1e293b;
}

.buyer-main .career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.buyer-main .career-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.buyer-main .career-card-title {
  margin-top: 0;
  color: #0f172a;
}

.buyer-main .career-copy {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
}

.buyer-main .career-highlight {
  color: #ea580c;
}

.buyer-main .career-status {
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  text-align: center;
}

.buyer-main .career-status-title {
  margin: 0;
  font-weight: 600;
}

.buyer-main .career-status-copy {
  margin: var(--spacing-xs) 0 0;
  font-size: 0.85rem;
}

.buyer-main .career-status-pending {
  background: #fef3c7;
  border: 1px solid #f59e0b;
}

.buyer-main .career-status-pending .career-status-title {
  color: #92400e;
}

.buyer-main .career-status-pending .career-status-copy {
  color: #78350f;
}

.buyer-main .career-status-rejected {
  background: #fee2e2;
  border: 1px solid #ef4444;
}

.buyer-main .career-status-rejected .career-status-title {
  color: #991b1b;
}

.buyer-main .career-status-rejected .career-status-copy {
  color: #7f1d1d;
}

/* ============================================================================
   17. RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Small phones (375px+) */
@media (min-width: 375px) {
  :root {
    --spacing-lg: 20px;
  }
}

/* Large phones (480px+) */
@media (min-width: 480px) {
  .products-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .success-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Tablets portrait (640px+) */
@media (min-width: 640px) {
  :root {
    --spacing-lg: 24px;
    --spacing-xl: 32px;
  }
  
  main,
  .artist-main,
  .scout-main,
  .shop-main,
  .venue-owner-main {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .form-container {
    padding: var(--spacing-xl);
  }
  
  .shop-header {
    padding: var(--spacing-2xl) var(--spacing-xl);
  }
  
  .venues-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets landscape (768px+) */
@media (min-width: 768px) {
  .nav-links {
    gap: var(--spacing-md);
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .products-grid,
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .btn-lg,
  .btn-large,
  .btn-purchase {
    width: auto;
  }
  
  .form-actions .btn {
    width: auto;
  }
}

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
  .products-grid,
  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================================
   18. UTILITY CLASSES
   ============================================================================ */

.sortable-header {
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: inherit;
}

.sortable-header:hover {
  color: var(--primary);
}

.commission-breakdown {
  background: var(--bg);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
}

.product-actions,
.venue-actions {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
}

/* ============================================================================
   19. ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================================
   20. PRINT STYLES
   ============================================================================ */

@media print {
  nav,
  .nav-links,
  .admin-nav,
  .shop-nav,
  footer,
  .btn,
  button {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .product-card,
  .stat-card {
    break-inside: avoid;
  }
}

/* ============================================================================
   21. BOOKING MANAGEMENT FEATURES
   ============================================================================ */

/* Timeline Component */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 20px;
}

.artist-booking-timeline,
.venue-booking-timeline {
  list-style: none;
  padding-left: 30px;
  margin: 20px 0 0;
}

.artist-booking-timeline li,
.venue-booking-timeline li {
  list-style: none;
  position: relative;
  padding-left: 20px;
  margin-bottom: 1rem;
  border-left: 2px solid #eee;
}

.artist-booking-timeline li.completed,
.venue-booking-timeline li.completed {
  border-left-color: #27ae60;
}

.artist-booking-timeline li::before,
.venue-booking-timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #eee;
}

.artist-booking-timeline li.completed::before,
.venue-booking-timeline li.completed::before {
  background: #27ae60;
}

.timeline-item {
  position: relative;
  padding-bottom: 25px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -21px;
  top: 10px;
  bottom: -15px;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child:before {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: -26px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
  background: var(--secondary);
}

.timeline-marker.success {
  background: var(--success);
}

.timeline-marker.error {
  background: var(--error);
}

.timeline-marker.warning {
  background: var(--warning);
}

.timeline-marker.info {
  background: var(--primary);
}

/* Analytics Panel */
.analytics-panel {
  background: #f8f9fa;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.analytics-stat {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-sm);
}

.analytics-stat h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-stat .value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text);
}

.analytics-stat .subvalue {
  font-size: 0.9rem;
  color: var(--text-lighter);
  margin-top: var(--spacing-xs);
}

/* Funnel Chart */
.funnel-chart {
  margin-top: var(--spacing-lg);
}

.funnel-chart h4 {
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.funnel-step {
  color: var(--white);
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  min-width: 150px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.funnel-step:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.funnel-step.pending {
  background: #6c757d;
}

.funnel-step.accepted {
  background: #0d6efd;
}

.funnel-step.delivered {
  background: #0dcaf0;
}

.funnel-step.completed {
  background: var(--success);
}

/* Booking Detail Page */
.booking-detail-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.detail-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
}

.detail-section h3 {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
  font-weight: 600;
  color: var(--text-light);
}

.detail-value {
  color: var(--text);
  text-align: right;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.detail-card:last-child {
  margin-bottom: 0;
}

.detail-card-form {
  margin-top: var(--spacing-md);
}

.detail-card-actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.related-notifications {
  margin-top: var(--spacing-md);
}

.related-notifications h4 {
  margin-top: 0;
}

.badge-offset-sm {
  margin-left: 4px;
}

.badge-offset-md {
  margin-left: 6px;
}

.booking-product-cell {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.booking-product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.booking-action-row {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.booking-inline-form {
  display: inline;
}

.booking-detail-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-sm);
}

.thumbnail-placeholder-large {
  background: #e5e5e5;
  width: 400px;
  height: 300px;
}

.commission-breakdown {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.image-preview-spacer {
  margin-top: 15px;
}

.buyer-application-shell {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
}

.buyer-application-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.buyer-application-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: var(--success);
}

.buyer-application-title {
  color: #0f172a;
  margin-bottom: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
}

.buyer-application-copy {
  color: #64748b;
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.buyer-application-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.buyer-settings-shell {
  max-width: 600px;
  margin: 0 auto;
}

.settings-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.settings-card:last-child {
  margin-bottom: 0;
}

.settings-card-title {
  margin-top: 0;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.settings-card-title-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-field {
  margin-bottom: 1.5rem;
}

.settings-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #334155;
}

.settings-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}

.settings-input:focus,
.invite-manager-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.settings-input-disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.settings-help {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connected-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.connected-account-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.connected-account-name {
  font-weight: 500;
  color: #334155;
}

.connected-account-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.connected-account-status {
  color: #166534;
  font-weight: 500;
  font-size: 0.9rem;
}

.settings-security-panel {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.settings-security-title {
  margin-top: 0;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-security-copy {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.settings-passkey-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid #bbf7d0;
}

.claim-qr-section {
  background: #e6fffa;
  border: 1px solid #b2f5ea;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.claim-qr-code-card {
  background: var(--white);
  padding: 10px;
  border-radius: 4px;
}

.claim-qr-title {
  margin-top: 0;
  color: #234e52;
}

.claim-qr-description {
  margin-bottom: 10px;
  color: #285e61;
}

.claim-qr-link {
  background: var(--white);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e0;
  font-family: monospace;
  font-size: 12px;
  color: #4a5568;
  word-break: break-all;
}

.claim-qr-note {
  color: #718096;
  display: block;
  margin-top: 5px;
}

.invite-manager-card {
  margin: 20px 0;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.invite-manager-title {
  margin-top: 0;
}

.invite-manager-input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  font-family: monospace;
}

.invite-manager-link {
  margin-top: 10px;
}

.notifications-table-icon-col {
  width: 60px;
}

.notifications-table-date-col {
  width: 150px;
}

.notifications-table-actions-col {
  width: 200px;
}

.venue-booking-detail-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  margin-top: 2rem;
}

.artwork-card-large img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.venue-booking-artwork-meta {
  margin-top: 1.5rem;
}

.venue-booking-artwork-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.venue-booking-artist {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.venue-booking-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.venue-booking-side-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 1.5rem;
}

.verify-delivery-card {
  max-width: 800px;
  margin: 0 auto;
}

.verify-delivery-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.verify-delivery-banner {
  background: #e8f5e9;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.verify-delivery-banner h3 {
  margin: 0;
  color: #2e7d32;
}

.verify-delivery-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.verify-delivery-artist {
  color: #666;
}

.verify-delivery-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #27ae60;
}

.verify-delivery-details {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.verify-delivery-details h4 {
  margin-top: 0;
}

.verify-delivery-certification {
  background: #fff3cd;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #ffc107;
}

.verify-delivery-certification h4 {
  margin-top: 0;
  color: #856404;
}

.verify-delivery-certification ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #856404;
}

.verify-delivery-form {
  text-align: center;
}

.verify-delivery-submit {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  min-width: 200px;
}

.help-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

.section-title-reset {
  margin-top: 0;
}

@media (max-width: 800px) {
  .venue-booking-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .buyer-application-actions {
    flex-direction: column;
  }

  .connected-account,
  .connected-account-info,
  .claim-qr-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }

  .artist-booking-timeline,
  .venue-booking-timeline {
    padding-left: 20px;
  }
  
  .timeline-marker {
    left: -21px;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .funnel-step {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}


/* ============================================================================
   ADMIN DASHBOARD - COMPACT STATS & BUTTON GRID
   ============================================================================ */

/* Platform Overview Compact */
.platform-overview-compact {
  margin-bottom: var(--spacing-lg);
}

.compact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.compact-stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.compact-stat-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.compact-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

/* Dashboard Button Grid */
.dashboard-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.dashboard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-btn:hover {
  border-color: var(--primary);
  background: #f8f9ff;
}

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

/* Keep active button highlighted even on hover */
.dashboard-btn.active:hover {
  background: var(--primary-dark);
  color: white;
}

.dashboard-btn .badge {
  margin-left: var(--spacing-xs);
}

.dashboard-welcome {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: #f8f9fa;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .compact-stats {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* ============================================================================
   SALES VIEW FILTERS
   ============================================================================ */

.sales-header {
  margin-bottom: var(--spacing-lg);
}

.sales-header h2 {
  font-size: 24px;
  color: var(--text);
}

.sales-filters {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-xl);
}

.filter-row {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.filter-row:last-of-type {
  margin-bottom: var(--spacing-lg);
}

.filter-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
  padding: var(--spacing-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.sales-table {
  font-size: 14px;
}

.sales-table td {
  vertical-align: middle;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .filter-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-actions .btn {
    width: 100%;
  }
  
  .sales-table {
    font-size: 12px;
  }
  
  .sales-table th,
  .sales-table td {
    padding: var(--spacing-xs);
  }
}

/* ============================================================================
   VENUE PAGE - MODERN GALLERY SHOWCASE DESIGN
   ============================================================================ */

.venue-page-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

/* Hero Section */
.venue-hero-modern {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.venue-hero-modern h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--spacing-sm) 0;
}

.venue-hero-modern .venue-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
  max-width: 600px;
  margin-inline: auto;
}

/* Location Section with Map */
.venue-location-modern {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-xl);
  align-items: start;
}

.location-info h2 {
  font-size: 1.25rem;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text);
}

.location-info address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--spacing-md);
}

.location-info address strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.contact-phone a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-phone a:hover {
  text-decoration: underline;
}

.location-map {
  min-height: 250px;
}

.location-map iframe {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
}

/* Filter Tabs */
.filter-tabs-modern {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.filter-tabs-modern a {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--white);
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.filter-tabs-modern a:hover {
  background: var(--bg);
  color: var(--text);
}

.filter-tabs-modern a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Artwork Gallery */
.venue-gallery {
  margin-bottom: var(--spacing-2xl);
}

.venue-gallery h2 {
  font-size: 1.5rem;
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

/* Artwork Cards */
.artwork-card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.artwork-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.artwork-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.sold-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.artwork-card-modern[data-sold="true"] .artwork-image-wrapper img {
  opacity: 0.7;
}

.artwork-details {
  padding: var(--spacing-md);
}

.artwork-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--text);
  line-height: 1.4;
}

.artwork-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* How to Purchase Section */
.how-to-purchase {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
}

.how-to-purchase h2 {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 var(--spacing-xl) 0;
  color: var(--text);
}

.purchase-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.step {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--text);
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .venue-page-modern {
    padding: var(--spacing-md);
  }

  .venue-hero-modern {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .venue-location-modern {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
  }

  .location-map {
    order: -1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .artwork-image-wrapper img {
    max-width: 100%;
  }

  .purchase-steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .filter-tabs-modern {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
