:root {
  --bg-primary: #080b12;
  --bg-secondary: rgba(255,215,0,0.04);
  --bg-card: rgba(255,255,255,0.04);
  --text-primary: #f0f4ff;
  --text-muted: rgba(240,244,255,0.55);
  --accent-gold: linear-gradient(135deg, #ffd700 0%, #ffed4a 60%, #ffe066 100%);
  --gold-solid: #ffd700;
  --glass: rgba(255,255,255,0.05);
  --glass-hover: rgba(255,255,255,0.09);
  --gold-border: 1px solid rgba(255,215,0,0.18);
  --gold-border-strong: 1px solid rgba(255,215,0,0.45);
  --success: #4ade80;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-gold: 0 8px 32px rgba(255,215,0,0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg-primary: #f5f3ee;
  --bg-secondary: rgba(255,200,0,0.06);
  --bg-card: rgba(255,255,255,0.85);
  --text-primary: #1a1a2e;
  --text-muted: rgba(26,26,46,0.55);
  --glass: rgba(255,255,255,0.75);
  --glass-hover: rgba(255,255,255,0.92);
  --gold-border: 1px solid rgba(200,160,0,0.22);
  --gold-border-strong: 1px solid rgba(200,160,0,0.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.1);
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(255,215,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(255,215,0,0.04) 0%, transparent 50%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,215,0,0.6); }

.header {
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: var(--gold-border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
[data-theme="light"] .header { background: rgba(245,243,238,0.88); }

.container { max-width: 1420px; margin: 0 auto; padding: 0 1.5rem; }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  background: var(--accent-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo .crown { font-size: 0.65em; opacity: 0.9; }

.user-info { display: flex; align-items: center; gap: 0.85rem; }

.avatar {
  width: clamp(36px, 7vw, 44px);
  height: clamp(36px, 7vw, 44px);
  border-radius: 50%;
  background: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #000;
  cursor: pointer; transition: var(--transition);
  border: 2px solid rgba(255,215,0,0.4);
  overflow: hidden; flex-shrink: 0;
}
.avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(255,215,0,0.3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px);
  border: var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.glass-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255,215,0,0.04), transparent 70%);
  pointer-events: none;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,215,0,0.32);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.card-title {
  font-size: 1.05rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.25rem; letter-spacing: -0.01em;
}
.card-title i { color: var(--gold-solid); font-size: 0.95em; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-colab { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stat-card {
  background: var(--glass);
  border: var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-gold); }

.stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255,215,0,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.1rem; color: var(--gold-solid);
}
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  background: var(--accent-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1; margin-bottom: 0.35rem; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.stat-trend { font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; display: flex; align-items: center; gap: 0.3rem; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0.7rem 1.3rem; border: none;
  border-radius: 50px; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; font-family: inherit; letter-spacing: 0.01em;
}
.btn-gold { background: var(--accent-gold); color: #000; }
.btn-gold:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(255,215,0,0.4); }
.btn-ghost { background: transparent; color: var(--text-primary); border: var(--gold-border); }
.btn-ghost:hover { background: rgba(255,215,0,0.08); border-color: rgba(255,215,0,0.4); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

.form-control {
  width: 100%; padding: 0.85rem 1.1rem;
  border: var(--gold-border); border-radius: var(--radius-md);
  background: transparent; color: var(--text-primary);
  font-size: 0.95rem; font-family: inherit;
  transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: rgba(255,215,0,0.55);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
  background: rgba(255,215,0,0.03);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: #1a1a2e; color: #fff; }
textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.6; }

.ai-output {
  margin-top: 1.25rem; padding: 1.5rem;
  background: rgba(255,215,0,0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold-solid);
  white-space: pre-wrap; line-height: 1.75;
  font-size: 0.95rem;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.controls-row {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-bottom: 1.25rem; align-items: center;
}

.posts-container {
  max-height: 480px; overflow-y: auto;
  padding: 0.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.post-item {
  background: var(--glass); border: var(--gold-border);
  padding: 1.25rem 1.5rem; border-radius: var(--radius-md);
  cursor: grab;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: var(--transition); position: relative;
}
.post-item:active { cursor: grabbing; }
.post-item:hover { background: var(--glass-hover); border-color: rgba(255,215,0,0.3); box-shadow: 0 4px 20px rgba(255,215,0,0.1); }
.post-item.draft { border-left: 3px solid var(--warning); }
.post-item.scheduled { border-left: 3px solid var(--info); }
.post-item.published { border-left: 3px solid var(--success); }
.post-item.dragging { opacity: 0.45; transform: scale(0.98); }
.post-body { flex: 1; min-width: 0; }
.post-text {
  font-size: 0.92rem; line-height: 1.55; margin-bottom: 0.6rem;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.7rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-draft { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-scheduled { background: rgba(59,130,246,0.15); color: var(--info); }
.badge-published { background: rgba(74,222,128,0.15); color: var(--success); }
.post-actions { display: flex; gap: 0.4rem; opacity: 0; transition: opacity 0.2s; flex-shrink: 0; }
.post-item:hover .post-actions { opacity: 1; }

.summary-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,215,0,0.06);
  border-radius: var(--radius-md);
  border: var(--gold-border);
  margin-top: 1.25rem;
}
.summary-stat { text-align: center; }
.summary-stat .num { font-weight: 700; font-size: 1.4rem; color: var(--gold-solid); }
.summary-stat .lbl { font-size: 0.75rem; color: var(--text-muted); }

.colab-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--glass); border: var(--gold-border);
  border-radius: var(--radius-md); transition: var(--transition);
}
.colab-item:hover { background: var(--glass-hover); }
.colab-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.colab-info { flex: 1; min-width: 0; }
.colab-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.colab-sub { font-size: 0.8rem; color: var(--text-muted); }
.colab-amount { font-weight: 700; color: var(--gold-solid); font-size: 1rem; }

.profile-photo-wrap { position: relative; width: 160px; flex-shrink: 0; }
.profile-photo-wrap img {
  width: 160px; height: 160px; border-radius: var(--radius-lg);
  object-fit: cover; border: var(--gold-border-strong); display: block;
}
.photo-btn {
  position: absolute; bottom: 8px; right: 8px;
  background: var(--accent-gold); color: #000; border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.photo-btn:hover { transform: scale(1.1); }
.profile-fields { flex: 1; display: flex; flex-direction: column; gap: 0.85rem; }
.profile-layout { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }

.notif-stack {
  position: fixed; top: 80px; right: 20px;
  display: flex; flex-direction: column; gap: 0.75rem;
  z-index: 9999; pointer-events: none; max-width: 340px;
}
.notif {
  padding: 1rem 1.25rem 1rem 1rem; border-radius: var(--radius-md);
  color: #fff; font-weight: 500; font-size: 0.88rem;
  display: flex; align-items: center; gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: auto; backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); line-height: 1.4;
}
.notif.show { transform: translateX(0); }
.notif.hide { transform: translateX(120%); }
.notif-success { background: linear-gradient(135deg, rgba(74,222,128,0.9), rgba(34,197,94,0.85)); }
.notif-error { background: linear-gradient(135deg, rgba(239,68,68,0.9), rgba(220,38,38,0.85)); }
.notif-info { background: linear-gradient(135deg, rgba(59,130,246,0.9), rgba(29,78,216,0.85)); }
.notif-warning { background: linear-gradient(135deg, rgba(245,158,11,0.9), rgba(217,119,6,0.85)); }
.notif-icon { font-size: 1.1em; flex-shrink: 0; }

.loading-overlay {
  position: absolute; inset: 0;
  background: rgba(8,11,18,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit; opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 10;
}
.glass-card.is-loading .loading-overlay { opacity: 1; pointer-events: all; }
.spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top: 3px solid var(--gold-solid);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.theme-toggle {
  background: transparent; border: var(--gold-border);
  color: var(--text-primary); width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.theme-toggle:hover { background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.4); }

canvas { display: block; max-width: 100%; }
.section { padding: 0 0 0.5rem 0; }

.nicho-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.nicho-chip {
  padding: 0.45rem 1rem; border-radius: 50px; border: var(--gold-border);
  background: transparent; color: var(--text-muted);
  font-size: 0.82rem; font-family: inherit; cursor: pointer; transition: var(--transition);
}
.nicho-chip:hover { border-color: rgba(255,215,0,0.4); color: var(--text-primary); }
.nicho-chip.active { background: rgba(255,215,0,0.12); border-color: var(--gold-solid); color: var(--gold-solid); font-weight: 600; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.55rem 1.1rem; border-radius: 50px; border: var(--gold-border);
  background: transparent; color: var(--text-muted);
  font-size: 0.85rem; font-family: inherit; cursor: pointer; transition: var(--transition); font-weight: 500;
}
.tab-btn:hover { background: rgba(255,215,0,0.06); color: var(--text-primary); }
.tab-btn.active { background: rgba(255,215,0,0.12); border-color: rgba(255,215,0,0.5); color: var(--gold-solid); font-weight: 600; }

.search-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.1rem; border: var(--gold-border);
  border-radius: 50px; background: var(--glass); transition: var(--transition);
}
.search-bar:focus-within { border-color: rgba(255,215,0,0.45); background: var(--glass-hover); }
.search-bar input { background: transparent; border: none; outline: none; color: var(--text-primary); font-family: inherit; font-size: 0.9rem; flex: 1; }
.search-bar i { color: var(--text-muted); }

.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; display: block; }
.empty-state p { font-size: 0.95rem; }
.drag-over { background: rgba(255,215,0,0.08) !important; border-color: rgba(255,215,0,0.5) !important; }

.streak-widget {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(255,215,0,0.02) 100%);
  border: var(--gold-border-strong);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  margin-bottom: 1.75rem;
}
.streak-widget::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.streak-flame {
  font-size: 3rem; line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255,165,0,0.7));
  animation: flamePulse 2s ease-in-out infinite;
}
@keyframes flamePulse { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.1) rotate(3deg); } }
.streak-info { flex: 1; }
.streak-number {
  font-size: 3rem; font-weight: 700; line-height: 1;
  background: var(--accent-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.streak-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-top: 0.15rem; }
.streak-best { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }
.streak-best span { color: var(--gold-solid); font-weight: 600; }
.streak-days { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.streak-day {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600;
  border: 1px solid rgba(255,215,0,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  transition: var(--transition);
}
.streak-day.active {
  background: rgba(255,215,0,0.18);
  border-color: var(--gold-solid);
  color: var(--gold-solid);
  box-shadow: 0 0 8px rgba(255,215,0,0.3);
}
.streak-day.today {
  background: var(--accent-gold);
  color: #000; font-weight: 700;
  box-shadow: 0 0 14px rgba(255,215,0,0.5);
}

.analytics-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.metric-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 0.75rem; align-items: end;
  padding: 1.25rem;
  background: rgba(255,215,0,0.04);
  border-radius: var(--radius-md);
  border: var(--gold-border);
  margin-bottom: 1.25rem;
}
.metric-form label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 0.35rem; }
.metric-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--glass); border: var(--gold-border);
  border-radius: var(--radius-md); transition: var(--transition);
}
.metric-row:hover { background: var(--glass-hover); }
.metric-platform { font-weight: 600; font-size: 0.9rem; min-width: 100px; }
.metric-stat { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.metric-stat .val { font-weight: 700; color: var(--gold-solid); font-size: 1.05rem; }
.metric-stat .lbl { font-size: 0.72rem; color: var(--text-muted); }
.metric-badge {
  padding: 0.25rem 0.75rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(74,222,128,0.12); color: var(--success);
}
.top-pill {
  padding: 0.2rem 0.65rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
  background: linear-gradient(135deg,rgba(255,215,0,0.25),rgba(255,215,0,0.1));
  color: var(--gold-solid); border: var(--gold-border);
  white-space: nowrap;
}
.perf-chart { display: flex; align-items: flex-end; gap: 4px; height: 50px; }
.perf-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(255,215,0,0.3), rgba(255,215,0,0.7));
  transition: height 0.5s ease;
  min-width: 8px;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem; margin-top: 1.25rem;
}
.insight-card {
  padding: 1rem 1.2rem;
  background: rgba(255,215,0,0.05);
  border: var(--gold-border);
  border-radius: var(--radius-md);
  text-align: center;
}
.insight-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.insight-card .val { font-weight: 700; font-size: 1.1rem; color: var(--gold-solid); }
.insight-card .desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  max-height: 420px; overflow-y: auto;
}
.idea-card {
  padding: 1.1rem 1.25rem;
  background: var(--glass); border: var(--gold-border);
  border-radius: var(--radius-md); transition: var(--transition);
  cursor: pointer; position: relative;
}
.idea-card:hover { background: var(--glass-hover); border-color: rgba(255,215,0,0.4); transform: translateY(-2px); }
.idea-card.saved { border-color: var(--gold-solid); background: rgba(255,215,0,0.06); }
.idea-card .idea-text { font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.75rem; }
.idea-card .idea-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.idea-save-btn {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: transparent; border: var(--gold-border);
  color: var(--text-muted); width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.idea-save-btn:hover, .idea-card.saved .idea-save-btn {
  background: rgba(255,215,0,0.15); border-color: var(--gold-solid); color: var(--gold-solid);
}
.saved-ideas-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.saved-idea-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--glass); border: var(--gold-border);
  border-radius: var(--radius-sm);
}
.saved-idea-item .idea-txt { flex: 1; font-size: 0.85rem; line-height: 1.4; }
.saved-idea-item .use-btn {
  background: rgba(255,215,0,0.1); border: var(--gold-border);
  color: var(--gold-solid); border-radius: 50px;
  padding: 0.3rem 0.8rem; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.saved-idea-item .use-btn:hover { background: rgba(255,215,0,0.2); }

.checklist-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,11,18,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.checklist-modal.open { opacity: 1; pointer-events: all; }
.checklist-panel {
  background: #0d1320; border: var(--gold-border-strong);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), var(--shadow-gold);
  transform: translateY(20px); transition: transform 0.3s;
}
.checklist-modal.open .checklist-panel { transform: translateY(0); }
.checklist-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.checklist-title { font-weight: 700; font-size: 1.05rem; }
.checklist-progress {
  background: rgba(255,255,255,0.08); border-radius: 99px;
  height: 6px; margin-bottom: 1.5rem; overflow: hidden;
}
.checklist-bar { height: 100%; border-radius: 99px; background: var(--accent-gold); transition: width 0.4s ease; }
.checklist-steps { display: flex; flex-direction: column; gap: 0.6rem; }
.checklist-step {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: var(--transition);
}
.checklist-step:hover { background: rgba(255,255,255,0.04); }
.checklist-step.done { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.05); }
.step-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0; transition: var(--transition);
}
.checklist-step.done .step-check {
  background: var(--success); border-color: var(--success); color: #000;
}
.step-icon { font-size: 1.1rem; }
.step-info { flex: 1; }
.step-name { font-weight: 600; font-size: 0.9rem; }
.step-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }
.checklist-footer { margin-top: 1.5rem; display: flex; gap: 0.75rem; }

