/* ============================================
   YALLA MOBILE - AUTH STYLES
   ============================================
   
   Styles for authentication components:
   - Login/Register modals
   - User profile dropdown
   - Form styles
   - Toast notifications
   
   ============================================ */

/* ===========================================
   1. CSS VARIABLES (Auth-specific)
   =========================================== */

:root {
  /* Auth modal colors */
  --auth-modal-bg: var(--color-bg-elevated, #1a1a2e);
  --auth-modal-border: var(--color-border-default, rgba(255, 255, 255, 0.1));
  --auth-overlay-bg: rgba(0, 0, 0, 0.7);
  
  /* Form colors */
  --auth-input-bg: var(--color-bg-muted, rgba(255, 255, 255, 0.05));
  --auth-input-border: var(--color-border-default, rgba(255, 255, 255, 0.1));
  --auth-input-focus: var(--color-primary, #6366f1);
  --auth-input-text: var(--color-text-primary, #ffffff);
  --auth-input-placeholder: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  
  /* Error/Success colors */
  --auth-error: #ef4444;
  --auth-success: #22c55e;
  --auth-warning: #f59e0b;
  --auth-info: #3b82f6;
}

/* Light theme overrides */
[data-theme="light"] {
  --auth-modal-bg: #ffffff;
  --auth-modal-border: rgba(0, 0, 0, 0.1);
  --auth-overlay-bg: rgba(0, 0, 0, 0.5);
  --auth-input-bg: #f8fafc;
  --auth-input-border: #e2e8f0;
  --auth-input-text: #1e293b;
  --auth-input-placeholder: #94a3b8;
}

/* ===========================================
   2. MODAL OVERLAY & CONTAINER
   =========================================== */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--auth-overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4, 1rem);
  z-index: 9999;
  opacity: 0;
  animation: authFadeIn 0.2s ease forwards;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@keyframes authFadeIn {
  to { opacity: 1; }
}

.auth-modal {
  position: relative;
  background: var(--auth-modal-bg);
  border: 1px solid var(--auth-modal-border);
  border-radius: var(--radius-2xl, 1.5rem);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8, 2rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  animation: authSlideIn 0.3s ease forwards;
}

.auth-modal-register {
  max-width: 480px;
}

@keyframes authSlideIn {
  to {
    transform: translateY(0) scale(1);
  }
}

/* Prevent body scroll when modal open */
body.auth-modal-open {
  overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .auth-modal {
    padding: var(--space-5, 1.25rem);
    border-radius: var(--radius-xl, 1rem) var(--radius-xl, 1rem) 0 0;
    max-height: 95vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    animation: authSlideUp 0.3s ease forwards;
  }
  
  @keyframes authSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* ===========================================
   3. MODAL CLOSE BUTTON
   =========================================== */

.auth-modal-close {
  position: absolute;
  top: var(--space-4, 1rem);
  right: var(--space-4, 1rem);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-input-bg);
  border: none;
  border-radius: var(--radius-md, 0.5rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  cursor: pointer;
  transition: all 0.2s ease;
}

[dir="rtl"] .auth-modal-close {
  right: auto;
  left: var(--space-4, 1rem);
}

.auth-modal-close:hover {
  background: var(--auth-input-border);
  color: var(--color-text-primary, #fff);
}

/* ===========================================
   4. MODAL HEADER
   =========================================== */

.auth-modal-header {
  text-align: center;
  margin-bottom: var(--space-6, 1.5rem);
}

.auth-modal-title {
  font-size: var(--text-2xl, 1.5rem);
  font-weight: var(--font-bold, 700);
  color: var(--color-text-primary, #fff);
  margin-bottom: var(--space-2, 0.5rem);
}

.auth-modal-subtitle {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
}

/* ===========================================
   5. FORM STYLES
   =========================================== */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
}

.auth-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4, 1rem);
}

@media (max-width: 400px) {
  .auth-form-row-2col {
    grid-template-columns: 1fr;
  }
}

.auth-form-label {
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  color: var(--color-text-primary, #fff);
}

.auth-optional {
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  font-weight: normal;
}

/* Input wrapper with icon */
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: var(--space-3, 0.75rem);
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  pointer-events: none;
  transition: color 0.2s ease;
}

[dir="rtl"] .auth-input-icon {
  left: auto;
  right: var(--space-3, 0.75rem);
}

.auth-form-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-3, 0.75rem);
  padding-left: var(--space-11, 2.75rem);
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: var(--radius-lg, 0.75rem);
  font-size: var(--text-base, 1rem);
  color: var(--auth-input-text);
  transition: all 0.2s ease;
}

