/*
 * Noya AI Business Studio — Public Styles
 * پالت: تیل نفتی #0F5257 / طلایی کهربایی #E8A54B
 * طراحی مدرن، RTL، واکنش‌گرا
 */

.noya-studio {
	--noya-teal: #0F5257;
	--noya-teal-700: #0c4448;
	--noya-teal-900: #082d30;
	--noya-teal-050: #eef5f5;
	--noya-teal-100: #dcebeb;
	--noya-gold: #E8A54B;
	--noya-gold-600: #d9963a;
	--noya-gold-050: #fdf6ea;
	--noya-ink: #14201f;
	--noya-muted: #5c6b6a;
	--noya-line: #e2e8e7;
	--noya-line-soft: #eef2f1;
	--noya-bg: #f6f9f8;
	--noya-surface: #ffffff;
	--noya-surface-2: #f9fbfb;
	--noya-danger: #c0392b;
	--noya-radius: 18px;
	--noya-radius-sm: 12px;
	--noya-shadow: 0 10px 30px -12px rgba(15, 82, 87, 0.18);
	--noya-shadow-lg: 0 24px 60px -20px rgba(15, 82, 87, 0.28);

	font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
	color: var(--noya-ink);
	background: var(--noya-bg);
	border-radius: var(--noya-radius);
	padding: clamp(16px, 3vw, 32px);
	max-width: 1080px;
	margin: 28px auto;
	box-shadow: var(--noya-shadow);
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	position: relative;
	overflow: hidden;
}

.noya-studio *,
.noya-studio *::before,
.noya-studio *::after {
	box-sizing: border-box;
}

/* تضمین عملکرد صحیح ویژگی hidden — حتی روی عناصری که display سفارشی دارند (مانند لایه‌ی بارگذاری) */
.noya-studio [hidden] {
	display: none !important;
}

.noya-studio button {
	font-family: inherit;
	cursor: pointer;
}

/* ===================== هدر ===================== */
.noya-studio__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--noya-line);
}
.noya-studio__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}
.noya-studio__mark {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(140deg, var(--noya-teal), var(--noya-teal-900));
	box-shadow: 0 8px 20px -8px rgba(15, 82, 87, 0.5);
	flex-shrink: 0;
}
.noya-studio__title {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	color: var(--noya-teal-900);
	line-height: 1.4;
}
.noya-studio__sub {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--noya-muted);
}

/* ===================== تب‌ها ===================== */
.noya-studio__tabs {
	display: flex;
	gap: 8px;
	background: var(--noya-surface);
	padding: 7px;
	border-radius: 16px;
	border: 1px solid var(--noya-line);
	margin-bottom: 24px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.noya-mtab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border: none;
	background: transparent;
	color: var(--noya-muted);
	font-size: 14px;
	font-weight: 600;
	border-radius: 11px;
	white-space: nowrap;
	transition: all .2s ease;
	flex: 1;
	justify-content: center;
}
.noya-mtab svg { opacity: .8; }
.noya-mtab:hover {
	color: var(--noya-teal);
	background: var(--noya-teal-050);
}
.noya-mtab.is-active {
	color: #fff;
	background: linear-gradient(140deg, var(--noya-teal), var(--noya-teal-700));
	box-shadow: 0 8px 18px -8px rgba(15, 82, 87, 0.6);
}
.noya-mtab.is-active svg { opacity: 1; }

/* ===================== ویوها ===================== */
.noya-view { display: none; animation: noya-fade .4s ease; }
.noya-view.is-active { display: block; }

@keyframes noya-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===================== انتخاب استراتژی ===================== */
.noya-strategy-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
}
.noya-strat-card {
	position: relative;
	text-align: right;
	padding: 22px 20px;
	border-radius: var(--noya-radius-sm);
	border: 1px solid var(--noya-line);
	background: var(--noya-surface);
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all .22s ease;
	overflow: hidden;
}
.noya-strat-card::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--noya-gold);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .25s ease;
}
.noya-strat-card:hover {
	border-color: var(--noya-teal-100);
	transform: translateY(-3px);
	box-shadow: var(--noya-shadow);
}
.noya-strat-card:hover::before { transform: scaleY(1); }
.noya-strat-card__icon {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--noya-teal-050);
	color: var(--noya-teal);
	display: grid;
	place-items: center;
}
.noya-strat-card__icon svg { width: 24px; height: 24px; }
.noya-strat-card__title {
	font-size: 16px;
	font-weight: 800;
	color: var(--noya-teal-900);
}
.noya-strat-card__desc {
	font-size: 12.5px;
	color: var(--noya-muted);
	line-height: 1.7;
}

