/* App styles for auth pages and dashboard */

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--off-white) 100%);
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease-out;
}

.auth-logo-link {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  max-width: 200px;
  height: auto;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 1rem;
  color: var(--neutral-gray);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-navy);
}

.form-group input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--dark-navy);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(36, 116, 172, 0.1);
}

.form-group input::placeholder {
  color: var(--neutral-gray);
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-red);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--neutral-gray);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-blue);
}

.auth-divider span {
  padding: 0 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--neutral-gray);
}

.auth-footer a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent-orange);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(36, 116, 172, 0.3);
}

.btn-secondary {
  background: var(--light-blue);
  color: var(--dark-navy);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-blue);
  color: white;
}

.btn-google {
  background: white;
  color: var(--dark-navy);
  border: 2px solid var(--light-blue);
}

.btn-google:hover:not(:disabled) {
  background: var(--off-white);
  border-color: var(--neutral-gray);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Dashboard Layout */
.dashboard-container {
  min-height: 100vh;
  background: var(--off-white);
}

.dashboard-header {
  background: white;
  border-bottom: 1px solid var(--light-blue);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-logo {
  max-width: 150px;
  height: auto;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  text-align: right;
}

.user-name {
  font-weight: 600;
  color: var(--dark-navy);
  font-size: 0.875rem;
}

.user-plan {
  font-size: 0.75rem;
  color: var(--neutral-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-indicator {
  font-size: 0.7rem;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 0.25rem;
}

.btn-logout {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--light-blue);
  color: var(--neutral-gray);
  font-size: 0.875rem;
}

.btn-logout:hover {
  border-color: var(--error-red);
  color: var(--error-red);
  background: rgba(239, 68, 68, 0.05);
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: var(--neutral-gray);
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--light-blue);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-navy);
}

/* Add Community Form */
.add-community-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.add-community-form .form-group {
  flex: 1;
}

.add-community-form input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  font-size: 0.875rem;
  width: 100%;
}

.add-community-form input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.add-community-form .btn {
  flex-shrink: 0;
  align-self: flex-end;
}

/* Community List */
.community-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: 8px;
  border: 1px solid var(--light-blue);
  gap: 1rem;
}

.community-info {
  flex: 1;
  min-width: 0;
}

.community-name {
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.25rem;
}

.community-url {
  font-size: 0.875rem;
  color: var(--neutral-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Feed URL Display */
.feed-url-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--light-blue);
  border-radius: 6px;
  padding: 0.5rem;
  max-width: 300px;
}

.feed-urls-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feed-url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--light-blue);
  border-radius: 6px;
  padding: 0.5rem;
}

.feed-url-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--neutral-gray);
  min-width: 50px;
  text-transform: uppercase;
}

.feed-url {
  flex: 1;
  font-size: 0.75rem;
  color: var(--primary-blue);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  padding: 0.375rem 0.75rem;
  background: var(--primary-blue);
  color: white;
  font-size: 0.75rem;
  border-radius: 4px;
}

.btn-copy:hover {
  background: var(--dark-navy);
}

.btn-copy.copied {
  background: var(--success-green);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--neutral-gray);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.875rem;
  max-width: 300px;
  margin: 0 auto;
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--neutral-gray);
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--light-blue);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark-navy);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success-green);
}

.toast.error {
  background: var(--error-red);
}

/* Quota Display */
.quota-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-blue);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.quota-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--dark-navy);
}

.quota-bar {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Cooldown Notice */
.cooldown-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  margin-top: 1rem;
  color: #92400E;
  font-size: 0.875rem;
}

.cooldown-notice svg {
  flex-shrink: 0;
  color: #F59E0B;
}

.cooldown-notice strong {
  font-weight: 600;
}

/* Community Header with Edit/Delete */
.community-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.community-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: white;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #F1F5F9;
  color: #1A1F26;
}

.btn-edit:hover {
  border-color: #2563EB;
  color: #2563EB;
}

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

.btn-danger {
  background: #EF4444;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #DC2626;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A1F26;
  margin-bottom: 1rem;
}

.modal-text {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-text strong {
  color: #1A1F26;
}

.modal .form-group {
  margin-bottom: 1rem;
}

.modal .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1A1F26;
  margin-bottom: 0.5rem;
}

.modal .form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.modal .form-group input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 1.5rem;
  }

  .dashboard-header {
    padding: 1rem;
  }

  .dashboard-main {
    padding: 1rem;
  }

  .add-community-form {
    flex-direction: column;
  }

  .add-community-form .btn {
    align-self: stretch;
  }

  .community-item {
    flex-direction: column;
    align-items: stretch;
  }

  .community-actions {
    margin-top: 1rem;
    justify-content: flex-end;
  }

  .feed-url-container {
    max-width: 100%;
  }

  .feed-urls-container {
    width: 100%;
  }

  .feed-url-row {
    flex-wrap: wrap;
  }

  .feed-url-label {
    min-width: auto;
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

/* ========== Dashboard Tabs ========== */
.dashboard-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--light-blue);
  background: white;
}

.dashboard-tab {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--neutral-gray);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.dashboard-tab:hover {
  color: var(--dark-navy);
}

.dashboard-tab.active {
  color: var(--primary-blue);
}

