/* Logged-in app shell */
.app-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.app-nav-link {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	padding: 0.45rem 0.65rem;
	border-radius: var(--radius-sm);
}

.app-nav-link:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
}

.app-nav-link.is-active {
	color: var(--gold-light);
	background: rgba(201, 169, 98, 0.1);
}

.app-page {
	padding: 2.5rem 0 4rem;
	min-height: calc(100vh - var(--header-h));
}

.app-hero {
	margin-bottom: 2rem;
	max-width: 640px;
}

.app-eyebrow {
	color: var(--gold);
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 0.5rem;
}

.app-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 500;
	margin: 0 0 0.75rem;
}

.app-lead {
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0;
}

.app-flash {
	max-width: 720px;
	margin-bottom: 1.25rem;
}

.app-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.app-grid { grid-template-columns: repeat(2, 1fr); }
}

.app-panel {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.35rem 1.25rem;
}

.app-panel h2 {
	font-size: 1.05rem;
	margin: 0 0 0.45rem;
}

.app-panel p {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.app-panel-accent {
	border-color: rgba(201, 169, 98, 0.35);
	background: linear-gradient(145deg, rgba(201, 169, 98, 0.08), transparent);
}

.app-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dim);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
}

/* Auth extensions */
.auth-card-wide {
	max-width: 560px;
}

.auth-card-account {
	max-width: 960px;
}

.field-optional {
	color: var(--text-dim);
	font-weight: 400;
}

.field-hint {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: var(--text-dim);
}

.auth-field textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.95rem;
	resize: vertical;
	min-height: 6rem;
}

.auth-field textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.15);
}

/* Signup intent cards */
.intent-fieldset {
	border: 0;
	margin: 0 0 1.35rem;
	padding: 0;
}

.intent-legend {
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.65rem;
	color: var(--text);
}

.intent-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 520px) {
	.intent-grid { grid-template-columns: 1fr 1fr; }
}

.intent-card {
	display: block;
	cursor: pointer;
}

.intent-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.intent-card-body {
	display: block;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 0.9rem;
	transition: border-color 0.15s, background 0.15s;
}

.intent-card input:checked + .intent-card-body {
	border-color: var(--gold);
	background: rgba(201, 169, 98, 0.08);
	box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.25);
}

.intent-card-title {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.intent-card-desc {
	display: block;
	font-size: 0.84rem;
	color: var(--text-muted);
	line-height: 1.4;
}

/* Email verification */
.verify-card {
	text-align: center;
	max-width: 480px;
}

.verify-icon {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	opacity: 0.85;
}

.verify-help {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 1rem 0;
}

.dev-verify-box {
	background: rgba(201, 169, 98, 0.08);
	border: 1px dashed rgba(201, 169, 98, 0.4);
	border-radius: var(--radius-sm);
	padding: 1rem;
	margin: 1rem 0;
	text-align: left;
	font-size: 0.88rem;
	color: var(--text-muted);
}

.dev-verify-box .btn {
	margin-top: 0.65rem;
}

/* Creator onboarding */
.onboard-steps {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.onboard-step {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-dim);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.25rem 0.65rem;
}

.onboard-step.is-active {
	color: var(--gold-light);
	border-color: rgba(201, 169, 98, 0.45);
	background: rgba(201, 169, 98, 0.08);
}

.onboard-step.is-done {
	color: var(--text-muted);
}

.onboard-preview {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
}

.onboard-preview-handle {
	color: var(--gold);
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.onboard-preview-name {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.onboard-preview-bio {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.onboard-status {
	text-align: center;
	padding: 0.5rem 0 1rem;
}

.onboard-status-icon {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

/* Feed shell + sidebar */
.app-page-feed {
	padding-top: 1.5rem;
}

.app-shell {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 960px) {
	.app-shell {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 2rem;
	}

	.app-shell-single {
		grid-template-columns: minmax(0, 1fr);
		max-width: 720px;
	}
}

.app-sidebar {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 0.85rem;
	position: sticky;
	top: calc(var(--header-h) + 1rem);
}

.sidebar-nav,
.sidebar-section {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.sidebar-section {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.sidebar-heading {
	margin: 0 0 0.35rem;
	padding: 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--text-dim);
}

.sidebar-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0.65rem;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
}

.sidebar-link:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.is-active {
	color: var(--gold-light);
	background: rgba(201, 169, 98, 0.1);
}

.sidebar-link-muted {
	opacity: 0.55;
	pointer-events: none;
}

.sidebar-soon {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-dim);
}

.app-main {
	min-width: 0;
}

.feed-header {
	margin-bottom: 1.25rem;
}

.feed-header h1 {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 500;
	margin: 0 0 0.35rem;
}

.feed-header-lead {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.feed-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.feed-post {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.15rem 1.2rem;
}

.feed-post-locked .feed-post-body {
	color: var(--text-muted);
}

.feed-post-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.feed-post-author {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.6rem;
}

.feed-post-handle {
	color: var(--gold);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.92rem;
}

.feed-post-handle:hover {
	text-decoration: underline;
}

.feed-post-name {
	color: var(--text-dim);
	font-size: 0.88rem;
}

.feed-post-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
	flex-shrink: 0;
}

.feed-post-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dim);
}

.feed-post-label-sponsored {
	color: var(--gold);
}

.feed-post-time {
	font-size: 0.78rem;
	color: var(--text-dim);
}

.feed-post-body {
	line-height: 1.55;
	font-size: 0.95rem;
	white-space: normal;
}

.feed-post-footer {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--border);
}

.feed-post-lock {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--gold-light);
	border: 1px solid rgba(201, 169, 98, 0.35);
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
}