/* ===================== فرم‌ها ===================== */
.noya-form-head { margin-bottom: 20px; }
.noya-form-head h3,
.noya-form-title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 800;
	color: var(--noya-teal-900);
}
.noya-form-head p,
.noya-form-desc {
	margin: 0;
	font-size: 13.5px;
	color: var(--noya-muted);
}

.noya-back {
	border: none;
	background: none;
	color: var(--noya-teal);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 0;
	margin-bottom: 14px;
}
.noya-back:hover { color: var(--noya-gold-600); }

.noya-qform { display: block; }
.noya-qfields { display: grid; gap: 16px; margin-bottom: 22px; }

.noya-field { display: flex; flex-direction: column; gap: 7px; }
.noya-field > label {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--noya-teal-900);
}
.noya-field .req { color: var(--noya-gold-600); }
.noya-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.noya-qform .noya-field { margin-bottom: 16px; }
.noya-qform .noya-grid2 .noya-field { margin-bottom: 0; }
.noya-qfields .noya-field { margin-bottom: 0; }

.noya-field input[type="text"],
.noya-field input[type="number"],
.noya-field select,
.noya-field textarea {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	color: var(--noya-ink);
	background: var(--noya-surface);
	border: 1.5px solid var(--noya-line);
	border-radius: 11px;
	padding: 12px 14px;
	transition: border-color .18s ease, box-shadow .18s ease;
	line-height: 1.7;
}
.noya-field textarea { resize: vertical; min-height: 60px; }
.noya-field input::placeholder,
.noya-field textarea::placeholder { color: #a6b2b1; }
.noya-field input:focus,
.noya-field select:focus,
.noya-field textarea:focus {
	outline: none;
	border-color: var(--noya-teal);
	box-shadow: 0 0 0 4px var(--noya-teal-050);
}

/* Segment control */
.noya-segment {
	display: inline-flex;
	gap: 4px;
	background: var(--noya-teal-050);
	padding: 5px;
	border-radius: 12px;
	border: 1px solid var(--noya-line-soft);
	width: fit-content;
}
.noya-seg {
	border: none;
	background: transparent;
	color: var(--noya-muted);
	font-size: 13.5px;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 9px;
	transition: all .18s ease;
}
.noya-seg:hover { color: var(--noya-teal); }
.noya-seg.is-active {
	background: var(--noya-surface);
	color: var(--noya-teal-900);
	box-shadow: 0 3px 8px -3px rgba(15, 82, 87, 0.25);
}

/* ===================== دکمه‌ها ===================== */
.noya-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 12px;
	padding: 14px 26px;
	font-size: 15px;
	font-weight: 800;
	font-family: inherit;
	transition: all .2s ease;
	text-decoration: none;
}
.noya-btn--primary {
	color: #fff;
	background: linear-gradient(135deg, var(--noya-teal), var(--noya-teal-700));
	box-shadow: 0 12px 24px -12px rgba(15, 82, 87, 0.7);
	width: 100%;
}
.noya-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -12px rgba(15, 82, 87, 0.8);
}
.noya-btn--primary:active { transform: translateY(0); }
.noya-btn--primary:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}
.noya-generate { position: relative; }

/* ===================== گیت ورود ===================== */
.noya-gate {
	text-align: center;
	padding: 48px 24px;
	background: var(--noya-surface);
	border-radius: var(--noya-radius);
	border: 1px dashed var(--noya-line);
}
.noya-gate__icon { font-size: 42px; margin-bottom: 8px; }
.noya-gate h3 { margin: 0 0 8px; font-size: 20px; color: var(--noya-teal-900); }
.noya-gate p { margin: 0 0 20px; color: var(--noya-muted); font-size: 14px; }
.noya-gate .noya-btn { width: auto; }

