/* ================================================
   Jobs Drivers — Frontend Styles
   ================================================ */

:root {
  --dc-bg:       #080b14;
  --dc-bg2:      #0d1120;
  --dc-surface:  #111828;
  --dc-surface2: #1a2235;
  --dc-border:   rgba(255,255,255,0.07);
  --dc-text:     #eef2ff;
  --dc-text2:    #8b9ab8;
  --dc-text3:    #5a6782;
  --dc-accent:   #3b82f6;
  --dc-accent2:  #2563eb;
  --dc-orange:   #f97316;
  --dc-orange2:  #ea6800;
  --dc-green:    #22c55e;
  --dc-red:      #ef4444;
  --dc-yellow:   #eab308;
  --dc-radius:   14px;
  --dc-radius-sm:8px;
  --dc-shadow:   0 4px 24px rgba(0,0,0,0.35);
  --dc-transition: 0.2s ease;
}

/* ---- Base ---- */
.dc-wrap *, .dc-dashboard * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.dc-wrap {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--dc-text);
  background: var(--dc-bg);
  min-height: 60vh;
}

/* ================================================
   BUTTONS
   ================================================ */
.dc-btn-primary,
.dc-btn-secondary,
.dc-btn-orange,
.dc-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--dc-radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--dc-transition);
  text-decoration: none;
  white-space: nowrap;
}
.dc-btn-primary  { background: var(--dc-accent);  color: #fff; }
.dc-btn-primary:hover  { background: var(--dc-accent2); }
.dc-btn-orange   { background: var(--dc-orange);  color: #fff; }
.dc-btn-orange:hover   { background: var(--dc-orange2); }
.dc-btn-secondary { background: var(--dc-surface2); color: var(--dc-text); border: 1px solid var(--dc-border); }
.dc-btn-secondary:hover { background: var(--dc-surface); }
.dc-btn-outline  { background: transparent; color: var(--dc-text); border: 1.5px solid var(--dc-border); }
.dc-btn-outline:hover  { border-color: var(--dc-accent); color: var(--dc-accent); }
.dc-btn-full { width: 100%; justify-content: center; }
.dc-btn-sm { padding: 8px 16px; font-size: 13px; }
.dc-btn-danger { color: var(--dc-red) !important; border-color: var(--dc-red) !important; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ================================================
   BADGES
   ================================================ */
.dc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dc-badge-green  { background: rgba(34,197,94,.18);  color: var(--dc-green); }
.dc-badge-red    { background: rgba(239,68,68,.18);   color: var(--dc-red); }
.dc-badge-yellow { background: rgba(234,179,8,.18);   color: var(--dc-yellow); }
.dc-badge-orange { background: rgba(249,115,22,.18);  color: var(--dc-orange); }
.dc-badge-grey   { background: rgba(255,255,255,.08); color: var(--dc-text2); }
.dc-badge-count  { background: var(--dc-red); color: #fff; border-radius: 20px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }

/* ================================================
   LOGO
   ================================================ */
.dc-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--dc-accent), var(--dc-orange));
  font-size: 22px;
  flex-shrink: 0;
}
.dc-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dc-text);
  margin-left: 10px;
}
.dc-logo-text span { color: var(--dc-accent); }
.dc-logo-inline { display: flex; align-items: center; margin-bottom: 12px; }

/* ================================================
   FORMS
   ================================================ */
.dc-form { display: flex; flex-direction: column; gap: 0; }
.dc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.dc-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dc-text2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-field input,
.dc-field select,
.dc-field textarea {
  background: var(--dc-surface2);
  border: 1.5px solid var(--dc-border);
  border-radius: var(--dc-radius-sm);
  color: var(--dc-text);
  font-size: 15px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color var(--dc-transition);
  outline: none;
  font-family: inherit;
}
.dc-field input:focus,
.dc-field select:focus,
.dc-field textarea:focus { border-color: var(--dc-accent); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.dc-field input::placeholder,
.dc-field textarea::placeholder { color: var(--dc-text3); }
.dc-field select option { background: var(--dc-surface); color: var(--dc-text); }
.dc-req { color: var(--dc-red); }

.dc-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.dc-col-full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .dc-field-grid { grid-template-columns: 1fr; }
  .dc-col-full { grid-column: auto; }
}

/* ================================================
   FILE UPLOAD
   ================================================ */
