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

:root {
  --brand: #00aff0;
  --brand-dark: #0090cc;
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #22263a;
  --border: #2a2f45;
  --text: #e8eaf0;
  --text2: #8892b0;
  --text3: #4a5278;
  --success: #23d18b;
  --danger: #e05555;
  --warning: #f5a623;
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 240px;
  --right-w: 280px;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* SCREENS */
.screen { display: none; }
.screen.active { display: flex; }

/* ─── AUTH ─────────────────────────────────────── */
#auth-screen { min-height: 100vh; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 60% 40%, #0a2a4a 0%, var(--bg) 70%); }

.auth-container { width: 100%; max-width: 420px; padding: 40px 32px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5); }

.auth-brand { text-align: center; margin-bottom: 32px; }
.brand-logo { width: 56px; height: 56px; background: var(--brand);
  border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 12px; }
.brand-logo.small { width: 36px; height: 36px; font-size: 13px; border-radius: 9px; flex-shrink: 0; }
.brand-name { font-size: 26px; font-weight: 700; color: var(--text); }
.brand-tagline { font-size: 14px; color: var(--text2); margin-top: 4px; }

.auth-tabs { display: flex; background: var(--bg3); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: transparent; color: var(--text2);
  border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all .2s; }
.auth-tab.active { background: var(--brand); color: #fff; }

.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }

input, textarea, select {
  width: 100%; padding: 12px 16px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--text3); }

.btn-primary { padding: 12px 20px; background: var(--brand); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s; width: 100%; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary.small { padding: 8px 16px; font-size: 13px; width: auto; }

.btn-secondary { padding: 12px 20px; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all .2s; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-secondary.small { padding: 8px 14px; font-size: 13px; }

.auth-divider { text-align: center; color: var(--text3); font-size: 13px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

.btn-social { padding: 12px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px; cursor: pointer;
  transition: all .2s; width: 100%; }
.btn-social:hover { border-color: var(--brand); }

.account-type-select { display: flex; flex-direction: column; gap: 8px; }
.account-type-select label { font-size: 13px; color: var(--text2); }
.type-btns { display: flex; gap: 8px; }
.type-btn { flex: 1; padding: 10px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text2); cursor: pointer; font-size: 14px; transition: all .2s; }
.type-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ─── APP LAYOUT ───────────────────────────────── */
#app-screen { min-height: 100vh; }

.sidebar { width: var(--sidebar-w); height: 100vh; position: fixed; left: 0; top: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 100; }

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; }
.brand-name-small { font-weight: 700; font-size: 18px; color: var(--brand); }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); color: var(--text2); cursor: pointer;
  text-decoration: none; font-size: 15px; font-weight: 500; transition: all .2s; position: relative; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(0,175,240,.1); color: var(--brand); }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }

.badge { background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 20px; margin-left: auto; }

.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; }
.user-card { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm); transition: background .2s; }
.user-card:hover { background: var(--bg3); }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-handle { font-size: 12px; color: var(--text2); }
.logout-btn { width: 36px; height: 36px; background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text2); flex-shrink: 0; transition: all .2s; }
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }
.logout-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.main-content { margin-left: var(--sidebar-w); margin-right: var(--right-w);
  min-height: 100vh; padding: 24px; max-width: 680px; }

.right-panel { width: var(--right-w); height: 100vh; position: fixed; right: 0; top: 0;
  background: var(--bg2); border-left: 1px solid var(--border); padding: 24px 20px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }

/* ─── VIEWS ─────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

.view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.view-header h2 { font-size: 22px; font-weight: 700; }

.feed-tabs { display: flex; gap: 4px; background: var(--bg3); padding: 4px; border-radius: var(--radius-sm); }
.feed-tab { padding: 8px 18px; border: none; background: transparent; color: var(--text2);
  border-radius: 6px; cursor: pointer; font-size: 14px; transition: all .2s; }
.feed-tab.active { background: var(--brand); color: #fff; }

/* ─── CREATE POST BAR ──────────────────────────── */
.create-post-bar { display: flex; align-items: center; gap: 12px; padding: 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; margin-bottom: 20px; transition: border-color .2s; }
.create-post-bar:hover { border-color: var(--brand); }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.post-placeholder { flex: 1; font-size: 14px; color: var(--text3); }
.btn-post { padding: 8px 18px; background: var(--brand); color: #fff; border: none;
  border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ─── POSTS ─────────────────────────────────────── */
.posts-list { display: flex; flex-direction: column; gap: 20px; }

.post-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-header { display: flex; align-items: center; gap: 12px; padding: 16px; }
.post-creator-avatar { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.post-creator-info { flex: 1; cursor: pointer; }
.post-creator-name { font-weight: 600; font-size: 15px; }
.post-creator-handle { font-size: 13px; color: var(--text2); }
.post-time { font-size: 12px; color: var(--text3); }
.post-menu { width: 32px; height: 32px; background: transparent; border: none; cursor: pointer;
  color: var(--text2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }

.post-media { width: 100%; aspect-ratio: 4/3; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media.locked { filter: blur(2px); }
.locked-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.locked-overlay .lock-icon { font-size: 36px; }
.locked-overlay p { font-size: 14px; color: var(--text2); }
.locked-overlay button { padding: 10px 24px; background: var(--brand); color: #fff;
  border: none; border-radius: 20px; font-weight: 600; cursor: pointer; }

.post-body { padding: 16px; }
.post-caption { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.post-tag { font-size: 13px; color: var(--brand); cursor: pointer; }
.post-tag:hover { text-decoration: underline; }

.post-actions { display: flex; align-items: center; gap: 20px; padding: 12px 16px;
  border-top: 1px solid var(--border); }
.post-action { display: flex; align-items: center; gap: 6px; background: transparent; border: none;
  color: var(--text2); cursor: pointer; font-size: 14px; transition: color .2s; padding: 4px; }
.post-action:hover { color: var(--brand); }
.post-action.liked { color: var(--danger); }
.post-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.post-action.liked svg { fill: var(--danger); stroke: var(--danger); }
.post-action-sep { margin-left: auto; }

.ppv-badge { padding: 4px 10px; background: rgba(245,166,35,.1); border: 1px solid var(--warning);
  color: var(--warning); border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ─── EXPLORE ──────────────────────────────────── */
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; width: 300px; }
.search-bar svg { width: 18px; height: 18px; fill: none; stroke: var(--text2); stroke-width: 2; flex-shrink: 0; }
.search-bar input { background: transparent; border: none; font-size: 14px; width: 100%; color: var(--text); }

.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cat-btn { padding: 8px 18px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text2); cursor: pointer; font-size: 13px; font-weight: 500; transition: all .2s; }
.cat-btn.active, .cat-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.creators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.creator-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all .2s; }
.creator-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.creator-card-banner { height: 80px; position: relative; }
.creator-card-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--bg2);
  position: absolute; bottom: -20px; left: 16px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 22px; }
.creator-card-body { padding: 28px 16px 16px; }
.creator-card-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.creator-card-handle { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.creator-card-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text2); margin-bottom: 12px; }
.creator-card-tag { font-size: 11px; padding: 3px 8px; background: rgba(0,175,240,.1);
  color: var(--brand); border-radius: 20px; display: inline-block; margin-bottom: 12px; }
.creator-card button { width: 100%; }

/* ─── SUBSCRIPTIONS ────────────────────────────── */
.subscriptions-list { display: flex; flex-direction: column; gap: 12px; }
.sub-item { display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color .2s; }
.sub-item:hover { border-color: var(--brand); }
.sub-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.sub-info { flex: 1; }
.sub-name { font-weight: 600; font-size: 15px; }
.sub-handle { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.sub-tier { font-size: 12px; color: var(--brand); }
.sub-price { font-weight: 600; font-size: 16px; color: var(--success); }
.sub-renewal { font-size: 12px; color: var(--text3); }
.sub-actions { display: flex; gap: 8px; }

/* ─── MESSAGES ─────────────────────────────────── */
.messages-layout { display: flex; gap: 0; height: calc(100vh - 48px); }
.conversations-panel { width: 300px; border: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg2); display: flex; flex-direction: column; flex-shrink: 0; }
.chat-panel { flex: 1; border: 1px solid var(--border); border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg2); display: flex; flex-direction: column; }
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-header h3 { font-size: 16px; font-weight: 600; }
.conversations-list { overflow-y: auto; flex: 1; }

.conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; transition: background .2s; border-bottom: 1px solid var(--border); }
.conv-item:hover, .conv-item.active { background: var(--bg3); }
.conv-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 14px; }
.conv-preview { font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.conv-time { font-size: 11px; color: var(--text3); }
.conv-unread { width: 18px; height: 18px; background: var(--brand); border-radius: 50%;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text3); }
.chat-empty svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; }
.chat-header .conv-avatar { width: 38px; height: 38px; font-size: 14px; }
.chat-input-row { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input-row input { flex: 1; }
.chat-input-row button { padding: 12px 20px; background: var(--brand); border: none; border-radius: var(--radius-sm);
  color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }

.chat-bubble { max-width: 70%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-bubble.sent { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.received { background: var(--bg3); border-bottom-left-radius: 4px; }

/* ─── NOTIFICATIONS ────────────────────────────── */
.notifications-list { display: flex; flex-direction: column; gap: 4px; }
.notif-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .2s; }
.notif-item:hover { border-color: var(--brand); }
.notif-item.unread { border-left: 3px solid var(--brand); }
.notif-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 16px; margin-left: -10px; margin-bottom: -10px; align-self: flex-end; flex-shrink: 0; }
.notif-text { flex: 1; font-size: 14px; line-height: 1.5; }
.notif-text strong { color: var(--text); }
.notif-time { font-size: 12px; color: var(--text3); flex-shrink: 0; }

/* ─── DASHBOARD ────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.stat-change { font-size: 12px; color: var(--text3); }
.stat-change.positive { color: var(--success); }

.dashboard-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.dashboard-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.dashboard-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

.tiers-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tier-item { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg3); border-radius: var(--radius-sm); }
.tier-name { font-weight: 600; font-size: 14px; }
.tier-price-tag { font-size: 14px; color: var(--success); font-weight: 600; }
.tier-subs { font-size: 12px; color: var(--text2); }

.earnings-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 8px 0; }
.chart-bar { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; opacity: .7; min-height: 4px;
  transition: opacity .2s; cursor: pointer; position: relative; }
.chart-bar:hover { opacity: 1; }
.chart-bar::after { content: attr(data-label); position: absolute; bottom: -20px; left: 50%;
  transform: translateX(-50%); font-size: 10px; color: var(--text3); white-space: nowrap; }

.creator-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.creator-post-thumb { aspect-ratio: 1; background: var(--bg3); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; position: relative; }
.creator-post-thumb:hover .thumb-overlay { opacity: 1; }
.thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity .2s; font-size: 13px; color: #fff; }
.thumb-overlay span { display: flex; align-items: center; gap: 4px; }
.creator-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.locked-thumb { position: absolute; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* ─── PROFILE ──────────────────────────────────── */
.profile-banner { height: 200px; background: linear-gradient(135deg, #0a2a4a, #1a0a4a);
  position: relative; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.profile-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.edit-banner-btn { position: absolute; bottom: 12px; right: 12px; padding: 8px 16px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm);
  color: #fff; cursor: pointer; font-size: 13px; backdrop-filter: blur(4px); }

.profile-info-section { display: flex; gap: 20px; align-items: flex-end; padding: 0 24px 24px;
  background: var(--bg2); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 20px; }
.profile-avatar-wrap { position: relative; margin-top: -40px; flex-shrink: 0; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--bg2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 36px; }
.edit-avatar-btn { position: absolute; bottom: 2px; right: 2px; width: 28px; height: 28px;
  background: var(--brand); border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.edit-avatar-btn svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; }
.profile-details { flex: 1; padding-top: 12px; }
.profile-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.profile-name-row h2 { font-size: 22px; font-weight: 700; }
.verified-badge { padding: 3px 10px; background: rgba(0,175,240,.15); color: var(--brand);
  border-radius: 20px; font-size: 12px; font-weight: 600; }
.profile-handle { font-size: 14px; color: var(--text2); margin-bottom: 8px; }
.profile-bio { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.profile-stats { display: flex; gap: 24px; }
.pstat { display: flex; flex-direction: column; gap: 2px; }
.pstat-val { font-size: 18px; font-weight: 700; }
.pstat-label { font-size: 12px; color: var(--text2); }
.profile-actions { display: flex; gap: 10px; flex-shrink: 0; padding-top: 12px; }

.subscription-tiers-section { background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.subscription-tiers-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.profile-tiers { display: flex; gap: 12px; flex-wrap: wrap; }

.tier-card { flex: 1; min-width: 160px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: border-color .2s; }
.tier-card:hover, .tier-card.selected { border-color: var(--brand); }
.tier-card-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.tier-card-price { font-size: 24px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.tier-card-price span { font-size: 14px; font-weight: 400; color: var(--text2); }
.tier-card-desc { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.tier-card-perks { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.tier-card-perks li { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tier-card-perks li::before { content: '✓'; color: var(--success); font-weight: 700; }
.tier-card button { width: 100%; }

.profile-content { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.content-tabs { display: flex; border-bottom: 1px solid var(--border); }
.content-tab { flex: 1; padding: 14px; border: none; background: transparent; color: var(--text2);
  cursor: pointer; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent;
  transition: all .2s; margin-bottom: -1px; }
.content-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.creator-posts-grid { padding: 16px; }

/* ─── RIGHT PANEL ──────────────────────────────── */
.right-panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.suggested-list { display: flex; flex-direction: column; gap: 12px; }
.suggested-item { display: flex; align-items: center; gap: 10px; }
.sug-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.sug-info { flex: 1; min-width: 0; }
.sug-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-handle { font-size: 12px; color: var(--text2); }
.sug-follow { padding: 6px 14px; background: transparent; border: 1px solid var(--brand);
  border-radius: 20px; color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .2s; flex-shrink: 0; }
.sug-follow:hover, .sug-follow.following { background: var(--brand); color: #fff; }

.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trending-tag { padding: 6px 14px; background: var(--bg3); border-radius: 20px; font-size: 13px;
  color: var(--brand); cursor: pointer; transition: background .2s; }
.trending-tag:hover { background: rgba(0,175,240,.2); }

/* ─── MODALS ─────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 1000;
  display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close { width: 32px; height: 32px; background: transparent; border: none; color: var(--text2);
  cursor: pointer; font-size: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg3); color: var(--text); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px; }

.upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px;
  text-align: center; cursor: pointer; transition: border-color .2s; display: flex;
  flex-direction: column; align-items: center; gap: 8px; }
.upload-area:hover { border-color: var(--brand); }
.upload-area svg { width: 40px; height: 40px; fill: none; stroke: var(--text3); stroke-width: 1.5; }
.upload-area p { font-size: 14px; color: var(--text2); }
.upload-area span { font-size: 12px; color: var(--text3); }

.upload-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg3); position: relative; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-settings { display: flex; flex-direction: column; gap: 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-row label { font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.setting-row select, .setting-row input[type="datetime-local"] { width: auto; flex: 1; }
.price-input { display: flex; align-items: center; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; }
.price-input span { padding: 12px 12px; color: var(--text2); font-size: 14px; border-right: 1px solid var(--border); }
.price-input input { border: none; border-radius: 0; background: transparent; }

.sub-tiers-list { display: flex; flex-direction: column; gap: 10px; }
.sub-tier-option { display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--bg3); border: 2px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .2s; }
.sub-tier-option:hover, .sub-tier-option.selected { border-color: var(--brand); }
.sub-tier-option input[type="radio"] { accent-color: var(--brand); width: 18px; height: 18px; }
.sub-tier-info { flex: 1; }
.sub-tier-name { font-weight: 600; font-size: 15px; }
.sub-tier-desc { font-size: 13px; color: var(--text2); }
.sub-tier-price { font-weight: 700; font-size: 16px; color: var(--success); }

.payment-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.payment-methods { display: flex; align-items: center; gap: 10px; }
.payment-method { display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--brand); border-radius: var(--radius-sm);
  font-size: 14px; }

.perk-row { display: flex; gap: 8px; }
.perk-row button { padding: 10px 16px; background: var(--brand); border: none; border-radius: var(--radius-sm);
  color: #fff; font-size: 18px; cursor: pointer; }

/* ─── TOAST ─────────────────────────────────────── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 24px; font-size: 14px; font-weight: 500; z-index: 9999;
  transition: transform .3s ease; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ─── VISIBILITY ─────────────────────────────────── */
.creator-only, .fan-only { display: none !important; }
body.is-creator .creator-only { display: flex !important; }
body.is-fan .fan-only { display: flex !important; }
.creator-only.block-display { display: block !important; }
body.is-creator .creator-only.block-display { display: block !important; }

/* ─── AVATAR COLORS ──────────────────────────────── */
.color-0 { background: #e05555; } .color-1 { background: #e07855; } .color-2 { background: #d4a017; }
.color-3 { background: #23d18b; } .color-4 { background: #00aff0; } .color-5 { background: #7c55e0; }
.color-6 { background: #e055b0; } .color-7 { background: #55e0d4; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1200px) { .right-panel { display: none; } .main-content { margin-right: 0; } }
@media (max-width: 900px) {
  .sidebar { width: 64px; }
  .sidebar .brand-name-small, .sidebar .nav-item span, .sidebar .user-info { display: none; }
  .main-content { margin-left: 64px; }
  .nav-item { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-sections { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .main-content { padding: 16px; margin-left: 0; padding-bottom: 70px; }
  .sidebar { bottom: 0; top: auto; width: 100%; height: 60px; flex-direction: row; align-items: center;
    border-right: none; border-top: 1px solid var(--border); }
  .sidebar-brand, .sidebar-footer { display: none; }
  .sidebar-nav { flex-direction: row; padding: 0 8px; justify-content: space-around; }
}