.mediakit-preview {
  background: linear-gradient(135deg, #0d1320 0%, #111827 100%);
  border: var(--gold-border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.25rem;
  position: relative; overflow: hidden;
}
.mediakit-preview::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.07), transparent 70%);
}
.mediakit-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: var(--gold-border);
}
.mediakit-avatar {
  width: 72px; height: 72px; border-radius: var(--radius-md);
  background: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.5rem; color: #000; overflow: hidden;
  border: var(--gold-border-strong); flex-shrink: 0;
}
.mediakit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mediakit-name { font-size: 1.4rem; font-weight: 700; font-family: var(--font-display); }
.mediakit-nicho { font-size: 0.85rem; color: var(--gold-solid); font-weight: 600; margin-top: 0.2rem; }
.mediakit-bio { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.5; }
.mediakit-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.85rem; margin-bottom: 1.5rem;
}
.mk-stat {
  text-align: center; padding: 1rem;
  background: rgba(255,215,0,0.06); border: var(--gold-border);
  border-radius: var(--radius-md);
}
.mk-stat .val { font-size: 1.5rem; font-weight: 700; color: var(--gold-solid); }
.mk-stat .lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }
.mediakit-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.rate-item {
  padding: 1rem; border-radius: var(--radius-md);
  border: var(--gold-border);
  background: rgba(255,255,255,0.03);
}
.rate-item .type { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.rate-item .price { font-size: 1.3rem; font-weight: 700; color: var(--gold-solid); }
.rate-item .desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }
.mediakit-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: var(--gold-border);
  flex-wrap: wrap; gap: 0.75rem;
}
.mediakit-contact { font-size: 0.85rem; color: var(--text-muted); }
.mediakit-contact span { color: var(--text-primary); font-weight: 500; }
.mk-logo { font-family: var(--font-display); font-size: 1rem; background: var(--accent-gold); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; font-weight: 600; }

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .glass-card { padding: 1.25rem 1rem; }
  .profile-photo-wrap { width: 100%; text-align: center; }
  .profile-photo-wrap img { margin: 0 auto; }
  .profile-layout { flex-direction: column; }
  .post-actions { opacity: 1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .summary-bar { justify-content: center; }
  .header-content { gap: 0.75rem; }
  .metric-form { grid-template-columns: 1fr 1fr; }
  .streak-days { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .metric-form { grid-template-columns: 1fr; }
}

.nicho-selector {
  margin-bottom: 1rem;
}

.nicho-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: var(--gold-border);
  background: var(--glass);
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
}

