
:root{
	--tcp-primary:#0f172a;
	--tcp-secondary:#38bdf8;
	--tcp-accent:#22c55e;
	--tcp-surface:#ffffff;
	--tcp-surface-soft:#f8fafc;
	--tcp-surface-alt:#eef6fb;
	--tcp-border:#dbe3ee;
	--tcp-border-strong:#b9c7d9;
	--tcp-text:#0f172a;
	--tcp-muted:#64748b;
	--tcp-danger:#0f172a;
	--tcp-shadow:0 16px 40px rgba(15, 23, 42, .07);
	--tcp-shadow-soft:0 8px 24px rgba(15, 23, 42, .05);
	--tcp-radius:22px;
	--tcp-radius-sm:16px;
	--tcp-font:'Estedad','Vazirmatn',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

.tcp-theme-portal .tcp-portal,
.tcp-theme-portal .tcp-box,
.tcp-theme-portal .tcp-empty,
.tcp-theme-portal .tcp-product-card{
	font-family:var(--tcp-font);
}

.tcp-theme-portal *{
	box-sizing:border-box;
}

.tcp-portal{
	direction:rtl;
	width:min(1440px, 88vw);
	margin:28px auto;
	color:var(--tcp-text);
	display:grid;
	gap:18px;
}

.tcp-dashboard-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:18px;
	align-items:start;
}

.tcp-span-2{
	grid-column:1 / -1;
}

.tcp-panel-card,
.tcp-hero,
.tcp-box,
.tcp-empty,
.tcp-product-card,
.tcp-notice,
.tcp-staff-card,
.tcp-staff-list-panel,
.tcp-staff-form-panel{
	border:1px solid var(--tcp-border);
	background:var(--tcp-surface);
	box-shadow:var(--tcp-shadow);
	border-radius:var(--tcp-radius);
}

.tcp-panel-card,
.tcp-box,
.tcp-empty,
.tcp-staff-list-panel,
.tcp-staff-form-panel,
.tcp-product-card{
	padding:22px;
}

.tcp-hero{
	display:flex;
	justify-content:space-between;
	gap:18px;
	padding:28px;
	background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
}

.tcp-kicker{
	display:inline-flex;
	padding:8px 14px;
	border-radius:999px;
	background:rgba(34,197,94,.12);
	color:var(--tcp-accent);
	font-weight:800;
	font-size:13px;
	margin-bottom:14px;
}

.tcp-title{margin:0 0 10px 0;font-size:30px;line-height:1.3;color:var(--tcp-primary);}
.tcp-subtitle{margin:0;color:var(--tcp-muted);max-width:760px;line-height:1.9;font-size:15px;}

.tcp-hero-badge{
	min-width:170px;
	padding:20px;
	border-radius:18px;
	background:var(--tcp-primary);
	color:#fff;
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	text-align:center;
}

.tcp-badge-label{opacity:.72;font-size:13px;margin-bottom:8px;}
.tcp-badge-value{font-size:28px;font-weight:800;}

.tcp-panel-head{
	display:flex;
	justify-content:space-between;
	align-items:flex-start;
	gap:14px;
	margin-bottom:16px;
}

.tcp-panel-head-compact{
	margin-bottom:18px;
}

.tcp-panel-head h2,
.tcp-panel-head h3,
.tcp-panel-head h4{
	margin:0 0 6px 0;
	color:var(--tcp-primary);
}

.tcp-panel-head p{
	margin:0;
	color:var(--tcp-muted);
	line-height:1.8;
	font-size:13px;
}

.tcp-panel-actions{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	justify-content:flex-end;
}

.tcp-metrics{
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:12px;
	margin-top:10px;
}

.tcp-metric{
	padding:14px 16px;
	border-radius:18px;
	border:1px solid var(--tcp-border);
	background:var(--tcp-surface-soft);
	box-shadow:var(--tcp-shadow-soft);
}

.tcp-metric span{
	display:block;
	font-size:12px;
	color:var(--tcp-muted);
	margin-bottom:6px;
}

