/* ═══════════════════════════════════════════════
   广易接网 — Unified Design System v3
   Mobile-First · Component-Based · Responsive
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bs-primary: #FF5A3C;
  --bs-primary-rgb: 255, 90, 60;
  --bs-secondary: #8B8682;
  --bs-secondary-rgb: 139, 134, 130;
  --bs-success: #10B981;
  --bs-success-rgb: 16, 185, 129;
  --bs-info: #6366F1;
  --bs-info-rgb: 99, 102, 241;
  --bs-warning: #FFB830;
  --bs-warning-rgb: 255, 184, 48;
  --bs-danger: #EF4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-light: #F8F9FA;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark: #1A1D28;
  --bs-dark-rgb: 26, 29, 40;
  --bs-body-bg: #FFFFFF;
  --bs-body-color: #1F2937;
  --bs-body-color-rgb: 31, 41, 55;
  --bs-border-color: #EBE7E2;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.25rem;
  --bs-box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --bs-box-shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --bs-box-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --bs-font-sans-serif: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  /* Category accent colors (12 categories) */
  --cat-1: #6366F1; --cat-2: #F59E0B; --cat-3: #10B981; --cat-4: #EC4899;
  --cat-5: #3B82F6; --cat-6: #8B5CF6; --cat-7: #06B6D4; --cat-8: #D97706;
  --cat-9: #EF4444; --cat-10: #14B8A6; --cat-11: #F97316; --cat-12: #64748B;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--bs-font-sans-serif);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,134,130,0.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,134,130,0.45); }
