.header {
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  height: 64px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
}

.logo-image {
  height: 46px;
  object-fit: contain;
  border-radius: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1;
  margin: 0;
}

.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text-primary);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.dropdown-toggle:hover {
  color: var(--text-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 1001;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-sm) 0;
}

.user-dropdown {
  margin-left: auto;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
  cursor: pointer;
  color: var(--text-primary);
  text-decoration: none;
  min-width: 280px;
}

.user-toggle:hover {
  background: var(--bg-tertiary);
}

.user-profile-section {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.user-avatar {
  width: 30px;
  height: 40px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.user-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-email {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.pro-badge {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.upgrade-link {
  color: var(--primary-teal);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.upgrade-link:hover {
  color: var(--primary-teal-dark);
}

.dropdown-arrow {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.user-dropdown .dropdown-menu {
  right: 0;
  left: auto;
  min-width: 280px;
  padding: var(--space-lg);
}

.user-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.menu-section {
  display: flex;
  flex-direction: column;
}

.menu-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  padding: 0 var(--space-md);
}

.menu-section a {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.menu-section a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateX(4px);
}

.logout-link {
  color: #ef4444 !important;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md) !important;
  margin-top: var(--space-sm);
}

.logout-link:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.main {
  flex: 1;
  padding: var(--space-3xl) 0;
}

.messages {
  margin-bottom: var(--space-lg);
}

.message {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
}

.message-success {
  background: #f0fff4;
  color: #2f855a;
  border-color: #9ae6b4;
}

.message-error {
  background: #fed7d7;
  color: #c53030;
  border-color: #fc8181;
}

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-3xl) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  margin-right: var(--space-xl);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  margin-right: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
  border: 1px solid var(--border-light);
}

.profile-info h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.profile-info p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-size: 14px;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4xl);
}

.profile-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.profile-table td:first-child {
  font-weight: 500;
  width: 30%;
  color: var(--text-primary);
}

.status-verified {
  color: #10b981;
}

.status-unverified {
  color: #f59e0b;
}