.tcp-metric strong{
	display:block;
	color:var(--tcp-primary);
	font-size:15px;
	line-height:1.7;
}

.tcp-grid-2{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:16px;
}

.tcp-panel-mini{
	padding:18px;
	border:1px solid var(--tcp-border);
	border-radius:20px;
	background:var(--tcp-surface-soft);
}

.tcp-panel-mini h4{
	margin:0 0 12px;
	color:var(--tcp-primary);
}

.tcp-box{padding:20px;}

.tcp-form{
	display:grid;
	gap:10px;
}

.tcp-form label{
	font-size:13px;
	font-weight:800;
	color:var(--tcp-primary);
}

.tcp-form input,
.tcp-form textarea,
.tcp-form select{
	width:100%;
	border:1px solid var(--tcp-border-strong);
	border-radius:14px;
	padding:12px 14px;
	background:#fff;
	color:var(--tcp-text);
	outline:none;
	transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;
}

.tcp-form input:focus,
.tcp-form textarea:focus,
.tcp-form select:focus{
	border-color:var(--tcp-secondary);
	box-shadow:0 0 0 4px rgba(56,189,248,.12);
}

.tcp-form textarea{
	resize:vertical;
	min-height:110px;
}

.tcp-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	padding:12px 18px;
	border-radius:999px;
	border:none;
	text-decoration:none;
	cursor:pointer;
	font-weight:800;
	transition:.2s ease;
}

.tcp-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{
	transform:translateY(-1px);
}