[dir="rtl"] .auth-form-input {
  padding-left: var(--space-3, 0.75rem);
  padding-right: var(--space-11, 2.75rem);
}

/* Input without icon */
.auth-form-group > .auth-form-input {
  padding-left: var(--space-3, 0.75rem);
}

[dir="rtl"] .auth-form-group > .auth-form-input {
  padding-right: var(--space-3, 0.75rem);
}

.auth-form-input::placeholder {
  color: var(--auth-input-placeholder);
}

.auth-form-input:hover {
  border-color: var(--color-text-tertiary, rgba(255, 255, 255, 0.3));
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-form-input:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--auth-input-focus);
}

/* Password toggle button */
.auth-password-toggle {
  position: absolute;
  right: var(--space-3, 0.75rem);
  background: none;
  border: none;
  padding: var(--space-1, 0.25rem);
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  cursor: pointer;
  transition: color 0.2s ease;
}

[dir="rtl"] .auth-password-toggle {
  right: auto;
  left: var(--space-3, 0.75rem);
}

.auth-password-toggle:hover {
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
}

/* Has icon + password toggle */
.auth-input-wrapper .auth-form-input {
  padding-right: var(--space-11, 2.75rem);
}

[dir="rtl"] .auth-input-wrapper .auth-form-input {
  padding-left: var(--space-11, 2.75rem);
  padding-right: var(--space-11, 2.75rem);
}

/* ===========================================
   6. PASSWORD STRENGTH INDICATOR
   =========================================== */

.auth-password-strength {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  min-height: 24px;
}

.password-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--auth-input-bg);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  border-radius: var(--radius-full, 9999px);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-fill.very-weak { background: #ef4444; }
.password-strength-fill.weak { background: #f97316; }
.password-strength-fill.fair { background: #eab308; }
.password-strength-fill.good { background: #84cc16; }
.password-strength-fill.strong { background: #22c55e; }

.password-strength-text {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  min-width: 70px;
}

/* ===========================================
   7. CHECKBOX & FORM ROW
   =========================================== */

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2, 0.5rem);
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  cursor: pointer;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #6366f1);
}

.auth-link {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-primary, #6366f1);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--color-primary-light, #818cf8);
  text-decoration: underline;
}

.auth-link-btn {
  background: none;
  border: none;
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-semibold, 600);
  color: var(--color-primary, #6366f1);
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-link-btn:hover {
  color: var(--color-primary-light, #818cf8);
  text-decoration: underline;
}

/* ===========================================
   8. ERROR MESSAGE
   =========================================== */

.auth-form-error {
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md, 0.5rem);
  color: var(--auth-error);
  font-size: var(--text-sm, 0.875rem);
}

.auth-form-error[hidden] {
  display: none;
}

/* ===========================================
   9. SUBMIT BUTTON
   =========================================== */

.auth-submit-btn {
  width: 100%;
  margin-top: var(--space-2, 0.5rem);
  position: relative;
}

.auth-submit-btn .btn-text {
  transition: opacity 0.2s ease;
}

.auth-submit-btn .btn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-submit-btn .btn-loader[hidden] {
  display: none;
}

/* Spinner animation */
.spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

.spinner-circle {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 45;
}

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

/* ===========================================
   10. MODAL FOOTER
   =========================================== */

.auth-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 0.5rem);
  margin-top: var(--space-6, 1.5rem);
  padding-top: var(--space-6, 1.5rem);
  border-top: 1px solid var(--auth-modal-border);
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
}

/* ===========================================
   11. PROFILE DROPDOWN
   =========================================== */

.auth-profile-dropdown {
  position: relative;
}

.auth-profile-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  padding: var(--space-1, 0.25rem);
  background: transparent;
  border: none;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-profile-btn:hover {
  background: var(--auth-input-bg);
}

.auth-avatar-img,
.auth-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full, 9999px);
  object-fit: cover;
}

.auth-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%));
  color: white;
  font-weight: var(--font-semibold, 600);
  font-size: var(--text-sm, 0.875rem);
}

.auth-dropdown-arrow {
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  transition: transform 0.2s ease;
}