.dashboard-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-blue);
}

.tab-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: var(--accent-orange);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ========== Agency Tab Styles ========== */
.agency-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-description {
  color: var(--neutral-gray);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Upgrade Card */
.upgrade-card {
  background: linear-gradient(135deg, var(--light-blue) 0%, white 100%);
  border: 2px solid var(--primary-blue);
  text-align: center;
}

.upgrade-content {
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem 0;
}

.upgrade-icon {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.upgrade-content h2 {
  font-size: 1.5rem;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
}

.upgrade-content > p {
  color: var(--neutral-gray);
  margin-bottom: 1rem;
}

.upgrade-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.upgrade-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--dark-navy);
  font-size: 0.9375rem;
}

.upgrade-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Domain Verification */
.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.form-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  font-size: 0.9375rem;
}

.form-row input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.domain-verified-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #F0FDF4;
  border: 1px solid #22C55E;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.verified-icon {
  color: #22C55E;
  font-size: 1.25rem;
  font-weight: bold;
}

.domain-name {
  flex: 1;
  font-weight: 600;
  color: #166534;
}

.domain-hint {
  font-size: 0.8125rem;
  color: #16A34A;
}

.domain-hint code {
  background: rgba(22, 163, 74, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

.dns-box {
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.dns-box h4 {
  color: #92400E;
  font-size: 0.9375rem;
  margin: 0 0 0.5rem 0;
}

.dns-box > p {
  color: #B45309;
  font-size: 0.8125rem;
  margin: 0 0 1rem 0;
}

.dns-record-table {
  background: white;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.dns-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
}

.dns-label {
  color: var(--neutral-gray);
  min-width: 50px;
}

.dns-value {
  flex: 1;
  font-family: monospace;
  color: var(--dark-navy);
  word-break: break-all;
}

.dns-token {
  font-size: 0.75rem;
}

.btn-copy-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  background: var(--light-blue);
  color: var(--primary-blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-copy-small:hover {
  background: var(--primary-blue);
  color: white;
}

.dns-record-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #92400E;
  margin: 1rem 0 0.5rem 0;
}

.dns-record-title:first-of-type {
  margin-top: 0;
}

.dns-status-box {
  background: white;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 1rem 0;
  border: 1px solid #E5E7EB;
}

.dns-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
}

.dns-status-label {
  color: var(--neutral-gray);
  min-width: 60px;
}

.dns-status-value {
  font-weight: 500;
  color: var(--dark-navy);
}

.dns-status-value.pending {
  color: #D97706;
}

.dns-status-value.verified {
  color: #059669;
}

.dns-status-value.not-verified {
  color: #DC2626;
}

/* Branding Form */
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  width: 100%;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--neutral-gray);
  margin-top: 0.25rem;
}

.checkbox-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--dark-navy);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-blue);
}

/* Pro Badge for Business Settings */
.pro-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--primary-blue);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
  .dashboard-tabs {
    padding: 0 1rem;
  }

  .dashboard-tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }
}

/* ========== Team Members Styles ========== */
.team-invite-form {
  margin-bottom: 1.5rem;
}

.team-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.team-message.info {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.team-message.success {
  background: #F0FDF4;
  color: #166534;
}

.team-message.error {
  background: #FEF2F2;
  color: #991B1B;
}

.team-loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--neutral-gray);
  font-size: 0.875rem;
}

.team-empty {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-blue);
  border-radius: 8px;
}

.team-empty p {
  margin: 0;
  color: var(--neutral-gray);
  font-size: 0.875rem;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border: 1px solid var(--light-blue);
  border-radius: 8px;
}

.team-member-row .member-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-member-row .member-email {
  font-weight: 500;
  color: var(--dark-navy);
}

.team-member-row .member-status {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.team-member-row .member-status.pending {
  background: #FEF3C7;
  color: #92400E;
}

.team-member-row .member-status.active {
  background: #D1FAE5;
  color: #065F46;
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-menu-trigger:hover {
  background: var(--light-blue);
  border-color: var(--primary-blue);
}

.user-menu-trigger .user-info {
  text-align: right;
}

.user-menu-trigger .dropdown-arrow {
  color: var(--neutral-gray);
  transition: transform 0.2s;
}

.user-menu.open .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 100;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--dark-navy);
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: var(--light-blue);
}

.dropdown-item svg {
  color: var(--neutral-gray);
}

.dropdown-item:hover svg {
  color: var(--primary-blue);
}

/* Accordion */
.accordion {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--light-blue), #FEF3E8);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-trigger:hover {
  background: linear-gradient(135deg, #D1E9F6, #FDE8D7);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-navy);
}

.accordion-icon {
  color: var(--accent-orange);
}

.accordion-arrow {
  color: var(--neutral-gray);
  transition: transform 0.3s ease;
}

.accordion.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.accordion.open .accordion-content {
  max-height: 800px;
  padding: 1.5rem;
}

/* 3-column pricing grid */
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .pricing-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Current plan card highlight */
.plan-card.current-plan-card {
  border: 2px solid var(--primary-blue);
  background: linear-gradient(180deg, var(--light-blue) 0%, white 30%);
}

.plan-card.current-plan-card::before {
  content: '✓ YOUR PLAN';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
}