/* ===================== لودینگ ===================== */
.noya-loading {
	position: absolute;
	inset: 0;
	background: rgba(246, 249, 248, 0.86);
	backdrop-filter: blur(4px);
	display: grid;
	place-items: center;
	z-index: 30;
}
.noya-loading__box {
	text-align: center;
	background: var(--noya-surface);
	padding: 34px 40px;
	border-radius: var(--noya-radius);
	box-shadow: var(--noya-shadow-lg);
	border: 1px solid var(--noya-line);
	max-width: 340px;
}
.noya-spinner {
	display: inline-flex;
	gap: 7px;
	margin-bottom: 16px;
}
.noya-spinner span {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--noya-teal);
	animation: noya-bounce 1.2s infinite ease-in-out both;
}
.noya-spinner span:nth-child(1) { background: var(--noya-teal); animation-delay: -0.24s; }
.noya-spinner span:nth-child(2) { background: var(--noya-gold); animation-delay: -0.12s; }
.noya-spinner span:nth-child(3) { background: var(--noya-teal-700); }
@keyframes noya-bounce {
	0%, 80%, 100% { transform: scale(0.5); opacity: .5; }
	40% { transform: scale(1); opacity: 1; }
}
.noya-loading__text { margin: 0 0 4px; font-weight: 800; color: var(--noya-teal-900); font-size: 15px; }
.noya-loading__hint { margin: 0; font-size: 12.5px; color: var(--noya-muted); }

/* ===================== نتیجه ===================== */
.noya-result {
	margin-top: 26px;
	background: var(--noya-surface);
	border-radius: var(--noya-radius);
	border: 1px solid var(--noya-line);
	box-shadow: var(--noya-shadow);
	overflow: hidden;
	animation: noya-fade .4s ease;
}
.noya-result__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	background: linear-gradient(135deg, var(--noya-teal), var(--noya-teal-900));
	color: #fff;
	flex-wrap: wrap;
}
.noya-result__meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.noya-result__badge {
	background: var(--noya-gold);
	color: var(--noya-teal-900);
	font-size: 11.5px;
	font-weight: 800;
	padding: 5px 12px;
	border-radius: 20px;
	white-space: nowrap;
}
.noya-result__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.noya-result__actions { display: flex; gap: 7px; flex-shrink: 0; }
.noya-chip-btn {
	border: 1px solid rgba(255,255,255,0.35);
	background: rgba(255,255,255,0.12);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 9px;
	transition: all .18s ease;
}
.noya-chip-btn:hover { background: rgba(255,255,255,0.24); }
.noya-result__content { padding: clamp(20px, 4vw, 38px); }

/* ===================== تایپوگرافی محتوای تولیدشده ===================== */
.noya-content { color: var(--noya-ink); font-size: 15px; line-height: 2.05; }
.noya-content > *:first-child { margin-top: 0; }
.noya-content > *:last-child { margin-bottom: 0; }
.noya-content h2 {
	font-size: 21px;
	font-weight: 800;
	color: var(--noya-teal-900);
	margin: 34px 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--noya-teal-050);
	position: relative;
}
.noya-content h2::after {
	content: "";
	position: absolute;
	bottom: -2px;
	inset-inline-start: 0;
	width: 60px;
	height: 2px;
	background: var(--noya-gold);
}
.noya-content h3 {
	font-size: 17.5px;
	font-weight: 800;
	color: var(--noya-teal-700);
	margin: 26px 0 10px;
	padding-inline-start: 12px;
	border-inline-start: 4px solid var(--noya-gold);
}
.noya-content h4 {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--noya-teal-900);
	margin: 20px 0 8px;
}
.noya-content p { margin: 0 0 14px; }
.noya-content ul,
.noya-content ol { margin: 0 0 16px; padding-inline-start: 24px; }
.noya-content li { margin-bottom: 8px; }
.noya-content ul li::marker { color: var(--noya-gold-600); }
.noya-content ol li::marker { color: var(--noya-teal); font-weight: 700; }
.noya-content strong { color: var(--noya-teal-900); font-weight: 800; }
.noya-content a { color: var(--noya-teal); text-decoration: underline; text-underline-offset: 3px; }
.noya-content hr { border: none; border-top: 1px solid var(--noya-line); margin: 26px 0; }
.noya-content blockquote {
	margin: 16px 0;
	padding: 14px 18px;
	background: var(--noya-gold-050);
	border-inline-start: 4px solid var(--noya-gold);
	border-radius: 0 10px 10px 0;
	color: #6b5424;
	font-size: 14px;
}

/* جداول */
.noya-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 18px 0 22px;
	font-size: 13.5px;
	border: 1px solid var(--noya-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 14px -10px rgba(15,82,87,0.3);
}
.noya-content thead th {
	background: linear-gradient(135deg, var(--noya-teal), var(--noya-teal-700));
	color: #fff;
	font-weight: 700;
	text-align: right;
	padding: 12px 14px;
	font-size: 13px;
}
.noya-content tbody td {
	padding: 11px 14px;
	border-top: 1px solid var(--noya-line-soft);
	vertical-align: top;
	line-height: 1.8;
}
.noya-content tbody tr:nth-child(even) { background: var(--noya-surface-2); }
.noya-content tbody tr:hover { background: var(--noya-teal-050); }

