/* Carnival Tracker Styles */
.carnival-tracker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Toolbar integration - tracker count badge */
.tracker-count {
  background: #ef4444;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Full State */
.carnival-tracker-full {
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Header */
.tracker-header {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tracker-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tracker-title h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.tracker-title p {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

.squad-limits {
  margin-top: 4px;
}

.limit-text {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.limit-text.basic {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.limit-text.premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  font-weight: 600;
}

.user-tier-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
}

.user-tier-badge.basic-tier {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-tier-badge.premium-tier {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  font-weight: 600;
}

.tier-icon {
  font-size: 10px;
}

.tier-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracker-actions .invite-friends-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.tracker-actions .invite-friends-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.tracker-actions .invite-friends-btn i {
  font-size: 14px;
}

.tracker-actions button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracker-actions button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tabs */
.tracker-tabs {
  background: #f9fafb;
  padding: 8px 16px;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  color: #6b7280;
}

.tab-btn:hover {
  color: #374151;
}

.tab-btn.active {
  background: #f3e8ff;
  color: #8b5cf6;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Content */
.tracker-content {
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
}

/* Search */
.tracker-search {
  position: relative;
  margin-bottom: 16px;
}

.tracker-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* People List */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.person-card:hover {
  background: #f3f4f6;
}

/* Avatar */
.person-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.status-indicator.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Person Info */
.person-info {
  flex: 1;
  min-width: 0;
}

.person-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.person-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.relationship-badge {
  background: #dbeafe;
  color: #2563eb;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.person-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

.person-location i {
  font-size: 10px;
}

.time-ago {
  margin-left: auto;
  font-weight: 500;
}

.not-sharing {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

/* Actions */
.person-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.action-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #6b7280;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: #f3f4f6;
}

.call-btn:hover {
  background: #dbeafe;
  color: #2563eb;
}

.whatsapp-btn:hover {
  background: #dcfce7;
  color: #16a34a;
}

.invite-btn {
  background: #8b5cf6;
  color: white;
}

.invite-btn:hover {
  background: #7c3aed;
  transform: scale(1.05);
}

/* Phone Options Modal */
.phone-options-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-options-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.phone-options-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  z-index: 1;
  min-width: 300px;
  max-width: 400px;
  animation: slideUpModal 0.3s ease-out;
}

.phone-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.phone-options-header h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #111827;
}

.close-phone-options {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-phone-options:hover {
  background: #f3f4f6;
}

.phone-options-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.call-option {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.call-option:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.whatsapp-option {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
}

.whatsapp-option:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.phone-option-btn i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.message-btn:hover {
  background: #f3e8ff;
  color: #8b5cf6;
}

.request-location-btn {
  background: #dcfce7;
  color: #16a34a;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.request-location-btn:hover {
  background: #bbf7d0;
}

.location-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Notifications */
.notifications-tab-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}

.notification-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.notification-content p {
  font-size: 14px;
  color: #111827;
  margin: 0 0 4px 0;
}

.notification-content span {
  font-size: 12px;
  color: #6b7280;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: #6b7280;
}

.empty-state i {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

/* Add Person Modal */
.add-person-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  padding: 24px;
  position: relative;
  z-index: 1;
  animation: slideUpModal 0.3s ease-out;
}

@keyframes slideUpModal {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #111827;
}

.close-add-form {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-add-form:hover {
  background: #f3f4f6;
}

.add-person-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-person-input {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.add-person-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.add-person-submit {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.add-person-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.add-person-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Color Classes */
.bg-red-500 {
  background-color: #ef4444;
}

.bg-blue-500 {
  background-color: #3b82f6;
}

.bg-green-500 {
  background-color: #10b981;
}

.bg-yellow-500 {
  background-color: #f59e0b;
}

.bg-purple-500 {
  background-color: #8b5cf6;
}

.bg-pink-500 {
  background-color: #ec4899;
}

.bg-gray-400 {
  background-color: #9ca3af;
}

.text-green-500 {
  color: #10b981;
}

.text-yellow-500 {
  color: #f59e0b;
}

.text-red-500 {
  color: #ef4444;
}

.text-gray-400 {
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carnival-tracker-full {
    max-height: 60vh;
  }

  .tracker-content {
    max-height: 40vh;
  }

  .modal-content {
    margin: 0;
    border-radius: 16px 16px 0 0;
  }
}

/* Integration with existing avatar system */
.carnival-tracker {
  /* Position to avoid conflicts with avatar system */
  bottom: 0;
  left: 0;
  right: 0;
}

/* Ensure carnival tracker appears above other elements but below modals */
/* z-index is already set to 1001 in the main .carnival-tracker rule above */

.add-person-modal {
  z-index: 2000;
}

/* Premium Features */
.premium-indicator {
  color: #fbbf24;
  font-size: 16px;
  margin-left: 8px;
}

.premium-upgrade-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.premium-upgrade-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Premium Upgrade Modal */
.premium-upgrade-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-upgrade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.premium-upgrade-content {
  background: white;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUpModal 0.3s ease-out;
}

.premium-upgrade-header {
  text-align: center;
  margin-bottom: 20px;
}

.premium-badge {
  font-size: 40px;
  margin-bottom: 12px;
}

.premium-upgrade-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #111827;
  margin: 0 0 6px 0;
}

.premium-upgrade-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.premium-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
}

.feature-item i {
  color: #8b5cf6;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.premium-pricing {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.promotional-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(15deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.original-price {
  font-size: 18px;
  color: #92400e;
  text-decoration: line-through;
  opacity: 0.7;
  margin-bottom: 6px;
}

.price {
  font-size: 40px;
  font-weight: bold;
  color: #92400e;
  margin: 0;
}

.period {
  font-size: 16px;
  color: #92400e;
  margin: 3px 0 6px 0;
}

.then-price {
  font-size: 14px;
  color: #92400e;
  opacity: 0.8;
  margin-bottom: 6px;
}

.savings {
  font-size: 12px;
  color: #92400e;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 16px;
  display: inline-block;
  margin-top: 6px;
}

.premium-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upgrade-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.close-premium-btn {
  background: none;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.close-premium-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* Mobile optimizations for premium upgrade modal */
@media (max-width: 480px) {
  .premium-upgrade-content {
    padding: 20px;
    max-width: 95%;
    max-height: 80vh;
  }

  .premium-badge {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .premium-upgrade-header h2 {
    font-size: 22px;
  }

  .premium-upgrade-header p {
    font-size: 13px;
  }

  .feature-item {
    padding: 6px 10px;
    font-size: 12px;
  }

  .feature-item i {
    font-size: 12px;
    width: 14px;
  }

  .price {
    font-size: 36px;
  }

  .original-price {
    font-size: 16px;
  }

  .period {
    font-size: 14px;
  }

  .then-price {
    font-size: 12px;
  }

  .savings {
    font-size: 11px;
    padding: 4px 10px;
  }

  .upgrade-btn {
    padding: 12px;
    font-size: 15px;
  }

  .close-premium-btn {
    padding: 8px;
    font-size: 13px;
  }
}

/* Premium Success Message */
.premium-success {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 4000;
  animation: slideInRight 0.3s ease-out;
}

.success-content {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.success-content i {
  font-size: 24px;
}

.success-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
}

.success-content p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Analytics Tab */
.analytics-tab-content {
  padding: 16px;
}

.analytics-header {
  text-align: center;
  margin-bottom: 24px;
}

.analytics-header h3 {
  font-size: 20px;
  font-weight: bold;
  color: #111827;
  margin: 0 0 8px 0;
}

.analytics-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytics-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.analytics-content {
  flex: 1;
}

.analytics-value {
  font-size: 20px;
  font-weight: bold;
  color: #111827;
  margin: 0;
}

.analytics-label {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.analytics-chart {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
}

.analytics-chart h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.timeline-chart {
  position: relative;
  height: 60px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.timeline-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
}

.timeline-labels {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Payment Loading Styles */
.payment-loading {
  text-align: center;
  padding: 2rem 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.payment-loading p {
  margin: 0.5rem 0;
  color: #6b7280;
}

.payment-note {
  font-size: 0.875rem;
  color: #9ca3af;
  font-style: italic;
}

/* Payment Error Styles */
.payment-error {
  text-align: center;
  padding: 2rem 1rem;
}

.payment-error p {
  margin: 0.5rem 0;
  color: #6b7280;
}

.payment-error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.retry-payment-btn,
.contact-support-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-payment-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

.retry-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.contact-support-btn {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.contact-support-btn:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

/* Demo Payment Styles */
.payment-demo {
  text-align: center;
  padding: 2rem 1rem;
}

.payment-demo p {
  margin: 0.5rem 0;
  color: #6b7280;
  line-height: 1.6;
}

.payment-demo strong {
  color: #374151;
}

.demo-features {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

.demo-features h4 {
  margin: 0 0 0.5rem 0;
  color: #374151;
  font-size: 1rem;
}

.demo-features ul {
  margin: 0;
  padding-left: 1.5rem;
}

.demo-features li {
  margin: 0.25rem 0;
  color: #6b7280;
}

.demo-activate-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.demo-activate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Email Input Modal Styles */
.email-input-section {
  text-align: center;
  padding: 2rem 1rem;
}

.email-input-section p {
  margin: 0.5rem 0;
  color: #6b7280;
  line-height: 1.6;
}

.email-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.email-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.email-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.continue-payment-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.continue-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.continue-payment-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.email-note {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 1rem;
}

/* User Tier Badge Styles */
.user-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.user-tier-badge.basic-tier {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.user-tier-badge.premium-tier {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: 1px solid #8b5cf6;
}

.tier-icon {
  font-size: 0.875rem;
}

.tier-text {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Disabled Button Styles */
.action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border: 1px solid #e5e7eb !important;
  position: relative;
}

.action-btn.disabled::after {
  content: "🔒";
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.action-btn.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #f3f4f6 !important;
}

/* Premium Indicator Styles */
.premium-indicator {
  color: #8b5cf6;
  font-size: 1.2em;
  margin-left: 0.25rem;
}