/* ==========================================================================
   L'etoile Components & 3D Tactile Styling
   ========================================================================== */

/* Glassmorphic Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  box-shadow: var(--shadow-floating);
}

/* ==========================================================================
   AUTHENTIC iOS LIQUID GLASS SYSTEM
   Luminous Frosted Glass, Prismatic Specular Highlights, Crisp High-Contrast Legibility
   ========================================================================== */
.liquid-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.90);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(184, 145, 37, 0.08), inset 0 1.5px 2px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(0, 0, 0, 0.03);
  transition: all 0.22s ease;
}

body.theme-gold-premium .liquid-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 237, 0.78) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(184, 145, 37, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1.5px 2px #ffffff;
}

body.theme-dark .liquid-glass-card {
  background: linear-gradient(135deg, rgba(28, 33, 46, 0.88) 0%, rgba(17, 20, 28, 0.78) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.12);
}

body.theme-light .liquid-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), inset 0 1px 1px #ffffff;
}

/* Liquid Glass Tactile Button */
.btn-liquid-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 245, 232, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text-primary) !important;
  font-weight: 850;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.16), 0 1px 3px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  transition: all 0.18s ease;
  user-select: none;
  text-decoration: none;
}

body.theme-dark .btn-liquid-glass {
  background: linear-gradient(135deg, rgba(42, 48, 64, 0.9) 0%, rgba(22, 26, 36, 0.85) 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.btn-liquid-glass:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.22), inset 0 1px 1.5px #ffffff;
  filter: brightness(1.03);
}

.btn-liquid-glass:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Liquid Glass Pill */
.liquid-glass-pill {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.2px solid rgba(255, 255, 255, 0.92);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 1px #ffffff;
}

body.theme-dark .liquid-glass-pill {
  background: rgba(28, 33, 46, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Profile Overall Money Card (Liquid Glass Standard) */
.profile-overall-money-card {
  padding: 16px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 237, 0.78) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(184, 145, 37, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1.5px 2px #ffffff;
  transition: all 0.22s ease;
}

body.theme-dark .profile-overall-money-card {
  background: linear-gradient(135deg, rgba(28, 33, 46, 0.88) 0%, rgba(17, 20, 28, 0.78) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.12);
}

body.theme-light .profile-overall-money-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), inset 0 1px 1px #ffffff;
}

.profile-overall-money-card .money-card-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 800;
}

.profile-overall-money-card .money-card-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* 3D Tactile Buttons (Inspired by Arabic / Tibyan Squircle Controls) */
.btn-gold {
  background: var(--gold-gradient);
  color: var(--gold-btn-text, #0b0c10) !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
  text-decoration: none;
  user-select: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  filter: brightness(1.06);
}

.btn-gold:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px var(--gold-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Ivory Pearl (Theme Light) Universal All-Page Button & Contrast Engine
   Ensures ALL action buttons, submit buttons, modals, pills, and interactive
   controls across EVERY page (Home, Calendar, Invoicing, Scribe, Hours,
   Team, Points, Receipts, Chat, Settings, Auth) have crisp, highly legible white text.
   ========================================================================== */

/* 1. Universal Primary & Gold Buttons across all pages */
body.theme-light .btn-gold,
body.theme-light button.btn-gold,
body.theme-light a.btn-gold,
body.theme-light input[type="submit"].btn-gold,
body.theme-light .btn-gold-primary,
body.theme-light .btn-primary,
body.theme-light .btn-modal-gold,
body.theme-light .btn-modal-action:not(.btn-modal-secondary),
body.theme-light .btn-submit,
body.theme-light button[type="submit"],
body.theme-light input[type="submit"],

/* 2. Page-Specific Primary Action Buttons */
body.theme-light .settings-change-theme-btn,
body.theme-light .settings-change-logo-btn,
body.theme-light .settings-change-language-btn,
body.theme-light .auth-submit-btn,
body.theme-light .pending-action-btn,
body.theme-light .btn-quick-assign-submit,
body.theme-light .btn-save-profile-rates,
body.theme-light .btn-edit-worker-profile,
body.theme-light .btn-timesheet-action,
body.theme-light .btn-save-scale,
body.theme-light .btn-details,
body.theme-light .btn-confirm-redeem,
body.theme-light .btn-submit-award,
body.theme-light .btn-submit-adjust,
body.theme-light .btn-quick-log-save,
body.theme-light .ah-submit-btn,
body.theme-light .btn-points-redeem,
body.theme-light .btn-profile-add-pts-gold,
body.theme-light .btn-rec-confirm,
body.theme-light .btn-confirm-end-of-day,
body.theme-light .global-recording-done-btn,
body.theme-light .btn-preview-bottom-print,
body.theme-light .btn-preview-bottom-share,
body.theme-light .print-share-option-btn,
body.theme-light .wheel-new-game-primary-btn,
body.theme-light .wheel-modal-newgame-btn,
body.theme-light .wheel-spin-btn,
body.theme-light .wheel-post-chat-btn,
body.theme-light .wheel-quick-btn,
body.theme-light .uhaul-banner-action-btn,
body.theme-light .chat-send-btn,
body.theme-light .recording-send-btn,

/* 3. Active Chips, Capsules, Pills, and Toggles across all pages */
body.theme-light .capsule-item.active,
body.theme-light .btn-secondary.active,
body.theme-light .sub-nav-btn.active,
body.theme-light .drawer-tab-btn.active,
body.theme-light .assign-tab-btn.is-active,
body.theme-light .qa-shift-seg-btn.is-active,
body.theme-light .qa-day-pill.is-active,
body.theme-light .qa-time-pill.is-active,
body.theme-light .qa-toggle-all-btn.is-all,
body.theme-light .ah-duration-btn.is-active,
body.theme-light .ah-task-chip.is-active,
body.theme-light .profile-tab-item.active,
body.theme-light .quick-log-mode-tab.active,
body.theme-light .auth-segment-btn.active,
body.theme-light .btn-adjust-mode.active,
body.theme-light .btn-extra-pill.active,
body.theme-light .qa-floating-btn,
body.theme-light .app-theme-popout-check,
body.theme-light .app-logo-popout-check,
body.theme-light .app-language-popout-check {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 4. Luxury Obsidian Styling for Primary Action Buttons */
body.theme-light .btn-gold,
body.theme-light button.btn-gold,
body.theme-light a.btn-gold,
body.theme-light .btn-gold-primary,
body.theme-light .btn-modal-gold,
body.theme-light .btn-quick-assign-submit,
body.theme-light .btn-save-profile-rates,
body.theme-light .btn-edit-worker-profile,
body.theme-light .btn-preview-bottom-print,
body.theme-light .btn-preview-bottom-share,
body.theme-light .btn-points-redeem,
body.theme-light .btn-profile-add-pts-gold,
body.theme-light .wheel-new-game-primary-btn,
body.theme-light .wheel-modal-newgame-btn,
body.theme-light .settings-change-theme-btn,
body.theme-light .settings-change-logo-btn,
body.theme-light .settings-change-language-btn,
body.theme-light .chat-send-btn {
  background: linear-gradient(135deg, #27272a 0%, #111111 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body.theme-light .btn-gold:hover,
body.theme-light button.btn-gold:hover,
body.theme-light a.btn-gold:hover,
body.theme-light .btn-gold-primary:hover,
body.theme-light .btn-modal-gold:hover,
body.theme-light .btn-quick-assign-submit:hover,
body.theme-light .btn-save-profile-rates:hover,
body.theme-light .btn-edit-worker-profile:hover,
body.theme-light .btn-preview-bottom-print:hover,
body.theme-light .btn-preview-bottom-share:hover,
body.theme-light .btn-points-redeem:hover,
body.theme-light .btn-profile-add-pts-gold:hover,
body.theme-light .wheel-new-game-primary-btn:hover,
body.theme-light .wheel-modal-newgame-btn:hover,
body.theme-light .settings-change-theme-btn:hover,
body.theme-light .settings-change-logo-btn:hover,
body.theme-light .settings-change-language-btn:hover,
body.theme-light .chat-send-btn:hover {
  background: linear-gradient(135deg, #3f3f46 0%, #18181b 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

/* 5. Child Elements and Text Nodes */
body.theme-light .btn-gold *,
body.theme-light button.btn-gold *,
body.theme-light a.btn-gold *,
body.theme-light .btn-gold-primary *,
body.theme-light .settings-change-theme-btn *,
body.theme-light .settings-change-logo-btn *,
body.theme-light .settings-change-language-btn *,
body.theme-light .auth-submit-btn *,
body.theme-light .btn-modal-gold *,
body.theme-light .btn-modal-action:not(.btn-modal-secondary) *,
body.theme-light .btn-quick-assign-submit *,
body.theme-light .btn-save-profile-rates *,
body.theme-light .btn-edit-worker-profile *,
body.theme-light .btn-preview-bottom-print *,
body.theme-light .btn-preview-bottom-share *,
body.theme-light .btn-points-redeem *,
body.theme-light .btn-profile-add-pts-gold *,
body.theme-light .wheel-new-game-primary-btn *,
body.theme-light .wheel-modal-newgame-btn *,
body.theme-light .chat-send-btn *,
body.theme-light button[type="submit"] * {
  color: #ffffff !important;
  fill: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 6. Universal Inline Background Gold/Obsidian Override */
body.theme-light [style*="background: var(--gold-primary)"],
body.theme-light [style*="background:var(--gold-primary)"],
body.theme-light [style*="background: var(--gold-gradient)"],
body.theme-light [style*="background:var(--gold-gradient)"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-light [style*="background: var(--gold-primary)"] *,
body.theme-light [style*="background:var(--gold-primary)"] *,
body.theme-light [style*="background: var(--gold-gradient)"] *,
body.theme-light [style*="background:var(--gold-gradient)"] * {
  color: #ffffff !important;
  fill: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 7. Modal Popout Checkmarks */
body.theme-light .app-theme-popout-check,
body.theme-light .app-logo-popout-check,
body.theme-light .app-language-popout-check {
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

/* Starred Day Card (⭐) Styling for Special Add-ons */
.starred-day-card {
  position: relative;
  border: 1.5px solid var(--star-gold) !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-card) 60%) !important;
  box-shadow: 0 8px 26px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255, 235, 170, 0.3) !important;
}

.star-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #111827;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
  animation: pulseGold 2.5s infinite;
}

@keyframes pulseGold {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

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

/* Global WebKit & Mobile Date Input Normalization */
input[type="date"],
input[type="date"].form-input,
input[type="date"].auth-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  display: flex !important;
  align-items: center !important;
  height: 44px;
  min-height: 44px;
  padding: 10px 14px !important;
  line-height: normal !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  color: var(--text-primary);
  background: var(--bg-input);
  white-space: nowrap !important;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 1.25em;
  display: flex;
  align-items: center;
  line-height: normal;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Bento Input Well Date Specific Single-Line Overrides */
.bento-input-well input[type="date"] {
  height: 100% !important;
  min-height: unset !important;
  padding: 0 4px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: normal !important;
}

.bento-input-well input[type="date"]::-webkit-date-and-time-value {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: unset !important;
  line-height: normal !important;
  padding: 0 !important;
  margin: 0 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  margin: 0;
  margin-left: 6px;
  transition: opacity 0.2s;
  filter: invert(65%) sepia(85%) saturate(450%) hue-rotate(5deg) brightness(95%) contrast(90%);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

body.lang-ar input[type="date"]::-webkit-date-and-time-value,
[dir="rtl"] input[type="date"]::-webkit-date-and-time-value {
  text-align: right;
  justify-content: flex-end;
}

/* Checkbox Cards for Shift Selection (Event, Pickup, Special) */
.gig-checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}

.gig-checkbox-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

.gig-checkbox-card.active {
  border-color: var(--gold-primary);
  background: var(--gold-badge-bg);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.gig-checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-locked {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-assigned {
  background: var(--gold-badge-bg);
  color: var(--gold-badge-text);
  border: 1px solid var(--border-color);
}

.badge-unassigned {
  background: rgba(100, 112, 135, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* Audio Visualizer Waves */
.waveform-canvas {
  width: 100%;
  height: 90px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.record-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.record-btn:hover {
  transform: scale(1.06);
}

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

/* Default / Gold Premium (Royal 24K Vintage Gold Mic on Rich Ruby Disc) */
.record-btn,
body.theme-gold-premium .record-btn,
.record-btn.theme-gold-premium {
  background-image: url('../images/mic_gold_premium.png');
  box-shadow: 0 10px 30px rgba(184, 145, 37, 0.4), 0 0 25px rgba(212, 175, 55, 0.25);
}

body.theme-gold-premium .record-btn:hover,
.record-btn.theme-gold-premium:hover {
  box-shadow: 0 14px 40px rgba(184, 145, 37, 0.55), 0 0 35px rgba(212, 175, 55, 0.45);
}

body.theme-gold-premium .record-btn.recording,
.record-btn.recording,
.record-btn.theme-gold-premium.recording {
  animation: pulseRecordingGold 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes pulseRecordingGold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8), 0 0 20px rgba(220, 38, 38, 0.6);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(212, 175, 55, 0), 0 0 38px rgba(220, 38, 38, 0.45);
    transform: scale(1.07);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 0 20px rgba(220, 38, 38, 0);
    transform: scale(1.02);
  }
}

/* 2. DARK MODE (Obsidian Midnight Disc, Polished Gold Ring & Glowing 3D Mic) */
body.theme-dark .record-btn,
.record-btn.theme-dark {
  background-image: url('../images/mic_dark_theme.png');
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 30px rgba(229, 193, 88, 0.35);
}

body.theme-dark .record-btn:hover,
.record-btn.theme-dark:hover {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95), 0 0 45px rgba(229, 193, 88, 0.55);
}

body.theme-dark .record-btn.recording,
.record-btn.theme-dark.recording {
  animation: pulseRecordingDark 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes pulseRecordingDark {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 193, 88, 0.85), 0 0 25px rgba(229, 193, 88, 0.6);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(229, 193, 88, 0), 0 0 40px rgba(229, 193, 88, 0.35);
    transform: scale(1.07);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 193, 88, 0), 0 0 20px rgba(229, 193, 88, 0);
    transform: scale(1.02);
  }
}

/* 3. LIGHT MODE (Minimalist Luxury Platinum Bezel, Scarlet Ruby Disc & Chrome Mic) */
body.theme-light .record-btn,
.record-btn.theme-light {
  background-image: url('../images/mic_light_pure_silver.png');
  box-shadow: 0 10px 28px rgba(30, 40, 60, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.theme-light .record-btn:hover,
.record-btn.theme-light:hover {
  box-shadow: 0 14px 35px rgba(30, 40, 60, 0.25), 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.theme-light .record-btn.recording,
.record-btn.theme-light.recording {
  animation: pulseRecordingLight 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes pulseRecordingLight {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.75), 0 0 15px rgba(220, 38, 38, 0.4);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(220, 38, 38, 0), 0 0 30px rgba(220, 38, 38, 0.25);
    transform: scale(1.07);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 0 15px rgba(220, 38, 38, 0);
    transform: scale(1.02);
  }
}

/* Frosted glass stop square indicator during active recording */
.record-stop-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(15, 18, 26, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1.2px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  animation: stopIconBlink 1.5s infinite ease-in-out;
}

@keyframes stopIconBlink {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; transform: scale(1.06); }
}

body.theme-gold-premium .record-stop-indicator {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 175, 55, 0.6);
  color: #ffd875;
}

body.theme-dark .record-stop-indicator {
  border-color: rgba(229, 193, 88, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 14px rgba(229, 193, 88, 0.7);
  color: #ffd875;
}

/* ==========================================================================
   Mini Luxury Record Button (Voice Notes After Meeting & Accordion Modals)
   ========================================================================== */
.record-btn.mini {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.35), 0 0 14px rgba(212, 175, 55, 0.2);
}

.record-btn.mini:hover {
  transform: scale(1.08);
}

.record-btn.mini:active {
  transform: scale(0.94);
}

body.theme-gold-premium .record-btn.mini,
.record-btn.mini.theme-gold-premium {
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.35), 0 0 14px rgba(212, 175, 55, 0.2);
}

body.theme-dark .record-btn.mini,
.record-btn.mini.theme-dark {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75), 0 0 16px rgba(229, 193, 88, 0.25);
}

body.theme-light .record-btn.mini,
.record-btn.mini.theme-light {
  box-shadow: 0 6px 18px rgba(30, 40, 60, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.record-btn.mini.recording,
body.theme-gold-premium .record-btn.mini.recording,
.record-btn.mini.theme-gold-premium.recording {
  animation: pulseRecordingMiniGold 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@keyframes pulseRecordingMiniGold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8), 0 0 10px rgba(220, 38, 38, 0.6);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0), 0 0 18px rgba(220, 38, 38, 0.4);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 0 10px rgba(220, 38, 38, 0);
    transform: scale(1.02);
  }
}

body.theme-dark .record-btn.mini.recording,
.record-btn.mini.theme-dark.recording {
  animation: pulseRecordingMiniDark 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@keyframes pulseRecordingMiniDark {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 193, 88, 0.85), 0 0 12px rgba(229, 193, 88, 0.6);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(229, 193, 88, 0), 0 0 20px rgba(229, 193, 88, 0.35);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 193, 88, 0), 0 0 12px rgba(229, 193, 88, 0);
    transform: scale(1.02);
  }
}

body.theme-light .record-btn.mini.recording,
.record-btn.mini.theme-light.recording {
  animation: pulseRecordingMiniLight 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@keyframes pulseRecordingMiniLight {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.75), 0 0 10px rgba(220, 38, 38, 0.4);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0), 0 0 16px rgba(220, 38, 38, 0.25);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 0 10px rgba(220, 38, 38, 0);
    transform: scale(1.02);
  }
}

.record-btn.mini .record-stop-indicator {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  border-width: 1px !important;
}

.record-btn.mini .record-stop-indicator svg {
  width: 11px !important;
  height: 11px !important;
}


/* ==========================================================================
   5 Luxury Worker Card Design Options (Haute Couture Atelier Styles)
   Strictly Minimalist: Avatar + Name + Tap to Open Profile
   ========================================================================== */

/* Shared base for all options */
.worker-card-base {
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.worker-card-base:hover {
  transform: translateY(-2px);
}

.worker-card-base:active {
  transform: translateY(1px) scale(0.99);
}

/* ==========================================================================
   WORKER ICON CARDS SYSTEM (Grid of Floating Glass Squircle Tiles)
   Strictly Minimalist: Photo/Gold Initials Monogram + Name Only
   ========================================================================== */

/* ==========================================================================
   TEAM ROSTER HEADER & TOP BAR (Triple-Theme Calibration)
   ========================================================================== */

.team-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  width: 100%;
}

.team-top-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  flex-shrink: 0;
}

.team-top-action-btn:active {
  transform: scale(0.92);
}

/* Theme-Dark Top Action Button */
body.theme-dark .team-top-action-btn {
  background: rgba(18, 22, 28, 0.9);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  color: #e5c158;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

body.theme-dark .team-top-action-btn:hover {
  background: rgba(26, 32, 42, 0.95);
  border-color: #f5d77f;
  color: #f5d77f;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
}

/* Theme-Light (Minimal Light) Top Action Button */
body.theme-light .team-top-action-btn {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.theme-light .team-top-action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Theme-Gold-Premium Top Action Button (5-Stop Reflective 24K Liquid Gold) */
body.theme-gold-premium .team-top-action-btn {
  background: linear-gradient(135deg, #fff2be 0%, #f0ca62 25%, #d49f2b 55%, #f9e29a 80%, #b5811c 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  color: #1a1205;
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.45), inset 0 1.5px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 0 rgba(140, 100, 10, 0.35);
}

body.theme-gold-premium .team-top-action-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 26px rgba(184, 145, 37, 0.55), inset 0 1.5px 1px rgba(255, 255, 255, 1);
}

/* Screen Title & Subtitle Typography - Hidden for clean minimalist UI */
.team-header-title-block {
  display: none !important;
  margin-bottom: 18px;
  text-align: left;
}

body[dir="rtl"] .team-header-title-block {
  text-align: right;
}

.team-screen-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

body.theme-dark .team-screen-title {
  color: #ffffff;
}

body.theme-light .team-screen-title {
  color: #111827;
}

body.theme-gold-premium .team-screen-title {
  color: #1a1205;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.team-screen-subtitle {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
}

body.theme-dark .team-screen-subtitle {
  color: #9ca3af;
}

body.theme-light .team-screen-subtitle {
  color: #6b7280;
}

body.theme-gold-premium .team-screen-subtitle {
  color: #695028;
}

/* ==========================================================================
   WORKER ICON GRID & 3D FLOATING CARDS (Triple-Theme Calibration)
   ========================================================================== */

.worker-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 6px 0 24px 0;
  box-sizing: border-box;
}

@media (max-width: 340px) {
  .worker-icon-grid {
    gap: 8px;
  }
}

.worker-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 18px 8px 16px 8px;
  border-radius: 24px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  min-height: 160px;
  height: auto;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.worker-icon-card:active {
  transform: translateY(1px) scale(0.96);
  transition-duration: 0.1s;
}

/* 1. DARK MODE: Obsidian card, hairline gold border, deep glow */
body.theme-dark .worker-icon-card {
  background: #13161f;
  border: 1.2px solid rgba(212, 175, 55, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

body.theme-dark .worker-icon-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #e5c158;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 24px rgba(212, 175, 55, 0.3);
}

/* 2. MINIMAL LIGHT MODE: Pure white card, diffused soft shadow, ZERO gold border */
body.theme-light .worker-icon-card {
  background: #ffffff;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.theme-light .worker-icon-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 3. GOLD PREMIUM MODE: Gilded porcelain plaque, crisp 24K gold rim, warm golden ambient glow */
body.theme-gold-premium .worker-icon-card {
  background: #ffffff;
  border: 2px solid #d4af37;
  box-shadow: 0 12px 30px rgba(184, 145, 37, 0.22), 0 3px 10px rgba(0, 0, 0, 0.04), inset 0 2px 0 #ffffff;
}

body.theme-gold-premium .worker-icon-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #b8860b;
  box-shadow: 0 18px 42px rgba(184, 145, 37, 0.42), 0 0 28px rgba(212, 175, 55, 0.4), inset 0 2px 0 #ffffff;
}

/* AVATAR PODS (Prominent 84px Medallions) */
.worker-icon-avatar-pod {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.22s ease;
  box-sizing: border-box;
}

.worker-icon-card:hover .worker-icon-avatar-pod {
  transform: scale(1.06);
}

/* Dark Mode Avatar Pod: Squircle with hairline gold border */
body.theme-dark .worker-icon-avatar-pod {
  border-radius: 22px;
  background: #0e1117;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Minimal Light Avatar Pod: Pure Circle, soft gray fill, NO gold border */
body.theme-light .worker-icon-avatar-pod {
  border-radius: 50%;
  background: #eceef1;
  border: 1.5px solid #e1e4e8;
  box-shadow: none;
}

/* Gold Premium Avatar Pod: 3D Molten Gold Medallion */
body.theme-gold-premium .worker-icon-avatar-pod {
  border-radius: 24px;
  background: linear-gradient(135deg, #fff9e6 0%, #fce9b8 35%, #f5d179 75%, #caa030 100%);
  border: 2.2px solid #c89528;
  box-shadow: 0 8px 22px rgba(184, 145, 37, 0.42), inset 0 2px 1.5px #ffffff, inset 0 -2px 1.5px rgba(138, 97, 10, 0.3), 0 0 16px rgba(212, 175, 55, 0.3);
}

/* INITIALS MONOGRAM TYPOGRAPHY (Bold 1.85rem Haute Couture) */
.worker-icon-avatar-pod .worker-initials-text {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

body.theme-dark .worker-icon-avatar-pod .worker-initials-text {
  color: #e5c158;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

body.theme-light .worker-icon-avatar-pod .worker-initials-text {
  color: #111827;
  text-shadow: none;
}

body.theme-gold-premium .worker-icon-avatar-pod .worker-initials-text {
  color: #5c3b02;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 -0.5px 0 rgba(0, 0, 0, 0.15);
}

/* WORKER NAME TYPOGRAPHY (Strictly 1 Line with Ellipsis) */
.worker-icon-name {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
}

body.theme-dark .worker-icon-name {
  color: #ffffff;
}

body.theme-light .worker-icon-name {
  color: #111827;
}

body.theme-gold-premium .worker-icon-name {
  color: #1a1205;
  font-weight: 800;
}

/* ==========================================================================
   WORKER PROFILE FULL PAGE (Executive Haute Couture Screen)
   Replaces popout modal with dedicated full-viewport page
   ========================================================================== */

.worker-profile-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  animation: profilePageEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  padding-bottom: 24px;
}

@keyframes profilePageEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top Navigation Bar: Back button to Team */
.profile-page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 4px;
}

.profile-page-nav-bar.app-top-nav-bar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  border-bottom: none !important;
  padding: 8px 0 10px 0 !important;
  margin-bottom: 10px !important;
}

.profile-page-nav-bar.app-top-nav-bar .profile-back-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  justify-self: start !important;
}

.profile-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #8c640e;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.14);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  flex-shrink: 0;
}

body.theme-dark .profile-back-btn {
  background: rgba(26, 30, 42, 0.92);
  color: var(--gold-primary);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.profile-back-btn:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #fae298 0%, #d4af37 100%);
  color: #1a1306;
  border-color: #d4af37;
}

.profile-back-btn:active {
  transform: scale(0.94);
}

.profile-back-chevron {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
  margin-top: -2px;
}

.profile-nav-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hero Identity Pod */
.profile-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(212, 175, 55, 0.48);
  box-shadow: 0 16px 36px rgba(184, 145, 37, 0.14), inset 0 1px 1px #ffffff;
  position: relative;
  box-sizing: border-box;
}

body.theme-gold-premium .profile-hero-card {
  background: linear-gradient(165deg, #ffffff 0%, #fdf7eb 45%, #f7ebd1 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 16px 40px rgba(184, 145, 37, 0.28), inset 0 1.5px 1px #ffffff;
}

body.theme-dark .profile-hero-card {
  background: linear-gradient(145deg, rgba(26, 30, 42, 0.92) 0%, rgba(16, 19, 28, 0.96) 100%);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

.profile-hero-avatar-pod {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff 0%, #fdf5e6 100%);
  border: 2px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(184, 145, 37, 0.2), inset 0 1px 0 #ffffff;
  position: relative;
  cursor: pointer;
  transition: transform 0.22s ease;
  overflow: visible;
}

body.theme-gold-premium .profile-hero-avatar-pod {
  background: linear-gradient(135deg, #fff9e6 0%, #fde4a0 35%, #f4c45a 75%, #caa030 100%);
  border: 2.5px solid #c89528;
  box-shadow: 0 10px 28px rgba(184, 145, 37, 0.4), inset 0 2px 1px #ffffff, 0 0 18px rgba(212, 175, 55, 0.35);
}

body.theme-dark .profile-hero-avatar-pod {
  background: linear-gradient(135deg, #241e15 0%, #15120d 100%);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-hero-avatar-pod:hover {
  transform: scale(1.05);
}

.profile-camera-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fae298 0%, #d4af37 60%, #b8860b 100%);
  color: #1a1306;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  cursor: pointer;
  z-index: 2;
}

body.theme-dark .profile-camera-badge {
  border-color: #1a1e2a;
}

.profile-hero-avatar-pod .worker-initials-text {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #8c640e;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-dark .profile-hero-avatar-pod .worker-initials-text {
  color: var(--gold-primary);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.profile-hero-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 14px 0 0 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.profile-hero-role-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8c640e;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 14px;
  border-radius: 999px;
  margin-top: 6px;
}

body.theme-dark .profile-hero-role-pill {
  color: #ffd875;
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
}

.profile-photo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.profile-photo-btn {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #7d5a08;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .profile-photo-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffd875;
  border-color: rgba(212, 175, 55, 0.3);
}

.profile-photo-btn:hover {
  background: var(--gold-primary);
  color: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 12px rgba(184, 145, 37, 0.3);
}

/* Segmented Tab Switcher (Pay Rates / Timesheet Paper) */
.profile-tab-switcher {
  display: flex;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(184, 145, 37, 0.08);
}

body.theme-dark .profile-tab-switcher {
  background: rgba(20, 24, 34, 0.85);
  border-color: rgba(212, 175, 55, 0.25);
}

.profile-tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-tab-item.active {
  background: linear-gradient(135deg, #fae298 0%, #d4af37 60%, #b8860b 100%);
  color: #1a1306;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.32);
}

/* Executive Form Grouped Cards */
.profile-section-header {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
  padding-left: 6px;
}

.profile-form-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  box-shadow: 0 10px 26px rgba(184, 145, 37, 0.1), inset 0 1px 1px #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.theme-dark .profile-form-card {
  background: linear-gradient(145deg, rgba(26, 30, 42, 0.88) 0%, rgba(16, 19, 28, 0.94) 100%);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.profile-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  gap: 14px;
}

.profile-form-row:not(:last-child) {
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.profile-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.profile-row-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-row-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.profile-currency-pill {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 6px 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(184, 145, 37, 0.08);
  gap: 4px;
  transition: all 0.2s ease;
}

body.theme-dark .profile-currency-pill {
  background: #141722;
  border-color: rgba(212, 175, 55, 0.4);
}

.profile-currency-pill:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.profile-currency-sign {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 800;
  color: #8c640e;
}

body.theme-dark .profile-currency-sign {
  color: var(--gold-primary);
}

.profile-currency-input {
  width: 76px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
  outline: none;
}

.profile-currency-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

.profile-text-pill {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(184, 145, 37, 0.08);
  gap: 8px;
  flex: 1;
  max-width: 220px;
  transition: all 0.2s ease;
}

body.theme-dark .profile-text-pill {
  background: #141722;
  border-color: rgba(212, 175, 55, 0.4);
}

.profile-text-pill:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.profile-text-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
}

.profile-hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: var(--gold-badge-bg);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  margin-top: 4px;
}

.profile-hero-status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 6px var(--accent-success);
}

/* ==========================================================================
   BENTO-BOX ARCHITECTURE: SOLID JEWEL CONTRAST TILES
   Inspired by Arabic Project (Tibyan / Noor) — High Contrast, Solid Colors,
   Multi-Layered Glass Elevation, and Minimalist Micro-Typography
   ========================================================================== */

.profile-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 340px) {
  .profile-bento-grid {
    grid-template-columns: 1fr;
  }
}

/* Stacked Bento Grid for Profile (Name on top of Phone) */
.profile-bento-grid.profile-bento-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bento-tile.bento-tile-stacked {
  padding: 15px 16px 16px;
  gap: 12px;
  border-radius: 20px;
}

.bento-tile.bento-tile-stacked .bento-header {
  gap: 12px;
}

.bento-tile.bento-tile-stacked .bento-icon-badge {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  font-size: 22px;
}

.bento-tile.bento-tile-stacked .bento-micro-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

/* Enlarged Input Well for Stacked Profile Tiles */
.bento-input-well.bento-input-well-lg {
  padding: 12px 14px;
  border-radius: 14px;
}

.bento-input-well.bento-input-well-lg input {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bento-input-well input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  opacity: 0.8;
}

body.theme-dark .bento-input-well input::placeholder {
  color: #64748b;
}

.bento-tile {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 13px 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 24px -4px rgba(184, 145, 37, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

body.theme-gold-premium .bento-tile {
  background: linear-gradient(155deg, #ffffff 0%, #fdf8ec 45%, #f7ebd1 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 10px 26px rgba(184, 145, 37, 0.2), inset 0 1.5px 0 #ffffff;
}

body.theme-dark .bento-tile,
body.theme-obsidian .bento-tile,
body.theme-dark-velvet .bento-tile {
  background: linear-gradient(155deg, #1c2130 0%, #131722 100%);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bento-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 14px 30px -4px rgba(184, 145, 37, 0.22), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.bento-tile:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28), 0 12px 28px rgba(184, 145, 37, 0.16);
}

/* Wide Bento Tile (Spans Full Width of Grid for Extended View) */
.bento-tile.bento-tile-wide {
  grid-column: 1 / -1;
  width: 100%;
  padding: 16px 18px;
  align-items: center;
  text-align: center;
}

.bento-tile.bento-tile-wide .bento-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.bento-tile.bento-tile-wide .bento-title-group {
  flex: 0 0 auto;
  text-align: center;
}

.bento-tile.bento-tile-wide .bento-currency-well {
  padding: 12px 16px;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  text-align: center;
}

.bento-tile.bento-tile-wide .bento-currency-sign {
  font-size: 1.25rem;
  font-weight: 800;
  margin-right: 4px;
}

.bento-tile.bento-tile-wide .bento-currency-input {
  flex: 0 1 auto;
  width: 80px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
}

[dir="rtl"] .bento-tile.bento-tile-wide .bento-currency-well,
body.lang-ar .bento-tile.bento-tile-wide .bento-currency-well {
  direction: ltr;
  justify-content: center;
}

/* Bento Tile Header (Icon Badge + Micro Label) */
.bento-header {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.bento-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-tile:hover .bento-icon-badge {
  transform: scale(1.1);
}

/* ==========================================================================
   DISCIPLINED 4-COLOR PALETTE (24K GOLD HERO HIERARCHY)
   Consolidates interface into exactly 4 cohesive variants:
   1. Variant 1 (Main Hero): Radiant 24K Gold (.badge-gold-main)
   2. Variant 2 (Gold Family Tonal): Warm Antique Bronze (.badge-gold-bronze)
   3. Variant 3 (Status & Communications): Atelier Forest Emerald (.badge-emerald)
   4. Variant 4 (Architectural Grounding): Slate Charcoal (.badge-slate)
   ========================================================================== */

/* Variant 1: Radiant 24K Gold (Primary Brand / Role / Special / Hourly) */
.badge-gold-main,
.badge-gold,
.badge-teal {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: 1.2px solid #fde047;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.28);
}

body.theme-dark .badge-gold-main,
body.theme-dark .badge-gold,
body.theme-dark .badge-teal {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #ffd875;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Variant 2: Warm Antique Bronze Gold (Event & Pickup Gigs) */
.badge-gold-bronze,
.badge-rose,
.badge-amber {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  color: #ffffff;
  border: 1.2px solid #fed7aa;
  box-shadow: 0 4px 12px rgba(154, 52, 18, 0.24);
}

body.theme-dark .badge-gold-bronze,
body.theme-dark .badge-rose,
body.theme-dark .badge-amber {
  background: linear-gradient(135deg, #9a3412 0%, #431407 100%);
  color: #fdba74;
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Variant 3: Atelier Forest Emerald (Phone & Active Dispatch) */
.badge-emerald {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1.2px solid #6ee7b7;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

body.theme-dark .badge-emerald {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Variant 4: Slate Charcoal / Obsidian (Name & Payout Account) */
.badge-slate,
.badge-navy,
.badge-violet {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  border: 1.2px solid #94a3b8;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.22);
}

body.theme-dark .badge-slate,
body.theme-dark .badge-navy,
body.theme-dark .badge-violet {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   3-THEME ICONS ARCHITECTURE (GOLD, DARK, LIGHT — DEDICATED THEME PICTURES)
   ========================================================================== */

/* 1. GOLD THEME ICONS (24K Gold & Gilded Botanicals) */
body.theme-gold-premium .bento-icon-badge.icon-name {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  color: #78350f;
  border: 1.5px solid #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.28);
}
body.theme-gold-premium .bento-icon-badge.icon-phone {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border: 1.5px solid #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
body.theme-gold-premium .bento-icon-badge.icon-location {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #fef3c7 100%);
  color: #1e40af;
  border: 1.5px solid #d4af37;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}
body.theme-gold-premium .bento-icon-badge.icon-event {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  color: #9a3412;
  border: 1.5px solid #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}
body.theme-gold-premium .bento-icon-badge.icon-pickup {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
  color: #854d0e;
  border: 1.5px solid #eab308;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}
body.theme-gold-premium .bento-icon-badge.icon-hourly {
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%);
  color: #713f12;
  border: 1.5px solid #ca8a04;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.28);
}
body.theme-gold-premium .bento-icon-badge.icon-special {
  background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
  color: #78350f;
  border: 1.5px solid #d97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* 2. DARK THEME ICONS (Strictly Zero Blue - Midnight Obsidian Velvet & Burnished Gold) */
body.theme-dark .bento-icon-badge.icon-name {
  background: linear-gradient(135deg, #1e2536 0%, #111520 100%);
  color: #f1f5f9;
  border: 1.5px solid #475569;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
body.theme-dark .bento-icon-badge.icon-phone {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  color: #6ee7b7;
  border: 1.5px solid #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
body.theme-dark .bento-icon-badge.icon-location {
  background: linear-gradient(135deg, #172554 0%, #0f172a 100%);
  color: #93c5fd;
  border: 1.5px solid #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
body.theme-dark .bento-icon-badge.icon-event {
  background: linear-gradient(135deg, #431407 0%, #250b04 100%);
  color: #fdba74;
  border: 1.5px solid #ea580c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
body.theme-dark .bento-icon-badge.icon-pickup {
  background: linear-gradient(135deg, #3f2c06 0%, #201503 100%);
  color: #fef08a;
  border: 1.5px solid #ca8a04;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.35);
}
body.theme-dark .bento-icon-badge.icon-hourly {
  background: linear-gradient(135deg, #3a2e05 0%, #1f1902 100%);
  color: #ffd875;
  border: 1.5px solid #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
body.theme-dark .bento-icon-badge.icon-special {
  background: linear-gradient(135deg, #451a03 0%, #270e02 100%);
  color: #fed7aa;
  border: 1.5px solid #d97706;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

/* 3. LIGHT THEME ICONS (Crisp Editorial White Paper & Slate Platinum) */
body.theme-light .bento-icon-badge.icon-name {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.theme-light .bento-icon-badge.icon-phone {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  color: #047857;
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}
body.theme-light .bento-icon-badge.icon-location {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
body.theme-light .bento-icon-badge.icon-event {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  color: #c2410c;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}
body.theme-light .bento-icon-badge.icon-pickup {
  background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
  color: #a16207;
  border: 1.5px solid #fef08a;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.1);
}
body.theme-light .bento-icon-badge.icon-hourly {
  background: linear-gradient(135deg, #ffffff 0%, #fef9c3 100%);
  color: #854d0e;
  border: 1.5px solid #fde047;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.12);
}
body.theme-light .bento-icon-badge.icon-special {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  color: #b45309;
  border: 1.5px solid #fde68a;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

/* Authentic Arabic-App Styled 3-Theme Medallion Cards */
.theme-card-option {
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.theme-card-option:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(184, 145, 37, 0.18);
}

.theme-card-option.active {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  background: var(--bg-card);
}

.theme-medallion-pod {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.theme-card-option:hover .theme-medallion-pod {
  transform: scale(1.08);
}

/* 1. Gold Theme Picture/Medallion */
.theme-pod-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1.8px solid #d97706;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25), inset 0 1px 0 #ffffff;
  color: #78350f;
}

/* 2. Dark Theme Picture/Medallion (Strictly Zero Blue - Midnight Obsidian) */
.theme-pod-dark {
  background: linear-gradient(135deg, #14161e 0%, #1a1d27 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #ffd875;
}

/* 3. Light Theme Picture/Medallion (Porcelain White & Platinum) */
.theme-pod-light {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1.8px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 #ffffff;
  color: #334155;
}

.theme-pod-glyph {
  font-size: 1.25rem;
  line-height: 1;
}

.theme-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.theme-card-check {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-top: 2px;
  opacity: 0;
  min-height: 15px;
  transition: opacity 0.2s ease;
}

.theme-card-check.visible {
  opacity: 1;
}

.bento-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

/* Concise 1-Word Micro-Label */
.bento-micro-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

body.theme-dark .bento-micro-label {
  color: #94a3b8;
}

/* Eliminated Subtitle Chip to enforce Minimalist Clutter-Free UI */
.bento-sub-chip {
  display: none !important;
}

/* Recessed Solid Bento Input Well */
.bento-input-well {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

body.theme-gold-premium .bento-input-well {
  background: #ffffff;
  border: 1.4px solid rgba(212, 175, 55, 0.4);
  box-shadow: inset 0 1.5px 3px rgba(184, 145, 37, 0.08);
}

body.theme-dark .bento-input-well {
  background: #0f131d;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.bento-tile:focus-within .bento-input-well {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

body.theme-gold-premium .bento-tile:focus-within .bento-input-well {
  background: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

body.theme-dark .bento-tile:focus-within .bento-input-well {
  background: #141824;
  border-color: var(--gold-primary);
}

.bento-input-well input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body, inherit);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0;
  box-sizing: border-box;
}

.bento-input-well textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body, inherit);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.45;
}

.bento-input-well select,
.bento-select-well select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body, inherit);
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-primary);
  padding: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Currency Bento Well (Bold Figures) */
.bento-currency-well {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

body.theme-gold-premium .bento-currency-well {
  background: #ffffff;
  border: 1.4px solid rgba(212, 175, 55, 0.4);
  box-shadow: inset 0 1.5px 3px rgba(184, 145, 37, 0.08);
}
  gap: 3px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

body.theme-dark .bento-currency-well {
  background: #0f131d;
  border-color: rgba(255, 255, 255, 0.12);
}

.bento-tile:focus-within .bento-currency-well {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

body.theme-dark .bento-tile:focus-within .bento-currency-well {
  background: #141824;
  border-color: var(--gold-primary);
}

.bento-currency-sign {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #8c640e;
  user-select: none;
}

body.theme-dark .bento-currency-sign {
  color: var(--gold-primary);
}

.bento-currency-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0;
  box-sizing: border-box;
}

.bento-currency-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}

/* Section Header Liquid Frosted Glass Pill Styling */
.bento-section-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  width: 100% !important;
}

.bento-section-header-row .bento-section-title {
  margin: 0 !important;
}

.bento-section-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 14px 5px 12px !important;
  border-radius: 9999px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.44) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.90) !important;
  border-top: 1.6px solid rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(212, 175, 55, 0.12), inset 0 1.2px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(212, 175, 55, 0.10) !important;
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: #6a4e10 !important;
  margin: 6px 0 10px 2px !important;
  width: fit-content !important;
  box-sizing: border-box !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bento-section-title:hover {
  transform: translateY(-0.5px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07), 0 3px 8px rgba(212, 175, 55, 0.18), inset 0 1.2px 1px rgba(255, 255, 255, 0.98) !important;
}

.bento-section-title span.diamond {
  font-size: 0.65rem !important;
  color: #c99324 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* Graceful fallback if bento-section-title has flex-between inline style */
.bento-section-title[style*="justify-content: space-between"],
.bento-section-title[style*="justify-content:space-between"] {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  margin-bottom: 6px !important;
}

.bento-section-title[style*="justify-content: space-between"] > div:first-child,
.bento-section-title[style*="justify-content:space-between"] > div:first-child {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 14px 5px 12px !important;
  border-radius: 9999px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.44) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.90) !important;
  border-top: 1.6px solid rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(212, 175, 55, 0.12), inset 0 1.2px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(212, 175, 55, 0.10) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: #6a4e10 !important;
}

body.theme-gold-premium .bento-section-title {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.44) 100%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.90) !important;
  border-top: 1.6px solid rgba(255, 255, 255, 0.98) !important;
  color: #6a4e10 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(212, 175, 55, 0.12), inset 0 1.2px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(212, 175, 55, 0.10) !important;
}

body.theme-dark .bento-section-title {
  background: linear-gradient(160deg, rgba(38, 30, 20, 0.78) 0%, rgba(20, 16, 11, 0.84) 100%) !important;
  border: 1.2px solid rgba(212, 175, 55, 0.35) !important;
  border-top: 1.6px solid rgba(255, 235, 170, 0.55) !important;
  color: #f7dfa8 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

body.theme-dark .bento-section-title span.diamond {
  color: #ffd700 !important;
}

body.theme-dark .bento-section-title[style*="justify-content: space-between"] > div:first-child,
body.theme-dark .bento-section-title[style*="justify-content:space-between"] > div:first-child {
  background: linear-gradient(160deg, rgba(38, 30, 20, 0.78) 0%, rgba(20, 16, 11, 0.84) 100%) !important;
  border: 1.2px solid rgba(212, 175, 55, 0.35) !important;
  border-top: 1.6px solid rgba(255, 235, 170, 0.55) !important;
  color: #f7dfa8 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

body.theme-light .bento-section-title {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 247, 250, 0.82) 100%) !important;
  border: 1.2px solid rgba(0, 0, 0, 0.08) !important;
  border-top: 1.6px solid #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 1px #ffffff !important;
}

body.theme-light .bento-section-title span.diamond {
  color: #d97706 !important;
}

body.theme-light .bento-section-title[style*="justify-content: space-between"] > div:first-child,
body.theme-light .bento-section-title[style*="justify-content:space-between"] > div:first-child {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 247, 250, 0.82) 100%) !important;
  border: 1.2px solid rgba(0, 0, 0, 0.08) !important;
  border-top: 1.6px solid #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 1px #ffffff !important;
}

/* Arabic RTL adjustments for Bento */
body.lang-ar .bento-input-well input,
[dir="rtl"] .bento-input-well input {
  text-align: right;
}

body.lang-ar .bento-currency-well,
[dir="rtl"] .bento-currency-well {
  direction: ltr;
  justify-content: flex-end;
}

/* Save Rates Button */
.btn-save-profile-rates {
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fae298 0%, #d4af37 60%, #b8860b 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #1a1306;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(184, 145, 37, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.22s ease;
  margin-top: 6px;
}

.btn-save-profile-rates:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(184, 145, 37, 0.42);
}

.btn-save-profile-rates:active {
  transform: translateY(1px) scale(0.98);
}

/* --------------------------------------------------------------------------
   OPTION 1: "L'Écrin Doré" (The Gilded Jewel Box)
   Translucent frosted pearl glass, chamfered 24K gold rim, faceted squircle
   -------------------------------------------------------------------------- */
.worker-card-style-1 {
  border-radius: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 246, 233, 0.9) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 28px rgba(184, 145, 37, 0.12), inset 0 1px 0 #ffffff;
  gap: 16px;
}

body.theme-dark .worker-card-style-1 {
  background: linear-gradient(135deg, rgba(26, 30, 42, 0.9) 0%, rgba(15, 17, 24, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

body.theme-light .worker-card-style-1 {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.worker-card-style-1:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.22), inset 0 1px 0 #ffffff;
}

.avatar-pod-1 {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fef9ed 0%, #faecd1 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25), inset 0 1px 0 #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.theme-dark .avatar-pod-1 {
  background: linear-gradient(135deg, #2a2215 0%, #17130b 100%);
  border-color: rgba(212, 175, 55, 0.5);
}

.worker-card-style-1:hover .avatar-pod-1 {
  transform: scale(1.05);
}

.name-col-1 {
  flex: 1;
  min-width: 0;
}

.name-title-1 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.action-cue-1 {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-badge-bg);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.worker-card-style-1:hover .action-cue-1 {
  background: var(--gold-primary);
  color: #ffffff;
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   OPTION 2: "Carte Royale Atelier" (Letterpress Stationery)
   Fine debossed double-rule frame, circular wax seal medallion, small-caps
   -------------------------------------------------------------------------- */
.worker-card-style-2 {
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(212, 175, 55, 0.15);
  gap: 14px;
}

body.theme-gold-premium .worker-card-style-2 {
  background: #fdfaf3;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.08), inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

body.theme-dark .worker-card-style-2 {
  background: #141722;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
}

.worker-card-style-2:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18), inset 0 0 0 1.5px var(--gold-primary);
}

.avatar-pod-2 {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.name-col-2 {
  flex: 1;
  min-width: 0;
}

.name-title-2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.action-cue-2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-badge-bg);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.worker-card-style-2:hover .action-cue-2 {
  background: var(--gold-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   OPTION 3: "Prisme de Verre Flottant" (3D Floating Glass Slab)
   Extreme blur, reflective top sheen, floating 3D squircle with golden chevron
   -------------------------------------------------------------------------- */
.worker-card-style-3 {
  border-radius: 22px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 24px rgba(212, 175, 55, 0.15);
  gap: 16px;
}

body.theme-gold-premium .worker-card-style-3 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 239, 222, 0.75) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 18px 40px rgba(184, 145, 37, 0.16), 0 0 30px rgba(212, 175, 55, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

body.theme-dark .worker-card-style-3 {
  background: rgba(20, 24, 34, 0.75);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.12);
}

.worker-card-style-3:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 22px 48px rgba(184, 145, 37, 0.22), 0 0 35px rgba(212, 175, 55, 0.3);
}

.avatar-pod-3 {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

body.theme-gold-premium .avatar-pod-3 {
  background: linear-gradient(135deg, #ffffff 0%, #fdf5e6 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 16px rgba(184, 145, 37, 0.15), inset 0 1px 0 #ffffff;
}

body.theme-dark .avatar-pod-3 {
  background: #191e2b;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
}

.worker-initials-text {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--gold-primary);
  line-height: 1;
}

body.theme-gold-premium .worker-initials-text {
  color: #8c640e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-dark .worker-initials-text {
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.name-col-3 {
  flex: 1;
  min-width: 0;
}

.name-title-3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.action-cue-3 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #b89125 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease;
}

.worker-card-style-3:hover .action-cue-3 {
  transform: scale(1.1) rotate(5deg);
}

/* Worker Profile Overview Header (Mobile Worker View) */
.worker-profile-header-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

/* Stacked Profile Card (Square Medallion Layout - Enriched & Balanced) */
.worker-profile-stacked {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(100%, 204px);
  margin: 0 auto;
  padding: 13px 14px 11px;
  border-radius: 24px;
  box-sizing: border-box;
}

.worker-profile-stacked .btn-edit-corner {
  display: none !important;
}

.worker-profile-stacked .worker-avatar-upload-pod {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.worker-profile-stacked .worker-avatar-upload-pod:active {
  transform: scale(0.96);
}

.worker-profile-stacked .avatar-pod-3 {
  border-radius: 26px;
}

.worker-profile-stacked .worker-initials-text {
  font-size: 2.35rem;
  user-select: none;
  -webkit-user-select: none;
}

.worker-profile-stacked .profile-camera-badge {
  display: none !important;
}

.worker-profile-stacked .worker-profile-name-block {
  margin-top: 6px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.worker-profile-stacked .name-title-3 {
  line-height: 1.15;
  font-size: 1.12rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.worker-profile-stacked .name-title-3:active {
  opacity: 0.75;
  transform: scale(0.97);
}

.worker-profile-stacked .worker-profile-phone-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  padding: 3px 10px;
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: var(--gold-primary);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(184, 145, 37, 0.08);
  transition: all 0.2s ease;
}

.worker-profile-stacked .worker-profile-phone-line:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(184, 145, 37, 0.16);
}

.worker-profile-stacked .worker-profile-phone-line:active {
  transform: translateY(0) scale(0.97);
}

body.theme-gold-premium .worker-profile-stacked .worker-profile-phone-line {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 245, 230, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #8c640e;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.12);
}

body.theme-dark .worker-profile-stacked .worker-profile-phone-line {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: #ffd875;
}

/* Worker Profile Overview Container - Pinned to Bottom in Highlighted Zone (Zero Scroll) */
.module-view:not(.active),
#view-home:not(.active),
#view-workers:not(.active),
#view-weddings:not(.active),
#view-invoices:not(.active),
#view-calendar:not(.active),
#view-scribe:not(.active),
#view-points:not(.active),
#view-chat:not(.active),
#view-uhaul:not(.active),
#view-settings:not(.active) {
  display: none !important;
}

body:has(#view-workers.active .worker-profile-overview-wrap) .mobile-viewport,
body.is-worker-profile-active:has(#view-workers.active) .mobile-viewport {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 16px) !important;
}

#view-workers.active:has(.worker-profile-overview-wrap),
body.is-worker-profile-active #view-workers.active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}

#workers-team-subview.active:has(.worker-profile-overview-wrap),
body.is-worker-profile-active #workers-team-subview.active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}

#workers-team-subview.active:has(.worker-profile-overview-wrap) #workers-team-container,
body.is-worker-profile-active #workers-team-subview.active #workers-team-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}

.worker-profile-overview-wrap {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.worker-profile-pay-btn-wrap {
  margin-top: auto !important;
  padding-top: 14px !important;
  padding-bottom: 2px !important;
}

#view-workers .sub-nav-wrapper {
  margin-bottom: 12px;
}

.worker-avatar-upload-pod {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 24px;
}

.worker-avatar-upload-pod .avatar-pod-3 {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.worker-avatar-upload-pod .worker-initials-text {
  font-size: 1.85rem;
}

.worker-avatar-upload-pod .profile-camera-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  z-index: 2;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.worker-avatar-upload-pod:hover .profile-camera-badge,
.worker-avatar-upload-pod:active .profile-camera-badge {
  transform: scale(1.15);
}

body.theme-dark .worker-avatar-upload-pod .profile-camera-badge {
  background: #191e2b;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.worker-profile-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.worker-profile-name-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.worker-profile-phone-line {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
}

.worker-profile-phone-line svg {
  color: var(--gold-primary);
  opacity: 0.85;
}

.btn-edit-worker-profile {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 145, 37, 0.08) 100%);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-edit-worker-profile:hover {
  background: var(--gold-primary);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.3);
}

.btn-edit-worker-profile:active {
  transform: translateY(0) scale(0.97);
}

body.theme-dark .btn-edit-worker-profile {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.5);
  color: #ffd875;
}


/* --------------------------------------------------------------------------
   OPTION 4: "Le Ruban Botanique" (Gilded Floral Ribbon)
   24K gold foil vertical ribbon band on left edge, porcelain background
   -------------------------------------------------------------------------- */
.worker-card-style-4 {
  border-radius: 16px;
  padding: 14px 18px 14px 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-card);
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.worker-card-style-4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #f59e0b 0%, #d4af37 50%, #b45309 100%);
  box-shadow: 2px 0 8px rgba(212, 175, 55, 0.4);
}

body.theme-gold-premium .worker-card-style-4 {
  background: linear-gradient(90deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(184, 145, 37, 0.1);
}

body.theme-dark .worker-card-style-4 {
  background: #151926;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
}

.worker-card-style-4:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.avatar-pod-4 {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-badge-bg);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}

.name-col-4 {
  flex: 1;
  min-width: 0;
}

.name-title-4 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
}

.action-cue-4 {
  font-size: 1.2rem;
  color: var(--gold-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.worker-card-style-4:hover .action-cue-4 {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   OPTION 5: "VIP Capsule Monolith" (Ultra-Sleek Continuous Pill)
   Continuous aerodynamic pill geometry, signet ring circular medallion
   -------------------------------------------------------------------------- */
.worker-card-style-5 {
  border-radius: 9999px;
  padding: 8px 18px 8px 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-card);
  gap: 14px;
}

body.theme-gold-premium .worker-card-style-5 {
  background: linear-gradient(90deg, #ffffff 0%, #fcf8ee 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 24px rgba(184, 145, 37, 0.12), inset 0 1px 0 #fff;
}

body.theme-dark .worker-card-style-5 {
  background: #141824;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
}

.worker-card-style-5:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.25);
}

.avatar-pod-5 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-badge-bg);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.name-col-5 {
  flex: 1;
  min-width: 0;
}

.name-title-5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.action-cue-5 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-badge-bg);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.worker-card-style-5:hover .action-cue-5 {
  background: var(--gold-primary);
  color: #fff;
  transform: translateX(2px);
}

/* Style Switcher Bar */
.style-switcher-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.style-switcher-bar::-webkit-scrollbar {
  display: none;
}

.style-label-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Monthly Timesheet Paper Sheet Layout
   ========================================================================== */
.timesheet-paper {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-speed);
}

body.theme-gold-premium .timesheet-paper {
  background: #ffffff;
  border: 1.8px solid #d4af37;
  box-shadow: 0 14px 38px rgba(184, 145, 37, 0.16), inset 0 1.5px 0 #ffffff;
}

.timesheet-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--border-color);
  margin-bottom: 14px;
}

.timesheet-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timesheet-period-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.timesheet-worker-stamp {
  font-size: 0.74rem;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timesheet-summary-ribbon {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  padding: 4px 6px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(212, 175, 55, 0.42) !important;
  box-shadow: 0 3px 12px rgba(184, 145, 37, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 6px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  height: 42px !important;
}

body.theme-gold-premium .timesheet-summary-ribbon {
  background: #ffffff !important;
  border-color: rgba(212, 175, 55, 0.42) !important;
  box-shadow: 0 3px 12px rgba(184, 145, 37, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.theme-dark .timesheet-summary-ribbon {
  background: #181715 !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.timesheet-metric-box {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 1px 2px !important;
  min-width: 0 !important;
  position: relative !important;
  border: none !important;
}

.timesheet-metric-val {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  color: var(--text-primary) !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}

.timesheet-metric-label {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 0.52rem !important;
  font-weight: 800 !important;
  color: #8b6e28 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.theme-dark .timesheet-metric-label {
  color: #d4af37 !important;
}

.timesheet-metric-divider {
  width: 1px !important;
  height: 22px !important;
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.35) 20%, rgba(212, 175, 55, 0.35) 80%, transparent 100%) !important;
  flex-shrink: 0 !important;
}
body.theme-dark .timesheet-metric-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.30) 20%, rgba(212, 175, 55, 0.30) 80%, transparent 100%) !important;
}

body.theme-dark .timesheet-metric-box:nth-child(1),
body.theme-dark .timesheet-metric-box:nth-child(2),
body.theme-dark .timesheet-metric-box:nth-child(3) {
  border-color: rgba(255, 255, 255, 0.10);
}

.timesheet-metric-icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1.4px solid rgba(212, 175, 55, 0.35);
  color: #b8860b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.timesheet-metric-icon-badge svg {
  width: 19px;
  height: 19px;
}

body.theme-dark .timesheet-metric-icon-badge {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.40);
  color: #e5c365;
}

.timesheet-metric-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.timesheet-metric-label {
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
  color: #786c57;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1.1;
}

body.theme-dark .timesheet-metric-label {
  color: #a8a29e;
}

.timesheet-metric-val {
  font-size: 1.25rem;
  font-weight: 850;
  color: #1e1b18;
  white-space: nowrap;
  line-height: 1.18;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-dark .timesheet-metric-val {
  color: #fef3c7;
}

.timesheet-metric-box:last-child .timesheet-metric-val {
  color: #996515;
  font-weight: 900;
}

body.theme-dark .timesheet-metric-box:last-child .timesheet-metric-val {
  color: #fcd34d;
}

.timesheet-metric-accent-bar {
  width: 26px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37 0%, #f6e6b4 100%);
  margin-top: 3px;
}

body.theme-dark .timesheet-metric-accent-bar {
  background: linear-gradient(90deg, #d4af37 0%, #85610e 100%);
}

.timesheet-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timesheet-entry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.timesheet-entry-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.timesheet-entry-row.starred-entry {
  border-color: var(--star-gold);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-secondary) 100%);
}

/* ==========================================================================
   Authentic 1–31 Workplace Job Timesheet & Universal Month Stepper Styles
   ========================================================================== */

.timesheet-month-stepper-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timesheet-month-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px 6px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
}

body.theme-gold-premium .timesheet-month-stepper {
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 247, 236, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.14), inset 0 1px 1.5px #ffffff;
}

body.theme-dark .timesheet-month-stepper {
  border-color: rgba(212, 175, 55, 0.40);
  background: linear-gradient(180deg, #25231e 0%, #171613 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.month-stepper-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.month-stepper-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.08);
}

.month-stepper-btn:active {
  transform: scale(0.95);
}

.month-stepper-selector-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}

.month-stepper-calendar-icon {
  font-size: 0.95rem;
}

.month-stepper-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  padding-right: 0;
  outline: none;
}

.month-stepper-caret {
  position: absolute;
  right: 6px;
  pointer-events: none;
  font-size: 0.72rem;
  color: var(--gold-primary);
}

.timesheet-month-stepper .month-stepper-caret {
  display: none !important;
}

.timesheet-month-stepper .month-stepper-dropdown {
  padding-right: 0 !important;
}

.timesheet-actions-group {
  display: flex;
  gap: 6px;
}

.btn-timesheet-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-timesheet-action:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

body.theme-gold-premium .btn-timesheet-action {
  border-color: #e5c97a;
  background: #ffffff;
}

/* ==========================================================================
   Authentic Fitted 1–31 Workplace Job Timesheet Sheet & Day Cards
   ========================================================================== */

.daily-timesheet-sheet {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 8px;
  box-shadow: none;
}

body.theme-gold-premium .daily-timesheet-sheet {
  border: none;
  background: transparent;
  box-shadow: none;
}

.daily-ledger-header-row {
  display: grid;
  grid-template-columns: 46px 1fr 48px 104px;
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  background: linear-gradient(135deg, #c49326 0%, #b8860b 100%);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.20);
  box-sizing: border-box;
  width: 100%;
}

.daily-ledger-header-row .ledger-col-status {
  justify-content: center;
  text-align: center;
}

body.theme-gold-premium .daily-ledger-header-row {
  background: linear-gradient(135deg, #c49326 0%, #b8860b 100%);
  color: #ffffff;
}

body.theme-dark .daily-ledger-header-row {
  background: linear-gradient(135deg, #a67c1e 0%, #85610e 100%);
  color: #ffffff;
}

.daily-ledger-body {
  position: relative !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 176px);
  min-height: 640px;
  max-height: calc(100vh - 176px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  padding: 0 0 calc((var(--daily-row-height, 70px) + 5px) * 6) 0;
  box-sizing: border-box;
  width: 100%;
}

.daily-ledger-body::-webkit-scrollbar {
  width: 5px;
}
.daily-ledger-body::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.05);
}
.daily-ledger-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 999px;
}
.daily-ledger-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

.daily-ledger-row {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: grid;
  grid-template-columns: 52px 1fr 1px 58px;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  height: var(--daily-row-height, calc((100vh - 210px) / 7));
  min-height: var(--daily-row-height, calc((100vh - 210px) / 7));
  max-height: var(--daily-row-height, calc((100vh - 210px) / 7));
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 18px;
  position: relative;
  transition: all 0.18s ease;
  width: 100%;
  background: linear-gradient(135deg, #fffdf8 0%, #fcf7ed 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.15), 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
}

body.theme-gold-premium .daily-ledger-row {
  background: linear-gradient(135deg, #fffdf8 0%, #fcf7ed 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.15), 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
}

body.theme-light .daily-ledger-row {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.8px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
}

body.theme-dark .daily-ledger-row {
  background: linear-gradient(145deg, #1a1815 0%, #121110 100%);
  border: 1.8px solid rgba(212, 175, 55, 0.42);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.daily-ledger-row:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.2);
}
body.theme-light .daily-ledger-row:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}
body.theme-dark .daily-ledger-row:hover {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   Timesheet Real-Day "Today" Highlighting & Focus Engine
   ========================================================================== */
.daily-ledger-row.is-today {
  position: relative;
  border: 2px solid var(--gold-primary, #d4af37) !important;
  background: linear-gradient(135deg, rgba(255, 253, 245, 1) 0%, rgba(254, 248, 235, 1) 100%) !important;
  box-shadow: 0 4px 18px rgba(184, 145, 37, 0.28), 0 0 0 1px rgba(212, 175, 55, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
  z-index: 2;
}

body.theme-dark .daily-ledger-row.is-today {
  background: linear-gradient(145deg, #261f12 0%, #17140e 100%) !important;
  border: 2px solid #e5b83b !important;
  box-shadow: 0 4px 22px rgba(229, 184, 59, 0.28), 0 0 0 1px rgba(229, 184, 59, 0.45), inset 0 1px 1px rgba(255, 240, 180, 0.15) !important;
}

body.theme-light .daily-ledger-row.is-today {
  background: linear-gradient(135deg, #ffffff 0%, #fefcf3 100%) !important;
  border: 2px solid #ca9f2e !important;
  box-shadow: 0 4px 16px rgba(202, 159, 46, 0.22), 0 0 0 1px rgba(202, 159, 46, 0.35), inset 0 1px 2px #ffffff !important;
}

/* Desk Calendar Pod - Today State */
.desk-calendar-pod.is-today {
  transform: scale(1.02);
  filter: drop-shadow(0 3px 6px rgba(184, 145, 37, 0.35));
}

.desk-calendar-pod.is-today .calendar-binder-plate {
  background: linear-gradient(180deg, #fff3c4 0%, #e6b738 45%, #a67c1e 100%) !important;
  border-color: #8c6412 !important;
}

body.theme-dark .desk-calendar-pod.is-today .calendar-binder-plate {
  background: linear-gradient(180deg, #ffd875 0%, #c49624 45%, #7a540b 100%) !important;
  border-color: #573a03 !important;
}

.binder-month-label.binder-today-label {
  font-size: 0.52rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  color: #2b1d03 !important;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.6) !important;
}

body.theme-dark .binder-month-label.binder-today-label {
  color: #1a1101 !important;
}

.calendar-day-weekday.is-today-weekday {
  color: #b8860b !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
}

body.theme-dark .calendar-day-weekday.is-today-weekday {
  color: #ffd875 !important;
}

/* Today Action Button in Activity Column */
.btn-3d-coin-plus.is-today-coin {
  width: auto !important;
  min-width: 104px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f7d568 0%, #d4af37 50%, #9e7519 100%) !important;
  border: 1.2px solid #ffd875 !important;
  box-shadow: 0 3px 10px rgba(184, 145, 37, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
  color: #2b1d03 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-3d-coin-plus.is-today-coin:hover {
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 5px 14px rgba(184, 145, 37, 0.45) !important;
}

.btn-3d-coin-plus.is-today-coin:active {
  transform: translateY(1px) scale(0.97) !important;
}

.coin-today-icon {
  font-size: 0.85rem !important;
  line-height: 1 !important;
}

/* Stepper Today Quick Jump Button */
.timesheet-today-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.2px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, rgba(255, 249, 235, 0.95) 0%, rgba(253, 242, 214, 0.95) 100%);
  color: #5c4308;
  box-shadow: 0 3px 10px rgba(184, 145, 37, 0.18), inset 0 1px 1px #ffffff;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

body.theme-dark .timesheet-today-jump-btn {
  background: linear-gradient(135deg, rgba(46, 37, 20, 0.95) 0%, rgba(30, 24, 12, 0.95) 100%);
  border-color: rgba(229, 184, 59, 0.6);
  color: #ffd875;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 235, 170, 0.2);
}

.timesheet-today-jump-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.3);
}

.timesheet-today-jump-btn:active {
  transform: translateY(1px) scale(0.97);
}

.timesheet-today-jump-btn.is-active-month {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, #fcebc2 0%, #f4d385 100%);
  color: #3b2800;
  box-shadow: 0 3px 12px rgba(184, 145, 37, 0.25), inset 0 1px 1px #ffffff;
}

body.theme-dark .timesheet-today-jump-btn.is-active-month {
  background: linear-gradient(135deg, #4d3c17 0%, #302409 100%);
  color: #ffe494;
  border-color: #ffd875;
}

.today-sparkle {
  color: #d4af37;
  font-size: 0.85rem;
  line-height: 1;
}

/* Today Row Focus Pulse Animation */
@keyframes todayPulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7), 0 4px 18px rgba(184, 145, 37, 0.28);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.45), 0 6px 24px rgba(184, 145, 37, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 4px 18px rgba(184, 145, 37, 0.28);
  }
}

.daily-ledger-row.today-focus-pulse {
  animation: todayPulseAnim 1.8s ease-out 1;
}

/* Quick Log Modal Today Shortcut */
.btn-quick-log-jump-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2.5px 7px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-primary);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-log-jump-today:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   3D Desk Calendar Pod (Column 1) - Haute Horlogerie Flip Pad
   ========================================================================== */
.desk-calendar-pod {
  position: relative;
  width: 50px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  border-radius: 9px;
  transition: transform 0.15s ease;
}
.desk-calendar-pod:hover {
  transform: scale(1.04);
}
.desk-calendar-pod:active {
  transform: scale(0.96);
}

.calendar-base-shadow {
  position: absolute;
  inset: 0px -1px -2.5px -1px;
  border-radius: 9px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #c49a32 0%, #85610e 100%);
  box-shadow: 0 3px 6px rgba(133, 97, 14, 0.35);
}
body.theme-light .calendar-base-shadow {
  background: linear-gradient(180deg, #cbd5e1 0%, #64748b 100%);
  box-shadow: 0 3px 6px rgba(100, 116, 139, 0.25);
}
body.theme-dark .calendar-base-shadow {
  background: linear-gradient(180deg, #7c580f 0%, #3d2904 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.calendar-binder-plate {
  width: 100%;
  height: 15px;
  border-radius: 8px 8px 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fae5a8 0%, #d4af37 40%, #9e7519 100%);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.25);
  border: 0.8px solid #8f681a;
  border-bottom: none;
}
body.theme-light .calendar-binder-plate {
  background: linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 45%, #94a3b8 100%);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.12);
  border: 0.8px solid #94a3b8;
  border-bottom: none;
}
body.theme-dark .calendar-binder-plate {
  background: linear-gradient(180deg, #e5c365 0%, #b89125 45%, #6d4e0e 100%);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
  border: 0.8px solid #5a3f08;
  border-bottom: none;
}

.binder-month-label {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #453004;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.4);
  line-height: 1;
}
body.theme-light .binder-month-label {
  color: #334155;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.8);
}
body.theme-dark .binder-month-label {
  color: #241802;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

.binder-ring {
  position: absolute;
  top: -5px;
  width: 6.5px;
  height: 13px;
  border-radius: 3.5px;
  z-index: 5;
  background: linear-gradient(90deg, #7c580f 0%, #fff1c2 40%, #d4af37 70%, #684809 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  border: 0.5px solid #5a3e08;
  box-sizing: border-box;
}
body.theme-light .binder-ring {
  background: linear-gradient(90deg, #64748b 0%, #ffffff 40%, #cbd5e1 70%, #475569 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  border: 0.5px solid #64748b;
}
body.theme-dark .binder-ring {
  background: linear-gradient(90deg, #5a3f08 0%, #fae69e 40%, #b8860b 70%, #442d03 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
  border: 0.5px solid #382402;
}
.ring-left { left: 7px; }
.ring-right { right: 7px; }

.calendar-page-sheet {
  width: 100%;
  flex: 1;
  margin-top: -1px;
  border-radius: 0 0 7px 7px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 3px;
  z-index: 3;
  box-sizing: border-box;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 65%, #fbf5e8 100%);
  box-shadow: 0 2px 5px rgba(184, 145, 37, 0.18), inset 0 0.5px 0 #ffffff;
  border: 0.8px solid rgba(212, 175, 55, 0.35);
  border-top: none;
}
body.theme-light .calendar-page-sheet {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08), inset 0 0.5px 0 #ffffff;
  border: 0.8px solid #cbd5e1;
  border-top: none;
}
body.theme-dark .calendar-page-sheet {
  background: linear-gradient(180deg, #25231e 0%, #1c1b17 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  border: 0.8px solid rgba(212, 175, 55, 0.25);
  border-top: none;
}

.page-punch {
  position: absolute;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111111;
  opacity: 0.28;
  z-index: 4;
}
.hole-left { left: 8px; }
.hole-right { right: 8px; }

.calendar-day-num {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  color: #111111;
  letter-spacing: -0.02em;
  z-index: 4;
}
body.theme-light .calendar-day-num {
  color: #0f172a;
}
body.theme-dark .calendar-day-num {
  color: #fafaf9;
}

.calendar-day-weekday {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
  line-height: 1;
  color: #8c6c22;
  z-index: 4;
}
body.theme-light .calendar-day-weekday {
  color: #64748b;
}
body.theme-dark .calendar-day-weekday {
  color: #d4af37;
}
.calendar-day-weekday.weekend {
  color: #b8860b;
}
body.theme-dark .calendar-day-weekday.weekend {
  color: #f0ca62;
}

.calendar-page-curl {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent #e2cf9f transparent;
  box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 6px 0;
  z-index: 4;
}
body.theme-light .calendar-page-curl {
  border-color: transparent transparent #cbd5e1 transparent;
}
body.theme-dark .calendar-page-curl {
  border-color: transparent transparent #4a4130 transparent;
}

/* ==========================================================================
   Paid Day Calendar Sheet Stamp X (Crossed out day when worker is paid)
   ========================================================================== */
.calendar-page-sheet.has-paid-x {
  position: relative;
}

.calendar-day-paid-x {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  animation: paidStampIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.calendar-day-paid-x .calendar-x-svg {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.45));
}

.calendar-day-paid-x .calendar-x-svg line {
  stroke: #dc2626;
  stroke-width: 4.5;
  stroke-linecap: round;
}

body.theme-dark .calendar-day-paid-x .calendar-x-svg {
  filter: drop-shadow(0 1px 4px rgba(239, 68, 68, 0.65));
}

body.theme-dark .calendar-day-paid-x .calendar-x-svg line {
  stroke: #ef4444;
}

@keyframes paidStampIn {
  0% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.desk-calendar-pod.is-paid-pod .calendar-day-num {
  opacity: 0.82;
}

.desk-calendar-pod.is-paid-pod .calendar-day-weekday {
  opacity: 0.82;
}

.ledger-pay-pod.is-paid-day {
  border-color: rgba(5, 150, 105, 0.55);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.85) 0%, rgba(209, 250, 229, 0.65) 100%);
}

body.theme-dark .ledger-pay-pod.is-paid-day {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.5) 0%, rgba(6, 95, 70, 0.35) 100%);
}

.ledger-pay-amount.is-paid {
  color: #059669;
}

body.theme-dark .ledger-pay-amount.is-paid {
  color: #34d399;
}

/* Quick Log Paid Status Bar & Toggle */
.quick-log-paid-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.quick-log-paid-banner.is-paid {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.quick-log-paid-banner.is-unpaid {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.paid-banner-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
}

.paid-banner-badge.badge-paid {
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.theme-dark .paid-banner-badge.badge-paid {
  color: #34d399;
}

.paid-banner-badge.badge-unpaid {
  color: #d97706;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.theme-dark .paid-banner-badge.badge-unpaid {
  color: #fbbf24;
}

.paid-banner-ref {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-toggle-paid-badge {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 800;
  transition: all 0.15s ease;
}

.btn-toggle-paid-badge.is-mark {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.btn-toggle-paid-badge.is-unmark {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

body.theme-dark .btn-toggle-paid-badge.is-unmark {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   Activity Column & Recessed Well (Column 2)
   ========================================================================== */
.ledger-col-activity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.ledger-activity-well {
  border-radius: 14px;
  height: 48px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  box-sizing: border-box;
}

.ledger-activity-well.is-off {
  justify-content: center;
  border: 1.5px dashed #c4a75e;
  background: linear-gradient(135deg, rgba(254, 250, 242, 0.9) 0%, rgba(248, 241, 227, 0.95) 100%);
}
body.theme-light .ledger-activity-well.is-off {
  border: 1.5px dashed #cbd5e1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
}
body.theme-dark .ledger-activity-well.is-off {
  border: 1.5px dashed rgba(212, 175, 55, 0.38);
  background: linear-gradient(135deg, rgba(26, 24, 21, 0.85) 0%, rgba(20, 18, 15, 0.95) 100%);
}

.ledger-activity-well.has-work {
  justify-content: center;
  padding: 3px 6px;
  border: 1.5px dashed #c4a75e;
  background: linear-gradient(135deg, rgba(254, 250, 242, 0.95) 0%, rgba(248, 241, 227, 0.98) 100%);
}
body.theme-light .ledger-activity-well.has-work {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
}
body.theme-dark .ledger-activity-well.has-work {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(28, 25, 22, 0.85);
}

.ledger-activity-well.has-work.has-dual-gigs {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 2px 4px;
  gap: 3px;
}

/* 3D Circular Metallic Coin Button */
.btn-3d-coin-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  background: radial-gradient(circle at 35% 35%, #fff2be 0%, #f0ca62 30%, #d49f2b 65%, #8f681a 100%);
  border: 1.4px solid #fce8a6;
  box-shadow: 0 3px 8px rgba(143, 104, 26, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.9), inset 0 -2px 3px rgba(100, 70, 12, 0.45);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(80, 50, 5, 0.6);
  padding: 0;
}
.btn-3d-coin-plus:hover {
  transform: scale(1.06);
}
.btn-3d-coin-plus:active {
  transform: scale(0.92);
}
body.theme-light .btn-3d-coin-plus {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e8f0 35%, #cbd5e1 65%, #64748b 100%);
  border: 1.4px solid #ffffff;
  box-shadow: 0 3px 8px rgba(71, 85, 105, 0.25), inset 0 1px 1.5px #ffffff, inset 0 -2px 3px rgba(51, 65, 85, 0.35);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.5);
}
body.theme-dark .btn-3d-coin-plus {
  background: radial-gradient(circle at 35% 35%, #ffefa8 0%, #e5c365 30%, #b89125 65%, #684809 100%);
  border: 1.4px solid #fbe799;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.45), inset 0 1px 1.5px rgba(255, 255, 255, 0.9), inset 0 -2px 3px rgba(70, 48, 5, 0.5);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(50, 30, 2, 0.7);
}

.shift-entry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.shift-entry-item.is-dual-gig {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 2px);
  padding: 0 1px;
}

.shift-chip-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
}

/* Unified Luxury Atelier Gig Chip */
.gig-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 2.5px 7px;
  border-radius: 6px;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(212, 175, 55, 0.12);
  color: #78350f;
  border: 1.2px solid rgba(212, 175, 55, 0.35);
}
.gig-chip.chip-dual {
  font-size: 0.65rem;
  font-weight: 850;
  padding: 2px 5px;
  gap: 3px;
  border-radius: 5px;
}
body.theme-light .gig-chip {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
body.theme-dark .gig-chip {
  background: rgba(212, 175, 55, 0.18);
  color: #fef3c7;
  border-color: rgba(212, 175, 55, 0.4);
}

.gig-chip.is-active-clock {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1.2px solid rgba(16, 185, 129, 0.35);
  font-weight: 850;
}
body.theme-light .gig-chip.is-active-clock {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
body.theme-dark .gig-chip.is-active-clock {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
}

.pulsing-live-dot.dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #10b981;
  box-shadow: 0 0 5px #10b981;
  margin-right: 4px;
  animation: liveDotPulse 1.5s infinite ease-in-out;
}

.live-clocked-in-time {
  font-size: 0.92rem;
  font-weight: 850;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: -0.01em;
}
body.theme-light .live-clocked-in-time {
  color: #047857;
}
body.theme-dark .live-clocked-in-time {
  color: #34d399;
}

.shift-entry-item.is-live-single-line {
  justify-content: center;
  align-items: center;
  height: 100%;
}

.shift-details-subline {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  margin-top: 1.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}
.shift-details-subline.subline-dual {
  font-size: 0.62rem;
  font-weight: 750;
  margin-top: 1px;
  color: #475569;
}
.shift-details-subline.is-active {
  color: #059669;
  font-weight: 750;
}
body.theme-light .shift-details-subline.is-active {
  color: #047857;
}
body.theme-dark .shift-details-subline.is-active {
  color: #6ee7b7;
}
body.theme-dark .shift-details-subline {
  color: #a8a29e;
}
body.theme-dark .shift-details-subline.subline-dual {
  color: #cbd5e1;
}

.badge-gps-verified.badge-dual {
  font-size: 0.54rem !important;
  padding: 1px 3px !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
}

.dual-gig-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(196, 167, 94, 0.45) 20%, rgba(196, 167, 94, 0.45) 80%, transparent 100%);
  flex-shrink: 0;
  border-radius: 1px;
}
body.theme-light .dual-gig-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(148, 163, 184, 0.4) 20%, rgba(148, 163, 184, 0.4) 80%, transparent 100%);
}
body.theme-dark .dual-gig-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.35) 20%, rgba(212, 175, 55, 0.35) 80%, transparent 100%);
}

/* ==========================================================================
   Vertical Accent Divider Line
   ========================================================================== */
.ledger-row-divider {
  width: 1px;
  height: 38px;
  align-self: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.45) 25%, rgba(212, 175, 55, 0.45) 75%, transparent 100%);
}
body.theme-light .ledger-row-divider {
  background: linear-gradient(180deg, transparent 0%, #cbd5e1 25%, #cbd5e1 75%, transparent 100%);
}
body.theme-dark .ledger-row-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.35) 25%, rgba(212, 175, 55, 0.35) 75%, transparent 100%);
}

/* ==========================================================================
   Pay Pod (Column 3) - 3D Glossy Squircle
   ========================================================================== */
.ledger-col-pay {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.ledger-pay-pod {
  width: 56px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: transform 0.15s ease;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 3px 8px rgba(184, 145, 37, 0.18), inset 0 1px 1px #ffffff;
}
.ledger-pay-pod:hover {
  transform: scale(1.04);
}
.ledger-pay-pod:active {
  transform: scale(0.96);
}
body.theme-light .ledger-pay-pod {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.8px solid #94a3b8;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08), inset 0 1px 1px #ffffff;
}
body.theme-dark .ledger-pay-pod {
  background: linear-gradient(180deg, #24221d 0%, #191815 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ledger-pay-pod.is-active-clock {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.95) 100%);
}
body.theme-light .ledger-pay-pod.is-active-clock {
  border-color: #059669;
  background: #ecfdf5;
}
body.theme-dark .ledger-pay-pod.is-active-clock {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.35) 0%, rgba(6, 78, 59, 0.2) 100%);
}

.ledger-pay-amount {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1;
}
body.theme-light .ledger-pay-amount {
  color: #0f172a;
}
body.theme-dark .ledger-pay-amount {
  color: #fef3c7;
}

/* Status / Action Column (Permanently Removed) */
.ledger-col-status {
  display: none !important;
}

.ledger-status-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-timesheet-locked {
  background: #0f5132;
  color: #ffffff;
  border: 1px solid #146c43;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(15, 81, 50, 0.2);
}

.badge-timesheet-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border: 1.2px solid rgba(245, 158, 11, 0.35);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  box-sizing: border-box;
}

body.theme-gold-premium .badge-timesheet-pending {
  background: rgba(212, 175, 55, 0.18);
  color: #85610e;
  border-color: rgba(212, 175, 55, 0.4);
}

.btn-ledger-lock {
  background: #0f5132;
  color: #ffffff;
  border: 1px solid #146c43;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  box-sizing: border-box;
  transition: transform 0.1s ease, background 0.15s ease;
  box-shadow: 0 2px 4px rgba(15, 81, 50, 0.2);
}
.btn-ledger-lock:hover {
  background: #146c43;
  transform: scale(1.03);
}

.btn-ledger-log {
  background: #fffcf5;
  border: 1.2px dashed #b8860b;
  color: #85610e;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.btn-ledger-log:hover {
  background: rgba(212, 175, 55, 0.15);
  border-style: solid;
}

body.theme-dark .btn-ledger-log {
  background: #231f18;
  border-color: #a67c1e;
  color: #fef3c7;
}

.btn-ledger-more {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 4px 2px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.btn-ledger-more:hover {
  color: #1e1b18;
}
body.theme-dark .btn-ledger-more:hover {
  color: #f5f5f4;
}



/* ==========================================================================
   Big Luxury Worker Request Cards (Matching Team Screen)
   ("THIS NEED LOOK BIGGER AND NICER JSUT LIKE THE ONES WE HAVE IN TEAM")
   ========================================================================== */

/* ==========================================================================
   Big Luxury Worker Request Cards (Matching Team Screen Exactly)
   ========================================================================== */

/* ==========================================================================
   Big Luxury Worker Request Cards (Matching Team Screen Exactly - 2 Per Row)
   ========================================================================== */

.worker-requests-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 6px 0 24px 0;
  box-sizing: border-box;
}

@media (max-width: 340px) {
  .worker-requests-cards-grid {
    gap: 8px;
  }
}

.worker-req-card {
  /* Natural height fitting content cleanly without artificial void */
  min-height: 195px !important;
  height: auto !important;
  padding: 18px 8px 16px 8px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Ensure Avatar Pod in Request Card is EXACT same size as Team Card */
.worker-req-card .worker-icon-avatar-pod {
  width: 88px !important;
  height: 88px !important;
  margin-bottom: 10px !important;
  flex-shrink: 0 !important;
}

.worker-req-card .worker-icon-avatar-pod .worker-initials-text {
  font-family: var(--font-serif) !important;
  font-size: 1.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
}

/* Ensure Worker Name in Request Card is strictly 1 line matching Team Card */
.worker-req-card .worker-icon-name {
  font-family: var(--font-sans) !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Active State Highlighting */
body.theme-gold-premium .worker-req-card.active {
  border: 2.5px solid #b8860b !important;
  box-shadow: 0 16px 40px rgba(184, 145, 37, 0.45), 0 0 24px rgba(212, 175, 55, 0.45), inset 0 2px 0 #ffffff !important;
  transform: translateY(-2px);
}

body.theme-dark .worker-req-card.active {
  border: 2px solid #e5c158 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-2px);
}

body.theme-light .worker-req-card.active {
  border: 2px solid #111827 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14) !important;
  transform: translateY(-2px);
}

/* Glowing Amber Dot for pending requests */
.worker-req-card.has-pending::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.9);
  animation: pulseDot 2s infinite ease-in-out;
}

/* Unified Luxury Worker Request Payout & Status Shelf */
.worker-req-payout-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 146px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.worker-req-payout-box .req-box-amount {
  font-family: var(--font-sans);
  font-size: 1.30rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
}

.worker-req-payout-box .req-box-dates {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 3px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.worker-req-payout-box .req-box-paid {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  padding: 2px 0;
}

/* 1. DARK THEME STYLING */
body.theme-dark .worker-req-payout-box.has-pending {
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

body.theme-dark .worker-req-payout-box.has-pending .req-box-amount {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

body.theme-dark .worker-req-payout-box.has-pending .req-box-dates {
  color: #fde68a;
}

body.theme-dark .worker-req-payout-box.is-paid {
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

body.theme-dark .worker-req-payout-box.is-paid .req-box-paid {
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

/* 2. GOLD PREMIUM THEME STYLING */
body.theme-gold-premium .worker-req-payout-box.has-pending {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.85));
  border: 1.5px solid #d97706;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.18);
}

body.theme-gold-premium .worker-req-payout-box.has-pending .req-box-amount {
  color: #78350f;
}

body.theme-gold-premium .worker-req-payout-box.has-pending .req-box-dates {
  color: #92400e;
}

body.theme-gold-premium .worker-req-payout-box.is-paid {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

body.theme-gold-premium .worker-req-payout-box.is-paid .req-box-paid {
  color: #065f46;
}

/* 3. LIGHT THEME STYLING */
body.theme-light .worker-req-payout-box.has-pending {
  background: #fffbeb;
  border: 1.5px solid #d97706;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
}

body.theme-light .worker-req-payout-box.has-pending .req-box-amount {
  color: #92400e;
}

body.theme-light .worker-req-payout-box.has-pending .req-box-dates {
  color: #b45309;
}

body.theme-light .worker-req-payout-box.is-paid {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.1);
}

body.theme-light .worker-req-payout-box.is-paid .req-box-paid {
  color: #047857;
}

/* ==========================================================================
   Professional Request Details Box & Timesheet Review Sheet
   ========================================================================== */

/* ==========================================================================
   Professional Request Details Box & Timesheet Review Sheet (Grand Luxury Suite)
   ========================================================================== */

#request-review-modal-overlay {
  padding: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 560px) {
  #request-review-modal-overlay {
    padding: 10px 8px;
  }
  .request-review-sheet {
    max-height: 94vh !important;
    border-radius: 24px !important;
  }
  .request-review-header {
    padding: 14px 16px 12px !important;
  }
  .request-review-avatar-pod {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    border-radius: 16px !important;
  }
  .request-review-avatar-pod .worker-initials-text {
    font-size: 1.25rem !important;
  }
  .request-review-worker-name {
    font-size: 1.18rem !important;
  }
  .request-review-sheet .quick-log-body {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .request-owed-card {
    padding: 16px 14px 14px !important;
    gap: 8px !important;
    border-radius: 18px !important;
  }
  .request-owed-amount {
    font-size: 2.45rem !important;
  }
  .request-review-footer {
    padding: 12px 14px 14px !important;
    gap: 8px !important;
  }
  .request-review-footer .btn-modal-action {
    height: 46px !important;
    font-size: 0.88rem !important;
    padding: 0 10px !important;
  }
  .request-add-more-card {
    padding: 16px 16px !important;
    gap: 12px !important;
    border-radius: 20px !important;
  }
  .extra-custom-input-wrap {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 16px !important;
    border-radius: 16px !important;
  }
  .extra-plus-prefix {
    font-size: 1.30rem !important;
  }
  .extra-custom-input {
    font-size: 1.40rem !important;
  }
}

.request-review-sheet {
  max-width: 530px !important;
  width: 100% !important;
  max-height: min(92vh, 860px) !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 28px !important;
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.48), 0 0 45px rgba(212, 175, 55, 0.28) !important;
  border: 1.8px solid var(--gold-primary) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden !important;
  margin: auto !important;
}

.request-review-sheet .quick-log-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: none !important;
  padding: 16px 20px !important;
  gap: 12px !important;
}

.request-review-sheet .quick-log-body > * {
  flex-shrink: 0 !important;
}

body.theme-gold-premium .request-review-sheet {
  border: 2px solid #d4af37 !important;
  box-shadow: 0 30px 85px rgba(184, 145, 37, 0.35), 0 0 50px rgba(212, 175, 55, 0.35) !important;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%) !important;
}

body.theme-dark .request-review-sheet {
  border: 1.8px solid rgba(229, 193, 88, 0.65) !important;
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.8), 0 0 45px rgba(229, 193, 88, 0.25) !important;
  background: linear-gradient(180deg, #18191d 0%, #0f1013 100%) !important;
}

/* Centered Header & Theme-Matched Close Button */
.request-review-header {
  flex-shrink: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1.5px solid var(--border-color);
  position: relative;
  box-sizing: border-box;
}

.request-review-profile-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.request-review-avatar-pod {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5ecd5 0%, #dfc072 100%);
  border: 2.2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.request-review-avatar-pod:hover {
  transform: scale(1.04);
}

.request-review-avatar-pod .worker-initials-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #784c04;
  font-family: var(--font-serif, "Cinzel", "Playfair Display", Georgia, serif);
  letter-spacing: 0.02em;
}

.request-review-name-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.request-review-worker-name {
  font-size: 1.32rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.request-review-worker-role {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-primary, #b45309);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 9px;
  border-radius: 9999px;
}

.request-review-worker-role .role-sparkle {
  font-size: 0.65rem;
  color: var(--gold-primary);
}

.btn-modal-close-gold {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.04);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-modal-close-gold svg {
  width: 14px;
  height: 14px;
}

body.theme-gold-premium .btn-modal-close-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(184, 145, 37, 0.08) 100%);
  border: 1.5px solid var(--gold-primary);
  color: #855308;
  box-shadow: 0 3px 8px rgba(184, 145, 37, 0.18);
}

body.theme-gold-premium .btn-modal-close-gold:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-color: #b8860b;
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.4);
}

body.theme-dark .btn-modal-close-gold {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(229, 193, 88, 0.55);
  color: #e5c158;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.theme-dark .btn-modal-close-gold:hover {
  background: rgba(229, 193, 88, 0.22);
  border-color: #e5c158;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(229, 193, 88, 0.4);
}

body.theme-light .btn-modal-close-gold {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .btn-modal-close-gold:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.1);
}

/* Amount Owed Highlight Card */
.request-owed-card {
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(184, 145, 37, 0.08) 100%);
  border: 1.8px solid var(--gold-primary);
  box-shadow: 0 8px 26px rgba(184, 145, 37, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

body.theme-gold-premium .request-owed-card {
  background: linear-gradient(135deg, rgba(254, 249, 235, 0.96) 0%, rgba(250, 240, 215, 0.65) 100%);
  border-color: #d4af37;
  box-shadow: 0 8px 28px rgba(184, 145, 37, 0.2), inset 0 1px 2px #ffffff;
}

body.theme-dark .request-owed-card {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.16) 0%, rgba(30, 31, 38, 0.92) 100%);
  border-color: rgba(229, 193, 88, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Up to Date Card State in Review Modal */
.request-owed-card.is-up-to-date {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(16, 185, 129, 0.06) 100%);
  border: 1.8px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  padding: 22px 20px;
  gap: 6px;
}

body.theme-gold-premium .request-owed-card.is-up-to-date {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96) 0%, rgba(254, 249, 235, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.14), inset 0 1px 2px #ffffff;
}

body.theme-dark .request-owed-card.is-up-to-date {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(30, 31, 38, 0.94) 100%);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.request-up-to-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.65rem;
  font-weight: 850;
  color: #059669;
  letter-spacing: -0.02em;
}

.request-up-to-date-badge .up-to-date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
  font-size: 1.25rem;
  font-weight: 900;
}

body.theme-dark .request-up-to-date-badge {
  color: #34d399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

body.theme-dark .request-up-to-date-badge .up-to-date-icon {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.request-up-to-date-sub {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text-muted, #78716c);
}

.request-owed-amount {
  font-size: 2.85rem;
  font-weight: 900;
  color: var(--gold-primary, #b45309);
  line-height: 1;
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(184, 145, 37, 0.18);
}

.request-dates-shelf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Unified Dates Subline Pill */
.request-dates-subline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 750;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

body.theme-gold-premium .request-dates-subline {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(184, 145, 37, 0.45);
  color: #634307;
}

body.theme-dark .request-dates-subline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 193, 88, 0.45);
  color: #f1f2f5;
}

.request-calendar-svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.request-dates-text {
  letter-spacing: -0.01em;
}

.request-payby-pill {
  font-size: 0.76rem;
  font-weight: 850;
  color: #855308;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(217, 119, 6, 0.45);
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.theme-dark .request-payby-pill {
  color: #fef08a;
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.5);
}

/* ==========================================================================
   Points Vault & Rewards Card in Payout Review Modal
   ========================================================================== */

.request-points-card {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1.6px solid var(--border-color);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  position: relative;
  overflow: visible !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.theme-gold-premium .request-points-card {
  background: linear-gradient(145deg, #ffffff 0%, #fcf8ee 100%);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.09);
}

body.theme-dark .request-points-card {
  background: linear-gradient(145deg, #1c1d22 0%, #15161a 100%);
  border-color: rgba(229, 193, 88, 0.38);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.request-points-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.request-points-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-points-icon-pod {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(184, 145, 37, 0.14) 100%);
  border: 1.4px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(184, 145, 37, 0.2);
}

.request-points-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.request-points-title {
  font-size: 0.96rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.request-points-subtitle {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--gold-primary, #b45309);
  letter-spacing: 0.015em;
}

.request-points-balance-badge {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(184, 145, 37, 0.08) 100%);
  border: 1.4px solid var(--gold-primary);
  color: var(--text-primary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}

body.theme-gold-premium .request-points-balance-badge {
  color: #784c04;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.14);
}

body.theme-dark .request-points-balance-badge {
  background: rgba(229, 193, 88, 0.15);
  border-color: rgba(229, 193, 88, 0.6);
  color: #fce79a;
}

.request-points-balance-badge.pts-pop-anim {
  transform: scale(1.14);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.65);
}

.points-balance-number {
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-sans);
  line-height: 1;
}

.points-balance-unit {
  font-size: 0.72rem;
  font-weight: 850;
  opacity: 0.85;
}

.points-cash-equiv {
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0.75;
}

/* Quick Award Chips Row */
.request-points-award-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-points-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.btn-points-chip {
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1.4px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
}

.btn-points-chip:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.btn-points-chip:active {
  transform: scale(0.96);
}

.btn-points-chip.featured {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(184, 145, 37, 0.08) 100%);
}

.btn-points-chip .chip-pts {
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.1;
  color: var(--text-primary);
}

body.theme-gold-premium .btn-points-chip .chip-pts {
  color: #784c04;
}

.btn-points-chip .chip-val {
  font-size: 0.65rem;
  font-weight: 750;
  color: var(--text-muted);
}

body.theme-gold-premium .btn-points-chip .chip-val {
  color: #996515;
}

/* Custom Points Input Row */
.request-points-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-custom-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1.4px solid var(--border-color);
  border-radius: 12px;
  padding: 6px 12px;
  gap: 5px;
  flex: 1;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

body.theme-gold-premium .points-custom-input-wrap {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.35);
}

body.theme-dark .points-custom-input-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.points-custom-input-wrap:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.points-custom-prefix {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--gold-primary);
  line-height: 1;
}

.points-custom-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  padding: 0;
}

.points-custom-suffix {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--text-muted);
}

.btn-points-award-submit {
  padding: 8px 16px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border: 1.2px solid #b8860b;
  color: #1a1710;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
}

.btn-points-award-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 145, 37, 0.35);
}

.btn-points-award-submit:active {
  transform: scale(0.97);
}

.request-points-redeem-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.btn-points-redeem {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(184, 145, 37, 0.1) 100%);
  border: 1.4px solid rgba(212, 175, 55, 0.55);
  color: #784c04;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.12);
}

body.theme-gold-premium .btn-points-redeem {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.7) 100%);
  border-color: #d4af37;
  color: #784c04;
}

body.theme-dark .btn-points-redeem {
  background: rgba(229, 193, 88, 0.14);
  border-color: rgba(229, 193, 88, 0.55);
  color: #fce79a;
}

.btn-points-redeem:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(184, 145, 37, 0.18) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.28);
}

.review-points-feedback-banner {
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1.2px solid rgba(34, 197, 94, 0.35);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.2s ease-out;
}

body.theme-dark .review-points-feedback-banner {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
}

/* Adjust Payout Card - Grand Size & Easy Touch Controls */
.request-add-more-card {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.8px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

body.theme-gold-premium .request-add-more-card {
  background: linear-gradient(145deg, #ffffff 0%, #fcf8ee 100%);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.08);
}

body.theme-dark .request-add-more-card {
  background: linear-gradient(145deg, #1c1d22 0%, #15161a 100%);
  border-color: rgba(229, 193, 88, 0.38);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.request-add-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.request-add-more-label {
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

/* Segmented Adjust Mode Toggle (+ Add / − Reduce) */
.request-adjust-mode-toggle {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.05);
  border: 1.4px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.btn-adjust-mode {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  line-height: 1 !important;
  height: 32px !important;
}

.btn-adjust-mode:hover {
  color: var(--text-primary);
}

.btn-adjust-mode.active {
  background: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.32);
}

body.theme-gold-premium .btn-adjust-mode.active {
  background: linear-gradient(135deg, #d4af37 0%, #b89125 100%);
  color: #1a1710;
  font-weight: 850;
}

body.theme-dark .btn-adjust-mode.active {
  background: linear-gradient(135deg, #e5c158 0%, #b89125 100%);
  color: #0f131d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-adjust-mode#btn-adjust-mode-reduce.active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

body.theme-gold-premium .btn-adjust-mode#btn-adjust-mode-reduce.active {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.35);
}

body.theme-dark .btn-adjust-mode#btn-adjust-mode-reduce.active {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Grand Custom Input Box - Extra Easy to Tap & Enter Numbers */
.request-adjust-controls-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.extra-custom-input-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  background: rgba(0, 0, 0, 0.035);
  border: 1.8px solid var(--border-color);
  border-radius: 16px !important;
  padding: 0 18px !important;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  cursor: text;
}

body.theme-gold-premium .extra-custom-input-wrap {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.38);
}

body.theme-dark .extra-custom-input-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.extra-custom-input-wrap:focus-within {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), 0 4px 16px rgba(184, 145, 37, 0.12);
}

body.theme-dark .extra-custom-input-wrap:focus-within {
  border-color: #e5c158;
  background: rgba(229, 193, 88, 0.08);
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.extra-plus-prefix {
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: var(--gold-primary);
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.extra-plus-prefix.is-reduce {
  color: #dc2626 !important;
}

body.theme-gold-premium .extra-plus-prefix.is-reduce {
  color: #c2410c !important;
}

body.theme-dark .extra-plus-prefix.is-reduce {
  color: #f87171 !important;
}

.extra-custom-input {
  width: 100% !important;
  flex: 1;
  min-width: 80px;
  border: none;
  background: transparent;
  font-size: 1.45rem !important;
  font-weight: 850 !important;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  padding: 0;
  text-align: right;
  white-space: nowrap !important;
  letter-spacing: -0.02em;
}

.extra-custom-input::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
  font-weight: 750;
}

.extra-custom-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
  font-weight: 600;
}

.extra-custom-input::-webkit-outer-spin-button,
.extra-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.extra-custom-input[type=number] {
  -moz-appearance: textfield;
}

.request-extra-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 2px;
}

.extra-summary-calc {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

.extra-summary-base {
  color: var(--text-muted);
}

.extra-summary-added {
  color: var(--gold-primary);
  font-weight: 800;
}

.extra-summary-total {
  color: var(--gold-primary);
  font-weight: 900;
  font-size: 0.88rem;
}

.btn-extra-clear {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}

.btn-extra-clear:hover {
  color: var(--accent-danger, #ef4444);
}

/* Dates Card */
.request-dates-card {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-dates-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-dates-icon-pod {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.request-dates-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.request-dates-title {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.request-dates-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Worker Note Callout */
.request-note-callout {
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid var(--star-gold);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.request-note-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.request-note-text {
  font-style: italic;
  line-height: 1.35;
}

/* Timesheet Accordion / Review Section */
.request-timesheet-accordion {
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  margin-top: 2px;
}

.request-timesheet-toggle-btn {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.request-timesheet-toggle-btn:hover {
  background: var(--bg-input, rgba(0, 0, 0, 0.03));
}

.badge-gold-count {
  background: var(--gold-primary);
  color: #000;
  font-weight: 850;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
}

.accordion-chevron {
  font-size: 0.76rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.request-timesheet-list {
  padding: 6px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.request-shift-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
}

body.theme-dark .request-shift-item {
  background: rgba(255, 255, 255, 0.03);
}

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

.request-shift-date {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.10);
  padding: 2px 6px;
  border-radius: 6px;
}

.request-shift-gig {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-primary);
}

.request-shift-special-note {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-style: italic;
  padding-left: 4px;
  border-left: 2px solid var(--star-gold);
}

.request-shift-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.request-shift-amount {
  font-size: 0.96rem;
  font-weight: 850;
  color: var(--gold-primary);
}

.btn-approve-shift-pill {
  padding: 4px 10px;
  font-size: 0.70rem;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #000000;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.2);
}

.btn-approve-shift-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(184, 145, 37, 0.35);
}

/* Footer Action Buttons */
.request-review-footer {
  padding: 14px 18px 16px !important;
  border-top: 1.5px solid var(--border-color);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

.btn-modal-action {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 850;
  border-radius: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  letter-spacing: -0.01em;
}

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

.btn-modal-secondary {
  background: var(--bg-input, rgba(0, 0, 0, 0.04));
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  flex: 1 !important;
  max-width: 135px !important;
}

.btn-modal-secondary:hover {
  background: var(--bg-card);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.btn-modal-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border: 1.5px solid #b8860b;
  color: #1a1710;
  box-shadow: 0 4px 16px rgba(184, 145, 37, 0.3);
  flex: 1.6 !important;
  font-size: 0.94rem !important;
  font-weight: 850 !important;
}

.btn-modal-gold:hover {
  background: linear-gradient(135deg, #e5c158 0%, #c4941d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.45);
}

.btn-close-timesheet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}

/* ==========================================================================
   DEDICATED WORKER TIMESHEET FULL PAGE (7-DAY FULL-PAGE ENGINE)
   ========================================================================== */

/* Viewport isolation when Worker Timesheet is Open */
:root {
  --timesheet-viewport-h: 100dvh;
}

@media (min-width: 520px) {
  :root {
    --timesheet-viewport-h: 920px;
  }
}

body.is-worker-timesheet-open,
body.is-worker-timesheet-open .mobile-device-shell {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

@media (min-width: 520px) {
  body.is-worker-timesheet-open,
  body.is-worker-timesheet-open .mobile-device-shell {
    height: var(--timesheet-viewport-h) !important;
    max-height: var(--timesheet-viewport-h) !important;
  }
}

body.is-worker-timesheet-open:has(#view-workers.active) .mobile-viewport {
  padding-top: calc(env(safe-area-inset-top, 24px) + 12px) !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 12px) !important;
  padding-left: max(env(safe-area-inset-left, 0px), 8px) !important;
  padding-right: max(env(safe-area-inset-right, 0px), 8px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
}

body.is-worker-timesheet-open #view-workers.active,
body.is-worker-timesheet-open #view-workers.active #workers-requests-subview,
body.is-worker-timesheet-open #view-workers.active #hours-module-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.worker-timesheet-page {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: 100% !important;
  min-height: 0 !important;
  gap: 4px !important;
  animation: pageFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

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

.timesheet-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px !important;
  border-bottom: none;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

.timesheet-page-title-wrap {
  text-align: center;
  flex: 1;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.timesheet-worker-name-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 55%, #f5ebd8 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 3px 10px rgba(184, 145, 37, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(184, 145, 37, 0.12);
  box-sizing: border-box;
  max-width: 100%;
  transition: all 0.2s ease;
}

.timesheet-page-worker-name {
  font-family: var(--font-serif);
  font-size: 1.2rem !important;
  font-weight: 850;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-light .timesheet-worker-name-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.8px solid #94a3b8;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(148, 163, 184, 0.2), inset 0 1px 1px #ffffff;
}

body.theme-light .timesheet-page-worker-name {
  color: #0f172a;
}

body.theme-dark .timesheet-worker-name-box {
  background: linear-gradient(180deg, #25231e 0%, #171613 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.theme-dark .timesheet-page-worker-name {
  color: #fef3c7;
}

.timesheet-page-worker-role {
  display: none !important;
}

.timesheet-page-header .timesheet-back-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.timesheet-page-header .timesheet-back-btn:active {
  transform: scale(0.92);
}

.btn-close-timesheet:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: var(--bg-card);
  transform: scale(1.08);
}

.worker-timesheet-page .timesheet-page-header .timesheet-month-stepper-bar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.worker-timesheet-page .timesheet-page-header .timesheet-month-stepper {
  padding: 3px 10px !important;
  height: 36px !important;
  box-sizing: border-box !important;
  box-shadow: 0 3px 12px rgba(184, 145, 37, 0.20), 0 0 0 1.2px rgba(212, 175, 55, 0.30) !important;
}

.worker-timesheet-page .timesheet-page-header .month-stepper-btn {
  width: 28px !important;
  height: 28px !important;
  font-size: 1.25rem !important;
}

.worker-timesheet-page .timesheet-page-header .month-stepper-dropdown {
  font-size: 0.90rem !important;
  font-weight: 750 !important;
  padding-right: 14px !important;
}

/* Timesheet Paper & Summary Ribbon inside Full Page */
.worker-timesheet-page .timesheet-paper,
.worker-self-timesheet .timesheet-paper {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  padding: 6px 8px 8px 8px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.worker-timesheet-page .timesheet-summary-ribbon,
.worker-self-timesheet .timesheet-summary-ribbon {
  flex-shrink: 0 !important;
  margin-bottom: 6px !important;
  padding: 4px 6px !important;
  border-radius: 14px !important;
  height: 42px !important;
}

.worker-timesheet-page .daily-timesheet-sheet,
.worker-self-timesheet .daily-timesheet-sheet {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.daily-ledger-header-row,
.worker-timesheet-page .daily-ledger-header-row,
.worker-self-timesheet .daily-ledger-header-row {
  display: none !important;
}

.worker-timesheet-page .daily-ledger-body,
.worker-self-timesheet .daily-ledger-body {
  position: relative !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: y proximity !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 0 0 calc(var(--daily-row-height, 52px) * 6) 0 !important;
  box-sizing: border-box !important;
}

.worker-timesheet-page .daily-ledger-row,
.worker-self-timesheet .daily-ledger-row {
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
  height: var(--daily-row-height, 52px) !important;
  min-height: var(--daily-row-height, 52px) !important;
  max-height: var(--daily-row-height, 52px) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 2px 6px !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: 46px 1fr 1px 52px !important;
  gap: 6px !important;
  align-items: center !important;
}

.worker-timesheet-page .desk-calendar-pod,
.worker-self-timesheet .desk-calendar-pod {
  width: 46px !important;
  height: 46px !important;
}

.worker-timesheet-page .calendar-binder-plate,
.worker-self-timesheet .calendar-binder-plate {
  height: 13px !important;
}

.worker-timesheet-page .binder-month-label,
.worker-self-timesheet .binder-month-label {
  font-size: 0.48rem !important;
}

.worker-timesheet-page .calendar-day-num,
.worker-self-timesheet .calendar-day-num {
  font-size: 1.05rem !important;
}

.worker-timesheet-page .calendar-day-weekday,
.worker-self-timesheet .calendar-day-weekday {
  font-size: 0.48rem !important;
}

.worker-timesheet-page .ledger-activity-well,
.worker-self-timesheet .ledger-activity-well {
  height: 38px !important;
  border-radius: 10px !important;
}

.worker-timesheet-page .btn-3d-coin-plus,
.worker-self-timesheet .btn-3d-coin-plus {
  height: 28px !important;
  min-height: 28px !important;
}

.worker-timesheet-page .btn-3d-coin-plus.is-today-coin,
.worker-self-timesheet .btn-3d-coin-plus.is-today-coin {
  height: 30px !important;
  padding: 4px 12px !important;
  font-size: 0.74rem !important;
}

.worker-timesheet-page .ledger-pay-pod,
.worker-self-timesheet .ledger-pay-pod {
  width: 50px !important;
  height: 34px !important;
  border-radius: 10px !important;
  font-size: 0.85rem !important;
}

.worker-timesheet-page .ledger-row-divider,
.worker-self-timesheet .ledger-row-divider {
  height: 28px !important;
}

/* Worker View Self Timesheet (Matching Jessi Dedicated View) */
.worker-self-timesheet {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}

.worker-self-timesheet .timesheet-page-header {
  padding: 2px 2px !important;
  margin-bottom: 2px !important;
  justify-content: center !important;
}

/* Ensure inactive sub-views in Workers hub are strictly hidden */
#view-workers .sub-module-view:not(.active),
#workers-requests-subview:not(.active),
#workers-team-subview:not(.active),
#workers-assign-subview:not(.active) {
  display: none !important;
}

/* Lock mobile viewport ONLY when timesheet is actively open so only daily-ledger-body scrolls */
body.is-worker-timesheet-open:has(#view-workers.active) .mobile-viewport,
body.is-worker-role:has(#view-workers.active #workers-requests-subview.active .worker-self-timesheet) .mobile-viewport,
body:has(#view-workers.active #workers-requests-subview.active .worker-self-timesheet) .mobile-viewport,
body:has(#view-workers.active #workers-requests-subview.active .worker-timesheet-page) .mobile-viewport {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 14px) !important;
  box-sizing: border-box !important;
}

body.is-worker-role:has(#view-workers.active #workers-requests-subview.active .worker-self-timesheet) .mobile-device-shell,
body.is-worker-timesheet-open:has(#view-workers.active) .mobile-device-shell {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

body.is-worker-timesheet-open #view-workers.active,
body.is-worker-timesheet-open #view-workers.active #workers-requests-subview.active,
body.is-worker-timesheet-open #view-workers.active #hours-module-container,
body:has(#view-workers.active #workers-requests-subview.active .worker-self-timesheet) #view-workers.active,
body:has(#view-workers.active #workers-requests-subview.active .worker-self-timesheet) #view-workers.active #workers-requests-subview.active,
body:has(#view-workers.active #workers-requests-subview.active .worker-self-timesheet) #view-workers.active #hours-module-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

/* ==========================================================================
   WORKER TOP NAVIGATION & SEGMENTED SWITCHER (Unified Single-Row iOS Bar)
   ========================================================================== */
#view-workers .team-header-top-row {
  display: grid !important;
  grid-template-columns: 38px 1fr 38px !important;
  align-items: center !important;
  justify-items: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 8px 0 10px !important;
  box-sizing: border-box !important;
  margin-bottom: 6px !important;
}

#view-workers .in-app-home-btn {
  justify-self: start !important;
  margin: 0 !important;
}

#view-workers #workers-admin-title-pill {
  justify-self: center !important;
  display: flex !important;
  margin: 0 !important;
}

#view-workers.is-worker-role #workers-admin-title-pill {
  display: none !important;
}

#view-workers .team-header-right-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 38px !important;
  margin: 0 !important;
}

#view-workers .sub-nav-wrapper {
  width: 100% !important;
  margin: 0 auto 12px auto !important;
  display: flex !important;
  justify-content: center !important;
}

#view-workers.is-worker-role .sub-nav-capsule,
body.is-worker-role #view-workers .sub-nav-capsule {
  margin: 0 auto !important;
  padding: 3px 4px !important;
  height: 38px !important;
  box-sizing: border-box !important;
}

#view-workers.is-worker-role .sub-nav-btn,
body.is-worker-role #view-workers .sub-nav-btn {
  padding: 4px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  border-radius: 20px !important;
  height: 32px !important;
}

/* Quick Shift Log Modal */
.quick-log-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.quick-log-modal-sheet {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg, 18px);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.theme-gold-premium .quick-log-modal-sheet {
  border: 1.8px solid #d4af37;
  box-shadow: 0 24px 60px rgba(184, 145, 37, 0.28), 0 0 0 1px rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
}

.quick-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1.5px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.quick-log-header-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.quick-log-header-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-log-avatar-pod {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3e7c4, #dfc072);
  border: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 1.25rem;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: #5c4308;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  flex-shrink: 0;
}

body.theme-dark .quick-log-avatar-pod {
  background: linear-gradient(135deg, #3d321d, #251e12);
  border-color: rgba(212, 175, 55, 0.6);
  color: #f7da85;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.quick-log-avatar-pod .worker-initials-text {
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
}

.quick-log-worker-name {
  font-size: clamp(1.06rem, 4.4vw, 1.24rem);
  font-weight: 850;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.quick-log-date-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.quick-log-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(0.73rem, 3.1vw, 0.86rem);
  font-weight: 750;
  line-height: 1.2;
  color: #8a6000;
  letter-spacing: -0.015em;
  white-space: nowrap;
  flex-shrink: 0;
}

body.theme-dark .quick-log-date-badge {
  color: #f5d77f;
}

body.theme-light .quick-log-date-badge {
  color: #734d05;
}

.quick-log-date-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.3;
  display: block;
  flex-shrink: 0;
}

/* ==========================================================================
   EXOTIC LUXURY MODAL CLOSE BUTTON (BIG, GILDED MEDALLION, TACTILE)
   ========================================================================== */
.btn-close-modal {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  border: 1.8px solid #d4af37;
  background: linear-gradient(135deg, #ffffff 0%, #fdf5e2 50%, #f9e9c5 100%);
  color: #6b4703;
  box-shadow: 0 4px 15px rgba(184, 145, 37, 0.28), 0 0 0 1.5px rgba(212, 175, 55, 0.2), inset 0 1.5px 0 #ffffff;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.btn-close-modal:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fbf0d3 100%);
  border-color: #b8860b;
  color: #4a3102;
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.4), 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.btn-close-modal:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.2);
}

.btn-close-modal svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

body.theme-gold-premium .btn-close-modal {
  background: linear-gradient(135deg, #ffffff 0%, #fdf5e2 50%, #f9e9c5 100%);
  border-color: #d4af37;
  color: #6b4703;
  box-shadow: 0 4px 15px rgba(184, 145, 37, 0.28), 0 0 0 1.5px rgba(212, 175, 55, 0.2), inset 0 1.5px 0 #ffffff;
}

body.theme-gold-premium .btn-close-modal:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fbf0d3 100%);
  border-color: #b8860b;
  color: #4a3102;
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.4), 0 0 0 2px rgba(212, 175, 55, 0.3);
}

body.theme-dark .btn-close-modal {
  background: linear-gradient(135deg, rgba(48, 40, 28, 0.95) 0%, rgba(26, 20, 14, 0.95) 100%);
  border-color: rgba(212, 175, 55, 0.6);
  color: #f7da85;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 0 1.5px rgba(212, 175, 55, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

body.theme-dark .btn-close-modal:hover {
  background: linear-gradient(135deg, rgba(65, 54, 38, 0.95) 0%, rgba(42, 34, 22, 0.95) 100%);
  border-color: #ffd875;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(212, 175, 55, 0.45);
}

body.theme-light .btn-close-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f6f3eb 100%);
  border-color: rgba(200, 150, 40, 0.4);
  color: #6b4703;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 0 1.5px rgba(200, 150, 40, 0.15), inset 0 1px 0 #ffffff;
}

body.theme-light .btn-close-modal:hover {
  background: #ffffff;
  border-color: #b8860b;
  color: #3b2802;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.25);
}

.quick-log-body {
  padding: 16px 20px;
  max-height: 72vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Segmented Mode Switcher Tabs */
.quick-log-mode-tabs {
  display: flex;
  background: var(--bg-input, rgba(0, 0, 0, 0.04));
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.quick-log-mode-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.quick-log-mode-tab.active {
  background: var(--bg-card, #ffffff);
  color: var(--gold-primary, #b89125);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.theme-gold-premium .quick-log-mode-tab.active {
  background: #ffffff;
  color: #b89125;
  box-shadow: 0 2px 10px rgba(184, 145, 37, 0.22);
}

/* Custom Interactive Gig Selection Cards */
.quick-gig-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color, rgba(0, 0, 0, 0.08));
  background: var(--bg-card, #ffffff);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.quick-gig-card:hover {
  border-color: var(--gold-primary, #d4af37);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 145, 37, 0.1);
}

.quick-gig-card.checked {
  border-color: var(--gold-primary, #b89125);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.09) 0%, rgba(212, 175, 55, 0.03) 100%);
  box-shadow: 0 3px 12px rgba(184, 145, 37, 0.16);
}

.quick-gig-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-custom-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.8px solid var(--border-color, #d1d5db);
  background: var(--bg-card, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.quick-gig-card.checked .quick-custom-check {
  background: linear-gradient(135deg, #d4af37 0%, #b89125 100%);
  border-color: #b89125;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.35);
}

.quick-custom-check svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s ease;
}

.quick-gig-card.checked .quick-custom-check svg {
  opacity: 1;
  transform: scale(1);
}

.quick-gig-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.quick-gig-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-primary, #b89125);
  letter-spacing: -0.01em;
}

/* Special Add-on Card */
.quick-special-card {
  border: 1.5px dashed var(--star-gold, #f59e0b) !important;
  background: rgba(245, 158, 11, 0.03);
}

.quick-special-card.checked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
  border-color: var(--star-gold, #f59e0b) !important;
  border-style: solid !important;
}

.quick-special-card.checked .quick-custom-check {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-color: #d97706;
}

/* Clock In / Out Hourly Grid */
.quick-clock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-clock-box {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
  padding: 10px 14px;
  transition: all 0.18s ease;
}

.quick-clock-box:focus-within {
  border-color: var(--gold-primary, #b89125);
  box-shadow: 0 0 0 3px rgba(184, 145, 37, 0.15);
}

.quick-clock-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  margin-bottom: 4px;
}

.quick-clock-indicator-in {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.quick-clock-indicator-out {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.quick-time-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  padding: 2px 0;
}

/* Unpaid Break Chips */
.quick-break-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
}

.quick-break-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.quick-break-chips {
  display: flex;
  gap: 5px;
}

.quick-break-chip {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.2px solid var(--border-color, rgba(0, 0, 0, 0.1));
  background: transparent;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-break-chip:hover {
  border-color: var(--gold-primary, #b89125);
  color: var(--gold-primary, #b89125);
}

.quick-break-chip.active {
  background: var(--gold-primary, #b89125);
  border-color: var(--gold-primary, #b89125);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.25);
}

/* Hours Worked Live Banner */
.quick-hours-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(184, 145, 37, 0.07);
  border-radius: 10px;
  border: 1px solid rgba(184, 145, 37, 0.2);
  font-size: 0.8rem;
}

.quick-hours-pill {
  font-weight: 800;
  color: var(--gold-primary, #b89125);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Total Card */
.quick-total-card {
  margin: 4px 0 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.03) 100%);
  border-radius: 14px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-total-label {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.quick-total-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-primary, #b89125);
  letter-spacing: -0.02em;
}

.quick-log-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1.5px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  background: var(--bg-card);
}

.btn-cancel-modal {
  background: transparent;
  border: 1.5px solid var(--border-color, rgba(0, 0, 0, 0.12));
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel-modal:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.btn-delete-shift {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #dc2626 !important;
  border: 1.2px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 12px !important;
  padding: 9px 14px !important;
  font-weight: 750 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  margin-right: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.15s ease !important;
}

.btn-delete-shift:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #dc2626 !important;
}

/* Responsive Styles for Compact Screens */
@media (max-width: 480px) {
  .quick-log-modal-overlay {
    padding: 12px;
  }
  .quick-log-header {
    padding: 15px 16px 14px;
    gap: 10px;
  }
  .quick-log-header-profile {
    gap: 11px;
  }
  .quick-log-avatar-pod {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 14px;
    font-size: 1.12rem;
  }
  .quick-log-avatar-pod .worker-initials-text {
    font-size: 1.12rem;
  }
  .quick-log-header .btn-close-modal {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .daily-ledger-header-row,
  .daily-ledger-row {
    grid-template-columns: 48px 1fr 1px 52px;
    padding: 3px 6px;
    gap: 6px;
  }
  .desk-calendar-pod {
    width: 48px;
    height: 50px;
  }
  .calendar-day-num {
    font-size: 1.05rem;
  }
  .calendar-day-weekday {
    font-size: 0.54rem;
  }
  .ledger-activity-well {
    height: 48px;
  }
  .btn-3d-coin-plus {
    width: 30px;
    height: 30px;
    font-size: 1.25rem;
  }
  .ledger-pay-pod {
    width: 52px;
    height: 38px;
  }
  .ledger-pay-amount {
    font-size: 1.05rem;
  }
}

/* Printable Invoice & Timesheet Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .app-header, .top-nav, .theme-switcher-pill, .role-switcher-pill, .no-print, .ios-status-bar, .ios-bottom-tab-bar, .ios-home-indicator-bar {
    display: none !important;
  }
  .timesheet-paper, .invoice-printable-container {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    margin: 0 !important;
    padding: 16px !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   FLOATING LEFT-SIDE WALLPAPER SELECTOR DOCK (Desktop & IDE Split Preview)
   ========================================================================== */
.gold-wallpaper-dock {
  position: fixed;
  left: 20px;
  top: 24px;
  z-index: 1000;
  background: rgba(16, 20, 29, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 175, 55, 0.2);
  transition: all 0.25s ease;
}

.gold-wallpaper-dock .dock-label {
  font-size: 11px;
  font-weight: 800;
  color: #ffd875;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gold-wallpaper-dock .dock-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gold-wallpaper-dock .dock-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gold-wallpaper-dock .dock-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
  color: #ffd875;
  transform: translateY(-1px);
}

.gold-wallpaper-dock .dock-btn.active {
  background: linear-gradient(135deg, #fae298 0%, #d4af37 60%, #b8860b 100%);
  color: #1a1306;
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.gold-wallpaper-dock .dock-btn-link {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffd875;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}

.gold-wallpaper-dock .dock-btn-link:hover {
  background: #d4af37;
  color: #0b0e14;
}

@media (max-width: 640px) {
  .gold-wallpaper-dock {
    display: none !important;
  }
}

/* Settings Hub: Gold Wallpaper Options Selector */
.settings-wallpaper-selector {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.settings-wallpaper-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.wallpaper-pill-btn {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.wallpaper-pill-btn:hover {
  border-color: var(--gold-primary);
}

.wallpaper-pill-btn.active {
  background: var(--gold-badge-bg);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   Arabic (العربية) & RTL (Right-to-Left) Localization Styles
   ========================================================================== */

[dir="rtl"],
body.lang-ar {
  font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

[dir="rtl"] .profile-back-chevron {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .profile-section-header {
  padding-left: 0;
  padding-right: 6px;
}

[dir="rtl"] .profile-currency-pill {
  direction: ltr;
  unicode-bidi: embed;
}

[dir="rtl"] .profile-currency-input {
  text-align: left;
}

[dir="rtl"] .timesheet-entry-row {
  text-align: right;
}

[dir="rtl"] .profile-form-row {
  flex-direction: row;
}

[dir="rtl"] .settings-theme-grid,
[dir="rtl"] .settings-role-grid {
  text-align: right;
}

[dir="rtl"] .ios-tab-item {
  direction: rtl;
}

/* ==========================================================================
   AUTHENTIC iOS SPRINGBOARD & INTERACTIVE DRAGGABLE DOCK SYSTEM
   Modeled on Arabic Project (Tibyan / Noor) Architecture & iOS 18 Design
   ========================================================================== */

/* 1. SpringBoard Home View: 100% Fixed iOS SpringBoard (Zero Scroll, Perfectly Centered) */
#view-home {
  position: relative !important;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0 !important;
  padding: 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  box-sizing: border-box;
  overflow: hidden !important;
  user-select: none;
  -webkit-user-select: none;
}

#view-home.active {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0 !important;
  overflow: hidden !important;
}

#view-home:not(.active) {
  display: none !important;
}

.springboard-header {
  padding: 14px 8px 6px;
  text-align: center;
}

.springboard-time {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(184, 145, 37, 0.2);
}

.springboard-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

.springboard-role-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.springboard-role-container:first-child {
  margin-top: 0;
}

.springboard-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

.springboard-role-badge:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--gold-primary);
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.22);
}

.springboard-role-badge:active {
  transform: scale(0.97);
}

.springboard-role-badge .role-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  display: inline-block;
}

.springboard-role-badge.is-worker .role-badge-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.springboard-role-badge .role-badge-switch-action {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-weight: 800;
  margin-inline-start: 4px;
  opacity: 0.85;
}

body.theme-dark .springboard-role-badge {
  background: rgba(30, 24, 16, 0.75);
  border-color: rgba(212, 175, 55, 0.35);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dock-btn-role {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dock-btn-role:hover {
  background: var(--gold-primary);
  color: #000;
}

body.theme-dark .dock-btn-role {
  background: rgba(30, 24, 16, 0.85);
  color: #f5eedc;
}

/* ==========================================================================
   AUTHENTIC iOS SPRINGBOARD MOVEABLE BELL (6 Snap Zones: Top/Bottom x Left/Middle/Right)
   - Top Tier: Safely below the iOS status bar & battery indicator
   - Bottom Tier: Safely ABOVE the floating dock bar with zero clipping/overlap
   - Zero Scroll: Absolute positioning ensures zero document flow expansion
   ========================================================================== */

/* 6-Position Snap Guides (Visible during dragging) */
.bell-snap-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 170;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

#view-home.is-bell-dragging .bell-snap-guides {
  opacity: 1;
  visibility: visible;
}

.bell-snap-zone {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px dashed rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  box-sizing: border-box;
  pointer-events: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bell-snap-zone.is-hovered {
  border: 2.2px solid var(--gold-primary, #d4af37);
  background: rgba(212, 175, 55, 0.28);
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
}

body.theme-dark .bell-snap-zone {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .bell-snap-zone.is-hovered {
  border-color: var(--gold-primary, #e5c158);
  background: rgba(212, 175, 55, 0.24);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
}

body.theme-light .bell-snap-zone {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.03);
}

body.theme-light .bell-snap-zone.is-hovered {
  border-color: #111111;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

/* 6 Discrete Geometry Positions */
/* Top Tier (Safely below status bar & battery, floating clean above grid icons) */
.snap-pos--top-left,
.springboard-top-btn.pos-top-left {
  top: max(38px, calc(env(safe-area-inset-top, 44px) - 9px));
  left: 20px;
  right: auto;
  bottom: auto;
  margin-left: 0;
}

.snap-pos--top-middle,
.springboard-top-btn.pos-top-middle {
  top: max(44px, calc(env(safe-area-inset-top, 44px) - 6px));
  left: 50%;
  right: auto;
  bottom: auto;
  margin-left: -24px;
}

.snap-pos--top-right,
.springboard-top-btn.pos-top-right {
  top: max(38px, calc(env(safe-area-inset-top, 44px) - 9px));
  right: 20px;
  left: auto;
  bottom: auto;
  margin-left: 0;
}

/* Bottom Tier (Safely ABOVE floating dock bar) */
.snap-pos--bottom-left,
.springboard-top-btn.pos-bottom-left {
  bottom: calc(14px + env(safe-area-inset-bottom, 14px) + 128px);
  left: 20px;
  right: auto;
  top: auto;
  margin-left: 0;
}

.snap-pos--bottom-middle,
.springboard-top-btn.pos-bottom-middle {
  bottom: calc(14px + env(safe-area-inset-bottom, 14px) + 128px);
  left: 50%;
  right: auto;
  top: auto;
  margin-left: -24px;
}

.snap-pos--bottom-right,
.springboard-top-btn.pos-bottom-right {
  bottom: calc(14px + env(safe-area-inset-bottom, 14px) + 128px);
  right: 20px;
  left: auto;
  top: auto;
  margin-left: 0;
}

/* Moveable Bell Button */
.springboard-top-btn {
  position: absolute !important;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  cursor: grab;
  border: none;
  outline: none;
  z-index: 260;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.22s ease;
  will-change: transform;
}

.springboard-top-btn:active:not(.is-dragging) {
  transform: scale(0.92);
}

.springboard-top-btn.is-dragging {
  cursor: grabbing;
  z-index: 300;
  transition: none !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), 0 4px 14px rgba(184, 145, 37, 0.35) !important;
}

.springboard-btn-surface {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.springboard-btn-icon {
  font-family: -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 25px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

.springboard-top-btn:hover:not(.is-dragging) .springboard-btn-icon {
  transform: scale(1.08);
}

.springboard-btn-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 13px 13px 100px 100px / 13px 13px 12px 12px;
  pointer-events: none;
}

/* THEME SPECIFIC STYLES FOR THE BELL BUTTON */

/* 1. Gold Theme */
body.theme-gold-premium .springboard-top-btn,
body:not(.theme-dark):not(.theme-light) .springboard-top-btn {
  background: 
    linear-gradient(168deg, #ffffff 0%, #fbf9f4 45%, #ede6d6 100%) padding-box,
    linear-gradient(135deg, #fff9c4 0%, #fed33c 16%, #d8900f 42%, #ffe868 70%, #945200 100%) border-box;
  border: 3.2px solid transparent;
  box-shadow: 
    0 0 0 0.9px #9e5800,
    0 7px 20px rgba(135, 80, 5, 0.48),
    0 2px 5px rgba(0, 0, 0, 0.18),
    inset 0 1.8px 2.5px rgba(120, 55, 0, 0.55),
    inset 0 -1.2px 2px rgba(255, 255, 255, 0.95);
}

body.theme-gold-premium .springboard-top-btn::before,
body:not(.theme-dark):not(.theme-light) .springboard-top-btn::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 10px 10px 45px 45px / 10px 10px 10px 10px;
  pointer-events: none;
}

body.theme-gold-premium .springboard-top-btn:hover:not(.is-dragging) {
  box-shadow: 
    0 0 0 1px #b26800,
    0 9px 24px rgba(145, 90, 5, 0.58),
    0 3px 6px rgba(0, 0, 0, 0.22),
    inset 0 1.8px 2.5px rgba(120, 55, 0, 0.55),
    inset 0 -1.2px 2px rgba(255, 255, 255, 0.95);
}

/* 2. Dark Theme */
body.theme-dark .springboard-top-btn {
  background: linear-gradient(155deg, #252830 0%, #15181e 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.theme-dark .springboard-top-btn:hover:not(.is-dragging) {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.theme-dark .springboard-btn-glare {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

body.theme-dark .springboard-top-btn .notif-badge-count {
  border-color: #13161f;
}

/* 3. Light Theme */
body.theme-light .springboard-top-btn {
  background: linear-gradient(155deg, #ffffff 0%, #f6f7f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
}

body.theme-light .springboard-top-btn:hover:not(.is-dragging) {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.springboard-grid-container {
  width: 100%;
  padding-top: calc(env(safe-area-inset-top, 44px) + 50px);
  padding-bottom: calc(env(safe-area-inset-bottom, 34px) + 76px);
  padding-left: 14px;
  padding-right: 14px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.springboard-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(18px * var(--app-icon-scale, 1.5));
  width: 100%;
  max-width: min(calc(360px * var(--app-icon-scale, 1.5)), 100%);
  box-sizing: border-box;
}

.springboard-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: calc(16px * var(--app-icon-scale, 1.5));
  width: 100%;
  box-sizing: border-box;
}

/* Arrange bar removed per user request: direct drag-and-drop moving without Done button */
.springboard-arrange-bar {
  display: none !important;
}

body.app--is-arranging .springboard-top-bar .notif-bell-btn {
  opacity: 0 !important;
  pointer-events: none !important;
}

.grid-empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 22px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px dashed var(--border-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
}

/* 2. iOS App Icon & Slot Architecture (Pristine Luxury, Zero Wireframe Clutter) */
.app-slot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

/* Zero dashed wireframe clutter around icons */
.app-slot-item--grid:not(.is-empty-slot)::before,
.app-slot-item--dock:not(.is-empty-slot)::before {
  display: none !important;
}

/* Subtle frosted ghost for the slot being dragged from */
.app-slot-item.is-being-dragged .app-icon-box {
  opacity: 0.25 !important;
  filter: blur(2px) grayscale(0.4) !important;
  transform: scale(0.92) !important;
}

/* Empty Grid Slots: Completely invisible when idle and dragging; only hovered drop target displays halo */
.app-slot-item--grid.is-empty-slot {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.app-slot-item--grid.is-empty-slot.is-drop-target {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.app-slot-empty-box {
  width: calc(62px * var(--app-icon-scale, 1.5));
  height: calc(62px * var(--app-icon-scale, 1.5));
  border-radius: calc(17px * min(var(--app-icon-scale, 1.5), 1.5));
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.app-slot-plus {
  display: none !important;
}

.app-slot-empty-label {
  display: none !important;
}

/* Active Hovered Drop Target: Refined Luxury Gold Ring Halo (Zero Dashed Boxes) */
.app-slot-item.is-empty-slot.is-drop-target .app-slot-empty-box,
.app-slot-item:not(.is-empty-slot).is-drop-target .app-icon-box {
  border: 2.2px solid rgba(212, 175, 55, 0.95) !important;
  background: rgba(255, 245, 215, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25), 0 0 28px rgba(212, 175, 55, 0.5) !important;
  border-radius: calc(17px * min(var(--app-icon-scale, 1.5), 1.5)) !important;
  transform: scale(1.08) !important;
}

body.theme-dark .app-slot-item.is-empty-slot.is-drop-target .app-slot-empty-box,
body.theme-dark .app-slot-item:not(.is-empty-slot).is-drop-target .app-icon-box {
  border-color: #ffd875 !important;
  background: rgba(212, 175, 55, 0.28) !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.35), 0 0 24px rgba(212, 175, 55, 0.45) !important;
}

body.theme-light .app-slot-item.is-empty-slot.is-drop-target .app-slot-empty-box,
body.theme-light .app-slot-item:not(.is-empty-slot).is-drop-target .app-icon-box {
  border-color: #c99612 !important;
  background: rgba(254, 243, 199, 0.92) !important;
  box-shadow: 0 0 0 4px rgba(201, 150, 18, 0.25), 0 0 20px rgba(201, 150, 18, 0.35) !important;
}

/* Dock Empty Append Slot: Invisible until hovered as drop target */
.is-dock-append-slot {
  display: none !important;
}

.is-dock-append-slot.is-drop-target {
  display: flex !important;
  opacity: 1 !important;
  cursor: pointer;
}

.app-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  perspective: 800px;
  -webkit-perspective: 800px;
  transform-style: preserve-3d;
}

.app-icon-box {
  width: calc(62px * var(--app-icon-scale, 1.5));
  height: calc(62px * var(--app-icon-scale, 1.5));
  border-radius: calc(17px * min(var(--app-icon-scale, 1.5), 1.5));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform, filter;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.35s ease;
  box-sizing: border-box;
  overflow: visible !important;
}

/* 3D Photorealistic Studio Squircle App Icons (Gemini Octane Suite) */
.island-3d-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: calc(17px * min(var(--app-icon-scale, 1.5), 1.5));
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22)) drop-shadow(0 2px 6px rgba(184, 145, 37, 0.25));
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.35s ease;
  pointer-events: none;
  transform: translateZ(6px);
  -webkit-transform: translateZ(6px);
}

body.theme-gold-premium .island-3d-icon-img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.26)) drop-shadow(0 3px 8px rgba(184, 145, 37, 0.38));
}

body.theme-dark .island-3d-icon-img {
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.75));
}

body.theme-light .island-3d-icon-img {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

/* 3D Holographic Specular Glare Overlay */
.app-icon-3d-glare {
  position: absolute;
  inset: 0;
  border-radius: calc(17px * min(var(--app-icon-scale, 1.5), 1.5));
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 225, 130, 0.5) 30%, rgba(255, 255, 255, 0) 70%);
  transition: opacity 0.3s ease, background 0.15s ease;
  transform: translateZ(18px);
  -webkit-transform: translateZ(18px);
  z-index: 5;
}

.app-icon-item--dock .app-icon-3d-glare {
  border-radius: calc(13px * min(var(--app-icon-scale, 1.5), 1.5));
}

/* CSS 3D Tilt Hover */
.app-icon-item:hover .app-icon-box {
  transform: perspective(700px) translateY(-5px) translateZ(16px) scale3d(1.10, 1.10, 1.10) rotateX(8deg) rotateY(-5deg);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.32)) drop-shadow(0 6px 14px rgba(184, 145, 37, 0.45));
}

.app-icon-item:hover .app-icon-3d-glare {
  opacity: 0.85;
}

/* CSS 3D Tactile Press */
.app-icon-item:active .app-icon-box {
  transform: perspective(700px) translateY(2px) translateZ(-14px) scale3d(0.92, 0.92, 0.92) rotateX(-4deg);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25)) drop-shadow(0 1px 3px rgba(184, 145, 37, 0.25));
  transition-duration: 0.08s;
}

.app-icon-item:active .app-icon-3d-glare {
  opacity: 0.35;
  transform: translateZ(4px);
}

.app-icon-item--dock .island-3d-icon-img {
  width: 100%;
  height: 100%;
  border-radius: calc(13px * min(var(--app-icon-scale, 1.5), 1.5));
}

.app-icon-item--dock:hover .app-icon-box {
  transform: perspective(700px) translateY(-4px) translateZ(14px) scale3d(1.10, 1.10, 1.10) rotateX(6deg) rotateY(-4deg);
}

.app-icon-item--dock:active .app-icon-box {
  transform: perspective(700px) translateY(2px) translateZ(-12px) scale3d(0.90, 0.90, 0.90);
}

.app-icon-glyph {
  font-size: calc(28px * min(var(--app-icon-scale, 1.5), 1.5));
  line-height: 1;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.app-icon-item:hover .app-icon-glyph {
  transform: scale(1.1);
}

.app-icon-label {
  font-family: var(--font-sans);
  font-size: calc(0.74rem * min(var(--app-icon-scale, 1.5), 1.25));
  line-height: 1.28;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 6px;
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

body.theme-dark .app-icon-label {
  color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.app-icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  padding: 0 6px;
  box-sizing: border-box;
  z-index: 100;
  pointer-events: none;
  letter-spacing: -0.02em;
  transform: translateZ(35px);
  -webkit-transform: translateZ(35px);
}

.app-icon-badge.is-single-digit {
  width: 22px;
  min-width: 22px;
  padding: 0;
}

/* Dock-specific badge scale for authentic Apple proportions */
.app-icon-box--dock .app-icon-badge {
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  transform: translateZ(35px);
  -webkit-transform: translateZ(35px);
  z-index: 100;
}

.app-icon-box--dock .app-icon-badge.is-single-digit {
  width: 20px;
  min-width: 20px;
  padding: 0;
}

/* 3. Floating Frosted iOS Dock (Replaces basic bottom bar) */
.letoile-dock-wrapper {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom, 14px));
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 240;
  pointer-events: none;
  box-sizing: border-box;
  padding: 0 12px;
  transition: bottom 0.2s ease;
}

/* Authentic iOS App Architecture: Dock only appears on Springboard Home, completely hidden inside apps */
body.is-in-app .letoile-dock-wrapper,
body:has(.module-view.active:not(#view-home)) .letoile-dock-wrapper,
body.is-in-app .letoile-dock,
body:has(.module-view.active:not(#view-home)) .letoile-dock {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* In-App Viewport: Reclaim bottom padding since dock is hidden */
body.is-in-app .mobile-viewport,
body:has(.module-view.active:not(#view-home)) .mobile-viewport {
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 36px);
}

.letoile-dock {
  pointer-events: auto;
  width: fit-content;
  min-width: calc(140px + (var(--app-icon-scale, 1.5) - 1) * 60px);
  max-width: min(96vw, calc(100% - 24px));
  height: auto;
  min-height: calc(50px * var(--app-icon-scale, 1.5) + 26px);
  padding: calc(10px * min(var(--app-icon-scale, 1.5), 1.5)) calc(15px * min(var(--app-icon-scale, 1.5), 1.5));
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1.8px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 14px 40px rgba(184, 145, 37, 0.22), 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 1.5px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10px * min(var(--app-icon-scale, 1.5), 1.5));
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Empty Dock: Completely Invisible ("Like magic, only people who know will know") */
.letoile-dock:empty,
.letoile-dock.is-empty,
.letoile-dock-wrapper:has(.letoile-dock.is-empty),
.letoile-dock-wrapper:has(.letoile-dock:empty) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* When dragging or arranging icons, reveal empty dock as an inviting luxury drop target */
body.app--is-dragging .letoile-dock:empty,
body.app--is-dragging .letoile-dock.is-empty,
body.app--is-dragging .letoile-dock-wrapper:has(.letoile-dock.is-empty),
body.app--is-dragging .letoile-dock-wrapper:has(.letoile-dock:empty),
body.app--is-arranging .letoile-dock:empty,
body.app--is-arranging .letoile-dock.is-empty,
body.app--is-arranging .letoile-dock-wrapper:has(.letoile-dock.is-empty),
body.app--is-arranging .letoile-dock-wrapper:has(.letoile-dock:empty) {
  display: flex !important;
  opacity: 0.92 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  min-height: calc(48px * var(--app-icon-scale, 1.5) + 22px);
  min-width: 120px;
  border: 2px solid rgba(212, 175, 55, 0.85) !important;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.35) !important;
  background: rgba(255, 251, 238, 0.58);
}

body.theme-dark.app--is-dragging .letoile-dock:empty,
body.theme-dark.app--is-dragging .letoile-dock.is-empty,
body.theme-dark.app--is-dragging .letoile-dock-wrapper:has(.letoile-dock.is-empty),
body.theme-dark.app--is-dragging .letoile-dock-wrapper:has(.letoile-dock:empty),
body.theme-dark.app--is-arranging .letoile-dock:empty,
body.theme-dark.app--is-arranging .letoile-dock.is-empty,
body.theme-dark.app--is-arranging .letoile-dock-wrapper:has(.letoile-dock.is-empty),
body.theme-dark.app--is-arranging .letoile-dock-wrapper:has(.letoile-dock:empty) {
  background: rgba(18, 22, 32, 0.55);
  border-color: rgba(212, 175, 55, 0.55) !important;
}

body.theme-gold-premium .letoile-dock {
  background: rgba(255, 251, 238, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 20px 50px rgba(184, 145, 37, 0.32), inset 0 1.5px 1px #ffffff;
}

body.theme-dark .letoile-dock {
  background: rgba(18, 22, 32, 0.88);
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.theme-light .letoile-dock {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), inset 0 1.5px 0 #ffffff;
}

/* Dock Interactive Drop States */
.letoile-dock--drop-active {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35), 0 18px 46px rgba(184, 145, 37, 0.36) !important;
}

.letoile-dock--drop-hover {
  transform: scale(1.04);
  border-color: #f59e0b !important;
  background: rgba(254, 243, 199, 0.96) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.5), 0 22px 52px rgba(184, 145, 37, 0.42) !important;
}

body.theme-dark .letoile-dock--drop-hover {
  background: rgba(45, 35, 15, 0.94) !important;
  border-color: #ffd875 !important;
}

/* Dock Icons */
.app-icon-item--dock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.app-icon-box--dock {
  width: calc(48px * var(--app-icon-scale, 1.5));
  height: calc(48px * var(--app-icon-scale, 1.5));
  border-radius: calc(13px * min(var(--app-icon-scale, 1.5), 1.5));
  position: relative;
  flex-shrink: 0;
}

.app-icon-box--dock .app-icon-glyph {
  font-size: calc(23px * min(var(--app-icon-scale, 1.5), 1.5));
}

.app-icon-label--dock {
  display: none !important;
}

/* Dock Active Indicator Dot */
.dock-active-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
  margin-top: 3px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 6px var(--gold-primary);
}

.app-icon-item--dock.active .dock-active-dot {
  opacity: 1;
  transform: scale(1.2);
}

/* 4. Drag & Drop Interactive Engine & Arrange Mode */
.app--is-dragging * {
  cursor: grabbing !important;
}

.draggable-app-icon {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.draggable-app-icon.is-being-dragged {
  opacity: 0.14;
  transform: scale(0.88);
}

.drag-floating-avatar {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: transform, left, top;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.55));
  transform: translate(-50%, -50%) scale(1.12) rotate(-2deg);
  transition: transform 0.1s ease;
}

.drag-floating-box {
  width: calc(62px * var(--app-icon-scale, 1.5));
  height: calc(62px * var(--app-icon-scale, 1.5));
  border-radius: calc(17px * min(var(--app-icon-scale, 1.5), 1.5));
  background: transparent;
}

body.app--is-arranging .app-slot-item:nth-child(odd) .draggable-app-icon:not(.is-being-dragged):not(.is-arrange-selected) .app-icon-box {
  animation: springboardIconJiggleA 0.34s ease-in-out infinite alternate;
}

body.app--is-arranging .app-slot-item:nth-child(even) .draggable-app-icon:not(.is-being-dragged):not(.is-arrange-selected) .app-icon-box {
  animation: springboardIconJiggleB 0.36s ease-in-out infinite alternate;
}

@keyframes springboardIconJiggleA {
  from { transform: rotate(-1.6deg) translateY(0); }
  to { transform: rotate(1.6deg) translateY(-1px); }
}

@keyframes springboardIconJiggleB {
  from { transform: rotate(1.5deg) translateY(-1px); }
  to { transform: rotate(-1.5deg) translateY(0); }
}

.draggable-app-icon.is-arrange-selected .app-icon-box {
  transform: translateY(-4px) scale(1.09) !important;
  box-shadow: 0 0 0 3.5px #d4af37, 0 0 24px rgba(212, 175, 55, 0.72) !important;
  animation: none !important;
}

body.theme-dark .draggable-app-icon.is-arrange-selected .app-icon-box {
  box-shadow: 0 0 0 3.5px #ffd875, 0 0 26px rgba(255, 216, 117, 0.65) !important;
}

/* 5. In-App Header Navigation Back to SpringBoard (Icon-Only Circular Medallion) */
.in-app-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  flex-shrink: 0;
}

.in-app-home-btn .home-chevron-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

body[dir="rtl"] .in-app-home-btn .home-chevron-icon {
  transform: rotate(180deg);
}

.in-app-home-btn:active {
  transform: scale(0.92);
}

/* Dark Mode Home Button */
body.theme-dark .in-app-home-btn {
  background: rgba(18, 22, 28, 0.9);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  color: #e5c158;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

body.theme-dark .in-app-home-btn:hover {
  background: rgba(26, 32, 42, 0.95);
  border-color: #f5d77f;
  color: #f5d77f;
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

/* Minimal Light Mode Home Button */
body.theme-light .in-app-home-btn {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.theme-light .in-app-home-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: scale(1.06);
}

/* Gold Premium Mode Home Button */
body.theme-gold-premium .in-app-home-btn {
  background: linear-gradient(135deg, #ffffff 0%, #fdf5e4 100%);
  border: 2px solid #d4af37;
  color: #734d05;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.28), inset 0 1px 0 #ffffff;
}

body.theme-gold-premium .in-app-home-btn:hover {
  border-color: #b8860b;
  color: #523602;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.4);
}

/* ============================================================
   6. APP CONTEXT MENU (iOS Frosted Glass Popup on Long-Press / Right-Click)
   ============================================================ */
.app-context-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: block;
}

.app-context-menu {
  position: absolute;
  min-width: 220px;
  background: rgba(30, 24, 18, 0.92);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.2);
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: contextMenuPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center top;
}

body.theme-dark .app-context-menu {
  background: rgba(18, 22, 32, 0.94);
  border-color: rgba(212, 175, 55, 0.35);
}

body.theme-light .app-context-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

@keyframes contextMenuPop {
  0% { opacity: 0; transform: scale(0.88) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.context-menu-header {
  padding: 6px 12px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-menu-header-img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: contain;
}

.context-menu-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.01em;
}

body.theme-light .context-menu-title {
  color: #b89125;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.90rem;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
  transition: background 0.15s ease;
  user-select: none;
}

body.theme-light .context-menu-item {
  color: #1e293b;
}

.context-menu-item:hover,
.context-menu-item:active {
  background: rgba(255, 255, 255, 0.14);
}

body.theme-light .context-menu-item:hover,
body.theme-light .context-menu-item:active {
  background: rgba(0, 0, 0, 0.06);
}

.context-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.22);
  color: #f5d77f;
  flex-shrink: 0;
}

body.theme-light .context-menu-icon {
  background: rgba(212, 175, 55, 0.18);
  color: #996515;
}

.context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 6px;
}

body.theme-light .context-menu-divider {
  background: rgba(0, 0, 0, 0.08);
}

/* ============================================================
   7. RESIZE ICON MODAL (iOS Volume Continuous Slider & Live Stage)
   ============================================================ */
.resize-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.resize-modal-card {
  background: rgba(26, 20, 14, 0.94);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 2px solid rgba(212, 175, 55, 0.55);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 0 36px rgba(212, 175, 55, 0.25);
  max-width: 380px;
  width: 100%;
  padding: 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  position: relative;
  animation: contextMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-dark .resize-modal-card {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(212, 175, 55, 0.40);
}

body.theme-gold-premium .resize-modal-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 248, 237, 0.96) 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 28px 70px rgba(184, 145, 37, 0.35), 0 0 40px rgba(212, 175, 55, 0.3);
}

body.theme-light .resize-modal-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(212, 175, 55, 0.50);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18), 0 0 36px rgba(212, 175, 55, 0.2);
}

.resize-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: start;
  gap: 8px;
}

.resize-modal-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
}

body.theme-light .resize-modal-title {
  color: #1e293b;
}

.resize-modal-subtitle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

body.theme-light .resize-modal-subtitle {
  color: #64748b;
}

.resize-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

body.theme-light .resize-modal-close {
  background: rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

.resize-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Live Preview Stage */
.resize-modal-preview-stage {
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body.theme-light .resize-modal-preview-stage {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
}

.resize-modal-preview-icon-wrap {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease-out;
}

.resize-modal-scale-val {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 800;
  color: #ffd875;
  background: rgba(18, 14, 10, 0.85);
  padding: 2px 10px;
  border-radius: 100px;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

[dir="rtl"] .resize-modal-scale-val {
  right: auto;
  left: 12px;
}

/* iOS Volume Slider Track */
.ios-slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.slider-endpoint-label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  flex-shrink: 0;
}

body.theme-light .slider-endpoint-label {
  color: #64748b;
}

.ios-slider-track-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.ios-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  border-radius: 100px;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.1s ease;
}

body.theme-light .ios-volume-slider {
  background: rgba(0, 0, 0, 0.12);
}

.ios-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #d4af37;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: grab;
}

.ios-volume-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #d4af37;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: grab;
}

/* Preset Quick Pills */
.resize-modal-presets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.resize-preset-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffffff;
  border-radius: 9999px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.theme-light .resize-preset-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(212, 175, 55, 0.35);
  color: #1e293b;
}

.resize-preset-btn.active,
.resize-preset-btn:hover {
  background: var(--gold-primary);
  color: #1c150c !important;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

/* Modal Actions */
.resize-modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.resize-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.resize-btn--reset {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.theme-light .resize-btn--reset {
  background: rgba(0, 0, 0, 0.08);
  color: #475569;
}

.resize-btn--save {
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 60%, #aa8022 100%);
  color: #1a140d;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   CENTERED LUXURY CONTACT & LOCATION ACTION SUITE (LARGE ICONS)
   ========================================================================== */

.contact-action-center-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin: 14px auto 10px auto;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.contact-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  border-radius: 9999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  border: 1.5px solid transparent;
  box-sizing: border-box;
}

.contact-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.contact-action-button:active {
  transform: translateY(0) scale(0.97);
}

/* Large Medallion Icon Badge for Phone and Location (Prominent & Professional) */
.contact-action-medallion {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.contact-action-button:hover .contact-action-medallion {
  transform: scale(1.1);
}

.contact-action-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

body.lang-ar .contact-action-text-group,
[dir="rtl"] .contact-action-text-group {
  text-align: right;
}

.contact-action-micro-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  font-weight: 800;
}

.contact-action-value {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Gold Theme Contact Action Buttons */
body.theme-gold-premium .contact-action-button.btn-phone {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8eb 50%, #f7ebd1 100%);
  color: #14532d;
  border: 1.5px solid #10b981;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.2), 0 2px 6px rgba(184, 145, 37, 0.15);
}

body.theme-gold-premium .contact-action-button.btn-location {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8eb 50%, #f7ebd1 100%);
  color: #1e3a8a;
  border: 1.5px solid #d4af37;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.2), 0 2px 6px rgba(184, 145, 37, 0.15);
}

body.theme-gold-premium .contact-action-medallion.medallion-phone {
  background: linear-gradient(135deg, #ecfdf5 0%, #10b981 100%);
  color: #ffffff;
  border: 1.8px solid #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

body.theme-gold-premium .contact-action-medallion.medallion-location {
  background: linear-gradient(135deg, #eff6ff 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1.8px solid #60a5fa;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* Dark Theme Contact Action Buttons */
body.theme-dark .contact-action-button.btn-phone {
  background: linear-gradient(135deg, #18221f 0%, #0d1613 100%);
  color: #6ee7b7;
  border: 1.5px solid #059669;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(5, 150, 105, 0.25);
}

body.theme-dark .contact-action-button.btn-location {
  background: linear-gradient(135deg, #161e2e 0%, #0d121c 100%);
  color: #93c5fd;
  border: 1.5px solid #2563eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(37, 99, 235, 0.25);
}

body.theme-dark .contact-action-medallion.medallion-phone {
  background: linear-gradient(135deg, #065f46 0%, #022c22 100%);
  color: #a7f3d0;
  border: 1.5px solid #10b981;
}

body.theme-dark .contact-action-medallion.medallion-location {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #bfdbfe;
  border: 1.5px solid #3b82f6;
}

/* Light Theme Contact Action Buttons */
body.theme-light .contact-action-button.btn-phone {
  background: #ffffff;
  color: #047857;
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body.theme-light .contact-action-button.btn-location {
  background: #ffffff;
  color: #1d4ed8;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body.theme-light .contact-action-medallion.medallion-phone {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #059669;
  border: 1.5px solid #86efac;
}

body.theme-light .contact-action-medallion.medallion-location {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1.5px solid #93c5fd;
}

/* Calendar Event Centered Logistics Bar */
.event-contact-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 14px auto 12px auto;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.event-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  border: 1.5px solid transparent;
}

.event-contact-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-action-badge {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

body.theme-gold-premium .event-contact-pill.pill-location {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8eb 50%, #f7ebd1 100%);
  color: #1e3a8a;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.16);
}

body.theme-gold-premium .event-contact-pill.pill-phone {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8eb 50%, #f7ebd1 100%);
  color: #14532d;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.16);
}

body.theme-gold-premium .event-action-badge.icon-location {
  background: linear-gradient(135deg, #eff6ff 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1.5px solid #93c5fd;
}

body.theme-gold-premium .event-action-badge.icon-phone {
  background: linear-gradient(135deg, #ecfdf5 0%, #10b981 100%);
  color: #ffffff;
  border: 1.5px solid #6ee7b7;
}

body.theme-dark .event-contact-pill.pill-location {
  background: linear-gradient(135deg, #161e2e 0%, #0d121c 100%);
  color: #93c5fd;
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

body.theme-dark .event-contact-pill.pill-phone {
  background: linear-gradient(135deg, #18221f 0%, #0d1613 100%);
  color: #6ee7b7;
  border-color: #059669;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

body.theme-dark .event-action-badge.icon-location {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #bfdbfe;
  border: 1.5px solid #3b82f6;
}

body.theme-dark .event-action-badge.icon-phone {
  background: linear-gradient(135deg, #065f46 0%, #022c22 100%);
  color: #a7f3d0;
  border: 1.5px solid #10b981;
}

body.theme-light .event-contact-pill.pill-location {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

body.theme-light .event-contact-pill.pill-phone {
  background: #ffffff;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

body.theme-light .event-action-badge.icon-location {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1.5px solid #93c5fd;
}

body.theme-light .event-action-badge.icon-phone {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #059669;
  border: 1.5px solid #86efac;
}

/* ==========================================================================
   Pending Requests Feed (Requests Screen Approval Queue)
   ========================================================================== */

.pending-requests-feed {
  display: none !important;
}

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

.pending-feed-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pending-feed-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pending-feed-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: #d97706;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.pending-approve-all-btn {
  font-size: 0.76rem !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
}

.pending-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 20px;
  border-radius: 20px;
}

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

.pending-empty-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pending-empty-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pending-shifts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending-shift-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pending-shift-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf6e7 100%);
  border: 1.5px solid #d4af37;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.15);
  flex-shrink: 0;
}

body.theme-dark .pending-shift-date-box {
  background: #1a1e29;
  border-color: rgba(212, 175, 55, 0.4);
}

body.theme-light .pending-shift-date-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ps-date-num {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1;
}

.ps-date-day {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

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

.pending-shift-worker-name {
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-shift-mode-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pending-shift-notes {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-shift-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.pending-shift-amount {
  font-size: 1.08rem;
  font-weight: 850;
  color: var(--gold-primary);
  letter-spacing: -0.01em;
}

.pending-shift-approve-btn {
  font-size: 0.72rem !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  line-height: 1.1;
}

/* ==========================================================================
   Factor 4: Actual Month Calendar Grid with Starred Event Days
   ========================================================================== */

/* Calendar Full-Page Engine */
#view-calendar.active {
  display: block;
  min-height: 100%;
  box-sizing: border-box;
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 24px);
}

#calendar-module-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.calendar-app-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ==========================================================================
   ULTRA-PREMIUM HAUTE COUTURE CALENDAR ENGINE (L'etoile Studio Master)
   Sculpted Jewelry Tiles, 24K Polished Gold Accents & 3D Specular Glare
   ========================================================================== */

/* Universal Top Navigation Header (3-Column Symmetrical Grid) */
.app-top-nav-bar,
.calendar-top-header,
.team-header-top-row,
#weddings-top-nav-bar,
#invoices-top-nav-bar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 8px 12px 10px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  z-index: 25 !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
}

.calendar-top-header {
  min-height: 42px !important;
  padding: 4px 12px 6px !important;
  margin-bottom: 4px !important;
}

body.theme-dark .app-top-nav-bar,
body.theme-dark .calendar-top-header,
body.theme-dark .team-header-top-row,
body.theme-dark #weddings-top-nav-bar,
body.theme-dark #invoices-top-nav-bar {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Priority hiding overrides for universal top navigation & subnav (eliminates double headers) */
body.is-wedding-detail-open #weddings-top-nav-bar,
body.is-wedding-profile-open #weddings-top-nav-bar,
#view-weddings.is-wedding-detail-open #weddings-top-nav-bar,
#view-weddings.is-wedding-profile-open #weddings-top-nav-bar,
#weddings-top-nav-bar.is-hidden,
#weddings-top-nav-bar[style*="display: none"],
#weddings-top-nav-bar[style*="display:none"],
body.is-worker-profile-open #view-workers .team-header-top-row,
body.is-worker-profile-open .team-header-top-row,
#view-workers.is-worker-profile-open .team-header-top-row,
body.is-worker-profile-open #points-top-nav-bar,
#view-points.is-worker-profile-open #points-top-nav-bar,
body.is-points-leaderboard-open #points-top-nav-bar,
#view-points.is-points-leaderboard-open #points-top-nav-bar,
body.is-worker-timesheet-open #view-workers .team-header-top-row,
body.is-worker-timesheet-open .team-header-top-row,
#view-workers.is-worker-timesheet-open .team-header-top-row,
.team-header-top-row.is-hidden,
.team-header-top-row[style*="display: none"],
.team-header-top-row[style*="display:none"] {
  display: none !important;
}

body.is-worker-profile-open #view-workers .sub-nav-wrapper,
body.is-worker-profile-open .sub-nav-wrapper,
#view-workers.is-worker-profile-open .sub-nav-wrapper,
body.is-worker-timesheet-open #view-workers .sub-nav-wrapper,
body.is-worker-timesheet-open .sub-nav-wrapper,
#view-workers.is-worker-timesheet-open .sub-nav-wrapper,
.sub-nav-wrapper[style*="display: none"],
.sub-nav-wrapper[style*="display:none"] {
  display: none !important;
}

/* Home / Back Chevron Button (Frosted Liquid Glass Circle) */
.in-app-home-btn,
.calendar-top-header .in-app-home-btn {
  justify-self: start !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.65) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.85) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.98) !important;
  color: var(--text-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 2 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

body.theme-dark .in-app-home-btn,
body.theme-dark .calendar-top-header .in-app-home-btn {
  background: rgba(30, 26, 20, 0.65) !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  border-top-color: rgba(255, 235, 170, 0.5) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.in-app-home-btn:hover,
.calendar-top-header .in-app-home-btn:hover {
  border-color: #d4af37 !important;
  color: #b8860b !important;
  transform: translateX(-2px) scale(1.05) !important;
}

.in-app-home-btn .home-chevron-icon,
.calendar-top-header .in-app-home-btn .home-chevron-icon {
  width: 18px !important;
  height: 18px !important;
}

/* Universal Page Title Liquid Frosted Glass Pill */
.app-page-title-glass-pill,
.calendar-title-glass-pill {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 22px 8px 22px !important;
  border-radius: 9999px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.40) 100%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.88) !important;
  border-top: 1.8px solid rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(212, 175, 55, 0.12), inset 0 1.5px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(212, 175, 55, 0.14) !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  max-width: 75vw !important;
  overflow: visible !important;
}

.app-page-title-glass-pill:hover,
.calendar-title-glass-pill:hover {
  transform: translateY(-1px) scale(1.03) !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 100%) !important;
  border-color: rgba(212, 175, 55, 0.65) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(212, 175, 55, 0.22), inset 0 1.5px 1px rgba(255, 255, 255, 0.98) !important;
}

.app-page-title-glass-pill:active,
.calendar-title-glass-pill:active {
  transform: scale(0.97) !important;
}

body.theme-dark .app-page-title-glass-pill,
body.theme-dark .calendar-title-glass-pill {
  background: linear-gradient(160deg, rgba(38, 30, 20, 0.72) 0%, rgba(20, 16, 11, 0.80) 100%) !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  border-top-color: rgba(255, 235, 170, 0.55) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(212, 175, 55, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

body.theme-dark .app-page-title-glass-pill:hover,
body.theme-dark .calendar-title-glass-pill:hover {
  background: linear-gradient(160deg, rgba(50, 40, 26, 0.82) 0%, rgba(26, 20, 14, 0.88) 100%) !important;
  border-color: rgba(212, 175, 55, 0.6) !important;
}

.app-page-top-title,
.calendar-top-title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-serif) !important;
  font-size: 1.16rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
  color: #241808 !important;
  line-height: 1.3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(-1.5px) !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

body.theme-dark .app-page-top-title,
body.theme-dark .calendar-top-title {
  color: #fff2be !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.app-top-nav-spacer,
.calendar-top-spacer {
  justify-self: end !important;
  width: 38px !important;
  height: 38px !important;
  flex-shrink: 0 !important;
}

.team-header-right-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 38px !important;
  gap: 8px !important;
}

.app-top-nav-right {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 38px !important;
}

.btn-calendar-today {
  display: none !important;
}

/* Calendar Page Width Expansion: Clean margins for breathing room */
body.is-calendar-active .mobile-viewport,
body:has(#view-calendar.active) .mobile-viewport,
.mobile-viewport:has(#view-calendar.active) {
  padding-left: max(env(safe-area-inset-left, 0px), 8px) !important;
  padding-right: max(env(safe-area-inset-right, 0px), 8px) !important;
}

/* Single Month Viewport */
.calendar-single-month-viewport {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Haute Couture Month Calendar Surface Card - iOS Frosted Liquid Glass */
.calendar-month-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.38) 100%);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  padding: 12px 6px 13px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.07), 0 2px 10px rgba(212, 175, 55, 0.10), inset 0 1.5px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(212, 175, 55, 0.15);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

body.theme-dark .calendar-month-card {
  background: linear-gradient(160deg, rgba(32, 26, 18, 0.65) 0%, rgba(18, 14, 10, 0.75) 100%);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

body.theme-gold-premium .calendar-month-card {
  border: 1.3px solid rgba(212, 175, 55, 0.45);
}

.calendar-month-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 12px;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.calendar-month-title-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.calendar-nav-arrow {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: #7c633e;
  cursor: pointer;
  padding: 0 4px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 8px;
  transition: all 0.18s ease;
  user-select: none;
  flex-shrink: 0;
}

.calendar-nav-arrow:hover {
  color: #d4af37;
  transform: scale(1.18);
}

.calendar-nav-arrow:active {
  transform: scale(0.92);
}

body.theme-dark .calendar-nav-arrow {
  color: #d4af37;
}

.calendar-month-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  color: #2c1e10;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}

body.theme-dark .calendar-month-card-title {
  color: #fff3c4;
}

.calendar-month-event-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.15);
  color: #855f10;
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

body.theme-dark .calendar-month-event-pill {
  color: #ffd875;
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.4);
}

.calendar-month-event-pill.has-events {
  background: linear-gradient(135deg, #f7d579 0%, #dfa52b 50%, #c48c20 100%);
  color: #1a1205;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(216, 159, 46, 0.35);
}

/* 7-Column Weekday Headers (Unified antique bronze for all columns) */
.calendar-weekdays-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
  padding: 3px 0 7px;
  border-bottom: 1.2px solid #ebdcc6;
  margin-bottom: 7px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

body.theme-dark .calendar-weekdays-bar {
  border-bottom-color: rgba(212, 175, 55, 0.25);
}

.calendar-weekday-col {
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 850;
  color: #7c633e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.theme-dark .calendar-weekday-col {
  color: #d4af37;
}

/* Inner Enclosed Rounded Box Frame - iOS Glass Trench */
.calendar-grid-enclosure {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.theme-dark .calendar-grid-enclosure {
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* 7-Column Proportional Month Grid with Wider Squircle Cards */
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
}

/* Sculpted Jewelry-Grade Calendar Day Tiles - iOS Frosted Glass Squircles */
.calendar-day-cell {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1.05;
  border-radius: 13px;
  padding: 4px 2px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.40) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-top: 1.4px solid rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.theme-dark .calendar-day-cell {
  background: linear-gradient(165deg, rgba(42, 34, 24, 0.7) 0%, rgba(26, 20, 14, 0.75) 100%);
  border-color: rgba(212, 175, 55, 0.25);
  border-top-color: rgba(255, 235, 170, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calendar-day-cell:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(212, 175, 55, 0.85);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  box-shadow: 0 6px 16px rgba(184, 145, 37, 0.22), inset 0 1px 1px #ffffff;
}

body.theme-dark .calendar-day-cell:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: #d4af37;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* Day Numbers - Clean & Unobstructed */
.calendar-day-cell .day-num {
  font-size: 1.15rem;
  font-weight: 750;
  color: #201810;
  font-family: var(--font-serif);
  line-height: 1;
  transition: all 0.18s ease;
  pointer-events: none;
}

body.theme-dark .calendar-day-cell .day-num {
  color: #f1ede6;
}

/* Overflow Days */
.calendar-day-cell.is-overflow {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

body.theme-dark .calendar-day-cell.is-overflow {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.1);
  opacity: 0.25;
}

.calendar-day-cell.is-overflow .day-num {
  color: #c4bcaf !important;
}

/* Event Days: Complete 360° Golden Perimeter with Star Indicator */
.calendar-day-cell.has-event {
  border: 1.5px solid rgba(212, 175, 55, 0.85) !important;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 246, 222, 0.55) 100%) !important;
  box-shadow: 0 4px 12px rgba(216, 160, 40, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.92) !important;
}

body.theme-dark .calendar-day-cell.has-event {
  background: linear-gradient(165deg, rgba(65, 48, 22, 0.8) 0%, rgba(35, 25, 12, 0.85) 100%) !important;
  border: 1.5px solid #d4af37 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.25) !important;
}

.calendar-day-cell.has-event .day-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #2c1e10;
}

body.theme-dark .calendar-day-cell.has-event .day-num {
  color: #ffe699;
}

/* Day Cell Indicators Bar (Cleanly centered below date number) */
.day-cell-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 13px;
  line-height: 1;
  pointer-events: none;
}

.day-star-indicator {
  font-size: 0.78rem;
  line-height: 1;
  color: #c98e16;
  text-shadow: 0 1px 2px rgba(184, 145, 37, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-dark .day-star-indicator {
  color: #ffd875;
}

/* Red Star Indicator: Day worker is on schedule */
.day-star-indicator.is-worker-shift {
  color: #ef4444 !important;
  text-shadow: 0 1px 3px rgba(239, 68, 68, 0.6), 0 0 8px rgba(239, 68, 68, 0.35) !important;
  filter: drop-shadow(0 0.5px 1.5px rgba(185, 28, 28, 0.65));
  font-size: 0.86rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-dark .day-star-indicator.is-worker-shift {
  color: #ff4545 !important;
  text-shadow: 0 1px 4px rgba(255, 69, 69, 0.8), 0 0 10px rgba(255, 69, 69, 0.5) !important;
  filter: drop-shadow(0 0.5px 2px rgba(255, 69, 69, 0.7));
}

body.theme-gold-premium .day-star-indicator.is-worker-shift {
  color: #e11d48 !important;
  text-shadow: 0 1px 3px rgba(225, 29, 72, 0.5) !important;
}

/* White Star Indicator: Days that only have studio working hours */
.day-star-indicator.is-hours-white {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 1.5px rgba(0, 0, 0, 0.6) !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.45)) !important;
  font-size: 0.82rem !important;
}

body.theme-dark .day-star-indicator.is-hours-white {
  color: #ffffff !important;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)) !important;
}

body.theme-gold-premium .day-star-indicator.is-hours-white {
  color: #ffffff !important;
  text-shadow: 0 1px 2.5px rgba(45, 30, 8, 0.6), 0 0 1px rgba(30, 18, 4, 0.75) !important;
  filter: drop-shadow(0 1px 2px rgba(35, 22, 5, 0.45)) !important;
}

/* White Multi-Shift Pill */
.day-multi-event-pill.is-hours-white {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 240, 240, 0.92) 100%) !important;
  color: #2c251d !important;
  border: 0.8px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
}

.day-multi-event-pill.is-hours-white .day-pill-star.is-white {
  color: #ffffff !important;
  text-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.5) !important;
  filter: drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.4)) !important;
}

body.theme-dark .day-multi-event-pill.is-hours-white {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Day Cell with Hours Only: Crisp Frosted Pearl Finish */
.calendar-day-cell.has-hours-only {
  border: 1.2px solid rgba(255, 255, 255, 0.88) !important;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.75) 0%, rgba(246, 246, 246, 0.48) 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
}

body.theme-dark .calendar-day-cell.has-hours-only {
  background: linear-gradient(165deg, rgba(42, 38, 32, 0.75) 0%, rgba(26, 23, 19, 0.8) 100%) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body.theme-gold-premium .calendar-day-cell.has-hours-only {
  border: 1.2px solid rgba(255, 255, 255, 0.92) !important;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(252, 249, 240, 0.55) 100%) !important;
  box-shadow: 0 3px 10px rgba(184, 145, 37, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
}

.day-multi-event-pill {
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  padding: 1px 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fce59b 0%, #dfa52b 100%);
  color: #1a1205;
  border: 0.8px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(184, 145, 37, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

/* Red Star in Multi-Event Pill */
.day-pill-star.is-red {
  color: #ef4444 !important;
  font-weight: 900;
  filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.7));
}

body.theme-dark .day-pill-star.is-red {
  color: #ff5252 !important;
}

.day-multi-event-pill.is-worker-shift {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%) !important;
  color: #991b1b !important;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.28) !important;
}

body.theme-dark .day-multi-event-pill.is-worker-shift {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.4) 0%, rgba(127, 29, 29, 0.5) 100%) !important;
  color: #fecdd3 !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
}

.calendar-day-cell.has-worker-shift {
  border-color: rgba(239, 68, 68, 0.35);
}

body.theme-dark .calendar-day-cell.has-worker-shift {
  border-color: rgba(239, 68, 68, 0.45);
}

.day-note-dot,
.day-notes-only-indicator {
  font-size: 0.58rem;
  line-height: 1;
}

/* Today: Frosted Liquid Gold Glass Medallion */
.calendar-day-cell.is-today {
  border: 1.5px solid rgba(212, 175, 55, 0.8) !important;
  background: linear-gradient(145deg, rgba(247, 219, 135, 0.9) 0%, rgba(224, 167, 48, 0.85) 50%, rgba(196, 139, 24, 0.9) 100%) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 6px 18px rgba(196, 139, 24, 0.36), inset 0 1.5px 1px rgba(255, 255, 255, 0.75) !important;
}

body.theme-dark .calendar-day-cell.is-today {
  background: linear-gradient(160deg, rgba(143, 105, 27, 0.85) 0%, rgba(104, 72, 11, 0.85) 50%, rgba(68, 45, 3, 0.9) 100%) !important;
  border: 1.5px solid #d4af37 !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45), inset 0 1px 0 rgba(255, 235, 170, 0.4) !important;
}

.calendar-day-cell.is-today .day-num {
  color: #1e1302 !important;
  font-weight: 850;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.4);
}

body.theme-dark .calendar-day-cell.is-today .day-num {
  color: #fff2be !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.calendar-day-cell.is-today .day-star-indicator:not(.is-hours-white):not(.is-worker-shift) {
  color: #2e1c03 !important;
  text-shadow: none;
}

.calendar-day-cell.is-today .day-star-indicator.is-hours-white {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(46, 28, 3, 0.75), 0 0 1.5px rgba(0, 0, 0, 0.8) !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)) !important;
}

.calendar-day-cell.is-today .day-multi-event-pill {
  background: rgba(30, 19, 2, 0.16) !important;
  color: #1e1302 !important;
  border-color: rgba(30, 19, 2, 0.25) !important;
}

/* Selected Day: Elevated Jewelry Squircle with Highlight Halo */
.calendar-day-cell.is-selected:not(.is-today) {
  border: 1.6px solid #d4af37 !important;
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 1px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 248, 230, 0.72) 100%) !important;
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.26), inset 0 1.5px 1px rgba(255, 255, 255, 0.98) !important;
  transform: translateY(-1px);
}

body.theme-dark .calendar-day-cell.is-selected:not(.is-today) {
  border-color: #ffd875 !important;
  outline-color: rgba(255, 216, 117, 0.45);
  background: linear-gradient(165deg, rgba(53, 42, 26, 0.85) 0%, rgba(34, 26, 15, 0.9) 100%) !important;
}

.calendar-day-cell.is-selected.is-today {
  outline: 2.5px solid #6b4503;
  outline-offset: 1.5px;
  transform: translateY(-1px);
}

body.theme-dark .calendar-day-cell.is-selected.is-today {
  outline-color: #ffe699;
}

/* Selected Day Integrated Agenda Card - iOS Frosted Glass */
.calendar-selected-day-section {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeInModal 0.2s ease-out;
  padding-bottom: 54px;
}

.calendar-agenda-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.38) 100%);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 12px 14px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(212, 175, 55, 0.1), inset 0 1.5px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

body.theme-dark .calendar-agenda-card {
  background: linear-gradient(160deg, rgba(32, 26, 18, 0.65) 0%, rgba(18, 14, 10, 0.75) 100%);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

body.theme-gold-premium .calendar-agenda-card {
  border: 1.3px solid rgba(212, 175, 55, 0.45);
}

/* ==========================================================================
   Selected Day Luxury Agenda & Action Bar (Unorganized & Skinny Fix)
   ========================================================================== */

.calendar-agenda-header-v2 {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  min-height: 32px;
  flex-wrap: wrap;
}

.calendar-agenda-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.calendar-agenda-dot {
  color: var(--gold-primary, #d4af37);
  font-size: 0.90rem;
}

.calendar-agenda-full-title {
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  font-size: 1.16rem;
  font-weight: 850;
  color: var(--text-primary, #1a1205);
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.calendar-agenda-badges-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.agenda-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.agenda-pill-event {
  background: linear-gradient(135deg, #f7d579 0%, #dfa52b 50%, #c48c20 100%);
  color: #1a1205;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(216, 159, 46, 0.25);
}

.agenda-pill-hours {
  background: rgba(46, 213, 115, 0.16);
  color: #15803d;
  border: 1px solid rgba(46, 213, 115, 0.38);
}

body.theme-dark .agenda-pill-hours {
  color: #4ade80;
  background: rgba(46, 213, 115, 0.22);
}

.agenda-pill-empty {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

/* Dedicated Admin Action Bar - Generous side-by-side touch targets */
.calendar-agenda-action-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 0 10px;
  border-bottom: 1.2px solid #ebdcc6;
}

body.theme-dark .calendar-agenda-action-bar {
  border-bottom-color: rgba(212, 175, 55, 0.22);
}

.btn-agenda-action {
  flex: 1;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
}

.btn-action-add-event,
.btn-action-assign,
.btn-action-assign-hours {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 227, 0.95));
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-action-add-event span,
.btn-action-assign span,
.btn-action-assign-hours span {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

.btn-action-add-event:hover,
.btn-action-assign:hover,
.btn-action-assign-hours:hover {
  background: linear-gradient(135deg, #ffffff, #f7ebd2);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

.btn-action-add-event:hover span,
.btn-action-assign:hover span,
.btn-action-assign-hours:hover span {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

body.theme-light .btn-action-add-event,
body.theme-light .btn-action-assign,
body.theme-light .btn-action-assign-hours {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 227, 0.95)) !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: 1.2px solid rgba(212, 175, 55, 0.45) !important;
}

body.theme-light .btn-action-add-event span,
body.theme-light .btn-action-assign span,
body.theme-light .btn-action-assign-hours span {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

body.theme-light .btn-agenda-action .action-btn-sym {
  -webkit-text-fill-color: initial !important;
  color: initial !important;
}

body.theme-dark .btn-action-add-event,
body.theme-dark .btn-action-assign,
body.theme-dark .btn-action-assign-hours {
  background: rgba(212, 175, 55, 0.14) !important;
  color: #ffd875 !important;
  -webkit-text-fill-color: #ffd875 !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

body.theme-dark .btn-action-add-event span,
body.theme-dark .btn-action-assign span,
body.theme-dark .btn-action-assign-hours span {
  color: #ffd875 !important;
  -webkit-text-fill-color: #ffd875 !important;
}

body.theme-dark .btn-agenda-action .action-btn-sym {
  -webkit-text-fill-color: initial !important;
  color: initial !important;
}

.btn-agenda-action .action-btn-sym {
  font-size: 0.92rem;
  -webkit-text-fill-color: initial !important;
  color: initial !important;
}

/* ==========================================================================
   Studio Hours Card on Calendar - Clean Minimalist Roster
   ========================================================================== */

.calendar-hours-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.90) 0%, rgba(253, 249, 240, 0.86) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.3px solid rgba(212, 175, 55, 0.42);
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.calendar-hours-card.is-interactive {
  cursor: pointer;
}

.calendar-hours-card.is-interactive:hover {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.15);
  transform: translateY(-1px);
}

body.theme-dark .calendar-hours-card {
  background: linear-gradient(160deg, rgba(28, 22, 16, 0.90) 0%, rgba(18, 14, 10, 0.94) 100%);
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

body.theme-dark .calendar-hours-card.is-interactive:hover {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(212, 175, 55, 0.2);
}

.hours-card-roster-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hours-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(212, 175, 55, 0.08);
  border: 1.2px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.hours-person-row:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}

.hours-person-row:active {
  transform: scale(0.99);
}

body.theme-dark .hours-person-row {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.30);
}

body.theme-dark .hours-person-row:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.65);
}

.hours-person-row.is-me {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.hours-person-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.hours-person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6ca65 0%, #d4af37 50%, #aa8010 100%);
  color: #1a1405;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.24);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.hours-person-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hours-person-name {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hours-person-time {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--gold-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

body.theme-dark .hours-person-time {
  color: #ffd875;
}

.hours-roster-empty-lux {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  text-align: center;
  gap: 8px;
}

.hours-empty-time-big {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--gold-primary);
  letter-spacing: 0.02em;
}

.hours-empty-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-hours-assign-empty {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a1405;
  background: linear-gradient(135deg, #e6ca65 0%, #d4af37 100%);
  border: none;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  transition: all 0.2s ease;
}

.btn-hours-assign-empty:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.hours-card-notes-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.03);
  padding: 5px 10px;
  border-radius: 8px;
}

body.theme-dark .hours-card-notes-row {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 440px) {
  .hours-person-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .hours-person-left {
    width: 100%;
  }

  .hours-person-time {
    align-self: flex-start;
    padding-left: 56px;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Hours Hold Action Sheet (Edit / Delete)
   ========================================================================== */

.hours-action-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.hours-action-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hours-action-sheet {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(253, 249, 240, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 28px 28px 0 0;
  padding: 14px 20px 32px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2), 0 -2px 10px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.theme-dark .hours-action-sheet {
  background: linear-gradient(160deg, rgba(28, 22, 16, 0.97) 0%, rgba(18, 14, 10, 0.99) 100%);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
}

.hours-action-sheet-backdrop.is-open .hours-action-sheet {
  transform: translateY(0);
}

.hours-action-sheet-pill {
  width: 40px;
  height: 4.5px;
  background: rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  margin-bottom: 2px;
}

.hours-action-sheet-info {
  text-align: center;
  width: 100%;
}

.hours-action-sheet-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.3rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hours-action-sheet-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 3px;
}

.hours-action-sheet-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hours-action-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 750;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  box-sizing: border-box;
  letter-spacing: 0.01em;
}

.btn-sheet-edit {
  background: linear-gradient(135deg, #e6ca65 0%, #d4af37 100%);
  color: #1a1405;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-sheet-edit:hover, .btn-sheet-edit:active {
  transform: scale(0.985);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-sheet-delete {
  background: rgba(255, 71, 87, 0.12);
  color: #ff4757;
  border: 1.2px solid rgba(255, 71, 87, 0.35);
}

body.theme-dark .btn-sheet-delete {
  background: rgba(255, 71, 87, 0.16);
  border-color: rgba(255, 71, 87, 0.45);
}

.btn-sheet-delete:hover, .btn-sheet-delete:active {
  background: rgba(255, 71, 87, 0.22);
  transform: scale(0.985);
}

.btn-sheet-cancel {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  font-weight: 600;
}

body.theme-dark .btn-sheet-cancel {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sheet-cancel:hover, .btn-sheet-cancel:active {
  background: rgba(0, 0, 0, 0.08);
}

@media (min-width: 500px) {
  .hours-action-sheet-backdrop {
    align-items: center;
    padding: 20px;
  }
  .hours-action-sheet {
    border-radius: 28px;
    padding: 22px 24px 24px;
    transform: scale(0.95);
  }
  .hours-action-sheet-backdrop.is-open .hours-action-sheet {
    transform: scale(1);
  }
  .hours-action-sheet-pill {
    display: none;
  }
}

/* ==========================================================================
   Luxury Spacious Empty State
   ========================================================================== */

.calendar-agenda-empty-lux {
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.empty-lux-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.empty-lux-msg {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  max-width: 250px;
  line-height: 1.35;
}

.empty-lux-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-empty-lux-action,
.btn-empty-lux-action.is-hours {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  color: #1a1205;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.theme-dark .btn-empty-lux-action,
body.theme-dark .btn-empty-lux-action.is-hours {
  background: rgba(212, 175, 55, 0.15);
  color: #ffd875;
  border-color: rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   Assign Hours Modal (iOS Bottom Sheet Style)
   ========================================================================== */

.assign-hours-modal-card {
  max-width: 430px;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.assign-hours-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1.2px solid rgba(212, 175, 55, 0.25);
  background: var(--bg-card);
}

.assign-hours-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.assign-hours-main-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-primary);
}

.assign-hours-date-badge {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.assign-hours-scroll-body {
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

.ah-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.ah-section-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000;
  font-size: 0.70rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-section-title {
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.ah-select-all-btn {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--gold-primary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.ah-workers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.ah-workers-grid::-webkit-scrollbar {
  width: 4px;
}

.ah-workers-grid::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

.ah-worker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: var(--bg-input);
  border: 1.2px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
  box-sizing: border-box;
}

.ah-worker-item.is-selected {
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 1px 6px rgba(212, 175, 55, 0.15);
}

.ah-worker-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--gold-primary);
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.ah-worker-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}

.ah-worker-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.ah-worker-name {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ah-worker-rate {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.2;
}

.ah-durations-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ah-durations-row::-webkit-scrollbar {
  display: none;
}

.ah-duration-btn {
  flex: 1;
  min-width: 50px;
  height: 34px;
  border-radius: 10px;
  border: 1.2px solid var(--border-subtle);
  background: var(--bg-input);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ah-duration-btn.is-active {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.ah-time-window-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.ah-time-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ah-time-label {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ah-time-arrow {
  font-size: 0.90rem;
  color: var(--gold-primary);
  margin-top: 14px;
}

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

.ah-task-chip {
  font-size: 0.75rem;
  font-weight: 750;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.2px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ah-task-chip.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.65);
  color: var(--gold-primary);
  font-weight: 850;
}

.ah-pay-summary-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ah-summary-val {
  font-weight: 800;
  color: var(--text-primary);
}

.ah-total-row {
  padding-top: 6px;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  margin-top: 2px;
}

.ah-total-label {
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--gold-primary);
}

.ah-total-val {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.10rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.assign-hours-modal-bottom {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.ah-submit-btn {
  width: 100%;
  height: 44px;
  font-size: 0.90rem;
  font-weight: 850;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   Quick Assign Segmented Mode Bar
   ========================================================================== */

.qa-mode-switcher-bar {
  display: flex;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  padding: 4px;
  border-radius: 14px;
  border: 1.2px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 6px;
}

.qa-mode-tab-btn {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.qa-mode-tab-btn.is-active {
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #1a1205);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 850;
}

body.theme-dark .qa-mode-tab-btn.is-active {
  background: rgba(212, 175, 55, 0.25);
  color: #ffd875;
}

.calendar-agenda-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-agenda-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-agenda-event-item {
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.18s ease;
  width: 100%;
}

/* ==========================================================================
   Haute-Couture Event Profile Card (Pixel-Perfect from media_1790274757302.png)
   ========================================================================== */

.calendar-event-profile-card {
  container-type: inline-size;
  container-name: eventcard;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.2px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  padding: 16px 16px 14px 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(212, 175, 55, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.calendar-event-profile-card:hover {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.75);
}

/* Dark Mode Theme */
body.theme-dark .calendar-event-profile-card {
  background: linear-gradient(160deg, rgba(32, 28, 22, 0.80) 0%, rgba(20, 16, 12, 0.86) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

/* Gold Premium Theme */
body.theme-gold-premium .calendar-event-profile-card {
  border: 1.4px solid rgba(212, 175, 55, 0.55);
}

/* Light Paper Theme */
body.theme-light .calendar-event-profile-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* --- Row 1: Dedicated Responsive Title Area (Role-Differentiated) --- */
.event-card-title-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 0 10px 0;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  gap: 1.5px;
}

.event-card-title-row.is-admin-view,
.event-card-title-row.is-worker-view {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5px;
}

.calendar-event-profile-card .event-card-title,
.event-card-title {
  font-family: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  font-size: clamp(1.10rem, 4.5cqw, 1.52rem);
  font-weight: 900;
  color: #1a1205;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  letter-spacing: -0.35px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

.calendar-event-profile-card .event-card-type-primary {
  font-family: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  font-size: clamp(1.10rem, 4.5cqw, 1.50rem);
  font-weight: 900;
  color: #1a1205;
  line-height: 1.18;
  margin: 0;
  padding: 0;
  letter-spacing: -0.35px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

.calendar-event-profile-card .event-card-name-secondary {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.82rem, 3.2cqw, 0.94rem);
  font-weight: 700;
  color: #8c7c64;
  line-height: 1.22;
  margin: 0;
  padding: 0;
  letter-spacing: -0.15px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

body.theme-dark .calendar-event-profile-card .event-card-title,
body.theme-dark .calendar-event-profile-card .event-card-type-primary,
body.theme-dark .daily-rec-card .event-card-type-primary,
body.theme-dark .event-card-title {
  color: #ffffff;
}

body.theme-dark .calendar-event-profile-card .event-card-name-secondary,
body.theme-dark .daily-rec-card .event-card-name-secondary {
  color: rgba(255, 255, 255, 0.65);
}

body.theme-light .calendar-event-profile-card .event-card-title,
body.theme-light .calendar-event-profile-card .event-card-type-primary,
body.theme-light .daily-rec-card .event-card-type-primary,
body.theme-light .event-card-title {
  color: #0f172a;
}

body.theme-light .calendar-event-profile-card .event-card-name-secondary,
body.theme-light .daily-rec-card .event-card-name-secondary {
  color: #64748b;
}

@container eventcard (max-width: 350px) {
  .calendar-event-profile-card .event-card-title,
  .calendar-event-profile-card .event-card-type-primary {
    font-size: clamp(0.95rem, 4.2cqw, 1.30rem);
  }
  .calendar-event-profile-card .event-card-name-secondary {
    font-size: clamp(0.76rem, 3.0cqw, 0.88rem);
  }
}

/* Event Type Quick Selector Buttons (Edit & Add Modal) */
.btn-event-toggle-pill {
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  box-sizing: border-box;
}

.btn-event-toggle-pill:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.btn-event-toggle-pill.is-active {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, #fdf1cd 0%, #eac266 50%, #c89528 100%);
  color: #1a1205;
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.25);
  font-weight: 800;
}

/* --- Card Meta Row (Crew Badge on Left, Action Buttons on Right - Side by Side) --- */
.event-card-meta-row,
.event-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
}

/* Mint Green Crew / Status Pill Badge */
.event-card-crew-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d6f8ea;
  border: 1.5px solid #7de3b4;
  color: #0b784a;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 5px 11px 5px 9px;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.event-card-crew-badge svg {
  width: 13.5px;
  height: 13.5px;
  color: currentColor;
  flex-shrink: 0;
}

body.theme-dark .event-card-crew-badge {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

body.theme-light .event-card-crew-badge,
body.theme-gold-premium .event-card-crew-badge {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

/* Worker View Status Variants */
.event-card-crew-badge.is-assigned {
  background: #d6f8ea;
  border-color: #7de3b4;
  color: #0b784a;
}

body.theme-dark .event-card-crew-badge.is-assigned {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

body.theme-light .event-card-crew-badge.is-assigned,
body.theme-gold-premium .event-card-crew-badge.is-assigned {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.event-card-crew-badge.is-unassigned {
  background: rgba(148, 163, 184, 0.14);
  border: 1.5px solid rgba(148, 163, 184, 0.38);
  color: #64748b;
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.event-card-crew-badge.is-unassigned svg {
  width: 14px;
  height: 14px;
  stroke: #64748b;
}

body.theme-dark .event-card-crew-badge.is-unassigned {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.30);
  color: #94a3b8;
}

body.theme-dark .event-card-crew-badge.is-unassigned svg {
  stroke: #94a3b8;
}

body.theme-light .event-card-crew-badge.is-unassigned,
body.theme-gold-premium .event-card-crew-badge.is-unassigned {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.38);
  color: #64748b;
}

body.theme-light .event-card-crew-badge.is-unassigned svg,
body.theme-gold-premium .event-card-crew-badge.is-unassigned svg {
  stroke: #64748b;
}

/* Unassigned Event Profile Card Subtle Gray Accent */
.calendar-event-profile-card.is-unassigned-card {
  border-color: rgba(148, 163, 184, 0.30);
}

body.theme-dark .calendar-event-profile-card.is-unassigned-card {
  border-color: rgba(148, 163, 184, 0.22);
}

/* Top Right Action Buttons */
.event-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

/* Map Button: White Pearl Pill with Gold Outline */
.event-card-btn-map {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #caa14b;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #1a130b;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.16s ease;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-card-btn-map:hover {
  background: #fdfaf3;
  border-color: #b8860b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.2);
}

.event-card-btn-map svg {
  width: 13px;
  height: 13px;
  stroke: #1a130b;
}

body.theme-dark .event-card-btn-map {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.45);
  color: #ffffff;
}

body.theme-dark .event-card-btn-map svg {
  stroke: #f5d77f;
}

body.theme-light .event-card-btn-map {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

body.theme-light .event-card-btn-map svg {
  stroke: #475569;
}

/* Details Button: 3D Glossy Liquid Metallic Gold Pill */
.event-card-btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f2cb73 0%, #dea541 38%, #c58826 78%, #af7118 100%);
  border: 1px solid #9e6412;
  border-radius: 9999px;
  padding: 6px 15px;
  font-size: 0.86rem;
  font-weight: 850;
  color: #1a1104;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(175, 113, 24, 0.35), inset 0 1.5px 1px rgba(255, 255, 255, 0.85), inset 0 -1.5px 2px rgba(100, 55, 5, 0.35);
  transition: all 0.16s ease;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-card-btn-details:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(175, 113, 24, 0.48), inset 0 1.5px 1px rgba(255, 255, 255, 0.9), inset 0 -1.5px 2px rgba(100, 55, 5, 0.35);
}

.event-card-btn-details:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(175, 113, 24, 0.3), inset 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Horizontal Hairline Divider */
.event-card-divider {
  border: none;
  border-top: 1px solid #ebdcc5;
  margin: 11px 0 11px 0;
  width: 100%;
}

body.theme-dark .event-card-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-light .event-card-divider {
  border-top-color: #f1f5f9;
}

/* Bottom Logistics Schedule Row (Two Columns Side-by-Side) */
.event-card-schedule-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.event-card-time-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.event-card-clock-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #f9f4ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.event-card-clock-badge svg {
  width: 16px;
  height: 16px;
  stroke: #7a5212;
}

body.theme-dark .event-card-clock-badge {
  background: rgba(212, 175, 55, 0.14);
}

body.theme-dark .event-card-clock-badge svg {
  stroke: #f5d77f;
}

body.theme-light .event-card-clock-badge {
  background: #f8fafc;
}

body.theme-light .event-card-clock-badge svg {
  stroke: #64748b;
}

.event-card-time-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-card-time-label {
  font-size: 0.72rem;
  color: #8e8374;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
}

body.theme-dark .event-card-time-label {
  color: #94a3b8;
}

body.theme-light .event-card-time-label {
  color: #64748b;
}

.event-card-time-value {
  font-size: clamp(0.96rem, 3.8cqw, 1.14rem);
  font-weight: 850;
  color: #ba8115;
  line-height: 1.15;
  letter-spacing: -0.25px;
  white-space: nowrap;
}

body.theme-dark .event-card-time-value {
  color: #fbbf24;
}

body.theme-light .event-card-time-value {
  color: #b45309;
}

/* Hairline Vertical Divider Between Times */
.event-card-v-divider {
  width: 1px;
  height: 36px;
  background: #ebdcc5;
  margin: 0 12px;
  flex-shrink: 0;
}

body.theme-dark .event-card-v-divider {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-light .event-card-v-divider {
  background: #e2e8f0;
}

@container eventcard (max-width: 340px) {
  .calendar-event-profile-card {
    padding: 16px 12px 14px 12px;
  }
  .event-card-time-block {
    gap: 6px;
  }
  .event-card-time-value {
    font-size: 0.96rem;
  }
  .event-card-time-label {
    font-size: 0.66rem;
  }
  .event-card-clock-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }
  .event-card-clock-badge svg {
    width: 14px;
    height: 14px;
  }
  .event-card-v-divider {
    margin: 0 6px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .calendar-event-profile-card {
    padding: 15px 12px 13px 12px;
    border-radius: 22px;
  }
  .event-card-title-row {
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .calendar-event-profile-card .event-card-title,
  .calendar-event-profile-card .event-card-type-primary,
  .event-card-title {
    font-size: clamp(1.00rem, 4.4vw, 1.40rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .calendar-event-profile-card .event-card-name-secondary {
    font-size: clamp(0.78rem, 3.2vw, 0.90rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .event-card-meta-row {
    gap: 6px;
    min-width: 0;
  }
  .event-card-crew-badge {
    padding: 4px 8px 4px 7px;
    font-size: 0.69rem;
    gap: 4px;
    letter-spacing: 0.1px;
    flex-shrink: 0;
  }
  .event-card-crew-badge svg {
    width: 12px;
    height: 12px;
  }
  .event-card-actions {
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .event-card-btn-map {
    padding: 4.5px 9px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .event-card-btn-map svg {
    width: 11.5px;
    height: 11.5px;
  }
  .event-card-btn-details {
    padding: 5px 11px;
    font-size: 0.80rem;
  }
  .event-card-time-block {
    gap: 8px;
  }
  .event-card-time-value {
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -0.2px;
  }
  .event-card-time-label {
    font-size: 0.70rem;
    margin-bottom: 1px;
  }
  .event-card-clock-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .event-card-clock-badge svg {
    width: 16px;
    height: 16px;
  }
  .event-card-v-divider {
    margin: 0 8px;
    height: 32px;
  }
}

.calendar-agenda-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.calendar-agenda-notes-preview {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-agenda-note-item {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
}

body.theme-dark .calendar-agenda-note-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.15);
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Calendar Event Details & Dedicated Edit Pop-Out Modals */
.calendar-event-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 8, 5, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100050 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeInModal 0.22s ease-out;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.calendar-event-modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: linear-gradient(168deg, #ffffff 0%, #faf8f3 55%, #f6f0e4 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 26px;
  box-shadow: 0 28px 75px rgba(18, 14, 8, 0.42), 0 0 35px rgba(212, 175, 55, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
  animation: premiumPopOut 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
  transform-origin: center center;
  position: relative;
}

.calendar-event-modal-card > * {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .calendar-event-modal-backdrop {
    padding: 12px 10px;
    align-items: center;
  }
  .calendar-event-modal-card {
    max-height: 88vh;
    max-height: 88dvh;
    padding: 18px 16px 16px;
    gap: 13px;
    border-radius: 22px;
  }
}

body.theme-dark .calendar-event-modal-card,
html.theme-dark .calendar-event-modal-card,
html[data-theme="dark"] .calendar-event-modal-card {
  background: linear-gradient(168deg, #1c1f2b 0%, #151722 55%, #0f111a 100%);
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calendar-theme-toggle-btn {
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1;
  padding: 0;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.calendar-theme-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

.calendar-theme-toggle-btn:active {
  transform: scale(0.92);
}

body.theme-dark .calendar-theme-toggle-btn,
html.theme-dark .calendar-theme-toggle-btn,
html[data-theme="dark"] .calendar-theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  color: #f5d77f;
}

.calendar-event-empty-card {
  text-align: center;
}

.calendar-event-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.calendar-event-modal-date {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.calendar-event-modal-close {
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.18s ease;
}

.calendar-event-modal-close:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.calendar-event-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-empty-day-body {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.calendar-empty-day-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.calendar-empty-day-title {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--gold-primary);
}

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

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes premiumPopOut {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(18px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   Calendar Event Cards Deck & Gesture Carousel
   ========================================================================== */
.calendar-card-nav-bar {
  display: none !important;
}

body.theme-dark .calendar-card-nav-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
}

.calendar-card-nav-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input, #ffffff);
  color: var(--gold-primary, #b8860b);
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

.calendar-card-nav-btn:hover:not(:disabled) {
  background: var(--gold-primary, #d4af37);
  color: #ffffff;
  border-color: var(--gold-primary, #d4af37);
  transform: scale(1.06);
}

.calendar-card-nav-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.calendar-card-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: transparent;
}

body.theme-dark .calendar-card-nav-btn {
  background: #23252d;
  border-color: rgba(212, 175, 55, 0.25);
  color: #dfba53;
}

body.theme-dark .calendar-card-nav-btn:hover:not(:disabled) {
  background: #d4af37;
  color: #111;
}

.calendar-card-indicator-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.calendar-card-counter-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.calendar-card-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.calendar-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--border-subtle, #d1d5db);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.calendar-card-dot.is-active {
  width: 22px;
  background: linear-gradient(135deg, #d4af37, #aa771c);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
}

body.theme-dark .calendar-card-dot {
  background: rgba(255, 255, 255, 0.2);
}

body.theme-dark .calendar-card-dot.is-active {
  background: linear-gradient(135deg, #dfba53, #996e1b);
}

/* Quick Event Chips Strip */
.calendar-card-chips-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px 0;
  scrollbar-width: none;
}

.calendar-card-chips-strip::-webkit-scrollbar {
  display: none;
}

.calendar-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card, #fdfcf9);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.calendar-card-chip .chip-num {
  font-size: 0.66rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-card-chip .chip-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calendar-card-chip.is-active {
  border-color: var(--gold-primary, #d4af37);
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-primary, #b8860b);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.calendar-card-chip.is-active .chip-num {
  background: var(--gold-primary, #d4af37);
  color: #ffffff;
}

body.theme-dark .calendar-card-chip {
  background: #20222a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

body.theme-dark .calendar-card-chip .chip-num {
  background: rgba(255, 255, 255, 0.12);
}

body.theme-dark .calendar-card-chip.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: #dfba53;
  color: #dfba53;
}

body.theme-dark .calendar-card-chip.is-active .chip-num {
  background: #dfba53;
  color: #111;
}

/* Cards Viewport & Animated Track */
.calendar-cards-deck-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  margin: 2px 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
  transition: height 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.calendar-cards-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

.calendar-card-slide {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1px;
}

/* Collapsible Day Notes & Extras Drawer */
.calendar-card-extras-drawer {
  background: var(--bg-card, #fbfaf6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 4px;
  transition: border-color 0.2s ease;
}

body.theme-dark .calendar-card-extras-drawer {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.2);
}

.calendar-card-extras-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.calendar-card-extras-header:hover {
  background: rgba(212, 175, 55, 0.08);
}

.calendar-card-extras-header .extras-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.calendar-card-extras-header.is-open .extras-chevron {
  transform: rotate(180deg);
}

.calendar-card-extras-content {
  padding: 0 14px 14px 14px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeInModal 0.2s ease-out;
}

/* ==========================================================================
   3D Horizontal Card Swipe/Carousel Component (Day Event Deck)
   ========================================================================== */

.calendar-deck-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #faf7f0;
  background-image:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.5) 0%, rgba(212, 175, 55, 0.14) 45%, rgba(18, 14, 8, 0.55) 100%),
    url('../images/gold_theme_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeInModal 0.22s ease-out;
  touch-action: pan-y;
}

body.theme-dark .calendar-deck-modal-backdrop {
  background-color: #0d0f14;
  background-image:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.16) 0%, rgba(8, 10, 14, 0.82) 55%, #080a0e 100%),
    url('../images/gold_theme_bg.jpg');
}

body.theme-light .calendar-deck-modal-backdrop {
  background-color: #f8f9fa;
  background-image: radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.08) 0%, rgba(248, 249, 250, 0.92) 65%, #f8f9fa 100%);
}

.calendar-deck-modal-container {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  padding: calc(env(safe-area-inset-top, 14px) + 8px) 0 calc(env(safe-area-inset-bottom, 14px) + 12px) 0;
  box-sizing: border-box;
}

.calendar-deck-carousel-viewport {
  width: 100%;
  flex: 1;
  height: 100%;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.calendar-deck-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-deck-day-card {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  margin: auto 0;
  width: min(390px, calc(100vw - 44px));
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 25px rgba(212, 175, 55, 0.18);
  padding: 16px 16px 20px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform, opacity;
  scrollbar-width: none;
}

.calendar-deck-day-card::-webkit-scrollbar {
  display: none;
}

body.theme-dark .calendar-deck-day-card {
  background: #171821;
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.72), 0 0 25px rgba(212, 175, 55, 0.2);
}

/* Card Header & Calendar Badge */
.calendar-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle, #f0ede6);
  flex-shrink: 0;
}

.calendar-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.calendar-card-icon-badge {
  width: 38px;
  height: 40px;
  min-width: 38px;
  border-radius: 9px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.cal-badge-binder {
  height: 11px;
  background: linear-gradient(135deg, #df3a3a, #b91c1c);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px;
}

.cal-badge-ring {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cal-badge-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.cal-badge-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 850;
  font-size: 1.05rem;
  color: #111827;
  line-height: 1;
}

.calendar-card-header-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5px;
  min-width: 0;
  flex: 1;
}

.calendar-card-weekday-kicker {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary, #b8860b);
  line-height: 1.1;
}

body.theme-dark .calendar-card-weekday-kicker {
  color: var(--gold-primary, #dfba53);
}

body.theme-gold-premium .calendar-card-weekday-kicker {
  color: #8a5a00;
}

.calendar-card-date-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(1.05rem, 3.8vw, 1.18rem);
  font-weight: 750;
  color: var(--text-primary, #1c1917);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

body.theme-dark .calendar-card-date-title {
  color: #ffffff;
}

body.theme-gold-premium .calendar-card-date-title {
  color: #1a1205;
}

.calendar-card-event-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #c2410c);
  color: #ffffff;
  letter-spacing: 0.03em;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.35);
  border: none;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.calendar-card-event-badge:hover {
  filter: brightness(1.1);
}

.calendar-card-event-badge:active {
  transform: scale(0.96);
}

.calendar-card-event-badge.is-empty {
  display: none;
}

.calendar-card-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 6px;
}

.calendar-card-close-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1.8px solid #d4af37;
  background: linear-gradient(135deg, #ffffff 0%, #fdf5e2 50%, #f9e9c5 100%);
  color: #6b4703;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.25), 0 0 0 1.5px rgba(212, 175, 55, 0.2), inset 0 1.5px 0 #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.calendar-card-close-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fbf0d3 100%);
  border-color: #b8860b;
  color: #4a3102;
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.38);
}

.calendar-card-close-btn:active {
  transform: scale(0.92);
}

.calendar-card-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

body.theme-gold-premium .calendar-card-close-btn {
  background: linear-gradient(135deg, #ffffff 0%, #fdf5e2 50%, #f9e9c5 100%);
  border-color: #d4af37;
  color: #6b4703;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.25), 0 0 0 1.5px rgba(212, 175, 55, 0.2), inset 0 1.5px 0 #ffffff;
}

body.theme-dark .calendar-card-close-btn {
  background: linear-gradient(135deg, rgba(48, 40, 28, 0.95) 0%, rgba(26, 20, 14, 0.95) 100%);
  border-color: rgba(212, 175, 55, 0.6);
  color: #f7da85;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 0 1.5px rgba(212, 175, 55, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

body.theme-dark .calendar-card-close-btn:hover {
  background: linear-gradient(135deg, rgba(65, 54, 38, 0.95) 0%, rgba(42, 34, 22, 0.95) 100%);
  border-color: #ffd875;
  color: #ffffff;
}

body.theme-light .calendar-card-close-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f6f3eb 100%);
  border-color: rgba(200, 150, 40, 0.4);
  color: #6b4703;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 0 1.5px rgba(200, 150, 40, 0.15), inset 0 1px 0 #ffffff;
}

/* Card Section Header */
.card-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.card-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gold-diamond {
  color: #c68a18;
  font-size: 0.75rem;
  line-height: 1;
}

.card-section-title {
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a87614;
}

body.theme-dark .card-section-title {
  color: #dfba53;
}

.btn-card-edit, .btn-card-assign {
  padding: 2px 9px;
  font-size: 0.69rem;
  font-weight: 750;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, #e5e7eb);
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #1f2937);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-card-edit:hover, .btn-card-assign:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary, #d4af37);
  color: var(--gold-primary, #b8860b);
}

body.theme-dark .btn-card-edit, body.theme-dark .btn-card-assign {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

/* Bento Tiles in Event Section */
.card-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-bento-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fdfcf9;
  border: 1px solid var(--border-subtle, #f0ede6);
  box-sizing: border-box;
}

body.theme-dark .card-bento-tile {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-bento-tile.is-dashed {
  border: 1.5px dashed rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.02);
  cursor: pointer;
  transition: all 0.18s ease;
}

.card-bento-tile.is-dashed:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-primary, #d4af37);
}

body.theme-dark .card-bento-tile.is-dashed {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.03);
}

.bento-badge-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.28);
}

.bento-badge-pin {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.28);
}

.bento-badge-phone {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(13, 148, 136, 0.28);
}

.bento-badge-church {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(124, 58, 237, 0.28);
}

.bento-field-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.bento-field-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8e8070;
}

body.theme-dark .bento-field-label {
  color: #9ca3af;
}

.bento-field-value {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark .bento-field-value {
  color: #f3f4f6;
}

.bento-field-action-text {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--gold-primary, #b8860b);
  margin-top: 1px;
}

body.theme-dark .bento-field-action-text {
  color: #dfba53;
}

.bento-field-subvalue {
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--text-muted, #6b7280);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark .bento-field-subvalue {
  color: #9ca3af;
}

.card-bento-tile.is-interactive {
  cursor: pointer;
  transition: all 0.18s ease;
}

.card-bento-tile.is-interactive:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.35);
}

/* Card Address Tile (Spacious, Well-Organized & Responsive) */
.card-bento-tile.card-address-tile,
.bento-tile.card-address-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  width: 100%;
}

.card-bento-tile.card-address-tile:hover,
.bento-tile.card-address-tile:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-address-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.card-address-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 1px;
  width: 100%;
}

.card-address-venue {
  font-family: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  line-height: 1.3;
  word-break: break-word;
}

.card-address-text {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #786b59;
  line-height: 1.35;
  word-break: break-word;
}

.card-address-footer {
  padding-top: 2px;
  width: 100%;
}

.card-address-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 10px;
  color: var(--gold-primary, #926a10);
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(212, 175, 55, 0.08);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.18s ease;
}

.card-address-nav-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.55);
  color: #7a580a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.16);
}

.card-address-nav-btn:active {
  transform: scale(0.985);
  background: rgba(212, 175, 55, 0.25);
}

.card-address-nav-arrow {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1;
}

.card-address-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary, #b8860b);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

body.theme-dark .card-bento-tile.card-address-tile,
body.theme-dark .bento-tile.card-address-tile {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .card-bento-tile.card-address-tile:hover,
body.theme-dark .bento-tile.card-address-tile:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.45);
}

body.theme-dark .card-address-venue {
  color: #f3f4f6;
}

body.theme-dark .card-address-text {
  color: #d1d5db;
}

body.theme-dark .card-address-nav-btn {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.4);
  color: #f3d47d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

body.theme-dark .card-address-nav-btn:hover {
  background: rgba(212, 175, 55, 0.26);
  border-color: rgba(212, 175, 55, 0.6);
  color: #fff3c4;
}

body.theme-dark .card-address-nav-btn:active {
  background: rgba(212, 175, 55, 0.32);
}

body.theme-dark .card-address-map-btn {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: #f3d47d;
}

/* Schedule 2-Column Grid */
.card-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.card-schedule-box {
  padding: 8px 6px;
  text-align: center;
  border-radius: 13px;
  background: #fdfcf9;
  border: 1px solid var(--border-subtle, #f0ede6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.theme-dark .card-schedule-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-schedule-time {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--text-primary, #111827);
  margin-top: 2px;
}

.card-schedule-time.gold-val {
  color: var(--gold-primary, #b8860b);
}

body.theme-dark .card-schedule-time.gold-val {
  color: #dfba53;
}

/* Single Schedule Box (Work Start Time only) */
.card-schedule-box-single {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fdfcf9;
  border: 1px solid var(--border-subtle, #f0ede6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.theme-dark .card-schedule-box-single {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-schedule-box-single .card-schedule-time {
  font-size: 1.12rem;
  font-weight: 850;
  color: var(--text-primary, #111827);
  margin-top: 3px;
  letter-spacing: -0.01em;
}

body.theme-dark .card-schedule-box-single .card-schedule-time {
  color: #f3f4f6;
}

/* Redesigned Bigger Team List & Cards with Avatars */
.card-team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.card-team-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  gap: 12px;
  transition: all 0.15s ease;
}

.card-team-member-row.is-interactive {
  cursor: pointer;
}

.card-team-member-row.is-interactive:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12);
}

body.theme-dark .card-team-member-row {
  background: #1c1e27;
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.theme-dark .card-team-member-row.is-interactive:hover {
  border-color: rgba(212, 175, 55, 0.65);
}

.card-team-member-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.card-team-member-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-team-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.card-team-member-initials {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--gold-primary, #b8860b);
  letter-spacing: 0.02em;
}

body.theme-dark .card-team-member-initials {
  color: #f3d47d;
}

.card-team-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-team-member-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark .card-team-member-name {
  color: #f9fafb;
}

.card-team-member-note {
  font-size: 0.74rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

body.theme-dark .card-team-member-note {
  color: #9ca3af;
}

.card-team-member-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary, #b8860b);
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  white-space: nowrap;
}

body.theme-dark .card-team-member-time-badge {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: #f3d47d;
}

.card-team-member-row.is-me {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.55);
}

body.theme-dark .card-team-member-row.is-me {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Crew Chips */
.card-crew-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-crew-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

body.theme-dark .card-crew-chip {
  background: #20222b;
  border-color: rgba(212, 175, 55, 0.3);
}

.crew-chip-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.crew-chip-name {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--text-primary, #111827);
}

.crew-chip-time {
  font-size: 0.74rem;
  font-weight: 700;
  color: #a17013;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

body.theme-dark .crew-chip-time {
  color: #dfba53;
}

.crew-chip-note-tag {
  font-size: 0.72rem;
  color: var(--gold-primary, #b8860b);
  font-weight: 700;
  cursor: pointer;
  background: rgba(212, 175, 55, 0.10);
  padding: 2px 7px;
  border-radius: 6px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: all 0.15s ease;
}

.crew-chip-note-tag:hover {
  background: rgba(212, 175, 55, 0.18);
}

body.theme-dark .crew-chip-note-tag {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
  color: #dfba53;
}

.crew-chip-remove {
  border: none;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.crew-chip-remove:hover {
  color: #ef4444;
}

/* Notes Dashed Action */
.card-notes-dashed {
  padding: 8px 12px;
  text-align: center;
  border-radius: 13px;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.02);
  color: var(--gold-primary, #b8860b);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
}

.card-notes-dashed:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-primary, #d4af37);
}

body.theme-dark .card-notes-dashed {
  color: #dfba53;
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.03);
}

.card-notes-content {
  padding: 8px 12px;
  border-radius: 13px;
  background: #fdfcf9;
  border: 1px solid var(--border-subtle, #f0ede6);
  font-size: 0.80rem;
  color: var(--text-secondary, #4b5563);
  line-height: 1.45;
  white-space: pre-wrap;
}

body.theme-dark .card-notes-content {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

/* Calendar Deck Card: Minimized Post-Meeting Notes (Hand & Voice) */
.card-notes-voice-tile {
  padding: 9px 12px;
  gap: 10px;
  cursor: pointer;
  align-items: center;
  transition: all 0.18s ease;
}

.card-notes-voice-tile:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.35);
}

.card-notes-voice-tile .daily-rec-play-btn {
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.card-notes-voice-tile .daily-rec-play-btn:active {
  transform: scale(0.92);
}

.card-notes-voice-tile .daily-rec-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

body.theme-dark .card-notes-voice-tile .daily-rec-progress-track {
  background: rgba(255, 255, 255, 0.15);
}

.card-notes-voice-tile .daily-rec-progress-fill {
  height: 100%;
  background: var(--gold-primary, #d4af37);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.card-notes-hand-tile {
  padding: 10px 12px;
  gap: 10px;
  cursor: pointer;
  align-items: flex-start;
  transition: all 0.18s ease;
}

.card-notes-hand-tile:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.35);
}

/* Day Notes Drawer Accordion */
.card-day-notes-drawer {
  background: #ffffff;
  border: 1px solid var(--border-subtle, #f0ede6);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  margin-top: 2px;
}

body.theme-dark .card-day-notes-drawer {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.2);
}

.card-day-notes-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.card-day-notes-header:hover {
  background: rgba(212, 175, 55, 0.06);
}

.card-day-notes-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-day-notes-title {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--text-primary, #111827);
}

.card-day-notes-badge {
  font-size: 0.64rem;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 999px;
  background: #c2410c;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.card-day-notes-chevron {
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
  transition: transform 0.25s ease;
}

.card-day-notes-header.is-open .card-day-notes-chevron {
  transform: rotate(180deg);
}

.card-day-notes-content {
  padding: 0 12px 12px 12px;
  border-top: 1px solid var(--border-subtle, #f0ede6);
  display: none;
  animation: fadeInModal 0.2s ease-out;
}

/* Indicators (Bottom Pagination Dots) */
.calendar-deck-pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  z-index: 20;
}

.calendar-deck-page-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.18, 0.95, 0.28, 1.05);
}

.calendar-deck-page-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
}

.calendar-deck-page-dot.is-active {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dfba53, #b8860b);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.65);
}


/* Event Card in Day Sheet */
.calendar-event-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-left: 4px solid var(--gold-primary);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.event-card-header .event-card-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.event-card-client {
  font-size: 0.80rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.event-card-date-badge {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--gold-primary);
  white-space: nowrap;
}

.event-card-time-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.event-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: center;
  font-size: 0.72rem;
  margin: 10px 0;
}

.timeline-slot {
  display: flex;
  flex-direction: column;
}

.timeline-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 800;
}

.timeline-val {
  color: var(--text-primary);
  font-size: 0.74rem;
  margin-top: 2px;
}

.timeline-val.strike {
  color: var(--accent-warning);
}

.event-logistics-box {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 8px;
}

.worker-personal-shift-banner {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.worker-personal-shift-banner.assigned {
  background: var(--gold-badge-bg);
  color: var(--text-primary);
  border: 1px solid var(--gold-primary);
}

.worker-personal-shift-banner.unassigned {
  background: var(--bg-card);
  color: var(--text-muted);
}

.event-admin-roster-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.assigned-crew-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.crew-pill-time {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.theme-dark .crew-pill-time {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.crew-pill-time.is-custom {
  background: rgba(212, 175, 55, 0.20) !important;
  color: var(--gold-primary) !important;
  font-weight: 800;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.crew-pill-time:hover {
  filter: brightness(1.1);
  transform: translateY(-0.5px);
}

.btn-remove-crew {
  background: transparent;
  border: none;
  color: var(--accent-danger);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0 2px;
  line-height: 1;
}

.btn-remove-crew:hover {
  transform: scale(1.2);
}

.crew-worker-select-item {
  user-select: none;
}

.crew-worker-select-item:hover {
  border-color: rgba(212, 175, 55, 0.4) !important;
}

.crew-worker-select-item:has(input[type="checkbox"]:checked) {
  border-color: rgba(212, 175, 55, 0.65) !important;
  background: rgba(212, 175, 55, 0.08) !important;
}

body.theme-dark .crew-worker-select-item:has(input[type="checkbox"]:checked) {
  background: rgba(212, 175, 55, 0.14) !important;
  border-color: rgba(212, 175, 55, 0.75) !important;
}

.event-owner-private-notes {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(212, 175, 55, 0.08);
  border-left: 2.5px solid var(--gold-primary);
  font-size: 0.74rem;
  color: var(--text-primary);
  border-radius: 4px;
}

/* ==========================================================================
   AI VOICE SCRIBE & BILINGUAL TRANSLATION SUITE (Gemini Multimodal Flash)
   ========================================================================== */

.scribe-card-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scribe-transcript-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}

.theme-light .scribe-transcript-box {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(180, 140, 50, 0.28);
}

.scribe-translation-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}

.theme-light .scribe-translation-box {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.38);
}

.scribe-summary-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1.2px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}

.scribe-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.scribe-box-label {
  font-size: 0.70rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.scribe-box-lang-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.scribe-box-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  word-break: break-word;
}

.scribe-box-text.verbatim {
  font-style: italic;
  color: var(--text-secondary);
}

.scribe-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid var(--border-subtle);
}

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

.scribe-spec-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scribe-spec-val {
  font-weight: 800;
  color: var(--text-primary);
}

.live-speech-ticker {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  font-size: 0.80rem;
  color: var(--text-primary);
  max-width: 420px;
  width: 100%;
  animation: pulseTicker 2s infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes pulseTicker {
  0% { border-color: rgba(212, 175, 55, 0.3); }
  50% { border-color: rgba(212, 175, 55, 0.7); }
  100% { border-color: rgba(212, 175, 55, 0.3); }
}

.scribe-processing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--gold-primary);
}

.scribe-spinner-ring {
  width: 18px;
  height: 18px;
  border: 2.2px solid rgba(212, 175, 55, 0.25);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spinScribe 0.8s linear infinite;
}

.scribe-recovered-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--gold-primary);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.22);
}

.scribe-recovered-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scribe-recovered-title {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.scribe-recovered-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.scribe-daemon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-success);
  font-size: 0.68rem;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 6px;
}

.scribe-daemon-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: pulseRecording 1.5s infinite;
}


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

/* Scribe Bottom Confirmation & Done Action Suite */
.scribe-done-action-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 8px 22px;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scribe-done-action-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.55);
}

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

.scribe-bottom-confirmation-card {
  margin-top: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid var(--gold-primary);
  background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideUpFade 0.3s ease-out;
}

.scribe-confirm-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.scribe-confirm-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scribe-confirm-send-btn {
  width: 100%;
  padding: 14px 20px;
  font-weight: 850;
  font-size: 0.98rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.38);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scribe-confirm-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
}

.scribe-confirm-send-btn:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Global Floating Recording Pill (Active across pages & background)
   ========================================================================== */
.global-recording-pill {
  position: fixed;
  top: max(14px, env(safe-area-inset-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 16px;
  background: rgba(18, 20, 28, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--gold-primary, #d4af37);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(212, 175, 55, 0.3);
  animation: slideDownFadePill 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 92vw;
}

[data-theme="theme-light"] .global-recording-pill,
[data-theme="theme-gold-premium"] .global-recording-pill {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08);
}

@keyframes slideDownFadePill {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.global-recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-danger, #ef4444);
  box-shadow: 0 0 10px #ef4444;
  animation: recordDotPulse 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

.global-recording-dot.is-paused {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: none;
}

@keyframes recordDotPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
  100% { transform: scale(1); opacity: 1; }
}

.global-recording-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

.global-recording-time {
  font-family: monospace;
  letter-spacing: 0.02em;
}

.global-recording-done-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 850;
  border-radius: 999px;
  background: linear-gradient(135deg, #fae298 0%, #d4af37 60%, #b8860b 100%);
  color: #1a1306;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.global-recording-done-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Factor 3b: Daily Notes & End-of-Day Confirmation Architecture
   ========================================================================== */

.daily-notes-section {
  width: 100%;
  max-width: 540px;
  margin: 10px auto 30px auto;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.daily-section-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  box-sizing: border-box;
  width: 100%;
}

.daily-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-section-title {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.daily-section-count-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.35);
  white-space: nowrap;
}

.daily-quick-add-btn {
  padding: 6px 12px;
  font-size: 0.80rem;
  font-weight: 800;
  border-radius: 10px;
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  background: var(--bg-card);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.daily-quick-add-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.daily-day-card {
  padding: 18px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.2s ease;
}

.daily-day-card.is-today {
  border-color: var(--gold-primary);
}

.daily-day-card.is-confirmed {
  border-color: rgba(34, 197, 94, 0.45);
}

.theme-gold-premium .daily-day-card {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(180, 150, 90, 0.14);
}

.daily-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-day-date-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-day-date-icon {
  font-size: 1.35rem;
}

.daily-day-date-text {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
}

.daily-day-status-pill {
  padding: 4px 9px;
  font-size: 0.70rem;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.daily-day-status-pill.status-in-progress {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.daily-day-status-pill.status-confirmed {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.theme-gold-premium .daily-day-status-pill.status-confirmed {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.3);
}

.daily-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-note-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.15s ease;
}

.daily-note-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.theme-gold-premium .daily-note-item {
  background: rgba(250, 247, 240, 0.85);
  border-color: rgba(212, 175, 55, 0.22);
}

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

.daily-note-time-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.daily-note-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.daily-note-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.85rem;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s ease;
}

.daily-note-delete-btn:hover {
  color: var(--accent-danger);
}

.daily-note-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.daily-mini-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.theme-gold-premium .daily-mini-player {
  background: rgba(212, 175, 55, 0.08);
}

.daily-mini-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fae298, #d4af37);
  color: #1a1306;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
}

.daily-mini-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.theme-gold-premium .daily-mini-progress-track {
  background: rgba(0, 0, 0, 0.12);
}

.daily-mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.daily-mini-duration {
  font-size: 0.70rem;
  font-family: monospace;
  font-weight: 750;
  color: var(--text-secondary);
}

.btn-confirm-end-of-day {
  width: 100%;
  padding: 14px 20px;
  font-weight: 850;
  font-size: 0.96rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdf1cd 0%, #eac266 45%, #c89528 100%);
  color: #1a1205;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-confirm-end-of-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.48);
}

.daily-recordings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.daily-rec-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1.2px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.daily-rec-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15);
}

.theme-gold-premium .daily-rec-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow: 0 4px 14px rgba(180, 150, 90, 0.12);
}

.theme-dark .daily-rec-card {
  background: #1c1a17;
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.daily-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wedding-card-couple-title {
  text-align: center !important;
  color: var(--text-primary, #1a1205);
}

body.theme-dark .wedding-card-couple-title {
  color: #f5eedb !important;
}

body.theme-gold-premium .wedding-card-couple-title {
  color: #1a1205 !important;
}

.daily-rec-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.daily-rec-num {
  font-weight: 850;
  color: var(--gold-primary);
  letter-spacing: 0.01em;
}

.theme-gold-premium .daily-rec-num {
  color: #a37a1c;
}

.daily-rec-dot {
  color: var(--text-muted);
  font-size: 0.70rem;
  opacity: 0.5;
}

.daily-rec-date {
  font-weight: 750;
  color: var(--text-primary);
}

.daily-rec-time {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.daily-rec-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  line-height: 1;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.daily-rec-del-btn:hover,
.daily-rec-del-btn:active {
  color: var(--accent-danger, #ef4444);
  background: rgba(239, 68, 68, 0.12);
}

.daily-rec-audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.theme-dark .daily-rec-audio-row {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(212, 175, 55, 0.2);
}

.daily-rec-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fae298, #d4af37);
  color: #1a1306;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
  transition: transform 0.12s ease;
}

.daily-rec-play-btn:active {
  transform: scale(0.92);
}

.daily-rec-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.theme-dark .daily-rec-progress-track {
  background: rgba(255, 255, 255, 0.15);
}

.daily-rec-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.daily-rec-duration {
  font-size: 0.70rem;
  font-family: monospace;
  font-weight: 750;
  color: var(--text-secondary);
}

.daily-top-add-box {
  display: none !important;
}

.daily-quick-add-btn {
  display: none !important;
}

.daily-rec-card.is-confirmed {
  border-color: rgba(34, 197, 94, 0.45);
}

.daily-rec-top-note {
  font-size: 0.80rem;
  line-height: 1.35;
  color: var(--text-primary);
  padding: 5px 9px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
  border-left: 2.5px solid var(--gold-primary);
  margin: 2px 0;
  word-break: break-word;
}

.theme-dark .daily-rec-top-note {
  background: rgba(212, 175, 55, 0.12);
}

.daily-rec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  gap: 8px;
}

.daily-rec-footer-left,
.daily-rec-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-rec-note-action {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--gold-primary);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-rec-note-action:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
}

.btn-rec-note-action.is-editing {
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.daily-rec-inline-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  margin-top: 4px;
  box-sizing: border-box;
  width: 100%;
}

.theme-dark .daily-rec-inline-editor {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.25);
}

.daily-rec-inline-input {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  padding: 4px 4px;
  box-sizing: border-box;
}

.daily-rec-inline-input::placeholder {
  color: var(--text-muted);
}

.daily-rec-inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-rec-inline-save {
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #fae298, #d4af37);
  color: #1a1306;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.btn-rec-inline-cancel {
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.theme-dark .btn-rec-inline-cancel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-rec-confirm {
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(135deg, #fdf1cd 0%, #eac266 50%, #c89528 100%);
  color: #1a1205;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
  transition: transform 0.12s ease;
}

.btn-rec-confirm:active {
  transform: scale(0.95);
}

.rec-confirmed-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-sizing: border-box;
}

.rec-confirmed-text {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-success);
}

.daily-rec-text {
  display: none !important;
}

.daily-confirmed-bar {
  display: none !important;
}

.btn-confirm-end-of-day {
  display: none !important;
}

.daily-empty-placeholder {
  display: none !important;
}

.daily-archive-item {
  border-radius: 16px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.daily-archive-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.daily-archive-item.is-open {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

body.theme-gold-premium .daily-archive-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 4px 14px rgba(180, 140, 60, 0.10);
}

body.theme-gold-premium .daily-archive-item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 18px rgba(180, 140, 60, 0.15);
}

body.theme-gold-premium .daily-archive-item.is-open {
  border-color: var(--gold-primary, #b8860b);
  box-shadow: 0 6px 20px rgba(180, 140, 60, 0.18);
}

body.theme-dark .daily-archive-item {
  background: #1e1e24;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.daily-archive-header-btn {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease;
}

.daily-archive-header-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.daily-archive-header-btn:active {
  transform: scale(0.995);
}

body.theme-dark .daily-archive-header-btn:hover {
  background: rgba(255, 255, 255, 0.03);
}

.daily-archive-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.daily-archive-status-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.daily-archive-status-badge.is-confirmed {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

body.theme-gold-premium .daily-archive-status-badge.is-confirmed {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.32);
}

body.theme-dark .daily-archive-status-badge.is-confirmed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.daily-archive-status-badge.is-pending {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary, #b8860b);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.daily-archive-date-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.daily-archive-date-text {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

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

.daily-archive-count-badge {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary, #52525b);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.07));
  line-height: 1.3;
}

body.theme-gold-premium .daily-archive-count-badge {
  background: rgba(212, 175, 55, 0.12);
  color: #85580a;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

body.theme-dark .daily-archive-count-badge {
  background: rgba(255, 255, 255, 0.07);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.daily-archive-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #9ca3af);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
  flex-shrink: 0;
}

.daily-archive-chevron svg {
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.daily-archive-item.is-open .daily-archive-chevron {
  transform: rotate(180deg);
  color: var(--gold-primary, #b8860b);
}

body.theme-gold-premium .daily-archive-chevron {
  color: #92753a;
}

.daily-archive-body {
  padding: 0 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2px;
  padding-top: 12px;
}

/* Event Type Quick Toggles & Church Bubble */
.btn-event-toggle {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 750;
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-event-toggle:active {
  transform: scale(0.96);
}

.btn-event-toggle.is-active {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, #fdf1cd 0%, #eac266 50%, #c89528 100%);
  color: #1a1205;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
  font-weight: 850;
}

.btn-add-church-bubble {
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 750;
  border-radius: 20px;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-add-church-bubble:active {
  transform: scale(0.96);
  background: rgba(212, 175, 55, 0.18);
}

/* ==========================================================================
   Expenses & Worker Receipts Luxury UI Styling
   ========================================================================== */
.request-breakdown-subline {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.request-receipts-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 237, 0.80) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(184, 145, 37, 0.12), inset 0 1.5px 2px #ffffff;
}

body.theme-dark .request-receipts-card {
  background: linear-gradient(135deg, rgba(28, 33, 46, 0.88) 0%, rgba(17, 20, 28, 0.78) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.12);
}

body.theme-light .request-receipts-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), inset 0 1px 1px #ffffff;
}

body.theme-gold-premium .request-receipts-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 249, 240, 0.88) 100%);
  border: 1px solid rgba(212, 175, 55, 0.40);
  box-shadow: 0 10px 28px rgba(184, 145, 37, 0.16), inset 0 1.5px 2px #ffffff;
}

/* ==========================================================================
   Haute Couture Flagship Invoice Card
   ========================================================================== */
.invoice-hub-card {
  position: relative;
  cursor: pointer;
  border-radius: 24px;
  padding: 16px 18px 15px 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  
  /* Multi-layer luxury ivory & gold finish matching reference */
  background: linear-gradient(180deg, #FBF8F2 0%, #FAF5EB 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 
    0 10px 28px -4px rgba(184, 145, 37, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.03),
    inset 0 1.5px 2px #ffffff;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  overflow: hidden;
  user-select: none;
}

.invoice-hub-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
  box-shadow: 
    0 14px 34px -4px rgba(184, 145, 37, 0.20),
    0 4px 10px rgba(0, 0, 0, 0.04),
    inset 0 1.5px 2px #ffffff;
}

.invoice-hub-card:active {
  transform: scale(0.985);
  box-shadow: 
    0 6px 18px -2px rgba(184, 145, 37, 0.14),
    inset 0 1px 1px #ffffff;
}

/* Gold Theme Override */
body.theme-gold-premium .invoice-hub-card {
  background: linear-gradient(180deg, #FBF8F2 0%, #F8F3E8 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 
    0 12px 30px -4px rgba(184, 145, 37, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.03),
    inset 0 1.5px 2px #ffffff;
}

/* Dark Theme (Obsidian Gold) */
body.theme-dark .invoice-hub-card,
.theme-dark .invoice-hub-card {
  background: linear-gradient(180deg, #1C202C 0%, #151822 100%);
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.10);
}

body.theme-dark .invoice-hub-card:hover,
.theme-dark .invoice-hub-card:hover {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.65),
    0 0 16px rgba(212, 175, 55, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Top Header Row (Name + Badge on Left, Close/Delete on Right) */
.invoice-hub-top,
.invoice-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.invoice-hub-meta,
.invoice-hub-couple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex: 1;
  min-width: 0;
}

.invoice-hub-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #0F0E0D;
  line-height: 1.15;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  text-overflow: clip !important;
  overflow: visible !important;
}

body.theme-dark .invoice-hub-name,
.theme-dark .invoice-hub-name {
  color: #FFFFFF;
}

/* Luxury Foil Micro-Badge */
.invoice-hub-badge {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3.5px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(250, 245, 230, 0.95);
  border: 1.5px solid rgba(197, 155, 60, 0.45);
  color: #8A6014;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(184, 145, 37, 0.06);
}

body.theme-dark .invoice-hub-badge,
.theme-dark .invoice-hub-badge {
  color: #F5D77F;
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: none;
}

/* Circular Close / Delete Button */
.invoice-hub-del-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.045);
  color: #655B4E;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  padding: 0;
  margin-top: 1px;
}

body.theme-dark .invoice-hub-del-btn,
.theme-dark .invoice-hub-del-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.invoice-hub-del-btn:hover,
.invoice-hub-del-btn:active {
  background: rgba(239, 68, 68, 0.14);
  color: #EF4444;
  transform: scale(1.08);
}

/* Full-Width Horizontal Divider */
.invoice-hub-divider {
  height: 1px;
  width: 100%;
  background: rgba(212, 175, 55, 0.22);
  margin: 12px 0 13px 0;
}

body.theme-dark .invoice-hub-divider,
.theme-dark .invoice-hub-divider {
  background: rgba(212, 175, 55, 0.18);
}

/* Bottom Row (Date Left, Financials Right) */
.invoice-hub-bottom,
.invoice-hub-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  min-width: 0;
}

/* Date Meta Group */
.invoice-hub-date-group,
.invoice-hub-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.invoice-hub-cal-icon {
  color: #C47D12;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.theme-dark .invoice-hub-cal-icon,
.theme-dark .invoice-hub-cal-icon {
  color: #D4AF37;
}

.invoice-hub-date-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1A1A1A;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-dark .invoice-hub-date-text,
.theme-dark .invoice-hub-date-text {
  color: #F1F5F9;
}

/* Subtle Vertical Divider between Date and Amount (Deprecated for breathing room) */
.invoice-hub-vdivider {
  display: none;
}

body.theme-dark .invoice-hub-vdivider,
.theme-dark .invoice-hub-vdivider {
  display: none;
}

/* Financials Right-Block */
.invoice-hub-financials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.invoice-hub-amount {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #0A0A0A;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

body.theme-dark .invoice-hub-amount,
.theme-dark .invoice-hub-amount {
  color: #FFFFFF;
}

/* Status Pill */
.invoice-hub-status {
  padding: 2.5px 7px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

.invoice-hub-status.status-paid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.10) 100%);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: #047857;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.10);
}

body.theme-dark .invoice-hub-status.status-paid,
.theme-dark .invoice-hub-status.status-paid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.14) 100%);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34D399;
}

.invoice-hub-status.status-due {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(180, 83, 9, 0.10) 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: #926915;
  box-shadow: 0 1px 3px rgba(184, 145, 37, 0.10);
}

body.theme-dark .invoice-hub-status.status-due,
.theme-dark .invoice-hub-status.status-due {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24) 0%, rgba(180, 83, 9, 0.14) 100%);
  border-color: rgba(212, 175, 55, 0.50);
  color: #F3D077;
}

/* Squircle Action Chevron Box */
.invoice-hub-chevron-box,
.invoice-hub-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border-radius: 7px;
  background: rgba(212, 175, 55, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.32);
  color: #C47D12;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(184, 145, 37, 0.06);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

body.theme-dark .invoice-hub-chevron-box,
body.theme-dark .invoice-hub-chevron,
.theme-dark .invoice-hub-chevron-box,
.theme-dark .invoice-hub-chevron {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.45);
  color: #F5D77F;
  box-shadow: none;
}

.invoice-hub-card:hover .invoice-hub-chevron-box,
.invoice-hub-card:hover .invoice-hub-chevron {
  transform: translateX(2px);
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
}

@media (max-width: 480px) {
  .invoice-hub-card {
    padding: 13px 14px 12px 14px;
    border-radius: 20px;
  }
  .invoice-hub-name {
    font-size: 1.30rem;
  }
  .invoice-hub-date-text {
    font-size: 0.84rem;
  }
  .invoice-hub-amount {
    font-size: 1.18rem;
  }
  .invoice-hub-vdivider {
    display: none;
  }
  .invoice-hub-financials {
    gap: 7px;
  }
  .invoice-hub-chevron-box,
  .invoice-hub-chevron {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 360px) {
  .invoice-hub-card {
    padding: 11px 12px 10px 12px;
    border-radius: 18px;
  }
  .invoice-hub-name {
    font-size: 1.18rem;
  }
  .invoice-hub-date-text {
    font-size: 0.78rem;
  }
  .invoice-hub-amount {
    font-size: 1.08rem;
  }
  .invoice-hub-vdivider {
    display: none;
  }
  .invoice-hub-financials {
    gap: 6px;
  }
  .invoice-hub-chevron-box,
  .invoice-hub-chevron {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   4-Tab Invoices Navigation Capsule (Receipts | Payroll | Invoices | Earnings)
   ========================================================================== */
#invoices-hub-container .sub-nav-wrapper,
.invoices-hub-wrap .sub-nav-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

#invoices-hub-container .sub-nav-capsule,
.invoices-hub-wrap .sub-nav-capsule {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  padding: 4px !important;
  border-radius: 9999px !important;
  gap: 3px !important;
  box-sizing: border-box !important;
}

#invoices-hub-container .sub-nav-btn,
.invoices-hub-wrap .sub-nav-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 8px 4px !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.015em !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  user-select: none !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#invoices-hub-container .sub-nav-btn span,
.invoices-hub-wrap .sub-nav-btn span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

@media (max-width: 390px) {
  #invoices-hub-container .sub-nav-capsule,
  .invoices-hub-wrap .sub-nav-capsule {
    padding: 3px !important;
    gap: 2px !important;
  }
  #invoices-hub-container .sub-nav-btn,
  .invoices-hub-wrap .sub-nav-btn {
    padding: 7px 3px !important;
    font-size: 0.77rem !important;
    letter-spacing: -0.02em !important;
  }
  #invoices-hub-container .sub-nav-btn span,
  .invoices-hub-wrap .sub-nav-btn span {
    font-size: 0.77rem !important;
  }
}

/* Minimalist 2-Pill Segment Switcher (Receipts vs Payroll) */
.expense-type-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 9999px;
  margin-bottom: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

body.theme-dark .expense-type-toggle,
.theme-dark .expense-type-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
}

.expense-type-btn {
  flex: 1;
  padding: 7px 12px;
  border: none;
  background: transparent;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  color: #7A6328;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

body.theme-dark .expense-type-btn,
.theme-dark .expense-type-btn {
  color: rgba(255, 255, 255, 0.65);
}

.expense-type-btn.active {
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.theme-dark .expense-type-btn.active,
.theme-dark .expense-type-btn.active {
  background: rgba(212, 175, 55, 0.22);
  color: #F5D77F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.expense-count-badge {
  font-size: 0.70rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.18);
  color: #8A6014;
  line-height: 1.2;
}

body.theme-dark .expense-count-badge,
.theme-dark .expense-count-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
}

.expense-type-btn.active .expense-count-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #0A0A0A;
}

body.theme-dark .expense-type-btn.active .expense-count-badge {
  background: rgba(212, 175, 55, 0.35);
  color: #FFFFFF;
}

.request-receipts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 850;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.request-receipts-sum {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--text-primary);
}

.request-receipts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Review Modal History Minimizable Card */
.request-history-card {
  transition: padding 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-history-card.is-minimized {
  padding-top: 13px;
  padding-bottom: 13px;
  gap: 0;
}

.request-history-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.request-history-toggle-btn:hover {
  opacity: 0.82;
}

.request-history-toggle-btn:active {
  transform: scale(0.99);
}

.request-history-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-history-chevron {
  color: var(--text-muted);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
}

.request-history-card:not(.is-minimized) .request-history-chevron {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.request-history-card.is-minimized .request-history-chevron {
  transform: rotate(0deg);
  color: var(--text-muted);
}

.request-history-card.is-minimized .request-history-list {
  display: none !important;
}

.request-history-list {
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  margin-top: 4px;
}

.request-history-list::-webkit-scrollbar {
  width: 4px;
}

.request-history-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 999px;
}

.request-receipt-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.theme-dark .request-receipt-item,
.theme-dark .request-receipt-item {
  background: rgba(24, 28, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

body.theme-light .request-receipt-item,
.theme-light .request-receipt-item {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.theme-gold-premium .request-receipt-item,
.theme-gold-premium .request-receipt-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 250, 243, 0.92) 100%);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 3px 10px rgba(184, 145, 37, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.request-receipt-item:hover {
  background: #ffffff;
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 145, 37, 0.14);
}

body.theme-dark .request-receipt-item:hover,
.theme-dark .request-receipt-item:hover {
  background: rgba(32, 38, 52, 0.95);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.request-receipt-item:active {
  transform: scale(0.985);
}

.request-receipt-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.request-receipt-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.request-receipt-item:hover .request-receipt-icon-wrap {
  transform: scale(1.05);
}

body.theme-dark .request-receipt-icon-wrap,
.theme-dark .request-receipt-icon-wrap {
  background: rgba(229, 193, 88, 0.12);
  border-color: rgba(229, 193, 88, 0.25);
  color: var(--gold-primary);
}

body.theme-light .request-receipt-icon-wrap,
.theme-light .request-receipt-icon-wrap {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #18181b;
}

body.theme-gold-premium .request-receipt-icon-wrap,
.theme-gold-premium .request-receipt-icon-wrap {
  background: linear-gradient(135deg, rgba(255, 246, 222, 0.9) 0%, rgba(245, 222, 155, 0.5) 100%);
  border-color: rgba(212, 175, 55, 0.35);
  color: #996800;
}

.request-receipt-meta-text {
  display: flex;
  flex-direction: column;
  min-width: 60px;
}

.request-receipt-vendor {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.request-receipt-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
}

.request-receipt-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.request-receipt-val {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.request-receipt-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-receipt-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-receipt-view:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-0.5px);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.btn-receipt-view:active {
  transform: scale(0.96);
}

body.theme-dark .btn-receipt-view,
.theme-dark .btn-receipt-view {
  background: rgba(229, 193, 88, 0.14);
  border-color: rgba(229, 193, 88, 0.32);
  color: var(--gold-primary);
}

body.theme-light .btn-receipt-view,
.theme-light .btn-receipt-view {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #18181b;
}

body.theme-gold-premium .btn-receipt-view,
.theme-gold-premium .btn-receipt-view {
  background: linear-gradient(135deg, rgba(255, 245, 219, 0.95) 0%, rgba(246, 226, 168, 0.85) 100%);
  border-color: rgba(212, 175, 55, 0.45);
  color: #855800;
  box-shadow: 0 1px 3px rgba(184, 145, 37, 0.15);
}

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

.receipt-item-title {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-item-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-item-amount-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.receipt-item-amount {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}


/* Premium Luxury Delete "X" Action Button */
.btn-receipt-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.24);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  margin-inline-start: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.btn-receipt-delete:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #b91c1c;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.32);
}

.btn-receipt-delete:active {
  transform: scale(0.92);
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.2);
}

body.theme-dark .btn-receipt-delete,
.theme-dark .btn-receipt-delete {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.32);
  color: #f87171;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.theme-dark .btn-receipt-delete:hover,
.theme-dark .btn-receipt-delete:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

body.theme-gold-premium .btn-receipt-delete,
.theme-gold-premium .btn-receipt-delete {
  background: rgba(220, 38, 38, 0.09);
  border-color: rgba(212, 175, 55, 0.35);
  color: #dc2626;
  box-shadow: 0 1px 4px rgba(184, 145, 37, 0.12);
}

body.theme-gold-premium .btn-receipt-delete:hover,
.theme-gold-premium .btn-receipt-delete:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

/* Receipt Preview Modal - Bottom Delete Action */
.btn-preview-bottom-delete {
  padding: 0 14px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #dc2626;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-preview-bottom-delete:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   DELETE RECEIPT LUXURY CONFIRMATION MODAL ("Better Pop Out")
   ========================================================================== */
.delete-receipt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: deleteOverlayFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.delete-receipt-modal-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 24px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(212, 175, 55, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  animation: deleteCardPopIn 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center center;
}

body.theme-dark .delete-receipt-modal-card,
.theme-dark .delete-receipt-modal-card {
  background: #181d28;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.theme-gold-premium .delete-receipt-modal-card,
.theme-gold-premium .delete-receipt-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 60px rgba(184, 145, 37, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.35);
}

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

@keyframes deleteCardPopIn {
  0% {
    opacity: 0;
    transform: scale(0.86) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.delete-receipt-badge-hero {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-receipt-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  animation: badgePulseRing 2s infinite ease-out;
}

@keyframes badgePulseRing {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.22); opacity: 0.25; }
  100% { transform: scale(0.95); opacity: 0.85; }
}

.delete-receipt-badge-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(220, 38, 38, 0.32) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

body.theme-dark .delete-receipt-badge-icon {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
}

.delete-receipt-modal-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-primary, #0f172a);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.delete-receipt-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: 290px;
}

.delete-receipt-preview-card {
  width: 100%;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  box-sizing: border-box;
  text-align: start;
}

body.theme-dark .delete-receipt-preview-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.delete-receipt-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.delete-receipt-preview-vendor-wrap {
  min-width: 0;
  flex: 1;
}

.delete-receipt-voucher-code {
  display: block;
  font-size: 0.68rem;
  font-family: monospace, sans-serif;
  font-weight: 800;
  color: #9a7b2c;
  letter-spacing: 0.4px;
}

.delete-receipt-preview-vendor {
  font-size: 0.96rem;
  font-weight: 850;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.delete-receipt-preview-amount {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text-primary, #0f172a);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.delete-receipt-preview-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 8px 0;
}

body.theme-dark .delete-receipt-preview-divider {
  background: rgba(255, 255, 255, 0.08);
}

.delete-receipt-preview-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  font-weight: 700;
  flex-wrap: wrap;
}

.delete-receipt-preview-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 800;
}

.delete-receipt-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-delete-receipt-cancel {
  height: 44px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary, #1e293b);
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-receipt-cancel:hover {
  background: rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

body.theme-dark .btn-delete-receipt-cancel {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

body.theme-dark .btn-delete-receipt-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-delete-receipt-confirm {
  height: 44px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 850;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.btn-delete-receipt-confirm:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
  transform: translateY(-1px);
}

.btn-delete-receipt-confirm:active {
  transform: scale(0.97);
}

.delete-receipt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

[dir="rtl"] .delete-receipt-modal-close {
  right: auto;
  left: 14px;
}

.delete-receipt-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

body.theme-dark .delete-receipt-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body.theme-dark .delete-receipt-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.request-company-card-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

/* 3-Button Payment Source Selector */
.payment-source-toggle-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.btn-payment-source {
  padding: 10px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.18s ease;
  min-height: 60px;
}

.btn-payment-source .pay-src-icon {
  font-size: 1.2rem;
}

.btn-payment-source .pay-src-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.btn-payment-source.is-active {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(184, 145, 37, 0.06) 100%);
  box-shadow: 0 4px 12px rgba(184, 145, 37, 0.18);
}

.btn-payment-source.is-active .pay-src-title {
  color: var(--gold-primary);
}

/* Camera Pod */
.receipt-camera-pod {
  width: 100%;
  min-height: 130px;
  border: 2px dashed rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-input);
  overflow: hidden;
  position: relative;
  transition: all 0.18s ease;
  padding: 12px;
}

.receipt-camera-pod:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.receipt-camera-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
}

/* Add Receipt Action Button */
.btn-add-receipt-action {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 145, 37, 0.08) 100%);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 850;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.btn-add-receipt-action:hover {
  background: var(--gold-primary);
  color: #0b0c10;
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* Invoices & Receipts Dedicated Hub */
.invoices-hub-wrap {
  padding: 10px 4px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-receipt-filter {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.btn-receipt-filter.active {
  border-color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 232, 0.9) 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(184, 145, 37, 0.14), inset 0 1px 1px #ffffff;
}

body.theme-dark .btn-receipt-filter.active {
  background: linear-gradient(135deg, rgba(42, 48, 64, 0.9) 0%, rgba(22, 26, 36, 0.85) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.receipts-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 247, 236, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.12), inset 0 1px 1.5px #ffffff;
}

body.theme-dark .staff-filter-wrap {
  background: rgba(28, 33, 46, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.staff-filter-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 14px;
}

.btn-reimburse-quick {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0%, rgba(22, 163, 74, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #16a34a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-reimburse-quick:active {
  transform: scale(0.96);
  background: rgba(34, 197, 94, 0.25);
}

/* Executive Annual Ledger */
.annual-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.annual-metric-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.annual-month-row:hover {
  background: rgba(212, 175, 55, 0.06);
}

.annual-month-row:active {
  background: rgba(212, 175, 55, 0.12);
}

/* ==========================================================================
   Luxury Invoices & Receipts Engine: 'omar app' Luxury Preview Architecture
   ========================================================================== */

/* Overlays (Strict Zero-Horizontal-Overflow & Full-Page Containment) */
.invoice-preview-overlay,
.receipt-voucher-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  overflow: hidden !important;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  animation: fadeInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Full-Page Editor Overlays */
.invoice-editor-overlay,
.expense-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: #141721;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  overflow: hidden !important;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  animation: fadeInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-gold-premium .invoice-editor-overlay,
body.theme-gold-premium .expense-editor-overlay {
  background: #fdfbf7;
}

body.theme-dark .invoice-editor-overlay,
body.theme-dark .expense-editor-overlay {
  background: #141824;
}

body.theme-light .invoice-editor-overlay,
body.theme-light .expense-editor-overlay {
  background: #ffffff;
}

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

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

/* Modal Full-Page Sheet Container (Seamless Fit across Mobile & Desktop) */
.modal-preview-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #141721;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  animation: fadeInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 520px) {
  .modal-preview-sheet {
    border-left: 1px solid rgba(212, 175, 55, 0.25);
    border-right: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  }
}

.modal-preview-sheet-header {
  padding: calc(6px + env(safe-area-inset-top, 6px)) 14px 2px;
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
  border-bottom: none;
  background: transparent;
}

.modal-preview-sheet-close {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.modal-preview-sheet-close:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #D4AF37;
  color: #FFFFFF;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.modal-preview-sheet-close:active {
  transform: scale(0.92);
  background: rgba(212, 175, 55, 0.4);
}

/* Modal Preview Sheet (always dark canvas) overrides across all themes */
.modal-preview-sheet .modal-preview-sheet-close {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.6) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45) !important;
}

.modal-preview-sheet .modal-preview-sheet-close:hover {
  background: rgba(212, 175, 55, 0.25) !important;
  border-color: #D4AF37 !important;
  color: #FFFFFF !important;
}

.modal-preview-sheet .modal-preview-sheet-close:active {
  background: rgba(212, 175, 55, 0.4) !important;
}

/* Full-Page Editors (Parchment background in gold-premium & light themes) */
body.theme-gold-premium .invoice-editor-sheet .modal-preview-sheet-close,
body.theme-gold-premium .expense-editor-sheet .modal-preview-sheet-close,
body.theme-light .invoice-editor-sheet .modal-preview-sheet-close,
body.theme-light .expense-editor-sheet .modal-preview-sheet-close {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #1a1205;
  box-shadow: none;
}

body.theme-gold-premium .invoice-editor-sheet .modal-preview-sheet-close:active,
body.theme-gold-premium .expense-editor-sheet .modal-preview-sheet-close:active,
body.theme-light .invoice-editor-sheet .modal-preview-sheet-close:active,
body.theme-light .expense-editor-sheet .modal-preview-sheet-close:active {
  background: rgba(212, 175, 55, 0.15);
}

body.theme-dark .invoice-editor-sheet .modal-preview-sheet-close,
body.theme-dark .expense-editor-sheet .modal-preview-sheet-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  color: #FFFFFF;
}

.modal-preview-sheet-body {
  padding: 2px 14px calc(14px + env(safe-area-inset-bottom, 14px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
  box-sizing: border-box;
}

/* ==========================================================================
   Luxury Parchment Card (.modal-receipt-preview) - Exact 'omar app' Match
   ========================================================================== */
.modal-receipt-preview {
  background: radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.08) 0%, transparent 60%), #FCFAF5;
  border: 2px solid #D4AF37;
  border-radius: 18px;
  padding: 18px 14px 28px;
  color: #1E293B;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.modal-receipt-preview::-webkit-scrollbar {
  width: 5px;
}
.modal-receipt-preview::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 4px;
}
.modal-receipt-preview::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.1);
}

/* 3D Gold Total Hero Banner */
.receipt-gold-total-hero {
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 40%), linear-gradient(135deg, #B38312 0%, #D4AF37 40%, #F5DE88 70%, #9E740C 100%);
  color: #1A1201;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  box-shadow: 0 6px 16px rgba(179,131,18,0.35);
  border: 1px solid #FBF0D3;
}

/* 3D Wax Seal Medallion */
.receipt-seal-medallion {
  border: 2px solid #FFF5C0;
  color: #2D1E03;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: none;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  background: radial-gradient(circle at 35% 35%, #FFF7D6 0%, #D4AF37 55%, #8B6508 100%);
  box-shadow: 0 4px 10px rgba(139,101,8,0.3);
  flex-shrink: 0;
}

/* ==========================================================================
   Receipt Voucher: "Show Picture" Button & Full-Page Photo Viewer
   ========================================================================== */
.btn-receipt-show-photo {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF9EB 0%, #F5E8C7 50%, #ECD8A5 100%);
  border: 1.5px solid #D4AF37;
  color: #5A3F05;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.22);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-receipt-show-photo:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAEFD2 50%, #F2DFB3 100%);
  border-color: #B8860B;
  color: #3D2A02;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(212, 175, 55, 0.32);
}

.btn-receipt-show-photo:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.btn-receipt-show-photo svg {
  color: #9A7B2C;
  flex-shrink: 0;
}

/* Full-Page Photo Overlay */
.receipt-fullpage-photo-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100060;
  background: rgba(4, 5, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  animation: fadeInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overflow: hidden;
}

/* Top bar with back, receipt info, and action buttons */
.receipt-fullpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px 16px;
  background: rgba(15, 18, 26, 0.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  z-index: 2;
}

.receipt-fullpage-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(30, 26, 20, 0.75) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.2px solid rgba(212, 175, 55, 0.45) !important;
  border-top: 1.5px solid rgba(255, 235, 170, 0.6) !important;
  color: #F8FAFC !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.receipt-fullpage-back-btn:hover {
  background: rgba(45, 38, 28, 0.9) !important;
  border-color: #D4AF37 !important;
  color: #F5DE88 !important;
  transform: scale(1.06) !important;
}

.receipt-fullpage-back-btn:active {
  transform: scale(0.92) !important;
}

.receipt-fullpage-back-btn .home-chevron-icon {
  width: 18px !important;
  height: 18px !important;
}

[dir="rtl"] .receipt-fullpage-back-btn .home-chevron-icon {
  transform: rotate(180deg) !important;
}

.receipt-fullpage-title-box {
  flex: 1;
  text-align: center;
  min-width: 0;
  padding: 0 6px;
}

.receipt-fullpage-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 0.98rem;
  font-weight: 850;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.receipt-fullpage-sub {
  font-size: 0.74rem;
  font-weight: 650;
  color: #94A3B8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-fullpage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.receipt-fullpage-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.receipt-fullpage-icon-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #D4AF37;
  color: #FFF5C0;
  transform: scale(1.06);
}

.receipt-fullpage-icon-btn:active {
  transform: scale(0.92);
}

/* Body container holding the full page image */
.receipt-fullpage-body {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.receipt-fullpage-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  cursor: pointer;
}

.receipt-fullpage-image {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 175, 55, 0.3);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.receipt-fullpage-image.is-zoomed {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}

/* Fallback box if photo fails to load */
.receipt-fullpage-error-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  max-width: 320px;
}

/* Smaller Version of Log In Page L'etoile Design Bar on Invoice Card */
.invoice-brand-emblem-wrap {
  text-align: center;
  margin-bottom: 10px;
  padding-top: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.invoice-brand-emblem-box {
  width: 160px;
  max-width: 65%;
  aspect-ratio: 936 / 514;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.35)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
  user-select: none;
  -webkit-user-drag: none;
}

.invoice-brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Pay Button & High-Priority Record Payment Overlay */
.btn-preview-bottom-pay {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #059669 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  font-weight: 900;
}

.btn-preview-bottom-pay:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

#record-payment-modal-overlay,
.record-payment-overlay {
  z-index: 100030 !important;
}

/* Fixed Bottom Action Grid */
.modal-preview-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

.btn-preview-bottom-print,
.btn-preview-bottom-share {
  padding: 10px 16px;
  height: 48px;
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  font-weight: 850;
  font-size: 1.18rem;
  letter-spacing: 0.3px;
  border-radius: 12px;
  background: linear-gradient(180deg, #E6C86E 0%, #D4AF37 42%, #B8860B 100%);
  border: 1px solid rgba(255, 235, 170, 0.75);
  border-top: 1px solid #FFF5C0;
  color: #1A1201;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.btn-preview-bottom-print:active,
.btn-preview-bottom-share:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(212,175,55,0.25);
}

.btn-preview-bottom-edit {
  padding: 12px 14px;
  font-weight: 900;
  font-size: 0.92rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.btn-preview-bottom-edit:active {
  transform: scale(0.97);
}

.btn-preview-bottom-close {
  padding: 12px 16px;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #CBD5E1;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.btn-preview-bottom-close:active {
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   Invoice & Expense Full-Page Editors
   -------------------------------------------------------------------------- */
.invoice-editor-sheet,
.expense-editor-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #141721;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--text-primary, #ffffff);
  animation: fadeInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 520px) {
  .invoice-editor-sheet,
  .expense-editor-sheet {
    border-left: 1px solid rgba(212, 175, 55, 0.25);
    border-right: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 519px) {
  .invoice-editor-sheet,
  .expense-editor-sheet {
    max-width: 100vw;
    width: 100vw;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

body.theme-gold-premium .invoice-editor-sheet,
body.theme-gold-premium .expense-editor-sheet {
  background: linear-gradient(180deg, #fdfbf7 0%, #f6f0e2 100%);
  color: #1a1205;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.theme-dark .invoice-editor-sheet,
body.theme-dark .expense-editor-sheet {
  background: linear-gradient(180deg, #141824 0%, #0d0f17 100%);
  color: #ffffff;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.theme-light .invoice-editor-sheet,
body.theme-light .expense-editor-sheet {
  background: #ffffff;
  color: #111827;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.invoice-editor-sheet .modal-preview-drag-pill,
.expense-editor-sheet .modal-preview-drag-pill {
  display: none !important;
}

.invoice-editor-header,
.expense-editor-header {
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px;
  background: rgba(20, 24, 36, 0.98);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

body.theme-gold-premium .invoice-editor-header,
body.theme-gold-premium .expense-editor-header {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
}

body.theme-dark .invoice-editor-header,
body.theme-dark .expense-editor-header {
  background: rgba(20, 24, 36, 0.98);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

body.theme-light .invoice-editor-header,
body.theme-light .expense-editor-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

.invoice-editor-title,
.expense-editor-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary, #d4af37);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.invoice-editor-body,
.expense-editor-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invoice-editor-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  padding: 12px;
  box-sizing: border-box;
}

body.theme-gold-premium .invoice-editor-section {
  background: linear-gradient(155deg, #ffffff 0%, #fdf8ec 45%, #f7ebd1 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 8px 22px rgba(184, 145, 37, 0.15);
}

body.theme-dark .invoice-editor-section {
  background: linear-gradient(155deg, #1c2130 0%, #131722 100%);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.theme-light .invoice-editor-section {
  background: #fbf9f4;
  border-color: #e6d5ac;
}

.invoice-editor-section-title {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-primary, #d4af37);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-line-item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.theme-gold-premium .editor-line-item-card {
  background: linear-gradient(155deg, #ffffff 0%, #fdf8ec 50%, #f7ebd1 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 8px 24px rgba(184, 145, 37, 0.18), inset 0 1px 0 #ffffff;
}

body.theme-dark .editor-line-item-card {
  background: linear-gradient(155deg, #1c2130 0%, #131722 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-light .editor-line-item-card {
  background: #ffffff;
  border: 1.5px solid #e6d5ac;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.editor-cat-select {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-primary, #d4af37);
  outline: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

body.theme-gold-premium .editor-cat-select {
  background: rgba(212, 175, 55, 0.15);
  color: #78350f;
  border-color: #d4af37;
}

body.theme-dark .editor-cat-select {
  background: rgba(212, 175, 55, 0.12);
  color: #ffd875;
  border-color: rgba(212, 175, 55, 0.4);
}

.editor-total-banner {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 40%), linear-gradient(135deg, #B38312 0%, #D4AF37 40%, #F5DE88 70%, #9E740C 100%);
  color: #1A1201;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #FBF0D3;
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.28);
  margin-top: 6px;
  box-sizing: border-box;
}

.btn-remove-line-item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  padding: 0;
}

.btn-remove-line-item:hover {
  background: rgba(239, 68, 68, 0.22);
  transform: scale(1.1);
  border-color: #ef4444;
}

.btn-remove-line-item:active {
  transform: scale(0.92);
}

.editor-payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

body.theme-gold-premium .editor-payment-item {
  background: #ffffff;
  border: 1.4px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.08);
}

body.theme-dark .editor-payment-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

body.theme-light .editor-payment-item {
  background: #ffffff;
  border-color: #e6d5ac;
}

.invoice-editor-sheet input,
.invoice-editor-sheet select,
.invoice-editor-sheet textarea,
.expense-editor-sheet input,
.expense-editor-sheet select,
.expense-editor-sheet textarea {
  color: var(--text-primary);
  font-family: inherit;
}

.invoice-editor-sheet .bento-input-well input,
.invoice-editor-sheet .bento-input-well textarea,
.invoice-editor-sheet .bento-input-well select,
.invoice-editor-sheet .bento-currency-well input,
.expense-editor-sheet .bento-input-well input,
.expense-editor-sheet .bento-input-well textarea,
.expense-editor-sheet .bento-input-well select,
.expense-editor-sheet .bento-currency-well input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* --------------------------------------------------------------------------
   Receipt Voucher Card (for Studio Expenses)
   -------------------------------------------------------------------------- */
.receipt-voucher-card {
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1.5px rgba(212, 175, 55, 0.45);
  padding: 20px 16px;
  box-sizing: border-box;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  word-break: break-word;
}

@media (min-width: 560px) {
  .receipt-voucher-card {
    padding: 28px 24px;
  }
}

.receipt-voucher-header {
  text-align: center;
  border-bottom: 2px dashed #d4af37;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.receipt-voucher-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px 0;
}

.receipt-voucher-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
  margin: 6px 0;
  text-align: center;
}

.receipt-voucher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #fdfbf7;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.receipt-voucher-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  font-weight: 850;
  color: #92400e;
  margin-bottom: 2px;
}

.receipt-voucher-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: #111827;
}

.receipt-voucher-photo {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #000000;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Print View Container Isolation (Zero screen footprint) */
#printable-invoice-view,
#printable-receipt-view {
  display: none !important;
  position: fixed !important;
  top: -99999px !important;
  left: -99999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* --------------------------------------------------------------------------
   @media print: Strict Luxury Printing (Zero App Chrome Leakage)
   -------------------------------------------------------------------------- */
@media print {
  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
  }

  /* Hide entire screen UI except printable containers */
  body * {
    visibility: hidden !important;
  }

  .mobile-device-shell,
  .invoice-preview-overlay,
  .invoice-editor-overlay,
  .expense-editor-overlay,
  .receipt-voucher-overlay,
  #app-root,
  .letoile-dock-wrapper,
  .gold-wallpaper-dock,
  .no-print,
  .invoice-preview-actions,
  #invoices-top-nav-bar,
  #weddings-top-nav-bar,
  .sub-nav-wrapper,
  .btn-modal-close-gold,
  .app-context-menu-backdrop,
  .resize-modal-backdrop,
  .ios-status-bar,
  .ios-bottom-tab-bar,
  .ios-home-indicator-bar {
    display: none !important;
    visibility: hidden !important;
  }

  #printable-invoice-view,
  #printable-receipt-view {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 20px 24px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
    border: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 1 !important;
    pointer-events: auto !important;
  }

  #printable-invoice-view *,
  #printable-receipt-view * {
    visibility: visible !important;
  }

  .invoice-items-table th {
    background: #fbf9f4 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .invoice-header-block {
    border-bottom: 2px solid #d4af37 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .invoice-details-grid {
    background: #faf8f5 !important;
    border: 1px solid #d4af37 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .invoice-totals-card {
    background: #fdfbf7 !important;
    border: 1.5px solid #d4af37 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ==========================================================================
   Studio Notification System & 1-Tap Clock In/Out Styling
   ========================================================================== */

/* Notification Bell & Live Badge */
.notif-bell-btn:not(.springboard-top-btn) {
  position: relative !important;
  overflow: visible !important;
}

.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1000 !important;
  letter-spacing: -0.02em;
  transform-origin: center center;
}

.notif-badge-count.is-single-digit {
  width: 20px;
  min-width: 20px;
  padding: 0;
}

@keyframes notifPulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(255, 59, 48, 0.65), 0 1px 4px rgba(0, 0, 0, 0.35);
  }
}

.notif-badge-count.pulse-glow {
  animation: notifPulseGlow 2.4s infinite ease-in-out;
}

/* Notification Center Overlay & Sheet */
.notif-center-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 12, 8, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.notif-center-overlay.is-visible {
  opacity: 1;
}

.notif-center-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--bg-card, #ffffff);
  border-radius: 28px 28px 0 0;
  border-top: 1.5px solid var(--star-gold, #d4af37);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  overscroll-behavior: contain;
}

.notif-center-overlay.is-visible .notif-center-sheet {
  transform: translateY(0);
}

/* Grab handle pill */
.notif-sheet-handle-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 2px 0;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
}

.notif-sheet-handle-wrap:active {
  cursor: grabbing;
}

.notif-sheet-handle-pill {
  width: 44px;
  height: 5px;
  background: rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}

.notif-sheet-handle-wrap:active .notif-sheet-handle-pill {
  background: rgba(212, 175, 55, 0.85);
  transform: scaleY(1.2);
}

body.theme-dark .notif-sheet-handle-pill {
  background: rgba(212, 175, 55, 0.55);
}

body.theme-gold-premium .notif-sheet-handle-pill {
  background: rgba(212, 175, 55, 0.6);
}

/* Header */
.notif-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 14px 20px;
  border-bottom: 1px solid var(--border-color, rgba(212, 175, 55, 0.18));
}

.notif-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-header-bell {
  font-size: 1.25rem;
}

.notif-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #1c1917);
  letter-spacing: -0.01em;
}

.notif-header-pill {
  background: var(--gold-primary, #d4af37);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 10px;
}

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

.btn-notif-action {
  background: transparent;
  border: none;
  color: var(--gold-primary, #d4af37);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-notif-action:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Body & List */
.notif-center-body {
  padding: 16px 16px max(16px, env(safe-area-inset-bottom, 16px)) 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  flex: 1;
}

.notif-empty-state {
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.notif-empty-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary, #1c1917);
  margin-bottom: 4px;
}

.notif-empty-sub {
  font-size: 0.78rem;
  color: var(--text-secondary, #78716c);
  max-width: 280px;
  line-height: 1.4;
}

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

/* Notification Item Card */
.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-input, #fcfaf6);
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
  position: relative;
  transition: all 0.18s ease;
  cursor: pointer;
}

.notif-card.is-unread {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.35) 0%, rgba(253, 230, 138, 0.18) 100%);
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.12);
}

.notif-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid var(--star-gold, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.notif-avatar-initials {
  font-family: 'Playfair Display', serif;
  font-weight: 850;
  font-size: 0.85rem;
  color: #78350f;
}

.notif-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
}

.notif-card-content {
  flex: 1;
  min-width: 0;
}

.notif-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.notif-type-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-primary, #b45309);
}

.notif-time-ago {
  font-size: 0.68rem;
  color: var(--text-muted, #a8a29e);
  font-weight: 600;
}

.notif-card-message {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary, #1c1917);
  line-height: 1.35;
  margin-bottom: 4px;
}

.notif-diff-box {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-diff-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-diff-label {
  color: var(--text-muted, #78716c);
  font-weight: 600;
  font-size: 0.68rem;
}

.notif-diff-val.is-old {
  color: #dc2626;
  text-decoration: line-through;
  font-weight: 600;
}

.notif-diff-val.is-new {
  color: #16a34a;
  font-weight: 800;
}

.notif-diff-arrow {
  color: var(--text-muted, #a8a29e);
  font-size: 0.7rem;
  line-height: 1;
  padding-left: 4px;
}

.btn-dismiss-notif {
  background: transparent;
  border: none;
  color: var(--text-muted, #a8a29e);
  font-size: 0.82rem;
  padding: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  line-height: 1;
}

.btn-dismiss-notif:hover {
  opacity: 1;
  color: #ef4444;
}

/* ==========================================================================
   L'etoile Luxury Notifications (3-Color Taxonomy & Calendar Tile)
   ========================================================================== */
.notif-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  flex-shrink: 0;
}
.notif-tag-badge.badge-orange {
  background: #f59e0b;
  color: #000000;
}
.notif-tag-badge.badge-green {
  background: #059669;
  color: #ffffff;
}
.notif-tag-badge.badge-blue {
  background: #2563eb;
  color: #ffffff;
}
.notif-tag-badge.badge-gold {
  background: linear-gradient(135deg, #f0ca62 0%, #c9932b 100%);
  color: #1a1205;
  border: 1px solid rgba(212, 175, 55, 0.45);
}
body.theme-dark .notif-tag-badge.badge-gold {
  background: linear-gradient(135deg, #d4af37 0%, #aa8022 100%);
  color: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notif-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.38);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.12);
  flex-shrink: 0;
  line-height: 1.1;
  vertical-align: middle;
}

body.theme-dark .notif-points-pill {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.22);
}

.notif-cal-tile {
  width: 46px;
  height: 52px;
  border-radius: 12px;
  background: #18181b;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.notif-cal-tile:hover {
  transform: scale(1.05);
}
.notif-cal-tile-month {
  width: 100%;
  background: linear-gradient(90deg, #fbbf24, #d97706);
  color: #000000;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 2.5px 0;
  text-align: center;
  line-height: 1;
}
.notif-cal-tile-day {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  padding-bottom: 2px;
}

.notif-role-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
}
.notif-role-btn {
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 850;
  border: none;
  background: transparent;
  color: var(--text-secondary, #78716c);
  cursor: pointer;
  transition: all 0.15s ease;
}
.notif-role-btn.active {
  background: var(--gold-primary, #d4af37);
  color: #000000;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.notif-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color, rgba(212, 175, 55, 0.15));
  scrollbar-width: none;
}
.notif-pills-bar::-webkit-scrollbar {
  display: none;
}
.notif-pill-btn {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary, #78716c);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.notif-pill-btn.active {
  background: var(--gold-primary, #d4af37);
  color: #000000;
  font-weight: 900;
}
.notif-pill-btn:not(.active):hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary, #1c1917);
}

.notif-card-luxury {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}
.notif-card-luxury:hover {
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.12);
}
.notif-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.btn-notif-action-pill {
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, background 0.15s ease;
  border: none;
}
.btn-notif-action-pill:active {
  transform: scale(0.96);
}
.btn-notif-action-pill.btn-pill-receipt {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e5e7eb);
  color: var(--text-primary, #111827);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.btn-notif-action-pill.btn-pill-points {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10b981;
  color: #059669;
}
.btn-notif-action-pill.btn-pill-accept {
  background: #059669;
  color: #ffffff;
}
.btn-notif-action-pill.btn-pill-decline {
  background: transparent;
  border: 1px solid var(--border-color, #d1d5db);
  color: var(--text-muted, #6b7280);
}
.btn-notif-action-pill.btn-pill-directions {
  background: #2563eb;
  color: #ffffff;
}
.btn-notif-action-pill.btn-pill-gold {
  background: linear-gradient(135deg, #fff2be 0%, #f0ca62 25%, #d49f2b 55%, #f9e29a 80%, #b5811c 100%);
  color: #1a1205;
  border: 1.2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.25);
  font-weight: 850;
}
body.theme-dark .btn-notif-action-pill.btn-pill-gold {
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 60%, #aa8022 100%);
  color: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Admin Schedule Call Time & Punctuality Tracker Banner */
.quick-sched-banner {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.25));
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.quick-sched-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-sched-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.quick-sched-time-pill.is-admin-set {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(245, 158, 11, 0.16) 100%);
  color: #b45309;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.quick-sched-time-pill.is-atelier-default {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary, #475569);
  border: 1px solid var(--border-subtle, #e2e8f0);
}

.sched-pill-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.sched-pill-time {
  font-size: 0.82rem;
  font-weight: 850;
  color: inherit;
}

.quick-sched-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.quick-sched-streak-pill .flame {
  font-size: 0.92rem;
  line-height: 1;
}

.quick-sched-banner-desc {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
}

.quick-sched-banner-desc strong {
  color: var(--text-primary, #0f172a);
}

.quick-sched-admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
}

.quick-sched-admin-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.quick-sched-time-input {
  flex: 1;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 850;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary, #0f172a);
}

body.theme-dark .quick-sched-time-input {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(212, 175, 55, 0.35);
}

.quick-sched-apply-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 850;
  border-radius: 8px;
  border: 1px solid var(--star-gold, #d4af37);
  background: linear-gradient(135deg, #d4af37 0%, #aa8022 100%);
  color: #0b0c10;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.2);
}

.quick-sched-verdict {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.quick-sched-verdict.is-on-time {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.quick-sched-verdict.is-late {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Punctuality tag in ledger rows */
.punctuality-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 850;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 3px;
  vertical-align: middle;
}

.punctuality-tag.on-time {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 0.8px solid rgba(16, 185, 129, 0.35);
}

.punctuality-tag.late {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
  border: 0.8px solid rgba(239, 68, 68, 0.35);
}

/* 1-Tap Clock In & Clock Out Buttons */
.quick-live-clock-card {
  padding: 14px;
  background: linear-gradient(135deg, rgba(254, 250, 242, 0.95) 0%, rgba(253, 246, 233, 0.95) 100%);
  border: 1.5px solid var(--star-gold, #d4af37);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

.quick-live-clock-card.is-clocked-in {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.95) 0%, rgba(220, 252, 231, 0.95) 100%);
  border-color: #22c55e;
}

.live-clock-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #15803d;
}

.pulsing-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: liveDotPulse 1.5s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.live-clock-time {
  font-size: 0.92rem;
  font-weight: 850;
  color: #166534;
}

.btn-live-clock-action {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

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

.btn-live-clock-action.btn-clock-in {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.btn-live-clock-action.btn-clock-out {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.clock-action-glyph {
  font-size: 1.15rem;
}

.quick-logged-shift-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logged-shift-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--star-gold, #d4af37);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: clamp(0.74rem, 2.8vw, 0.82rem);
  line-height: 1.25;
  color: var(--text-primary, #1c1917);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.logged-shift-badge > span,
.logged-shift-hours,
.logged-shift-times {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logged-shift-times {
  color: var(--gold-primary, #b45309);
  font-weight: 700;
}

@media (max-width: 360px) {
  .logged-shift-badge {
    font-size: 0.70rem;
    padding: 4px 8px;
    gap: 4px;
  }
}

.btn-toggle-manual-clock {
  background: transparent;
  border: 1px dashed var(--border-color, rgba(212, 175, 55, 0.4));
  color: var(--gold-primary, #b45309);
  font-size: 0.76rem;
  font-weight: 750;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-manual-clock:hover {
  background: rgba(212, 175, 55, 0.08);
  border-style: solid;
}

.manual-entry-notice-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  color: var(--gold-primary, #b45309);
  font-size: 0.76rem;
  font-weight: 750;
  margin-bottom: 10px;
}

/* ==========================================================================
   STUDIO MASTER PRINT & SHARE ACTION SHEET
   Strict Minimalist Visual-First UI (The 3 Golden Rules)
   ========================================================================== */

.print-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100020;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: pssFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 540px) {
  .print-share-overlay {
    align-items: center;
    padding: 20px;
  }
}

.print-share-sheet {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(28, 24, 18, 0.98) 0%, rgba(16, 14, 10, 0.99) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.15);
  border-radius: 28px 28px 0 0;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pssSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@media (min-width: 540px) {
  .print-share-sheet {
    border-radius: 28px;
  }
}

.print-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.print-share-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #F8F5E9;
  letter-spacing: 0.5px;
  margin: 0;
}

.print-share-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.print-share-close-btn:active {
  transform: scale(0.92);
}

.print-share-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.print-share-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  color: #F8F5E9;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.print-share-option-btn:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.print-share-option-btn:active {
  transform: scale(0.95);
}

.print-share-option-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.print-share-option-label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #FFFFFF;
}

.print-share-cancel-btn {
  margin-top: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94A3B8;
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.print-share-cancel-btn:active {
  transform: scale(0.98);
}

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

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

/* Modal Stacking & Isolation: Ensure Receipts & Viewers Stand Out Cleanly */
#receipt-viewer-modal-overlay {
  z-index: 100010;
}

#request-review-modal-overlay.is-hidden-for-receipt {
  display: none !important;
}

/* Bento Time Selector Component */
.bento-time-selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.bento-time-select-wrap {
  position: relative;
  width: 100%;
}

.bento-time-select-wrap select {
  width: 100%;
  height: 44px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  padding: 0 36px 0 14px;
  font-family: var(--font-body, inherit);
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text-primary, #0b0c10);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.bento-time-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary, #d4af37);
  font-size: 0.95rem;
  font-weight: 900;
  pointer-events: none;
}

.bento-time-select-wrap select:focus {
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 0 0 2.5px rgba(212, 175, 55, 0.22);
  outline: none;
}

body.theme-dark .bento-time-select-wrap select {
  background: #0f131d;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.theme-gold-premium .bento-time-select-wrap select {
  background: #ffffff;
  border-color: rgba(212, 175, 55, 0.45);
  color: #1a1a1a;
}

/* ==========================================================================
   L'etoile Atelier - Points & Rewards System (3D Coins & Streak Engine)
   ========================================================================== */
.points-page-wrapper {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 14px 100px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 1. Hero Vault Card */
.points-hero-vault-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.points-hero-ambient-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.points-hero-top-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.points-hero-icon-pod {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.04) 100%);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.points-hero-3d-coin {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.45));
}

.points-hero-balance-wrap {
  display: flex;
  flex-direction: column;
}

.points-hero-tag {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.points-hero-number {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--text-primary);
  line-height: 1.1;
}

.points-pts-unit {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-left: 2px;
}

.points-hero-cash-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #059669;
  margin-top: 4px;
}

.points-hero-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.btn-points-redeem {
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4af37 0%, #b89125 100%);
  color: #10141d;
  border: none;
  border-radius: 14px;
  font-weight: 850;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-points-redeem:active {
  transform: scale(0.97);
}

/* 2. Top Segmented Streak Bar (Modern App Style) */
.points-top-streak-bar {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.points-streak-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.points-streak-pill-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.points-streak-pill-title span {
  white-space: nowrap;
}

.points-streak-pill-title .flame {
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(249, 115, 22, 0.45));
  flex-shrink: 0;
}

.points-streak-target-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.15px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.points-streak-target-badge span {
  white-space: nowrap;
}

.points-streak-target-badge .dot {
  opacity: 0.45;
  font-size: 0.68rem;
  margin: 0 1px;
}

.points-streak-segments {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.points-streak-seg {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@media (max-width: 375px) {
  .points-top-streak-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .points-streak-pill-title {
    font-size: 0.84rem;
    gap: 5px;
  }
  .points-streak-pill-title .flame {
    font-size: 1.05rem;
  }
  .points-streak-target-badge {
    font-size: 0.70rem;
    padding: 2.5px 7px;
    gap: 4px;
  }
  .points-streak-seg {
    height: 7px;
  }
}

.points-streak-seg.is-filled {
  background: linear-gradient(90deg, #f97316 0%, #eab308 100%);
  border-color: rgba(234, 179, 8, 0.6);
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.points-streak-seg.is-milestone {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.14);
  box-shadow: inset 0 0 4px rgba(212, 175, 55, 0.25);
}

.points-streak-seg.is-milestone.is-filled {
  background: linear-gradient(90deg, #ea580c 0%, #d4af37 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* 2b. Legacy Streak Card */
.points-streak-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

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

.points-streak-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-flame-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.4));
}

.points-streak-title {
  font-size: 0.96rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
}

.points-streak-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.points-streak-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.points-streak-badge.is-milestone-unlocked {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.points-progress-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.points-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.points-progress-target-bonus {
  color: var(--gold-primary);
  font-weight: 800;
}

.points-progress-track {
  height: 9px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.points-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c 0%, #d4af37 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.points-progress-footer {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 650;
}

.points-streak-safe-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  color: var(--text-secondary);
  background: rgba(5, 150, 105, 0.08);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  line-height: 1.35;
}

/* 3. Rewards Ladder */
.points-ladder-card,
.points-history-card,
.points-admin-leaderboard-card,
.points-policy-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.points-section-heading {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
}

.points-section-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.points-ladder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points-ladder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  gap: 10px;
}

.points-ladder-item.is-completed {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.06);
}

.points-ladder-bullet {
  font-size: 1.2rem;
  min-width: 28px;
  text-align: center;
}

.points-ladder-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.points-ladder-info strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.points-ladder-info span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.points-ladder-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.points-reward-pts {
  font-size: 0.8rem;
  font-weight: 850;
  color: var(--gold-primary);
}

.points-reward-dollars {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 750;
}

/* 2. Team Leaderboard, 3. Rewards Ladder & 4. Points History Ledger */
.points-leaderboard-header,
.points-ladder-header,
.points-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 2px 0;
  transition: opacity 0.2s ease;
}

.points-leaderboard-header:hover,
.points-ladder-header:hover,
.points-history-header:hover {
  opacity: 0.9;
}

.points-leaderboard-header:active,
.points-ladder-header:active,
.points-history-header:active {
  opacity: 0.7;
}

.points-leaderboard-toggle-pod,
.points-ladder-toggle-pod,
.points-history-toggle-pod {
  display: flex;
  align-items: center;
}

.points-leaderboard-chevron,
.points-ladder-chevron,
.points-history-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, border-color 0.2s ease;
}

.points-leaderboard-chevron.is-open,
.points-ladder-chevron.is-open,
.points-history-chevron.is-open {
  transform: rotate(180deg);
  color: var(--gold-primary);
  border-color: rgba(212, 175, 55, 0.4);
}

.points-leaderboard-content,
.points-ladder-content,
.points-history-content {
  margin-top: 4px;
}

.points-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.points-history-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.points-history-glyph {
  font-size: 1.15rem;
}

.points-history-note {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.25;
}

.points-history-date {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.points-history-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 65px;
}

.points-chip-positive {
  font-size: 0.82rem;
  font-weight: 850;
  color: #059669;
}

.points-chip-negative {
  font-size: 0.82rem;
  font-weight: 850;
  color: #dc2626;
}

.points-chip-zero {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.points-chip-dollars {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--text-secondary);
}

/* 5. Admin Metrics Ribbon (Hero Centered & Grand Sizing) */
.points-admin-metrics-ribbon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.points-admin-metric-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 26px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.points-metric-label {
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.points-metric-val {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  font-size: 3.4rem;
  font-weight: 900;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--text-primary);
  line-height: 1.05;
  margin: 4px 0 10px 0;
}

.points-metric-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(212, 175, 55, 0.4));
}

.points-metric-flame {
  font-size: 2.2rem;
}

.points-metric-sub {
  font-size: 1.15rem;
  color: #059669;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 480px) {
  .points-admin-metric-card {
    padding: 28px 18px;
    border-radius: 22px;
  }
  .points-metric-label {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }
  .points-metric-val {
    font-size: 2.75rem;
    gap: 14px;
  }
  .points-metric-icon {
    width: 52px;
    height: 52px;
  }
  .points-metric-sub {
    font-size: 1.05rem;
  }
}

/* 6. Admin Leaderboard */
.points-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-leaderboard-row {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--bg-input);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.points-leaderboard-row:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.points-leaderboard-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.points-worker-identity-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.points-rank-pod {
  font-size: 0.8rem;
  font-weight: 850;
  color: var(--text-secondary);
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.points-worker-avatar-pod {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gold-primary);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.points-worker-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.points-worker-monogram {
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--gold-primary);
}

.points-worker-name-block {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}

.points-worker-name {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.points-streak-pill-gold {
  font-size: 0.62rem;
  font-weight: 850;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.points-streak-pill-crown {
  font-size: 0.62rem;
  font-weight: 850;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.points-worker-balance-pod {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  text-align: right;
}

.points-worker-pts {
  font-size: 0.86rem;
  font-weight: 850;
  color: var(--gold-primary);
  line-height: 1.2;
}

.points-mini-unit {
  font-size: 0.65rem;
  font-weight: 600;
}

.points-worker-dollars {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 750;
  line-height: 1.2;
}

.points-leaderboard-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
}

body.theme-dark .points-leaderboard-row-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.points-worker-streak-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.points-inline-flame {
  font-weight: 700;
  color: var(--text-primary);
}

.points-dot-sep {
  opacity: 0.45;
}

.points-worker-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-points-action-plus,
.btn-points-action-adjust {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.btn-points-action-plus:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.btn-points-action-adjust:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.btn-points-action-plus:active,
.btn-points-action-adjust:active {
  transform: scale(0.94);
}

/* 7. Policy Grid */
.points-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .points-policy-grid {
    grid-template-columns: 1fr;
  }
}

.points-policy-tile {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.points-policy-icon {
  font-size: 1.2rem;
}

.points-policy-tile strong {
  font-size: 0.78rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.points-policy-tile p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
}

/* 8. Interactive Modals */
.points-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.points-modal-box {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  padding: 22px 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.points-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
}

.points-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}

.points-modal-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.points-modal-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-preset-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.points-modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.points-modal-field label {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.points-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.points-modal-actions button {
  white-space: nowrap;
}

.points-modal-payout-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  margin: 6px 0;
}

.points-preview-pts {
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--gold-primary);
}

.points-preview-arrow {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.points-preview-cash {
  font-size: 1.2rem;
  font-weight: 900;
  color: #059669;
}

/* ==========================================================================
   Give Points Luxury Pop-out Modal (Team Leaderboard)
   ========================================================================== */
.points-give-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: pointsFadeIn 0.18s ease-out;
}

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

.points-give-popout {
  width: 100%;
  max-width: 330px;
  background: var(--bg-card, #ffffff);
  border: 1.8px solid var(--gold-primary, #d4af37);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 32px rgba(212, 175, 55, 0.2);
  padding: 18px 18px 20px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pointsPopScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

@keyframes pointsPopScale {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.theme-gold-premium .points-give-popout {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f0 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 20px 50px rgba(184, 145, 37, 0.32), 0 0 24px rgba(212, 175, 55, 0.25);
}

body.theme-dark .points-give-popout {
  background: #141721;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 32px rgba(212, 175, 55, 0.15);
}

/* Header */
.points-give-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.points-give-profile-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.points-give-avatar-pod {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--gold-primary, #d4af37);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

body.theme-gold-premium .points-give-avatar-pod {
  background: linear-gradient(145deg, #ffd700 0%, #b8860b 100%);
}

body.theme-dark .points-give-avatar-pod {
  background: #0f121a;
}

.points-give-avatar-pod .worker-initials-text {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 850;
  color: #1a1205;
}

body.theme-dark .points-give-avatar-pod .worker-initials-text {
  color: var(--gold-primary, #f5d77f);
}

.points-give-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.points-give-name {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.points-give-current-pts {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--gold-primary, #b8860b);
  letter-spacing: 0.02em;
}

.points-give-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

body.theme-dark .points-give-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.points-give-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  transform: scale(1.05);
}

.points-give-close-btn:active {
  transform: scale(0.92);
}

/* Presets Row */
.points-give-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.points-give-pill {
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.35));
  background: var(--bg-input, rgba(212, 175, 55, 0.08));
  color: var(--text-primary, #111827);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.points-give-pill:hover {
  border-color: var(--gold-primary, #d4af37);
  background: rgba(212, 175, 55, 0.18);
  transform: translateY(-1px);
}

.points-give-pill:active {
  transform: scale(0.94);
}

.points-give-pill.is-active {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #1a1205;
  border-color: #ffd700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  font-weight: 900;
}

/* Stepper & Amount Box */
.points-give-amount-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-input, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.25));
  border-radius: 16px;
  box-sizing: border-box;
}

body.theme-dark .points-give-amount-card {
  background: #0d1017;
  border-color: rgba(212, 175, 55, 0.3);
}

.points-give-step-btn {
  width: 44px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary, #b8860b);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
  user-select: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.points-give-step-btn:hover {
  background: rgba(212, 175, 55, 0.26);
  border-color: var(--gold-primary, #d4af37);
  transform: scale(1.04);
}

.points-give-step-btn:active {
  transform: scale(0.92);
}

.points-give-amount-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.points-give-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.points-give-input {
  width: 90px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 900;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--gold-primary, #b8860b);
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: none;
}

body.theme-dark .points-give-input {
  color: #f5d77f;
}

.points-give-input::-webkit-inner-spin-button,
.points-give-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.points-give-input[type=number] {
  -moz-appearance: textfield;
}

.points-give-unit {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary, #64748b);
  text-transform: lowercase;
}

.points-give-dollars {
  font-size: 0.74rem;
  font-weight: 750;
  color: #059669;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

body.theme-dark .points-give-dollars {
  color: #34d399;
}

/* Note field */
.points-give-note-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.points-give-note-label {
  font-size: 0.70rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.points-give-note-input {
  width: 100%;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-input, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  color: var(--text-primary, #111827);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.theme-dark .points-give-note-input {
  background: #0d1017;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.points-give-note-input:focus {
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Submit Action Button */
.points-give-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.points-give-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.32);
}

.points-give-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 145, 37, 0.45);
}

.points-give-submit-btn:active {
  transform: scale(0.97);
}

/* Reward Pulse Flash on Card */
@keyframes cardRewardGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { transform: scale(1.03); box-shadow: 0 0 35px rgba(212, 175, 55, 0.7), 0 0 0 2px #d4af37; }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
}

.card-just-rewarded {
  animation: cardRewardGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================================================
   TEAM LEADERBOARD FULL-PAGE & WORKER PROFILE POINTS INTEGRATION
   ========================================================================== */

/* Direct Team Leaderboard Access Button on Points Hub */
.btn-open-leaderboard-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  margin: 12px 0;
  background: var(--surface-card, rgba(255, 255, 255, 0.96));
  border: 1px solid var(--border-gold-subtle, rgba(212, 175, 55, 0.45));
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(180, 140, 40, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  box-sizing: border-box;
}

body.theme-dark .btn-open-leaderboard-card {
  background: rgba(26, 24, 20, 0.85);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-open-leaderboard-card:active {
  transform: scale(0.975);
  box-shadow: 0 3px 10px rgba(180, 140, 40, 0.16);
  border-color: rgba(212, 175, 55, 0.75);
}

.btn-open-leaderboard-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-open-leaderboard-icon-pod {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #FFF9ED 0%, #F5E6CA 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.16);
  flex-shrink: 0;
}

body.theme-dark .btn-open-leaderboard-icon-pod {
  background: linear-gradient(145deg, #2B2519 0%, #1F1A12 100%);
  border-color: rgba(212, 175, 55, 0.3);
}

.btn-open-leaderboard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #1A1815);
  letter-spacing: -0.01em;
}

.btn-open-leaderboard-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary, #B38F2E);
  transition: transform 0.16s ease, background-color 0.16s ease;
  flex-shrink: 0;
}

.btn-open-leaderboard-card:active .btn-open-leaderboard-arrow {
  transform: translateX(3px);
  background: rgba(212, 175, 55, 0.22);
}

[dir="rtl"] .btn-open-leaderboard-card {
  text-align: right;
}

[dir="rtl"] .btn-open-leaderboard-card:active .btn-open-leaderboard-arrow {
  transform: translateX(-3px);
}

.team-leaderboard-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  animation: profilePageEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  padding-bottom: 24px;
}

.leaderboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

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

.leaderboard-worker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 14px 12px;
  cursor: pointer;
}

/* Rank Badge Pill */
.leaderboard-card-rank-tag {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

body[dir="rtl"] .leaderboard-card-rank-tag {
  right: auto;
  left: 9px;
}

.rank-badge-gold {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #1a1205;
  border: 1px solid #ffe066;
}

.rank-badge-silver {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  color: #0f172a;
  border: 1px solid #ffffff;
}

.rank-badge-bronze {
  background: linear-gradient(135deg, #fdba74 0%, #c2410c 100%);
  color: #ffffff;
  border: 1px solid #fed7aa;
}

.rank-badge-normal {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Points & Cash Pill in Card */
.leaderboard-card-pts-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
  line-height: 1.15;
}

.card-pts-val {
  font-size: 1.05rem;
  font-weight: 850;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--gold-primary);
}

.card-pts-unit {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.card-cash-val {
  font-size: 0.72rem;
  font-weight: 750;
  color: #059669;
}

body.theme-dark .card-cash-val {
  color: #34d399;
}

/* Streak info row in card */
.leaderboard-card-streak-info {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.70rem;
  font-weight: 750;
  color: var(--text-secondary);
  margin-top: 4px;
}

.card-streak-flame {
  color: #f59e0b;
}

/* Quick Add Button on Card */
.btn-leaderboard-card-add {
  margin-top: 10px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.70rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.16s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: var(--gold-primary);
}

.btn-leaderboard-card-add:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.btn-leaderboard-card-add:active {
  transform: scale(0.95);
}

/* Profile Points Summary & Action Tiles */
.profile-points-header-tile {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-points-header-tile:hover {
  border-color: var(--gold-primary);
}

.profile-header-points-summary {
  font-size: 0.76rem;
  color: var(--text-primary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-header-cash {
  color: #059669;
  font-weight: 700;
}

body.theme-dark .profile-header-cash {
  color: #34d399;
}

.btn-points-tile-add {
  padding: 4px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.28));
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-points-tile-add:hover {
  background: var(--gold-primary);
  color: #000000;
}

.btn-points-tile-add:active {
  transform: scale(0.94);
}

/* Dedicated Points & Rewards Card in Staff Profile */
.profile-points-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

body.theme-dark .profile-points-card {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.theme-gold-premium .profile-points-card {
  border: 2px solid #d4af37;
  box-shadow: 0 10px 28px rgba(184, 145, 37, 0.18);
}

.profile-points-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-points-info-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-points-big-badge {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.profile-points-balance-display {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--gold-primary);
  line-height: 1.15;
}

.profile-points-unit {
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 750;
}

.profile-points-sub-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-profile-add-pts-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #0b0f19;
  font-size: 0.78rem;
  font-weight: 850;
  border: 1px solid #ffe066;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.btn-profile-add-pts-gold:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.btn-profile-add-pts-gold:active {
  transform: scale(0.96);
}

.profile-points-presets-shelf {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.profile-points-shelf-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-profile-preset {
  padding: 5px 11px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-profile-preset:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.btn-profile-preset:active {
  transform: scale(0.94);
}

.btn-profile-preset.btn-preset-gear {
  padding: 5px 9px;
  font-size: 0.8rem;
}

/* ==========================================================================
   L'etoile Studio - Luxury Authentication & Worker Onboarding Styles
   Google Sign-In • Apple Sign-In • Minimalist Form • Worker Requests
   ========================================================================== */

.auth-fullscreen-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #faf7f0;
  background-image: url('../images/gold_theme_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: max(20px, calc(env(safe-area-inset-top, 20px) + 8px)) 16px calc(env(safe-area-inset-bottom, 20px) + 16px) 16px;
  box-sizing: border-box;
}

/* Locking & Authentication Screen is ALWAYS Pristine Luxury Gold Silk across all OS and theme modes */
.auth-fullscreen-view,
body.theme-gold-premium .auth-fullscreen-view,
body.theme-dark .auth-fullscreen-view,
body.theme-light .auth-fullscreen-view,
.auth-fullscreen-view.auth-options-view,
.auth-fullscreen-view.auth-team-app-view,
.auth-fullscreen-view:has(.auth-options-container),
.auth-fullscreen-view:has(.auth-team-app-container) {
  --text-primary: #1a1205 !important;
  --text-secondary: #5a4112 !important;
  --text-muted: #8c640e !important;
  --gold-primary: #d4af37 !important;
  --border-color: #d4af37 !important;
  --border-subtle: rgba(212, 175, 55, 0.25) !important;
  --gold-glow: rgba(212, 175, 55, 0.35) !important;
  --bg-input: rgba(255, 255, 255, 0.85) !important;
  background-color: #faf7f0 !important;
  background-image: url('../images/gold_theme_bg.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

.auth-scroll-container {
  width: 100%;
  max-width: 380px;
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom, 8px));
  box-sizing: border-box;
}

.auth-main-card-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
}

.auth-bottom-privacy-wrap {
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 4px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.auth-privacy-pill {
  font-size: 0.72rem !important;
  padding: 6px 16px !important;
  gap: 6px !important;
  font-weight: 650 !important;
  letter-spacing: 0.35px !important;
  opacity: 0.85;
}

.auth-privacy-pill:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.auth-scroll-container.auth-options-container,
.auth-scroll-container.auth-team-app-container,
.auth-scroll-container.auth-customer-container {
  width: 100%;
  max-width: 410px;
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.auth-options-container .auth-top-bar,
.auth-team-app-container .auth-top-bar,
.auth-customer-container .auth-top-bar {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.auth-options-container .auth-options-col,
.auth-team-app-container .auth-glass-card {
  margin: auto 0;
}

.auth-scroll-container:has(.auth-top-bar):not(.auth-options-container):not(.auth-team-app-container):not(.auth-customer-container) {
  margin: 0 auto;
  justify-content: flex-start;
  padding-top: 0;
}

/* Brand Header */
.auth-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  text-align: center;
  width: 100%;
}

/* 3D Gold Icon Outer Box (Stationary Luxury Emblem with Ambient Glow - Zero Pop Out) */
.auth-gold-icon-box {
  width: min(310px, calc(100vw - 44px));
  aspect-ratio: 936 / 514;
  border-radius: 28px;
  background: transparent;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: visible;
  user-select: none;
  -webkit-user-drag: none;
  cursor: default;
  transform: none !important;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.30)) drop-shadow(0 0 22px rgba(212, 175, 55, 0.45));
  animation: authGlowPulse 4s ease-in-out infinite;
}

@keyframes authGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.30)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.40));
  }
  50% {
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 32px rgba(212, 175, 55, 0.65));
  }
}

.auth-gold-icon-box:hover {
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 34px rgba(212, 175, 55, 0.65));
}

.auth-gold-icon-box:active {
  transform: none !important;
}

.auth-gold-icon-box-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 0;
}

.auth-gold-icon-box-glare {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.auth-gold-icon-box-glare::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.40) 47%,
    rgba(255, 245, 190, 0.75) 50%,
    rgba(255, 255, 255, 0.40) 53%,
    transparent 64%
  );
  mix-blend-mode: overlay;
  transform: rotate(-25deg) translateY(-120%);
  animation: authGlareSweep 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes authGlareSweep {
  0%, 25% {
    transform: rotate(-25deg) translateY(-130%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  55%, 100% {
    transform: rotate(-25deg) translateY(130%);
    opacity: 0;
  }
}

/* Gold Box Specular Glow (Pristine Atelier Glow) */
.auth-gold-icon-box,
body.theme-dark .auth-gold-icon-box,
body.theme-light .auth-gold-icon-box {
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.30)) drop-shadow(0 0 22px rgba(212, 175, 55, 0.45));
}

/* ==========================================================================
   Springboard Top Brand Jewel Button (Ultra-Top Minimalist Placement)
   ========================================================================== */
.springboard-top-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: auto;
}

.springboard-top-brand .springboard-brand-3d-box {
  width: 54px;
  height: 54px;
}

.springboard-brand-3d-box {
  width: 54px;
  height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  perspective: 800px;
  -webkit-perspective: 800px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28)) drop-shadow(0 2px 6px rgba(212, 175, 55, 0.35));
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.springboard-brand-3d-box:hover {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35)) drop-shadow(0 4px 12px rgba(212, 175, 55, 0.50));
}

.springboard-brand-3d-box:active {
  transform: translateY(2px) scale(0.95) !important;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.30)) drop-shadow(0 1px 4px rgba(212, 175, 55, 0.25)) !important;
}

.springboard-brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
  border-radius: 0;
  transition: opacity 0.18s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.springboard-brand-3d-glare {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.springboard-brand-3d-glare::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.32) 48%,
    rgba(255, 245, 190, 0.55) 50%,
    rgba(255, 255, 255, 0.32) 52%,
    transparent 62%
  );
  mix-blend-mode: overlay;
  transform: rotate(-25deg) translateY(-120%);
  animation: authGlareSweep 7s ease-in-out infinite;
  pointer-events: none;
}

/* ==========================================================================
   Luxury Theme Button & Popout Modal
   ========================================================================== */
.settings-theme-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.settings-theme-card:hover {
  transform: translateY(-1.5px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
}

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

.settings-theme-btn-thumb-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1.5px solid var(--gold-primary);
  font-size: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-theme-btn-thumb-wrap.settings-theme-thumb-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(246, 224, 123, 0.15) 100%);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.32);
}

.settings-theme-btn-thumb-wrap.settings-theme-thumb-noir {
  background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.55);
}

.settings-theme-btn-thumb-wrap.settings-theme-thumb-pearl {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8ed 100%);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
}

.settings-change-theme-btn {
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: transform 0.18s ease;
}

.settings-theme-card:hover .settings-change-theme-btn {
  transform: scale(1.04);
}

/* Theme Popout Modal */
.app-theme-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease;
  direction: ltr !important;
}

.app-theme-modal-backdrop.closing {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.app-theme-modal-card {
  background: rgba(24, 18, 12, 0.96);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1.8px solid var(--gold-primary);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 0 36px rgba(212, 175, 55, 0.25);
  max-width: 360px;
  width: 100%;
  padding: 22px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: contextMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  direction: ltr !important;
}

body.theme-dark .app-theme-modal-card {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(212, 175, 55, 0.5);
}

body.theme-gold-premium .app-theme-modal-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 248, 237, 0.96) 100%);
  border-color: #d4af37;
  box-shadow: 0 28px 70px rgba(184, 145, 37, 0.32), 0 0 36px rgba(212, 175, 55, 0.28);
}

body.theme-light .app-theme-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18), 0 0 36px rgba(212, 175, 55, 0.22);
}

.app-theme-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr !important;
}

.app-theme-modal-title {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.app-theme-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.18s ease;
}

.app-theme-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
}

.app-theme-popout-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  direction: ltr !important;
}

.app-theme-popout-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1.8px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  direction: ltr !important;
}

body.theme-gold-premium .app-theme-popout-option,
body.theme-light .app-theme-popout-option {
  background: rgba(0, 0, 0, 0.02);
}

.app-theme-popout-option:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.app-theme-popout-option:active {
  transform: scale(0.98);
}

.app-theme-popout-option.active {
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* Distinctive Luxury Option Treatments */
.app-theme-popout-option.theme-opt-gold.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(246, 224, 123, 0.08) 100%);
  border-color: #d4af37;
}

.app-theme-popout-option.theme-opt-noir.active {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-color: #d4af37;
}

.app-theme-popout-option.theme-opt-pearl.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(243, 235, 220, 0.12) 100%);
  border-color: #d4af37;
}

body.theme-gold-premium .app-theme-popout-option.theme-opt-gold.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(255, 247, 224, 0.7) 100%);
}

body.theme-gold-premium .app-theme-popout-option.theme-opt-noir.active {
  background: rgba(15, 23, 42, 0.08);
}

body.theme-gold-premium .app-theme-popout-option.theme-opt-pearl.active {
  background: rgba(255, 255, 255, 0.85);
}

/* Emblem Pods */
.app-theme-popout-emblem {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.45rem;
  border: 1.5px solid var(--border-color);
  transition: transform 0.2s ease;
}

.app-theme-popout-option:hover .app-theme-popout-emblem {
  transform: scale(1.06);
}

.theme-emblem-gold {
  background: linear-gradient(135deg, #f6e07b 0%, #d4af37 50%, #aa7c11 100%);
  border-color: #ffd700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
}

.theme-emblem-noir {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #020617 100%);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.theme-emblem-pearl {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 50%, #eee5d3 100%);
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.app-theme-popout-info {
  flex: 1;
  margin-left: 14px;
  margin-right: 14px;
  display: flex;
  flex-direction: column;
}

.app-theme-popout-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.app-theme-popout-check {
  font-size: 0.76rem;
  font-weight: 850;
  color: #1a1205;
  background: var(--gold-primary);
  padding: 3px 11px;
  border-radius: 9999px;
  display: none;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.app-theme-popout-check.visible {
  display: inline-block;
}

/* ==========================================================================
   Luxury App Logo Button & Popout Modal
   ========================================================================== */
.settings-logo-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.settings-logo-card:hover {
  transform: translateY(-1.5px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
}

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

.settings-logo-btn-thumb-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.32));
}

.settings-logo-btn-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1.5px solid var(--gold-primary);
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

body.theme-gold-premium .settings-logo-btn-thumb,
body.theme-light .settings-logo-btn-thumb {
  background: rgba(255, 255, 255, 0.65);
}

.settings-change-logo-btn {
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: transform 0.18s ease;
}

.settings-logo-card:hover .settings-change-logo-btn {
  transform: scale(1.04);
}

/* App Logo Popout Modal */
.app-logo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease;
}

.app-logo-modal-backdrop.closing {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.app-logo-modal-card {
  background: rgba(26, 20, 14, 0.94);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1.8px solid var(--gold-primary);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 0 36px rgba(212, 175, 55, 0.25);
  max-width: 340px;
  width: 100%;
  padding: 22px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: contextMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-dark .app-logo-modal-card {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(212, 175, 55, 0.5);
}

body.theme-gold-premium .app-logo-modal-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 248, 237, 0.96) 100%);
  border-color: #d4af37;
  box-shadow: 0 28px 70px rgba(184, 145, 37, 0.32), 0 0 36px rgba(212, 175, 55, 0.28);
}

body.theme-light .app-logo-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18), 0 0 36px rgba(212, 175, 55, 0.22);
}

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

.app-logo-modal-title {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.app-logo-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.18s ease;
}

.app-logo-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
}

.app-logo-popout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.app-logo-popout-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1.8px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

body.theme-gold-premium .app-logo-popout-option,
body.theme-light .app-logo-popout-option {
  background: rgba(0, 0, 0, 0.02);
}

.app-logo-popout-option:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.18);
}

.app-logo-popout-option:active {
  transform: scale(0.96);
}

.app-logo-popout-option.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.app-logo-popout-icon {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.app-logo-popout-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-logo-popout-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.app-logo-popout-check {
  font-size: 0.72rem;
  font-weight: 850;
  color: #1a1205;
  background: var(--gold-primary);
  padding: 2px 10px;
  border-radius: 9999px;
  display: none;
}

.app-logo-popout-check.visible {
  display: inline-block;
}

/* ==========================================================================
   Luxury Language Button & Popout Modal
   ========================================================================== */
.settings-language-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.settings-language-card:hover {
  transform: translateY(-1.5px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
}

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

.settings-language-btn-thumb-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  font-size: 1.6rem;
  color: var(--gold-primary);
}

body.theme-gold-premium .settings-language-btn-thumb-wrap,
body.theme-light .settings-language-btn-thumb-wrap {
  background: rgba(255, 255, 255, 0.7);
}

.settings-language-logo-svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-primary);
  display: block;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.35));
}

.settings-change-language-btn {
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: transform 0.18s ease;
}

.settings-language-card:hover .settings-change-language-btn {
  transform: scale(1.04);
}

/* Language Popout Modal */
.app-language-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000005; /* Must sit higher than auth-fullscreen-view (99999) */
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease;
  direction: ltr !important;
}

.app-language-modal-backdrop.closing {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.app-language-modal-card {
  background: rgba(26, 20, 14, 0.94);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1.8px solid var(--gold-primary);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 0 36px rgba(212, 175, 55, 0.25);
  max-width: 350px;
  width: 100%;
  padding: 22px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: contextMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  direction: ltr !important;
}

body.theme-dark .app-language-modal-card {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(212, 175, 55, 0.5);
}

body.theme-gold-premium .app-language-modal-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 248, 237, 0.96) 100%);
  border-color: #d4af37;
  box-shadow: 0 28px 70px rgba(184, 145, 37, 0.32), 0 0 36px rgba(212, 175, 55, 0.28);
}

body.theme-light .app-language-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18), 0 0 36px rgba(212, 175, 55, 0.22);
}

.app-language-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr !important;
}

.app-language-modal-title {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.app-language-modal-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: all 0.18s ease;
  padding: 0;
}

.app-language-modal-back:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
}

.app-language-modal-back:active {
  transform: scale(0.92);
}

.app-language-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.18s ease;
}

.app-language-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
}

.app-language-popout-grid,
.app-dialect-popout-grid {
  display: grid;
  direction: ltr !important;
}

.app-language-popout-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.app-dialect-popout-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.app-language-popout-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1.8px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 10px;
  min-height: 84px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

body.theme-gold-premium .app-language-popout-option,
body.theme-light .app-language-popout-option {
  background: rgba(0, 0, 0, 0.02);
}

.app-language-popout-option:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.18);
}

.app-language-popout-option:active {
  transform: scale(0.96);
}

.app-language-popout-option.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.app-language-popout-flag {
  display: none;
}

.app-language-popout-name {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  text-align: center;
  line-height: 1.25;
}

.app-language-popout-check {
  font-size: 0.72rem;
  font-weight: 850;
  color: #1a1205;
  background: var(--gold-primary);
  padding: 2px 10px;
  border-radius: 9999px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: scale(0.85);
  height: 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-language-popout-check.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ==========================================================================
   Luxury Authentication - Top Action Bar & Popout Language Switcher Button
   ========================================================================== */
.auth-easter-egg-leaf {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  z-index: 9999;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.auth-main-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 6px;
  padding: 0 4px;
  box-sizing: border-box;
  flex-shrink: 0;
  direction: ltr !important;
}

body.lang-ar .auth-main-top-bar {
  direction: rtl !important;
}

.auth-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 8px rgba(212, 175, 55, 0.10);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  direction: ltr !important;
}

.auth-lang-btn,
body.theme-gold-premium .auth-lang-btn,
body.theme-dark .auth-lang-btn,
body.theme-light .auth-lang-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 248, 237, 0.90) 100%);
  border-color: #d4af37;
  color: #1a1205;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.18), 0 0 8px rgba(212, 175, 55, 0.16);
}

.auth-lang-btn:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}

.auth-lang-btn:active {
  transform: scale(0.95);
}

.auth-lang-name {
  line-height: 1;
  font-weight: 850;
}

.auth-lang-chevron {
  color: var(--gold-primary);
  opacity: 0.85;
  transition: transform 0.2s ease;
  width: 7px;
  height: 7px;
}

.auth-lang-btn:hover .auth-lang-chevron {
  opacity: 1;
  transform: translateY(1px);
}

/* Compact circular language button (used in auth sub-navigation bars) */
.auth-lang-btn--compact {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 850;
}
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-lang-btn--compact .auth-lang-flag {
  font-size: 1.15rem;
}

.auth-star-crest-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 247, 235, 0.85) 100%);
  border: 1.8px solid var(--gold-primary);
  box-shadow: 0 8px 24px var(--gold-glow), inset 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.auth-star-crest-icon {
  filter: drop-shadow(0 2px 6px rgba(184, 134, 11, 0.35));
  animation: authStarFloat 4s ease-in-out infinite;
}

@keyframes authStarFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

.auth-atelier-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin: 0;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* Segmented Switcher Capsule (1-3 Words) */
.auth-segment-capsule {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.2px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 280px;
}

.auth-segment-btn {
  flex: 1;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 750;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.auth-segment-btn.active {
  background: var(--gold-primary);
  color: #1a1205 !important;
  box-shadow: 0 3px 12px var(--gold-glow);
}

/* Frosted Glass Auth Card (Google & Apple Box - High Premium) */
.auth-glass-card,
body.theme-dark .auth-glass-card,
body.theme-light .auth-glass-card {
  width: 100%;
  background: rgba(255, 253, 245, 0.96) !important;
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1.8px solid var(--gold-primary) !important;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(184, 145, 37, 0.24), 0 4px 14px rgba(0, 0, 0, 0.04), inset 0 1.5px 0 #ffffff !important;
  padding: 24px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Apple & Google Sign-In Buttons (Authentic HIG Standards & Luxury Polish) */
.btn-auth-apple,
.btn-auth-google {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, sans-serif;
  font-size: 1.0rem;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-sizing: border-box;
  text-decoration: none;
  letter-spacing: -0.2px;
  margin: 0;
}

.btn-auth-apple {
  background: #000000;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.btn-auth-apple:hover {
  background: #111111;
  transform: translateY(-1.5px) scale(1.005);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.btn-auth-apple:active {
  transform: scale(0.985);
  opacity: 0.92;
  background: #1c1c1e;
}

.apple-auth-logo {
  flex-shrink: 0;
  filter: none;
  display: block;
}

.btn-auth-google {
  background: #ffffff;
  color: #1f1f1f !important;
  border: 1.2px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 4px 16px rgba(184, 145, 37, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-auth-google:hover {
  transform: translateY(-1.5px) scale(1.005);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 22px rgba(184, 145, 37, 0.22), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-auth-google:active {
  transform: scale(0.985);
  background: #f8f9fa;
}


.google-auth-logo {
  flex-shrink: 0;
  display: block;
}

.btn-auth-full {
  margin-top: 14px;
  margin-bottom: 0;
}

/* Minimalist Divider */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 18px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.auth-divider-star {
  font-size: 0.72rem;
  color: var(--gold-primary);
}

/* Option Page & Step Navigation */
.auth-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}

.auth-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.2px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}


.auth-back-btn:active {
  transform: scale(0.92);
}

.auth-page-title-pill {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}


.auth-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.12);
  border: 1.2px solid var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 18px;
}

/* Option Cards (Apply for Team vs Customer) */
.auth-options-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.auth-option-card {
  width: 100%;
  min-height: 94px;
  background: rgba(255, 253, 245, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.8px solid var(--gold-primary);
  border-radius: 24px;
  padding: 22px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 24px rgba(184, 145, 37, 0.14);
  text-align: left;
}


.auth-option-card:hover:not(.is-disabled),
.auth-option-card:active:not(.is-disabled) {
  transform: translateY(-2px) scale(0.99);
  box-shadow: 0 14px 32px rgba(184, 145, 37, 0.25);
  border-color: var(--star-gold);
}

.auth-option-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.auth-option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.auth-option-title {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin: 0;
  line-height: 1.25;
}

.auth-option-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-primary);
}

.auth-option-arrow {
  font-size: 1.35rem;
  color: var(--gold-primary);
  font-weight: 700;
  transition: transform 0.2s;
}

.auth-option-card:hover:not(.is-disabled) .auth-option-arrow {
  transform: translateX(3px);
}

/* Disabled Customer Option Card */
.auth-option-card.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: none;
  filter: grayscale(0.2);
}

.auth-option-card.is-disabled .auth-option-icon-wrap {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-color);
}

.auth-option-card.is-disabled .auth-option-badge {
  color: var(--text-muted);
}

/* Minimalist Visual-First Form (Zero Placeholders, 1-3 Word Labels) */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.auth-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.auth-input,
.auth-select {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--gold-primary);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: normal;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (max-width: 768px) {
  .auth-input,
  .auth-select {
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom on mobile */
  }
}

.auth-input:focus,
.auth-select:focus {
  border-color: var(--star-gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Role Toggle Capsules */
.auth-role-capsules {
  display: flex;
  gap: 8px;
}

.auth-role-pill {
  flex: 1;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-role-pill.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
  color: var(--text-primary);
  font-weight: 850;
  box-shadow: 0 2px 8px var(--gold-glow);
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-top: 6px;
  cursor: pointer;
}

/* Quick Access Bottom Dock (Balanced Harmonious Centering) */
.auth-bottom-quick-access {
  margin-top: 28px;
  padding-top: 0;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.auth-quick-access-label {
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.78;
}

.auth-demo-pills-bar {
  display: flex;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.auth-demo-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.2px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.auth-demo-pill:hover,
.auth-demo-pill:active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px var(--gold-glow);
  transform: translateY(-2px);
}



/* ==========================================================================
   Pending Approval Waiting Screen (Worker Signup Waiting View)
   ========================================================================== */
.pending-status-card {
  width: 100%;
  background: rgba(255, 253, 245, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1.8px solid var(--gold-primary);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(184, 145, 37, 0.22), inset 0 1px 0 #ffffff;
  padding: 32px 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.theme-dark .pending-status-card {
  background: rgba(19, 22, 31, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.pending-icon-aura {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: pendingPulse 3s ease-in-out infinite;
}

@keyframes pendingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35); }
  50% { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0); }
}

.pending-icon-glyph {
  font-size: 2.2rem;
}

.pending-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.pending-badge-sent {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(251, 191, 36, 0.15);
  border: 1.2px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 850;
  color: var(--gold-primary);
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}

.pending-profile-box {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  box-sizing: border-box;
  text-align: left;
}

.pending-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.pending-label {
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.pending-value {
  color: var(--text-primary);
  font-weight: 800;
}

.pending-value.is-pending {
  color: var(--gold-primary);
}

.pending-actions-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending-action-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   Worker Applications Shelf in Requests View (Jessi Super Admin)
   ========================================================================== */
.worker-requests-admin-section {
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(255, 253, 245, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.8px solid var(--gold-primary);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(184, 145, 37, 0.16);
}

body.theme-dark .worker-requests-admin-section {
  background: rgba(19, 22, 31, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.worker-requests-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.worker-requests-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.worker-requests-title {
  font-size: 0.94rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.2px;
}

.badge-gold-glow {
  background: rgba(251, 191, 36, 0.18);
  border: 1.2px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.worker-requests-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.worker-applicant-card {
  background: var(--bg-input);
  border: 1.2px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}

.applicant-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.applicant-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.applicant-avatar-initials {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--gold-primary);
}

.applicant-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.applicant-provider-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-primary);
}

.applicant-provider-badge.google {
  background: #ffffff;
  color: #4285F4;
  font-weight: 900;
}

.applicant-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.applicant-name {
  font-size: 0.92rem;
  font-weight: 850;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-role-tag {
  display: none !important;
}

.applicant-contact-phone {
  display: block;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.applicant-contact-phone:hover {
  color: var(--gold-primary);
}

.applicant-contact-email {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.85;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.applicant-contact-email:hover {
  color: var(--gold-primary);
}

.applicant-contact-line {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-actions-row {
  display: flex;
  gap: 8px;
}

.btn-applicant-accept {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.2px solid #10b981;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-applicant-accept:active {
  transform: scale(0.97);
}

.btn-applicant-decline {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.2px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-applicant-decline:active {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

/* ==========================================================================
   Interactive OAuth & Rate Approval Modals
   ========================================================================== */
.luxury-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.oauth-sheet,
.worker-approval-sheet {
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1.8px solid var(--gold-primary);
  border-radius: 24px;
  box-shadow: var(--shadow-floating);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.oauth-sheet-header,
.approval-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px 18px;
  border-bottom: 1px solid var(--border-color);
}

.oauth-sheet-title,
.approval-sheet-title {
  font-size: 0.98rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
}

.oauth-sheet-body,
.approval-sheet-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oauth-account-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.oauth-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.oauth-account-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.oauth-account-email {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.applicant-summary-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 4px;
}

.applicant-summary-name {
  font-size: 0.92rem;
  font-weight: 850;
  color: var(--text-primary);
}

.applicant-summary-role {
  font-size: 0.74rem;
  color: var(--gold-primary);
  font-weight: 750;
}

.rate-config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.approval-sheet-actions {
  margin-top: 6px;
}

/* ==========================================================================
   ASSIGN REDESIGN: 3D FLOATING WORKER CARDS & SCHEDULE FLOW
   ========================================================================== */

.assign-top-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 4px 0 12px 0;
  width: 100%;
  box-sizing: border-box;
}

.qa-crew-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.1);
  user-select: none;
}

body.theme-gold-premium .qa-crew-status-badge {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow: 0 2px 10px rgba(184, 145, 37, 0.14);
}

body.theme-dark .qa-crew-status-badge {
  background: rgba(22, 26, 36, 0.82);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.theme-light .qa-crew-status-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(229, 231, 235, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.qa-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  transition: all 0.22s ease;
}

.qa-status-dot.is-active {
  background: #caa030;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.85);
}

.qa-status-text {
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

body.theme-gold-premium .qa-status-text {
  color: #3d2e0a;
}

.qa-header-date-badge {
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--gold-primary, #d4af37);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.32);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qa-header-date-badge:hover,
.qa-header-date-badge:active {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.50);
  transform: scale(0.98);
}

.qa-toggle-all-btn {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--text-secondary, #6b7280);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

body.theme-light .qa-toggle-all-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(200, 150, 40, 0.28);
  color: #554420;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .qa-toggle-all-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #d1d5db;
}

body.theme-gold-premium .qa-toggle-all-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  color: #3d2e0a;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.12);
}

.qa-toggle-all-btn:hover {
  transform: translateY(-1px);
}

.qa-toggle-all-btn:active {
  transform: scale(0.96);
}

.qa-toggle-all-btn.is-all {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.6) !important;
  color: #caa030 !important;
  font-weight: 850;
}

body.theme-gold-premium .qa-toggle-all-btn.is-all {
  background: linear-gradient(135deg, rgba(252, 233, 184, 0.5) 0%, rgba(202, 160, 48, 0.4) 100%) !important;
  border-color: #caa030 !important;
  color: #1a1205 !important;
  box-shadow: 0 2px 10px rgba(184, 145, 37, 0.22) !important;
}

body.theme-light .qa-toggle-all-btn.is-all {
  background: #fbf0d0 !important;
  border-color: #d4af37 !important;
  color: #1a1205 !important;
}

.qa-header-count-muted {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-secondary, #6b7280);
  opacity: 0.8;
  padding-right: 6px;
}

.qa-header-schedule-btn,
body.theme-light .qa-header-schedule-btn,
body.theme-dark .qa-header-schedule-btn,
body.theme-gold-premium .qa-header-schedule-btn {
  background: linear-gradient(135deg, #fce9b8, #caa030) !important;
  color: #1a1508 !important;
  font-weight: 850;
  font-size: 0.80rem;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.qa-header-schedule-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.55);
}

.qa-header-schedule-btn:active {
  transform: scale(0.96);
}

.worker-assign-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 2px;
  margin-bottom: 24px;
  box-sizing: border-box !important;
}

@media (max-width: 340px) {
  .worker-assign-cards-grid {
    gap: 8px !important;
  }
}

.worker-assign-card {
  position: relative;
  overflow: hidden !important;
  padding: 18px 8px 16px 8px !important;
  border-radius: 24px !important;
  min-height: 150px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.worker-assign-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
}

.worker-assign-card:active {
  transform: translateY(1px) scale(0.97) !important;
}

/* Liquid Glass Gilded Porcelain across Themes */
body.theme-gold-premium .worker-assign-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(253, 248, 237, 0.84) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 30px rgba(184, 145, 37, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1.5px 2px #ffffff !important;
}

body.theme-gold-premium .worker-assign-card:hover {
  border-color: rgba(212, 175, 55, 0.6) !important;
  box-shadow: 0 16px 38px rgba(184, 145, 37, 0.28), 0 0 22px rgba(212, 175, 55, 0.25), inset 0 1.5px 2px #ffffff !important;
}

body.theme-gold-premium .worker-assign-card.is-selected {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 245, 222, 0.94) 100%) !important;
  border: 2px solid #caa030 !important;
  box-shadow: 0 14px 36px rgba(184, 145, 37, 0.42), 0 0 26px rgba(212, 175, 55, 0.42), inset 0 2px 0 #ffffff !important;
  transform: translateY(-3px) scale(1.02) !important;
}

body.theme-dark .worker-assign-card {
  background: linear-gradient(145deg, rgba(28, 33, 46, 0.88) 0%, rgba(17, 20, 28, 0.78) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.1) !important;
}

body.theme-dark .worker-assign-card.is-selected {
  border-color: #e5c158 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 26px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-3px) scale(1.02) !important;
}

body.theme-light .worker-assign-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.5px solid rgba(229, 231, 235, 0.9) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), inset 0 1px 1px #ffffff !important;
}

body.theme-light .worker-assign-card.is-selected {
  border: 2px solid #d4af37 !important;
  box-shadow: 0 12px 30px rgba(184, 145, 37, 0.22), 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-3px) scale(1.02) !important;
}

/* Corner Selection Checkbox Badge */
.assign-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 900;
  border: 1.5px solid rgba(200, 160, 60, 0.38);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

body.theme-dark .assign-card-check {
  background: rgba(20, 24, 34, 0.75);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.theme-light .assign-card-check {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(209, 213, 219, 0.9);
}

body .assign-card-check.is-checked,
body.theme-dark .assign-card-check.is-checked,
body.theme-light .assign-card-check.is-checked,
body.theme-gold-premium .assign-card-check.is-checked {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  color: #1a1508 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(184, 145, 37, 0.5), 0 0 12px rgba(212, 175, 55, 0.5) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  transform: scale(1.05);
}

body.theme-dark .assign-card-check.is-checked {
  border-color: #13161f !important;
}

/* Haute Couture Avatar Pod for Assign */
.worker-assign-card .worker-icon-avatar-pod {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
  border-radius: 20px;
}

body.theme-gold-premium .worker-assign-card .worker-icon-avatar-pod {
  background: linear-gradient(135deg, #fffcf5 0%, #fcedc5 42%, #e8ba50 85%, #d19a28 100%);
  border: 1.8px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.28), inset 0 2px 2px rgba(255, 255, 255, 0.9), inset 0 -2px 3px rgba(160, 115, 20, 0.18);
}

body.theme-gold-premium .worker-assign-card .worker-icon-avatar-pod .worker-initials-text {
  color: #4a3205;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.worker-assign-card .worker-icon-name {
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worker-icon-role-badge {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

body.theme-gold-premium .worker-icon-role-badge {
  color: #786036;
}

body.theme-dark .worker-icon-role-badge {
  color: #9ca3af;
}

body.theme-light .worker-icon-role-badge {
  color: #6b7280;
}

.qa-floating-btn.is-prompt {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 240, 215, 0.92) 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.55) !important;
  color: #3d2e0a !important;
  box-shadow: 0 8px 24px rgba(184, 145, 37, 0.22), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.qa-floating-btn.is-prompt:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fdf2d6 100%) !important;
  border-color: #caa030 !important;
}

.quick-assign-container {
  padding-bottom: 96px;
}

/* Minimalist Rate Pill */
.assign-card-rate-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
  white-space: nowrap;
}

body.theme-dark .assign-card-rate-pill {
  background: rgba(212, 175, 55, 0.12);
  color: #e5c158;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

body.theme-light .assign-card-rate-pill {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

body.theme-gold-premium .assign-card-rate-pill {
  background: rgba(200, 149, 40, 0.14);
  color: #695028;
  border: 1px solid rgba(200, 149, 40, 0.3);
}

/* Empty Selection Banner */
.assign-empty-selection-banner {
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

body.theme-dark .assign-empty-selection-banner {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(212, 175, 55, 0.3);
  color: rgba(255, 255, 255, 0.65);
}

body.theme-light .assign-empty-selection-banner {
  background: #f9fafb;
  border: 1.5px dashed #d1d5db;
  color: #6b7280;
}

body.theme-gold-premium .assign-empty-selection-banner {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px dashed #caa030;
  color: #695028;
}

.assign-banner-icon {
  font-size: 1.6rem;
}

.assign-banner-text {
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

/* Schedule Card (Step-by-Step) */
.assign-schedule-card {
  border-radius: 24px;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

body.theme-dark .assign-schedule-card {
  background: #13161f;
  border: 1.2px solid rgba(212, 175, 55, 0.42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

body.theme-light .assign-schedule-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

body.theme-gold-premium .assign-schedule-card {
  background: #ffffff;
  border: 2px solid #d4af37;
  box-shadow: 0 12px 30px rgba(184, 145, 37, 0.22);
}

/* Shift Type Switcher (Event / Pickup / Hours) */
.qa-type-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.qa-type-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-weight: 850;
  font-size: 0.82rem;
  color: var(--text-primary);
  box-sizing: border-box;
}

.qa-type-tab:hover {
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.qa-type-tab:active {
  transform: scale(0.96);
}

.qa-type-tab.is-active {
  background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #aa820a));
  color: #000000;
  border-color: var(--gold-primary);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

body.theme-dark .qa-type-tab.is-active {
  color: #000000;
}

.qa-type-tab-icon {
  font-size: 1.25rem;
}

.qa-type-tab-label {
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Floating Action Pill for Mobile Ergonomics */
.qa-floating-action-bar {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  animation: qaFloatIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.qa-floating-btn,
body.theme-light .qa-floating-btn,
body.theme-dark .qa-floating-btn,
body.theme-gold-premium .qa-floating-btn {
  pointer-events: auto;
  background: linear-gradient(135deg, #fce9b8, #caa030) !important;
  color: #1a1508 !important;
  font-weight: 850;
  font-size: 0.90rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(212, 175, 55, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qa-floating-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 175, 55, 0.55);
}

.qa-floating-btn:active {
  transform: scale(0.96);
}

.qa-floating-action-bar.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
  transition: opacity 0.22s ease, transform 0.22s ease !important;
}

/* ==========================================================================
   ASSIGN POPOUT MODAL WITH SMART TABS
   ========================================================================== */
.assign-popout-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: qaFadeIn 0.22s ease-out;
}

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

@media (min-width: 601px) {
  .assign-popout-overlay {
    align-items: center;
    padding: 20px;
  }
}

.assign-popout-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: qaSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@media (min-width: 601px) {
  .assign-popout-sheet {
    border-radius: 24px;
    max-height: 82vh;
    animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes qaSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

body.theme-dark .assign-popout-sheet {
  background: #11141d;
  border-top: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 175, 55, 0.2);
}

@media (min-width: 601px) {
  body.theme-dark .assign-popout-sheet {
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.25);
  }
}

body.theme-light .assign-popout-sheet {
  background: #ffffff;
  border-top: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.18);
}

@media (min-width: 601px) {
  body.theme-light .assign-popout-sheet {
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  }
}

body.theme-gold-premium .assign-popout-sheet {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border-top: 2px solid #d4af37;
  box-shadow: 0 -12px 40px rgba(184, 145, 37, 0.28), 0 0 30px rgba(212, 175, 55, 0.25);
}

@media (min-width: 601px) {
  body.theme-gold-premium .assign-popout-sheet {
    border: 2px solid #d4af37;
    box-shadow: 0 24px 60px rgba(184, 145, 37, 0.35), 0 0 35px rgba(212, 175, 55, 0.25);
  }
}

.assign-modal-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.3);
  margin: 8px auto 0;
  flex-shrink: 0;
}

@media (min-width: 601px) {
  .assign-modal-drag-handle {
    display: none;
  }
}

.assign-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  min-height: 46px;
  box-sizing: border-box;
}

body.theme-dark .assign-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.qa-header-back-btn {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-primary, #caa030);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  margin: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.qa-header-back-btn:hover {
  color: var(--text-primary);
  background: var(--bg-input, rgba(0, 0, 0, 0.06));
}

.qa-header-back-btn:active {
  transform: scale(0.92);
}

body.theme-dark .qa-header-back-btn {
  color: #ffd875;
}

body.theme-dark .qa-header-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.assign-modal-crew-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assign-modal-avatars-pod {
  display: flex;
  align-items: center;
}

.assign-modal-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-card, #ffffff);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.assign-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assign-modal-avatar .worker-initials-text {
  font-size: 0.72rem;
  font-weight: 850;
  color: #1a1508;
}

.assign-modal-more-badge {
  font-size: 0.70rem;
  font-weight: 850;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.35);
  margin-left: 4px;
}

.assign-modal-crew-title {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.assign-modal-close-btn {
  margin-inline-start: auto;
}

/* SMART TABS: LUXURY SEGMENTED CONTROL */
.assign-modal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 10px 18px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

body.theme-dark .assign-modal-tabs {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.25);
}

body.theme-gold-premium .assign-modal-tabs {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
}

.assign-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

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

.assign-tab-btn.is-active,
body.theme-light .assign-tab-btn.is-active,
body.theme-dark .assign-tab-btn.is-active,
body.theme-gold-premium .assign-tab-btn.is-active {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  color: #1a1508 !important;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35) !important;
  font-weight: 850 !important;
}

/* UNIFIED SHIFT SELECTOR (STUDIO | SETUP | STRIKE) */
.qa-shift-segmented-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

body.theme-dark .qa-shift-segmented-bar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.25);
}

body.theme-gold-premium .qa-shift-segmented-bar {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
}

.qa-shift-seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 750;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.qa-shift-seg-btn:hover {
  color: var(--text-primary);
}

.qa-shift-seg-btn.is-active,
body.theme-light .qa-shift-seg-btn.is-active,
body.theme-dark .qa-shift-seg-btn.is-active,
body.theme-gold-premium .qa-shift-seg-btn.is-active {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  color: #1a1508 !important;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35) !important;
  font-weight: 850 !important;
}

.qa-shift-seg-btn:active {
  transform: scale(0.97);
}

.qa-atelier-badge-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-primary);
}

body.theme-dark .qa-atelier-badge-bar {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
}

.qa-event-single-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px dashed rgba(212, 175, 55, 0.3);
}

/* SCROLLABLE MODAL BODY */
.assign-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

/* STICKY MODAL FOOTER */
.assign-modal-footer {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--bg-card);
  flex-shrink: 0;
}

body.theme-dark .assign-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Quick Assign Sub-View (Minimalist Visual-First UI)
   ========================================================================== */
.quick-assign-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 6px 0 calc(90px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.quick-assign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.quick-assign-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-assign-title {
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  font-size: 1.40rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.quick-assign-badge {
  font-size: 0.70rem;
  font-weight: 850;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--gold-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-assign-date-pill {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.quick-assign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.qa-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-dark .qa-section {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.qa-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

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

.qa-section-title {
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #6b7280);
}

.qa-all-toggle-btn {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.qa-all-toggle-btn.is-active {
  background: var(--gold-primary);
  color: #000000;
}

/* Worker Pods Row */
.qa-workers-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.qa-workers-row::-webkit-scrollbar {
  display: none;
}

.qa-worker-pod {
  min-width: 80px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 8px;
  border-radius: 18px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
}

.qa-worker-pod:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.qa-worker-pod:active {
  transform: scale(0.96);
}

.qa-worker-pod.is-selected {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.28);
  transform: scale(1.02);
}

.qa-worker-pod.qa-all-pod {
  border-style: dashed;
}

.qa-worker-pod.qa-all-pod .qa-worker-avatar-initials {
  background: rgba(212, 175, 55, 0.16);
  font-size: 1.15rem;
}

.qa-worker-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: visible;
}

.qa-worker-avatar-img,
.qa-worker-avatar-initials {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.qa-worker-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-weight: 850;
  font-size: 0.92rem;
  color: var(--gold-primary);
}

.qa-check-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000000;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.qa-worker-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
}

.qa-worker-status-tag {
  font-size: 0.62rem;
  font-weight: 750;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.qa-worker-status-tag.is-booked {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

/* Multi-Day Pills Row */
.qa-day-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.qa-day-pills-row::-webkit-scrollbar {
  display: none;
}

.qa-day-pill {
  flex: 0 0 auto;
  min-width: 62px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: var(--bg-card, #ffffff);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 8px;
  user-select: none;
  box-sizing: border-box;
}

body.theme-light .qa-day-pill,
body.theme-gold-premium .qa-day-pill {
  background: #ffffff;
  border: 1px solid rgba(200, 150, 40, 0.22);
}

body.theme-dark .qa-day-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.qa-day-pill:active {
  transform: scale(0.96);
}

.qa-day-pill.is-active,
body.theme-light .qa-day-pill.is-active,
body.theme-dark .qa-day-pill.is-active,
body.theme-gold-premium .qa-day-pill.is-active {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  border-color: #caa030 !important;
  color: #1a1508 !important;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.35) !important;
  transform: translateY(-1px);
}

.qa-day-pill-name {
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
}

.qa-day-pill-sub {
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.1;
}

.qa-custom-date-pill {
  position: relative;
  flex: 0 0 auto;
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.qa-custom-date-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.qa-dates-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qa-clear-dates-btn {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qa-clear-dates-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Duration Capsules Row */
.qa-duration-capsules-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.qa-duration-capsules-row::-webkit-scrollbar {
  display: none;
}

.qa-duration-capsule {
  flex: 1;
  min-width: 44px;
  height: 38px;
  border-radius: 11px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 850;
  cursor: pointer;
  transition: all 0.18s ease;
}

.qa-duration-capsule:hover {
  border-color: var(--gold-primary);
}

.qa-duration-capsule.is-active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* Date Pills (Legacy Support) */
.qa-date-pills-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qa-date-pill {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.qa-date-pill.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.qa-custom-date-btn {
  position: relative;
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.18s ease;
}

.qa-custom-date-btn.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.qa-hidden-date-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Events List */
.qa-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-event-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.qa-event-option-card:hover {
  border-color: var(--gold-primary);
}

.qa-event-option-card.is-selected {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.18);
}

.qa-event-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.qa-event-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.qa-event-type-line {
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  font-size: 1.02rem;
  font-weight: 850;
  color: var(--text-primary);
}

.qa-event-name-line {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--gold-primary);
}

.qa-event-venue-line {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Time Pills Grid */
.qa-time-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.qa-time-pill {
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: var(--bg-card, #ffffff);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

body.theme-light .qa-time-pill,
body.theme-gold-premium .qa-time-pill {
  background: #ffffff;
  border: 1px solid rgba(200, 150, 40, 0.22);
}

body.theme-dark .qa-time-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.qa-time-pill:hover {
  border-color: #caa030;
  color: var(--text-primary);
}

.qa-time-pill.is-active,
body.theme-light .qa-time-pill.is-active,
body.theme-dark .qa-time-pill.is-active,
body.theme-gold-premium .qa-time-pill.is-active {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  border-color: #caa030 !important;
  color: #1a1508 !important;
  font-weight: 850 !important;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35) !important;
}

.qa-custom-time-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 11px;
  padding: 5px 12px;
}

body.theme-light .qa-custom-time-row,
body.theme-gold-premium .qa-custom-time-row {
  background: #ffffff;
}

body.theme-dark .qa-custom-time-row {
  background: rgba(255, 255, 255, 0.03);
}

.qa-custom-time-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.qa-custom-time-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  outline: none;
}

/* Pick Up Segmented Bar */
.qa-pickup-segmented-bar {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

body.theme-dark .qa-pickup-segmented-bar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.25);
}

body.theme-gold-premium .qa-pickup-segmented-bar {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
}

.qa-pickup-seg-btn {
  flex: 1;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.80rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.qa-pickup-seg-btn.is-active {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  color: #1a1508 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35) !important;
  font-weight: 850;
}

.qa-pickup-seg-btn.is-active.is-tbd {
  background: linear-gradient(135deg, #fed7aa 0%, #f97316 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35) !important;
}

/* Notes Input */
.qa-input-wrap {
  width: 100%;
}

.qa-notes-input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

body.theme-light .qa-notes-input,
body.theme-gold-premium .qa-notes-input {
  background: #ffffff;
  border: 1px solid rgba(200, 150, 40, 0.25);
}

.qa-notes-input:focus {
  border-color: #caa030;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Submit Button */
.btn-quick-assign-submit,
body.theme-light .btn-quick-assign-submit,
body.theme-dark .btn-quick-assign-submit,
body.theme-gold-premium .btn-quick-assign-submit {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  color: #1a1508 !important;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-quick-assign-submit svg,
.btn-quick-assign-delete svg {
  flex-shrink: 0;
}

.btn-quick-assign-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.5);
}

.btn-quick-assign-submit:active {
  transform: scale(0.97);
}

.btn-quick-assign-submit.is-disabled,
.btn-quick-assign-submit:disabled {
  opacity: 0.40;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
  filter: grayscale(0.5);
}

.qa-step-footer-split {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
}

.btn-quick-assign-delete {
  flex: 0 0 auto;
  min-width: 110px;
  height: 50px;
  border-radius: 999px;
  border: 1.5px solid rgba(220, 53, 69, 0.45);
  background: rgba(220, 53, 69, 0.10);
  color: #d9383a;
  font-size: 0.90rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  white-space: nowrap;
}

body.theme-dark .btn-quick-assign-delete {
  background: rgba(220, 53, 69, 0.18);
  border-color: rgba(220, 53, 69, 0.55);
  color: #ff6b6b;
}

.btn-quick-assign-delete:hover {
  background: rgba(220, 53, 69, 0.22);
  border-color: #d9383a;
  transform: translateY(-1px);
}

.btn-quick-assign-delete:active {
  transform: scale(0.97);
}

.qa-step-footer-split .btn-quick-assign-delete {
  flex: 1 !important;
  min-width: 0 !important;
}

.qa-step-footer-split .btn-quick-assign-submit {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Roster Section */
.qa-roster-section {
  display: none !important;
}

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

.qa-roster-title {
  font-size: 0.94rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0;
}

.qa-btn-goto-calendar {
  font-size: 0.78rem;
  font-weight: 850;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}

.qa-btn-goto-calendar:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.qa-roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-roster-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.qa-roster-worker-col {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.qa-roster-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-primary);
  font-weight: 900;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-roster-worker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qa-roster-worker-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.qa-roster-date-tag {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.qa-roster-date-tag.is-today {
  color: #2ecc71;
}

.qa-roster-date-tag.is-tomorrow {
  color: var(--gold-primary);
}

.qa-roster-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qa-roster-event-title {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qa-roster-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qa-roster-pickup-pill {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
}

.qa-roster-pickup-pill.is-tbd {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
}

.qa-roster-note-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-secondary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-roster-actions-col {
  margin-left: auto;
}

.qa-roster-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.qa-roster-remove-btn:hover {
  background: rgba(231, 76, 60, 0.25);
  transform: scale(1.05);
}

.qa-roster-empty {
  padding: 20px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px dashed var(--border-color);
}

@media (max-width: 480px) {
  .qa-time-pills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .qa-time-pill {
    height: 36px;
    font-size: 0.74rem;
  }
  .qa-roster-card {
    flex-wrap: wrap;
    gap: 8px;
  }
  .qa-roster-worker-col {
    min-width: 100%;
  }
}

/* ==========================================================================
   MATERIAL DESIGN DATE & TIME PICKER (APPLE & ANDROID UNIVERSAL)
   ========================================================================== */
.qa-time-pill-custom {
  border: 1px dashed rgba(212, 175, 55, 0.45) !important;
}

.qa-time-pill-custom.is-active {
  border-style: solid !important;
}

.material-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  box-sizing: border-box;
  animation: materialPickerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-picker-dialog {
  width: 100%;
  max-width: 335px;
  background: var(--bg-card, #18181b);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(212, 175, 55, 0.12);
  animation: materialPickerScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

body.theme-light .material-picker-dialog {
  background: #ffffff;
  border: 1px solid rgba(200, 150, 40, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), 0 0 24px rgba(212, 175, 55, 0.15);
}

body.theme-dark .material-picker-dialog {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-gold-premium .material-picker-dialog {
  background: #18140c;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Header */
.material-picker-header {
  padding: 18px 22px 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.04) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.material-picker-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary, #caa030);
  display: block;
  margin-bottom: 4px;
}

.material-picker-headline {
  font-size: 1.55rem;
  font-weight: 850;
  color: var(--text-primary);
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  line-height: 1.2;
}

/* Month Navigation (Inside Calendar Card) */
.material-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
  border-bottom: 1.2px solid rgba(212, 175, 55, 0.22);
  margin-bottom: 12px;
}

body.theme-dark .material-picker-nav {
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

.material-picker-month-label {
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  font-size: 1.28rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.material-picker-nav-arrows {
  display: flex;
  gap: 8px;
}

.material-picker-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--gold-primary, #b8860b);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .material-picker-arrow-btn {
  background: rgba(32, 38, 50, 0.85);
  border-color: rgba(212, 175, 55, 0.3);
  color: #ffd875;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.material-picker-arrow-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary, #caa030);
  transform: scale(1.08);
}

.material-picker-arrow-btn:active {
  transform: scale(0.94);
}

/* Luxury Calendar Card Container */
.material-picker-calendar {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 250, 240, 0.65) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.3px solid rgba(212, 175, 55, 0.38);
  border-radius: 20px;
  padding: 12px 8px 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.05), inset 0 1.5px 1px #ffffff;
  margin-top: 2px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

body.theme-dark .material-picker-calendar {
  background: linear-gradient(165deg, rgba(22, 27, 38, 0.85) 0%, rgba(14, 18, 25, 0.9) 100%);
  border: 1.3px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

body.theme-light .material-picker-calendar {
  background: #ffffff;
  border: 1.3px solid rgba(200, 150, 40, 0.28);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.material-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
}

.material-weekday-col {
  font-size: 0.72rem;
  font-weight: 850;
  color: var(--gold-primary, #b8860b);
  padding: 2px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.theme-dark .material-weekday-col {
  color: #ffd875;
}

.material-picker-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  justify-items: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.material-day-empty {
  width: 100%;
  max-width: 42px;
  height: 40px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
}

.material-day-btn {
  width: 100%;
  max-width: 42px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  border: 1.2px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary, #1e1302);
  font-size: 1.05rem;
  font-weight: 850;
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  user-select: none;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03), inset 0 1px 0 #ffffff;
  position: relative;
}

body.theme-dark .material-day-btn {
  background: rgba(28, 34, 46, 0.85);
  border-color: rgba(212, 175, 55, 0.2);
  color: #f4f4f6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-light .material-day-btn {
  background: #ffffff;
  border-color: rgba(200, 150, 40, 0.26);
  color: #18181b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.material-day-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--gold-primary, #caa030);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.material-day-btn:active {
  transform: scale(0.95);
}

.material-day-btn.is-today {
  border: 2px solid var(--gold-primary, #caa030) !important;
  color: var(--gold-primary, #caa030) !important;
  font-weight: 900 !important;
}

.material-day-today-dot {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-primary, #caa030);
}

.material-day-btn.is-selected {
  background: linear-gradient(135deg, #fdf1cd 0%, #caa030 100%) !important;
  color: #1a1205 !important;
  font-weight: 900 !important;
  border: 1.6px solid #b8860b !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5), inset 0 1.5px 1px #ffffff !important;
  transform: translateY(-2px) scale(1.08) !important;
  z-index: 2;
}

body.theme-dark .material-day-btn.is-selected {
  background: linear-gradient(135deg, #ffe79a 0%, #caa030 100%) !important;
  color: #140f04 !important;
  border-color: #ffd875 !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6) !important;
}

/* Digital Time Display */
.material-time-display-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 14px;
}

.material-time-digit {
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  width: 66px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 850;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.material-time-colon {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-primary, #caa030);
  line-height: 1;
}

.material-ampm-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 4px;
}

.material-ampm-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.material-ampm-btn.is-active {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  color: #1a1508 !important;
  font-weight: 850 !important;
  border-color: #caa030 !important;
}

/* Time Picker Body */
.material-time-body {
  padding: 12px 16px 6px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: none;
}

.material-time-body::-webkit-scrollbar {
  display: none;
}

.material-time-section {
  margin-bottom: 12px;
}

.material-time-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.material-chips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.material-circle-chip {
  height: 35px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: var(--bg-input, rgba(0, 0, 0, 0.03));
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

body.theme-light .material-circle-chip {
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-dark .material-circle-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.material-circle-chip:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.material-circle-chip.is-active {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%) !important;
  color: #1a1508 !important;
  font-weight: 850 !important;
  border-color: #caa030 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35) !important;
}

/* Footer Actions */
.material-picker-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.material-dialog-btn {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.material-dialog-cancel {
  background: transparent;
  color: var(--text-secondary);
}

.material-dialog-cancel:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.material-dialog-ok {
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%);
  color: #1a1508;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.material-dialog-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.45);
}

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

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

/* ==========================================================================
   2-STEP SCHEDULE POPOUT DIALOG (QUESTION 1: DAY -> QUESTION 2: TIME)
   ========================================================================== */
.qa-step-dialog {
  max-width: 460px !important;
  max-height: 92vh !important;
}

.qa-header-right-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qa-step-pill-indicator {
  font-size: 0.74rem;
  font-weight: 850;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary, #caa030);
  border: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.04em;
}

#qa-step-content-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.qa-step-body {
  padding: 14px 16px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.qa-calendar-month-card {
  margin-top: 4px;
  margin-bottom: 4px;
}


/* Step 2 Full-Width Date Context Card (Prominent, High-Clarity, Tactile) */
.qa-step2-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 13px;
  min-height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 3px 12px rgba(184, 145, 37, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  user-select: none;
  gap: 8px;
}

body.theme-dark .qa-step2-date-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(212, 175, 55, 0.40);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.theme-light .qa-step2-date-bar {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.06) 100%);
  border-color: rgba(200, 150, 40, 0.36);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-gold-premium .qa-step2-date-bar {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.08) 100%);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 3px 12px rgba(184, 145, 37, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.qa-step2-date-bar:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.12) 100%);
  border-color: var(--gold-primary, #caa030);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(184, 145, 37, 0.16);
}

.qa-step2-date-bar:active {
  transform: scale(0.985);
}

.qa-step2-date-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.qa-step2-date-icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-primary, #b38600);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.12);
  flex-shrink: 0;
}

body.theme-dark .qa-step2-date-icon-box {
  background: rgba(212, 175, 55, 0.25);
  color: #f3d47d;
  border-color: rgba(212, 175, 55, 0.45);
}

body.theme-light .qa-step2-date-icon-box {
  background: rgba(212, 175, 55, 0.18);
  color: #996f00;
  border-color: rgba(200, 150, 40, 0.35);
}

.qa-step2-date-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.qa-step2-date-title {
  font-size: clamp(0.88rem, 3.2vw, 1.04rem);
  font-weight: 800;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.qa-step2-date-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.5px 6.5px;
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-primary, #caa030);
  border: 1px solid rgba(212, 175, 55, 0.35);
  line-height: 1.2;
  white-space: nowrap;
  margin-top: 1px;
}

.qa-step2-date-tag.is-today {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
  border: 1.2px solid rgba(34, 197, 94, 0.45);
}

body.theme-dark .qa-step2-date-tag.is-today {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
}

.qa-step2-date-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  border: 1.2px solid rgba(212, 175, 55, 0.40);
  box-shadow: 0 1px 4px rgba(184, 145, 37, 0.10);
  flex-shrink: 0;
  margin-inline-start: 2px;
  transition: all 0.15s ease;
}

.qa-step2-date-right:hover {
  background: rgba(212, 175, 55, 0.28);
  border-color: var(--gold-primary, #caa030);
}

body.theme-dark .qa-step2-date-right {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

body.theme-light .qa-step2-date-right {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(200, 150, 40, 0.36);
}

.qa-step2-change-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-primary, #b38600);
  text-decoration: none;
  white-space: nowrap;
}

body.theme-dark .qa-step2-change-text {
  color: #f3d47d;
}

body.theme-light .qa-step2-change-text {
  color: #8a6508;
}

.qa-step2-change-arrow {
  color: var(--gold-primary, #b38600);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  width: 13px;
  height: 13px;
}

body.theme-dark .qa-step2-change-arrow {
  color: #f3d47d;
}

body.theme-light .qa-step2-change-arrow {
  color: #8a6508;
}

.qa-step2-date-bar:hover .qa-step2-change-arrow {
  transform: translateX(2px);
}

[dir="rtl"] .qa-step2-date-bar:hover .qa-step2-change-arrow,
body.rtl .qa-step2-date-bar:hover .qa-step2-change-arrow {
  transform: translateX(-2px);
}

@media (max-width: 380px) {
  .qa-step-dialog {
    max-width: 100% !important;
  }
  .qa-step-body {
    padding: 12px 12px 8px;
  }
  .qa-step2-date-bar {
    padding: 10px 12px;
    min-height: 54px;
    gap: 8px;
  }
  .qa-step2-date-left {
    gap: 9px;
  }
  .qa-step2-date-icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }
  .qa-step2-date-title {
    font-size: 0.88rem;
  }
  .qa-step2-date-right {
    padding: 5px 9px;
  }
  .qa-step2-change-text {
    font-size: 0.74rem;
  }
}

.qa-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  margin-top: auto;
}

.qa-step-cancel-btn,
.qa-step-back-btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  min-width: 85px;
  text-align: center;
}

.qa-step-cancel-btn:hover,
.qa-step-back-btn:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
}

.qa-step-next-btn,
.qa-step-submit-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #fce9b8 0%, #caa030 100%);
  color: #1a1508;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.35);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-step-next-btn:hover,
.qa-step-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   TODAY CONTEXT BANNER & QUICK-DAY SELECTION CHIPS
   ========================================================================== */
.qa-step-body {
  animation: qaBodyFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes qaBodyFadeIn {
  from {
    opacity: 0.45;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Horizontal Sliding Quick-Day Carousel ("Keep Sliding the Thing on Top") */
.qa-quick-days-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 4px 14px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
}

.qa-quick-days-strip::-webkit-scrollbar {
  display: none;
}

.qa-quick-day-chip {
  flex: 0 0 104px;
  min-width: 104px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px 11px;
  border-radius: 18px;
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

body.theme-dark .qa-quick-day-chip {
  background: rgba(28, 34, 46, 0.9);
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

body.theme-light .qa-quick-day-chip {
  background: #ffffff;
  border-color: rgba(200, 150, 40, 0.28);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.qa-quick-day-chip:hover {
  border-color: var(--gold-primary, #caa030);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.24);
}

.qa-quick-day-chip:active {
  transform: scale(0.97);
}

.qa-quick-day-chip.is-selected {
  background: linear-gradient(135deg, #fdf1cd 0%, #caa030 100%) !important;
  color: #1a1205 !important;
  border-color: #b8860b !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-2px);
}

body.theme-dark .qa-quick-day-chip.is-selected {
  background: linear-gradient(135deg, #ffe79a 0%, #caa030 100%) !important;
  color: #140f04 !important;
  border-color: #ffd875 !important;
  box-shadow: 0 6px 18px rgba(255, 216, 117, 0.35) !important;
}

.qa-quick-chip-kicker {
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-primary, #caa030);
  line-height: 1.25;
  margin: 0;
  display: block;
  pointer-events: none;
  white-space: nowrap;
}

.qa-quick-day-chip.is-selected .qa-quick-chip-kicker {
  color: #4a3400 !important;
}

.qa-quick-chip-date {
  font-size: 1.06rem;
  font-weight: 850;
  font-family: var(--font-serif, 'Playfair Display', Didot, Georgia, serif);
  color: var(--text-primary);
  line-height: 1.25;
  display: block;
  pointer-events: none;
  white-space: nowrap;
}

.qa-quick-day-chip.is-selected .qa-quick-chip-date {
  color: #1a1205 !important;
}

/* Calendar Past Days & Today Prominence */
.material-day-btn.is-past {
  opacity: 0.32 !important;
  cursor: pointer;
}

.material-day-btn.is-today {
  border: 2px solid var(--gold-primary, #caa030) !important;
  position: relative;
}

.material-day-btn.is-today::after {
  content: 'TODAY';
  position: absolute;
  bottom: 2px;
  font-size: 0.46rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--gold-primary, #caa030);
  line-height: 1;
}

.material-day-btn.is-today.is-selected::after {
  color: #3b2800;
}

/* ==========================================================================
   QUICK ASSIGN STEP 2: SHIFT TYPE SELECTOR (HOURS, EVENT, PICKUP) & DURATION
   ========================================================================== */
.qa-shift-type-strip {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  width: 100%;
  box-sizing: border-box;
}

.qa-shift-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--bg-card, rgba(255, 255, 255, 0.9));
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  color: var(--text-secondary, #666);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  user-select: none;
  box-sizing: border-box;
}

body.theme-dark .qa-shift-type-btn {
  background: rgba(26, 32, 44, 0.85);
  border-color: rgba(212, 175, 55, 0.2);
  color: #a0aec0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.theme-light .qa-shift-type-btn {
  background: #ffffff;
  border-color: rgba(200, 150, 40, 0.25);
  color: #555555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.qa-shift-type-btn:hover {
  border-color: var(--gold-primary, #caa030);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.qa-shift-type-btn:active {
  transform: scale(0.97);
}

.qa-shift-type-btn.is-active {
  background: linear-gradient(135deg, #fdf1cd 0%, #caa030 100%) !important;
  color: #1a1205 !important;
  border-color: #b8860b !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-1px);
}

body.theme-dark .qa-shift-type-btn.is-active {
  background: linear-gradient(135deg, #ffe79a 0%, #caa030 100%) !important;
  color: #140f04 !important;
  border-color: #ffd875 !important;
}

.qa-shift-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.qa-shift-label {
  font-weight: 850;
  letter-spacing: -0.01em;
}

/* Event Selector Section for Event & Pickup Shifts */
.qa-event-selector-section {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: qaBodyFadeIn 0.16s ease-out;
}

.qa-event-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.qa-event-selector-label {
  font-size: 0.70rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-primary, #caa030);
}

.qa-event-count-badge {
  font-size: 0.68rem;
  font-weight: 850;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary, #caa030);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.qa-event-chips-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
  padding: 2px 1px;
  scrollbar-width: thin;
}

.qa-event-chips-list::-webkit-scrollbar {
  width: 4px;
}

.qa-event-chips-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.qa-event-card-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: start;
  gap: 10px;
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

body.theme-dark .qa-event-card-chip {
  background: rgba(26, 32, 44, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-light .qa-event-card-chip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.qa-event-card-chip:hover {
  border-color: var(--gold-primary, #caa030);
  transform: translateY(-1px);
}

.qa-event-card-chip:active {
  transform: scale(0.98);
}

.qa-event-card-chip.is-selected {
  border-color: var(--gold-primary, #caa030) !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.04) 100%) !important;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.22) !important;
}

body.theme-dark .qa-event-card-chip.is-selected {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.08) 100%) !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3) !important;
  border-color: #ffd875 !important;
}

.qa-event-chip-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.qa-event-chip-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.qa-event-chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.qa-event-chip-title {
  font-size: 0.86rem;
  font-weight: 850;
  color: var(--text-primary, #111111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

body.theme-dark .qa-event-chip-title {
  color: #f5f5f7;
}

.qa-event-card-chip.is-selected .qa-event-chip-title {
  color: var(--gold-primary, #a17718);
}

body.theme-dark .qa-event-card-chip.is-selected .qa-event-chip-title {
  color: #ffd875;
}

.qa-event-chip-sub {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted, #8e8e93);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.qa-event-chip-time {
  font-size: 0.74rem;
  font-weight: 850;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary, #333333);
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

body.theme-dark .qa-event-chip-time {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e5ea;
  border-color: rgba(255, 255, 255, 0.1);
}

.qa-event-card-chip.is-selected .qa-event-chip-time {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary, #a17718);
  border-color: rgba(212, 175, 55, 0.4);
}

body.theme-dark .qa-event-card-chip.is-selected .qa-event-chip-time {
  background: rgba(212, 175, 55, 0.25);
  color: #ffe79a;
  border-color: rgba(212, 175, 55, 0.45);
}

.qa-event-chip-time.is-tbd {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.3);
}

.qa-event-empty-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-muted, #8e8e93);
}

body.theme-dark .qa-event-empty-pill {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: #a0aec0;
}

.qa-event-empty-icon {
  font-size: 0.95rem;
}

/* ============================================================
   MINIMALIST VISUAL UI: COMPLETE WORKER ROLE / DESCRIPTION PURGE
   Completely suppress worker roles, titles, and descriptions
   across all modules, modals, and platform viewports.
   ============================================================ */
.timesheet-page-worker-role,
.applicant-role-tag,
.chat-msg-sender-role,
.chat-info-member-role,
.drawer-team-role,
.wheel-winner-role,
.driver-role-chip,
.sim-worker-role,
.sim-request-role,
.sim-profile-role-pill,
#uhaul-winner-role-display,
#gps-modal-description,
.points-modal-sub,
.worker-card-role,
.worker-role-title,
.worker-sub-title,
.worker-role-tag,
.call-party-role,
.picker-worker-role {
  display: none !important;
}

/* ==========================================================================
   HAUTE COUTURE LUXURY AUTH FEEDBACK ALERT & DISMISS ENGINE
   ========================================================================== */
.auth-luxury-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 24, 16, 0.96) 0%, rgba(16, 12, 8, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(212, 175, 55, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: authAlertSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  text-align: left;
}

body.theme-light .auth-luxury-alert {
  background: linear-gradient(135deg, #ffffff 0%, #faf6eb 100%);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.18), 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff;
}

@keyframes authAlertSlideUp {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-alert-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffd875;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

body.theme-light .auth-alert-icon {
  background: linear-gradient(135deg, #fdf4dc 0%, #f7e3b0 100%);
  border-color: #d4af37;
  color: #8c670b;
}

.auth-alert-body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  padding: 0 2px;
}

.auth-alert-text {
  font-size: 0.77rem;
  font-weight: 700;
  color: #f7eed8;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.theme-light .auth-alert-text {
  color: #3b2802;
}

.auth-alert-action-btn {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.74rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #1a1408;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.auth-alert-action-btn:hover {
  background: linear-gradient(135deg, #e5c358 0%, #c99718 100%);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(184, 145, 37, 0.5);
}

.auth-alert-action-btn:active {
  transform: scale(0.95);
}

.auth-alert-dismiss {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.auth-alert-dismiss:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
  color: #ffd875;
  transform: scale(1.1) rotate(90deg);
}

.auth-alert-dismiss:active {
  transform: scale(0.9);
}

body.theme-light .auth-alert-dismiss {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #6b4703;
}

body.theme-light .auth-alert-dismiss:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #3b2802;
}

.auth-alert-dismiss svg {
  display: block;
}

/* ==========================================================================
   Voice Note Dedicated Page & Detail Modal (L'etoile Atelier Voice Suite)
   ========================================================================== */
.daily-rec-voice-box {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1.2px solid rgba(212, 175, 55, 0.28);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.16s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.daily-rec-voice-box:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.13);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.16);
  transform: translateY(-1px);
}

.daily-rec-voice-box:active {
  transform: scale(0.99);
}

.theme-dark .daily-rec-voice-box {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.22);
}

.theme-dark .daily-rec-voice-box:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
}

.voice-note-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 16px) env(safe-area-inset-right, 16px) env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 16px);
  box-sizing: border-box;
  animation: voiceOverlayFadeIn 0.22s ease-out;
}

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

.voice-note-page-sheet {
  background: var(--bg-card);
  border: 1.6px solid var(--gold-primary);
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  height: min(92vh, 92dvh);
  max-height: min(94vh, 94dvh);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: voiceSheetSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes voiceSheetSlideUp {
  from { opacity: 0; transform: scale(0.97) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 640px) {
  .voice-note-modal-overlay {
    padding: 0;
    align-items: stretch;
  }
  .voice-note-page-sheet {
    max-width: 100%;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

body.theme-gold-premium .voice-note-page-sheet {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border-color: #d4af37;
  box-shadow: 0 24px 60px rgba(184, 145, 37, 0.25);
}

body.theme-dark .voice-note-page-sheet {
  background: #171512;
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.voice-page-header {
  display: grid !important;
  grid-template-columns: 44px 1fr 44px !important;
  align-items: center !important;
  justify-items: center !important;
  padding-top: max(env(safe-area-inset-top, 0px) + 8px, 18px) !important;
  padding-bottom: 12px !important;
  padding-left: max(env(safe-area-inset-left, 0px) + 12px, 16px) !important;
  padding-right: max(env(safe-area-inset-right, 0px) + 12px, 16px) !important;
  border-bottom: 1.2px solid var(--border-subtle, rgba(212, 175, 55, 0.2)) !important;
  flex-shrink: 0 !important;
  background: var(--bg-card) !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.voice-page-circle-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  background: rgba(212, 175, 55, 0.08) !important;
  border: 1.2px solid rgba(212, 175, 55, 0.3) !important;
  color: var(--text-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  -webkit-tap-highlight-color: transparent !important;
}

.voice-page-circle-btn:hover {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  transform: scale(1.05) !important;
}

.voice-page-circle-btn:active {
  transform: scale(0.92) !important;
}

.voice-page-title-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 0 !important;
  width: 100% !important;
}

.voice-page-title-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 14px 4px 16px !important;
  border-radius: 9999px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  border: 1.2px solid rgba(212, 175, 55, 0.42) !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.14) !important;
  max-width: 80vw !important;
  box-sizing: border-box !important;
  cursor: text !important;
  transition: all 0.2s ease !important;
}

.voice-page-title-pill:focus-within {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.32), 0 0 0 2px rgba(212, 175, 55, 0.2) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

body.theme-dark .voice-page-title-pill {
  background: linear-gradient(160deg, rgba(38, 30, 20, 0.85) 0%, rgba(20, 16, 11, 0.90) 100%) !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

body.theme-dark .voice-page-title-pill:focus-within {
  background: rgba(28, 22, 14, 0.95) !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35) !important;
}

.voice-page-title-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-serif, inherit) !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  width: auto !important;
  min-width: 60px !important;
  max-width: 220px !important;
  letter-spacing: 0.01em !important;
  line-height: 1.3 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.voice-page-title-input::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.65 !important;
  font-weight: 600 !important;
}

.voice-page-edit-icon {
  color: var(--gold-primary) !important;
  opacity: 0.65 !important;
  flex-shrink: 0 !important;
  margin-left: 6px !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.voice-page-title-pill:hover .voice-page-edit-icon,
.voice-page-title-pill:focus-within .voice-page-edit-icon {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.voice-page-title-text {
  font-family: var(--font-serif, inherit) !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.voice-page-meta-sub {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
  white-space: nowrap !important;
}

.voice-page-body {
  flex: 1 1 0px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 18px 18px 32px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  overscroll-behavior-y: contain !important;
}

.voice-page-body > * {
  flex-shrink: 0 !important;
}

.voice-page-player-card {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(184, 145, 37, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-gold-premium .voice-page-player-card {
  background: #ffffff;
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 6px 20px rgba(184, 145, 37, 0.14), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.theme-dark .voice-page-player-card,
body.theme-dark .voice-page-player-card,
body.theme-obsidian .voice-page-player-card,
body.theme-dark-velvet .voice-page-player-card {
  background: rgba(20, 24, 34, 0.88);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.voice-page-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.voice-page-big-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fae298 0%, #e0bc56 50%, #c89528 100%);
  color: #1a1306;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.42);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  font-size: 1.35rem;
}

.voice-page-big-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

.voice-page-big-play-btn:active {
  transform: scale(0.94);
}

.voice-page-skip-btn {
  background: #fbf7ee;
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--gold-primary);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.voice-page-skip-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
}

.voice-page-skip-btn:active {
  transform: scale(0.95);
}

.theme-dark .voice-page-skip-btn,
body.theme-dark .voice-page-skip-btn,
body.theme-obsidian .voice-page-skip-btn,
body.theme-dark-velvet .voice-page-skip-btn {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold-primary);
}

.voice-page-scrubber-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.voice-page-time-text {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--text-secondary);
  min-width: 44px;
  text-align: center;
}

.voice-page-progress-track {
  flex: 1;
  height: 8px;
  background: rgba(212, 175, 55, 0.22);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.voice-page-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f3d47d);
  border-radius: 4px;
  transition: width 0.08s linear;
}

.voice-page-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.voice-page-detect-btn {
  width: 100%;
  max-width: 360px;
  height: 44px;
  font-size: 0.90rem;
  font-weight: 850;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.voice-page-transcribing-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(212, 175, 55, 0.1);
  border: 1.5px dashed rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.voice-page-empty-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-input);
  border: 1.5px dashed var(--border-subtle);
  border-radius: 16px;
}

.voice-page-transcript-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-page-transcript-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-page-text-card {
  background: var(--bg-input);
  border: 1.2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-page-transcript-text {
  max-height: 48vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.voice-page-summary-card {
  background: rgba(212, 175, 55, 0.06);
  border: 1.2px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Voice Note Detail Page Accordions (Minimized by default) */
.voice-page-accordion-card {
  background: var(--bg-input);
  border: 1.2px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.voice-page-accordion-card.is-expanded {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.12);
}

.voice-page-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  gap: 8px;
  min-height: 48px;
  box-sizing: border-box;
}

.voice-page-accordion-header:active {
  background: rgba(212, 175, 55, 0.08);
}

.voice-page-accordion-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.70rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold-primary);
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap !important;
  overflow: hidden;
}

.voice-page-accordion-title span {
  white-space: nowrap !important;
}

.voice-page-accordion-title > span:last-child {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.voice-page-accordion-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.voice-page-pill-badge {
  font-size: 0.64rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.voice-page-accordion-chevron {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--gold-primary);
  opacity: 0.85;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
}

.voice-page-accordion-card.is-expanded .voice-page-accordion-chevron {
  transform: rotate(90deg);
}

.wedding-event-date-pill {
  user-select: none;
  -webkit-user-select: none;
}

.post-meeting-rec-card {
  padding: 11px 13px;
  background: var(--bg-card, #1c1a17);
  border: 1.2px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.voice-page-accordion-body {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

.voice-page-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding-top: 14px !important;
  padding-left: max(env(safe-area-inset-left, 0px) + 16px, 20px) !important;
  padding-right: max(env(safe-area-inset-right, 0px) + 16px, 20px) !important;
  padding-bottom: max(env(safe-area-inset-bottom, 0px) + 14px, 18px) !important;
  border-top: 1.2px solid var(--border-subtle, rgba(212, 175, 55, 0.2)) !important;
  flex-shrink: 0 !important;
  background: var(--bg-card) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   Super Admin Worker View Switching System (Admin Only Impersonation Engine)
   ========================================================================== */

/* 1. Compact Perspective Switcher in Settings */
.role-switch-compact-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input, rgba(255, 255, 255, 0.04));
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  margin-bottom: 0;
}

.role-compact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-height: 36px;
  box-sizing: border-box;
}

.role-compact-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.role-compact-btn.active {
  background: var(--bg-card, #1c1a16);
  color: var(--gold-primary, #d4af37);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 10px var(--gold-glow, rgba(212, 175, 55, 0.15));
}

.role-compact-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.role-compact-label {
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.role-compact-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary, #d4af37);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.role-compact-arrow {
  font-size: 0.76rem;
  color: var(--gold-primary, #d4af37);
  opacity: 0.8;
}

/* 3. Worker Picker Popup Modal */
.worker-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInModal 0.22s ease-out;
}

.worker-picker-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  background: var(--bg-card, #1c1a16);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.worker-picker-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

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

.worker-picker-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.btn-close-picker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-picker:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.worker-picker-body {
  padding: 14px 16px 30px;
  overflow-y: auto;
  max-height: 60vh;
}

.worker-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.worker-picker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-input, rgba(255, 255, 255, 0.04));
  border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.worker-picker-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.worker-picker-item:active {
  transform: scale(0.98);
}

.worker-picker-item.is-active {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 2px 12px var(--gold-glow, rgba(212, 175, 55, 0.2));
}

.picker-worker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 145, 37, 0.1));
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.picker-worker-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picker-worker-initials {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-primary, #d4af37);
}

.picker-worker-details {
  flex: 1;
  min-width: 0;
  text-align: left;
}

[dir="rtl"] .picker-worker-details {
  text-align: right;
}

.picker-worker-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-worker-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.picker-worker-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--gold-primary, #d4af37);
  color: #121008;
  flex-shrink: 0;
}

.picker-worker-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.worker-picker-empty {
  text-align: center;
  padding: 30px 16px;
}

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

.empty-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.btn-picker-action {
  background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #b89125));
  border: 1px solid var(--gold-primary);
  color: #121008;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
}

/* ==========================================================================
   L'etoile Client Services - Luxury Multi-Card Deck Engine (Master Design)
   ========================================================================== */
.client-deck-wrapper {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.client-progress-tracker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 2px;
  box-sizing: border-box;
}

.client-progress-bar-seg {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: rgba(18, 14, 8, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.theme-gold-premium .client-progress-bar-seg {
  background: rgba(22, 16, 8, 0.52);
  border-color: rgba(212, 175, 55, 0.35);
}

body.theme-dark .client-progress-bar-seg {
  background: rgba(12, 15, 22, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Completed Page Segments (Pages already finished) */
.client-progress-bar-seg.is-completed {
  background: linear-gradient(90deg, #D4AF37 0%, #A67C1E 100%);
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Current Active Page Segment (Page you are looking at right now) */
.client-progress-bar-seg.is-current {
  background: linear-gradient(90deg, #FFFFFF 0%, #FFE169 40%, #E5A91A 100%);
  border-color: #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 223, 0, 0.95), 0 0 6px #FFFFFF, 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: scaleY(1.2);
}

/* Active fallback */
.client-progress-bar-seg.is-active:not(.is-current):not(.is-completed) {
  background: var(--gold-primary, #D4AF37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

/* Deck Stage for Physical Card Dealing/Sliding */
.client-deck-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  perspective: 1000px;
}

.client-card-slide {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.client-card-slide.is-active {
  display: flex;
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0deg);
  z-index: 2;
  position: relative;
}

/* Card Moving Next (Current Card Slides Left, Next Slides from Right) */
.client-card-slide.card-enter-from-right {
  display: flex !important;
  animation: cardSlideFromRight 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.client-card-slide.card-exit-to-left {
  display: flex !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  animation: cardSlideToLeft 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card Moving Back (Current Card Slides Right, Previous Slides from Left) */
.client-card-slide.card-enter-from-left {
  display: flex !important;
  animation: cardSlideFromLeft 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.client-card-slide.card-exit-to-right {
  display: flex !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  animation: cardSlideToRight 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardSlideFromRight {
  0% {
    opacity: 0;
    transform: translateX(105%) scale(0.92) rotate(3deg);
  }
  60% {
    opacity: 0.95;
    transform: translateX(-2%) scale(1.01) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

@keyframes cardSlideToLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-105%) scale(0.90) rotate(-4deg);
  }
}

@keyframes cardSlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-105%) scale(0.92) rotate(-3deg);
  }
  60% {
    opacity: 0.95;
    transform: translateX(2%) scale(1.01) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

@keyframes cardSlideToRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(105%) scale(0.90) rotate(4deg);
  }
}

/* Double-Bezel Editorial Gallery */
.client-hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.client-photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 180px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: #090B0E;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.client-photo-frame:active {
  transform: scale(0.98);
}

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

.client-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}

.client-photo-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* Luxury Instagram Direct Link Card Button */
.client-instagram-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1.4px solid rgba(212, 175, 55, 0.38);
  text-decoration: none;
  color: var(--text-primary, #ffffff);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.client-instagram-link-card:active {
  transform: scale(0.985);
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary, #D4AF37);
}

.client-insta-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.client-insta-glyph-box {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-insta-handle {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--gold-primary, #D4AF37);
}

.client-insta-arrow-capsule {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary, #D4AF37);
  transition: transform 0.25s ease;
}

.client-instagram-link-card:hover .client-insta-arrow-capsule {
  transform: translate(2px, -2px);
}

/* Event Type Chips Grid */
.client-event-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.client-event-chip {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.2px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #ffffff);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.client-event-chip:active {
  transform: scale(0.97);
}

.client-event-chip.is-active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary, #D4AF37);
  color: var(--gold-primary, #D4AF37);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.22);
}

/* Nav Actions in Cards */
.client-nav-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.client-btn-back {
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-muted, #94a3b8);
  font-size: 0.90rem;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.client-btn-continue {
  flex: 1;
  width: 100%;
  height: 54px;
  min-height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

#client-submit-btn {
  width: 100%;
  height: 58px !important;
  min-height: 58px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 1.04rem !important;
  font-weight: 850;
  border-radius: 16px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 22px var(--gold-glow, rgba(212, 175, 55, 0.40)), inset 0 1px 0 rgba(255, 255, 255, 0.70);
  box-sizing: border-box;
  margin-top: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#client-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--gold-glow, rgba(212, 175, 55, 0.50)), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#client-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px var(--gold-glow, rgba(212, 175, 55, 0.35));
}

@media (max-width: 360px) {
  #client-submit-btn {
    height: 54px !important;
    min-height: 54px !important;
    font-size: 0.92rem !important;
    padding: 0 12px;
    gap: 6px;
  }
}

/* ==========================================================================
   L'etoile Client Services - Step Counter Pill (Distinct High-Contrast Colors)
   ========================================================================== */
.client-step-counter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(18, 14, 8, 0.78);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  min-width: 54px;
  text-align: center;
  letter-spacing: 0.5px;
  user-select: none;
}

body.theme-gold-premium .client-step-counter-pill {
  background: rgba(22, 16, 8, 0.85);
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

body.theme-dark .client-step-counter-pill {
  background: rgba(15, 18, 26, 0.88);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.client-step-counter-pill .step-curr {
  color: #FFDF00;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 223, 0, 0.75);
}

.client-step-counter-pill .step-slash {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin: 0 2px;
}

.client-step-counter-pill .step-total {
  color: #FFF8E7;
  font-weight: 750;
  opacity: 0.9;
}

/* ==========================================================================
   L'etoile Client Services - Luxury Liquid Glass Privacy Policy & Terms Capsule
   ========================================================================== */
.client-privacy-liquid-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  background: rgba(22, 18, 10, 0.62);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.2px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #FFF8E7;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.35px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.theme-gold-premium .client-privacy-liquid-glass {
  background: rgba(28, 22, 12, 0.68);
  border-color: rgba(212, 175, 55, 0.62);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  color: #FFF9EC;
}

body.theme-dark .client-privacy-liquid-glass {
  background: rgba(18, 22, 32, 0.75);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: #F3F4F6;
}

body.theme-light .client-privacy-liquid-glass {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(212, 175, 55, 0.6);
  color: #2D2416;
}

.client-privacy-liquid-glass:hover {
  transform: translateY(-1.5px);
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

.client-privacy-liquid-glass:active {
  transform: scale(0.96);
}

.client-privacy-liquid-glass svg {
  color: var(--gold-primary, #D4AF37);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.client-privacy-liquid-glass:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   L'etoile Privacy Policy & Terms In-App Luxury Modal
   ========================================================================== */
.app-privacy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000006;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease;
}

.app-privacy-modal-backdrop.closing {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.app-privacy-modal-card {
  background: rgba(24, 18, 12, 0.96);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1.8px solid var(--gold-primary, #d4af37);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 36px rgba(212, 175, 55, 0.25);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  animation: contextMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  direction: ltr !important;
}

body.theme-gold-premium .app-privacy-modal-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 248, 237, 0.96) 100%);
  border-color: #d4af37;
  box-shadow: 0 28px 70px rgba(184, 145, 37, 0.32), 0 0 36px rgba(212, 175, 55, 0.28);
}

body.theme-dark .app-privacy-modal-card {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 36px rgba(212, 175, 55, 0.2);
}

body.theme-light .app-privacy-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.app-privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.04);
  flex-shrink: 0;
  gap: 8px;
  min-height: 52px;
  box-sizing: border-box;
  width: 100%;
}

.app-privacy-modal-back-btn,
.app-privacy-modal-external-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-primary, #1a1205);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

body.theme-dark .app-privacy-modal-back-btn,
body.theme-dark .app-privacy-modal-external-btn {
  color: #fff2be;
}

.app-privacy-modal-back-btn:hover,
.app-privacy-modal-external-btn:hover {
  background: rgba(212, 175, 55, 0.24);
  transform: scale(1.05);
}

.app-privacy-modal-title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1.2px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-primary, #b8860b);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap !important;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 88px);
  box-sizing: border-box;
  line-height: 1.2;
  text-align: center;
}

body.theme-dark .app-privacy-modal-title-pill {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: #f5d77f;
}

.app-privacy-modal-title-pill span {
  white-space: nowrap !important;
  display: inline-block;
}

.app-privacy-modal-title-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1;
}

.app-privacy-modal-title-text {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .app-privacy-modal-backdrop {
    padding: 10px 8px;
  }
  .app-privacy-modal-card {
    border-radius: 20px;
  }
  .app-privacy-modal-header {
    padding: 10px 10px;
    gap: 6px;
    min-height: 48px;
  }
  .app-privacy-modal-back-btn,
  .app-privacy-modal-external-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .app-privacy-modal-title-pill {
    padding: 5px 10px;
    font-size: 0.74rem;
    gap: 5px;
    max-width: calc(100% - 78px);
  }
}

@media (max-width: 380px) {
  .app-privacy-modal-title-pill {
    padding: 4px 8px;
    font-size: 0.70rem;
    gap: 4px;
    max-width: calc(100% - 72px);
  }
}

.app-privacy-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-privacy-hero-card {
  text-align: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-privacy-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(184, 145, 37, 0.3));
  display: block;
}

/* Zero duplicate logo enforcement */
.app-privacy-hero-card .logo-dark-mode,
.privacy-hero-card .logo-dark-mode,
.logo-dark-mode {
  display: none !important;
}

body.theme-dark .app-privacy-hero-card .logo-light-mode,
body.theme-dark .privacy-hero-card .logo-light-mode,
body.theme-dark .logo-light-mode {
  display: none !important;
}

body.theme-dark .app-privacy-hero-card .logo-dark-mode,
body.theme-dark .privacy-hero-card .logo-dark-mode,
body.theme-dark .logo-dark-mode {
  display: block !important;
}

.app-privacy-brand-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.app-privacy-brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary, #b8860b);
  margin-top: 2px;
  margin-bottom: 6px;
}

.app-privacy-meta-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary, #b8860b);
}

.app-privacy-section-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-privacy-section-card p,
.app-privacy-section-card ul {
  font-size: 0.80rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
  opacity: 0.92;
}

.app-privacy-section-card ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-privacy-section-card li {
  margin-bottom: 2px;
}

.app-privacy-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.app-privacy-section-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient, linear-gradient(135deg, #f5d77f 0%, #d4af37 100%));
  color: #1a1205;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-privacy-section-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.app-privacy-contact-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.80rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.35);
}

.app-privacy-contact-brand {
  font-weight: 800;
  color: var(--gold-primary, #b8860b);
}

.app-privacy-contact-name {
  font-weight: 600;
  color: var(--text-primary);
}

.app-privacy-contact-address {
  color: var(--text-muted);
}

.app-privacy-contact-email a,
.app-privacy-contact-phone a {
  color: var(--gold-primary, #b8860b);
  font-weight: 750;
  text-decoration: none;
}

/* ==========================================================================
   Client Consultation Meeting Pinned Notification & Customer Detail Modal
   Harmonized with L'etoile Notification Center across Gold, Dark & Light Modes
   ========================================================================== */

/* 1. Base Pinned Consultation Card (matches .notif-card-luxury with VIP Gold Aura) */
.notif-card-consultation {
  background: var(--bg-card, #ffffff) !important;
  border: 1.5px solid var(--gold-primary, #d4af37) !important;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.16) !important;
  transition: all 0.2s ease !important;
  padding: 10px 14px !important;
}

.notif-card-consultation:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 145, 37, 0.22) !important;
}

body.theme-gold-premium .notif-card-consultation {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%) !important;
  border: 1.5px solid #d4af37 !important;
  box-shadow: 0 4px 14px rgba(184, 145, 37, 0.18), inset 0 0 0 0.5px rgba(212, 175, 55, 0.25) !important;
}

body.theme-dark .notif-card-consultation {
  background: linear-gradient(135deg, #181c28 0%, #131620 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.15) !important;
}

body.theme-light .notif-card-consultation {
  background: #ffffff !important;
  border: 1.5px solid #d97706 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.10) !important;
}

/* Consultation Card Internal Elements */
.notif-icon-box-consultation {
  background: rgba(212, 175, 55, 0.18);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  font-size: 1.25rem;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

body.theme-dark .notif-icon-box-consultation {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.4);
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
}

.notif-consult-headline {
  font-size: 0.94rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.notif-consult-name {
  color: var(--text-primary);
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-consult-dot {
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.notif-consult-occasion {
  color: var(--text-secondary);
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 70px;
}

.notif-consult-date-pill {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--gold-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

body.theme-gold-premium .notif-consult-date-pill {
  color: #b8860b;
}

body.theme-dark .notif-consult-date-pill {
  color: #e5c158;
}

body.theme-light .notif-consult-date-pill {
  color: #d97706;
}

/* Close/Dismiss Button in Consultation Card */
.btn-notif-delete-consult {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, rgba(212, 175, 55, 0.25));
  color: var(--text-muted, #856932);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.btn-notif-delete-consult:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.06);
}

body.theme-gold-premium .btn-notif-delete-consult {
  background: #ffffff;
  border-color: rgba(212, 175, 55, 0.35);
  color: #856932;
}

body.theme-dark .btn-notif-delete-consult {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted, #9ca3af);
}

body.theme-light .btn-notif-delete-consult {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #6b7280;
}

/* 2. Client Consultation Details Modal Sheet */
.consult-modal-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 28px;
  background: var(--bg-card, #ffffff);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.8px solid var(--gold-primary, #d4af37);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 35px rgba(212, 175, 55, 0.22);
  padding: 14px 20px 24px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: notifSheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  overscroll-behavior-y: contain;
}

body.theme-gold-premium .consult-modal-sheet {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 24px 60px rgba(184, 145, 37, 0.28), 0 0 35px rgba(212, 175, 55, 0.20);
  color: var(--text-primary, #1a1205);
}

body.theme-dark .consult-modal-sheet {
  background: linear-gradient(180deg, #161922 0%, #0f121a 100%);
  border: 1.8px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.28);
  color: #ffffff;
}

body.theme-light .consult-modal-sheet {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 24px rgba(212, 175, 55, 0.12);
  color: var(--text-primary, #111827);
}

/* Modal Header */
.consult-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border-subtle, rgba(212, 175, 55, 0.25));
}

body.theme-gold-premium .consult-modal-header {
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

body.theme-dark .consult-modal-header {
  border-bottom-color: rgba(212, 175, 55, 0.25);
}

body.theme-light .consult-modal-header {
  border-bottom-color: #f0f2f5;
}

.consult-modal-badge-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 850;
  color: var(--gold-primary, #b8860b);
}

body.theme-gold-premium .consult-modal-badge-label {
  color: #b8860b;
}

body.theme-dark .consult-modal-badge-label {
  color: #f5d77f;
}

body.theme-light .consult-modal-badge-label {
  color: #d97706;
}

.consult-modal-client-name {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0 0;
  line-height: 1.15;
}

.consult-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-input, rgba(0, 0, 0, 0.05));
  border: 1.5px solid var(--border-color, rgba(212, 175, 55, 0.35));
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 750;
  transition: all 0.15s ease;
  padding: 0;
}

.consult-modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.05);
}

body.theme-gold-premium .consult-modal-close {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: #5a4112;
  box-shadow: 0 2px 6px rgba(184, 145, 37, 0.12);
}

body.theme-dark .consult-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

body.theme-light .consult-modal-close {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #4b5563;
}

/* Status Badge in Details Modal */
.consult-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1.2px solid var(--gold-primary, #d4af37);
  color: var(--gold-primary, #b8860b);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 850;
}

body.theme-gold-premium .consult-status-badge {
  background: rgba(212, 175, 55, 0.16);
  border-color: #d4af37;
  color: #855e05;
}

body.theme-dark .consult-status-badge {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f5d77f;
}

body.theme-light .consult-status-badge {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.consult-time-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: -2px 0 4px 0;
  text-align: center;
}

.consult-time-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

body.theme-gold-premium .consult-time-label {
  color: #856932;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.28);
}

body.theme-dark .consult-time-label {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-light .consult-time-label {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

/* Quick Action Buttons (Call, Text, Email) */
.consult-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.consult-action-btn {
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: var(--bg-card, #ffffff);
  color: var(--gold-primary, #b8860b);
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.consult-action-btn:hover {
  transform: translateY(-1px);
}

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

.consult-action-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

body.theme-gold-premium .consult-action-btn {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #855e05;
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.10);
}

body.theme-gold-premium .consult-action-btn:hover {
  background: #fdf8eb;
  border-color: #d4af37;
  color: #5a4112;
}

body.theme-dark .consult-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  color: #f5d77f;
}

body.theme-dark .consult-action-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #f5d77f;
}

body.theme-light .consult-action-btn {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .consult-action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Details Info Box */
.consult-info-box {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle, rgba(212, 175, 55, 0.2));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-gold-premium .consult-info-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 1px 2px rgba(184, 145, 37, 0.08);
}

body.theme-dark .consult-info-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .consult-info-box {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
}

.consult-info-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 3px;
}

body.theme-gold-premium .consult-info-label {
  color: #856932;
}

.consult-info-value {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.25;
}

.consult-info-highlight {
  color: var(--gold-primary);
}

body.theme-gold-premium .consult-info-highlight {
  color: #b8860b;
}

body.theme-dark .consult-info-highlight {
  color: #e5c158;
}

body.theme-light .consult-info-highlight {
  color: #d97706;
}

.consult-info-divider {
  border-top: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.15));
  padding-top: 10px;
}

body.theme-gold-premium .consult-info-divider {
  border-top-color: rgba(212, 175, 55, 0.22);
}

body.theme-dark .consult-info-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-light .consult-info-divider {
  border-top-color: #e5e7eb;
}

/* Floral Vision & Notes Area */
.consult-notes-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary, #b8860b);
  font-weight: 850;
  margin-bottom: 6px;
}

body.theme-gold-premium .consult-notes-title {
  color: #b8860b;
}

body.theme-dark .consult-notes-title {
  color: #f5d77f;
}

body.theme-light .consult-notes-title {
  color: #d97706;
}

.consult-notes-area {
  border-radius: 14px;
  background: var(--bg-input, rgba(0, 0, 0, 0.25));
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  padding: 13px 15px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left !important;
  box-sizing: border-box;
  display: block;
}

body.theme-gold-premium .consult-notes-area {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  color: #1a1205;
  box-shadow: inset 0 1px 2px rgba(184, 145, 37, 0.06);
}

body.theme-dark .consult-notes-area {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  color: #ffffff;
}

body.theme-light .consult-notes-area {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  color: #111827;
}

/* Post-Meeting Action Buttons */
.consult-btn-complete {
  width: 100%;
  height: 50px;
  font-weight: 850;
  font-size: 0.94rem;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.consult-btn-delete {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.consult-btn-delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

body.theme-dark .consult-btn-delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.consult-btn-keep {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, rgba(212, 175, 55, 0.35));
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.consult-btn-keep:hover {
  filter: brightness(0.96);
}

body.theme-gold-premium .consult-btn-keep {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: #5a4112;
}

body.theme-dark .consult-btn-keep {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

body.theme-light .consult-btn-keep {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #4b5563;
}

@media (max-width: 480px) {
  .consult-modal-sheet {
    border-radius: 28px 28px 0 0;
    max-height: 90vh;
  }
}

@media (min-width: 481px) {
  #consultation-detail-overlay {
    align-items: center !important;
  }
  .consult-modal-sheet {
    border-radius: 28px;
  }
}

/* 3. Delete Confirmation Popout ("Are you sure? It can't be reversed.") */
.consult-confirm-sheet {
  background: var(--bg-card, #ffffff);
  border: 1.8px solid var(--gold-primary, #d4af37);
  border-radius: 24px;
  padding: 24px 20px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.theme-gold-premium .consult-confirm-sheet {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border: 1.8px solid #d4af37;
  box-shadow: 0 24px 60px rgba(184, 145, 37, 0.35);
}

body.theme-dark .consult-confirm-sheet {
  background: linear-gradient(180deg, #181c26 0%, #11141c 100%);
  border: 1.8px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

body.theme-light .consult-confirm-sheet {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.consult-confirm-title {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.consult-confirm-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.btn-consult-confirm-cancel {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1.5px solid var(--border-color, rgba(212, 175, 55, 0.3));
  background: var(--bg-card, #ffffff);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.btn-consult-confirm-cancel:hover {
  filter: brightness(0.96);
}

body.theme-gold-premium .btn-consult-confirm-cancel {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: #5a4112;
}

body.theme-dark .btn-consult-confirm-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #d1d5db;
}

body.theme-light .btn-consult-confirm-cancel {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #374151;
}

.btn-consult-confirm-delete {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-weight: 850;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
  transition: all 0.15s ease;
}

.btn-consult-confirm-delete:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-consult-confirm-delete:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Public Studio Perspective Switcher & Worker Preview Banner
   ========================================================================== */
.springboard-perspective-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 4px 0 16px 0;
  z-index: 40;
}

.springboard-perspective-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card, rgba(28, 26, 22, 0.85));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.28));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.perspective-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.perspective-toggle-btn:hover {
  color: var(--text-primary, #ffffff);
  background: rgba(255, 255, 255, 0.06);
}

.perspective-toggle-btn.active {
  background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #aa8010));
  color: #121008;
  font-weight: 850;
  box-shadow: 0 2px 10px rgba(184, 145, 37, 0.35), 0 0 12px var(--gold-glow, rgba(212, 175, 55, 0.25));
  border-color: rgba(255, 255, 255, 0.25);
}

.perspective-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.perspective-toggle-text {
  font-weight: 800;
}

/* Floating Public Worker Preview Banner */
.worker-public-preview-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: auto;
  animation: slideDownPreview 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90%;
  width: auto;
}

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

.worker-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 18, 14, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(212, 175, 55, 0.2);
  border-radius: 9999px;
  padding: 6px 8px 6px 14px;
  color: var(--text-primary, #ffffff);
  font-size: 0.74rem;
  font-weight: 600;
}

.worker-preview-icon {
  font-size: 1rem;
}

.btn-return-admin-pill {
  background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #f3e5ab));
  color: #121008;
  border: none;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.70rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-return-admin-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(184, 145, 37, 0.4);
}

.btn-return-admin-pill:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Factor 2b: Daily Events Hub & Time Travel Popout Engine
   ========================================================================== */

.events-top-nav-actions {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
}

.events-time-travel-btn {
  position: relative;
  justify-self: end !important;
}

.events-time-travel-btn.is-time-traveling {
  border-color: rgba(212, 175, 55, 0.75) !important;
  color: var(--gold-primary) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

.events-time-travel-btn.is-popout-open {
  border-color: var(--gold-primary) !important;
  background: rgba(212, 175, 55, 0.18) !important;
}

.time-travel-badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}

body[dir="rtl"] .time-travel-badge-dot {
  right: auto;
  left: 5px;
}

/* Time Travel Popout Backdrop (Invisible click-interceptor for 1-tap outside dismissal) */
.events-time-travel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: eventsBackdropFade 0.18s ease-out;
}

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

/* Time Travel Popout Container */
.events-time-travel-popout {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: 295px;
  max-width: calc(100vw - 28px);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(212, 175, 55, 0.25);
  padding: 14px 14px 12px 14px;
  z-index: 9999;
  transform-origin: top right;
  animation: eventsPopoutFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body[dir="rtl"] .events-time-travel-popout {
  transform-origin: top left;
}

body.theme-dark .events-time-travel-popout {
  background: rgba(20, 23, 31, 0.97);
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(212, 175, 55, 0.15);
}

@keyframes eventsPopoutFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.events-popout-arrow {
  position: absolute;
  top: -7px;
  inset-inline-end: 14px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1.5px solid rgba(212, 175, 55, 0.45);
  border-top: 1.5px solid rgba(212, 175, 55, 0.45);
  transform: rotate(45deg);
  z-index: 10000;
}

body[dir="rtl"] .events-popout-arrow {
  border-left: none;
  border-right: 1.5px solid rgba(212, 175, 55, 0.45);
}

.events-popout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.events-popout-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 850;
  color: var(--gold-primary);
}

.events-popout-close-btn {
  background: none;
  border: none;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.events-popout-close-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.events-popout-date-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  margin-bottom: 6px;
  box-sizing: border-box;
}

body.theme-dark .events-popout-date-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.18);
}

.events-popout-date-row:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  transform: translateX(2px);
}

body[dir="rtl"] .events-popout-date-row:hover {
  transform: translateX(-2px);
}

.events-popout-date-row.is-active {
  border-color: var(--gold-primary) !important;
  background: rgba(212, 175, 55, 0.18) !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.events-popout-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: start;
  min-width: 0;
}

.events-popout-row-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.events-popout-row-text {
  min-width: 0;
}

.events-popout-row-name {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.events-popout-row-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.events-popout-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.events-popout-count-badge {
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

.events-popout-count-badge.has-events {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
}

.events-popout-check {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.events-popout-section-heading {
  font-size: 0.70rem;
  font-weight: 850;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 10px 0 6px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.events-popout-count-sub {
  font-size: 0.66rem;
  opacity: 0.75;
}

.events-popout-days-list {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.events-popout-empty-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 6px;
  font-style: italic;
}

.events-popout-footer {
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  margin-top: 4px;
}

.events-popout-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.events-popout-date-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.events-popout-view-all-btn {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: opacity 0.15s ease;
}

.events-popout-view-all-btn:hover {
  opacity: 0.8;
}

.events-popout-view-all-btn.is-active {
  font-weight: 900;
  color: var(--accent-success);
}

.events-popout-date-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1.2px solid rgba(212, 175, 55, 0.38);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s ease;
}

body.theme-dark .events-popout-date-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.events-popout-date-input:focus {
  border-color: var(--gold-primary);
}

/* Daily Navigation Header Card */
.events-daily-header-card {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

body.theme-dark .events-daily-header-card {
  background: rgba(26, 22, 16, 0.75);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.events-daily-header-card.is-past-date {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.48);
}

.daily-nav-arrow-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
  padding: 0;
}

body.theme-dark .daily-nav-arrow-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
}

.daily-nav-arrow-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: scale(1.06);
}

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

.events-daily-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 0 8px;
}

.events-daily-date-title {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.events-daily-glyph {
  font-size: 0.96rem;
  flex-shrink: 0;
}

.events-daily-date-label {
  font-family: 'Playfair Display', Didot, Georgia, serif;
  font-size: 0.98rem;
  font-weight: 850;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.events-daily-sub-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}

.events-daily-count {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--gold-primary);
}

.events-daily-jump-link {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.events-daily-jump-link:hover {
  opacity: 0.75;
}

.events-daily-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.events-daily-title {
  font-family: 'Playfair Display', Didot, Georgia, serif;
  font-size: 0.94rem;
  font-weight: 850;
  color: var(--text-primary);
}

.events-daily-sub {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 600;
}

.events-daily-pill-action {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 8px;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Daily Notes Quick Past Days Pills */
.daily-past-quick-section button {
  transition: all 0.16s ease;
}

body.theme-dark .daily-past-quick-section button {
  background: rgba(26, 22, 16, 0.75) !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  color: var(--text-primary) !important;
}

.daily-past-quick-section button:hover {
  transform: translateY(-1px);
  border-color: var(--gold-primary) !important;
}

.daily-past-quick-section button:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Period & Month Picker Popout Modal
   ========================================================================== */
.period-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: deleteOverlayFadeIn 0.22s ease-out;
}

.period-picker-modal-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 22px;
  padding: 16px 14px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.3);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-sizing: border-box;
  animation: deleteCardPopIn 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.theme-gold-premium .period-picker-modal-card,
.theme-gold-premium .period-picker-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 24px 60px rgba(184, 145, 37, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.35);
}

body.theme-dark .period-picker-modal-card,
.theme-dark .period-picker-modal-card {
  background: #181d28;
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.period-month-grid-btn {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.025);
  color: var(--text-primary, #1c1812);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

body.theme-dark .period-month-grid-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.period-month-grid-btn:hover {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
}

.period-month-grid-btn:active {
  transform: scale(0.96);
}

.period-month-grid-btn.is-selected {
  background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
  color: #1C1812 !important;
  font-weight: 900 !important;
  border: 1.8px solid #F3E5AB !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45) !important;
}

.period-month-grid-btn.is-selected span {
  color: #1C1812 !important;
}

.period-year-chip {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.035);
  color: var(--text-primary, #1c1812);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

body.theme-dark .period-year-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.period-year-chip.is-active {
  background: #D4AF37 !important;
  color: #1C1812 !important;
  border-color: #B8860B !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35) !important;
  font-weight: 900 !important;
}