/* ===================== تاریخچه ===================== */
.noya-history-list { display: grid; gap: 10px; }
.noya-hist-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	background: var(--noya-surface);
	border: 1px solid var(--noya-line);
	border-radius: var(--noya-radius-sm);
	transition: all .18s ease;
}
.noya-hist-item:hover {
	border-color: var(--noya-teal-100);
	box-shadow: var(--noya-shadow);
}
.noya-hist-main { min-width: 0; }
.noya-hist-title {
	font-weight: 700;
	color: var(--noya-teal-900);
	font-size: 14.5px;
	margin: 0 0 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.noya-hist-meta { font-size: 12px; color: var(--noya-muted); display: flex; gap: 8px; align-items: center; }
.noya-hist-badge {
	background: var(--noya-teal-050);
	color: var(--noya-teal);
	padding: 3px 10px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 11px;
}
.noya-hist-actions { display: flex; gap: 6px; flex-shrink: 0; }
.noya-hist-btn {
	border: 1px solid var(--noya-line);
	background: var(--noya-surface);
	color: var(--noya-teal);
	font-size: 12.5px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 9px;
	transition: all .16s ease;
}
.noya-hist-btn:hover { background: var(--noya-teal-050); border-color: var(--noya-teal-100); }
.noya-hist-btn.is-danger { color: var(--noya-danger); }
.noya-hist-btn.is-danger:hover { background: #fdecea; border-color: #f5c6c0; }

/* حالت خالی / خطا */
.noya-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: var(--noya-muted);
	background: var(--noya-surface);
	border: 1px dashed var(--noya-line);
	border-radius: var(--noya-radius-sm);
	font-size: 14px;
}
.noya-toast {
	margin-bottom: 16px;
	padding: 13px 18px;
	border-radius: 11px;
	font-size: 13.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}
.noya-toast--error { background: #fdecea; color: var(--noya-danger); border: 1px solid #f5c6c0; }
.noya-toast--ok { background: var(--noya-teal-050); color: var(--noya-teal); border: 1px solid var(--noya-teal-100); }

/* ===================== فوتر ===================== */
.noya-studio__footer {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--noya-line);
	text-align: center;
	font-size: 12.5px;
	color: var(--noya-muted);
}
.noya-studio__footer strong { color: var(--noya-teal); }

/* ===================== واکنش‌گرا ===================== */
@media (max-width: 680px) {
	.noya-studio { margin: 14px auto; padding: 16px; border-radius: 14px; }
	.noya-grid2 { grid-template-columns: 1fr; }
	.noya-mtab span { display: none; }
	.noya-mtab { flex: 0 0 auto; padding: 11px 14px; }
	.noya-strategy-picker { grid-template-columns: 1fr; }
	.noya-result__bar { flex-direction: column; align-items: flex-start; }
	.noya-content { font-size: 14.5px; }
	.noya-content table { font-size: 12.5px; display: block; overflow-x: auto; }
}

/* دسترس‌پذیری */
.noya-studio :focus-visible {
	outline: 2px solid var(--noya-gold);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.noya-studio *,
	.noya-studio *::before,
	.noya-studio *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* چاپ */
@media print {
	body * { visibility: hidden; }
	.noya-result, .noya-result * { visibility: visible; }
	.noya-result { position: absolute; inset: 0; box-shadow: none; border: none; }
	.noya-result__actions { display: none; }
}

/* ===================== تولید محتوا ===================== */
.noya-subnav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--noya-line);
}
.noya-sub {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--noya-line);
	background: var(--noya-surface);
	color: var(--noya-muted);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	padding: 9px 16px;
	border-radius: 11px;
	transition: all .18s ease;
}
.noya-sub svg { opacity: .85; }
.noya-sub:hover { color: var(--noya-teal); border-color: var(--noya-teal-100); }
.noya-sub.is-active {
	color: #fff;
	background: linear-gradient(140deg, var(--noya-teal), var(--noya-teal-700));
	border-color: transparent;
	box-shadow: 0 8px 18px -8px rgba(15, 82, 87, 0.6);
}
.noya-subpanel { display: none; animation: noya-fade .35s ease; }
.noya-subpanel.is-active { display: block; }