.auth-profile-btn[aria-expanded="true"] .auth-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.auth-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2, 0.5rem));
  right: 0;
  width: 280px;
  background: var(--auth-modal-bg);
  border: 1px solid var(--auth-modal-border);
  border-radius: var(--radius-xl, 1rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 100;
  animation: dropdownFadeIn 0.2s ease;
}

[dir="rtl"] .auth-dropdown-menu {
  right: auto;
  left: 0;
}

.auth-dropdown-menu[hidden] {
  display: none;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown header */
.auth-dropdown-header {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-4, 1rem);
}

.auth-dropdown-avatar {
  flex-shrink: 0;
}

.auth-avatar-img-lg,
.auth-avatar-initials-lg {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full, 9999px);
  object-fit: cover;
}

.auth-avatar-initials-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%));
  color: white;
  font-weight: var(--font-bold, 700);
  font-size: var(--text-lg, 1.125rem);
}

.auth-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 0.25rem);
  min-width: 0;
}

.auth-dropdown-name {
  font-weight: var(--font-semibold, 600);
  color: var(--color-text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-dropdown-email {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-unverified-badge,
.auth-admin-badge {
  display: inline-block;
  padding: var(--space-0-5, 0.125rem) var(--space-2, 0.5rem);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-medium, 500);
  width: fit-content;
}

.auth-unverified-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--auth-warning);
}

.auth-admin-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary, #6366f1);
}

/* Dropdown divider */
.auth-dropdown-divider {
  height: 1px;
  background: var(--auth-modal-border);
  margin: 0;
}

/* Dropdown nav */
.auth-dropdown-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-2, 0.5rem) 0;
}

.auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: var(--text-sm, 0.875rem);
}

[dir="rtl"] .auth-dropdown-item {
  text-align: right;
}

.auth-dropdown-item:hover {
  background: var(--auth-input-bg);
  color: var(--color-text-primary, #fff);
}

.auth-dropdown-item svg {
  flex-shrink: 0;
}

.auth-logout-btn {
  color: var(--auth-error);
}

.auth-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--auth-error);
}

/* ===========================================
   12. AUTH BUTTONS IN HEADER
   =========================================== */

.auth-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
}

.auth-buttons .btn {
  white-space: nowrap;
}

.auth-buttons[hidden],
.auth-profile-container[hidden] {
  display: none;
}

/* Mobile auth buttons */
@media (max-width: 767px) {
  .auth-buttons .btn-secondary {
    display: none;
  }
}

/* ===========================================
   13. TOAST NOTIFICATIONS
   =========================================== */

.auth-toast {
  position: fixed;
  bottom: var(--space-6, 1.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  background: var(--auth-modal-bg);
  border: 1px solid var(--auth-modal-border);
  border-radius: var(--radius-lg, 0.75rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.auth-toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.auth-toast-message {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-primary, #fff);
}

.auth-toast-close {
  background: none;
  border: none;
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  font-size: var(--text-xl, 1.25rem);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-2, 0.5rem);
}

.auth-toast-close:hover {
  color: var(--color-text-primary, #fff);
}

/* Toast types */
.auth-toast-success {
  border-left: 4px solid var(--auth-success);
}

.auth-toast-error {
  border-left: 4px solid var(--auth-error);
}

.auth-toast-warning {
  border-left: 4px solid var(--auth-warning);
}

.auth-toast-info {
  border-left: 4px solid var(--auth-info);
}

[dir="rtl"] .auth-toast-success,
[dir="rtl"] .auth-toast-error,
[dir="rtl"] .auth-toast-warning,
[dir="rtl"] .auth-toast-info {
  border-left: none;
  border-right: 4px solid;
}

[dir="rtl"] .auth-toast-success { border-right-color: var(--auth-success); }
[dir="rtl"] .auth-toast-error { border-right-color: var(--auth-error); }
[dir="rtl"] .auth-toast-warning { border-right-color: var(--auth-warning); }
[dir="rtl"] .auth-toast-info { border-right-color: var(--auth-info); }

/* ===========================================
   14. MOBILE MENU AUTH SECTION
   =========================================== */

.mobile-auth-section {
  padding: var(--space-4, 1rem);
  border-top: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.1));
  margin-top: var(--space-4, 1rem);
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
  width: 100%;
}

.mobile-auth-buttons .btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
}

