/*!
 * Copyright (c) 2026 Agung Rizky — IkyBoy Themes Official
 */

:root {
	--bg: #f8fafc;
	--bg-soft: #f1f5f9;
	--surface: #ffffff;
	--surface-glass: rgba(255, 255, 255, 0.82);
	--border: rgba(15, 23, 42, 0.1);
	--border-strong: rgba(15, 23, 42, 0.16);
	--text: #0f172a;
	--muted: #475569;
	--primary: #0f4c81;
	--primary-bright: #0284c7;
	--accent: #4f46e5;
	--success: #059669;
	--shadow-sm: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
	--shadow-md: 0 18px 40px -20px rgba(15, 23, 42, 0.18);
	--shadow-lg: 0 28px 60px -26px rgba(15, 23, 42, 0.28);
	--radius: 16px;
}

:root[data-theme="dark"] {
	--bg: #070d19;
	--bg-soft: #0d1628;
	--surface: #0f1a2e;
	--surface-glass: rgba(15, 26, 46, 0.84);
	--border: rgba(148, 163, 184, 0.18);
	--border-strong: rgba(148, 163, 184, 0.28);
	--text: #f8fafc;
	--muted: #94a3b8;
	--primary: #38bdf8;
	--primary-bright: #38bdf8;
	--accent: #818cf8;
	--shadow-sm: 0 4px 16px -6px rgba(0, 0, 0, 0.45);
	--shadow-md: 0 18px 42px -20px rgba(0, 0, 0, 0.65);
	--shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* STICKY GLASS NAVBAR */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--surface-glass);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 70px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.68rem;
	font-weight: 900;
	font-size: 1.12rem;
	letter-spacing: -0.02em;
}

.brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #0284c7, #4f46e5);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.92rem;
	font-weight: 900;
	box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.7);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--muted);
}

.nav-links a:hover { color: var(--primary-bright); }

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.64rem 1.18rem;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
	background: linear-gradient(135deg, #0284c7, #4f46e5);
	color: #ffffff;
	box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.72);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-outline {
	background: var(--surface);
	border-color: var(--border-strong);
	color: var(--text);
}

.btn-outline:hover {
	border-color: var(--primary-bright);
	color: var(--primary-bright);
}

.btn-wa {
	background: #16a34a;
	color: #ffffff;
	box-shadow: 0 10px 22px -10px rgba(22, 163, 74, 0.65);
}

.icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	color: var(--text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1rem;
}

/* HERO SECTION */
.hero {
	position: relative;
	padding: 4.5rem 0 3.75rem;
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 10%, rgba(2, 132, 199, 0.13), transparent 44%),
		radial-gradient(circle at 88% 18%, rgba(79, 70, 229, 0.12), transparent 42%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
	gap: 2.5rem;
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.48rem;
	padding: 0.34rem 0.88rem;
	border-radius: 999px;
	background: rgba(2, 132, 199, 0.1);
	border: 1px solid rgba(2, 132, 199, 0.28);
	color: var(--primary-bright);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 1.1rem;
}

.pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.24);
}

.hero h1 {
	margin: 0 0 1.05rem;
	font-size: clamp(2rem, 3.8vw, 3.15rem);
	font-weight: 900;
	line-height: 1.13;
	letter-spacing: -0.03em;
}

.text-gradient {
	background: linear-gradient(100deg, #0284c7 0%, #4f46e5 58%, #059669 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-lead {
	margin: 0 0 1.75rem;
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 58ch;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.85rem;
}

.trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	font-size: 0.83rem;
	font-weight: 600;
	color: var(--muted);
}

.trust-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.trust-check { color: var(--success); font-weight: 900; }

/* HERO BROWSER SHOWCASE */
.hero-stage {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: 20px;
	padding: 1.2rem;
	box-shadow: var(--shadow-lg);
}

.stage-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 0.85rem;
	margin-bottom: 0.95rem;
	border-bottom: 1px solid var(--border);
}

.dots { display: inline-flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.stage-url {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--muted);
	background: var(--bg-soft);
	padding: 0.22rem 0.75rem;
	border-radius: 999px;
}

.stage-metrics {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.7rem;
	margin-bottom: 0.9rem;
}

.stage-metric {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 0.85rem;
}

.stage-metric strong {
	display: block;
	font-size: 1.32rem;
	font-weight: 900;
	color: var(--primary-bright);
	line-height: 1.15;
}

.stage-metric span {
	font-size: 0.75rem;
	color: var(--muted);
	font-weight: 600;
}

.stage-swatches {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.45rem;
}

