@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Sora:wght@700;800&display=swap');

:root {
  /* Colors */
  --gray-50: #F8FAFC;
  --blue-600: #2563EB;
  --blue-900: #1E3A8A;

  /* Feature Gradients */
  --grad-vocab: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  --grad-speaking: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
  --grad-grammar: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --grad-listening: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --grad-roleplay: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --grad-bonus: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);

  --bg-color: var(--gray-50);
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 90px;

  /* Shadows & Elevations */
  --shadow-premium: 0 12px 40px rgba(37, 99, 235, 0.13);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  /* Extended Blue Palette */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-300: #93c5fd;
  --blue-500: #3b82f6;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  /* Alias variables */
  --primary-navy: #1e3a8a;
  --border-light: #f1f5f9;
  --text-dark: #0f172a;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top left, rgba(59,130,246,0.08), transparent 40%),
                    radial-gradient(circle at bottom right, rgba(37,99,235,0.06), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--blue-900);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Layout */
.app-container {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-collapsed-width);
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar:hover {
  width: var(--sidebar-width);
  box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.sidebar-header {
  padding: 32px 21px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: padding 0.3s ease;
}

.sidebar:not(:hover) .sidebar-header {
  padding: 32px 21px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--grad-vocab);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 24px;
  box-shadow: var(--shadow-premium);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar:not(:hover) .logo-text {
  max-width: 0;
  opacity: 0;
}

.sidebar:hover .logo-text {
  max-width: 200px;
  opacity: 1;
  transition-delay: 0.1s;
}

.logo-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--blue-900);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 13px;
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  flex: 1;
  padding: 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-left: 0;
  border-radius: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
}

.nav-menu::-webkit-scrollbar {
  width: 4px;
}

.nav-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sidebar:not(:hover) .nav-item {
  width: 48px;
  padding: 14px;
  margin-left: 6px;
  justify-content: flex-start;
}

.nav-item span {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar:hover .nav-item span {
  opacity: 1;
  transition-delay: 0.1s;
}

.nav-item:hover {
  background-color: var(--gray-50);
  color: var(--blue-600);
}

.nav-item.active {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--blue-600);
  border-right: 4px solid var(--blue-600);
  border-radius: 14px 0 0 14px;
}

.sidebar:not(:hover) .nav-item.active {
  border-right: none;
  border-radius: 14px;
}

.nav-item i {
  font-size: 20px;
}

.admin-nav-badge {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.sidebar:not(:hover) .admin-nav-badge {
  display: none;
}

.sidebar-footer {
  padding: 24px 14px;
  transition: padding 0.3s ease;
}

.sidebar:not(:hover) .sidebar-footer {
  padding: 24px 14px;
}

.user-profile-widget {
  margin-left: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar:not(:hover) .user-profile-widget {
  width: 48px !important;
  padding: 4px !important;
  margin-left: 8px !important;
  border-radius: 16px !important;
}

.user-profile-widget > div:first-child > div:last-child,
.user-profile-widget > button {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar:hover .user-profile-widget > div:first-child > div:last-child,
.sidebar:hover .user-profile-widget > button {
  opacity: 1;
  transition-delay: 0.1s;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-collapsed-width);
  display: flex;
  flex-direction: column;
  max-width: calc(100% - var(--sidebar-collapsed-width));
}

/* Header */
.top-header {
  height: 90px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  padding: 14px 20px;
  border-radius: 20px;
  width: 450px;
  gap: 12px;
  box-shadow: var(--shadow-premium);
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.search-bar:focus-within {
  border-color: var(--blue-600);
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-main);
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar i {
  color: var(--blue-600);
  font-size: 20px;
}

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

.icon-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 22px;
  color: var(--blue-900);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  transform: translateY(-2px);
}

.profile-pic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--card-bg);
  box-shadow: var(--shadow-premium);
}

/* Page Content */
.page-container {
  padding: 40px 48px;
  flex: 1;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
}

/* Grid Layouts */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

.card-gradient {
  background: var(--grad-bonus);
  color: white;
}
.card-gradient .card-title, .card-gradient .card-subtitle, .card-gradient .stat-value {
  color: white;
}
.card-gradient .card-subtitle {
  opacity: 0.9;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.card-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 15px;
}

.badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-white {
  background-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Stats */
.stat-value {
  font-size: 56px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stat-unit {
  font-size: 18px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  opacity: 0.9;
}

/* Progress Bar */
.progress-container {
  margin-top: 32px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.progress-bar-bg {
  height: 14px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: white;
  border-radius: 8px;
  transition: width 1s ease-in-out;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Streak Card */
.streak-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.streak-icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--grad-speaking);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
  font-size: 40px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.streak-value {
  font-size: 48px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--blue-900);
}

.streak-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
}

/* Grid for Items */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.item-card {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
}
.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--blue-600);
  transition: width 0.4s ease;
}
.item-card:hover::before { width: 40%; }
.item-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-8px);
  border-color: white;
}