.tcp-btn-primary{background:var(--tcp-accent);color:#fff;}
.tcp-btn-secondary{background:rgba(56,189,248,.12);color:var(--tcp-primary);}
.tcp-link{font-weight:800;color:var(--tcp-secondary);text-decoration:none;}
.tcp-link-danger{color:var(--tcp-primary);}
.tcp-muted{color:var(--tcp-muted);font-size:13px;line-height:1.8;}
.tcp-empty{padding:20px;text-align:center;color:var(--tcp-muted);}
.tcp-notice{padding:14px 16px;margin-bottom:12px;}
.tcp-notice-success{border-color:rgba(34,197,94,.22);background:rgba(34,197,94,.08);}
.tcp-notice-info{border-color:rgba(56,189,248,.22);background:rgba(56,189,248,.08);}

.tcp-list{display:grid;gap:12px;}
.tcp-item{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:14px;
	padding:14px 16px;
	border:1px solid var(--tcp-border);
	border-radius:18px;
	background:var(--tcp-surface-soft);
}
.tcp-item-wrap{flex-wrap:wrap;}
.tcp-item-main{display:flex;flex-direction:column;gap:4px;min-width:0;}
.tcp-item-main strong{display:block;color:var(--tcp-primary);}
.tcp-item-actions{
	display:flex;
	align-items:center;
	gap:10px;
	flex-wrap:wrap;
	justify-content:flex-end;
}

.tcp-badge{
	display:inline-flex;
	align-items:center;
	padding:6px 10px;
	border-radius:999px;
	background:rgba(34,197,94,.12);
	color:var(--tcp-accent);
	font-size:12px;
	font-weight:800;
}
.tcp-badge-soft{
	background:rgba(15,23,42,.06);
	color:var(--tcp-primary);
}

.tcp-form-tabs{
	display:flex;
	gap:10px;
	margin-bottom:14px;
	flex-wrap:wrap;
}
.tcp-form-tabs button{
	border:1px solid var(--tcp-border);
	background:#fff;
	border-radius:999px;
	padding:10px 16px;
	cursor:pointer;
	font-weight:800;
}
.tcp-form-tabs .is-active{
	background:var(--tcp-primary);
	color:#fff;
	border-color:var(--tcp-primary);
}
.tcp-tab-panel{display:none;}
.tcp-tab-panel.is-active{display:block;}

.tcp-products{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:16px;
	margin-top:10px;
}
.tcp-product-card{overflow:hidden;padding:0;}
.tcp-product-media img{display:block;width:100%;height:auto;}
.tcp-product-body{padding:16px 18px 18px;}
.tcp-product-title{margin:0 0 8px 0;font-size:16px;}
.tcp-product-price{font-weight:800;margin-bottom:10px;color:var(--tcp-primary);}
.tcp-product-excerpt{margin-bottom:12px;color:var(--tcp-muted);line-height:1.8;font-size:13px;}

.tcp-header-btn{padding:10px 16px;}

.tcp-staff-layout{
	display:grid;
	grid-template-columns:1fr 1.2fr;
	gap:16px;
}
.tcp-staff-list-panel,.tcp-staff-form-panel{
	background:var(--tcp-surface-soft);
}
.tcp-staff-list .tcp-item.is-selected{
	border-color:var(--tcp-secondary);
	background:rgba(56,189,248,.08);
}
.tcp-staff-badges{
	display:flex;
	gap:8px;
	flex-wrap:wrap;
	justify-content:flex-end;
}
.tcp-staff-badge{
	display:inline-flex;
	align-items:center;
	padding:6px 10px;
	border-radius:999px;
	background:rgba(34,197,94,.12);
	color:var(--tcp-accent);
	font-size:12px;
	font-weight:800;
}
.tcp-staff-badge-soft{
	background:rgba(15,23,42,.06);
	color:var(--tcp-primary);
}
.tcp-staff-card{
	padding:16px;
	margin-bottom:16px;
}
.tcp-staff-card-compact{margin-bottom:12px;}
.tcp-staff-card-head{
	display:flex;
	gap:14px;
	align-items:center;
}
.tcp-staff-avatar{
	width:74px;
	height:74px;
	border-radius:22px;
	overflow:hidden;
	background:linear-gradient(135deg,rgba(56,189,248,.16),rgba(34,197,94,.12));
	display:flex;
	align-items:center;
	justify-content:center;
	flex:0 0 74px;
}
.tcp-avatar-img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}
.tcp-avatar-fallback{
	font-size:28px;
	font-weight:900;
	color:var(--tcp-primary);
}
.tcp-staff-name{margin:0;font-size:18px;color:var(--tcp-primary);}
.tcp-staff-meta{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:10px;
	margin-top:14px;
}
.tcp-inline-actions{
	display:flex;
	flex-wrap:wrap;
	gap:10px;
	margin-top:10px;
}
.tcp-inline-actions-end{
	justify-content:flex-end;
}
.tcp-divider{
	height:1px;
	background:var(--tcp-border);
	margin:8px 0 12px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button{
	background:var(--tcp-accent)!important;
	color:#fff!important;
}

.tcp-theme-portal .entry-content > .tcp-portal{
	max-width:none;
}

@media (max-width: 1200px){
	.tcp-portal{width:min(95vw, 1440px);}
	.tcp-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
	.tcp-products{grid-template-columns:repeat(2,minmax(0,1fr));}
	.tcp-staff-layout{grid-template-columns:1fr;}
	.tcp-staff-meta{grid-template-columns:1fr;}
}

@media (max-width: 960px){
	.tcp-dashboard-grid,
	.tcp-grid-2,
	.tcp-products{grid-template-columns:1fr;}
	.tcp-hero{flex-direction:column;}
	.tcp-item{flex-direction:column;align-items:flex-start;}
	.tcp-item-actions{justify-content:flex-start;}
	.tcp-panel-head{flex-direction:column;}
	.tcp-metrics{grid-template-columns:1fr;}
}

@media (max-width: 640px){
	.tcp-portal{width:min(96vw, 1440px);margin:16px auto;}
	.tcp-panel-card,
	.tcp-box,
	.tcp-empty,
	.tcp-staff-list-panel,
	.tcp-staff-form-panel{
		padding:16px;
		border-radius:18px;
	}
	.tcp-title{font-size:24px;}
	.tcp-hero{padding:20px;}
	.tcp-hero-badge{width:100%;min-width:0;}
}
