/* =============================================================================
 * OtakusCR · components-extra.css
 *
 * Estilos de todos los componentes de las Fases 2-7:
 *   blog, artículo, tienda, perfil-tienda, foro, calendario,
 *   artista, perfil-usuario, auth.
 * ============================================================================ */

/* ════════════════════════════════════════════════════════════════════════════
 * BLOG · category-bar, featured-article, article-card, sidebar-widgets
 * ════════════════════════════════════════════════════════════════════════════ */

.category-bar {
	padding-block: 16px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.category-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.cat-pill {
	padding: 7px 18px;
	border-radius: var(--radius-pill);
	background: transparent;
	border: 1px solid var(--border);
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
	transition: all var(--dur-base) var(--ease);
}
.cat-pill:hover { color: var(--fg); border-color: var(--fg); }
.cat-pill.active {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--fg);
}

.blog-layout {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 32px;
	padding-block: 40px;
	align-items: start;
}
@media (max-width: 900px) {
	.blog-layout { grid-template-columns: 1fr; }
	.blog-layout .sidebar-widgets { display: none; }
}

/* Featured article */
.featured-article {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 32px;
	transition: border-color var(--dur-base) var(--ease);
}
.featured-article:hover { border-color: var(--accent); }
.featured-img {
	background: linear-gradient(135deg, var(--border), var(--surface));
	display: grid;
	place-items: center;
	min-height: 280px;
	position: relative;
}
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-img svg { width: 48px; height: 48px; color: var(--muted); opacity: 0.4; }
.featured-info { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}
.featured-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); line-height: 1.1; color: var(--fg); }
.featured-meta, .article-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: 8px; }
.author-avatar {
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--border); display: grid; place-items: center; color: var(--muted);
}
.author-avatar svg { width: 16px; height: 16px; }
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-name { font-size: 13px; font-weight: 500; color: var(--fg); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.meta-text { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
@media (max-width: 700px) {
	.featured-article { grid-template-columns: 1fr; }
}

/* Article card grid */
.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.article-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.article-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.article-card-img {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--border), var(--surface));
	display: grid;
	place-items: center;
	overflow: hidden;
}
.article-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-card-img svg { width: 32px; height: 32px; color: var(--muted); opacity: 0.4; }
.article-card-tag {
	position: absolute; top: 12px; left: 12px;
	padding: 4px 10px; border-radius: var(--radius-pill);
	background: color-mix(in oklch, var(--bg) 80%, transparent);
	font-family: var(--font-mono); font-size: 10px;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.article-card-body { padding: 16px 18px 20px; }
.article-card-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--fg); margin-bottom: 10px; }

/* Sidebar widgets */
.sidebar-widgets { display: flex; flex-direction: column; gap: 20px; }
.placeholder-panel {
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	padding: 20px;
	text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	min-height: 200px; justify-content: center;
}
.placeholder-panel svg { width: 32px; height: 32px; color: var(--muted); opacity: 0.4; }
.placeholder-label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.placeholder-size { font-size: 11px; color: var(--muted); opacity: 0.6; }

/* ════════════════════════════════════════════════════════════════════════════
 * ARTÍCULO SINGLE · article-content, share-buttons, comments, related
 * ════════════════════════════════════════════════════════════════════════════ */

.article-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 32px;
	padding-block: 40px;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.article-content { max-width: 820px; }
.article-header { margin-bottom: 28px; }
.article-tag {
	display: inline-block; margin-bottom: 12px;
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.article-title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px); line-height: 1.05; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-body { font-size: 16px; line-height: 1.7; color: var(--fg); }
.article-body h2 { font-family: var(--font-display); font-size: 28px; margin: 32px 0 12px; }
.article-body h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body blockquote {
	border-left: 3px solid var(--accent);
	padding-left: 20px; margin: 24px 0;
	font-style: italic; color: var(--muted);
}
.article-body img, .article-body .inline-img { border-radius: var(--radius); margin: 24px 0; }
.article-body .img-caption { font-size: 12px; color: var(--muted); text-align: center; margin-top: -16px; margin-bottom: 20px; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-featured { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.article-featured img { width: 100%; }

/* Share buttons */
.share-section { display: flex; align-items: center; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); margin-top: 32px; }
.share-label { font-size: 13px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.share-buttons { display: flex; gap: 8px; }
.share-btn {
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--surface); border: 1px solid var(--border);
	display: grid; place-items: center; color: var(--muted);
	transition: all var(--dur-base) var(--ease);
}
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--fg); }
.share-btn svg { width: 16px; height: 16px; }