::selection { background: rgba(255,90,60,0.18); color: #1A1D28; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { letter-spacing: -0.01em; line-height: 1.3; }
h1 { font-weight: 800; }
h2,h3,h4 { font-weight: 700; }
h5,h6 { font-weight: 650; }
a { color: var(--bs-primary); transition: color 0.2s; text-decoration: none; }
a:hover { color: #e84a2c; }
.text-muted { color: #9CA3AF !important; }
.text-primary { color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.text-dark { color: var(--bs-dark) !important; }
.container { max-width: 1140px; }
.main-content { min-height: calc(100vh - 380px); }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.navbar {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0.6rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
}
.navbar-brand { font-size: 1.15rem; font-weight: 750; color: var(--bs-dark) !important; letter-spacing: -0.02em; }
.navbar-brand:hover { color: var(--bs-primary) !important; }
.nav-link {
  font-weight: 550; font-size: 0.9rem; color: #4B5563 !important;
  padding: 0.4rem 0.85rem !important; border-radius: 0.5rem;
  transition: all 0.2s; margin: 0 0.05rem;
}
.nav-link:hover { color: var(--bs-primary) !important; background: rgba(255,90,60,0.06); }
.nav-link.active { color: var(--bs-primary) !important; background: rgba(255,90,60,0.08); font-weight: 650; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  font-weight: 600; border-radius: 0.6rem; padding: 0.5rem 1.15rem;
  font-size: 0.9rem; letter-spacing: -0.005em;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1); border: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #FF5A3C, #FF3B22); border: none; color: #fff;
  box-shadow: 0 2px 8px rgba(255,90,60,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FF6B50, #FF4D35);
  box-shadow: 0 4px 16px rgba(255,90,60,0.4); transform: translateY(-1px); color: #fff;
}
.btn-outline-primary { color: var(--bs-primary); border: 1.5px solid currentColor; background: transparent; }
.btn-outline-primary:hover {
  background: var(--bs-primary); color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,90,60,0.3);
}
.btn-outline-secondary { color: #8B8682; border: 1.5px solid #D6D3CE; background: transparent; }
.btn-outline-secondary:hover { background: #F5F3F0; border-color: #8B8682; color: #4B5563; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.825rem; border-radius: 0.5rem; }
.btn-lg { padding: 0.7rem 2rem; font-size: 1rem; border-radius: 0.75rem; font-weight: 700; }
.btn-link { color: #8B8682; font-weight: 500; }
.btn-link:hover { color: var(--bs-primary); }
.btn-danger {
  background: linear-gradient(135deg, #FF5A3C, #FF3B22); border: none;
  box-shadow: 0 2px 8px rgba(255,90,60,0.3);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #FF6B50, #FF4D35);
  box-shadow: 0 4px 16px rgba(255,90,60,0.4); transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #10B981, #059669); border: none;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.btn-success:hover { box-shadow: 0 4px 14px rgba(16,185,129,0.4); transform: translateY(-1px); }
/* Touch-friendly: minimum 44px tap target on mobile */
@media (max-width: 768px) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 38px; }
}

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.card {
  border: 1px solid rgba(0,0,0,0.06); background: #fff; border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1); overflow: hidden;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.09) !important; transform: translateY(-3px); }
.card.border-0 { border: none; }
.card.shadow-sm { box-shadow: var(--bs-box-shadow); }
.card-body { padding: 1.35rem; }
.card-footer { background: #FAFAF8; border-top: 1px solid rgba(0,0,0,0.05); }
.hover-shadow { transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.hover-shadow:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important; }
@media (max-width: 768px) {
  .card-body { padding: 1rem; }
}

/* ═══════════════════════════════════════════════
   HERO SECTION — Page Headers
   ═══════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(155deg, #2D3250 0%, #3C4050 40%, #4C5060 100%);
  color: #fff; padding: 4.5rem 0; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,90,60,0.22), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(99,102,241,0.16), transparent 45%),
    radial-gradient(circle at 65% 95%, rgba(255,184,48,0.14), transparent 45%);
}
.hero-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,90,60,0.6), rgba(255,184,48,0.4), transparent);
}
.hero-section h1 { color: #fff; font-size: 2.75rem; letter-spacing: -0.03em; position: relative; z-index: 1; }
.hero-section .text-secondary { color: rgba(255,255,255,0.7) !important; position: relative; z-index: 1; }
.hero-section .btn { position: relative; z-index: 1; }
.hero-section .btn-outline-primary { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.hero-section .btn-outline-primary:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; box-shadow: none; }
.hero-section .btn-primary { background: linear-gradient(135deg, #FF5A3C, #FF3B22); border-color: transparent; color: #fff; }
.hero-section .btn-primary:hover { background: linear-gradient(135deg, #FF6B50, #FF4D35); color: #fff; }
.hero-section .text-muted { color: rgba(255,255,255,0.55) !important; position: relative; z-index: 1; }
@media (max-width: 768px) {
  .hero-section { padding: 3rem 0; }
  .hero-section h1 { font-size: 1.65rem; }
  .hero-section p { font-size: 0.95rem; }
  .btn-lg { font-size: 0.925rem; padding: 0.55rem 1.25rem; }
}
@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.35rem; }
}

/* Sub-hero (inner page top banners) */
.gy-hero {
  border-radius: 16px; padding: 2rem 1.5rem; margin-bottom: 1.5rem;
  position: relative; overflow: hidden; color: #fff;
}
.gy-hero-dark { background: linear-gradient(135deg, #1A1D28 0%, #2D3250 100%); }
.gy-hero-warm { background: linear-gradient(135deg, #4A2C1A 0%, #2D3250 100%); }
.gy-hero::after {
  content: ''; position: absolute; top: -80px; right: -40px; width: 220px; height: 220px;
  background: rgba(99,102,241,0.06); border-radius: 50%;
}
.gy-hero h4, .gy-hero h5 { position: relative; z-index: 1; margin-bottom: 0.3rem; color: #fff; }
.gy-hero p { position: relative; z-index: 1; }
@media (max-width: 576px) {
  .gy-hero { padding: 1.25rem 1rem; border-radius: 12px; }
  .gy-hero h4 { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════ */
.badge { font-weight: 600; border-radius: 0.4rem; padding: 0.35em 0.65em; letter-spacing: 0.005em; }
.badge.bg-light { background: #F3F4F6 !important; color: #6B7280 !important; border: 1px solid rgba(0,0,0,0.03); }
.badge.bg-warning { background: linear-gradient(135deg, #FFB830, #FF9F00) !important; color: #1A1D28 !important; }
.badge.bg-success { background: linear-gradient(135deg, #10B981, #059669) !important; }
.badge.bg-danger { background: linear-gradient(135deg, #EF4444, #DC2626) !important; }
.badge.bg-info { background: linear-gradient(135deg, #6366F1, #4F46E5) !important; }
.badge.bg-primary { background: linear-gradient(135deg, #FF5A3C, #FF3B22) !important; }
.badge.bg-secondary { background: #8B8682 !important; }
.badge.bg-dark { background: #1A1D28 !important; }
.badge.bg-light.text-dark { color: #4B5563 !important; }

/* ═══════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════ */
.form-control, .form-select {
  border: 1.5px solid #E8E4DF; border-radius: 0.65rem; padding: 0.65rem 0.9rem;
  font-size: 0.925rem; background: #fff; transition: all 0.2s; box-shadow: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(255,90,60,0.1); outline: none;
}
.form-control::placeholder { color: #D1D5DB; }
.form-label { font-weight: 600; font-size: 0.875rem; color: #4B5563; margin-bottom: 0.4rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
@media (max-width: 768px) {
  .form-control, .form-select { font-size: 16px; /* Prevent iOS zoom */ padding: 0.7rem 0.9rem; }
}

/* ═══════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════ */
.table { border-radius: 0.75rem; overflow: hidden; }
.table th {
  font-weight: 650; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #9CA3AF; background: #F8F9FA; border-bottom: 2px solid #EBE7E2;
}
.table td { padding: 0.85rem; vertical-align: middle; font-size: 0.9rem; }
.table-hover tbody tr:hover { background: rgba(255,90,60,0.03); }
.table-bordered { border-color: #E8E4DF; }
.table-bordered th, .table-bordered td { border-color: #E8E4DF; }
@media (max-width: 768px) {
  .table th, .table td { padding: 0.6rem 0.5rem; font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════════
   ALERTS & PROGRESS
   ═══════════════════════════════════════════════ */
.alert { border-radius: 0.75rem; border: none; font-weight: 500; font-size: 0.9rem; }
.alert-danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
  color: #DC2626; border: 1px solid rgba(239,68,68,0.15);
}
.alert-warning {
  background: linear-gradient(135deg, rgba(255,184,48,0.1), rgba(255,184,48,0.04));
  color: #B45309; border: 1px solid rgba(255,184,48,0.2);
}
.progress { border-radius: 10px; background: #E5E7EB; height: 6px; overflow: hidden; }
.progress-bar { border-radius: 10px; background: linear-gradient(90deg, #10B981, #059669); }

/* ═══════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════ */
.pagination .page-link {
  border: none; color: #6B7280; border-radius: 0.5rem !important; margin: 0 0.15rem;
  font-weight: 550; padding: 0.45rem 0.75rem; transition: all 0.2s;
}
.pagination .page-link:hover { background: rgba(255,90,60,0.08); color: var(--bs-primary); }
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #FF5A3C, #FF3B22); color: #fff;
  box-shadow: 0 2px 8px rgba(255,90,60,0.3);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  background: linear-gradient(180deg, #2D3250, #1A1D28) !important; position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,90,60,0.5), rgba(255,184,48,0.3), transparent);
}
footer h5, footer h6 { color: #fff; }
footer p, footer li { line-height: 1.8; }
footer a { color: rgba(255,255,255,0.55) !important; transition: all 0.2s; }
footer a:hover { color: #FF5A3C !important; transform: translateX(2px); display: inline-block; }
footer hr { opacity: 0.08; }
@media (max-width: 768px) {
  footer { text-align: center; }
  footer .row { text-align: left; }
}

/* ═══════════════════════════════════════════════
   ═══════════════════════════════════════════════
   UNIFIED COMPONENTS (extracted from inline styles)
   ═══════════════════════════════════════════════
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.gy-breadcrumb { margin-bottom: 0.75rem; font-size: 0.85rem; }
.gy-breadcrumb a { color: #9CA3AF; }
.gy-breadcrumb .active { font-weight: 500; color: #374151; }

/* ── Section Header ── */
.gy-section-title { font-size: 1.5rem; font-weight: 750; margin-bottom: 0.25rem; }
.gy-section-sub { color: #9CA3AF; font-size: 0.85rem; }

/* ── Info Card (shared by order detail, merchant detail, etc.) ── */
.gy-info-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gy-info-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.09); }
.gy-info-card-header {
  padding: 0.85rem 1.25rem; background: #FAFAF8; border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 0.5rem; font-weight: 600;
}
.gy-info-card-header i { color: #6366F1; }
.gy-info-card-body { padding: 1.25rem; }
.gy-info-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.75rem; font-size: 0.875rem; }
.gy-info-row:last-child { margin-bottom: 0; }
.gy-info-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.gy-info-label { color: #9CA3AF; font-size: 0.75rem; }
.gy-info-value { font-weight: 600; font-size: 0.85rem; }

/* ── Category Card ── */
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; border-radius: 18px; padding: 1.5rem 0.75rem 1.2rem;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  border: 1.5px solid transparent; background: #fff; height: 100%;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 18px 18px 0 0; transition: height 0.3s ease;
  background: var(--accent, #6366F1);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.1); }
.cat-card:hover::before { height: 5px; }
.cat-card .cat-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 0.8rem; transition: all 0.35s ease;
  position: relative; z-index: 1;
}
.cat-card:hover .cat-icon { transform: scale(1.08) rotate(-3deg); }
.cat-card .cat-name { font-weight: 750; font-size: 0.88rem; color: #1F2937; position: relative; z-index: 1; }
.cat-card .cat-sub { font-size: 0.67rem; color: #9CA3AF; margin-top: 2px; position: relative; z-index: 1; }

/* ── Need Card (unified for home + plaza) ── */
.gy-need-card {
  position: relative; display: block; text-decoration: none; border-radius: 14px;
  background: #fff; border: 1px solid #E5E0D8; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); height: 100%;
}
.gy-need-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: #FFBCC4; }
.gy-need-card:active { transform: translateY(-2px); }
.gy-need-card .nc-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.gy-need-card .nc-body { padding: 1.1rem 1.1rem 1.1rem 1.3rem; }
.gy-need-card .nc-tag {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.02em;
}
.gy-need-card .nc-title { font-weight: 700; font-size: 0.92rem; line-height: 1.45; min-height: 2.9em; color: #1F2937; }
.gy-need-card .nc-meta { font-size: 0.75rem; color: #9CA3AF; }
.gy-need-card .nc-meta-dot { width: 5px; height: 5px; border-radius: 50%; background: #D1D5DB; display: inline-block; }
.gy-need-card .nc-info-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1.1rem; margin: 0 -1.3rem -1.1rem;
  background: linear-gradient(180deg, #F9FAFB, #F3F4F6);
  border-top: 1.5px solid #E5E7EB; border-radius: 0 0 13px 13px;
  font-size: 0.78rem; color: #6B7280; gap: 0.5rem;
}
.gy-need-card .nc-info-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gy-need-card .nc-info-left span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.gy-need-card .nc-info-left i { font-size: 0.7rem; opacity: 0.7; }
.gy-need-card .nc-budget-badge {
  padding: 4px 12px; border-radius: 50px; font-weight: 750; font-size: 0.85rem;
  white-space: nowrap; flex-shrink: 0;
}
/* New badge pulse */
@keyframes glowPulse { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0.4)} 50%{box-shadow:0 0 0 6px rgba(239,68,68,0)} }
.gy-need-card .nc-new-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; display: inline-block; animation: glowPulse 2s infinite; }

/* Need card — full width list variant (plaza) */
.gy-need-card-list { border-radius: 14px; }
.gy-need-card-list .nc-body { padding: 1.2rem 1.5rem 1.2rem 1.7rem; }
.gy-need-card-list .nc-title { font-size: 1rem; min-height: auto; }
.gy-need-card-list .nc-desc { font-size: 0.85rem; color: #6B7280; margin-top: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Shop Card (unified for home + list) ── */
.gy-shop-card {
  border-radius: 16px; background: #fff; border: 1px solid #E5E0D8; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1); height: 100%;
  display: flex; flex-direction: column;
}
.gy-shop-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.11); border-color: #E0DCD5; }
.gy-shop-card .sc-banner {
  height: 100px; background: linear-gradient(135deg, #2B3040, #3C4050);
  position: relative; overflow: hidden;
}
.gy-shop-card .sc-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gy-shop-card:hover .sc-banner img { transform: scale(1.05); }
.gy-shop-card .sc-verified {
  position: absolute; top: 10px; right: 10px; background: rgba(16,185,129,0.92);
  color: #fff; font-size: 0.65rem; padding: 3px 10px; border-radius: 50px;
  font-weight: 650; backdrop-filter: blur(4px);
}
.gy-shop-card .sc-avatar-wrap { margin-top: -28px; position: relative; z-index: 2; display: flex; justify-content: center; }
.gy-shop-card .sc-avatar {
  width: 56px; height: 56px; border-radius: 16px; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
}
.gy-shop-card .sc-body {
  padding: 0.6rem 1.2rem 1.1rem; flex: 1; display: flex;
  flex-direction: column; text-align: center;
}
.gy-shop-card .sc-name { font-weight: 700; font-size: 0.95rem; color: #1F2937; margin-bottom: 4px; }
.gy-shop-card .sc-star-row { display: flex; align-items: center; justify-content: center; gap: 1px; margin-bottom: 8px; }
.gy-shop-card .sc-star { color: #FBBF24; font-size: 0.8rem; }
.gy-shop-card .sc-star-empty { color: #E5E7EB; font-size: 0.8rem; }
.gy-shop-card .sc-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 10px; flex: 1; }
.gy-shop-card .sc-tag { font-size: 0.67rem; padding: 3px 10px; border-radius: 50px; font-weight: 600; white-space: nowrap; }
.gy-shop-card .sc-stats {
  display: flex; justify-content: center; gap: 1rem; padding: 0.6rem 1.2rem;
  border-top: 1px solid #F5F3F0;
}
.gy-shop-card .sc-stat-item { text-align: center; }
.gy-shop-card .sc-stat-val { font-weight: 700; font-size: 0.85rem; color: #1F2937; line-height: 1; }
.gy-shop-card .sc-stat-lbl { font-size: 0.65rem; color: #9CA3AF; margin-top: 2px; }
@media (max-width: 576px) {
  .gy-shop-card .sc-banner { height: 80px; }
  .gy-shop-card .sc-avatar { width: 48px; height: 48px; font-size: 0.95rem; }
  .gy-shop-card .sc-avatar-wrap { margin-top: -24px; }
  .gy-shop-card .sc-body { padding: 0.5rem 0.8rem 0.8rem; }
  .gy-shop-card .sc-name { font-size: 0.88rem; }
  .gy-shop-card .sc-stats { gap: 0.5rem; padding: 0.5rem 0.8rem; }
  .gy-shop-card .sc-stat-val { font-size: 0.78rem; }
}

/* ── Filter Bar ── */
.gy-filter-bar {
  background: #fff; border-radius: 14px; padding: 1rem 1.25rem;
  border: 1px solid #F0EDE8; margin-bottom: 1.25rem;
}
.gy-filter-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #9CA3AF; font-weight: 700; margin-right: 0.6rem; white-space: nowrap;
}
.gy-filter-pill {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.2s; margin: 2px 3px;
}
.gy-filter-pill-default { background: #F5F3F0; color: #8B8682; }
.gy-filter-pill-default:hover, .gy-filter-pill-default.active { background: #1F2937; color: #fff; }
.gy-filter-pill-cat { background: #F5F3F0; color: #8B8682; }
.gy-filter-pill-cat:hover, .gy-filter-pill-cat.active { background: #6366F1; color: #fff; }
.gy-filter-pill-city { background: #F5F3F0; color: #8B8682; }
.gy-filter-pill-city:hover, .gy-filter-pill-city.active { background: #6366F1; color: #fff; }
.gy-filter-search {
  border-radius: 50px; border: 1.5px solid #E5E7EB; padding: 0.45rem 1rem 0.45rem 2.2rem;
  font-size: 0.82rem; transition: all 0.2s; min-width: 180px;
}
.gy-filter-search:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); outline: none; }
.gy-filter-search-wrap { position: relative; display: inline-block; }
.gy-filter-search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9CA3AF; font-size: 0.82rem; }
.gy-result-count { font-size: 0.8rem; color: #9CA3AF; }
.gy-result-count strong { color: #374151; }
@media (max-width: 768px) {
  .gy-filter-bar { padding: 0.75rem; }
  .gy-filter-search { min-width: 140px; font-size: 16px; /* iOS zoom fix */ }
  .gy-filter-pill { font-size: 0.73rem; padding: 4px 10px; }
}

/* ── Score Bars (merchant rating) ── */
.gy-score-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gy-score-bar-label { width: 42px; font-size: 0.8rem; color: #6B7280; text-align: right; }
.gy-score-bar-track { flex: 1; height: 6px; background: #E5E7EB; border-radius: 3px; overflow: hidden; }
.gy-score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.gy-score-bar-num { width: 28px; font-size: 0.8rem; font-weight: 600; color: #374151; }

/* ── Tag Chips ── */
.gy-tag-chip { display: inline-block; padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 500; margin: 3px; }
.gy-tag-indigo { background: #EEF2FF; color: #4F46E5; }
.gy-tag-amber { background: #FEF3C7; color: #92400E; }
.gy-tag-green { background: #D1FAE5; color: #065F46; }
.gy-tag-pink { background: #FCE7F3; color: #DB2777; }
.gy-tag-purple { background: #EDE9FE; color: #6D28D9; }
.gy-tag-cyan { background: #CFFAFE; color: #0E7490; }
.gy-tag-gray { background: #F5F3F0; color: #8B8682; }

/* ── Order Progress Bar (6 steps) ── */
.gy-progress-steps {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; padding: 1rem 0; margin-bottom: 0.5rem;
}
.gy-progress-steps::before {
  content: ''; position: absolute; top: 22px; left: 0; right: 0;
  height: 3px; background: #E5E7EB;
}
.gy-progress-steps .gy-step {
  position: relative; z-index: 1; text-align: center; flex: 1;
}
.gy-progress-steps .gy-step-dot {
  width: 20px; height: 20px; border-radius: 50%; background: #E5E7EB;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: #fff; margin-bottom: 6px; transition: all 0.3s;
}
.gy-progress-steps .gy-step.active .gy-step-dot { background: #6366F1; box-shadow: 0 0 0 4px rgba(99,102,241,0.15); }
.gy-progress-steps .gy-step.done .gy-step-dot { background: #10B981; }
.gy-progress-steps .gy-step-label { font-size: 0.7rem; color: #9CA3AF; white-space: nowrap; }
.gy-progress-steps .gy-step.active .gy-step-label { color: #6366F1; font-weight: 600; }
.gy-progress-steps .gy-step.done .gy-step-label { color: #10B981; }
/* Progress fill line */
.gy-progress-steps .gy-step-fill {
  position: absolute; top: 22px; left: 0; height: 3px;
  background: #10B981; z-index: 0; transition: width 0.5s ease;
}
@media (max-width: 576px) {
  .gy-progress-steps .gy-step-label { font-size: 0.6rem; }
  .gy-progress-steps .gy-step-dot { width: 18px; height: 18px; }
}

/* ── Contact Card ── */
.gy-contact-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.gy-contact-card-header {
  padding: 0.85rem 1.25rem; background: #FAFAF8; border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 0.5rem; font-weight: 600;
}
.gy-contact-card-header i { color: #6366F1; }
.gy-contact-card-body { padding: 1.25rem; }

/* ── Phone Link (core match-making CTA) ── */
.gy-phone-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.1rem; font-weight: 700; color: #10B981;
  text-decoration: none; transition: all 0.2s;
}
.gy-phone-link:hover { color: #059669; transform: scale(1.02); }

/* ── Review Stars ── */
.gy-star { color: #FBBF24; font-size: 0.85rem; }
.gy-star-empty { color: #D1D5DB; font-size: 0.85rem; }
.gy-star-dark { color: rgba(255,255,255,0.25); font-size: 0.9rem; }

/* ── Quote Card ── */
.gy-quote-card {
  background: #fff; border: 1px solid #E5E0D8; border-radius: 14px;
  padding: 1.2rem; margin-bottom: 0.75rem; transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gy-quote-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }

/* ── Review Card ── */
.gy-review-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 0.75rem;
  transition: all 0.3s;
}
.gy-review-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.09); }
.gy-review-body { padding: 1.2rem; }
.gy-review-reply {
  margin-top: 0.75rem; margin-left: 1rem; padding-left: 1rem;
  border-left: 3px solid #6366F1; font-size: 0.875rem; line-height: 1.6;
}

/* ── Auth Page (Login/Register) — Light Theme ── */
.gy-auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFF5F3 0%, #FFF9F5 40%, #F0F4FF 100%);
  padding: 1rem; position: relative; overflow: hidden;
}
.gy-auth-page::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,90,60,0.08), transparent 70%);
  border-radius: 50%;
}
.gy-auth-page::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px; background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%);
  border-radius: 50%;
}
.gy-auth-card {
  width: 100%; max-width: 420px; border-radius: 1.5rem; border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  background: #fff; position: relative; z-index: 1;
}
.gy-auth-card .card-body { padding: 2.5rem 2rem; }
.gy-auth-logo-wrap {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, #FF5A3C, #FF7B5C);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 2rem;
  box-shadow: 0 8px 24px rgba(255,90,60,0.25);
}
.gy-auth-logo-small {
  font-size: 1.5rem; filter: brightness(0) invert(1);
}
.gy-auth-title { font-weight: 750; font-size: 1.35rem; margin-bottom: 0.35rem; color: #1F2937; }
.gy-auth-subtitle { color: #9CA3AF; font-size: 0.875rem; margin-bottom: 1.75rem; }
.gy-auth-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
  color: #D1D5DB; font-size: 0.8rem;
}
.gy-auth-divider::before, .gy-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #E5E7EB;
}
.gy-auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: #6B7280; }
.gy-auth-footer a { color: #FF5A3C; font-weight: 600; text-decoration: none; }
.gy-auth-footer a:hover { text-decoration: underline; }
.gy-auth-features {
  display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid #F0EDE8;
}
.gy-auth-feature { text-align: center; font-size: 0.75rem; color: #9CA3AF; }
.gy-auth-feature-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #F5F3F0; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.4rem; font-size: 1rem;
}
.gy-auth-bg-text {
  position: absolute; font-size: 8rem; font-weight: 800;
  color: rgba(255,90,60,0.03); z-index: 0; right: -2rem; bottom: -2rem;
  letter-spacing: -0.05em; user-select: none;
}

/* ── Empty State ── */
.gy-empty { text-align: center; padding: 3rem 1rem; }
.gy-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.gy-empty-title { font-weight: 600; color: #6B7280; margin-bottom: 0.25rem; }
.gy-empty-sub { color: #9CA3AF; font-size: 0.85rem; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
.anim-fade-up {
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.5s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.anim-delay-1 { animation-delay: 0.06s; }
.anim-delay-2 { animation-delay: 0.12s; }
.anim-delay-3 { animation-delay: 0.18s; }
.anim-delay-4 { animation-delay: 0.24s; }
.anim-delay-5 { animation-delay: 0.30s; }
.anim-delay-6 { animation-delay: 0.36s; }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255,90,60,0.3); }
  50% { box-shadow: 0 4px 20px rgba(255,90,60,0.5); }
}
.btn-pulse { animation: pulseGlow 2.5s ease-in-out infinite; }

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 400px 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 0.5rem;
}

/* ── Toast ── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.gy-toast {
  background: #1A1D28; color: #fff; padding: 0.85rem 1.25rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 550; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  animation: toastIn 0.35s cubic-bezier(0.22,0.61,0.36,1) forwards, toastOut 0.3s cubic-bezier(0.4,0,0.2,1) 2.7s forwards;
  max-width: 340px; display: flex; align-items: center; gap: 0.5rem;
}
.gy-toast.success { border-left: 3px solid #10B981; }
.gy-toast.error { border-left: 3px solid #EF4444; }
.gy-toast.info { border-left: 3px solid #6366F1; }
.gy-toast.warning { border-left: 3px solid #FFB830; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Clickable card hover ── */
.need-list-card:hover, .order-card:hover {
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* ═══════════════════════════════════════════════
   BACKGROUND UTILITIES
   ═══════════════════════════════════════════════ */
.bg-primary { background: linear-gradient(135deg, #1A1D28, #2B3040) !important; }
.bg-light { background: #F8F9FA !important; }
.text-primary { color: var(--bs-primary) !important; }
.bg-white { background: #fff !important; }

/* ═══════════════════════════════════════════════
   ADMIN SIDEBAR
   ═══════════════════════════════════════════════ */
.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 230px;
  background: linear-gradient(180deg, #1A1D28, #2B3040);
  overflow-y: auto; z-index: 100; display: flex; flex-direction: column;
}
.admin-sidebar .brand {
  padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.02em;
}
.admin-sidebar .brand span { margin-right: 0.4rem; }
.admin-sidebar nav { padding: 0.75rem 0; flex: 1; }
.admin-sidebar a {
  display: flex; align-items: center; padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,0.65); font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s; text-decoration: none; border-left: 3px solid transparent;
}
.admin-sidebar a i { margin-right: 0.6rem; width: 18px; text-align: center; font-size: 0.95rem; }
.admin-sidebar a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.admin-sidebar a.active { color: #fff; background: rgba(255,90,60,0.15); border-left-color: #FF5A3C; font-weight: 650; }
.admin-sidebar .section-title {
  padding: 0.6rem 1.25rem 0.3rem; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3);
}
.admin-content { margin-left: 230px; padding: 1.75rem 2rem; min-height: 100vh; }
.admin-content .page-title {
  font-size: 1.4rem; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.admin-badge { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; display: inline-block; margin-left: 4px; vertical-align: middle; }
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-230px); }
  .admin-content { margin-left: 0; padding: 1rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Global Mobile Adjustments
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar { background: rgba(255,255,255,0.95) !important; backdrop-filter: blur(12px); }
  h4 { font-size: 1.15rem; }
  .container { padding-left: 0.85rem; padding-right: 0.85rem; }
  /* Make filter rows scrollable horizontally */
  .gy-filter-bar .d-flex.flex-wrap { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .gy-filter-bar .d-flex.flex-wrap::-webkit-scrollbar { display: none; }
  /* Card grid adjustments */
  .row.g-3 > [class*="col-"] { padding-left: 0.4rem; padding-right: 0.4rem; }
  /* Order detail: stack sidebar below main */
  .row > .col-lg-4 { order: 2; margin-top: 0; }
  .row > .col-lg-8 { order: 1; }
  /* Disable sticky on mobile to prevent overlap */
  .col-lg-4 [style*="sticky"] { position: static !important; }
  /* Admin sidebar toggle */
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
  .admin-sidebar-overlay.show { display: block; }
  .admin-mobile-toggle { display: inline-flex; }
  /* Nav mobile: better touch targets */
  .navbar .d-flex.align-items-center.gap-2 { flex-wrap: wrap; gap: 0.4rem !important; }
  .navbar .btn-sm { padding: 0.4rem 0.7rem; }
  /* Quote cards on mobile: stack price */
  .gy-quote-card .d-flex.justify-content-between { flex-direction: column; gap: 0.75rem; }
  .gy-quote-card .text-end { text-align: left !important; }
  /* Hero section mobile */
  .hero-section .d-flex.gap-4 { gap: 1rem !important; }
  .hero-section .d-flex.gap-4 > span { font-size: 0.78rem !important; }
  .hero-section .d-flex.gap-4 > span .fw-bold { font-size: 0.95rem !important; }
  /* Need detail hero gradient fix */
  .gy-hero .d-flex.flex-wrap.gap-3 { gap: 0.5rem !important; font-size: 0.8rem !important; }
  /* Budget badge in need card: wrap on small */
  .gy-need-card .nc-info-bar { flex-wrap: wrap; }
  /* User/Merchant home: stats grid */
  .col-4 .card.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
  /* Table responsive: card mode for key tables */
  .table-responsive { margin: 0 -0.5rem; }
}

@media (max-width: 576px) {
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }
  .gy-hero { padding: 1rem; }
  .gy-info-card-body { padding: 0.85rem; }
  /* Progress steps: smaller text, tighter spacing */
  .gy-progress-steps .gy-step-label { font-size: 0.55rem; letter-spacing: -0.02em; }
  .gy-progress-steps .gy-step-dot { width: 16px; height: 16px; font-size: 0.55rem; }
  .gy-progress-steps { padding: 0.6rem 0; }
  /* Category cards: smaller on very small screens */
  .cat-card { padding: 1rem 0.5rem 0.8rem; }
  .cat-card .cat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .cat-card .cat-name { font-size: 0.78rem; }
  .cat-card .cat-sub { display: none; }
  /* Need list card: adjust padding */
  .gy-need-card-list .nc-body { padding: 0.9rem 1rem 0.9rem 1.2rem; }
  .gy-need-card-list .nc-title { font-size: 0.88rem; }
  /* Budget badge: smaller on tiny screens */
  .nc-budget-badge { font-size: 0.75rem !important; padding: 3px 8px !important; }
  /* Auth page: smaller card */
  .gy-auth-card .card-body { padding: 1.75rem 1.25rem; }
  .gy-auth-logo-wrap { width: 60px; height: 60px; font-size: 1.75rem; }
  .gy-auth-title { font-size: 1.15rem; }
  .gy-auth-features { gap: 0.75rem; }
  .gy-auth-feature { font-size: 0.65rem; }
  .gy-auth-feature-icon { width: 30px; height: 30px; font-size: 0.85rem; }
  /* Admin mobile toggle visible */
  .admin-mobile-toggle { display: inline-flex !important; }
  /* Quote comparison: switch to card view */
  .gy-mobile-quote-card { display: block; }
  .gy-mobile-quote-table { display: none; }
}

/* ── Admin Mobile Toggle (hidden on desktop) ── */
.admin-mobile-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: #1A1D28;
  color: #fff; border-radius: 0.5rem; cursor: pointer; font-size: 1.1rem;
}

/* ── Quote comparison: mobile card layout ── */
.gy-mobile-quote-card { display: none; }
@media (max-width: 576px) {
  .gy-mobile-quote-card { display: block; }
  .gy-mobile-quote-table { display: none; }
}
@media (min-width: 577px) {
  .gy-mobile-quote-card { display: none; }
  .gy-mobile-quote-table { display: block; }
}