.nicho-toggle:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 215, 0, 0.35);
}

.nicho-chevron {
  transition: transform 0.28s ease;
}

.nicho-selector.open .nicho-chevron {
  transform: rotate(180deg);
}

.nicho-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.nicho-selector.open .nicho-panel {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.85rem;
}

.nicho-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.nicho-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nicho-chip {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: var(--gold-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.nicho-chip:hover {
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--text-primary);
}

.nicho-chip.active {
  background: rgba(255, 215, 0, 0.12);
  border-color: var(--gold-solid);
  color: var(--gold-solid);
  font-weight: 600;
}

.use-idea-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.4rem;
  background: transparent;
  border: var(--gold-border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
}

.use-idea-btn:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--gold-solid);
}

/* ═══════════════════════════════════════════════
   MODALES (estilo consistente)
═══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg2);
    border: var(--gold-border-hi);
    border-radius: var(--r-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-gold), var(--shadow-deep);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease);
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: var(--gold-border);
}

.modal-title {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 600;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-title i {
    -webkit-text-fill-color: var(--gold);
    font-size: 1.2rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: var(--gold-border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--t);
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-solid);
    color: var(--text);
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: var(--gold-border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Modal específico para métricas */
.modal-metrics .modal-container {
    max-width: 480px;
}