/* Comments */
.comments-section { padding: 32px 0; }
.comments-header { margin-bottom: 24px; }
.comments-header h2 { font-family: var(--font-display); font-size: 24px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 28px; }
.comment-form-avatar { flex-shrink: 0; }
.comment-form-input { flex: 1; }
.comment-form-input textarea {
	width: 100%; min-height: 80px; padding: 12px 16px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); color: var(--fg); resize: vertical;
}
.comment-form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.btn-comment {
	padding: 8px 20px; border-radius: var(--radius-pill);
	background: var(--accent); color: var(--fg);
	font-size: 13px; font-weight: 600;
}
.comments-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--border); display: grid; place-items: center; color: var(--muted); }
.comment-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.comment-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--fg); margin-bottom: 8px; }
.comment-actions { display: flex; gap: 16px; }
.comment-action { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.comment-action svg { width: 14px; height: 14px; }

/* Related articles */
.related-section { padding: 32px 0; border-top: 1px solid var(--border); }
.related-section h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.related-card {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); overflow: hidden;
	transition: border-color var(--dur-base) var(--ease);
}
.related-card:hover { border-color: var(--accent); }
.related-card-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--border), var(--surface)); display: grid; place-items: center; }
.related-card-img svg { width: 28px; height: 28px; color: var(--muted); opacity: 0.4; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-info { padding: 14px 16px; }
.related-card-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.related-card-title { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 6px; line-height: 1.3; }
.related-card-meta { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }

/* ════════════════════════════════════════════════════════════════════════════
 * TIENDA · product-card, product-grid, promo-banner, side-panel
 * ════════════════════════════════════════════════════════════════════════════ */

.promo-banner {
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--accent), color-mix(in oklch, var(--accent) 70%, var(--bg)));
	border-radius: var(--radius-lg);
	color: var(--fg);
	text-align: center;
	margin: 24px 0;
}
.promo-banner h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 4px; }
.promo-banner p { font-size: 14px; opacity: 0.9; }