.feed-post-engage {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--border);
}

.feed-like-btn,
.feed-tip-btn,
.tip-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text-muted);
	border-radius: 999px;
	padding: 0.3rem 0.65rem;
	font-size: 0.82rem;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.feed-like-btn:hover,
.feed-tip-btn:hover,
.tip-trigger:hover {
	border-color: rgba(201, 169, 98, 0.35);
	color: var(--text);
}

.feed-like-icon::before {
	content: '♡';
	font-size: 1rem;
	line-height: 1;
}

.feed-like-btn.is-liked .feed-like-icon::before {
	content: '♥';
	color: #e54545;
}

.feed-like-btn.is-liked {
	color: #f0a0a0;
	border-color: rgba(229, 69, 69, 0.35);
}

.feed-like-count {
	font-weight: 600;
	min-width: 1ch;
}

.creator-action-hint {
	font-size: 0.78rem;
	color: var(--text-dim);
}

.tip-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.tip-modal[hidden] {
	display: none;
}

.tip-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.tip-modal-card {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.35rem 1.25rem 1.25rem;
}

.tip-modal-card h2 {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
}

.tip-modal-lead {
	margin: 0 0 1rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.tip-modal-close {
	position: absolute;
	top: 0.65rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	color: var(--text-dim);
	font-size: 1.35rem;
	cursor: pointer;
}

.tip-modal-presets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.45rem;
	margin-bottom: 0.85rem;
}

.tip-preset {
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	border-radius: var(--radius-sm);
	padding: 0.45rem 0.25rem;
	cursor: pointer;
}

.tip-preset:hover {
	border-color: var(--gold);
}

.tip-modal-error {
	color: #f0a0a0;
	font-size: 0.85rem;
}

.tip-modal-success {
	color: #8fd4a8;
	font-size: 0.85rem;
}

.tip-modal-note {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	color: var(--text-dim);
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.92rem;
	cursor: pointer;
}

.feed-status {
	text-align: center;
	padding: 1rem 0 0.5rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.feed-error {
	color: #f0a0a0;
}

.feed-sentinel {
	height: 1px;
}

.feed-post-media {
	margin-top: 0.85rem;
}

.feed-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.45rem;
}

.feed-media-grid-locked {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px dashed var(--border);
	border-radius: var(--radius-sm);
	color: var(--text-dim);
	font-size: 0.88rem;
}

.feed-media-image,
.feed-media-video {
	width: 100%;
	border-radius: var(--radius-sm);
	display: block;
	max-height: 420px;
	object-fit: cover;
	background: #111;
}

.feed-media-grid .feed-media-video {
	max-height: 240px;
}

.creator-profile-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--border);
}

.creator-profile-meta {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.creator-avatar {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(201, 169, 98, 0.15);
	border: 1px solid rgba(201, 169, 98, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 1.75rem;
	color: var(--gold);
	flex-shrink: 0;
}

.creator-profile-handle {
	margin: 0 0 0.15rem;
	color: var(--gold);
	font-weight: 600;
}

.creator-profile-header h1 {
	margin: 0 0 0.35rem;
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 500;
}

.creator-profile-bio {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.5;
	max-width: 42rem;
}

.creator-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.inline-form {
	display: inline;
}

.settings-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.35rem 1.25rem;
	max-width: 640px;
}

.settings-card h2 {
	font-size: 1.05rem;
	margin: 0 0 0.35rem;
}

.settings-card h2.settings-divider {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
}

.settings-note {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	color: var(--text-muted);
}

.settings-note a {
	color: var(--gold);
}