/* جعبه‌ی راهنما */
.noya-help {
	background: var(--noya-teal-050);
	border: 1px solid var(--noya-teal-100);
	border-radius: var(--noya-radius-sm);
	padding: 13px 16px;
	font-size: 13px;
	line-height: 1.9;
	color: var(--noya-teal-900);
	margin-bottom: 18px;
}
.noya-help strong { color: var(--noya-teal); }

/* فرم محتوا */
.noya-cform .noya-field { margin-bottom: 16px; }
.noya-cform .noya-grid2 .noya-field { margin-bottom: 0; }
.noya-fhint { font-size: 11.5px; color: var(--noya-muted); line-height: 1.7; margin-top: -1px; }

/* آپلود فایل */
.noya-upload { position: relative; display: block; }
.noya-file {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.noya-upload__label {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	font-size: 13.5px;
	color: var(--noya-muted);
	background: var(--noya-surface);
	border: 1.5px dashed var(--noya-line);
	border-radius: 11px;
	padding: 12px 14px;
	transition: border-color .18s ease, color .18s ease;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.noya-upload__label::before {
	content: "📎";
	font-size: 15px;
}
.noya-upload:hover .noya-upload__label { border-color: var(--noya-teal); color: var(--noya-teal); }

/* چک‌باکس خطی */
.noya-checkline {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: var(--noya-teal-900);
	background: var(--noya-gold-050);
	border: 1px solid var(--noya-gold);
	border-radius: 11px;
	padding: 12px 14px;
	margin-bottom: 18px;
	line-height: 1.7;
	cursor: pointer;
}
.noya-checkline input { margin-top: 3px; accent-color: var(--noya-teal); }

/* سگمنت چندخطی + زیرنویس */
.noya-segment--wrap {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 6px;
}
.noya-segment--wrap .noya-seg {
	flex: 1 1 auto;
	text-align: center;
	line-height: 1.4;
	padding: 8px 14px;
}
.noya-seg small {
	display: block;
	font-size: 10px;
	font-weight: 600;
	opacity: .65;
	margin-top: 1px;
}

/* ===================== پنل کانواس ===================== */
.noya-canvas-panel {
	margin-top: 24px;
	background: var(--noya-surface);
	border: 1px solid var(--noya-line);
	border-radius: var(--noya-radius);
	box-shadow: var(--noya-shadow);
	overflow: hidden;
	animation: noya-fade .4s ease;
}
.noya-canvas-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	background: linear-gradient(135deg, var(--noya-teal), var(--noya-teal-900));
	color: #fff;
	flex-wrap: wrap;
}
.noya-canvas-title { font-size: 14.5px; font-weight: 800; }
.noya-canvas-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.noya-chip-btn.is-primary {
	background: var(--noya-gold);
	color: var(--noya-teal-900);
	border-color: transparent;
}
.noya-chip-btn.is-primary:hover { background: var(--noya-gold-600); color: #fff; }

.noya-canvas-wrap {
	display: flex;
	gap: 18px;
	padding: 18px;
	align-items: flex-start;
}
.noya-canvas-stage {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background: repeating-conic-gradient(#eef3f3 0% 25%, #f7fafa 0% 50%) 50% / 22px 22px;
	border: 1px solid var(--noya-line-soft);
	border-radius: var(--noya-radius-sm);
	padding: 16px;
	max-height: 74vh;
	overflow: auto;
}
.noya-canvas {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 68vh;
	border-radius: 8px;
	box-shadow: 0 10px 30px -12px rgba(9, 30, 32, 0.5);
}
.noya-canvas-editor {
	flex: 0 0 320px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.noya-editor-title {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	color: var(--noya-teal-900);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--noya-line);
}
.noya-editor-fields { display: flex; flex-direction: column; gap: 11px; max-height: 42vh; overflow-y: auto; padding-inline-end: 4px; }
.noya-efield { display: flex; flex-direction: column; gap: 5px; }
.noya-efield > span { font-size: 12px; font-weight: 700; color: var(--noya-teal-900); }
.noya-efield input,
.noya-efield textarea {
	width: 100%;
	font-family: inherit;
	font-size: 13px;
	color: var(--noya-ink);
	background: var(--noya-surface);
	border: 1.5px solid var(--noya-line);
	border-radius: 9px;
	padding: 8px 11px;
	line-height: 1.7;
	transition: border-color .18s ease;
}
.noya-efield textarea { resize: vertical; min-height: 44px; }
.noya-efield input:focus,
.noya-efield textarea:focus { outline: none; border-color: var(--noya-teal); }
.noya-egroup {
	border: 1px solid var(--noya-line-soft);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--noya-surface-2);
}
.noya-egroup__title { font-size: 11.5px; font-weight: 800; color: var(--noya-teal); }
.noya-editor-tools {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--noya-line);
}
.noya-editor-tools .noya-field { margin-bottom: 0; }
.noya-editor-tools .noya-canvas-theme {
	width: 100%;
	font-family: inherit;
	font-size: 13px;
	color: var(--noya-ink);
	background: var(--noya-surface);
	border: 1.5px solid var(--noya-line);
	border-radius: 9px;
	padding: 9px 11px;
}
.noya-canvas-clearimg { width: 100%; }
.noya-editor-note { margin: 0; font-size: 11.5px; color: var(--noya-muted); line-height: 1.8; }

/* ===================== نتیجه‌ی سئو ===================== */
.noya-seo { display: grid; gap: 14px; margin-bottom: 8px; }
.noya-seo-block {
	border: 1px solid var(--noya-line);
	border-radius: var(--noya-radius-sm);
	padding: 13px 15px;
	background: var(--noya-surface-2);
}
.noya-seo-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 9px;
}
.noya-seo-block__label { font-size: 12.5px; font-weight: 800; color: var(--noya-teal); display: flex; align-items: center; gap: 8px; }
.noya-seo-block__body { font-size: 14px; color: var(--noya-ink); line-height: 1.9; word-break: break-word; }
.noya-copy-chip {
	border: 1px solid var(--noya-line);
	background: var(--noya-surface);
	color: var(--noya-teal);
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 8px;
	white-space: nowrap;
	transition: all .16s ease;
	flex-shrink: 0;
}
.noya-copy-chip:hover { background: var(--noya-teal-050); border-color: var(--noya-teal-100); }
.noya-count { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.noya-count.is-ok { background: var(--noya-teal-050); color: var(--noya-teal); }
.noya-count.is-warn { background: var(--noya-gold-050); color: var(--noya-gold-600); }
.noya-kw-list { display: flex; flex-wrap: wrap; gap: 7px; }
.noya-kw {
	display: inline-block;
	background: var(--noya-teal-050);
	color: var(--noya-teal);
	font-size: 12.5px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 8px;
}
.noya-kw.is-primary { background: var(--noya-gold); color: var(--noya-teal-900); font-weight: 800; }
.noya-slug {
	display: inline-block;
	background: var(--noya-teal-900);
	color: #d7efec;
	font-family: "Courier New", monospace;
	font-size: 13px;
	padding: 6px 12px;
	border-radius: 8px;
	direction: ltr;
	unicode-bidi: embed;
}
.noya-outline { margin: 0; padding-inline-start: 22px; }
.noya-outline li { margin-bottom: 6px; color: var(--noya-ink); }
.noya-outline li::marker { color: var(--noya-gold-600); font-weight: 700; }
.noya-seo-bodyhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 22px 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--noya-teal-050);
	font-size: 15px;
	font-weight: 800;
	color: var(--noya-teal-900);
}

