/* ===== SALON HISAB – SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Orange */
  --orange-light: #f7b755;
  --orange-medium: #f6b24e;
  --orange-dark: #d48a1f;

  /* Lavender */
  --lavender-light: #e6e1f7;
  --lavender-medium: #c5b9f5;
  --lavender-dark: #8c7ae6;

  /* Blue */
  --blue-light: #a9c7ec;
  --blue-medium: #8eb5e3;
  --blue-dark: #5d8fcc;

  /* Pink */
  --pink-light: #eba9ec;
  --pink-medium: #e88aef;
  --pink-dark: #c35dcc;

  /* Primary = Blue (Default) */
  --primary: #3b82f6;
  --primary-light: #eff6ff;
  --primary-mid: #93c5fd;
  --primary-dark: #2563eb;

  /* Neutrals */
  --white: #FFFFFF;
  --surface: #F8F7FC;
  --surface-alt: #F2F0FA;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  /* Page background (Default: Blue Light) */
  --page-bg: #eff6ff;
  --header-bg: #eff6ff;

  /* Semantic */
  --success: #10B981;
  --success-bg: #D1FAE5;
  --error: #EF4444;
  --error-bg: #FEE2E2;
  --warn: #F59E0B;
  --warn-bg: #FEF3C7;

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-family);
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== PAGE HEADER ===== */
.page-top-bar {
  width: 100%;
  background: var(--header-bg);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.page-top-bar .logo-img { width: 130px; height: auto; }

.page-top-bar nav { display: flex; gap: 6px; }

.page-top-bar nav a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

.page-top-bar nav a:hover { background: rgba(255,255,255,0.7); }
.page-top-bar nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== SECTION TITLE ===== */
.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.section-heading p { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 400; }

/* ===== PHONES ROW ===== */
.phones-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 0 24px;
}

.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-label {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.phone {
  width: 375px;
  height: 812px;
  background: var(--white);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  overflow: hidden;
}

.screen.active { display: flex; }

/* ===== STATUS BAR ===== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

.status-bar .time { font-weight: 700; font-size: 15px; }
.status-icons { display: flex; gap: 5px; align-items: center; }
.status-icons svg { width: 16px; height: 16px; }

/* ===== SCROLL AREA ===== */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 16px;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0 22px;
  flex-shrink: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 8px 8px 4px;
  margin: 0 4px;
  border-radius: var(--radius-sm);
}