.dc-file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dc-surface2);
  border: 1.5px dashed var(--dc-border);
  border-radius: var(--dc-radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color var(--dc-transition);
}
.dc-file-upload:hover { border-color: var(--dc-accent); }
.dc-file-upload input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}
.dc-file-label { font-size: 13px; color: var(--dc-text2); pointer-events: none; }
.dc-file-upload-lg { padding: 20px; justify-content: center; }
.dc-file-upload.has-file { border-color: var(--dc-green); }
.dc-file-view { font-size: 11px; color: var(--dc-accent); text-decoration: none; margin-left: auto; }

/* ================================================
   CHECKBOXES
   ================================================ */
.dc-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--dc-text);
}
.dc-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 4px;
  accent-color: var(--dc-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.dc-terms-label {
  background: var(--dc-surface2);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-sm);
  padding: 14px;
  margin-top: 8px;
}

/* ================================================
   MESSAGES (form feedback)
   ================================================ */
.dc-form-msg {
  padding: 12px 16px;
  border-radius: var(--dc-radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.dc-form-msg.dc-msg-success { background: rgba(34,197,94,.12); color: var(--dc-green); border: 1px solid rgba(34,197,94,.25); }
.dc-form-msg.dc-msg-error   { background: rgba(239,68,68,.12);  color: var(--dc-red);   border: 1px solid rgba(239,68,68,.25); }

/* ================================================
   AUTH PAGES
   ================================================ */
.dc-auth-box {
  max-width: 480px;
  margin: 60px auto;
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 40px;
  box-shadow: var(--dc-shadow);
}
.dc-auth-logo { display: flex; align-items: center; margin-bottom: 28px; }
.dc-auth-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.dc-auth-sub { color: var(--dc-text2); font-size: 14px; margin-bottom: 24px; }
.dc-auth-footer { margin-top: 20px; text-align: center; font-size: 14px; color: var(--dc-text2); }
.dc-auth-footer a { color: var(--dc-accent); text-decoration: none; }
.dc-auth-switch { text-align: center; margin-top: 24px; color: var(--dc-text2); font-size: 14px; }
.dc-auth-switch a { color: var(--dc-accent); text-decoration: none; }
.dc-forgot { font-size: 12px; color: var(--dc-text3); text-decoration: none; text-align: right; margin-top: 4px; display: block; }
.dc-forgot:hover { color: var(--dc-accent); }

/* Tabs */
.dc-tabs { display: flex; gap: 4px; background: var(--dc-bg2); border-radius: var(--dc-radius-sm); padding: 4px; margin-bottom: 24px; }
.dc-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--dc-text2);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  letter-spacing: 0.01em;
  outline: none;
}
.dc-tab:hover { color: var(--dc-text); background: rgba(255,255,255,0.06); }
.dc-tab.active {
  background: var(--dc-surface);
  color: var(--dc-text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  border: 1px solid var(--dc-border);
}
.dc-tab[data-tab="login-driver"].active  { color: var(--dc-accent);  border-color: rgba(59,130,246,.3);  background: rgba(59,130,246,.08); }
.dc-tab[data-tab="login-company"].active { color: var(--dc-orange);  border-color: rgba(249,115,22,.3);  background: rgba(249,115,22,.08); }

/* CSS-only login tabs (no JavaScript required) */
.dc-login-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.dc-login .dc-when-company { display: none; }
.dc-login .dc-footer-company-reg,
.dc-login .dc-footer-driver-link { display: none; }

.dc-login #dc-login-as-driver:checked ~ .dc-login-tabs label[for="dc-login-as-driver"],
.dc-login #dc-login-as-company:checked ~ .dc-login-tabs label[for="dc-login-as-company"] {
  background: var(--dc-surface);
  color: var(--dc-text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  border: 1px solid var(--dc-border);
}
.dc-login #dc-login-as-driver:checked ~ .dc-login-tabs label[for="dc-login-as-driver"] {
  color: var(--dc-accent);
  border-color: rgba(59,130,246,.3);
  background: rgba(59,130,246,.08);
}
.dc-login #dc-login-as-company:checked ~ .dc-login-tabs label[for="dc-login-as-company"] {
  color: var(--dc-orange);
  border-color: rgba(249,115,22,.3);
  background: rgba(249,115,22,.08);
}