/* ===================== واکنش‌گرا (تولید محتوا) ===================== */
@media (max-width: 820px) {
	.noya-canvas-wrap { flex-direction: column; }
	.noya-canvas-editor { flex: 1 1 auto; max-width: 100%; width: 100%; }
	.noya-editor-fields { max-height: none; }
	.noya-canvas-stage { width: 100%; max-height: 62vh; }
}
@media (max-width: 680px) {
	.noya-sub span { font-size: 12.5px; }
	.noya-sub { padding: 8px 12px; }
	.noya-canvas-wrap { padding: 12px; gap: 14px; }
	.noya-canvas-stage { padding: 10px; }
	.noya-seo-block__head { flex-wrap: wrap; }
}

/* ===================== نشان سکه و کاربر در هدر ===================== */
.noya-header-user {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.noya-coin-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--noya-gold);
	background: var(--noya-gold-050);
	color: #6b5424;
	padding: 8px 14px;
	border-radius: 30px;
	font-family: inherit;
	transition: all .18s ease;
}
.noya-coin-badge:hover { background: var(--noya-gold); color: #4a3617; transform: translateY(-1px); }
.noya-coin-badge svg { color: var(--noya-gold-600); flex-shrink: 0; }
.noya-coin-badge:hover svg { color: #4a3617; }
.noya-coin-badge__num { font-weight: 800; font-size: 14px; }
.noya-coin-badge__label { font-size: 12px; font-weight: 600; opacity: .85; }
.noya-header-user__info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.noya-header-user__name { font-size: 12.5px; font-weight: 700; color: var(--noya-teal-900); }
.noya-logout-link { font-size: 11.5px; color: var(--noya-muted); text-decoration: none; }
.noya-logout-link:hover { color: var(--noya-danger); text-decoration: underline; }

/* ===================== ورود/ثبت‌نام (موبایل و ایمیل) ===================== */
.noya-gate--auth { max-width: 420px; margin: 0 auto; padding: 40px 26px; }
.noya-gate--auth .noya-field { text-align: right; margin-bottom: 14px; }
.noya-auth-form,
.noya-otp-form,
.noya-email-auth-form,
.noya-email-otp-form { text-align: right; margin-top: 22px; }
.noya-otp-info { font-size: 13px; color: var(--noya-muted); margin: 0 0 14px; text-align: center; }
.noya-otp-form input[name="code"],
.noya-email-otp-form input[name="code"] { text-align: center; letter-spacing: 4px; font-size: 20px; font-weight: 800; }
.noya-otp-form .noya-back,
.noya-email-otp-form .noya-back { display: block; margin: 12px auto 0; text-align: center; }

.noya-auth-methods {
	display: flex;
	gap: 8px;
	margin-top: 22px;
	background: var(--noya-surface-2);
	border: 1px solid var(--noya-line);
	border-radius: 12px;
	padding: 5px;
}
.noya-auth-method {
	flex: 1 1 0;
	border: none;
	background: transparent;
	color: var(--noya-muted);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 10px;
	border-radius: 9px;
	transition: all .18s ease;
}
.noya-auth-method:hover { color: var(--noya-teal); }
.noya-auth-method.is-active {
	background: var(--noya-surface);
	color: var(--noya-teal);
	box-shadow: 0 4px 12px -6px rgba(15,82,87,.3);
}
.noya-auth-panel { display: none; }
.noya-auth-panel.is-active { display: block; }

.noya-spam-note {
	font-size: 12px;
	color: var(--noya-gold-600);
	background: var(--noya-gold-050);
	border: 1px solid #f0d9b0;
	border-radius: 9px;
	padding: 9px 12px;
	margin: 0 0 14px;
	text-align: center;
	line-height: 1.8;
}

/* ===================== کیف‌پول ===================== */
.noya-balance-card {
	background: linear-gradient(135deg, var(--noya-teal), var(--noya-teal-900));
	color: #fff;
	border-radius: var(--noya-radius);
	padding: 26px 28px;
	margin-bottom: 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	box-shadow: 0 14px 30px -14px rgba(15, 82, 87, 0.55);
}
.noya-balance-card__label { font-size: 13.5px; opacity: .85; font-weight: 600; }
.noya-balance-card__amount { display: flex; align-items: baseline; gap: 8px; }
.noya-balance-num { font-size: 34px; font-weight: 800; color: var(--noya-gold); }
.noya-balance-card__amount span:last-child { font-size: 14px; opacity: .85; }

.noya-wallet-head { margin: 26px 0 10px; }
.noya-wallet-head h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; color: var(--noya-teal-900); }
.noya-wallet-head p { margin: 0; font-size: 12.5px; color: var(--noya-muted); }

.noya-help--warn { background: var(--noya-gold-050); border-color: #f0d9b0; color: #7a5a1e; margin-top: 10px; }
.noya-help--warn strong { color: #7a5a1e; }

/* پلن‌ها */
.noya-plans-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.noya-plan-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	background: var(--noya-surface);
	border: 1px solid var(--noya-line);
	border-radius: var(--noya-radius-sm);
	padding: 22px 16px;
	transition: all .2s ease;
}
.noya-plan-card:hover { border-color: var(--noya-teal-100); box-shadow: var(--noya-shadow); transform: translateY(-3px); }
.noya-plan-card__name {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--noya-teal);
	background: var(--noya-teal-050);
	padding: 4px 14px;
	border-radius: 20px;
}
.noya-plan-card__coins { font-size: 26px; font-weight: 800; color: var(--noya-teal-900); }
.noya-plan-card__coins small { font-size: 12px; font-weight: 600; color: var(--noya-muted); margin-inline-start: 4px; }
.noya-plan-card__price { font-size: 15px; font-weight: 700; color: var(--noya-gold-600); }
.noya-plan-card__price small { font-size: 11px; font-weight: 600; color: var(--noya-muted); margin-inline-start: 4px; }
.noya-plan-card .noya-btn { width: 100%; margin-top: 6px; padding: 11px 18px; font-size: 13.5px; }

/* جدول هزینه‌ی قابلیت‌ها */
.noya-cost-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.noya-cost-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: var(--noya-surface-2);
	border: 1px solid var(--noya-line-soft);
	border-radius: 9px;
	font-size: 13px;
}
.noya-cost-item strong { color: var(--noya-teal); font-weight: 800; }
.noya-cost-note { margin: 8px 2px 0; font-size: 11px; color: var(--noya-muted); }

