/* ROLE MODAL */
.role-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.role-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.role-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 22, 0.85); /* dark theme bg with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.role-modal-content {
  position: relative;
  background: var(--bg-2, #111827);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.role-modal.active .role-modal-content {
  transform: translateY(0) scale(1);
}

.role-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-2, #9ca3af);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-modal-close:hover {
  color: var(--white, #fff);
  transform: rotate(90deg);
}

.role-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--white, #fff);
  margin-bottom: 16px;
}

.role-modal-desc {
  font-size: 18px;
  color: var(--text-2, #9ca3af);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.role-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.role-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.role-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.role-card:hover::before {
  opacity: 1;
}

.customer-card:hover {
  box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.3); /* Red glow */
}

.staff-card:hover {
  box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.4); /* Navy glow */
}

.role-card-icon {
  font-size: 56px;
  margin-bottom: 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.role-card:hover .role-card-icon {
  transform: scale(1.15);
}

.role-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--white, #fff);
  margin-bottom: 12px;
}

.role-card-text {
  font-size: 15px;
  color: var(--text-2, #9ca3af);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .role-cards {
    flex-direction: column;
  }
  .role-modal-content {
    padding: 32px 24px;
  }
}
