/* ─── Reset + Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0E0E12;
  --orange:  #FF5E00;
  --white:   #FFFFFF;
  --gray-50: #F9F9FA;
  --gray-100:#F0F0F2;
  --gray-300:#C4C4CC;
  --gray-500:#7A7A8A;
  --gray-800:#2A2A35;
  --radius:  10px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
  --light-gray: #2A2A35;
  --border: rgba(255,255,255,0.08);
  --gray: #7A7A8A;
}

body {
  background: #0E0E12;
  color: #FFFFFF;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
}

html { font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: var(--gray-50); color: var(--black); line-height: 1.5; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-primary  { background: var(--orange); color: var(--white); }
.btn-primary:hover { opacity: 0.9; }

.btn-outline  { background: transparent; color: var(--white);
                border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); }

.btn-call {
  background: var(--orange); color: var(--white);
  padding: 10px 18px; border-radius: 8px; font-size: 0.9rem;
  white-space: nowrap;
}
.btn-call:hover { opacity: 0.9; }

.btn-search {
  width: 100%; margin-top: 16px; padding: 14px;
  font-size: 1rem; border-radius: var(--radius);
}

/* ─── Header ────────────────────────────────────── */
.header { background: var(--black); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--orange); letter-spacing: -0.5px; }

/* ─── Hero ──────────────────────────────────────── */
.hero { background: var(--black); padding: 48px 0 40px; text-align: center; }
.hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
              color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.hero-sub { font-size: 1.05rem; color: var(--gray-300); max-width: 480px; margin: 0 auto; }

/* ─── Search Panel ──────────────────────────────── */
.search-panel { padding: 0 0 24px; background: var(--black); }

.search-card {
  background: var(--gray-800); border-radius: var(--radius);
  padding: 24px; max-width: 860px; margin: 0 auto;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 0.8rem; font-weight: 600;
                     color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.5px; }

.field-group select,
.field-group input[type="number"] {
  background: var(--black); color: var(--white);
  border: 1.5px solid #3A3A48; border-radius: 8px;
  padding: 10px 12px; font-size: 0.95rem;
  appearance: none; -webkit-appearance: none;
  outline: none; width: 100%;
}
.field-group select:focus,
.field-group input:focus { border-color: var(--orange); }

.field-group--checkbox { justify-content: flex-end; padding-bottom: 2px; }
.field-group--checkbox label {
  display: flex; align-items: center; gap: 8px;
  color: var(--gray-300); font-size: 0.9rem;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.field-group--checkbox input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--orange);
}

/* ─── Results ───────────────────────────────────── */
.results-section { padding: 32px 0 48px; }
.results-count { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; }

.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Worker Card — compact list ── */
#workers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
}

.worker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-800);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.worker-name {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}

.verified-dot {
  color: var(--orange);
  font-size: .75rem;
}

.worker-rate {
  font-weight: 700;
  color: var(--orange);
  font-size: .9rem;
  white-space: nowrap;
}

.per-hr {
  font-weight: 400;
  font-size: .75rem;
  color: var(--white);
}