/* تراکنش‌ها */
.noya-tx-list { display: grid; gap: 8px; }
.noya-tx-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	background: var(--noya-surface);
	border: 1px solid var(--noya-line);
	border-radius: var(--noya-radius-sm);
}
.noya-tx-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.noya-tx-label { font-size: 13.5px; font-weight: 700; color: var(--noya-teal-900); }
.noya-tx-date { font-size: 11.5px; color: var(--noya-muted); }
.noya-tx-amount { font-size: 15px; font-weight: 800; flex-shrink: 0; }
.noya-tx-amount.is-plus { color: #1a7a4a; }
.noya-tx-amount.is-minus { color: var(--noya-danger); }

/* ===================== واکنش‌گرا (کیف‌پول/هدر/ورود) ===================== */
@media (max-width: 680px) {
	.noya-studio__header { flex-wrap: wrap; }
	.noya-header-user { width: 100%; justify-content: space-between; }
	.noya-balance-card { flex-direction: column; align-items: flex-start; padding: 20px 20px; }
	.noya-plans-grid { grid-template-columns: 1fr; }
	.noya-cost-table { grid-template-columns: 1fr; }
	.noya-gate--auth { padding: 28px 18px; max-width: 100%; }
}

/* ===================== تولید عکس با هوش مصنوعی ===================== */
.noya-aiimage-form textarea {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	color: var(--noya-ink);
	background: var(--noya-surface);
	border: 1.5px solid var(--noya-line);
	border-radius: 12px;
	padding: 12px 14px;
	line-height: 1.9;
	resize: vertical;
	transition: border-color .18s ease;
}
.noya-aiimage-form textarea:focus { outline: none; border-color: var(--noya-teal); }

.noya-aiimage-result {
	margin-top: 26px;
	background: var(--noya-surface);
	border: 1px solid var(--noya-line);
	border-radius: var(--noya-radius);
	box-shadow: var(--noya-shadow);
	overflow: hidden;
	animation: noya-fade .4s ease;
}
.noya-aiimage-result__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-conic-gradient(#eef3f3 0% 25%, #f7fafa 0% 50%) 50% / 22px 22px;
	padding: 18px;
	max-height: 72vh;
	overflow: auto;
}
.noya-aiimage-result__img {
	max-width: 100%;
	max-height: 64vh;
	display: block;
	border-radius: 10px;
	box-shadow: 0 14px 34px -14px rgba(9, 30, 32, 0.5);
}
.noya-aiimage-result__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 16px 18px;
	border-top: 1px solid var(--noya-line);
}
.noya-aiimage-result__actions .noya-chip-btn {
	color: var(--noya-teal);
	border-color: var(--noya-line);
	background: var(--noya-surface);
}
.noya-aiimage-result__actions .noya-chip-btn:hover { background: var(--noya-teal-050); }

@media (max-width: 680px) {
	.noya-aiimage-result__stage { padding: 12px; max-height: 56vh; }
	.noya-aiimage-result__img { max-height: 50vh; }
}

/* ===================== تحلیل رقبا — آمار واقعی ===================== */
.noya-cmp-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 0 0 18px;
}
.noya-cmp-stats__item {
	background: var(--noya-surface-2);
	border: 1px solid var(--noya-line);
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.noya-cmp-stats__item span { font-size: 11.5px; color: var(--noya-muted); font-weight: 600; }
.noya-cmp-stats__item strong { font-size: 14px; color: var(--noya-ink); font-weight: 800; }

.noya-cmp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.noya-cmp-chips__label { font-size: 12.5px; font-weight: 700; color: var(--noya-muted); margin-left: 4px; }
.noya-cmp-chip {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 13px;
	border-radius: 20px;
	background: var(--noya-teal-050);
	color: var(--noya-teal);
	border: 1px solid var(--noya-teal-100);
}
.noya-cmp-chip--alt { background: var(--noya-gold-050); color: #8a5a10; border-color: #f0d9b0; }

@media (max-width: 680px) {
	.noya-cmp-stats { grid-template-columns: 1fr 1fr; }
}