.dc-login #dc-login-as-company:checked ~ .dc-auth-sub .dc-when-driver,
.dc-login #dc-login-as-company:checked ~ #dc-login-form .dc-when-driver,
.dc-login #dc-login-as-company:checked ~ .dc-auth-footer .dc-footer-driver,
.dc-login #dc-login-as-company:checked ~ .dc-auth-footer .dc-footer-company-link { display: none; }

.dc-login #dc-login-as-company:checked ~ .dc-auth-sub .dc-when-company,
.dc-login #dc-login-as-company:checked ~ #dc-login-form .dc-when-company,
.dc-login #dc-login-as-company:checked ~ .dc-auth-footer .dc-footer-company-reg,
.dc-login #dc-login-as-company:checked ~ .dc-auth-footer .dc-footer-driver-link { display: block; }

.dc-login #dc-login-form .dc-when-company { display: none; }
.dc-login #dc-login-as-company:checked ~ #dc-login-form .dc-when-company { display: inline; }

.dc-login-tabs label.dc-tab {
  display: block;
  text-align: center;
  margin: 0;
}

/* ================================================
   REGISTRATION
   ================================================ */
.dc-register-header {
  text-align: center;
  padding: 40px 20px 20px;
  max-width: 700px;
  margin: 0 auto;
}
.dc-register-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.dc-register-header p { color: var(--dc-text2); font-size: 16px; }
.dc-back-link { color: var(--dc-text3); text-decoration: none; font-size: 14px; display: block; margin-bottom: 16px; }
.dc-back-link:hover { color: var(--dc-accent); }

/* Steps */
.dc-steps {
  display: flex;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 0 20px;
  counter-reset: none;
  overflow-x: auto;
}
.dc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dc-text3);
  border-bottom: 2px solid var(--dc-border);
  white-space: nowrap;
  transition: var(--dc-transition);
  cursor: default;
}
.dc-step span {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--dc-surface2);
  border: 2px solid var(--dc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.dc-step.active { color: var(--dc-accent); border-bottom-color: var(--dc-accent); }
.dc-step.active span { background: var(--dc-accent); border-color: var(--dc-accent); color: #fff; }
.dc-step.completed { color: var(--dc-green); border-bottom-color: var(--dc-green); }
.dc-step.completed span { background: var(--dc-green); border-color: var(--dc-green); color: #fff; }

/* Step panels */
.dc-register-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.dc-step-panel {
  display: none;
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 32px;
  margin-bottom: 16px;
  border: none;
}
.dc-step-panel.active { display: block; }
.dc-step-panel legend {
  font-size: 20px;
  font-weight: 700;
  color: var(--dc-text);
  margin-bottom: 24px;
  display: block;
}
.dc-section-title { font-size: 15px; font-weight: 700; color: var(--dc-text2); margin: 20px 0 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.dc-step-note { font-size: 13px; color: var(--dc-text2); margin-bottom: 16px; }

/* Declaration */
.dc-declaration {
  background: var(--dc-surface2);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-sm);
  padding: 20px;
  margin-top: 24px;
}
.dc-declaration h4 { margin-bottom: 8px; font-size: 15px; }
.dc-declaration ul { padding-left: 20px; margin: 8px 0 16px; }
.dc-declaration li { font-size: 13px; color: var(--dc-text2); margin-bottom: 4px; }
.dc-declaration a { color: var(--dc-accent); text-decoration: none; }

/* Form navigation */
.dc-form-nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.dc-form-nav-single { justify-content: center; }
.dc-form-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Registration card (company) */
.dc-register-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.dc-card-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.dc-plan-card { background: var(--dc-bg2); }
.dc-plans { display: flex; gap: 16px; flex-wrap: wrap; }
.dc-plan-option {
  flex: 1;
  min-width: 240px;
  background: var(--dc-surface2);
  border: 1.5px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 20px;
}
.dc-plan-selected { border-color: var(--dc-accent); }
.dc-plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dc-plan-name { font-weight: 700; }
.dc-plan-price { font-size: 20px; font-weight: 700; color: var(--dc-accent); }
.dc-plan-price small { font-size: 12px; color: var(--dc-text2); }
.dc-plan-features { list-style: none; margin-bottom: 12px; }
.dc-plan-features li { font-size: 13px; color: var(--dc-text2); padding: 4px 0; }
.dc-plan-note { font-size: 12px; color: var(--dc-text3); }

/* ================================================
   DASHBOARD
   ================================================ */
.dc-dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--dc-bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--dc-text);
}

/* Sidebar */
.dc-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--dc-surface);
  border-right: 1px solid var(--dc-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dc-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--dc-surface2);
  border-radius: var(--dc-radius);
  margin-bottom: 28px;
}
.dc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dc-accent), var(--dc-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.dc-avatar-orange { background: linear-gradient(135deg, var(--dc-orange), #f43f5e); }
.dc-profile-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.dc-profile-info strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dc-sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--dc-radius-sm);
  color: var(--dc-text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--dc-transition);
}
.dc-nav-item:hover, .dc-nav-item.active {
  background: var(--dc-surface2);
  color: var(--dc-text);
}
.dc-nav-item.active { color: var(--dc-accent); font-weight: 600; }
.dc-upgrade-link { color: var(--dc-orange) !important; }

.dc-sidebar-footer { margin-top: auto; padding-top: 16px; }

/* Main content */
.dc-main {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  max-width: 1100px;
}
.dc-main h2 { font-size: 26px; font-weight: 700; margin-bottom: 28px; }

/* Panels */
.dc-panel { display: none; }
.dc-panel.active { display: block; }

/* Stats */
.dc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.dc-stat-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dc-stat-icon { font-size: 28px; }
.dc-stat-value { display: block; font-size: 28px; font-weight: 700; line-height: 1; }
.dc-stat-label { font-size: 12px; color: var(--dc-text2); margin-top: 4px; display: block; }

/* Overview cards */
.dc-overview-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dc-ov-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 24px;
}
.dc-ov-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dc-ov-card p { font-size: 14px; color: var(--dc-text2); margin-bottom: 16px; }