.metrics-form-group {
    margin-bottom: 1.25rem;
}

.metrics-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metrics-form-group input,
.metrics-form-group select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: var(--gold-border);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    transition: var(--t);
    outline: none;
}

.metrics-form-group input:focus,
.metrics-form-group select:focus {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.metrics-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Modal para editar post */
.modal-edit .modal-container {
    max-width: 550px;
}

.edit-post-textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    border: var(--gold-border);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
}

.edit-post-textarea:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Modal de confirmación */
.modal-confirm .modal-container {
    max-width: 400px;
    text-align: center;
}

.confirm-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-solid);
}

.confirm-message {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Modal de ideas guardadas toast (feedback rápido) */
.idea-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg2);
    border: var(--gold-border-hi);
    border-radius: var(--r-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-gold);
    z-index: 2100;
    transform: translateX(120%);
    transition: transform 0.3s var(--ease);
}

.idea-toast.show {
    transform: translateX(0);
}

.idea-toast i {
    font-size: 1.2rem;
    color: var(--success);
}

.idea-toast span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Scrollbar dentro de modales */
.modal-container::-webkit-scrollbar {
    width: 4px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 99px;
}

/* Modal Colaboración */
.modal-collab .modal-container {
    max-width: 480px;
}

/* Badge dentro del modal */
#detail-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-paid {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* MODAL DE CONFIRMACIÓN */
.modal-confirm .modal-container {
    max-width: 400px;
    text-align: center;
}

.confirm-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-solid);
}

.confirm-message {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.02);
}