* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Warm Minimalist Future Aesthetic Color System */
:root {
  /* Main Base - Pure White & Silver */
  --clean-white: #ffffff;
  --warm-white: #fefefe;
  --silver-mist: #f8f9fa;
  --light-silver: #f5f6f7;

  /* Warm Accent Colors */
  --cream-light: #fef9f3; /* Cream light */
  --soft-gold: #f4d03f; /* Soft gold */
  --warm-gold: #f7dc6f; /* Warm gold */

  /* Subtle Secondary Colors */
  --micro-blue: #f8fbff; /* Micro blue */
  --soft-green: #f9fdf9; /* Soft green */
  --pearl-glow: #fefcf8; /* Pearl glow */

  /* Typography System */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #888888;
  --text-accent: #6b8e23; /* Natural green for logo */

  /* Effect System */
  --glow-shadow: 0 0 20px rgba(244, 208, 63, 0.1);
  --micro-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  --hover-glow: 0 0 30px rgba(244, 208, 63, 0.15);

  /* Additional for dashboard */
  --border-light: rgba(0, 0, 0, 0.06);
  --success-green: #10b981;
  --danger-red: #ef4444;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;

  /* Warm gradient background - top left gold + bottom left soft green */
  background:
    radial-gradient(
      ellipse at top left,
      var(--cream-light) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at top right,
      var(--micro-blue) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom left,
      var(--soft-green) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 800px 400px at 25% 85%,
      rgba(210, 247, 220, 0.4) 0%,
      transparent 40%
    ),
    var(--warm-white);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Container System - Enhanced breathing space */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Navigation - Transparent background */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Capsule-shaped transparent frosted background */
.nav-container::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  height: 64px; /* Button 44px + top/bottom 10px each = 64px */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: -1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-accent); /* Natural green */
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  color: #8b7500 !important; /* Deep golden color matching the theme */
  padding: 8px;
  border: none;
  border-radius: 50%;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: none;
}

.auth-btn:hover {
  transform: translateY(-1px);
  background: transparent !important;
  box-shadow: none;
  color: #6b5d00 !important; /* Darker on hover */
}

/* 面性icon效果 - 悬停和激活状态 */
.auth-btn svg {
  transition: all 0.3s ease;
}

.auth-btn:hover svg,
.auth-btn.active svg {
  fill: #d4af37;
  stroke: #d4af37;
}

/* Dashboard Styles */
.dashboard-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 40px;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
}

.dashboard-sidebar {
  width: 240px;
  padding-top: 20px;
}

.dashboard-sidebar-section {
  margin-bottom: 32px;
}

.dashboard-sidebar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-left: 12px;
}

.dashboard-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  cursor: pointer;
}

.dashboard-sidebar-item:hover {
  background: rgba(255, 231, 123, 0.1);
  color: var(--text-primary);
}

.dashboard-sidebar-item.active {
  background: linear-gradient(
    135deg,
    rgba(255, 231, 123, 0.15),
    rgba(255, 215, 0, 0.15)
  );
  color: #6b5d00;
  font-weight: 500;
}

.dashboard-sidebar-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.dashboard-main-content {
  flex: 1;
  padding: 20px 0 40px;
}

.content-header {
  margin-bottom: 32px;
}

.content-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.content-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.content-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--micro-shadow);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.info-grid {
  display: grid;
  gap: 24px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 120px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.connected {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-green);
}

.edit-btn {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 231, 123, 0.2),
    rgba(255, 215, 0, 0.2)
  );
  border-color: #ffe77b;
  color: #6b5d00;
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

/* Avatar styles */
.avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 24px;
  position: relative;
}

.edit-avatar-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clean-white);
  border: 2px solid var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-avatar-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffe77b, #ffd700);
}

.edit-avatar-btn i {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Avatar gradients */
.avatar-gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.avatar-gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.avatar-gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.avatar-gradient-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.avatar-gradient-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.edit-input {
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  width: 200px;
  display: none;
}

.edit-input:focus {
  outline: none;
  border-color: #ffe77b;
}

.save-btn,
.cancel-btn {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
  margin-left: 8px;
}

.save-btn {
  background: linear-gradient(135deg, #ffe77b, #ffd700);
  border: none;
  color: #6b5d00;
  font-weight: 500;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.danger-zone {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.signout-btn {
  color: var(--text-light);
  font-size: 13px;
  text-decoration: none;
  opacity: 0.6;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signout-btn:hover {
  opacity: 1;
  color: var(--danger-red);
}

/* Usage Stats Styles */
.usage-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.usage-stat-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ffe77b, #ffd700);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b5d00;
  font-size: 20px;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-limit {
  font-size: 12px;
  color: var(--text-light);
}

.stat-progress {
  margin-top: 12px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--light-silver);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #ffe77b, #ffd700);
  transition: width 0.3s ease;
}

.chart-container {
  margin-top: 24px;
}

.usage-chart {
  width: 100%;
  height: 250px;
}

/* Subscription Styles */
.current-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.plan-info .plan-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.plan-price {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.plan-billing {
  font-size: 14px;
  color: var(--text-light);
}

.plan-actions {
  display: flex;
  gap: 12px;
}

.btn-secondary,
.btn-danger,
.btn-primary {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-secondary {
  background: var(--light-silver);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 231, 123, 0.2),
    rgba(255, 215, 0, 0.2)
  );
  color: #6b5d00;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-red);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #ffe77b, #ffd700);
  color: #6b5d00;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-check {
  color: var(--success-green);
  font-size: 16px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.plan-current {
  border-color: #ffe77b;
  background: linear-gradient(
    135deg,
    rgba(255, 231, 123, 0.1),
    rgba(255, 215, 0, 0.1)
  );
}

.plan-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #ffe77b, #ffd700);
  color: #6b5d00;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.plan-features li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: 600;
}

.plan-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #ffd700;
  background: white;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plan-btn:hover {
  background: #ffd700;
  color: #6b5d00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.plan-btn:disabled {
  background: var(--light-silver);
  color: var(--text-light);
  cursor: not-allowed;
  border-color: var(--light-silver);
  transform: none;
  box-shadow: none;
}

.plan-btn:disabled:hover {
  background: var(--light-silver);
  color: var(--text-light);
  transform: none;
  box-shadow: none;
}

/* Payment Methods Styles */
.payment-methods {
  margin-top: 24px;
}

.payment-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.payment-icon {
  width: 48px;
  height: 48px;
  background: var(--light-silver);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-secondary);
}

.payment-info {
  flex: 1;
}

.payment-type {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.payment-details {
  font-size: 14px;
  color: var(--text-secondary);
}

.payment-actions {
  display: flex;
  gap: 8px;
}

.add-payment-method {
  margin-top: 16px;
}

.billing-address {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
}

.address-info {
  flex: 1;
}

.address-line {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Invoices Styles */
.invoices-table {
  margin-top: 24px;
}

.invoice-header {
  display: grid;
  grid-template-columns: 120px 100px 100px 140px 120px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid var(--border-light);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.invoice-row {
  display: grid;
  grid-template-columns: 120px 100px 100px 140px 120px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.invoice-row:hover {
  background: rgba(255, 231, 123, 0.05);
}

.invoice-col {
  display: flex;
  align-items: center;
}

.status-badge.paid {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-green);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    gap: 20px;
  }

  .dashboard-sidebar {
    width: 100%;
  }

  .nav-links {
    gap: 40px;
  }
}
