/* ═══════════════════════════════════════════
   CLARIX — PROFILE PAGE CSS
═══════════════════════════════════════════ */

.profile-page { padding: 40px 0 80px; }

/* Hero */
.profile-hero {
  display: flex; align-items: center; gap: 24px;
  padding: 36px; margin-bottom: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9800);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 28px; font-weight: 900; color: #fff;
  box-shadow: 0 6px 24px rgba(255,112,67,0.35); flex-shrink: 0;
  animation: glowPulse 3s ease-in-out infinite;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-greeting { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 500; margin-bottom: 4px; }
.profile-name {
  font-family: var(--font-head); font-size: 26px; font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.profile-name-edit { display: flex; gap: 8px; align-items: center; }
.username-input {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md); padding: 8px 14px; color: #fff;
  font-size: 14px; font-family: var(--font-body); width: 200px;
  transition: border-color var(--t-fast);
}
.username-input:focus { border-color: rgba(255,112,67,0.5); outline: none; }
.username-input::placeholder { color: rgba(255,255,255,0.35); }

/* Stats Grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 24px;
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg); padding: 22px 18px; text-align: center;
  transition: all var(--t-mid);
}
.stat-card:hover { border-color: rgba(255,112,67,0.25); }
.stat-card-num {
  font-family: var(--font-head); font-size: 36px; font-weight: 900;
  color: var(--accent); line-height: 1; margin-bottom: 6px;
}
.stat-card-label { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 500; }

/* Usage Bar */
.usage-bar-section {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 24px;
}
.usage-bar-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.usage-bar-label { font-size: 13px; font-weight: 600; color: #fff; }
.usage-bar-count { font-size: 13px; color: var(--accent); font-weight: 700; }
.usage-bar-track {
  width: 100%; height: 8px; background: rgba(255,255,255,0.06);
  border-radius: var(--r-full); overflow: hidden;
}
.usage-bar-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent), #ff9800);
  transition: width 0.8s var(--ease);
}
.usage-bar-sub { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* Pro Upgrade Card */
.pro-upgrade-card {
  background: linear-gradient(135deg, rgba(255,112,67,0.08) 0%, rgba(255,152,0,0.05) 100%);
  border: 1px solid rgba(255,112,67,0.25);
  border-radius: var(--r-xl); padding: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
  box-shadow: 0 0 40px rgba(255,112,67,0.08);
}
.pro-card-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.pro-card-sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.pro-card-price { font-size: 14px; color: var(--accent); font-weight: 700; }
.pro-card-price span { color: rgba(255,255,255,0.6); font-weight: 400; }

/* Pro Active Card */
.pro-active-card {
  background: linear-gradient(135deg, rgba(255,200,67,0.08), rgba(255,112,67,0.06));
  border: 1px solid rgba(255,200,67,0.25);
  border-radius: var(--r-xl); padding: 32px; text-align: center; margin-bottom: 24px;
}
.pro-active-icon {
  font-size: 40px; color: #ffc843; margin-bottom: 12px;
  animation: glowPulse 2s ease-in-out infinite;
}
.pro-active-title {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  color: #ffc843; margin-bottom: 8px;
}
.pro-active-sub { font-size: 14px; color: rgba(255,255,255,0.75); }

/* Saved prompts */
.saved-section { margin-bottom: 32px; }
.saved-item {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 8px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; cursor: pointer; transition: all var(--t-fast);
}
.saved-item:hover { border-color: rgba(255,112,67,0.2); background: rgba(255,112,67,0.03); }
.saved-item-text {
  font-size: 13px; color: #fff; line-height: 1.5; flex: 1;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.saved-item-time { font-size: 11px; color: rgba(255,255,255,0.6); flex-shrink: 0; margin-top: 2px; }
.saved-empty { text-align: center; padding: 32px; color: rgba(255,255,255,0.6); font-size: 13px; }

/* Quick links */
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-link-btn {
  padding: 10px 20px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all var(--t-fast); text-decoration: none;
}
.quick-link-btn:hover { color: var(--accent); border-color: rgba(255,112,67,0.3); background: rgba(255,112,67,0.06); }

/* ─── ANALYTICS SECTION ──────────────────────── */
.analytics-section { margin-bottom: 32px; }
.analytics-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.analytics-sub { font-size: 12px; color: rgba(255,255,255,0.7); }

.chart-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.chart-title {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.chart-wrap {
  position: relative; width: 100%; height: 180px;
}
.chart-canvas {
  width: 100% !important; height: 100% !important;
  border-radius: 8px;
}
.chart-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.5;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .charts-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Pro badge */
.pro-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, rgba(255,200,67,0.15), rgba(255,112,67,0.1));
  border: 1px solid rgba(255,200,67,0.4);
  color: #ffc843; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--r-full);
  letter-spacing: 0.04em;
}
