/* ============================================================
   GLC Components — Telerik-style UI library
   Buttons, Forms, Cards, Stepper, Badges, Tables, Upload, etc.
   ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0 2px 8px rgba(26,92,42,0.25); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); box-shadow: 0 4px 16px rgba(26,92,42,0.35); }
.btn-secondary { background: var(--white); color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--gray-400, #adb5bd); background: var(--gray-100); color: var(--gray-900); }
.btn-ghost { background: transparent; color: var(--red); border-color: transparent; }
.btn-ghost:hover { background: var(--red-light); box-shadow: none; }
.btn-danger { background: #dc3545; color: var(--white); border-color: #dc3545; }
.btn-danger:hover { background: #b02a37; }
.btn-success { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 700; box-shadow: 0 2px 8px rgba(245,168,0,0.3); }
.btn-gold:hover { background: #d99500; border-color: #d99500; color: var(--dark); box-shadow: 0 4px 16px rgba(245,168,0,0.4); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 15px; letter-spacing: 0.3px; }
.btn-full { width: 100%; }
.btn[disabled], .btn.disabled {
  opacity: .5;
  pointer-events: none;
  transform: none;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h3, .card-header h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--gray-100);
}

/* --- Form elements (Telerik-style) --- */
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-1 { grid-template-columns: 1fr; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
label .required { color: #C8102E; margin-left: 2px; }
label .optional { color: var(--gray-500); font-weight: 400; font-size: 12px; margin-left: 4px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(26,92,42,0.30);
  outline: none;
}
.form-control:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.form-control::placeholder { color: var(--gray-500); }
.form-control:disabled { background: var(--gray-100); cursor: not-allowed; }
.form-control.is-valid { border-color: var(--green); }
.form-control.is-invalid { border-color: #dc3545; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: #dc3545; margin-top: 4px; display: none; }
.form-control.is-invalid ~ .form-error { display: block; }

.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); flex: 1; }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; border-left: none; }

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}
.form-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--red); flex-shrink: 0; cursor: pointer; }

/* --- Stepper / Wizard Progress --- */
.wizard-stepper {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  overflow-x: auto;
}
.wizard-stepper .container { padding-top: 0; padding-bottom: 0; }
.stepper-track {
  display: flex;
  align-items: stretch;
}
.stepper-step {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 18px 12px;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  position: relative;
  white-space: nowrap;
  min-width: 140px;
}
.stepper-step:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -4px;
  color: var(--gray-300);
  font-size: 20px;
  z-index: 1;
}
.stepper-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--white);
}
.stepper-step.complete {
  color: var(--green);
  border-bottom-color: var(--green);
}
.stepper-step.complete .stepper-num {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.stepper-step.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
  background: var(--red-light);
}
.stepper-step.active .stepper-num {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26,92,42,0.3);
}

/* --- Badges / Status --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge::before { content: '●'; font-size: 7px; }
.badge-draft { background: #f0f0f0; color: #555; }
.badge-submitted { background: #e3f0ff; color: #1557a3; }
.badge-review { background: #fff3cd; color: #856404; }
.badge-approved { background: var(--green-light); color: var(--green); }
.badge-rejected { background: #fde8ec; color: #C8102E; }
.badge-paid { background: var(--green-light); color: var(--green); }
.badge-pending { background: #fff3cd; color: #856404; }

/* --- Data Table (Telerik Grid style) --- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead tr {
  background: var(--gray-100);
  border-bottom: 2px solid var(--gray-200);
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gray-700);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: var(--gray-100); }
.data-table .actions { display: flex; gap: 8px; justify-content: flex-end; text-align: right; }

/* --- Accordion --- */
.accordion { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  transition: background .15s;
  gap: 12px;
}
.accordion-trigger:hover { background: var(--gray-100); }
.accordion-trigger.open { background: var(--red-light); color: var(--red); }
.accordion-icon {
  font-size: 18px;
  color: var(--gray-500);
  transition: transform .2s;
  flex-shrink: 0;
}
.accordion-trigger.open .accordion-icon { transform: rotate(180deg); color: var(--red); }
.accordion-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.accordion-body.open { max-height: 600px; padding: 16px 20px; }
.accordion-body p, .accordion-body li { font-size: 14px; color: var(--gray-700); line-height: 1.7; }
.accordion-body ul { margin-left: 16px; list-style: disc; }