/* Status buttons */
.dc-status-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-status-btn {
  padding: 8px 16px;
  border-radius: var(--dc-radius-sm);
  border: 1.5px solid var(--dc-border);
  background: var(--dc-surface2);
  color: var(--dc-text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--dc-transition);
}
.dc-status-btn.active,
.dc-status-btn:hover { border-color: var(--dc-accent); color: var(--dc-text); }

/* Progress */
.dc-progress-wrap { margin-bottom: 12px; }
.dc-progress-bar {
  height: 8px;
  background: var(--dc-surface2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.dc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dc-accent), var(--dc-orange));
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Profile sections */
.dc-profile-section {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 24px;
  margin-bottom: 20px;
}
.dc-profile-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--dc-text2); text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
.dc-help-text { font-size: 13px; color: var(--dc-text2); margin-bottom: 16px; }

/* Documents */
.dc-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.dc-doc-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dc-doc-uploaded { border-color: rgba(34,197,94,.25); }
.dc-doc-missing { opacity: 0.7; }
.dc-doc-icon { font-size: 24px; flex-shrink: 0; }
.dc-doc-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.dc-doc-info strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-doc-link { font-size: 12px; color: var(--dc-accent); text-decoration: none; }
.dc-doc-cta { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius); padding: 20px; text-align: center; }
.dc-doc-cta p { color: var(--dc-text2); font-size: 14px; margin-bottom: 12px; }

/* Messages */
.dc-msg-tabs { display: flex; gap: 4px; background: var(--dc-surface); border-radius: var(--dc-radius-sm); padding: 4px; margin-bottom: 20px; width: fit-content; }
.dc-msg-tab { padding: 8px 18px; border: none; background: transparent; color: var(--dc-text2); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 6px; transition: var(--dc-transition); }
.dc-msg-tab.active { background: var(--dc-surface2); color: var(--dc-text); }

.dc-messages-list { display: flex; flex-direction: column; gap: 8px; }
.dc-message-row {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--dc-transition);
}
.dc-message-row:hover { border-color: var(--dc-accent); }
.dc-message-row.unread { border-left: 3px solid var(--dc-accent); }
.dc-msg-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--dc-surface2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.dc-msg-info { flex: 1; overflow: hidden; }
.dc-msg-info strong { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-msg-info span { font-size: 12px; color: var(--dc-text2); }
.dc-msg-time { font-size: 12px; color: var(--dc-text3); white-space: nowrap; }
.dc-msg-body { font-size: 14px; line-height: 1.7; color: var(--dc-text2); white-space: pre-wrap; }
.dc-msg-meta { font-size: 13px; color: var(--dc-text3); margin-bottom: 12px; }
.dc-loading { padding: 40px; text-align: center; color: var(--dc-text2); }
.dc-empty-state { padding: 60px 20px; text-align: center; color: var(--dc-text2); }
.dc-empty-state span { font-size: 48px; display: block; margin-bottom: 12px; }

/* ================================================
   CALENDAR
   ================================================ */
#dc-calendar-container {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 24px;
  max-width: 660px;
}
.dc-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dc-cal-header span { font-size: 18px; font-weight: 700; }
.dc-cal-nav {
  background: var(--dc-surface2);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-sm);
  color: var(--dc-text);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 16px;
  transition: var(--dc-transition);
}
.dc-cal-nav:hover { border-color: var(--dc-accent); color: var(--dc-accent); }