.swatch-pill {
	border-radius: 10px;
	padding: 0.55rem 0.35rem;
	text-align: center;
	color: #ffffff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}

/* SECTIONS */
.section { padding: 4rem 0; }
.section-alt {
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.section-head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 2.5rem;
}

.section-kicker {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary-bright);
	margin-bottom: 0.45rem;
}

.section-head h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.6rem, 2.8vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.section-head p {
	margin: 0;
	color: var(--muted);
	font-size: 0.96rem;
}

/* FILTER & BILLING BAR */
.catalog-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.filter-tabs,
.billing-switch {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.32rem;
	border-radius: 12px;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-sm);
}

.tab-btn {
	border: none;
	background: transparent;
	color: var(--muted);
	padding: 0.46rem 0.9rem;
	border-radius: 9px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease;
}

.tab-btn.is-active {
	background: linear-gradient(135deg, #0284c7, #4f46e5);
	color: #ffffff;
}

/* THEME CATALOG CARDS */
.themes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.45rem;
}

.theme-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.theme-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-bright);
}

.theme-card[hidden] { display: none; }

.theme-preview {
	padding: 1.15rem 1.15rem 0;
	position: relative;
	min-height: 175px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.preview-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.preview-badge {
	padding: 0.22rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.34);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.preview-ver {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.72rem;
	font-weight: 700;
}

.mini-browser {
	background: rgba(255, 255, 255, 0.96);
	border-radius: 11px 11px 0 0;
	padding: 0.7rem 0.78rem 0.85rem;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
	color: #0f172a;
}

.mini-nav {
	height: 8px;
	border-radius: 999px;
	margin-bottom: 0.55rem;
	opacity: 0.9;
}

.mini-body {
	display: grid;
	grid-template-columns: 1.5fr 0.7fr;
	gap: 0.45rem;
}

.mini-box {
	height: 54px;
	border-radius: 7px;
	background: #e2e8f0;
}

.mini-side {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mini-side span {
	display: block;
	height: 24px;
	border-radius: 6px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
}

.theme-body {
	padding: 1.25rem 1.3rem 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.78rem;
	flex: 1;
}

.theme-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--primary-bright);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.theme-title {
	margin: 0;
	font-size: 1.22rem;
	font-weight: 850;
	letter-spacing: -0.02em;
}

.theme-desc {
	margin: 0;
	font-size: 0.87rem;
	color: var(--muted);
	line-height: 1.58;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.38rem;
}

.tag-chip {
	padding: 0.22rem 0.56rem;
	border-radius: 7px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	font-size: 0.73rem;
	font-weight: 600;
	color: var(--muted);
}

.theme-footer {
	margin-top: auto;
	padding-top: 0.95rem;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.price-box small {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
}

.price-box strong {
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--text);
}

/* FEATURE PILLARS */
.pillars-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.2rem;
}

.pillar-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.4rem;
	box-shadow: var(--shadow-sm);
}

.pillar-icon {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: rgba(2, 132, 199, 0.1);
	color: var(--primary-bright);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	margin-bottom: 0.85rem;
}

.pillar-card h3 {
	margin: 0 0 0.45rem;
	font-size: 1.02rem;
	font-weight: 800;
}

.pillar-card p {
	margin: 0;
	font-size: 0.87rem;
	color: var(--muted);
}

/* PRICING PLANS */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem;
	align-items: stretch;
}

.plan-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 1.75rem 1.55rem;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
}

.plan-card.is-popular {
	border: 2px solid var(--primary-bright);
	box-shadow: var(--shadow-md);
	position: relative;
}

.popular-ribbon {
	position: absolute;
	top: -13px;
	right: 20px;
	padding: 0.24rem 0.78rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #0284c7, #4f46e5);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.plan-name { font-size: 1.1rem; font-weight: 850; margin: 0 0 0.35rem; }
.plan-sub { font-size: 0.84rem; color: var(--muted); margin: 0 0 1.2rem; }
.plan-price {
	font-size: 2rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	margin-bottom: 0.25rem;
}
.plan-unit { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }

.plan-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.58rem;
	font-size: 0.86rem;
	color: var(--muted);
}

.plan-list li::before {
	content: "✓ ";
	color: var(--success);
	font-weight: 900;
}

.plan-card .btn { margin-top: auto; width: 100%; }

/* FAQ ACCORDION */
.faq-list {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.faq-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
}

.faq-item summary {
	list-style: none;
	padding: 1.1rem 1.3rem;
	font-weight: 750;
	font-size: 0.95rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--primary-bright); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-body {
	padding: 0 1.3rem 1.15rem;
	font-size: 0.89rem;
	color: var(--muted);
	border-top: 1px solid var(--border);
	padding-top: 0.9rem;
}