.nav-item .nav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.nav-item .nav-icon svg,
.nav-item .nav-icon i { width: 20px; height: 20px; stroke: var(--text-secondary); stroke-width: 2; }
.nav-item .nav-label { font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.nav-item.active { background: var(--primary); }
.nav-item.active .nav-label { color: #fff; font-weight: 600; }
.nav-item.active .nav-icon svg,
.nav-item.active .nav-icon i { stroke: #fff !important; }

/* ===== PAGE HEADER ===== */
.page-header { padding: 16px 20px 12px; flex-shrink: 0; }
.page-header-row { display: flex; justify-content: space-between; align-items: center; }
.page-title { font-family: var(--font-family); font-size: 22px; font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ===== ICON BUTTONS ===== */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}

.icon-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.icon-btn-primary svg { stroke: #fff !important; }
.icon-btn-primary svg path { stroke: #fff !important; fill: #fff !important; }

/* ===== SECTION LABEL ===== */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 20px;
  margin-bottom: 10px;
}

/* ===== GREETING ===== */
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.greeting { font-size: 13px; color: var(--text-secondary); margin-bottom: 2px; }
.greeting-name { font-family: var(--font-family); font-size: 20px; font-weight: 700; color: var(--text-primary); }

/* ===== STORE SELECTOR ===== */
.store-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--lavender-light);
  border: 1.5px solid var(--lavender);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.store-selector:hover { background: var(--lavender); color: #fff; }

/* ===== KPI GRID ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.kpi-card.highlight { background: var(--primary); border-color: var(--primary); }
.kpi-card.highlight .kpi-label { color: rgba(255,255,255,0.7); }
.kpi-card.highlight .kpi-value { color: #fff; }
.kpi-card.highlight .kpi-change { color: rgba(255,255,255,0.8); }

.kpi-label {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.kpi-value { font-family: var(--font-family); font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.kpi-change { font-size: 11px; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 2px; }
.kpi-change.down { color: var(--error); }

/* ===== CHART ===== */
.chart-card { background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); margin: 0 20px 20px; padding: 16px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.chart-filter { display: flex; gap: 6px; }

.chip {
  font-size: 11px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-full); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; background: var(--white);
  transition: all 0.15s;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.mini-chart { height: 80px; display: flex; align-items: flex-end; gap: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; border-radius: 6px 6px 0 0; background: var(--lavender-light); transition: height 0.4s ease; }
.bar.active-bar { background: var(--primary); }
.bar-label { font-size: 9px; color: var(--text-secondary); font-weight: 500; }

/* ===== ACTIVITY LIST ===== */
.activity-list { margin: 0 20px 20px; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.activity-row:last-child { border-bottom: none; }

.avatar {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.avatar-purple { background: var(--lavender-light); color: var(--primary); }
.avatar-orange { background: var(--lavender-light); color: var(--primary); }
.avatar-lavender { background: var(--lavender-light); color: var(--primary); }
.avatar-blue { background: var(--lavender-light); color: var(--primary); }
.avatar-pink { background: var(--lavender-light); color: var(--primary); }

.activity-info { flex: 1; min-width: 0; }
.activity-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.activity-amount { font-size: 14px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.activity-time { font-size: 10px; color: var(--text-secondary); text-align: right; margin-top: 2px; }

/* ===== FAB ===== */
.fab {
  position: absolute; bottom: 88px; right: 20px;
  width: 54px; height: 54px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(140,122,230,0.4);
  cursor: pointer; z-index: 10; transition: transform 0.15s;
  color: #fff;
}
.fab svg { stroke: #fff !important; }
.fab svg path { stroke: #fff !important; fill: #fff !important; }
.fab:active { transform: scale(0.95); }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex; 
  align-items: center; 
  gap: 10px;
  background: var(--surface); 
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); 
  padding: 10px 14px; 
  margin: 0 20px 16px;
  position: relative;
  overflow: hidden;
}
.search-bar input {
  flex: 1; 
  border: none; 
  background: none;
  font-family: var(--font-family); 
  font-size: 14px;
  color: var(--text-primary); 
  outline: none;
}
.search-bar input::placeholder { 
  color: var(--text-secondary); 
}

/* ===== WORKER CARD ===== */
.worker-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); padding: 14px 20px;
  border-bottom: 1px solid var(--border-light); cursor: pointer;
  transition: background 0.15s;
}
.worker-card:hover { background: var(--surface); }
.worker-info { flex: 1; min-width: 0; }
.worker-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.worker-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.worker-right { text-align: right; }
.worker-earnings { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.worker-commission {
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--lavender-light); padding: 2px 8px;
  border-radius: var(--radius-full); display: inline-block; margin-top: 3px;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.status-dot.offline { background: var(--border); }

/* ===== STORE CARD ===== */
.store-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; margin: 0 20px 12px; cursor: pointer;
  transition: all 0.2s;
}
.store-card:hover { border-color: var(--lavender); box-shadow: 0 4px 16px rgba(140,122,230,0.1); }
.store-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.store-name-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.store-address { font-size: 12px; color: var(--text-secondary); }
.store-badge { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); background: var(--success-bg); color: var(--success); }

.store-stats { display: flex; border-top: 1px solid var(--border-light); padding-top: 12px; }
.store-stat { flex: 1; text-align: center; padding: 0 8px; border-right: 1px solid var(--border-light); }
.store-stat:last-child { border-right: none; }
.store-stat-value { font-family: var(--font-family); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.store-stat-label { font-size: 10px; color: var(--text-secondary); margin-top: 1px; }

.store-code-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lavender-light); border-radius: var(--radius-xs);
  padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 10px;
}

/* ===== FORM ELEMENTS ===== */
.form-section { padding: 0 20px; margin-bottom: 20px; }
.field-group { margin-bottom: 16px; }
.field-label {
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block;
}
.field-input {
  width: 100%; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-family);
  font-size: 14px; color: var(--text-primary); outline: none;
  transition: border-color 0.2s; appearance: none;
}
.field-input:focus { border-color: var(--primary); background: var(--white); }
.field-input::placeholder { color: var(--text-secondary); }

/* ===== SERVICE CHIPS ===== */
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; margin-bottom: 16px; }
.service-chip {
  padding: 8px 14px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); font-size: 12px;
  font-weight: 600; color: var(--text-secondary); background: var(--white);
  cursor: pointer; transition: all 0.15s;
}
.service-chip.selected { background: var(--lavender-light); border-color: var(--primary); color: var(--primary); }