.dc-cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
}
.dc-cal-days-header span { font-size: 12px; font-weight: 700; color: var(--dc-text3); padding: 4px; }

.dc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dc-cal-day {
  aspect-ratio: 1;
  border-radius: var(--dc-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: var(--dc-transition);
  background: var(--dc-surface2);
  gap: 2px;
}
.dc-cal-day:hover { border-color: var(--dc-accent); }
.dc-cal-day.dc-cal-empty { background: transparent; cursor: default; border-color: transparent; }
.dc-cal-day.dc-cal-today { border-color: var(--dc-accent); font-weight: 700; }
.dc-cal-day.dc-cal-past { opacity: 0.35; cursor: not-allowed; }
.dc-cal-day.dc-cal-past:hover { border-color: transparent; }
.dc-cal-day.dc-cal-available { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.35); color: var(--dc-green); }
.dc-cal-day.dc-cal-busy { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: var(--dc-red); }
.dc-cal-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dc-cal-day.dc-cal-view { cursor: default; }
.dc-cal-day.dc-cal-view:hover { border-color: transparent; }

/* ================================================
   SEARCH / FIND DRIVERS
   ================================================ */
.dc-search-filters {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.dc-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.dc-filter-row .dc-field {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0;
}

.dc-driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.dc-driver-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--dc-transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dc-driver-card:hover { border-color: var(--dc-accent); transform: translateY(-2px); box-shadow: var(--dc-shadow); }
.dc-driver-card-header { display: flex; align-items: center; gap: 12px; }
.dc-driver-card-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--dc-accent), var(--dc-orange)); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.dc-driver-card-name { font-weight: 700; font-size: 15px; }
.dc-driver-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-driver-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.dc-cat-tag {
  background: rgba(59,130,246,.15);
  color: var(--dc-accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  letter-spacing: 0.03em;
}
.dc-driver-info { font-size: 12px; color: var(--dc-text2); display: flex; flex-direction: column; gap: 3px; }
.dc-driver-info span { display: flex; align-items: center; gap: 5px; }
.dc-driver-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.dc-search-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--dc-text2);
}
.dc-search-placeholder span { font-size: 48px; display: block; margin-bottom: 12px; }

/* Pagination */
.dc-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.dc-page-btn { padding: 8px 14px; border-radius: var(--dc-radius-sm); border: 1px solid var(--dc-border); background: var(--dc-surface); color: var(--dc-text2); cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--dc-transition); }
.dc-page-btn:hover, .dc-page-btn.active { background: var(--dc-accent); border-color: var(--dc-accent); color: #fff; }

/* ================================================
   MODALS
   ================================================ */
.dc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,11,20,.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.dc-modal-overlay.is-open {
  display: flex !important;
}
body.dc-modal-open {
  overflow: hidden;
}
.dc-modal {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--dc-shadow);
}
.dc-modal-lg { max-width: 720px; }
.dc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--dc-surface2);
  border: 1px solid var(--dc-border);
  border-radius: 6px;
  color: var(--dc-text2);
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--dc-transition);
}
.dc-modal-close:hover { color: var(--dc-text); border-color: var(--dc-accent); }
.dc-modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; padding-right: 40px; }

