/* Auth Widget Styles */
.auth-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.user-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.user-tier {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.auth-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--emergency-red);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  background: linear-gradient(135deg, var(--emergency-red) 0%, #b91c1c 100%);
  color: var(--text-primary);
  box-shadow: var(--glow-sm) var(--emergency-red-glow);
}

.auth-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.auth-login-btn:hover::before {
  left: 100%;
}

.auth-login-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, var(--emergency-red) 100%);
  transform: translateY(-2px);
  box-shadow: 
    var(--glow-md) var(--emergency-red-glow),
    0 8px 25px rgba(220, 38, 38, 0.2);
}

.auth-login-btn .btn-icon {
  font-size: 1rem;
}

/* Tier Badges */
.tier-badge, .tier-badge-inline {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 6px;
}

.tier-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
}

.tier-badge-inline {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid #fbbf24;
}

/* Locked Features */
.locked {
  opacity: 0.6;
  position: relative;
}

.report-option-btn.locked:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 16px;
}

.radio-option.locked label {
  pointer-events: none;
}

.report-option-btn.locked {
  cursor: pointer !important;
}

.lock-overlay {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Upgrade Prompt Modal */
.upgrade-prompt {
  max-width: 500px;
  text-align: center;
}

.upgrade-icon {
  font-size: 64px;
  margin: 20px 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.tier-benefits {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.tier-benefits h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.tier-benefits ul {
  list-style: none;
  padding: 0;
}

.tier-benefits li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.upgrade-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.upgrade-actions button {
  flex: 1;
}

/* Tabbed Settings Modal */
.settings-modal-content {
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin: -20px -20px 0 -20px;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.2);
}

.settings-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  top: 2px;
}

.settings-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.settings-tab.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
  background: rgba(220, 38, 38, 0.1);
}

.settings-tab .tab-icon {
  font-size: 18px;
}

.settings-tab .tab-label {
  font-weight: 600;
}

.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.settings-tab-content {
  display: none;
}

.settings-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Profile Tab Styles */
.profile-section {
  padding: 0 20px;
}

.profile-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.profile-empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.profile-empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.profile-info h3 {
  color: var(--text-primary);
  margin: 0 0 5px 0;
  font-size: 20px;
}

.profile-info p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

.subscription-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.subscription-header h4 {
  color: var(--text-primary);
  margin: 0;
  font-size: 16px;
}

.subscription-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.subscription-badge.tier-free {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.subscription-badge.tier-plus {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
}

.subscription-badge.tier-pro {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.subscription-badge.tier-premium {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
}

.subscription-details {
  margin-bottom: 15px;
}

.subscription-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
  font-size: 14px;
}

.detail-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.subscription-features {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.subscription-features h5 {
  color: var(--text-primary);
  margin: 0 0 10px 0;
  font-size: 14px;
}

.subscription-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subscription-features li {
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Profile Field Styles */
.profile-field {
  margin-bottom: 15px;
}

.profile-field label {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

.field-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.field-with-button span {
  flex: 1;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.field-with-button .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.field-value {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-top: 8px;
}

.profile-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.profile-input:focus {
  outline: none;
  border-color: var(--electric-blue);
  background: rgba(0, 0, 0, 0.4);
}

.profile-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.voucher-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.voucher-message {
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.voucher-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.voucher-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.profile-actions {
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-widget {
    margin-right: 5px;
  }
  
  .user-name {
    display: none;
  }
  
  .user-tier {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .auth-login-btn .btn-text {
    display: none;
  }
  
  .auth-login-btn {
    padding: 0.625rem 1rem;
  }
  
  .settings-tab .tab-label {
    display: none;
  }
  
  .settings-tab {
    padding: 12px 10px;
  }
  
  .settings-tab .tab-icon {
    font-size: 20px;
  }
  
  .settings-modal-content {
    max-height: 90vh;
  }
}