.item-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.item-card:hover .item-icon { transform: scale(1.1) rotate(-4deg); }

.item-card:has(.grad-vocab)::before { background: #3b82f6; }
.item-card:has(.grad-speaking)::before { background: #ea580c; }
.item-card:has(.grad-grammar)::before { background: #f59e0b; }
.item-card:has(.grad-listening)::before { background: #8b5cf6; }
.item-card:has(.grad-roleplay)::before { background: #059669; }

.grad-vocab { background: var(--grad-vocab); }
.grad-speaking { background: var(--grad-speaking); }
.grad-grammar { background: var(--grad-grammar); }
.grad-listening { background: var(--grad-listening); }
.grad-roleplay { background: var(--grad-roleplay); }

.item-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.item-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.item-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Table Styles */
.table-container {
  background-color: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

th, td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

td {
  font-size: 15px;
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: var(--gray-50);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-vocab);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-family: 'Sora', sans-serif;
  box-shadow: var(--shadow-sm);
}

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

.user-name {
  font-weight: 600;
  color: var(--blue-900);
}

.user-email {
  font-size: 13px;
  color: var(--text-muted);
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

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

.status-premium {
  background: var(--grad-bonus);
  color: white;
}

.status-free {
  background-color: var(--gray-50);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.action-btn {
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  color: var(--blue-900);
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.2s;
  font-size: 18px;
  display: inline-flex;
}

.action-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  transform: translateY(-2px);
}

.action-btn.delete:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Button variants */
.btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background-color: var(--blue-600);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--blue-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

.btn-outline {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--blue-900);
}

.btn-outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  form div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }

  body.admin-shell {
    display: block;
    overflow-x: hidden;
  }

  .admin-shell .app-container {
    display: block;
    min-width: 0;
  }

  .admin-shell .sidebar,
  .admin-shell .sidebar:hover {
    width: 100%;
    height: 78px;
    inset: auto 0 0;
    flex-direction: row;
    border-top: 1px solid var(--border-color);
    border-right: 0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
    overflow: hidden;
  }

  .admin-shell .sidebar-header,
  .admin-shell .sidebar-footer {
    display: none;
  }

  .admin-shell .nav-menu {
    width: 100%;
    padding: 8px 12px;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .admin-shell .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-shell .sidebar .nav-item,
  .admin-shell .sidebar:not(:hover) .nav-item {
    width: auto;
    min-width: 86px;
    height: 60px;
    margin: 0;
    padding: 6px 8px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    overflow: visible;
  }

  .admin-shell .sidebar .nav-item span {
    display: block;
    max-width: 96px;
    color: inherit;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    opacity: 1;
  }

  .admin-shell .sidebar .nav-item i {
    font-size: 20px;
  }

  .admin-shell .admin-nav-badge {
    display: none;
  }

  .admin-shell .main-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    padding-bottom: 92px;
  }

  .admin-shell .top-header {
    height: 68px;
    padding: 0 16px;
    gap: 10px;
  }

  .admin-shell .search-bar {
    width: auto;
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .admin-shell .header-actions {
    gap: 8px;
  }

  .admin-shell .icon-btn,
  .admin-shell .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .admin-shell .page-container {
    width: 100%;
    min-width: 0;
    padding: 22px 16px;
  }

  .admin-shell .section-header,
  .admin-shell .card-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .admin-shell .page-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .admin-shell .dashboard-grid,
  .admin-shell .items-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
  }

  .admin-shell .table-container,
  .admin-shell .partner-admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell .table-container table,
  .admin-shell .partner-admin-table {
    min-width: 720px;
  }

  .admin-shell [style*="min-width:240px"],
  .admin-shell [style*="min-width:260px"] {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Modal & Form Styles */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal.active {
  opacity: 1;
}
.modal-content {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal.active .modal-content {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.btn-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.btn-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  background: #f8fafc;
  color: #1e293b;
  transition: all 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230f172a' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px !important;
}

.profile-action-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 8px 0 16px !important;
}

.profile-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

.profile-select-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background: white;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-select-trigger i {
  color: #64748b;
  font-size: 16px;
  transition: transform 0.18s ease;
}

.profile-select-shell.open .profile-select-trigger {
  border-color: var(--blue-600, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.profile-select-shell.open .profile-select-trigger i {
  transform: rotate(180deg);
}

.profile-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10002;
  display: none;
  flex-direction: column;
  padding: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.profile-select-shell.open .profile-select-options {
  display: flex;
}

.profile-select-option {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.profile-select-option:hover,
.profile-select-option.selected {
  background: #eff6ff;
  color: var(--blue-600, #2563eb);
}