/* DETAIL PAGE */
.detail-hero {
	padding: 2.75rem 0 3.25rem;
	border-bottom: 1px solid var(--border);
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--primary-bright); font-weight: 600; }

.detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
	gap: 2rem;
	align-items: start;
}

.detail-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 1.65rem;
	box-shadow: var(--shadow-sm);
}

.sticky-buy {
	position: sticky;
	top: 88px;
}

.feature-check-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.feature-check-list li {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 11px;
	padding: 0.78rem 0.95rem;
	font-size: 0.89rem;
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.feature-check-list li::before {
	content: "✓";
	color: var(--success);
	font-weight: 900;
	flex-shrink: 0;
}

/* FOOTER */
.site-footer {
	background: #071122;
	color: #cbd5e1;
	padding: 3.25rem 0 1.75rem;
	margin-top: 2rem;
	border-top: 3px solid #0284c7;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.25rem;
}

.footer-title {
	color: #ffffff;
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.9rem;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.88rem;
}

.footer-links a:hover { color: #38bdf8; }

.footer-bottom {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(148, 163, 184, 0.16);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.82rem;
	color: #94a3b8;
}

@media (max-width: 960px) {
	.hero-grid,
	.detail-grid,
	.themes-grid,
	.pillars-grid,
	.pricing-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.nav-links { display: none; }
	.sticky-buy { position: static; }
}

/* ==========================================================================
   TAHAP 2 ADDITIONS: ANIMATED LIGHTWEIGHT GRAPH, AUTH, MEMBER/ADMIN/OWNER UI
   ========================================================================== */
.store-ambient-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.store-ambient-layer canvas#store-bg-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	opacity: 0.78;
}

.store-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(74px);
	opacity: 0.22;
	will-change: transform;
}

.store-orb-a {
	width: 420px;
	height: 420px;
	top: -110px;
	left: -90px;
	background: radial-gradient(circle, rgba(2, 132, 199, 0.7), transparent 70%);
	animation: storeOrbMove 20s ease-in-out infinite alternate;
}

.store-orb-b {
	width: 460px;
	height: 460px;
	bottom: -140px;
	right: -100px;
	background: radial-gradient(circle, rgba(79, 70, 229, 0.65), transparent 70%);
	animation: storeOrbMove 24s ease-in-out infinite alternate-reverse;
}

@keyframes storeOrbMove {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(60px, 40px, 0) scale(1.1); }
}

.site-header, main, .site-footer {
	position: relative;
	z-index: 1;
}

.alert {
	padding: 0.9rem 1.15rem;
	border-radius: 12px;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	border: 1px solid transparent;
}

.alert-success {
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.36);
	color: #047857;
}

.alert-danger {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.35);
	color: #b91c1c;
}

:root[data-theme="dark"] .alert-success { color: #6ee7b7; }
:root[data-theme="dark"] .alert-danger { color: #fca5a5; }

.auth-wrap {
	min-height: calc(100vh - 220px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1.25rem;
}

.auth-card {
	width: 100%;
	max-width: 470px;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-top: 4px solid var(--primary-bright);
	border-radius: 18px;
	padding: 2rem;
	box-shadow: var(--shadow-md);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.95rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 0.95rem;
}

.form-group.is-full { grid-column: 1 / -1; }

.form-group label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text);
}

.form-control {
	width: 100%;
	padding: 0.66rem 0.9rem;
	border-radius: 10px;
	border: 1.5px solid var(--border-strong);
	background: var(--bg-soft);
	color: var(--text);
	font-size: 0.9rem;
	font-family: inherit;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary-bright);
	background: var(--surface);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
}

.field-hint {
	font-size: 0.75rem;
	color: var(--muted);
}

.portal-wrap { padding: 2.25rem 0 3.5rem; }

.portal-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.65rem;
}

.portal-head h1 {
	margin: 0 0 0.25rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 900;
	letter-spacing: -0.025em;
}