.worker-category {
  font-size: .8rem;
  color: var(--gray-300);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.meta-item {
  font-size: .75rem;
  color: var(--gray-300);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.btn-call {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}

/* Badges */
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.badge {
  font-size: 0.7rem; font-weight: 700; padding: 3px 7px;
  border-radius: 20px; white-space: nowrap;
}
.badge--verified    { background: #E6F4EA; color: #1B7A35; }
.badge--top-rated   { background: #FFF8E1; color: #C17C00; }
.badge--experienced { background: #EEF0FF; color: #3A4FD0; }
.badge--recommended { background: #FCEAF4; color: #B52672; }
.badge--fast        { background: #FFF3E0; color: #E65100; }

/* Rating */
.card-rating { display: flex; align-items: center; gap: 4px; }
.rating-new { font-size: 0.8rem; color: var(--gray-500); font-style: italic; }
.rating-stars .star { font-size: 0.9rem; }
.star.full  { color: #F59E0B; }
.star.half  { color: #F59E0B; opacity: 0.6; }
.star.empty { color: var(--gray-300); }
.rating-avg { font-weight: 700; font-size: 0.95rem; }
.rating-count { font-size: 0.8rem; color: var(--gray-500); }

/* Meta */
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-item { font-size: 0.82rem; color: var(--gray-500); }

/* Footer row */
.card-footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.worker-rate { font-size: 1.2rem; font-weight: 800; color: var(--black); }
.worker-rate span { font-size: 0.8rem; font-weight: 400; color: var(--gray-500); }

/* ─── Empty / Loading ───────────────────────────── */
.empty-state { text-align: center; padding: 48px; color: var(--gray-500); }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── How It Works ──────────────────────────────── */
.how-it-works { background: var(--white); padding: 56px 0; border-top: 1px solid var(--gray-100); }
.how-it-works h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--gray-500); }

/* ─── Footer ────────────────────────────────────── */
.footer { background: var(--black); color: var(--gray-300); padding: 32px 0; text-align: center; }
.footer p { font-size: 0.9rem; margin-bottom: 6px; }
.footer a { color: var(--orange); }

/* ─── Default avatar SVG fallback ──────────────── */
/* (place a default-avatar.svg in /assets/images/) */

/* ─── Mobile ────────────────────────────────────── */
@media (max-width: 600px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .workers-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.7rem; }
}

.custom-select { position: relative; }

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  user-select: none;
  white-space: nowrap;
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  z-index: 100;
  overflow: hidden;
  margin-top: 4px;
}

.custom-select-options {
  max-height: 200px;
  overflow-y: auto;
}

/* ─── DASHBOARD ─────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}

.dash-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px;
}

.dash-header p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

/* ─── SUB BANNER ────────────────────────────────────────────── */
.sub-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.sub-info label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sub-info p {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 4px 0 0;
}

.sub-badge {
  background: rgba(255,94,0,0.15);
  border: 1px solid rgba(255,94,0,0.4);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.points-card,
.referral-card,
.history-card {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.points-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 8px;
}

.points-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  text-align: center;
  line-height: 1;
  margin-bottom: 8px;
}

.points-sub {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin-bottom: 20px;
}

.redeem-btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* ─── REFERRAL CARD ─────────────────────────────────────────── */
.referral-card h3,
.history-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 6px;
}

.referral-card p {
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 16px;
}

.referral-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px dashed rgba(255,94,0,0.4);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.referral-code-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 1px;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.whatsapp-btn {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ─── POINTS HISTORY ────────────────────────────────────────── */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child {
  border-bottom: none;
}

.history-reason {
  font-size: 14px;
  color: var(--white);
  margin-bottom: 2px;
}

.history-date {
  font-size: 12px;
  color: var(--gray);
}

.history-amount {
  font-size: 15px;
  font-weight: 700;
}

.history-amount.positive { color: #4CAF50; }
.history-amount.negative { color: #f44336; }

.empty-history {
  font-size: 14px;
  color: var(--gray);
  text-align: center;
  padding: 20px 0;
}

/* ── Review Modal ── */
.star-picker { display:flex; gap:8px; justify-content:center; margin:16px 0; }
.star-pick   { font-size:2rem; cursor:pointer; color:#ccc; transition:color .15s; }
.star-pick.selected, .star-pick.hovered { color:#f5a623; }

/* ── Hired Section ── */
.hired-section  { margin:24px 0; }
.hired-title    { font-size:1.1rem; font-weight:600; margin-bottom:12px; }
.hired-card     { display:flex; align-items:center; gap:12px; padding:10px 14px;
                  background:#f9f9f9; border-radius:8px; margin-bottom:8px; }
.hired-name     { flex:1; font-weight:500; }
.hired-status   { font-size:.85rem; }
.hired-status.confirmed { color:#2e7d32; }
.hired-status.pending   { color:#e65100; }
.rated-label    { font-size:.85rem; color:#888; }

/* ── Reminder Banner ── */
.rating-reminder-banner { background:#fff8e1; border-left:4px solid #f5a623;
  padding:10px 16px; font-size:.9rem; }
.rating-reminder-banner a { color:#e65100; font-weight:600; text-decoration:none; }

/* ── Toast ── */
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%);
  background:#323232; color:#fff; padding:10px 20px; border-radius:8px;
  font-size:.9rem; z-index:9999; }
  
  /* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: var(--gray-800);
  border-top: 1px solid var(--border);
  z-index: 1000; height: 60px;
}
.bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: none; border: none; color: var(--gray-500);
  cursor: pointer; gap: 2px; transition: color .2s;
}
.bottom-nav-btn.active { color: var(--orange); }
.nav-icon  { font-size: 1.3rem; }
.nav-label { font-size: .7rem; }

/* ── Hire Prompt Toast ── */
.hire-prompt {
  position: fixed; bottom: 70px; left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  width: min(360px, 92vw); z-index: 1100;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.hire-prompt-q    { font-weight: 600; margin-bottom: 12px; text-align: center; }
.hire-prompt-btns { display: flex; gap: 10px; justify-content: center; }
.hire-btn-no  {
  background: transparent; border: 1px solid var(--gray-500);
  color: var(--white); padding: 8px 24px; border-radius: var(--radius);
}
.hire-btn-yes {
  background: var(--orange); border: none;
  color: var(--white); padding: 8px 24px; border-radius: var(--radius);
}
.hire-prompt-hint {
  font-size: .78rem; color: var(--gray-500);
  text-align: center; margin-top: 10px;
}

/* ── History Panel ── */
.history-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1200;
}
.history-panel {
  position: fixed; bottom: 60px; left: 0; right: 0;
  max-height: 70vh; background: var(--gray-800);
  border-radius: 16px 16px 0 0; z-index: 1300;
  overflow-y: auto; padding: 0 0 16px;
  animation: slideUp .3s ease;
}
.history-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--gray-800);
}
.history-panel-header h3 { font-size: 1rem; }
.history-close {
  background: none; border: none; color: var(--white);
  font-size: 1.1rem; cursor: pointer;
}
.history-list   { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.history-empty  { color: var(--gray-500); text-align: center; padding: 24px 0; }
.history-card {
  background: var(--black); border-radius: var(--radius);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
}
.history-card-name   { 
  flex: 1; font-weight: 500;
  color: var(--white); 
}

.history-card-status { font-size: .8rem; color: var(--gray-300); }
.history-card-status.confirmed { color: #4caf50; }
.history-card-status.pending   { color: var(--orange); }
.rated-label { font-size: .8rem; color: var(--gray-500); }

/* Add bottom padding to page so content isn't hidden behind nav */
body { padding-bottom: 70px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--gray-800); color: var(--white);
  padding: 10px 20px; border-radius: 8px;
  font-size: .9rem; z-index: 9999;
  border: 1px solid var(--border);
}

.history-avatar {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
}
.history-card-cat {
  font-size: .78rem; color: var(--gray-300); margin-bottom: 2px;
} 

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Loading / Empty / Error states ── */
#loading-state, #empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 48px 16px;
  color: var(--gray-500);
}
.state-icon { font-size: 2rem; }
.state-text { font-size: .9rem; text-align: center; line-height: 1.5; color: var(--gray-300); }

/* ── Hire Requests ── */
.hire-requests-card {
  background: var(--gray-800);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 16px;
}
.hire-requests-card h3 { font-size: 1rem; margin-bottom: 12px; display:flex; align-items:center; gap:8px; }
.hire-badge {
  background: var(--orange); color: var(--white);
  font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.hire-request-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--black); border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px;
}
.hire-request-info { flex:1; }
.hire-request-name { font-weight: 600; color: var(--white); font-size: .9rem; }
.hire-request-phone { font-size: .78rem; color: var(--gray-300); margin-top: 2px; }
.hire-request-time  { font-size: .72rem; color: var(--gray-500); margin-top: 2px; }
.hire-request-actions { display:flex; gap:8px; }
.btn-accept {
  background: var(--orange); color: var(--white);
  border: none; padding: 6px 14px;
  border-radius: var(--radius); font-size: .82rem; cursor: pointer;
}
.btn-decline {
  background: transparent; color: var(--gray-300);
  border: 1px solid var(--border); padding: 6px 14px;
  border-radius: var(--radius); font-size: .82rem; cursor: pointer;
}
.hire-confirmed-label { font-size: .8rem; color: #4caf50; white-space: nowrap; }
.hire-declined-label  { font-size: .8rem; color: var(--gray-500); white-space: nowrap; }

.hire-history-divider {
  font-size: .75rem; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 0 6px; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.btn-call-again {
  background: transparent; border: 1px solid var(--border);
  color: var(--white); padding: 4px 10px;
  border-radius: var(--radius); cursor: pointer; font-size: .85rem;
}

/* ── Scrollable hire history on worker dashboard ── */
#hire-requests-list {
  max-height: 340px;
  overflow-y: auto;
}

/* ── Scrollable hiring history panel on customer side ── */
#history-list {
  max-height: 380px;
  overflow-y: auto;
}

/* ── Worker Detail Sheet ── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1400;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.sheet-overlay.active { opacity: 1; pointer-events: all; }

.worker-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-height: 90vh;
  background: var(--gray-800);
  border-radius: 20px 20px 0 0;
  z-index: 1500;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s ease;
  padding-bottom: 80px;
  overscroll-behavior: contain;

}
.worker-sheet.active { transform: translateY(0); }

.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}

.sheet-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 16px 12px;
}
.sheet-avatar {
  width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
}
.sheet-name { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.sheet-category { font-size: .85rem; color: var(--gray-300); margin-top: 2px; }
.sheet-rate {
  font-size: 1.1rem; font-weight: 700;
  color: var(--orange); margin-left: auto;
}

.sheet-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 16px 16px;
}
.sheet-meta-item {
  font-size: .82rem; color: var(--gray-300);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--border);
}

.sheet-call-btn {
  display: block; width: calc(100% - 32px);
  margin: 0 16px 20px;
  background: var(--orange); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: 14px; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-align: center;
}

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

.sheet-section-title {
  font-size: .8rem; font-weight: 600;
  color: var(--gray-500); text-transform: uppercase;
  letter-spacing: .08em; padding: 0 16px 12px;
}

/* Reviews */
.sheet-reviews { padding: 0 16px; }

.review-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }

.review-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 4px;
}
.review-stars { color: var(--orange); font-size: .9rem; }
.review-date { font-size: .75rem; color: var(--gray-500); }
.review-comment { font-size: .88rem; color: var(--gray-300); line-height: 1.5; }
.review-empty {
  text-align: center; color: var(--gray-500);
  font-size: .88rem; padding: 24px 0;
}

/* Rate button inside sheet */
.sheet-rate-btn {
  display: block; width: calc(100% - 32px);
  margin: 16px 16px 0;
  background: transparent; color: var(--orange);
  border: 1px solid var(--orange); border-radius: var(--radius);
  padding: 12px; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-align: center;
}

/* Rating modal */
.rating-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex; align-items: flex-end;
}
.rating-modal {
  background: var(--gray-800);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  width: 100%;
  border-top: 1px solid var(--border);
}
.rating-modal h3 {
  color: var(--white); font-size: 1rem;
  margin: 0 0 20px; text-align: center;
}
.star-picker {
  display: flex; justify-content: center;
  gap: 12px; margin-bottom: 16px;
}
.star-picker span {
  font-size: 2rem; cursor: pointer;
  color: var(--gray-500); transition: color .15s, transform .15s;
}
.star-picker span.selected { color: var(--orange); transform: scale(1.2); }

.comment-box {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white); font-size: .9rem;
  padding: 10px 12px; resize: none;
  margin-bottom: 6px;
  display: none; /* shown when rating ≤ 3 */
}
.comment-box.required { display: block; border-color: var(--orange); }
.comment-box.optional { display: block; }

.char-counter {
  font-size: .75rem; color: var(--gray-500);
  text-align: right; margin-bottom: 12px;
  display: none;
}
.char-counter.visible { display: block; }
.char-counter.warn { color: var(--orange); }

.comment-hint {
  font-size: .78rem; color: var(--orange);
  margin-bottom: 10px; display: none;
}
.comment-hint.visible { display: block; }

.rating-submit-btn {
  width: 100%; background: var(--orange);
  color: var(--white); border: none;
  border-radius: var(--radius); padding: 13px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
}
.rating-submit-btn:disabled {
  opacity: .4; cursor: not-allowed;
}