.products-section { padding-block: 32px; }
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}
.product-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
	position: relative;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-card-img {
	position: relative; aspect-ratio: 1; background: linear-gradient(135deg, var(--border), var(--surface));
	display: grid; place-items: center; overflow: hidden;
}
.product-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card-img svg { width: 36px; height: 36px; color: var(--muted); opacity: 0.4; }
.card-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.card-action-btn {
	width: 32px; height: 32px; border-radius: 50%;
	background: color-mix(in oklch, var(--bg) 70%, transparent); backdrop-filter: blur(8px);
	display: grid; place-items: center; color: var(--fg);
	transition: all var(--dur-base) var(--ease);
}
.card-action-btn:hover { background: var(--accent); }
.card-action-btn.favorited { background: var(--accent); color: var(--fg); }
.card-action-btn svg { width: 16px; height: 16px; }
.product-card-body { padding: 14px 16px; }
.product-card-category { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.product-card-name { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 8px; line-height: 1.3; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-size: 18px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.btn-quick-add {
	padding: 6px 14px; border-radius: var(--radius-pill);
	background: var(--accent); color: var(--fg);
	font-size: 12px; font-weight: 600;
	transition: background var(--dur-base) var(--ease);
}
.btn-quick-add:hover { background: color-mix(in oklch, var(--accent) 85%, white); }

/* Product detail actions (perfil tienda) */
.product-card-actions { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity var(--dur-base); }
.product-card:hover .product-card-actions { opacity: 1; }
.quick-fav, .quick-cart {
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--bg); display: grid; place-items: center; color: var(--fg);
	border: 1px solid var(--border);
}
.quick-fav:hover, .quick-cart:hover { background: var(--accent); border-color: var(--accent); }
.quick-fav svg, .quick-cart svg { width: 16px; height: 16px; }

/* Side panel (carrito / favoritos) */
.side-panel-backdrop {
	position: fixed; inset: 0; z-index: var(--z-overlay);
	background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
	transition: opacity var(--dur-base) var(--ease);
}
.side-panel-backdrop.open { opacity: 1; pointer-events: auto; }
.side-panel {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 380px; max-width: 90vw; z-index: var(--z-popup);
	background: var(--bg); border-left: 1px solid var(--border);
	transform: translateX(100%); transition: transform var(--dur-base) var(--ease);
	display: flex; flex-direction: column;
}
.side-panel.open { transform: translateX(0); }
.panel-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.panel-header h3 { font-family: var(--font-display); font-size: 20px; }
.panel-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.panel-close:hover { background: var(--surface); color: var(--fg); }
.panel-close svg { width: 18px; height: 18px; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.panel-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.panel-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.panel-empty svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: 0.4; }

/* Cart item */
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 56px; height: 56px; border-radius: var(--radius); background: var(--surface); flex-shrink: 0; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.cart-item-variant { font-size: 11px; color: var(--muted); }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--fg); font-size: 14px; }
.qty-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { width: 28px; height: 28px; color: var(--muted); display: grid; place-items: center; align-self: center; }
.cart-item-remove:hover { color: var(--accent); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cart-total-label { font-size: 14px; color: var(--muted); }
.cart-total-value { font-size: 22px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.btn-checkout {
	width: 100%; padding: 12px; border-radius: var(--radius);
	background: var(--accent); color: var(--fg); font-weight: 600;
}
.btn-checkout:hover { background: color-mix(in oklch, var(--accent) 85%, white); }

/* Toast */
.toast {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
	z-index: var(--z-toast); padding: 12px 24px;
	background: var(--accent); color: var(--fg);
	border-radius: var(--radius-pill); font-size: 14px; font-weight: 600;
	opacity: 0; pointer-events: none;
	transition: all var(--dur-base) var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════════════════════════════════════
 * PERFIL TIENDA · store-header, policies, reviews
 * ════════════════════════════════════════════════════════════════════════════ */

.store-header { margin-bottom: 0; }
.store-banner-wrap { position: relative; }
.store-banner { height: 240px; background: linear-gradient(135deg, var(--border), var(--surface)); display: grid; place-items: center; position: relative; overflow: hidden; }
.store-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.store-banner-placeholder { text-align: center; color: var(--muted); }
.store-banner-placeholder svg { width: 40px; height: 40px; margin: 0 auto 8px; opacity: 0.4; }
.store-banner-placeholder span { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.store-logo {
	width: 90px; height: 90px; border-radius: var(--radius-lg);
	background: var(--surface); border: 3px solid var(--bg);
	position: absolute; bottom: -45px; left: 32px;
	display: grid; place-items: center; color: var(--accent);
}
.store-logo img { width: 100%; height: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.store-logo svg { width: 36px; height: 36px; }
.store-details { padding: 56px 32px 24px; }
.store-name { font-family: var(--font-display); font-size: 30px; margin-bottom: 8px; }
.store-bio { font-size: 14px; color: var(--muted); margin-bottom: 12px; max-width: 60ch; }
.store-rating { display: flex; align-items: center; gap: 8px; }
.store-stars, .artist-stars, .review-stars { display: flex; gap: 2px; color: var(--accent); }
.store-stars svg, .artist-stars svg, .review-stars svg { width: 16px; height: 16px; }
.store-stars .empty, .artist-stars .empty, .review-stars .empty { color: var(--border); }
.store-rating-text { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.store-divider { height: 1px; background: var(--border); }

/* Policy cards */
.policies-section { padding-block: 32px; }
.policies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.policy-card {
	display: flex; gap: 14px; padding: 20px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.policy-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.policy-icon svg { width: 20px; height: 20px; }
.policy-content h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.policy-content p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Review card */
.reviews-section { padding-block: 32px; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--fg); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.review-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.review-meta { flex: 1; }
.review-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.review-date { font-size: 12px; color: var(--muted); }
.review-text { font-size: 14px; line-height: 1.6; color: var(--fg); }

/* ════════════════════════════════════════════════════════════════════════════
 * FORO · forum-hero, composer, post-card, thread
 * ════════════════════════════════════════════════════════════════════════════ */

.forum-hero {
	position: relative; min-height: 320px;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; text-align: center;
}
.forum-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg), var(--surface)); }
.forum-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.forum-hero-bg-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.forum-hero-bg-placeholder svg { width: 40px; height: 40px; opacity: 0.3; }
.forum-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--bg)); }
.forum-hero-content { position: relative; z-index: 1; padding: 40px 20px; }
.forum-hero-content h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px); margin-bottom: 8px; }
.forum-hero-content p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.forum-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.forum-stat { display: flex; flex-direction: column; gap: 2px; }
.forum-stat-value { font-family: var(--font-display); font-size: 28px; color: var(--accent); }
.forum-stat-label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* Composer */
.composer {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 20px;
	margin-bottom: 24px;
}
.composer-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.composer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--border); display: grid; place-items: center; color: var(--muted); }
.composer-prompt { font-size: 15px; color: var(--muted); }
.composer-trigger {
	width: 100%; text-align: left; padding: 12px 16px;
	background: var(--bg); border: 1px solid var(--border);
	border-radius: var(--radius); color: var(--muted);
	font-size: 14px; transition: border-color var(--dur-base);
}
.composer-trigger:hover { border-color: var(--accent); }
.composer-form { display: none; flex-direction: column; gap: 12px; margin-top: 12px; }
.composer-form.open { display: flex; }
.composer-input {
	width: 100%; padding: 12px 16px;
	background: var(--bg); border: 1px solid var(--border);
	border-radius: var(--radius); color: var(--fg); font-size: 14px;
}
.composer-input:focus { border-color: var(--accent); outline: none; }
.composer-select { padding: 10px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); }
.composer-actions { display: flex; gap: 8px; align-items: center; }
.btn-attach-img, .btn-cancel, .btn-publish {
	padding: 8px 16px; border-radius: var(--radius-pill);
	font-size: 13px; font-weight: 600;
}
.btn-attach-img { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-cancel { background: transparent; color: var(--muted); }
.btn-publish { background: var(--accent); color: var(--fg); }

/* Post card */
.post-card {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 20px;
	margin-bottom: 16px; cursor: pointer;
	transition: border-color var(--dur-base) var(--ease);
}
.post-card:hover { border-color: var(--accent); }
.post-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--border); display: grid; place-items: center; color: var(--muted); }
.post-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.post-username { font-size: 14px; font-weight: 600; color: var(--fg); }
.post-time { font-size: 12px; color: var(--muted); }
.post-title { font-size: 17px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.post-cat-tag { display: inline-block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--accent); }
.post-actions { display: flex; align-items: center; gap: 16px; }
.post-action-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.post-action-btn svg { width: 16px; height: 16px; }
.post-action-btn.liked { color: var(--accent); }
.post-replies-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-left: auto; }
.post-replies-count svg { width: 16px; height: 16px; }