/* Driver modal content */
.dc-driver-modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.dc-driver-modal-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--dc-accent), var(--dc-orange)); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex-shrink: 0; }
.dc-driver-modal-name { font-size: 22px; font-weight: 700; }
.dc-driver-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.dc-driver-detail-grid .dc-col-full { grid-column: 1 / -1; }
.dc-detail-row { background: var(--dc-surface2); border-radius: var(--dc-radius-sm); padding: 12px; }
.dc-detail-label { font-size: 11px; color: var(--dc-text3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.dc-detail-value { font-size: 14px; font-weight: 600; word-break: break-word; }

.dc-modal-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dc-border);
}
.dc-modal-section:last-of-type { border-bottom: none; }
.dc-modal-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--dc-text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.dc-modal-text-block {
  background: var(--dc-surface2);
  border-radius: var(--dc-radius-sm);
  padding: 14px;
  margin-top: 12px;
}
.dc-modal-text-block strong {
  display: block;
  font-size: 12px;
  color: var(--dc-text2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dc-modal-text-block p {
  font-size: 14px;
  color: var(--dc-text);
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}
.dc-modal-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.dc-modal-doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dc-surface2);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-sm);
  padding: 12px 14px;
}
.dc-modal-doc-locked { opacity: 0.85; }
.dc-modal-doc-icon { font-size: 22px; flex-shrink: 0; }
.dc-modal-doc-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dc-modal-doc-info strong { font-size: 13px; }
.dc-modal-doc-link {
  font-size: 12px;
  color: var(--dc-accent);
  text-decoration: none;
  font-weight: 600;
}
.dc-modal-doc-link:hover { text-decoration: underline; }
.dc-cal-grid-modal { max-width: 100%; }
.dc-contact-locked { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); border-radius: var(--dc-radius-sm); padding: 16px; text-align: center; margin-bottom: 16px; }
.dc-contact-locked p { font-size: 13px; color: var(--dc-text2); margin-bottom: 10px; }
.dc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ================================================
   UPGRADE
   ================================================ */
.dc-upgrade-banner {
  background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(59,130,246,.1));
  border: 1px solid rgba(249,115,22,.25);
  border-radius: var(--dc-radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.dc-upgrade-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.dc-upgrade-content p { font-size: 14px; color: var(--dc-text2); margin-bottom: 8px; }
.dc-upgrade-content ul { list-style: none; }
.dc-upgrade-content li { font-size: 13px; color: var(--dc-text2); padding: 2px 0; }

.dc-upgrade-plans { display: flex; gap: 20px; flex-wrap: wrap; }
.dc-pricing-card {
  flex: 1;
  min-width: 220px;
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 28px;
  position: relative;
}
.dc-pricing-highlight { border-color: var(--dc-orange); box-shadow: 0 0 30px rgba(249,115,22,.15); }
.dc-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dc-orange);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dc-pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.dc-pricing-price { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: var(--dc-orange); }
.dc-pricing-price small { font-size: 14px; color: var(--dc-text2); }
.dc-pricing-card ul { list-style: none; margin-bottom: 24px; }
.dc-pricing-card li { font-size: 14px; color: var(--dc-text2); padding: 5px 0; }
.dc-feat-no { color: var(--dc-text3) !important; }
.dc-current-plan { display: block; text-align: center; color: var(--dc-text3); font-size: 13px; }
.dc-pricing-note { font-size: 12px; color: var(--dc-text3); text-align: center; margin-top: 8px; }
.dc-upgrade-note { margin-top: 20px; font-size: 13px; color: var(--dc-text2); }
.dc-upgrade-note a { color: var(--dc-accent); text-decoration: none; }
.dc-ov-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ================================================
   NOTICE
   ================================================ */
.dc-notice {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  padding: 24px;
  text-align: center;
  color: var(--dc-text2);
}
.dc-notice a { color: var(--dc-accent); text-decoration: none; }

/* ================================================
   PUBLIC FIND DRIVERS PAGE
   ================================================ */
.dc-find-drivers-page { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.dc-page-header { margin-bottom: 32px; }
.dc-page-header h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.dc-page-header p { font-size: 16px; color: var(--dc-text2); }
.dc-page-header a { color: var(--dc-accent); text-decoration: none; }
.dc-search-filters-public { max-width: none; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .dc-dashboard { flex-direction: column; }
  .dc-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 8px;
  }
  .dc-sidebar-profile { flex: 0 0 100%; margin-bottom: 8px; }
  .dc-sidebar-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .dc-sidebar-footer { flex: 0 0 auto; }
  .dc-main { padding: 20px 16px; }
  .dc-overview-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dc-auth-box { margin: 20px auto; padding: 24px; }
  .dc-modal { padding: 20px; }
  .dc-driver-detail-grid { grid-template-columns: 1fr; }
  .dc-upgrade-banner { flex-direction: column; }
  .dc-steps { gap: 0; }
  .dc-step span { display: none; }
}