/* ===== SELECTED SERVICES ===== */
.selected-services {
  margin: 0 20px 20px; background: var(--surface);
  border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden;
}
.selected-service-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.selected-service-row:last-child { border-bottom: none; }
.sel-svc-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sel-svc-comm { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.sel-svc-price { font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius-lg);
  padding: 16px; font-family: var(--font-family);
  font-size: 15px; font-weight: 600;
  width: calc(100% - 40px); margin: 0 20px;
  cursor: pointer; display: block; text-align: center;
  transition: all 0.15s; letter-spacing: 0.01em;
}
.btn-primary:active { transform: scale(0.99); opacity: 0.9; }


.btn-outline {
  background: transparent; border: 1.5px solid var(--primary);
  color: var(--primary); border-radius: var(--radius-lg);
  padding: 14px; font-family: var(--font-family);
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: block; text-align: center; transition: all 0.15s;
  width: calc(100% - 40px); margin: 0 20px;
}
.btn-outline:hover { background: var(--lavender-light); }

/* ===== SETTINGS ===== */
.settings-section { margin-bottom: 24px; }
.settings-row {
  display: flex; align-items: center; padding: 14px 20px;
  border-bottom: 1px solid var(--border-light); gap: 14px;
  cursor: pointer; transition: background 0.15s;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: var(--surface); }
.settings-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--surface); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.settings-text { flex: 1; }
.settings-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.settings-desc { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.settings-row svg.arrow { width: 16px; height: 16px; flex-shrink: 0; }

.toggle { width: 42px; height: 24px; background: var(--primary); border-radius: 12px; position: relative; cursor: pointer; }
.toggle::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; top: 3px; right: 3px;
  transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.off { background: var(--border); }
.toggle.off::after { left: 3px; right: auto; }

.profile-section {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border-light); margin-bottom: 16px;
}
.profile-avatar {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--lavender-light); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-family);
  font-size: 20px; font-weight: 700; color: var(--primary); flex-shrink: 0; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.profile-phone { font-size: 12px; color: var(--text-secondary); }