.portal-head p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.role-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.24rem 0.7rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.role-owner { background: rgba(124, 58, 237, 0.14); color: #6d28d9; border: 1px solid rgba(124, 58, 237, 0.35); }
.role-admin { background: rgba(2, 132, 199, 0.14); color: #0369a1; border: 1px solid rgba(2, 132, 199, 0.35); }
.role-member { background: rgba(16, 185, 129, 0.14); color: #047857; border: 1px solid rgba(16, 185, 129, 0.35); }
:root[data-theme="dark"] .role-owner { color: #c4b5fd; }
:root[data-theme="dark"] .role-admin { color: #7dd3fc; }
:root[data-theme="dark"] .role-member { color: #6ee7b7; }

.kpi-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.kpi-box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 4px solid var(--primary-bright);
	border-radius: 14px;
	padding: 1.1rem 1.2rem;
	box-shadow: var(--shadow-sm);
}

.kpi-box strong {
	display: block;
	font-size: 1.48rem;
	font-weight: 900;
	line-height: 1.18;
	margin-bottom: 0.2rem;
}

.kpi-box span {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

.panel-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.4rem 1.5rem;
	box-shadow: var(--shadow-sm);
	margin-bottom: 1.5rem;
}

.panel-title {
	margin: 0 0 1rem;
	font-size: 1.08rem;
	font-weight: 850;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.table-scroll { overflow-x: auto; }

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.data-table th,
.data-table td {
	text-align: left;
	padding: 0.78rem 0.75rem;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.data-table th {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--bg-soft);
}

.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.62rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	white-space: nowrap;
}

.status-badge.is-success { background: rgba(16, 185, 129, 0.14); color: #047857; }
.status-badge.is-info { background: rgba(79, 70, 229, 0.14); color: #4338ca; }
.status-badge.is-warn { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.status-badge.is-danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.status-badge.is-muted { background: var(--bg-soft); color: var(--muted); }
:root[data-theme="dark"] .status-badge.is-success { color: #6ee7b7; }
:root[data-theme="dark"] .status-badge.is-info { color: #a5b4fc; }
:root[data-theme="dark"] .status-badge.is-warn { color: #fcd34d; }
:root[data-theme="dark"] .status-badge.is-danger { color: #fca5a5; }

.license-code-box {
	background: #071122;
	color: #7dd3fc;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.76rem;
	padding: 0.72rem 0.85rem;
	border-radius: 10px;
	word-break: break-all;
	border: 1px solid rgba(56, 189, 248, 0.3);
	margin: 0.55rem 0;
}

.btn-sm { padding: 0.42rem 0.78rem; font-size: 0.77rem; border-radius: 8px; }
.btn-danger { background: #dc2626; color: #ffffff; }
.btn-success { background: #059669; color: #ffffff; }
.btn-warn { background: #d97706; color: #ffffff; }

.portal-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1.5rem;
}

.portal-tabs a {
	padding: 0.54rem 1rem;
	border-radius: 10px;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	font-size: 0.83rem;
	font-weight: 700;
	color: var(--muted);
}

.portal-tabs a.is-active {
	background: linear-gradient(135deg, #0284c7, #4f46e5);
	border-color: transparent;
	color: #ffffff;
}

.inline-action-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

@media (max-width: 900px) {
	.kpi-row, .form-grid { grid-template-columns: 1fr; }
}

@media print {
	.site-header, .site-footer, .store-ambient-layer, .no-print { display: none !important; }
	body { background: #ffffff !important; color: #000000 !important; }
	.panel-card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; }
}

/* === UPGRADE V3: BILINGUAL, ENHANCED GRAPH & SAAS SIDEBAR PORTAL === */
.lang-switch {
	display: inline-flex;
	align-items: center;
	padding: 2px;
	border-radius: 10px;
	background: var(--bg-soft);
	border: 1px solid var(--border-strong);
	gap: 2px;
}

.lang-switch a {
	padding: 0.3rem 0.56rem;
	border-radius: 7px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--muted);
	transition: background 0.16s ease, color 0.16s ease;
}

.lang-switch a.is-active {
	background: linear-gradient(135deg, #0284c7, #4f46e5);
	color: #ffffff;
}

/* ENHANCED VISIBLE ANIMATED GRAPH BACKGROUND */
.store-ambient-layer {
	background:
		radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.12), transparent 46%),
		radial-gradient(circle at 86% 82%, rgba(79, 70, 229, 0.12), transparent 46%),
		linear-gradient(180deg, rgba(240, 249, 255, 0.55), rgba(248, 250, 252, 0.45)) !important;
}

:root[data-theme="dark"] .store-ambient-layer {
	background:
		radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.12), transparent 44%),
		radial-gradient(circle at 86% 82%, rgba(99, 102, 241, 0.14), transparent 44%),
		linear-gradient(180deg, #050a14, #091224) !important;
}

.store-grid-mesh {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(2, 132, 199, 0.065) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(2, 132, 199, 0.065) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0.25) 100%);
	-webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0.25) 100%);
}

:root[data-theme="dark"] .store-grid-mesh {
	background-image:
		linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
}

.store-ambient-layer canvas#store-bg-canvas {
	opacity: 0.98 !important;
}

.store-orb { opacity: 0.34 !important; }
.store-orb-c {
	width: 340px;
	height: 340px;
	top: 42%;
	left: 44%;
	background: radial-gradient(circle, rgba(16, 185, 129, 0.48), transparent 70%);
	animation: storeOrbMove 26s ease-in-out infinite alternate;
}

.section-alt {
	background: rgba(241, 245, 249, 0.72) !important;
	backdrop-filter: blur(4px);
}

:root[data-theme="dark"] .section-alt {
	background: rgba(13, 22, 40, 0.72) !important;
}

.theme-card,
.pillar-card,
.plan-card,
.panel-card,
.kpi-box {
	background: rgba(255, 255, 255, 0.88) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

:root[data-theme="dark"] .theme-card,
:root[data-theme="dark"] .pillar-card,
:root[data-theme="dark"] .plan-card,
:root[data-theme="dark"] .panel-card,
:root[data-theme="dark"] .kpi-box {
	background: rgba(15, 26, 46, 0.86) !important;
}

/* SAAS APP SHELL WITH LEFT SIDEBAR FOR OWNER, ADMIN & MEMBER */
.portal-shell {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr);
	min-height: 100vh;
	position: relative;
	z-index: 1;
}

.portal-sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-right: 1px solid var(--border-strong);
	display: flex;
	flex-direction: column;
	padding: 1.15rem 0.95rem;
	z-index: 95;
}

:root[data-theme="dark"] .portal-sidebar {
	background: rgba(9, 17, 32, 0.92);
}

.sidebar-brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.25rem 0.35rem 1rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 0.95rem;
}

.sidebar-user-card {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 13px;
	padding: 0.85rem;
	margin-bottom: 1rem;
}

.sidebar-user-name {
	font-weight: 850;
	font-size: 0.92rem;
	line-height: 1.25;
	margin-top: 0.45rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-user-email {
	font-size: 0.74rem;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-group-label {
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 0.55rem 0.65rem 0.35rem;
}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
}

.sidebar-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.64rem 0.78rem;
	border-radius: 11px;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--muted);
	transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.sidebar-link-main {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
}

.sidebar-link:hover {
	background: rgba(2, 132, 199, 0.09);
	color: var(--primary-bright);
}

.sidebar-link.is-active {
	background: linear-gradient(135deg, #0284c7, #4f46e5);
	color: #ffffff;
	box-shadow: 0 10px 22px -12px rgba(79, 70, 229, 0.78);
}

.sidebar-badge {
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	background: rgba(2, 132, 199, 0.14);
	color: var(--primary-bright);
}

.sidebar-link.is-active .sidebar-badge {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.sidebar-footer {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.portal-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.portal-topbar {
	position: sticky;
	top: 0;
	z-index: 80;
	height: 66px;
	padding: 0 1.65rem;
	background: var(--surface-glass);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.portal-topbar-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.portal-topbar-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 850;
	letter-spacing: -0.015em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.portal-topbar-right {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.portal-content {
	padding: 1.65rem 1.85rem 3rem;
	max-width: 1220px;
	width: 100%;
}

.mobile-menu-btn {
	display: none;
}

.portal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(2, 6, 23, 0.55);
	z-index: 90;
}

.portal-backdrop.is-open { display: block; }

.overview-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 992px) {
	.portal-shell {
		grid-template-columns: 1fr;
	}
	.portal-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 272px;
		transform: translateX(-105%);
		transition: transform 0.22s ease;
		box-shadow: var(--shadow-lg);
	}
	.portal-sidebar.is-open {
		transform: translateX(0);
	}
	.mobile-menu-btn {
		display: inline-flex;
	}
	.portal-content {
		padding: 1.25rem 1rem 2.5rem;
	}
	.overview-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* === UPGRADE V4: REALISTIC 5-THEME PREVIEWS, MEDIA UPLOAD & LIGHTBOX === */
.tp-stage {
	padding: 0.9rem 0.9rem 0;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}

.tp-stage.tp-size-detail {
	padding: 1.3rem 1.35rem 0;
}

.tp-stage.tp-size-thumb {
	padding: 0.65rem 0.65rem 0;
}

.tp-stage .preview-top {
	margin-bottom: 0.65rem;
}

.tp-browser {
	background: #ffffff;
	border-radius: 11px 11px 0 0;
	overflow: hidden;
	box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.24);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-bottom: none;
}

.tp-chrome {
	height: 22px;
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
	padding: 0 0.55rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
}

.tp-size-detail .tp-chrome {
	height: 30px;
	padding: 0 0.85rem;
}

.tp-dots {
	display: inline-flex;
	gap: 4px;
}

.tp-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: block;
}

.tp-size-detail .tp-dots i {
	width: 9px;
	height: 9px;
}

.tp-dots i:nth-child(1) { background: #ef4444; }
.tp-dots i:nth-child(2) { background: #f59e0b; }
.tp-dots i:nth-child(3) { background: #10b981; }

.tp-url {
	font-size: 0.58rem;
	font-weight: 700;
	color: #64748b;
	background: #ffffff;
	padding: 1px 8px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tp-size-detail .tp-url {
	font-size: 0.72rem;
	padding: 2px 12px;
}

.tp-chip {
	font-size: 0.52rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	color: #0369a1;
	background: rgba(2, 132, 199, 0.12);
	padding: 1px 5px;
	border-radius: 4px;
}

.tp-size-detail .tp-chip {
	font-size: 0.65rem;
	padding: 2px 8px;
}

/* UPLOADED REAL PHOTO SCREENSHOT */
.tp-photo-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #0f172a;
	overflow: hidden;
}

.tp-photo-wrap.is-zoomable {
	cursor: zoom-in;
}

.tp-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.35s ease;
}

.theme-card:hover .tp-photo-img,
.tp-photo-wrap.is-zoomable:hover .tp-photo-img {
	transform: scale(1.03);
}

.tp-zoom-pill {
	position: absolute;
	right: 12px;
	bottom: 12px;
	background: rgba(15, 23, 42, 0.8);
	color: #ffffff;
	font-size: 0.74rem;
	font-weight: 700;
	padding: 0.34rem 0.75rem;
	border-radius: 999px;
	backdrop-filter: blur(8px);
}

/* REALISTIC MINIATURE MOCKUPS (COMPACT & BALANCED, NEVER STRETCHED) */
.tp-mock {
	background: #f8fafc;
	font-family: system-ui, -apple-system, sans-serif;
	user-select: none;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tp-mock .m-head {
	padding: 6px 9px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #ffffff;
}

.tp-mock .m-head-center {
	justify-content: center;
}

.tp-mock .m-logo {
	font-size: 0.64rem;
	font-weight: 900;
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tp-mock .m-cross {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: linear-gradient(135deg, #0891b2, #e11d48);
	color: #ffffff;
	font-style: normal;
	font-weight: 900;
	font-size: 0.65rem;
}

.tp-mock .m-nav-pills {
	display: inline-flex;
	gap: 4px;
}

.tp-mock .m-nav-pills i {
	width: 15px;
	height: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.38);
	display: block;
}

.tp-mock .m-pills-med i { background: rgba(8, 145, 178, 0.35); }
.tp-mock .m-pills-her i { background: rgba(20, 61, 46, 0.32); }

.tp-mock .m-pill-nav {
	display: inline-flex;
	gap: 5px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(110, 231, 183, 0.35);
	font-size: 0.46rem;
	font-weight: 700;
	color: #d1fae5;
}

.tp-mock .m-subnav {
	padding: 3.5px 9px;
	display: flex;
	gap: 9px;
	font-size: 0.48rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.94);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tp-mock .m-subnav-light {
	color: #143d2e;
}

.tp-mock .m-body {
	padding: 8px 9px 10px;
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.75fr);
	gap: 8px;
	align-items: start;
}

.tp-mock .m-body-left-sidebar {
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.85fr);
}

.tp-mock .m-main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.tp-mock .m-hero {
	border-radius: 8px;
	padding: 9px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
}

.tp-mock .m-hero-rev {
	flex-direction: row;
}

.tp-mock .m-hero-txt {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tp-mock .m-tag {
	align-self: flex-start;
	font-size: 0.44rem;
	font-weight: 900;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.tp-mock .m-l1 {
	height: 6px;
	width: 90%;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
}

.tp-mock .m-l2 {
	height: 4px;
	width: 68%;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
}

.tp-mock .m-btns {
	display: flex;
	gap: 5px;
	margin-top: 3px;
}

.tp-mock .m-btns i {
	height: 9px;
	width: 30px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.28);
	display: block;
}

.tp-mock .m-cover-wrap {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tp-mock .m-cover {
	width: 42px;
	height: 56px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 0.5rem;
	font-weight: 900;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.tp-mock .m-book-3d {
	width: 44px;
	height: 58px;
	border-radius: 3px 6px 6px 3px;
	transform: perspective(180px) rotateY(-18deg) rotateX(4deg);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #ffffff;
	font-weight: 900;
	font-size: 0.5rem;
	line-height: 1.1;
	position: relative;
	box-shadow: -6px 8px 14px rgba(0, 0, 0, 0.55);
}

.tp-mock .m-book-spine {
	position: absolute;
	left: -4px;
	top: 1px;
	bottom: 1px;
	width: 4px;
	background: #a7f3d0;
	border-radius: 2px 0 0 2px;
}

.tp-mock .m-leather {
	border-left: 3px solid #d4a843;
	transform: perspective(180px) rotateY(14deg);
}

.tp-mock .m-ecg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 15px;
	opacity: 0.8;
	pointer-events: none;
}

.tp-mock .m-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
}

.tp-mock .m-kpis-2x2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-mock .m-kpis span {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-top: 2.5px solid #0284c7;
	border-radius: 5px;
	padding: 4px 3px;
	text-align: center;
	color: #0f172a;
}

.tp-mock .m-kpis span b {
	display: block;
	font-size: 0.48rem;
	font-weight: 900;
	line-height: 1.1;
}

.tp-mock .m-kpis span small {
	display: block;
	font-size: 0.36rem;
	color: #64748b;
	margin-top: 1px;
}

.tp-mock .m-kpis-dark span {
	background: #0d1d1a;
	border-color: rgba(52, 211, 153, 0.28);
	color: #a7f3d0;
}

.tp-mock .m-kpis-dark span small {
	color: #6ee7b7;
	opacity: 0.72;
}

.tp-mock .m-ribbon-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid rgba(184, 137, 44, 0.35);
	border-radius: 5px;
	overflow: hidden;
}

.tp-mock .m-ribbon-4 span {
	padding: 4px 2px;
	text-align: center;
	font-size: 0.48rem;
	color: #4c0d19;
	border-right: 1px solid rgba(184, 137, 44, 0.25);
}

.tp-mock .m-ribbon-4 span:last-child { border-right: none; }

.tp-mock .m-art-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tp-mock .m-art-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-left: 3px solid #0284c7;
	border-radius: 5px;
	padding: 5px 7px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tp-mock .m-art-card i {
	display: block;
	height: 4px;
	width: 78%;
	border-radius: 999px;
	background: #334155;
}

.tp-mock .m-art-card s {
	display: block;
	height: 3px;
	width: 48%;
	border-radius: 999px;
	background: #cbd5e1;
	text-decoration: none;
}

.tp-mock .m-art-dark {
	background: #0d1d1a;
	border-color: rgba(52, 211, 153, 0.24);
}

.tp-mock .m-art-dark i { background: #a7f3d0; }
.tp-mock .m-art-dark s { background: rgba(167, 243, 208, 0.35); }

.tp-mock .m-side {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tp-mock .m-sb-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
}

.tp-mock .m-sb-dark {
	background: #0d1d1a;
	border-color: rgba(52, 211, 153, 0.28);
}

.tp-mock .m-sb-box b {
	display: block;
	padding: 3px 6px;
	font-size: 0.44rem;
	letter-spacing: 0.05em;
	color: #ffffff;
}

.tp-mock .m-sb-box i {
	height: 34px;
	margin: 5px;
	border-radius: 4px;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
	font-size: 0.48rem;
	font-weight: 900;
	color: #0369a1;
}

.tp-mock .m-sb-dark i { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
.tp-mock .m-sinta { background: linear-gradient(135deg, #e0f2fe, #fef3c7) !important; }
.tp-mock .m-sinta-med { background: linear-gradient(135deg, #cffafe, #ffe4e6) !important; }
.tp-mock .m-sinta-law { background: linear-gradient(135deg, #f3e8d2, #fce7f3) !important; }
.tp-mock .m-sinta-her { background: linear-gradient(135deg, #dcfce7, #fef3c7) !important; }

/* PROPORTIONAL UPSCALE FOR LARGE THEME DETAIL PAGE */
.tp-size-detail .tp-mock .m-head { padding: 11px 16px; }
.tp-size-detail .tp-mock .m-logo { font-size: 0.95rem; }
.tp-size-detail .tp-mock .m-cross { width: 22px; height: 22px; font-size: 0.95rem; }
.tp-size-detail .tp-mock .m-pill-nav { font-size: 0.68rem; gap: 10px; padding: 4px 12px; }
.tp-size-detail .tp-mock .m-subnav { padding: 7px 16px; gap: 16px; font-size: 0.68rem; }
.tp-size-detail .tp-mock .m-body { padding: 15px 16px 18px; gap: 14px; }
.tp-size-detail .tp-mock .m-main { gap: 11px; }
.tp-size-detail .tp-mock .m-hero { padding: 18px 20px; border-radius: 12px; gap: 18px; }
.tp-size-detail .tp-mock .m-tag { font-size: 0.64rem; padding: 3px 9px; }
.tp-size-detail .tp-mock .m-l1 { height: 11px; }
.tp-size-detail .tp-mock .m-l2 { height: 7px; }
.tp-size-detail .tp-mock .m-btns { gap: 8px; margin-top: 8px; }
.tp-size-detail .tp-mock .m-btns i { height: 18px; width: 66px; border-radius: 5px; }
.tp-size-detail .tp-mock .m-cover { width: 78px; height: 104px; font-size: 0.82rem; border-radius: 6px; }
.tp-size-detail .tp-mock .m-book-3d { width: 82px; height: 108px; font-size: 0.82rem; }
.tp-size-detail .tp-mock .m-book-spine { left: -7px; width: 7px; }
.tp-size-detail .tp-mock .m-kpis { gap: 8px; }
.tp-size-detail .tp-mock .m-kpis span { padding: 8px 6px; border-radius: 8px; }
.tp-size-detail .tp-mock .m-kpis span b { font-size: 0.82rem; }
.tp-size-detail .tp-mock .m-kpis span small { font-size: 0.58rem; }
.tp-size-detail .tp-mock .m-ribbon-4 span { padding: 9px 4px; font-size: 0.78rem; }
.tp-size-detail .tp-mock .m-art-list { gap: 8px; }
.tp-size-detail .tp-mock .m-art-card { padding: 10px 12px; gap: 6px; border-radius: 8px; }
.tp-size-detail .tp-mock .m-art-card i { height: 7px; }
.tp-size-detail .tp-mock .m-art-card s { height: 5px; }
.tp-size-detail .tp-mock .m-side { gap: 11px; }
.tp-size-detail .tp-mock .m-sb-box { border-radius: 9px; }
.tp-size-detail .tp-mock .m-sb-box b { padding: 6px 10px; font-size: 0.64rem; }
.tp-size-detail .tp-mock .m-sb-box i { height: 68px; margin: 8px; font-size: 0.78rem; border-radius: 7px; }

/* MEDIA MANAGER GRID (OWNER & ADMIN PANEL) */
.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.15rem;
}

.media-card {
	border: 1px solid var(--border-strong);
	border-radius: 15px;
	overflow: hidden;
	background: var(--bg-soft);
	display: flex;
	flex-direction: column;
}

.media-card-body {
	padding: 1rem 1.05rem;
}

/* LIGHTBOX OVERLAY */
.ib-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(2, 6, 23, 0.88);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.ib-lightbox[hidden] { display: none; }

.ib-lightbox-inner {
	position: relative;
	max-width: min(1160px, 96vw);
	max-height: 92vh;
}

.ib-lightbox-inner img {
	max-width: 100%;
	max-height: 86vh;
	border-radius: 14px;
	box-shadow: 0 28px 64px rgba(0, 0, 0, 0.7);
}

.ib-lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: #0f172a;
	color: #ffffff;
	font-size: 1.1rem;
	font-weight: 900;
	cursor: pointer;
}

/* === UPGRADE V5: BLOG SEO === */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.35rem;
}

.blog-card {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--border);
	border-top: 3.5px solid var(--primary-bright);
	border-radius: 16px;
	padding: 1.45rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.72rem;
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .blog-card {
	background: rgba(15, 26, 46, 0.88);
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.blog-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

.blog-card-title {
	margin: 0;
	font-size: 1.18rem;
	font-weight: 850;
	line-height: 1.32;
	letter-spacing: -0.02em;
}

.blog-card-title a:hover { color: var(--primary-bright); }

.blog-card-excerpt {
	margin: 0;
	font-size: 0.89rem;
	color: var(--muted);
	line-height: 1.62;
}

.blog-card-foot {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.blog-prose h2 {
	margin: 1.55rem 0 0.6rem;
	font-size: 1.28rem;
	font-weight: 850;
	letter-spacing: -0.02em;
}

.blog-prose p {
	margin: 0 0 1rem;
	line-height: 1.78;
}

.blog-prose ul,
.blog-prose ol {
	margin: 0 0 1.15rem;
	padding-left: 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	line-height: 1.7;
}

.blog-prose code {
	background: var(--bg-soft);
	padding: 0.14rem 0.42rem;
	border-radius: 6px;
	font-size: 0.86em;
	border: 1px solid var(--border);
}

@media (max-width: 820px) {
	.blog-grid { grid-template-columns: 1fr; }
}

/* === UPGRADE V6: 4-CARD PRICING GRID (LIFETIME) === */
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 1.15rem !important; }
@media (max-width: 1120px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 680px) { .pricing-grid { grid-template-columns: 1fr !important; } }
