/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-ghost); }

.btn-outline {
  background: transparent;
  color: var(--dark-500);
  border-color: var(--light-300);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-white {
  background: white;
  color: var(--primary-dark);
}
.btn-white:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-200);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-body { padding: 24px; }
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--light-200);
  display: flex; justify-content: space-between; align-items: center;
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--light-200);
  background: var(--light-100);
}
.card-image {
  width: 100%; height: 200px;
  object-fit: cover;
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--light-300);
}
.card-flat:hover { border-color: var(--primary); }

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid var(--light-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--dark);
  transition: all 0.2s var(--ease);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}
.form-input::placeholder { color: var(--dark-100); }
.form-input.error { border-color: var(--danger); }

.form-textarea { min-height: 100px; resize: vertical; }
.form-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23546E7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-help { font-size: 12px; color: var(--dark-100); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.form-row {
  display: grid; gap: 16px;
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}
.badge-primary { background: var(--primary-ghost); color: var(--primary); }
.badge-success { background: rgba(39,174,96,0.1); color: var(--success); }
.badge-warning { background: rgba(242,153,74,0.1); color: var(--warning); }
.badge-danger { background: rgba(235,87,87,0.1); color: var(--danger); }
.badge-info { background: rgba(45,156,219,0.1); color: var(--info); }
.badge-secondary { background: var(--light-200); color: var(--dark-300); }

/* ===== STARS ===== */
.star { font-size: 16px; }
.star.filled { color: #F2C94C; }
.star.half { color: #F2C94C; }
.star.empty { color: var(--light-300); }

/* ===== TABS ===== */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--light-200);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--dark-300);
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== STAT BOX ===== */
.stat-box {
  text-align: center; padding: 24px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px; color: var(--dark-300); font-weight: 500;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex; align-items: center;
  background: white;
  border: 1.5px solid var(--light-300);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 20px;
  transition: all 0.3s var(--ease);
  max-width: 480px;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ghost); }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-size: 15px; padding: 8px 0;
  background: transparent;
}
.search-bar .btn { border-radius: var(--radius-full); }

/* ===== COMPANY CARD ===== */
.company-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-200);
  padding: 24px;
  display: flex; gap: 20px;
  transition: all 0.3s var(--ease);
}
.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.company-avatar {
  width: 64px; height: 64px;
  background: var(--primary-ghost);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.company-info { flex: 1; }
.company-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.company-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--dark-300);
  margin-bottom: 8px;
}
.company-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.company-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  background: var(--light-100);
  border-radius: var(--radius-full);
  color: var(--dark-300);
}

/* ===== STEP INDICATOR ===== */
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 40px;
}
.step {
  display: flex; align-items: center; gap: 10px;
}
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--light-300);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: var(--dark-300);
  transition: all 0.3s;
}
.step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.step-label { font-size: 14px; font-weight: 500; color: var(--dark-300); }
.step.active .step-label { color: var(--primary); font-weight: 600; }
.step-line {
  width: 60px; height: 2px;
  background: var(--light-300);
  margin: 0 12px;
}
.step.completed + .step-line,
.step.completed ~ .step-line { background: var(--success); }

/* ===== FEATURE CARD ===== */
.feature-card {
  text-align: center; padding: 32px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-200);
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.feature-icon {
  width: 64px; height: 64px;
  background: var(--primary-ghost);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.1);
}
.feature-card:hover .feature-icon svg { color: white; }
.feature-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px; color: var(--dark-300);
  line-height: 1.6;
}

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-300);
  border-bottom: 2px solid var(--light-200);
}
.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--light-200);
}
.data-table tr:hover td { background: var(--light-100); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 24px;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 8px;
}
.empty-desc { font-size: 15px; color: var(--dark-300); margin-bottom: 24px; }

/* Auth tabs (email / phone login) */
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  border: 2px solid var(--light-200); border-radius: var(--radius-md); overflow: hidden;
}
.auth-tab {
  flex: 1; padding: 12px; text-align: center;
  font-size: 14px; font-weight: 600;
  background: var(--light-100); color: var(--dark-300);
  cursor: pointer; border: none; transition: all 0.2s;
}
.auth-tab.active {
  background: var(--primary); color: white;
}
.auth-tab-content { display: none; }
.auth-tab-content.active { display: block; }
