@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
}

.header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 32px;
  display: flex;
  align-items: center;
}

.logo-icon img {
  height: 100%;
  width: auto;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.btn-signin {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-signin:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.main-content {
  padding: 48px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
}

.banner-container {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.refer-banner {
  width: 100%;
  height: auto;
  display: block;
}

.main-title {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.main-subtitle {
  font-size: 18px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.benefit-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.benefit-icon.blue {
  background: #dbeafe;
  color: #01d676;
}

.benefit-icon.teal {
  background: #ccfbf1;
  color: #0d9488;
}

.benefit-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 14px;
  color: #64748b;
}

.how-it-works {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.how-it-works h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0f172a;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-number {
  width: 28px;
  height: 28px;
  background: #01d676;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-item span:last-child {
  font-size: 15px;
  color: #475569;
}

.form-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 28px;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.step-circle.active {
  background: #01d676;
  color: white;
}

.step-circle.completed {
  background: #10b981;
  color: white;
}

.step-circle.completed svg {
  width: 18px;
  height: 18px;
}

.step-line {
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  transition: all 0.3s;
}

.step-line.active {
  background: #10b981;
}

.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid #fecaca;
}

.referral-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  background: #f8fafc;
}

.form-group input:focus {
  outline: none;
  border-color: #01d676;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

.input-hint {
  font-size: 13px;
  color: #64748b;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color, #01d676), var(--primary-color-dark, #00c36b));
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-color-shadow, rgba(1, 214, 118, 0.4));
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-secondary {
  background: white;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.otp-section {
  text-align: center;
}

.email-icon {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.email-icon svg {
  width: 36px;
  height: 36px;
}

.otp-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.otp-section > p {
  color: #64748b;
  margin-bottom: 28px;
}

.otp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
}

.otp-form .form-group {
  align-items: center;
  text-align: center;
}

.otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  transition: all 0.2s;
}

.otp-digit:focus {
  outline: none;
  border-color: #01d676;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.resend-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.resend-text {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
}

.different-email-form {
  margin-top: 16px;
}

.btn-secondary-outline {
  width: 100%;
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-secondary-outline svg {
  width: 16px;
  height: 16px;
}

.btn-with-spinner .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.btn-with-spinner.loading .btn-text,
.btn-with-spinner.loading .btn-icon {
  visibility: hidden;
  opacity: 0;
}

.btn-with-spinner .btn-loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn-with-spinner.loading .btn-loading-content {
  display: flex;
}

/* Phone Input Adjustments */
.iti {
  width: 100% !important;
  display: block !important;
}

.iti input {
  width: 100% !important;
  box-sizing: border-box !important;
}

.iti__flag-container {
  padding: 2px;
}

.iti__country-list {
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.form-group input[type="tel"] {
  padding-left: 85px !important;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #01d676;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-content {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.2s;
}

.toast-close:hover {
  color: white;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-logo {
  margin-bottom: 24px;
}

.logo-icon.large {
  height: 48px;
  margin: 0 auto;
}

.logo-icon.large img {
  height: 100%;
  width: auto;
}

.resend-form {
  margin-top: 16px;
}

.btn-link {
  background: none;
  border: none;
  color: #01d676;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.verified-badge {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.verified-badge svg {
  width: 24px;
  height: 24px;
  color: #16a34a;
  flex-shrink: 0;
}

.verified-badge div {
  display: flex;
  flex-direction: column;
}

.verified-badge strong {
  color: #16a34a;
  font-size: 14px;
}

.verified-badge span {
  color: #166534;
  font-size: 13px;
}

.success-card {
  text-align: center;
  padding: 48px 32px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.success-message {
  font-size: 16px;
  color: #475569;
  margin-bottom: 8px;
}

.success-info {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 32px;
}

.dashboard-body {
  background: #f1f5f9;
}

.dashboard-header {
  background: white;
  padding: 0 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  padding: 8px 12px;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #1e293b;
  background: #f8fafc;
}

.nav-link.active {
  color: var(--primary-color, #01d676);
  background: #eff6ff;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-weight: 500;
  font-size: 14px;
  color: #1e293b;
}

.user-email {
  font-size: 13px;
  color: #64748b;
}

.user-avatar-wrapper {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-color, #01d676);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-color, #01d676);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-user-name {
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
}

.dropdown-user-email {
  font-size: 12px;
  color: #64748b;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  border: none;
  background: none;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
}

.dropdown-item.logout-item {
  color: #ef4444;
  border-top: 1px solid #e2e8f0;
}

.dropdown-item.logout-item svg {
  stroke: #ef4444;
}

.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.profile-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.profile-modal-overlay.open .profile-modal {
  transform: scale(1);
}

.profile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: #f1f5f9;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: #64748b;
}

.profile-form-group {
  padding: 0 24px;
  margin-top: 20px;
}

.profile-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 8px;
}

.profile-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-form-group input:focus {
  outline: none;
  border-color: var(--primary-color, #01d676);
  box-shadow: 0 0 0 3px var(--primary-color-shadow, rgba(1, 214, 118, 0.2));
}

.profile-form-group input:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.profile-form-group small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

.profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  margin-top: 8px;
}

.btn-cancel {
  padding: 10px 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-cancel:hover {
  background: #f8fafc;
}

.btn-save {
  padding: 10px 20px;
  background: var(--primary-color, #01d676);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-save:hover {
  background: var(--primary-color-dark, #00c36b);
}

.btn-save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
}

.logout-link {
  color: #94a3b8;
  margin-left: 8px;
}

.logout-link svg {
  width: 20px;
  height: 20px;
}

.dashboard-main {
  padding: 32px;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.welcome-section h1 {
  font-size: 27px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.wave-emoji {
  display: inline-block;
  animation: wave 5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 30%, 100% { transform: rotate(0deg); }
  5%, 15% { transform: rotate(14deg); }
  10% { transform: rotate(-8deg); }
  20% { transform: rotate(-4deg); }
  25% { transform: rotate(10deg); }
}

.welcome-section p {
  color: #64748b;
}

.btn-new-referral {
  background: var(--primary-color, #01d676);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  border: none;
  gap: 8px;
  transition: all 0.2s;
}

.btn-new-referral:hover {
  transform: translateY(-1px);
  background: var(--primary-color-dark, #00c36b);
  box-shadow: 0 4px 12px var(--primary-color-shadow, rgba(1, 214, 118, 0.4));
}

.btn-new-referral svg {
  width: 18px;
  height: 18px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-admin-action {
  background: white;
  color: #374151;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.btn-admin-action:hover {
  background: #f8fafc;
  border-color: var(--primary-color, #01d676);
  color: var(--primary-color, #01d676);
}

.btn-admin-action svg {
  width: 16px;
  height: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-trend {
  font-size: 14px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0fdf4;
}

.stat-sublabel {
  font-size: 12px;
  color: #94a3b8;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-icon.blue {
  background: #eff6ff;
  color: #3b82f6;
}

.stat-icon.purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.stat-icon.green {
  background: #f0fdf4;
  color: #10b981;
}

.stat-icon.orange {
  background: #fffbeb;
  color: #f59e0b;
}

.stat-icon.teal {
  background: #f0fdfa;
  color: #0d9488;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}

.referrals-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-height: 700px;
  display: flex;
  flex-direction: column;
}

.referrals-table-container {
  overflow-y: auto;
  overflow-x: visible;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}

.referrals-table {
  width: 100%;
}

.referrals-table .table-header {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 100px;
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.referrals-table .table-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 100px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.all-referrals-table .table-header {
  grid-template-columns: 1.5fr 1.5fr 1.5fr 1fr 100px;
}

.all-referrals-table .table-row {
  grid-template-columns: 1.5fr 1.5fr 1.5fr 1fr 100px;
}

.status-info {
  display: flex;
  align-items: center;
}

/* Updated tooltip for status to appear on the right */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 0;
  width: 200px;
  padding: 12px;
  background: #1e293b;
  color: white;
  font-size: 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  bottom: 140%;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: 125%;
}

.candidate-name {
  font-weight: 500;
  color: #0f172a;
}

.candidate-email {
  font-size: 13px;
  color: #64748b;
}

.position {
  color: #475569;
  font-size: 14px;
}

.date {
  color: #64748b;
  font-size: 14px;
}

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
}

.status-hired {
  background: #dcfce7;
  color: #16a34a;
}

.status-interviewing {
  background: #fef3c7;
  color: #d97706;
}

.status-applied {
  background: #dbeafe;
  color: #01d676;
}

.status-invited {
  background: #f1f5f9;
  color: #64748b;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.leaderboard-card, .achievements-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.achievements-section {
  margin-top: 24px;
}

.achievements-full-width {
  width: 100%;
}

.achievements-full-width .badges-grid {
  grid-template-columns: repeat(6, 1fr);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
  flex-direction: column;
}

.achievements-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 37px;
  flex-direction: row;
}

.achievements-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-header h3, .achievements-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.leaderboard-period, .achievement-count {
  font-size: 13px;
  color: #64748b;
}

.expand-link {
  color: #94a3b8;
}

.expand-link svg {
  width: 18px;
  height: 18px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-radius: 10px;
  transition: all 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

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

.leaderboard-item.current-user {
  background: #f0fdf4;
  border-bottom-color: transparent;
}

.rank {
  width: 40px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.person-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.person-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
}

.person-dept {
  font-size: 13px;
  color: #64748b;
}

.person-stats {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.person-stats .referral-count {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.person-stats .hire-count {
  font-size: 12px;
  color: #94a3b8;
}

.achievement-icon svg {
  width: 24px;
  height: 24px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.badge-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.badge-item.unlocked .badge-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.badge-icon svg {
  width: 35px;
  height: 35px;
  position: relative;
  z-index: 1;
}

.badge-item.locked .badge-icon {
  background: #e5e7eb !important;
  color: #9ca3af;
}

.badge-item.locked .badge-icon::before {
  display: none;
}

.badge-item.locked {
  opacity: 0.5;
}

.badge-item {
  position: relative;
  cursor: pointer;
}

.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.badge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: white;
}

.badge-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #e2e8f0;
}

.badge-item:hover .badge-tooltip {
  opacity: 1;
  visibility: visible;
}

.badge-tooltip-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.badge-tooltip-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.badge-tooltip-date {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.badge-name {
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.login-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
}

.login-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.powered-by-talkpush {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.powered-by-talkpush:hover {
  opacity: 1;
}

.powered-by-talkpush span {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.powered-by-talkpush img {
  height: 16px;
  width: auto;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.login-card > p {
  color: #64748b;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.login-footer p {
  color: #64748b;
  margin-bottom: 8px;
}

.login-footer a {
  color: #01d676;
  text-decoration: none;
  font-weight: 500;
}

.leaderboard-page {
  max-width: 800px;
  margin: 0 auto;
}

.leaderboard-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.leaderboard-page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.leaderboard-page-header p {
  color: #64748b;
}

.leaderboard-full {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.leaderboard-full-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #f1f5f9;
}

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

.rank-section {
  width: 48px;
  display: flex;
  justify-content: center;
}

.rank-medal.large svg {
  width: 32px;
  height: 32px;
}

.rank-number.large {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.person-avatar.large {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.person-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person-details .person-name {
  font-size: 18px;
  font-weight: 600;
}

.person-details .person-dept {
  font-size: 14px;
}

.person-metrics {
  display: flex;
  gap: 32px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.metric-label {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .left-section {
    order: 2;
  }

  .right-section {
    order: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #1e293b;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 16px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  padding: 14px 16px;
  color: #475569;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-link svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #f1f5f9;
  color: var(--primary-color, #01d676);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .header-content {
    padding: 12px 16px;
  }

  .user-name {
    display: none;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dashboard-container {
    padding: 0;
  }

  .dashboard-header-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn-new-referral,
  .btn-admin-action {
    flex: 1;
    justify-content: center;
    font-size: 13px;
    padding: 10px 12px;
  }

  .welcome-section h1 {
    font-size: 24px;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .table-header span:not(:first-child) {
    display: none;
  }

  .table-row > div,
  .table-row > span {
    padding: 4px 0;
  }

  .dashboard-grid {
    gap: 16px;
  }

  .referrals-card,
  .leaderboard-card,
  .achievements-card {
    padding: 16px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .header-main {
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-box-container {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-icon {
    height: 28px;
  }

  .main-content {
    padding: 29px 24px;
}

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 28px;
  }

  .badges-grid {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex-wrap: wrap;
  }


}

.admin-badge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.referrer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.referrer-name {
  font-weight: 500;
  color: #1e293b;
  font-size: 14px;
}

.referrer-email {
  font-size: 12px;
  color: #64748b;
}

.back-link {
  margin-top: 16px;
  text-align: center;
}

.back-link a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-link a:hover {
  color: #01d676;
}

.input-hint {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

.otp-actions {
  margin-top: 20px;
  text-align: center;
}

.otp-actions p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
}

.link-button {
  background: none;
  border: none;
  color: #01d676;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.link-button:hover {
  background: #eff6ff;
}

.link-button.loading {
  pointer-events: none;
}

.link-button.loading .btn-text {
  visibility: hidden;
}

.link-button.loading .btn-spinner {
  display: inline-block;
}

.companies-table-wrapper {
  background: white;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  -webkit-overflow-scrolling: touch;
}

.companies-table {
  width: 100%;
  border-collapse: collapse;
}

.companies-table th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  color: #64748b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.companies-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.companies-table tbody tr:hover {
  background: #f8fafc;
}

.company-name-cell {
  font-weight: 500;
  color: #01d676;
}

.tenant-cell {
  font-family: monospace;
  font-size: 13px;
  color: #64748b;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

/* Status tooltips */
.status[data-tooltip] {
  position: relative;
  cursor: help;
}

.status[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  background: #1e293b;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 248px;
  max-width: 248px;
  text-align: left;
  line-height: 1.4;
}

.status[data-tooltip]:hover::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1e293b;
  z-index: 1000;
}

/* New status colors */
.status-action-required {
  background: #fef3c7;
  color: #92400e;
}

.status-not-selected {
  background: #fee2e2;
  color: #991b1b;
}

.status-hired {
  background: #dcfce7;
  color: #166534;
}

.status-in-review {
  background: #dbeafe;
  color: #1e40af;
}

.status-already-in-system {
  background: #f3e8ff;
  color: #7c3aed;
  margin-left: 6px;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-inactive {
  background: #fef3c7;
  color: #92400e;
}

.role-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.role-superadmin {
  background: #fce7f3;
  color: #9d174d;
}

.role-admin {
  background: #dbeafe;
  color: #1e40af;
}

.role-usuario {
  background: #f1f5f9;
  color: #475569;
}

.error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-danger:hover {
  background: #b91c1c;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-menu {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #64748b;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-menu:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-menu svg {
  width: 20px;
  height: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #0f172a;
}

.modal-body {
  padding: 24px;
}

.modal-body .form-group {
  margin-bottom: 16px;
}

.modal-body .form-group:last-child {
  margin-bottom: 0;
}

.modal-body select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #0f172a;
  background: white;
}

.modal-footer {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  align-content: flex-start;
  align-items: center;
}

.btn-secondary {
  padding: 10px 20px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-danger {
  padding: 10px 20px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #dc2626;
}

.detail-row {
  margin-bottom: 20px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 15px;
  color: #0f172a;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  word-break: break-all;
}

.api-key-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.api-key-value span {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
}

.btn-copy {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #64748b;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: #e2e8f0;
  color: #01d676;
}

.btn-copy svg {
  width: 18px;
  height: 18px;
}

.success-alert {
  background: #dcfce7;
  color: #166534;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  color: #64748b;
  padding: 40px !important;
}

.company-badge {
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-badge span {
  color: #166534;
  font-size: 13px;
}

.company-badge strong {
  color: #15803d;
  font-size: 15px;
}

.referral-link-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.referral-link-section label {
  display: block;
  font-weight: 600;
  color: #166534;
  margin-bottom: 8px;
  font-size: 14px;
}

.link-description {
  color: #4b5563;
  font-size: 13px;
  margin-bottom: 12px;
}

.referral-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 16px;
}

.referral-link-box span {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
  color: #1f2937;
  word-break: break-all;
}

.btn-copy-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-color, #01d676) 0%, var(--primary-color-dark, #00c36b) 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-copy-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-color-shadow, rgba(1, 214, 118, 0.3));
}

.btn-copy-link svg {
  width: 16px;
  height: 16px;
}

.searchable-select {
  position: relative;
  width: 100%;
}

.select-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.select-display:hover {
  border-color: #01d676;
}

.select-display span {
  color: #374151;
  font-size: 15px;
}

.select-arrow {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transition: transform 0.2s;
}

.select-dropdown.open + .select-display .select-arrow,
.select-dropdown.open ~ .select-display .select-arrow {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
  max-height: 320px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

.select-dropdown.open {
  display: block;
  visibility: visible;
  opacity: 1;
}

.select-dropdown.open {
  display: block;
}

.select-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.select-search svg {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  flex-shrink: 0;
}

.select-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: #374151;
}

.select-search input::placeholder {
  color: #9ca3af;
}

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

.select-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.select-loading,
.select-no-results {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

/* Error Page Styles */
.error-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 20px;
}

.error-card {
  background: white;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.error-card-logo {
  margin-bottom: 24px;
}

.error-card-logo img {
  height: 40px;
  width: auto;
}

.error-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: #d97706;
}

.error-card h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.error-card p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 8px;
}

.error-card-hint {
  font-size: 14px !important;
  color: #94a3b8 !important;
  margin-top: 16px !important;
}

/* Centered logo in login */
.logo-icon.large.centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-icon.large.centered img {
  height: 48px;
  width: auto;
}

.auth-form .form-group label,
.login-form .form-group label {
  text-align: left;
  display: block;
  margin-bottom: 8px;
}

/* Company name in dashboard */
.candidate-company,
.position-company {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.position-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