/* --- Owner card --- */
.owner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.owner-card-header {
  background: var(--gray-100);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}
.owner-card-header h4 { font-size: 14px; margin: 0; }
.owner-card-body { padding: 20px; }

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--gray-100);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--red);
  background: var(--red-light);
}
.upload-icon { font-size: 32px; margin-bottom: 10px; color: var(--gray-500); }
.upload-zone h4 { font-size: 15px; margin-bottom: 6px; color: var(--gray-700); }
.upload-zone p { font-size: 13px; color: var(--gray-500); }
.upload-zone .upload-hint { font-size: 12px; color: var(--gray-700); margin-top: 8px; }

.file-list { margin-top: 12px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 13px;
}
.file-item .file-icon { color: var(--red); font-size: 16px; }
.file-item .file-name { flex: 1; font-weight: 500; }
.file-item .file-size { color: var(--gray-500); }
.file-item .file-remove { color: var(--gray-500); cursor: pointer; font-size: 16px; transition: color .15s; }
.file-item .file-remove:hover { color: #dc3545; }

/* --- Document checklist sidebar --- */
.doc-checklist h4 {
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-icon { font-size: 16px; flex-shrink: 0; }
.checklist-icon.done { color: var(--green); }
.checklist-icon.pending { color: var(--gray-500); }
.checklist-icon.required { color: var(--orange); }

/* --- Tabs --- */
.tabs { border-bottom: 2px solid var(--gray-200); display: flex; gap: 0; margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.tab-btn:hover { color: var(--gray-900); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Alert / Banner --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: #e3f0ff; border: 1px solid #b3d1ff; color: #1557a3; }
.alert-success { background: var(--green-light); border: 1px solid #9ed4b3; color: var(--green); }
.alert-warning { background: #fff3cd; border: 1px solid #ffd666; color: #856404; }
.alert-danger { background: #fde8ec; border: 1px solid #f5c0cb; color: #9e0a22; }

/* --- Success page --- */
.success-hero {
  text-align: center;
  padding: 56px 24px;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-hero h1 { color: var(--green); margin-bottom: 10px; }
.success-hero p { color: var(--gray-500); max-width: 480px; margin: 0 auto; }

/* --- Auth card layout --- */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--gray-100);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card h1 { font-size: 1.4rem; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--gray-500); font-size: 14px; margin-bottom: 28px; }
.auth-divider { text-align: center; color: var(--gray-500); font-size: 13px; margin: 16px 0; position: relative; }
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider span { background: var(--white); padding: 0 12px; position: relative; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-500); }
.auth-footer a { color: var(--red); font-weight: 600; }

/* --- 2FA code input --- */
.code-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}
.code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.code-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(26,92,42,0.30); }

/* --- Dashboard stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gray-200);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card.red { border-left-color: var(--red); }
.stat-card.gold { border-left-color: var(--gold); }
.stat-card.green { border-left-color: var(--green); }
.stat-card.blue { border-left-color: #1557a3; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--gray-500); font-weight: 700; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--dark); line-height: 1; letter-spacing: -0.5px; }

/* --- Payment fee card --- */
.fee-card {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.fee-row.total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid var(--gold);
  padding-top: 12px;
  margin-top: 6px;
}

/* --- Status timeline --- */
.status-timeline { padding: 0; }
.status-event {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}
.status-event:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  width: 2px;
  height: calc(100% - 8px);
  background: var(--gray-200);
}
.status-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.status-dot.done { background: var(--green-light); color: var(--green); }
.status-dot.current { background: var(--gold-light); color: var(--orange); }
.status-dot.pending { background: var(--gray-200); color: var(--gray-500); }
.status-meta h5 { font-size: 14px; margin-bottom: 2px; }
.status-meta span { font-size: 12px; color: var(--gray-500); }

/* --- Review summary section --- */
.review-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}
.review-section-header {
  background: var(--gray-100);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}
.review-section-header h4 { font-size: 14px; color: var(--dark); margin: 0; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px 20px;
}
.review-field label { font-size: 12px; color: var(--gray-500); margin-bottom: 2px; font-weight: 400; }
.review-field p { font-size: 14px; color: var(--gray-900); font-weight: 500; }

/* --- Ownership bar --- */
.ownership-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.ownership-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width .3s;
}
.ownership-fill.over { background: #C8102E; }

/* --- Sidebar document checklist panel --- */
.sidebar-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

/* --- Upload error / limit states --- */
.file-item.file-error {
  background: #fde8ec;
  border-color: #f5c0cb;
}
.file-item.file-error .file-icon { color: #dc3545; }
.file-item.file-error .file-name { color: #9e0a22; font-weight: 500; }
.file-item.file-error .file-error-msg {
  flex: 1;
  font-size: 12px;
  color: #dc3545;
}
.upload-zone.limit-reached {
  border-color: var(--gray-300);
  background: var(--gray-200);
  pointer-events: none;
  cursor: not-allowed;
}
.upload-zone.limit-reached .upload-icon { opacity: 0.4; }
.upload-zone.limit-reached h4 { color: var(--gray-500); }
.upload-zone.limit-reached p { color: var(--gray-400); }

/* --- PDF preview modal --- */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pdf-modal-overlay.open { display: flex; }
.pdf-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: sticky;
  top: 0;
}
.pdf-modal-header-left { display: flex; flex-direction: column; gap: 2px; }
.pdf-modal-header h4 { font-size: 14px; color: var(--gray-900); margin: 0; }
.pdf-modal-header span { font-size: 11px; color: var(--gray-500); }
.pdf-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
  padding: 4px 6px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.pdf-modal-close:hover { background: var(--gray-200); color: var(--gray-900); }
.pdf-modal-body { padding: 24px; }
.pdf-preview {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  font-size: 13px;
}
.pdf-letterhead {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}
.pdf-letterhead img { height: 40px; margin: 0 auto 10px; }
.pdf-letterhead h2 { font-size: 15px; color: var(--dark); margin-bottom: 2px; }
.pdf-letterhead p { font-size: 11px; color: var(--gray-500); }
.pdf-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 5px 8px;
  margin: 16px 0 8px;
  border-radius: 3px;
}
.pdf-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.pdf-field label {
  display: block;
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1px;
  font-weight: 400;
}
.pdf-field p {
  font-size: 13px;
  color: var(--gray-900);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 4px;
  margin: 0;
}
.pdf-generated-by {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.pdf-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--gray-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- Misc utils --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 13px; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 12px; align-items: center; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 20px 0; }

/* --- Section label tag --- */
.section-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.section-tag.gold { background: var(--gold-light); color: var(--orange); }
.section-tag.green { background: var(--green-light); color: var(--green); }

/* --- Responsive form rows --- */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
  .wizard-stepper .stepper-step { min-width: 100px; padding: 14px 8px; font-size: 12px; }
  .stepper-label { display: none; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .code-input-group { gap: 6px; }
  .code-input { width: 40px; height: 48px; font-size: 18px; }
}

/* ============================================================
   FANCY ENHANCEMENT LAYER — components
   ============================================================ */

/* --- Buttons: gradient fills + animated sheen sweep --- */
.btn { position: relative; overflow: hidden; transition: transform .2s var(--ease-spring, ease), box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: var(--grad-sheen, linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent));
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
.btn:hover::after { animation: sheenSweep .7s var(--ease-out, ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-brand, var(--red)); border-color: transparent; box-shadow: 0 4px 14px rgba(26,92,42,0.30); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(26,92,42,0.40); }
.btn-gold { background: var(--grad-gold, var(--gold)); border-color: transparent; box-shadow: 0 4px 14px rgba(245,168,0,0.35); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(245,168,0,0.45); }

/* --- Cards: gradient hairline top accent + smooth hover lift --- */
.card { position: relative; transition: transform .25s var(--ease-out, ease), box-shadow .25s var(--ease-out, ease); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand, var(--red));
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

/* --- Stat cards: gradient number + hover glow --- */
.stat-card { transition: transform .25s var(--ease-spring, ease), box-shadow .25s var(--ease-out, ease); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-value {
  background: var(--grad-brand, var(--dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card.gold .stat-value { background: none; -webkit-text-fill-color: initial; color: var(--orange); }

/* --- Badges: soft gradient + ring --- */
.badge { box-shadow: inset 0 0 0 1px rgba(13,31,17,0.05); }
.badge-approved, .badge-paid { background: linear-gradient(135deg, #e8f5ed, #d6efe0); }
.badge-review, .badge-pending { background: linear-gradient(135deg, #fff3cd, #ffe9a8); }

/* --- Stepper: gradient active state --- */
.stepper-step.active { background: linear-gradient(180deg, var(--red-light), transparent); }
.stepper-step.active .stepper-num { background: var(--grad-brand, var(--red)); box-shadow: 0 4px 12px rgba(26,92,42,0.35); }
.stepper-step.complete .stepper-num { background: linear-gradient(135deg, #155c2c, #2a7d3e); }
.stepper-num { transition: transform .25s var(--ease-spring, ease); }
.stepper-step.active .stepper-num { transform: scale(1.06); }

/* --- Inputs: smoother focus ring + lift --- */
.form-control { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.form-control:focus { box-shadow: var(--ring, 0 0 0 3px rgba(26,92,42,0.3)); }

/* --- Upload zone: animated dashed + lift on hover --- */
.upload-zone { transition: border-color .2s ease, background .2s ease, transform .2s var(--ease-out, ease), box-shadow .2s ease; }
.upload-zone:hover, .upload-zone.dragover { transform: translateY(-2px); box-shadow: var(--shadow); }
.upload-icon { transition: transform .3s var(--ease-spring, ease); }
.upload-zone:hover .upload-icon { transform: translateY(-3px) scale(1.06); }

/* --- Data table: gentle row hover slide --- */
.data-table tbody tr { transition: background .15s ease, box-shadow .15s ease; }
.data-table tbody tr:hover { background: var(--red-light); box-shadow: inset 3px 0 0 var(--red); }

/* --- Accordion: smoother + active accent bar --- */
.accordion-trigger { transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.accordion-trigger.open { box-shadow: inset 3px 0 0 var(--red); }

/* --- Alerts: left accent bar + subtle gradient --- */
.alert { border-left-width: 4px; border-left-style: solid; }
.alert-info    { border-left-color: #1557a3; }
.alert-success { border-left-color: var(--green); }
.alert-warning { border-left-color: var(--gold); }
.alert-danger  { border-left-color: #C8102E; }

/* --- Success icon: gentle attention pulse --- */
.success-icon { animation: pulseSoft 2.4s ease-in-out infinite; }

/* --- Auth card: depth + entrance --- */
.auth-card { box-shadow: var(--shadow-lg); animation: fadeInUp .5s var(--ease-out, ease) both; }

/* --- Fee card: gradient surface --- */
.fee-card { background: linear-gradient(135deg, var(--gold-light), #fff5d6); box-shadow: var(--shadow-sm); }

/* --- Tabs: animated underline --- */
.tab-btn { position: relative; }
.tab-btn::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: -2px;
  height: 3px;
  background: var(--grad-brand, var(--red));
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform .25s var(--ease-out, ease);
}
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn.active { border-bottom-color: transparent; }
