/* Profile Modal Styles */

.profile-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.profile-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #333;
  background: #2a2a2a;
  border-radius: 12px 12px 0 0;
}

.profile-modal .modal-header h2 {
  color: #61dafb;
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
}

/* Profile Tabs */

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0;
}

.profile-tab {
  background: transparent;
  border: none;
  color: #888;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.profile-tab:hover {
  color: #61dafb;
  background: rgba(97, 218, 251, 0.05);
}

.profile-tab.active {
  color: #61dafb;
  border-bottom-color: #61dafb;
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
}

/* Profile Sections */

.profile-section {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

/* Form Styles */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 2px solid #555;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #61dafb;
}

.form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #333;
}

.help-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
  display: block;
}

.help-text.danger {
  color: #ff6b6b;
  font-weight: 500;
}

/* Subscription Card */

.subscription-card {
  background: rgba(97, 218, 251, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(97, 218, 251, 0.3);
}

.subscription-tier {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tier-badge {
  background: #61dafb;
  color: #1a1a1a;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.tier-badge[data-tier="premium"] {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.tier-badge[data-tier="pro"] {
  background: linear-gradient(135deg, #61dafb, #4fc3f7);
}

.tier-level {
  color: #888;
  font-size: 0.85rem;
}

.subscription-status {
  color: #fff;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.subscription-status.status-active {
  background: rgba(76, 175, 80, 0.2);
  border-left: 4px solid #4CAF50;
}

.subscription-status.status-free {
  background: rgba(97, 218, 251, 0.1);
  border-left: 4px solid #61dafb;
}

/* Privacy Actions */

.privacy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Buttons */

.btn-primary, .btn-secondary, .btn-danger {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: #61dafb;
  color: #1a1a1a;
}

.btn-primary:hover {
  background: #4fc3f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(97, 218, 251, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #61dafb;
  border: 2px solid #61dafb;
}

.btn-secondary:hover {
  background: rgba(97, 218, 251, 0.1);
}

.btn-danger {
  background: #ff6b6b;
  color: white;
}

.btn-danger:hover {
  background: #ff5252;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Voucher Section Styles */

.voucher-redemption {
  margin-top: 1rem;
}

#voucher-code-input {
  text-transform: uppercase;
}

#voucher-code-input::placeholder {
  text-transform: none;
}

/* Responsive Design */

@media (max-width: 768px) {
  .profile-modal {
    max-width: 95%;
    margin: 1rem;
  }

  .profile-modal .modal-header {
    padding: 1rem 1.5rem;
  }

  .profile-modal .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .profile-section {
    padding: 1rem;
  }

  .subscription-tier {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .profile-tabs {
    gap: 0.25rem;
  }

  .profile-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .profile-modal .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .profile-section {
    padding: 0.75rem;
  }

  .form-group input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}


/* Pricing View Styles */

.pricing-view {
  width: 100%;
}

.pricing-header-text {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header-text p {
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: #61dafb;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(97, 218, 251, 0.2);
}

.pricing-card.featured {
  border-color: #61dafb;
  background: linear-gradient(135deg, rgba(97, 218, 251, 0.1), rgba(97, 218, 251, 0.05));
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #61dafb, #4fc3f7);
  color: #1a1a1a;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-header h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  border: none;
  padding: 0;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.price-amount {
  color: #61dafb;
  font-size: 2.5rem;
  font-weight: 700;
}

.price-period {
  color: #888;
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.pricing-features li {
  color: #ccc;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #333;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.coming-soon-text {
  text-align: center;
  color: #888;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* FAQ Section */

.pricing-faq {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.pricing-faq h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h4 {
  color: #61dafb;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

.faq-item p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Pricing Grid */

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 1rem;
  }

  .price-amount {
    font-size: 2rem;
  }
}


/* Location Settings Styles */
.location-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-item:last-child {
  border-bottom: none;
}

.location-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.location-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.location-value:empty::before {
  content: 'Not set';
  color: var(--text-muted);
  font-style: italic;
}

/* Email Preference Toggles */

.email-preference-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.email-preference-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(97, 218, 251, 0.3);
}

.email-preference-item:last-child {
  margin-bottom: 0;
}

.email-preference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.email-preference-header > div {
  flex: 1;
}

/* Toggle Switch Styles */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #61dafb;
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(97, 218, 251, 0.3);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Disabled state */
.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsive */

@media (max-width: 480px) {
  .email-preference-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .toggle-switch {
    align-self: flex-end;
  }
}