/* Thread overlay */
.thread-overlay, .event-popup-overlay, .product-overlay {
	position: fixed; inset: 0; z-index: var(--z-modal);
	display: none; align-items: center; justify-content: center; padding: 20px;
	background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
}
.thread-overlay.open, .event-popup-overlay.open, .product-overlay.open { display: flex; }
.thread-panel, .event-popup, .product-detail-box {
	background: var(--bg); border: 1px solid var(--border);
	border-radius: var(--radius-lg); max-width: 700px; width: 100%;
	max-height: 90vh; overflow-y: auto; position: relative;
}
.thread-header, .event-popup > .event-popup-close { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.thread-header h3 { font-family: var(--font-display); font-size: 22px; padding-right: 40px; }
.thread-close, .event-popup-close, .popup-close {
	position: absolute; top: 16px; right: 16px;
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; color: var(--muted);
}
.thread-close:hover, .event-popup-close:hover, .popup-close:hover { background: var(--surface); color: var(--fg); }
.thread-body { padding: 20px; }
.reply { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.reply-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--border); display: grid; place-items: center; flex-shrink: 0; }
.reply-content { flex: 1; }
.reply-top { display: flex; gap: 8px; margin-bottom: 4px; }
.reply-username { font-size: 13px; font-weight: 600; }
.reply-time { font-size: 11px; color: var(--muted); }
.reply-text { font-size: 14px; line-height: 1.5; }
.reply-form { display: flex; gap: 12px; margin-top: 20px; }
.reply-form-input { flex: 1; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); }
.btn-reply-send { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--fg); }