/* ===== PLAN BANNER ===== */
.plan-banner {
  margin: 0 20px 20px;
  background: var(--primary);
  border-radius: var(--radius-md); padding: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.plan-text { color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.plan-name { color: #fff; font-family: var(--font-family); font-size: 18px; font-weight: 700; }
.upgrade-btn {
  background: rgba(255,255,255,0.2); border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-xs); padding: 8px 14px;
  color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}

/* ===== WORKER PROFILE CARD ===== */
.worker-profile-card {
  margin: 0 20px 20px;
  background: var(--primary);
  border-radius: var(--radius-md); padding: 20px; color: #fff;
  position: relative; overflow: hidden;
}
.worker-profile-card::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; background: rgba(255,255,255,0.08); border-radius: 50%;
}
.wp-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; position: relative; z-index: 1; }
.wp-avatar {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.2); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-family);
  font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden;
}
.wp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.wp-name { font-family: var(--font-family); font-size: 18px; font-weight: 700; color: #fff; }
.wp-role { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.wp-stats { display: flex; background: rgba(0,0,0,0.12); border-radius: var(--radius-sm); overflow: hidden; position: relative; z-index: 1; }
.wp-stat { flex: 1; text-align: center; padding: 12px 8px; border-right: 1px solid rgba(255,255,255,0.1); }
.wp-stat:last-child { border-right: none; }
.wp-stat-value { font-family: var(--font-family); font-size: 16px; font-weight: 700; color: #fff; }
.wp-stat-label { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ===== TABS ===== */
.tab-bar {
  display: flex; background: var(--surface); margin: 0 20px 16px;
  border-radius: var(--radius-sm); padding: 3px; border: 1px solid var(--border);
}
.tab {
  flex: 1; text-align: center; font-size: 12px; font-weight: 600;
  padding: 9px 0; border-radius: var(--radius-xs); cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s;
}
.tab.active { background: var(--white); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* ===== WORK HISTORY ===== */
.work-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border-light); }
.work-row:last-child { border-bottom: none; }
.work-time-badge {
  font-size: 11px; font-weight: 700; color: var(--text-secondary);
  background: var(--surface); padding: 4px 10px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); white-space: nowrap;
}
.work-info { flex: 1; }
.work-service { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.work-customer { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.work-amount { font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* ===== BACK BUTTON ===== */
.back-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  padding: 14px 20px 4px; cursor: pointer; background: none;
  border: none; flex-shrink: 0;
}

/* ===== COMPARISON ===== */
.comparison-card { margin: 0 20px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.comp-title { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.comp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comp-row:last-child { margin-bottom: 0; }
.comp-label { font-size: 12px; color: var(--text-secondary); width: 72px; flex-shrink: 0; }
.comp-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.comp-bar { height: 100%; border-radius: 4px; background: var(--primary); transition: width 0.5s ease; }
.comp-val { font-size: 12px; font-weight: 800; color: var(--text-primary); width: 56px; text-align: right; flex-shrink: 0; }

/* ===== AD BANNER ===== */
.ad-banner {
  margin: 0 20px 16px; background: var(--warn-bg);
  border: 1px solid #FDE68A; border-radius: var(--radius-md);
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
}
.ad-label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); margin-bottom: 2px; }
.ad-text { font-size: 12px; font-weight: 500; color: #92400E; }
.ad-close { margin-left: auto; color: var(--warn); font-size: 16px; cursor: pointer; flex-shrink: 0; }

/* ===== NOTIFICATION DOT ===== */
.notif-dot { position: relative; display: inline-block; }
.notif-dot::after {
  content: ''; position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; background: var(--error);
  border-radius: 50%; border: 1.5px solid var(--white);
}

/* ===== SUMMARY STRIP ===== */
.summary-strip {
  margin: 12px 20px;
  background: var(--lavender-light);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--primary-mid);
}

.summary-strip.primary {
  background: var(--primary);
  border-color: var(--primary);
}
.summary-strip.primary,
.summary-strip.primary * {
  color: #fff !important;
}

/* ===== TOTAL ROW ===== */
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-top: 2px solid var(--border); margin: 0 20px 20px;
}
.total-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.total-value { font-family: var(--font-family); font-size: 22px; font-weight: 700; color: var(--primary); }

/* ===== CALENDAR STRIP (reference UI style) ===== */
.calendar-strip {
  display: flex; gap: 6px; padding: 0 20px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none;
}
.calendar-strip::-webkit-scrollbar { display: none; }
.cal-day {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1.5px solid var(--border);
  min-width: 48px; cursor: pointer; transition: all 0.15s;
}
.cal-day.active { background: var(--primary); border-color: var(--primary); }
.cal-day .day-name { font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.cal-day .day-num { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }
.cal-day.active .day-name, .cal-day.active .day-num { color: #fff; }

/* ===== PLAN CARD ===== */
.plan-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.plan-card.featured { border-color: var(--primary); border-width: 2px; position: relative; overflow: hidden; }
.plan-card .plan-badge {
  position: absolute; top: 0; right: 0;
  background: var(--primary);
  border-radius: 0 var(--radius-md) 0 var(--radius-sm);
  padding: 4px 14px; font-size: 10px; font-weight: 800; color: #fff;
}

/* ===== COLORED BANNER CARD ===== */
.banner-card {
  margin: 0 20px 16px;
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.banner-card.primary-bg { background: var(--primary); color: #fff; }

/* ===== SERVICE CATEGORY CARD ===== */
.service-cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.15s;
}
.service-cat-card:hover { background: var(--surface); }
.svc-cat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.svc-cat-info { flex: 1; }
.svc-cat-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.svc-cat-count { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* ===== OTP INPUT (DARK MODE FIX) ===== */
.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.otp-box {
  width: 48px;
  height: 56px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.otp-box:focus {
  border-color: var(--primary);
}

.otp-box::placeholder {
  color: var(--text-secondary);
}

/* ===== AUTH SCREEN FIXES ===== */
.auth-screen {
  background: var(--primary);
}

.auth-screen .auth-logo-container {
  background: var(--white);
}

.auth-screen .auth-tag {
  color: #fff;
}

.auth-screen .auth-title,
.auth-screen .auth-subtitle {
  color: var(--text-primary);
}

/* ===== ICON CONTAINERS ON PRIMARY BG ===== */
.icon-on-primary,
.primary-bg svg,
.primary-bg .icon,
.kpi-card.highlight svg,
.worker-profile-card svg,
.plan-banner svg,
.banner-card.primary-bg svg {
  color: #fff !important;
  stroke: #fff !important;
}

.icon-on-primary path,
.primary-bg svg path,
.primary-bg .icon path,
.kpi-card.highlight svg path,
.worker-profile-card svg path,
.plan-banner svg path,
.banner-card.primary-bg svg path {
  stroke: #fff !important;
  fill: #fff !important;
}

/* ===== DARK MODE HELPER CLASSES ===== */
.dark-mode-white-text {
  color: #fff !important;
}

/* ===== DARK MODE COMPONENT FIXES ===== */
/* Dark mode active body class for comprehensive styling */
.dark-mode-active .calendar-strip {
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}

.dark-mode-active .calendar-strip .day {
  color: rgba(255,255,255,0.7);
}

.dark-mode-active .calendar-strip .day.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Summary cards - better contrast in dark mode */
.dark-mode-active .summary-card,
.dark-mode-active .kpi-card,
.dark-mode-active .revenue-card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.dark-mode-active .summary-card h3,
.dark-mode-active .kpi-card h3,
.dark-mode-active .revenue-card h3 {
  color: #fff !important;
}

.dark-mode-active .summary-card p,
.dark-mode-active .kpi-card p,
.dark-mode-active .revenue-card p {
  color: rgba(255,255,255,0.7) !important;
}

/* Tab bars and navigation */
.dark-mode-active .tab-bar {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.dark-mode-active .tab-item {
  color: rgba(255,255,255,0.6) !important;
}

.dark-mode-active .tab-item.active,
.dark-mode-active .tab.active {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
}

/* Form elements */
.dark-mode-active .input-field,
.dark-mode-active .select-field,
.dark-mode-active .textarea-field,
.dark-mode-active .field-input {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

.dark-mode-active .input-field::placeholder,
.dark-mode-active .textarea-field::placeholder,
.dark-mode-active .field-input::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

/* Service cards and similar */
.dark-mode-active .service-card,
.dark-mode-active .worker-card,
.dark-mode-active .appointment-card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.dark-mode-active .service-card h4,
.dark-mode-active .worker-card h4,
.dark-mode-active .appointment-card h4,
.dark-mode-active .worker-name {
  color: #fff !important;
}

.dark-mode-active .service-card p,
.dark-mode-active .worker-card p,
.dark-mode-active .appointment-card p,
.dark-mode-active .worker-meta {
  color: rgba(255,255,255,0.7) !important;
}

/* Toggle switches */
.dark-mode-active .toggle-switch {
  background: rgba(255,255,255,0.2) !important;
}

.dark-mode-active .toggle-switch.active {
  background: var(--primary) !important;
}

/* List items */
.dark-mode-active .list-item {
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.dark-mode-active .list-item h5 {
  color: #fff !important;
}

.dark-mode-active .list-item p {
  color: rgba(255,255,255,0.7) !important;
}

/* Status indicators */
.dark-mode-active .status-badge {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

.dark-mode-active .status-badge.success {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
}

.dark-mode-active .status-badge.warning {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
}

.dark-mode-active .status-badge.error {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

/* Search bars */
.dark-mode-active .search-bar {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.dark-mode-active .search-bar input {
  color: #fff !important;
  background: transparent !important;
}

.dark-mode-active .search-bar input::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

/* Worker earnings and other numeric displays */
.dark-mode-active .worker-earnings {
  color: #fff !important;
}

/* Commission badges */  
.dark-mode-active .worker-commission {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* Welcome back text */
.dark-mode-active [style*="color:var(--text-primary)"] {
  color: #fff !important;
}

.dark-mode-active [style*="color:var(--text-secondary)"] {
  color: rgba(255,255,255,0.7) !important;
}

/* Role selection cards - CRITICAL dark mode fix */
.dark-mode-active [style*="background:var(--lavender-light)"],
.dark-mode-active [style*="background: var(--lavender-light)"] {
  background: rgba(255,255,255,0.08) !important;
}

.dark-mode-active [style*="border:1.5px solid var(--border)"],
.dark-mode-active [style*="border: 1.5px solid var(--border)"],
.dark-mode-active [style*="border:2px solid var(--primary)"] {
  border-color: rgba(255,255,255,0.2) !important;
}

/* Tab bar in forms - dark mode */
.dark-mode-active .tab {
  color: rgba(255,255,255,0.6) !important;
}

.dark-mode-active .tab.active {
  color: #fff !important;
  background: var(--primary) !important;
}

/* Field groups and inputs */
.dark-mode-active .field-label {
  color: rgba(255,255,255,0.8) !important;
}

.dark-mode-active .field-input,
.dark-mode-active input[type="text"],
.dark-mode-active input[type="email"],
.dark-mode-active input[type="tel"],
.dark-mode-active input[type="password"] {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

.dark-mode-active .field-input::placeholder,
.dark-mode-active input::placeholder {
  color: rgba(255,255,255,0.4) !important;
}

/* Country code selector */
.dark-mode-active [style*="background:var(--surface)"] {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* FAB button */
.dark-mode-active .fab {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* OTP boxes */
.dark-mode-active .otp-box {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

/* Page headers inside phone screens */
.dark-mode-active .page-header {
  background: transparent !important;
}

/* Icon buttons */
.dark-mode-active .icon-btn {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* Auth screen fixes */
.dark-mode-active .auth-screen {
  background: var(--primary) !important;
}

/* Store cards, settings items */
.dark-mode-active .store-card,
.dark-mode-active .settings-item,
.dark-mode-active .menu-item {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.dark-mode-active .store-card h4,
.dark-mode-active .settings-item h4,
.dark-mode-active .menu-item h4 {
  color: #fff !important;
}

.dark-mode-active .store-card p,
.dark-mode-active .settings-item p,
.dark-mode-active .menu-item p {
  color: rgba(255,255,255,0.7) !important;
}

/* Banner cards */
.dark-mode-active .banner-card {
  background: var(--primary) !important;
}

/* Stats/KPI with specific colors */
.dark-mode-active .stat-value,
.dark-mode-active .kpi-value {
  color: #fff !important;
}

.dark-mode-active .stat-label,
.dark-mode-active .kpi-label {
  color: rgba(255,255,255,0.7) !important;
}

/* Bottom navigation in dark mode */
.dark-mode-active .bottom-nav {
  background: rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.dark-mode-active .nav-item {
  color: rgba(255,255,255,0.5) !important;
}

.dark-mode-active .nav-item.active {
  color: var(--primary) !important;
}

.dark-mode-active .nav-label {
  color: inherit !important;
}

/* Summary strip */
.dark-mode-active .summary-strip {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--radius-md) !important;
}

/* Scroll area backgrounds */
.dark-mode-active .scroll-area {
  background: transparent !important;
}

/* Status bar - time */
.dark-mode-active .status-bar .time {
  color: #fff !important;
}

/* Dashboard header elements */
.dark-mode-active .dash-header .greeting {
  color: rgba(255,255,255,0.7) !important;
}

.dark-mode-active .dash-header .greeting-name {
  color: #fff !important;
}

/* Store selector and location text */
.dark-mode-active .store-selector {
  color: #fff !important;
}

/* Icon buttons in headers */
.dark-mode-active .icon-btn svg path,
.dark-mode-active .dash-header svg path {
  stroke: #fff !important;
}

/* KPI and chart elements */
.dark-mode-active .kpi-label {
  color: rgba(255,255,255,0.7) !important;
}

.dark-mode-active .kpi-value {
  color: #fff !important;
}

.dark-mode-active .chart-title {
  color: #fff !important;
}

.dark-mode-active .section-label {
  color: #fff !important;
}

/* Calendar strip days */
.dark-mode-active .cal-day {
  color: rgba(255,255,255,0.7) !important;
}

.dark-mode-active .cal-day.active {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
}

/* Store status badges - keep text dark for contrast */
.dark-mode-active .store-badge {
  color: #000 !important;
}

/* Avatar rings and borders */
.dark-mode-active .avatar {
  border-color: rgba(255,255,255,0.2) !important;
}

/* Action buttons within cards */
.dark-mode-active .card-action {
  color: var(--primary) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .phones-row { gap: 16px; padding: 0 12px; }
  .phone { width: 340px; height: 740px; border-radius: 36px; }
}