.mobile-auth-buttons[hidden],
.mobile-profile-section[hidden] {
  display: none;
}
/* Mobile profile section when logged in */
.mobile-profile-section {
  padding: var(--space-4, 1rem);
  border-top: 1px solid var(--auth-modal-border);
}

.mobile-profile-info {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-3, 0.75rem);
  background: var(--auth-input-bg);
  border-radius: var(--radius-lg, 0.75rem);
  margin-bottom: var(--space-4, 1rem);
}



/* .mobile-profile-email {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
} */


/* Mobile profile actions */
.mobile-profile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-4, 1rem);
}

.mobile-profile-actions .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 0.5rem);
}

.mobile-profile-avatar {
  flex-shrink: 0;
}

.mobile-profile-avatar .auth-avatar-img,
.mobile-profile-avatar .auth-avatar-initials {
  width: 48px;
  height: 48px;
}

.mobile-profile-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-profile-name {
  font-weight: var(--font-semibold, 600);
  color: var(--color-text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-profile-email {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-logout-btn {
  width: 100%;
}

/* ===========================================
   15. PROFILE MODAL
   =========================================== */

.auth-modal-profile {
  max-width: 500px;
}

.profile-header {
  text-align: center;
  padding-bottom: var(--space-6, 1.5rem);
  border-bottom: 1px solid var(--auth-modal-border);
  margin-bottom: var(--space-6, 1.5rem);
}

.profile-avatar-large {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-4, 1rem);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full, 9999px);
  object-fit: cover;
}

.profile-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%));
  color: white;
  font-weight: var(--font-bold, 700);
  font-size: var(--text-3xl, 1.875rem);
  border-radius: var(--radius-full, 9999px);
}

.profile-status-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full, 9999px);
  border: 3px solid var(--auth-modal-bg);
}

.profile-status-badge.status-active {
  background: var(--auth-success, #22c55e);
}

.profile-status-badge.status-pending {
  background: var(--auth-warning, #f59e0b);
}

.profile-name {
  font-size: var(--text-2xl, 1.5rem);
  font-weight: var(--font-bold, 700);
  color: var(--color-text-primary, #fff);
  margin-bottom: var(--space-1, 0.25rem);
}

.profile-username {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  margin-bottom: var(--space-3, 0.75rem);
}

.profile-badges {
  display: flex;
  gap: var(--space-2, 0.5rem);
  justify-content: center;
  flex-wrap: wrap;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1, 0.25rem);
  padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-medium, 500);
}

.profile-badge-admin {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary, #6366f1);
}

.profile-badge-user {
  background: var(--auth-input-bg);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
}

.profile-badge-verified {
  background: rgba(34, 197, 94, 0.15);
  color: var(--auth-success, #22c55e);
}

.profile-badge-unverified {
  background: rgba(245, 158, 11, 0.15);
  color: var(--auth-warning, #f59e0b);
}

/* Profile Details */
.profile-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6, 1.5rem);
}

.profile-section {
  background: var(--auth-input-bg);
  border-radius: var(--radius-lg, 0.75rem);
  padding: var(--space-4, 1rem);
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-semibold, 600);
  color: var(--color-text-primary, #fff);
  margin-bottom: var(--space-4, 1rem);
  padding-bottom: var(--space-3, 0.75rem);
  border-bottom: 1px solid var(--auth-modal-border);
}

.profile-section-title svg {
  color: var(--color-primary, #6366f1);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4, 1rem);
}

@media (max-width: 480px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 0.25rem);
}

.profile-info-label {
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-medium, 500);
  color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-info-value {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-primary, #fff);
  word-break: break-word;
}

.profile-info-id {
  font-family: monospace;
  font-size: var(--text-xs, 0.75rem);
  background: var(--color-bg-muted, rgba(255, 255, 255, 0.05));
  padding: var(--space-1, 0.25rem) var(--space-2, 0.5rem);
  border-radius: var(--radius-md, 0.5rem);
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full, 9999px);
  margin-right: var(--space-2, 0.5rem);
}

.status-indicator.status-active {
  background: var(--auth-success, #22c55e);
}

.status-indicator.status-pending {
  background: var(--auth-warning, #f59e0b);
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-6, 1.5rem);
  padding-top: var(--space-6, 1.5rem);
  border-top: 1px solid var(--auth-modal-border);
}

.profile-actions .btn {
  flex: 1;
  justify-content: center;
}

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

.profile-actions .btn .spinner {
  animation: spin 1s linear infinite;
}