/* Virtual Eemu Mobile Web App Stylesheet */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;
  
  --emerald: #10b981;
  --emerald-light: #ecfdf5;
  --emerald-dark: #047857;

  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --amber-dark: #b45309;

  --rose: #ef4444;
  --rose-light: #fef2f2;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.45;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  overflow-x: hidden;
}

/* Offline Banner */
.offline-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--amber-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: var(--slate-900);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: toast-in 0.25s ease-out forwards;
}

.toast.toast-success {
  border-left: 4px solid var(--emerald);
}

.toast.toast-error {
  border-left: 4px solid var(--rose);
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Screens */
.auth-gate-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.brand-header {
  margin-bottom: 28px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.5px;
}

.brand-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.brand-tagline {
  font-size: 14px;
  color: var(--slate-500);
  margin-top: 8px;
}

.auth-actions {
  margin-bottom: 24px;
}

.btn-google {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #374151;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-google:active {
  background: var(--slate-50);
  transform: scale(0.99);
}

.auth-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--slate-400);
}

.auth-footer-sub {
  font-weight: 500;
  color: var(--slate-500);
}

.auth-error-banner {
  background: var(--rose-light);
  color: var(--rose);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: left;
}

/* Access Denied Card */
.access-denied-card {
  border-top: 4px solid var(--rose);
}

.denied-icon-wrap {
  margin-bottom: 16px;
}

.denied-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 8px;
}

.denied-desc {
  font-size: 14px;
  color: var(--slate-700);
  margin-bottom: 16px;
}

.denied-help {
  background: var(--slate-50);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 24px;
  text-align: left;
  border: 1px dashed var(--slate-300);
}

.btn-secondary {
  width: 100%;
  min-height: 48px;
  background: var(--slate-900);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

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

/* App Shell Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--slate-900);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

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

.header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.header-app-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.header-role-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

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

.header-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.header-action-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.sync-icon.spinning {
  animation: spin 0.8s linear infinite;
}

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

/* User Avatar & Dropdown Menu */
.user-dropdown-wrapper {
  position: relative;
}

.header-user-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.header-user-btn:active {
  transform: scale(0.95);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  z-index: 10001;
  padding: 6px 0;
  animation: dropdown-fade-in 0.15s ease-out;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-user-header {
  padding: 10px 14px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.dropdown-user-details strong {
  font-size: 14px;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-details span {
  font-size: 12px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-role-badge {
  align-self: flex-start;
  margin-top: 3px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.dropdown-item-row {
  padding: 4px 8px;
}

.dropdown-action-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.dropdown-action-btn:active,
.dropdown-action-btn:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.dropdown-action-btn.logout-action {
  color: var(--rose);
}

.dropdown-action-btn.logout-action:active,
.dropdown-action-btn.logout-action:hover {
  background: var(--rose-light);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Main Content Containers */
.main-content {
  padding: 14px 16px 80px;
  max-width: 600px;
  margin: 0 auto;
}

/* Admin Toolbar */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.4px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--slate-500);
}

.btn-preview-sr {
  min-height: 40px;
  padding: 0 14px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-preview-sr:active {
  background: #dbeafe;
}

/* Rep Selector Card */
.rep-selector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.selector-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

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

.custom-select {
  width: 100%;
  min-height: 46px;
  background: var(--slate-50);
  color: var(--slate-900);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
}

.rep-summary-bar {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--slate-100);
  font-size: 13px;
  color: var(--slate-600);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

/* Search Box */
.search-box-wrapper,
.pinned-search-container {
  margin-bottom: 14px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 42px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--slate-900);
}

.search-input:focus {
  outline: none;
}

.search-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: var(--slate-200);
  color: var(--slate-600);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
  font-size: 12px;
  color: var(--slate-500);
}

.last-synced-pill {
  font-weight: 600;
  color: var(--slate-600);
}

/* Admin Beats List */
.beats-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
}

.beats-list-hint {
  font-size: 11px;
  color: var(--slate-400);
}

.admin-beats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-beat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
  user-select: none;
}

.admin-beat-card.assigned-to-selected {
  border-color: var(--emerald);
  background: var(--emerald-light);
}

.beat-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.beat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
}

.beat-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shops-count-pill {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.beat-assigned-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.beat-assigned-pill.assigned-self {
  background: #d1fae5;
  color: var(--emerald-dark);
}

.beat-assigned-pill.assigned-other {
  background: var(--slate-100);
  color: var(--slate-600);
}

.beat-assigned-pill.unassigned {
  background: var(--slate-100);
  color: var(--slate-400);
}

/* Custom Checkbox / Toggle for Admin Beat Card */
.beat-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.beat-checkbox {
  width: 26px;
  height: 26px;
  accent-color: var(--emerald-dark);
  cursor: pointer;
}

/* Sales Rep Field View Elements */
.admin-preview-banner {
  background: var(--amber-dark);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.preview-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-exit-preview {
  background: #ffffff;
  color: var(--slate-900);
  border: none;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sr-beat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.beat-select-container {
  margin-bottom: 12px;
}

.sr-beat-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.route-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
  gap: 8px;
}

.route-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-type-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.route-type-badge.optimized {
  background: #dcfce7;
  color: var(--emerald-dark);
}

.route-type-badge.unoptimized {
  background: #fef3c7;
  color: var(--amber-dark);
}

.route-type-badge.search-mode {
  background: #eff6ff;
  color: var(--primary-dark);
}

.route-stops-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-600);
}

.route-meta-note {
  font-size: 11px;
  color: var(--slate-400);
}

/* SR Shops Feed & Cards */
.sr-shops-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.1s ease;
}