/* ════════════════════════════════════════════════════════════════════════════
 * CALENDARIO · cal-board, event-postal, event-popup
 * ════════════════════════════════════════════════════════════════════════════ */

.cal-header { text-align: center; padding-block: 40px 24px; }
.cal-header h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.cal-header p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.month-nav { display: flex; align-items: center; gap: 12px; justify-content: center; }
.btn-month { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--fg); }
.btn-month:hover { background: var(--accent); border-color: var(--accent); }
.current-month { font-family: var(--font-display); font-size: 22px; min-width: 180px; }
.btn-today { padding: 6px 18px; border-radius: var(--radius-pill); background: var(--accent); color: var(--fg); font-size: 13px; font-weight: 600; }

.cal-board-wrap { padding-block: 0 40px; }
.cal-board {
	background: color-mix(in oklch, var(--surface) 60%, transparent);
	border: 2px solid var(--border); border-radius: var(--radius-lg);
	padding: 16px; overflow: hidden;
}
.cal-days-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.cal-day-name { text-align: center; padding: 8px 4px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.cal-day-name .jp { display: block; color: var(--accent); font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
	min-height: 100px; padding: 6px; background: var(--bg);
	border: 1px solid var(--border); border-radius: var(--radius);
	display: flex; flex-direction: column; gap: 4px;
}
.cal-cell.other-month { opacity: 0.3; }
.cal-cell.today { border-color: var(--accent); border-width: 2px; }
.day-number { font-size: 13px; font-weight: 600; color: var(--fg); font-family: var(--font-mono); }
.cal-cell.today .day-number { color: var(--accent); }

.event-postal {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: 6px; padding: 6px 8px; cursor: pointer;
	position: relative; transition: border-color var(--dur-base);
}
.event-postal:hover { border-color: var(--accent); }
.event-postal .pin {
	position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
	width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.event-name { font-size: 11px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-time { font-size: 10px; color: var(--accent); font-family: var(--font-mono); }
.event-postal.rot-1 { transform: rotate(-2deg); }
.event-postal.rot-2 { transform: rotate(1.5deg); }
.event-postal.rot-3 { transform: rotate(-1deg); }
.event-postal.rot-4 { transform: rotate(2.5deg); }
.event-postal.rot-5 { transform: rotate(-3deg); }
.event-postal.rot-6 { transform: rotate(0.5deg); }

@media (max-width: 768px) {
	.cal-cell { min-height: 70px; }
	.cal-day-name .jp { display: none; }
	.event-name { font-size: 10px; }
}

/* Event popup */
.event-popup { max-width: 560px; padding: 0; }
.event-popup-tag { padding: 24px 24px 0; }
.event-popup-tag span { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; }
.event-popup-title { padding: 12px 24px 0; font-family: var(--font-display); font-size: 26px; }
.event-popup-meta { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.event-popup-meta-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.event-popup-meta-row svg { width: 18px; height: 18px; color: var(--accent); }
.event-popup-desc { padding: 0 24px 16px; font-size: 14px; line-height: 1.6; color: var(--fg); }
.event-popup-image { padding: 0 24px 16px; }
.event-popup-image-placeholder { height: 200px; border-radius: var(--radius); background: var(--surface); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.event-popup-image-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.event-popup-image img { width: 100%; border-radius: var(--radius); }
.attend-section { padding: 0 24px 16px; display: flex; align-items: center; gap: 12px; }
.btn-attend { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--fg); }
.btn-attend.attending { background: var(--accent); border-color: var(--accent); }
.attend-count { font-size: 13px; color: var(--muted); }
.event-popup-actions { padding: 0 24px 24px; }
.event-popup-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 600; }
.event-popup-link svg { width: 16px; height: 16px; }

/* ════════════════════════════════════════════════════════════════════════════
 * ARTISTA · artist-header, portfolio, donations, mini-shop
 * ════════════════════════════════════════════════════════════════════════════ */

.artist-header { margin-bottom: 0; }
.artist-banner-wrap { position: relative; }
.artist-banner { height: 300px; background: linear-gradient(135deg, var(--border), var(--surface)); display: grid; place-items: center; position: relative; overflow: hidden; }
.artist-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artist-banner-placeholder { text-align: center; color: var(--muted); }
.artist-banner-placeholder svg { width: 48px; height: 48px; margin: 0 auto 8px; opacity: 0.4; }
.video-badge {
	position: absolute; top: 16px; right: 16px;
	display: flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: var(--radius-pill);
	background: var(--accent); color: var(--fg);
	font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.artist-info-block { padding: 28px 32px; }
.artist-specialty-tag { display: inline-block; margin-bottom: 8px; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; }
.artist-name { font-family: var(--font-display); font-size: 32px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.premium-badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px; border-radius: var(--radius-pill);
	background: var(--accent); color: var(--fg);
	font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
}
.premium-badge svg { width: 14px; height: 14px; }
.artist-bio { font-size: 15px; color: var(--muted); margin-bottom: 16px; max-width: 60ch; }
.artist-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.artist-rating-text { font-size: 13px; color: var(--muted); }
.artist-socials { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.social-link:hover { background: var(--accent); color: var(--fg); border-color: var(--accent); }
.social-link svg { width: 16px; height: 16px; }

/* Portfolio */
.portfolio-section { padding-block: 32px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.portfolio-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--border), var(--surface)); cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.portfolio-item-placeholder svg { width: 36px; height: 36px; opacity: 0.4; }
.portfolio-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity var(--dur-base); }
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-title { font-size: 14px; font-weight: 600; color: var(--fg); }

/* Donation card */
.donations-section { padding-block: 32px; }
.donation-card {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 24px;
	max-width: 520px;
}
.donation-header { display: flex; gap: 14px; margin-bottom: 20px; }
.donation-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.donation-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.donation-info p { font-size: 13px; color: var(--muted); }
.donation-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.donation-amount { padding: 10px 20px; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--border); color: var(--fg); font-size: 14px; font-weight: 600; font-family: var(--font-mono); }
.donation-amount.active, .donation-amount:hover { background: var(--accent); border-color: var(--accent); }
.donation-custom { margin-bottom: 16px; }
.donation-custom input { width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); font-family: var(--font-mono); }
.donation-submit { width: 100%; padding: 14px; border-radius: var(--radius); background: var(--accent); color: var(--fg); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.donation-submit:hover { background: color-mix(in oklch, var(--accent) 85%, white); }
.donation-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Mini shop */
.mini-shop-section { padding-block: 32px; }
.mini-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shop-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.shop-item-img { aspect-ratio: 1; background: linear-gradient(135deg, var(--border), var(--surface)); display: grid; place-items: center; }
.shop-item-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-item-info { padding: 14px 16px; }
.shop-item-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.shop-item-desc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.shop-item-price { font-size: 18px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); margin-bottom: 10px; }
.shop-item-btn { width: 100%; padding: 8px; border-radius: var(--radius); background: var(--accent); color: var(--fg); font-size: 13px; font-weight: 600; }

.premium-section-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 12px; border-radius: var(--radius-pill);
	background: var(--accent-soft); color: var(--accent);
	font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════════
 * PERFIL USUARIO · profile-header, tabs, badges
 * ════════════════════════════════════════════════════════════════════════════ */

.profile-header {
	display: flex; gap: 24px; align-items: center;
	padding: 32px; flex-wrap: wrap;
}
.profile-avatar {
	width: 120px; height: 120px; border-radius: 50%;
	background: var(--surface); border: 3px solid var(--border);
	display: grid; place-items: center; color: var(--muted); flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar svg { width: 48px; height: 48px; }
.profile-info { flex: 1; min-width: 250px; }
.profile-username { font-family: var(--font-display); font-size: 28px; margin-bottom: 6px; }
.profile-bio { font-size: 14px; color: var(--muted); margin-bottom: 12px; max-width: 50ch; }
.profile-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.profile-meta-item { display: flex; flex-direction: column; }
.profile-meta-value { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.profile-meta-label { font-size: 11px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; }
.profile-badges-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-badge-mini {
	width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center; font-size: 16px;
}

.profile-tabs {
	display: flex; gap: 4px; padding: 0 32px;
	border-bottom: 1px solid var(--border);
}
.tab-btn {
	padding: 12px 20px; font-size: 14px; font-weight: 600;
	color: var(--muted); border-bottom: 2px solid transparent;
	transition: all var(--dur-base) var(--ease);
}
.tab-btn:hover, .tab-btn.active { color: var(--fg); border-color: var(--accent); }
.tab-content { display: none; padding: 32px; }
.tab-content.active { display: block; }

/* Badge card */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.badge-card {
	display: flex; gap: 14px; padding: 20px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); align-items: center;
}
.badge-icon {
	width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center; font-size: 24px; flex-shrink: 0;
}
.badge-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.badge-info p { font-size: 12px; color: var(--muted); }

/* User post mini */
.user-post-mini {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px;
}
.user-post-mini-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.user-post-mini-meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* ════════════════════════════════════════════════════════════════════════════
 * AUTH · login/registro full-screen
 * ════════════════════════════════════════════════════════════════════════════ */

.auth-screen {
	min-height: 100vh; display: grid; place-items: center;
	position: relative; overflow: hidden; padding: 20px;
}
.auth-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0d1f3c, #1a2f55, #2D4B73); }
.auth-bg::before {
	content: ''; position: absolute; inset: 0;
	background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(55,103,166,0.08) 0deg, transparent 1.5deg, transparent 4deg);
}
.auth-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.auth-scrim { position: absolute; inset: 0; background: rgba(10, 17, 34, 0.7); backdrop-filter: blur(8px); }
.auth-card {
	position: relative; z-index: 1; width: 100%; max-width: 440px;
	background: color-mix(in oklch, var(--bg) 85%, transparent);
	border: 1px solid var(--border); border-radius: var(--radius-lg);
	padding: 40px; backdrop-filter: blur(20px);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { font-family: var(--font-display); font-size: 28px; }
.auth-title { font-family: var(--font-display); font-size: 24px; text-align: center; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.form-input {
	padding: 12px 16px; background: var(--bg);
	border: 1px solid var(--border); border-radius: var(--radius);
	color: var(--fg); font-size: 14px;
}
.form-input:focus { border-color: var(--accent); outline: none; }
.form-error { font-size: 12px; color: #FF6B6B; display: none; }
.form-error.show { display: block; }
.form-input.error { border-color: #FF6B6B; }
.form-actions { display: flex; justify-content: space-between; align-items: center; }
.form-link { font-size: 13px; color: var(--accent); }
.btn-auth-submit {
	width: 100%; padding: 14px; border-radius: var(--radius);
	background: var(--accent); color: var(--fg);
	font-size: 15px; font-weight: 700; margin-top: 8px;
}
.btn-auth-submit:hover { background: color-mix(in oklch, var(--accent) 85%, white); }

.social-login { display: flex; gap: 12px; margin-top: 20px; }
.btn-social {
	flex: 1; padding: 12px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--border);
	color: var(--fg); font-size: 13px; font-weight: 600;
	display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-social:hover { border-color: var(--accent); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--accent); font-weight: 600; }

.auth-success {
	position: absolute; inset: 0; z-index: 2;
	background: var(--bg); border-radius: var(--radius-lg);
	display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.auth-success.show { display: flex; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #26DE81; display: grid; place-items: center; }
.success-icon svg { width: 32px; height: 32px; color: var(--bg); }