.shop-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shop-header-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.seq-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  min-width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.shop-name-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.shop-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
}

.shop-tags-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-class-badge {
  align-self: flex-start;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.shop-beat-pill {
  background: #e0e7ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.distance-badge {
  background: #f1f5f9;
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.shop-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-600);
  background: var(--slate-50);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

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

.detail-icon {
  color: var(--slate-400);
  flex-shrink: 0;
}

/* Action Buttons Grid (Thumb Friendly Touch Targets >= 44px) */
.shop-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-action {
  min-height: 46px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

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

.btn-call {
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.btn-call:active {
  background: #a7f3d0;
}

.btn-navigate {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1.5px solid rgba(37, 99, 235, 0.3);
}

.btn-navigate:active {
  background: #bfdbfe;
}

.btn-get-location {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1.5px dashed var(--slate-400);
  cursor: pointer;
}

.btn-get-location:active {
  background: var(--slate-200);
}

.spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid var(--slate-400);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.unassigned-notice {
  font-size: 11px;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.btn-action.disabled {
  opacity: 0.4;
  pointer-events: none;
  border-color: var(--slate-300);
  background: var(--slate-100);
  color: var(--slate-400);
}

/* Empty & Loading States */
.loading-state,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--slate-500);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.empty-state-icon {
  margin-bottom: 12px;
  color: var(--slate-400);
}

.empty-state h3 {
  font-size: 16px;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 16px;
}

/* Check Beats Button in Empty State */
.btn-check-beats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

.btn-check-beats:active {
  transform: scale(0.98);
}

/* Card Tap Hint & Clickable Style */
.shop-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.shop-card:hover {
  border-color: var(--slate-300);
}

.shop-card:active {
  transform: scale(0.99);
}

.card-tap-hint {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Shop Detail Modal / Bottom Sheet */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-content {
  background: var(--surface);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: max(20px, var(--safe-bottom));
}

.modal-overlay.active .bottom-sheet-content {
  transform: translateY(0);
}

.sheet-drag-handle-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0 6px 0;
  cursor: grab;
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: var(--slate-300);
  border-radius: var(--radius-full);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 10px 20px;
  border-bottom: 1px solid var(--border);
}

.sheet-close-btn {
  background: var(--slate-100);
  border: none;
  color: var(--slate-600);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}

.sheet-close-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.sheet-body {
  padding: 16px 20px 24px 20px;
}

/* Modal Photo Section */
.modal-photo-wrap {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--slate-100);
  border: 1px solid var(--border);
}

.modal-shop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.no-photo-placeholder {
  width: 100%;
  height: 90px;
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--slate-400);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Modal Content Rows */
.modal-shop-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.modal-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--slate-50);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.modal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.modal-detail-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  line-height: 1.3;
}

.modal-detail-content {
  flex: 1;
}

.modal-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-500);
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-detail-value {
  color: var(--slate-800);
  font-weight: 500;
  word-break: break-word;
}

/* Modal Actions */
.modal-actions-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.modal-btn-call {
  background: var(--emerald);
  color: #ffffff;
}

.modal-btn-call:hover {
  background: var(--emerald-dark);
}

.modal-btn-navigate {
  background: var(--primary);
  color: #ffffff;
}

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

.modal-action-btn.disabled {
  background: var(--slate-200);
  color: var(--slate-400);
  pointer-events: none;
}

/* Modal Loading & Error States */
.modal-loading-box,
.modal-error-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: var(--slate-600);
  font-size: 14px;
  text-align: center;
}

.modal-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
