/* ============ یار — استایل اپ ============ */
.yar {
	--y-primary: #0f766e;
	--y-accent: #f59e0b;
	--y-bg: #f6f7f4;
	--y-surface: #ffffff;
	--y-surface-2: #eef1ec;
	--y-text: #1c2421;
	--y-muted: #6b756f;
	--y-line: #e2e6df;
	--y-danger: #dc2626;
	--y-ok: #16a34a;
	--y-shadow: 0 1px 2px rgba(20, 30, 25, .04), 0 12px 32px -18px rgba(20, 30, 25, .22);
	--y-radius: 18px;
	--y-font: Vazirmatn, "Vazirmatn FD", Vazir, Tahoma, "Segoe UI", sans-serif;
	--y-p-soft: color-mix(in srgb, var(--y-primary) 12%, transparent);
	--y-a-soft: color-mix(in srgb, var(--y-accent) 16%, transparent);
	font-family: var(--y-font);
	color: var(--y-text);
	background: var(--y-bg);
	direction: rtl;
	text-align: right;
	line-height: 1.75;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.yar[data-theme="dark"] {
	--y-bg: #0f1412;
	--y-surface: #171e1b;
	--y-surface-2: #1f2824;
	--y-text: #e8ece9;
	--y-muted: #93a19a;
	--y-line: #27322d;
	--y-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
	--y-p-soft: color-mix(in srgb, var(--y-primary) 24%, transparent);
}
.yar *, .yar *::before, .yar *::after { box-sizing: border-box; }
.yar :where(button, input, textarea, select) { font-family: inherit; font-size: inherit; color: inherit; }
.yar :where(a) { color: inherit; text-decoration: none; }
.yar img { max-width: 100%; display: block; }
.yar h1, .yar h2, .yar h3, .yar h4 { margin: 0; line-height: 1.4; font-weight: 800; letter-spacing: -.2px; }
.yar p { margin: 0 0 .6em; }
.yar svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yar .num { font-feature-settings: "tnum"; }

body.yar-body { margin: 0; background: #f6f7f4; }
.yar-full { min-height: 100vh; min-height: 100dvh; }
.yar-embed { border-radius: var(--y-radius); overflow: hidden; margin: 0 auto; max-width: 1280px; }

/* بارگذاری */
.y-boot { display: grid; place-items: center; min-height: 60vh; }
.y-boot span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--y-line); border-top-color: var(--y-primary); animation: yspin .8s linear infinite; }
@keyframes yspin { to { transform: rotate(360deg); } }

/* ============ چیدمان ============ */
.y-shell { min-height: inherit; position: relative; }
.yar-full .y-shell { background:
	radial-gradient(1200px 420px at 100% -10%, color-mix(in srgb, var(--y-primary) 10%, transparent), transparent 70%),
	radial-gradient(900px 380px at 0% -5%, color-mix(in srgb, var(--y-accent) 9%, transparent), transparent 70%); }

/* هدر */
.y-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--y-bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--y-line) 70%, transparent); }
.y-header-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; }
.y-header-act { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.y-brand { display: flex; align-items: center; gap: 10px; }
.y-logo { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(140deg, var(--y-primary), color-mix(in srgb, var(--y-primary) 65%, #000)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px; overflow: hidden; box-shadow: 0 6px 16px -8px var(--y-primary); }
.y-logo img { width: 100%; height: 100%; object-fit: cover; }
.y-brand b { font-size: 18px; display: block; line-height: 1.25; font-weight: 800; }
.y-brand small { color: var(--y-muted); font-size: 11.5px; display: block; line-height: 1.4; }
.y-burger { border-color: transparent; background: var(--y-surface); box-shadow: var(--y-shadow); }
.y-acc .y-av, .y-user .y-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--y-accent), color-mix(in srgb, var(--y-accent) 60%, #7c2d12)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }

/* منوی کشویی (به‌صورت پیش‌فرض بسته) */
.y-drawer-bg { position: fixed; inset: 0; z-index: 80; background: rgba(8, 14, 11, .42); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.y-drawer {
	position: fixed; top: 0; bottom: 0; right: 0; z-index: 90; width: min(320px, 86vw);
	background: var(--y-surface); border-left: 1px solid var(--y-line); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .35);
	display: flex; flex-direction: column; padding: 18px 14px calc(16px + env(safe-area-inset-bottom));
	transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden; overflow-y: auto;
}
.yar.menu-open .y-drawer { transform: none; visibility: visible; }
.yar.menu-open .y-drawer-bg { opacity: 1; pointer-events: auto; }
.yar-embed .y-drawer, .yar-embed .y-drawer-bg { position: absolute; }
.y-drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 18px; }
.y-nav { display: grid; gap: 2px; }
.y-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--y-muted); font-weight: 600; transition: background .15s, color .15s; }
.y-nav a:hover, .y-nav a:focus-visible { background: var(--y-surface-2); color: var(--y-text); outline: none; }
.y-nav a.on { background: var(--y-p-soft); color: var(--y-primary); }
.yar[data-theme="dark"] .y-nav a.on { color: color-mix(in srgb, var(--y-primary) 50%, #fff); }
.y-nav hr { border: 0; border-top: 1px solid var(--y-line); margin: 10px 6px; }
.y-side-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 16px 4px 0; border-top: 1px solid var(--y-line); }
.y-user span small { display: block; font-weight: 500; color: var(--y-muted); font-size: 11px; }

.y-main { max-width: 1200px; margin: 0 auto; padding: 26px 24px 70px; min-width: 0; }
.y-page-title { font-size: 24px; margin: 0 0 20px !important; }
.y-page-title:empty { display: none; }
.y-bottom { display: none; }

@media (max-width: 900px) {
	.y-header-in { padding: 10px 14px; gap: 10px; }
	.y-brand small { display: none; }
	.y-login-btn span { display: none; }
	.y-main { padding: 16px 14px 100px; }
	.y-page-title { font-size: 20px; margin-bottom: 14px !important; }
	.y-bottom {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
		background: color-mix(in srgb, var(--y-surface) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
		border-top: 1px solid var(--y-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	}
	.yar-embed .y-bottom { position: sticky; }
	.y-bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--y-muted); padding: 5px 0; border-radius: 12px; font-weight: 600; }
	.y-bottom a.on { color: var(--y-primary); }
	.y-bottom a.on svg.i { background: var(--y-p-soft); border-radius: 10px; }
	.y-bottom svg.i { width: 44px; height: 28px; padding: 4px 12px; }
}

/* ============ اجزای پایه ============ */
.y-card { background: var(--y-surface); border: 1px solid color-mix(in srgb, var(--y-line) 75%, transparent); border-radius: 22px; padding: 20px; box-shadow: var(--y-shadow); }
.y-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.y-card-h h3 { font-size: 16px; flex: 1; display: flex; align-items: center; gap: 8px; }
.y-card-h h3 svg.i { color: var(--y-primary); background: var(--y-p-soft); width: 32px; height: 32px; padding: 6px; border-radius: 10px; }
.y-card-h a.more { font-size: 13px; color: var(--y-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.y-grid { display: grid; gap: 16px; }
.y-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.y-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .y-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .y-g2, .y-g3 { grid-template-columns: 1fr; } }

.y-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
	background: var(--y-primary); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700;
	transition: transform .1s, filter .15s; white-space: nowrap;
}
.y-btn:hover { filter: brightness(1.08); }
.y-btn:active { transform: scale(.98); }
.y-btn[disabled] { opacity: .55; pointer-events: none; }
.y-btn.ghost { background: var(--y-surface-2); color: var(--y-text); }
.y-btn.soft { background: var(--y-p-soft); color: var(--y-primary); }
.y-btn.accent { background: var(--y-accent); color: #2a1a00; }
.y-btn.danger { background: transparent; color: var(--y-danger); }
.y-btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.y-btn.block { width: 100%; }
.y-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--y-line); background: var(--y-surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--y-text); }
.y-icon-btn:hover { background: var(--y-surface-2); }

.y-field { display: block; margin-bottom: 14px; }
.y-field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--y-muted); }
.y-input, .yar textarea.y-input, .yar select.y-input {
	width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--y-line); background: var(--y-surface);
	outline: none; transition: border-color .15s, box-shadow .15s;
}
.y-input:focus { border-color: var(--y-primary); box-shadow: 0 0 0 4px var(--y-p-soft); }
textarea.y-input { min-height: 120px; resize: vertical; line-height: 1.9; }
.y-input.ltr { direction: ltr; text-align: left; }
.y-hp { position: absolute !important; right: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.y-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.y-chip {
	border: 1px solid var(--y-line); background: var(--y-surface); padding: 6px 14px; border-radius: 999px; cursor: pointer;
	font-size: 13px; font-weight: 600; color: var(--y-muted); display: inline-flex; align-items: center; gap: 6px;
}
.y-chip.on { background: var(--y-primary); border-color: var(--y-primary); color: #fff; }
.y-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--y-surface-2); color: var(--y-muted); font-weight: 600; }
.y-tag.ok { background: color-mix(in srgb, var(--y-ok) 14%, transparent); color: var(--y-ok); }
.y-tag.warn { background: var(--y-a-soft); color: #b45309; }
.y-muted { color: var(--y-muted); }
.y-empty { text-align: center; color: var(--y-muted); padding: 30px 10px; }
.y-empty svg.i { width: 42px; height: 42px; opacity: .45; margin: 0 auto 8px; display: block; }
.y-skel { background: linear-gradient(90deg, var(--y-surface-2), var(--y-line), var(--y-surface-2)); background-size: 200% 100%; animation: yskel 1.2s infinite; border-radius: 10px; }
@keyframes yskel { to { background-position: -200% 0; } }
.y-alert { padding: 12px 14px; border-radius: 12px; background: var(--y-p-soft); color: var(--y-primary); font-weight: 600; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.y-alert.err { background: color-mix(in srgb, var(--y-danger) 12%, transparent); color: var(--y-danger); }
.y-alert.ok { background: color-mix(in srgb, var(--y-ok) 12%, transparent); color: var(--y-ok); }

/* ============ خانه ============ */
.y-hero {
	position: relative; overflow: hidden; border-radius: 28px; color: #fff; margin-bottom: 22px;
	background:
		radial-gradient(700px 260px at 10% 0%, color-mix(in srgb, var(--y-accent) 38%, transparent), transparent 65%),
		radial-gradient(600px 300px at 100% 120%, rgba(255, 255, 255, .10), transparent 60%),
		linear-gradient(150deg, color-mix(in srgb, var(--y-primary) 92%, #fff), var(--y-primary) 40%, color-mix(in srgb, var(--y-primary) 55%, #021310));
	box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--y-primary) 80%, #000);
}
.y-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%); mask-image: linear-gradient(200deg, #000 10%, transparent 70%); }
.y-hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02); pointer-events: none; }
.y-hero-in { position: relative; z-index: 1; padding: 34px 38px 32px; }
.y-hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.y-greet { font-size: 14px; opacity: .85; margin-bottom: 4px; }
.y-hero h2 { font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.y-dates { font-size: 13px; opacity: .8; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.y-dates i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.y-clock-box { text-align: left; }
.y-clock { font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: 2px; direction: ltr; }
.y-clock-box small { font-size: 11.5px; opacity: .7; }

.y-search { max-width: none; }
.y-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .18); margin-bottom: 12px; backdrop-filter: blur(6px); }
.y-seg button { border: 0; background: transparent; color: rgba(255, 255, 255, .85); padding: 8px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.y-seg button svg.i { width: 18px; height: 18px; }
.y-seg button .g { display: grid; width: 22px; height: 22px; place-items: center; background: #fff; border-radius: 50%; }
.y-seg button.on { background: #fff; color: var(--y-primary); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.yar[data-theme="dark"] .y-seg button.on { background: var(--y-surface); color: var(--y-text); }
.y-search form { display: flex; align-items: center; background: #fff; border-radius: 20px; padding: 7px; gap: 6px; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .55); }
.yar[data-theme="dark"] .y-search form { background: var(--y-surface); }
.y-search-ic { color: var(--y-muted); padding-right: 10px; display: grid; }
.y-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 12px 8px; font-size: 16.5px; color: var(--y-text); min-width: 0; }
.y-search input::placeholder { color: var(--y-muted); opacity: .8; }
.y-search .y-btn { border-radius: 15px; padding: 12px 22px; }
@media (max-width: 700px) {
	.y-hero { border-radius: 22px; }
	.y-hero-in { padding: 22px 18px 20px; }
	.y-hero h2 { font-size: 21px; }
	.y-clock { font-size: 38px; }
	.y-hero-top { margin-bottom: 18px; }
	.y-seg { display: flex; }
	.y-seg button { flex: 1; justify-content: center; padding: 8px 8px; font-size: 12.5px; }
	.y-search .y-btn span { display: none; }
	.y-search .y-btn { padding: 12px 14px; }
}

.y-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.y-sc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; text-align: center; font-size: 12.5px; font-weight: 600; transition: background .15s; }
.y-sc:hover { background: var(--y-surface-2); }
.y-sc .fav { width: 44px; height: 44px; border-radius: 14px; background: var(--y-surface-2); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--y-primary); border: 1px solid var(--y-line); }
.y-sc .fav img { width: 24px; height: 24px; }
.y-sc .x { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--y-danger); color: #fff; display: none; place-items: center; cursor: pointer; font-size: 14px; line-height: 1; }
.y-shortcuts.editing .y-sc .x { display: grid; }
button.y-sc { font-size: 12.5px; font-weight: 600; color: inherit; }
.y-sc.add .fav { border-style: dashed; color: var(--y-muted); }
.y-sc .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.y-home { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.y-home > div { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 1100px) { .y-home { grid-template-columns: 1fr; } }

.y-today-ev { display: grid; gap: 8px; }
.y-ev { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.y-ev .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: var(--y-primary); flex: none; }
.y-ev.hol .dot { background: var(--y-danger); }
.y-ev .d { color: var(--y-muted); font-size: 12px; white-space: nowrap; }

.y-countdown { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--y-a-soft); margin-top: 12px; }
.y-countdown b { font-size: 22px; color: #b45309; }
.yar[data-theme="dark"] .y-countdown b { color: var(--y-accent); }

/* اخبار */
.y-news-list { display: grid; gap: 4px; }
.y-news { display: flex; gap: 12px; padding: 10px; border-radius: 14px; transition: background .15s; align-items: center; }
.y-news:hover { background: var(--y-surface-2); }
.y-news .ph { width: 84px; height: 64px; border-radius: 12px; background: var(--y-surface-2) center/cover no-repeat; flex: none; }
.y-news h4 { font-size: 14.5px; font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.y-news .meta { font-size: 12px; color: var(--y-muted); display: flex; gap: 8px; margin-top: 2px; }
.y-news.big { flex-direction: column; align-items: stretch; padding: 0; border: 1px solid var(--y-line); background: var(--y-surface); overflow: hidden; border-radius: var(--y-radius); }
.y-news.big .ph { width: 100%; height: 160px; border-radius: 0; }
.y-news.big .body { padding: 12px 14px 14px; }
.y-news.big p { font-size: 13px; color: var(--y-muted); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.y-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

/* سرویس‌های متصل */
.y-eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.y-eco-card { border-radius: var(--y-radius); padding: 16px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.y-eco-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 60%); pointer-events: none; }
.y-eco-card h3 { font-size: 20px; }
.y-eco-card p { font-size: 13px; opacity: .9; margin: 0; }
.y-eco-card .items { display: grid; gap: 4px; font-size: 12.5px; }
.y-eco-card .items a { background: rgba(255, 255, 255, .14); padding: 6px 10px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.y-eco-card .items a:hover { background: rgba(255, 255, 255, .24); }
.y-eco-card .go { margin-top: auto; align-self: flex-start; background: #fff; color: #111; padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; position: relative; }

/* یادداشت‌ها */
.y-notes { columns: 3 260px; column-gap: 14px; }
.y-note {
	break-inside: avoid; margin-bottom: 14px; border-radius: 16px; padding: 14px 16px; border: 1px solid var(--y-line);
	background: var(--y-surface); cursor: pointer; transition: transform .12s, box-shadow .15s; position: relative;
}
.y-note:hover { transform: translateY(-2px); box-shadow: var(--y-shadow); }
.y-note h4 { font-size: 15px; margin-bottom: 4px; padding-left: 22px; }
.y-note .c { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: hidden; color: color-mix(in srgb, var(--y-text) 85%, transparent); }
.y-note .f { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.y-note .pin { position: absolute; top: 12px; left: 12px; color: var(--y-accent); }
.y-note.done h4, .y-note.done .c { text-decoration: line-through; opacity: .55; }
.y-note[data-c="yellow"] { background: #fef9c3; border-color: #fde68a; }
.y-note[data-c="green"] { background: #dcfce7; border-color: #bbf7d0; }
.y-note[data-c="blue"] { background: #dbeafe; border-color: #bfdbfe; }
.y-note[data-c="pink"] { background: #fce7f3; border-color: #fbcfe8; }
.y-note[data-c="purple"] { background: #ede9fe; border-color: #ddd6fe; }
.y-note[data-c="orange"] { background: #ffedd5; border-color: #fed7aa; }
.yar[data-theme="dark"] .y-note[data-c]:not([data-c="default"]) { color: #1c2421; }
.yar[data-theme="dark"] .y-note[data-c]:not([data-c="default"]) .y-tag { background: rgba(0, 0, 0, .08); color: #333; }
.y-colors { display: flex; gap: 8px; }
.y-colors button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--y-line); cursor: pointer; }
.y-colors button.on { outline: 3px solid var(--y-primary); outline-offset: 2px; }
.y-mini-notes { display: grid; gap: 8px; }
.y-mini-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--y-surface-2); font-size: 13.5px; cursor: pointer; }
.y-mini-note .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y-quick { display: flex; gap: 8px; margin-bottom: 10px; }
.y-quick .y-input { padding: 9px 12px; }

/* تقویم */
.y-cal-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .y-cal-wrap { grid-template-columns: 1fr; } }
.y-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.y-cal-head h2 { flex: 1; font-size: 20px; }
.y-cal-head h2 small { display: block; font-size: 12.5px; color: var(--y-muted); font-weight: 500; }
.y-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.y-cal .wd { text-align: center; font-size: 12.5px; color: var(--y-muted); font-weight: 700; padding: 4px 0; }
.y-cal .wd:last-child { color: var(--y-danger); }
.y-day {
	aspect-ratio: 1 / .92; border-radius: 14px; border: 1px solid transparent; background: var(--y-surface-2); cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; position: relative; padding: 2px;
	transition: border-color .15s, background .15s;
}
.y-day:hover { border-color: var(--y-primary); }
.y-day b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.y-day small { font-size: 10px; color: var(--y-muted); line-height: 1.3; }
.y-day.out { opacity: .35; }
.y-day.hol b { color: var(--y-danger); }
.y-day.today { background: var(--y-primary); color: #fff; }
.y-day.today small, .y-day.today b { color: #fff; }
.y-day.sel { border-color: var(--y-accent); border-width: 2px; }
.y-day .marks { position: absolute; bottom: 5px; display: flex; gap: 3px; }
.y-day .marks i { width: 5px; height: 5px; border-radius: 50%; background: var(--y-accent); }
.y-day .marks i.ev { background: var(--y-primary); }
.y-day.today .marks i { background: #fff; }
@media (max-width: 520px) { .y-cal { gap: 3px; } .y-day { border-radius: 10px; } .y-day b { font-size: 15px; } .y-day small { font-size: 8.5px; } }
.y-daypanel h3 { font-size: 18px; }
.y-daypanel .alt { color: var(--y-muted); font-size: 13px; margin: 2px 0 14px; }
.y-conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* حمایت */
.y-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.y-amounts button { border: 1.5px solid var(--y-line); background: var(--y-surface); border-radius: 12px; padding: 12px 6px; cursor: pointer; font-weight: 800; }
.y-amounts button.on { border-color: var(--y-primary); background: var(--y-p-soft); color: var(--y-primary); }
.y-tabs { display: inline-flex; background: var(--y-surface-2); padding: 4px; border-radius: 14px; margin-bottom: 16px; gap: 2px; }
.y-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--y-muted); display: inline-flex; align-items: center; gap: 7px; }
.y-tabs button svg.i { width: 17px; height: 17px; }
.y-tabs button.on { background: var(--y-surface); color: var(--y-text); box-shadow: var(--y-shadow); }

/* تیکت */
.y-ticket-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--y-line); cursor: pointer; }
.y-ticket-row:last-child { border-bottom: 0; }
.y-ticket-row .s { flex: 1; font-weight: 700; }
.y-chat { display: grid; gap: 10px; margin: 14px 0; }
.y-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--y-surface-2); white-space: pre-wrap; font-size: 14px; }
.y-msg.me { justify-self: start; background: var(--y-p-soft); border-bottom-right-radius: 4px; }
.y-msg.admin { justify-self: end; border-bottom-left-radius: 4px; }
.y-msg time { display: block; font-size: 11px; color: var(--y-muted); margin-top: 4px; }

/* خدمات و درباره و تماس */
.y-svc { display: flex; gap: 14px; align-items: flex-start; }
.y-svc .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--y-p-soft); color: var(--y-primary); display: grid; place-items: center; flex: none; }
.y-svc .ic svg.i { width: 24px; height: 24px; }
.y-svc h3 { font-size: 16px; margin-bottom: 4px; }
.y-svc p { font-size: 13.5px; color: var(--y-muted); margin: 0; }
.y-info { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--y-line); }
.y-info:last-child { border-bottom: 0; }
.y-info .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--y-surface-2); display: grid; place-items: center; color: var(--y-primary); flex: none; }
.y-info small { display: block; color: var(--y-muted); font-size: 12px; }
.y-info b { direction: ltr; unicode-bidi: plaintext; }
.y-prose { font-size: 15px; line-height: 2; }
.y-prose img { border-radius: 14px; margin: 10px 0; }
.y-apps { display: flex; gap: 10px; flex-wrap: wrap; }
.y-apps a, .y-apps span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--y-text); color: var(--y-bg); font-weight: 700; font-size: 13.5px; }
.y-apps span { opacity: .45; }

/* مودال */
.y-modal-bg { position: fixed; inset: 0; z-index: 99990; background: rgba(10, 16, 13, .45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: yfade .15s; }
.y-modal { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--y-surface); color: var(--y-text); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: yup .2s; direction: rtl; font-family: var(--y-font); }
.y-modal-h { display: flex; align-items: center; margin-bottom: 16px; gap: 10px; }
.y-modal-h h3 { flex: 1; font-size: 18px; }
@media (max-width: 600px) {
	.y-modal-bg { align-items: flex-end; padding: 0; }
	.y-modal { border-radius: 22px 22px 0 0; max-height: 94vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
@keyframes yfade { from { opacity: 0; } }
@keyframes yup { from { transform: translateY(20px); opacity: 0; } }

.y-otp { display: flex; gap: 8px; direction: ltr; justify-content: center; margin: 6px 0 14px; }
.y-otp input { width: 50px; height: 56px; text-align: center; font-size: 22px; font-weight: 800; border-radius: 12px; border: 1.5px solid var(--y-line); background: var(--y-surface); outline: 0; }
.y-otp input:focus { border-color: var(--y-primary); box-shadow: 0 0 0 4px var(--y-p-soft); }

.y-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 99999; background: #111a16; color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: yup .2s; font-family: var(--y-font); direction: rtl; max-width: 90vw; }
.y-toast.err { background: var(--y-danger); }

.y-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--y-surface-2); flex: 1; min-width: 0; cursor: pointer; }
.y-user .y-av { width: 34px; height: 34px; border-radius: 50%; background: var(--y-primary); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.y-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.y-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--y-line); display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--y-muted); }
.y-foot a:hover { color: var(--y-primary); }
.y-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.y-more-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 16px; background: var(--y-surface); border: 1px solid var(--y-line); font-weight: 700; font-size: 14px; }
.y-more-grid a svg.i { width: 28px; height: 28px; color: var(--y-primary); }

@media (prefers-reduced-motion: reduce) { .yar *, .y-modal, .y-toast { animation: none !important; transition: none !important; } }

/* =====================================================================
   نسخه ۲ — ابزارها
   ===================================================================== */
.yar select.y-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--y-muted) 50%), linear-gradient(135deg, var(--y-muted) 50%, transparent 50%); background-position: 18px 55%, 13px 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 34px; }
.y-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.y-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 14px; cursor: pointer; }
.y-check input { width: 18px; height: 18px; accent-color: var(--y-primary); }
.y-h2 { font-size: 18px !important; display: flex; align-items: center; gap: 8px; margin: 26px 0 14px !important; }
.y-h2 svg.i { color: var(--y-accent); }
.y-chip[disabled] { opacity: 1; cursor: default; background: var(--y-p-soft); border-color: transparent; color: var(--y-primary); }

/* زنگوله هدر */
.y-bell { position: relative; }
.y-badge { position: absolute; top: -4px; left: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--y-danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--y-bg); }
.y-badge[hidden], .y-bell[hidden] { display: none !important; }
.y-mini-logo { width: 20px; height: 20px; border-radius: 7px; background: var(--y-primary); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; }
.y-seg button.on .y-mini-logo { background: var(--y-primary); }
.y-seg button:not(.on) .y-mini-logo { background: rgba(255, 255, 255, .25); }

/* ابزارهای صفحه اصلی */
.y-tools { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 20px; }
.y-tools a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 18px; background: var(--y-surface); border: 1px solid color-mix(in srgb, var(--y-line) 70%, transparent); font-size: 12.5px; font-weight: 700; text-align: center; transition: transform .15s, box-shadow .15s; box-shadow: var(--y-shadow); }
.y-tools a:hover { transform: translateY(-3px); }
.y-tools span { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.y-tools svg.i { width: 23px; height: 23px; }
@media (max-width: 900px) { .y-tools { grid-template-columns: repeat(4, 1fr); gap: 8px; } .y-tools a { padding: 12px 4px; font-size: 11.5px; border-radius: 16px; } }

/* جستجو */
.y-sbar { display: flex; align-items: center; gap: 6px; background: var(--y-surface); border: 1.5px solid var(--y-line); border-radius: 18px; padding: 6px; box-shadow: var(--y-shadow); max-width: 760px; }
.y-sbar:focus-within { border-color: var(--y-primary); }
.y-sbar > span { color: var(--y-muted); display: grid; padding-right: 8px; }
.y-sbar input { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 6px; font-size: 16px; min-width: 0; }
.y-sbar .y-btn { border-radius: 13px; padding: 10px 14px; }
.y-stabs { display: flex; gap: 4px; margin: 14px 0 18px; border-bottom: 1px solid var(--y-line); max-width: 760px; overflow-x: auto; }
.y-stabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--y-muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.y-stabs a.on { color: var(--y-primary); border-color: var(--y-primary); }
.y-stabs .g { display: grid; }
.y-stabs svg.i { width: 17px; height: 17px; }
.y-results { display: grid; gap: 6px; max-width: 760px; }
.y-result { padding: 14px 16px; border-radius: 16px; transition: background .15s; }
.y-result:hover { background: var(--y-surface); }
.y-result .u { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--y-muted); margin-bottom: 3px; }
.y-result .u span[dir] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.y-result .fav { width: 18px; height: 18px; border-radius: 50%; background: var(--y-surface-2); padding: 1px; }
.y-result h3 { font-size: 17px !important; font-weight: 700 !important; color: color-mix(in srgb, var(--y-primary) 80%, #1d4ed8); line-height: 1.6; }
.yar[data-theme="dark"] .y-result h3 { color: #7dd3c0; }
.y-result a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.y-result p { font-size: 13.5px; color: color-mix(in srgb, var(--y-text) 75%, transparent); margin: 4px 0 0; line-height: 1.9; }
.y-result.ad { background: color-mix(in srgb, var(--y-accent) 7%, var(--y-surface)); border: 1px solid color-mix(in srgb, var(--y-accent) 25%, transparent); }
.y-result.dim { opacity: .4; }
.y-adtag, .y-yartag { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 6px; flex: none; }
.y-adtag { background: var(--y-accent); color: #2a1a00; }
.y-yartag { background: var(--y-p-soft); color: var(--y-primary); }
.y-pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 20px 0 8px; max-width: 760px; }
.y-sfoot { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--y-muted); margin-top: 18px; max-width: 760px; }
.y-sfoot a { display: inline-flex; align-items: center; gap: 6px; }
.y-sfoot a:hover { color: var(--y-primary); }
.y-sfoot svg.i { width: 16px; height: 16px; }

/* دستیار هوشمند */
.y-ai { display: grid; grid-template-columns: 260px 1fr; gap: 16px; height: calc(100dvh - 190px); min-height: 480px; }
.y-ai-side { background: var(--y-surface); border: 1px solid var(--y-line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.y-ai-list { flex: 1; overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.y-ai-item { display: flex; align-items: center; border-radius: 12px; }
.y-ai-item a { flex: 1; padding: 9px 10px; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y-ai-item button { border: 0; background: none; color: var(--y-muted); cursor: pointer; padding: 6px; opacity: 0; display: grid; }
.y-ai-item:hover { background: var(--y-surface-2); }
.y-ai-item:hover button { opacity: 1; }
.y-ai-item.on { background: var(--y-p-soft); color: var(--y-primary); font-weight: 700; }
.y-ai-usage { font-size: 11.5px; color: var(--y-muted); border-top: 1px solid var(--y-line); padding-top: 10px; }
.y-ai-main { background: var(--y-surface); border: 1px solid var(--y-line); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.y-ai-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--y-line); }
.y-ai-top b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y-ai-top .y-muted { font-size: 12px; }
.y-ai-hist { display: none; }
.y-ai-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.y-bubble { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 14.5px; line-height: 2; word-break: break-word; }
.y-bubble.me { align-self: flex-start; background: var(--y-primary); color: #fff; border-bottom-right-radius: 6px; }
.y-bubble.bot { align-self: flex-end; background: var(--y-surface-2); border-bottom-left-radius: 6px; }
.y-bubble.errb { background: none; padding: 0; max-width: 100%; }
.y-bubble.errb .y-alert { margin: 0; }
.y-bubble .acts { display: flex; gap: 6px; margin-top: 8px; }
.y-bubble .acts .y-btn { padding: 4px 10px; font-size: 12px; }
.y-bubble.img { padding: 8px; }
.y-bubble.img img { border-radius: 14px; max-width: min(420px, 100%); }
.y-md pre { background: #0f1412; color: #e8ece9; padding: 12px; border-radius: 12px; overflow-x: auto; direction: ltr; text-align: left; font-size: 13px; line-height: 1.7; margin: 8px 0; }
.y-md code { background: rgba(0, 0, 0, .07); padding: 1px 6px; border-radius: 6px; font-size: 13px; direction: ltr; unicode-bidi: embed; }
.y-md pre code { background: none; padding: 0; }
.y-md ul { margin: 6px 0; padding-right: 20px; }
.y-md h4 { font-size: 15px; margin: 8px 0 4px; }
.y-bubble.typing { display: flex; gap: 5px; align-items: center; }
.y-bubble.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--y-muted); animation: ydot 1.2s infinite; }
.y-bubble.typing i:nth-child(2) { animation-delay: .2s; } .y-bubble.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ydot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.y-ai-form { border-top: 1px solid var(--y-line); padding: 10px 14px 14px; }
.y-ai-modes { display: flex; gap: 6px; margin-bottom: 8px; }
.y-ai-modes button { border: 0; background: none; color: var(--y-muted); font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.y-ai-modes button svg.i { width: 16px; height: 16px; }
.y-ai-modes button.on { background: var(--y-p-soft); color: var(--y-primary); }
.y-ai-input { display: flex; align-items: flex-end; gap: 8px; background: var(--y-surface-2); border-radius: 18px; padding: 6px 6px 6px 6px; }
.y-ai-input textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; padding: 9px 10px; line-height: 1.8; max-height: 180px; }
.y-ai-input .y-btn { border-radius: 14px; padding: 10px 14px; }
.y-ai-hello { margin: auto; text-align: center; max-width: 560px; padding: 20px 0; }
.y-ai-hello h2 { font-size: 22px; margin: 14px 0 6px !important; }
.y-ai-orb { width: 64px; height: 64px; border-radius: 22px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(140deg, #7c3aed, var(--y-primary) 60%, var(--y-accent)); box-shadow: 0 16px 40px -16px #7c3aed; }
.y-ai-orb svg.i { width: 32px; height: 32px; }
.y-ai-sug { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.y-ai-sug button { border: 1px solid var(--y-line); background: var(--y-surface); padding: 10px 12px; border-radius: 14px; cursor: pointer; font-size: 13px; text-align: right; line-height: 1.7; color: var(--y-text); }
.y-ai-sug button:hover { border-color: var(--y-primary); }
@media (max-width: 900px) {
	.y-ai { grid-template-columns: 1fr; height: calc(100dvh - 210px); position: relative; }
	.y-ai-side { display: none; position: absolute; inset: 0 0 auto 0; z-index: 5; max-height: 70%; box-shadow: var(--y-shadow); }
	.y-ai.show-side .y-ai-side { display: flex; }
	.y-ai-hist { display: inline-grid; width: 36px; height: 36px; }
	.y-ai-top .y-muted { display: none; }
	.y-ai-msgs { padding: 14px; }
	.y-bubble { max-width: 92%; }
	.y-ai-sug { grid-template-columns: 1fr; }
}

/* یادآورها */
.y-rem-list { padding: 6px 8px; }
.y-rem { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--y-line); }
.y-rem:last-child { border-bottom: 0; }
.y-rem .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--y-p-soft); color: var(--y-primary); flex: none; }
.y-rem.k-alarm .ic { background: var(--y-a-soft); color: #b45309; }
.y-rem.k-cheque .ic, .y-rem.k-installment .ic { background: color-mix(in srgb, var(--y-ok) 13%, transparent); color: var(--y-ok); }
.y-rem .b { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.y-rem .b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y-rem .b small { color: var(--y-muted); font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.y-rem .b small svg.i { width: 13px; height: 13px; }
.y-rem-time { font-size: 26px; font-weight: 300; line-height: 1.1; direction: ltr; text-align: right; }
.y-rem.off { opacity: .5; }
.y-av2 { font-weight: 800; font-size: 17px; }
.y-switch { position: relative; width: 44px; height: 26px; flex: none; cursor: pointer; }
.y-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.y-switch i { position: absolute; inset: 0; background: var(--y-line); border-radius: 13px; transition: background .2s; }
.y-switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.y-switch input:checked + i { background: var(--y-primary); }
.y-switch input:checked + i::after { transform: translateX(-18px); }
.y-alarm-time { text-align: center; margin-bottom: 16px; }
.y-alarm-time input { font-size: 46px; font-weight: 300; border: 0; background: var(--y-surface-2); border-radius: 20px; padding: 8px 18px; text-align: center; direction: ltr; color: var(--y-text); font-family: inherit; outline: 0; }
.y-days { display: flex; gap: 6px; }
.y-days button { flex: 1; aspect-ratio: 1; max-width: 46px; border-radius: 50%; border: 1.5px solid var(--y-line); background: var(--y-surface); font-weight: 800; cursor: pointer; color: var(--y-muted); }
.y-days button.on { background: var(--y-primary); border-color: var(--y-primary); color: #fff; }
.y-day-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* چک و قسط */
.y-fin-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.y-fin-sum > div { background: var(--y-surface); border: 1px solid var(--y-line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--y-shadow); }
.y-fin-sum small { display: block; color: var(--y-muted); font-size: 12px; }
.y-fin-sum b { font-size: 20px; color: var(--y-danger); }
.y-fin-sum b.in { color: var(--y-ok); }
.y-fin-sum b:not(.in):not(.warn):last-child { color: var(--y-text); }
.y-fin-sum b.warn { color: var(--y-danger); }
.y-fin-sum i, .y-fin .a i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--y-muted); }
@media (max-width: 700px) { .y-fin-sum { grid-template-columns: 1fr 1fr; } .y-fin-sum > div:last-child { grid-column: span 2; } .y-fin-sum b { font-size: 17px; } }
.y-fin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.y-fin { border-right: 4px solid var(--y-danger); display: flex; flex-direction: column; gap: 10px; }
.y-fin.in { border-right-color: var(--y-ok); }
.y-fin.done { opacity: .6; border-right-color: var(--y-line); }
.y-fin .t { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.y-fin .t small { display: block; color: var(--y-muted); font-size: 12px; }
.y-fin .a { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.y-fin .a b { font-size: 20px; }
.y-fin .a span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--y-muted); }
.y-fin .a span svg.i { width: 15px; height: 15px; }
.y-fin .f { display: flex; gap: 6px; flex-wrap: wrap; }
.y-prog { height: 8px; border-radius: 4px; background: var(--y-surface-2); overflow: hidden; }
.y-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--y-ok), var(--y-primary)); border-radius: 4px; }

/* پیامک */
.y-rcpt { display: flex; gap: 6px; flex-wrap: wrap; }
.y-rcpt .y-chip { cursor: pointer; }
.y-cpick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.y-cpick button { border: 1px dashed var(--y-line); background: var(--y-surface); border-radius: 10px; padding: 5px 10px; font-size: 13px; cursor: pointer; color: var(--y-text); }
.y-cpick button small { color: var(--y-muted); }
.y-smsinfo { display: block; margin-top: 6px; font-size: 12px; }

/* کارت بانکی */
.y-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.y-bcard { position: relative; aspect-ratio: 1.586; border-radius: 20px; color: #fff; padding: 20px 22px; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); transition: transform .2s; }
.y-bcard:hover { transform: translateY(-3px) rotate(-.4deg); }
.y-bcard::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -80px; top: -120px; background: rgba(255, 255, 255, .09); }
.y-bcard::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -60px; bottom: -110px; background: rgba(255, 255, 255, .07); }
.y-bcard .top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.y-bcard .top b { font-size: 16px; }
.y-bcard .top span { font-size: 12px; opacity: .8; }
.y-bcard .chip { width: 42px; height: 31px; border-radius: 7px; background: linear-gradient(135deg, #f4d58d, #c9a24a); margin-top: 16px; position: relative; z-index: 1; }
.y-bcard .num { margin-top: auto; font-size: clamp(17px, 4.6vw, 22px); letter-spacing: 2px; font-weight: 600; text-align: center; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.y-bcard .num.sh { font-size: 14px; letter-spacing: 1px; }
.y-bcard .holder { margin-top: 10px; font-size: 13.5px; opacity: .9; position: relative; z-index: 1; }
.y-bcard-acts { display: flex; gap: 6px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.y-bcard-acts .y-icon-btn { width: 34px; height: 34px; margin-inline-start: auto; }

/* مرسوله */
.y-parcel-form { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 8px; }
@media (max-width: 800px) { .y-parcel-form { grid-template-columns: 1fr 1fr; } .y-parcel-form .y-btn { grid-column: span 2; } }
.y-parcel-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.y-parcel-acts .y-icon-btn { width: 34px; height: 34px; }
@media (max-width: 600px) { .y-rem:has(.y-parcel-acts) { flex-wrap: wrap; } .y-parcel-acts { width: 100%; } }

/* اشتراک */
.y-acc-card { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: color-mix(in srgb, #fff 18%, transparent); border-radius: 24px; overflow: hidden; color: #fff; background-image: linear-gradient(135deg, var(--y-primary), color-mix(in srgb, var(--y-primary) 50%, #021310)); box-shadow: var(--y-shadow); }
.y-acc-card > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.y-acc-card > div + div { border-right: 1px solid rgba(255, 255, 255, .15); }
.y-acc-card small { opacity: .75; font-size: 12px; }
.y-acc-card b { font-size: 22px; }
.y-acc-card span { font-size: 12px; opacity: .85; }
@media (max-width: 700px) { .y-acc-card { grid-template-columns: 1fr 1fr; } .y-acc-card > div:first-child { grid-column: span 2; } .y-acc-card > div + div { border-right: 0; border-top: 1px solid rgba(255, 255, 255, .15); } }
.y-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.y-plan { position: relative; background: var(--y-surface); border: 1.5px solid var(--y-line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; box-shadow: var(--y-shadow); }
.y-plan.best { border-color: var(--y-accent); box-shadow: 0 24px 50px -30px var(--y-accent); }
.y-plan .rib { position: absolute; top: -12px; left: 20px; background: var(--y-accent); color: #2a1a00; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 10px; }
.y-plan h3 { font-size: 18px; }
.y-plan .price { margin: 12px 0 14px; color: var(--y-muted); font-size: 14px; }
.y-plan .price b { font-size: 30px; color: var(--y-text); font-weight: 800; }
.y-plan .price small { display: block; font-size: 12px; }
.y-plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 13.5px; flex: 1; }
.y-plan li { display: flex; gap: 8px; align-items: center; }
.y-plan li svg.i { color: var(--y-ok); width: 18px; height: 18px; }
.y-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.y-pack { border: 1.5px solid var(--y-line); background: var(--y-surface); border-radius: 18px; padding: 16px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--y-text); transition: border-color .15s, transform .15s; }
.y-pack:hover { border-color: var(--y-primary); transform: translateY(-2px); }
.y-pack.on { border-color: var(--y-primary); background: var(--y-p-soft); }
.y-pack b { font-size: 24px; }
.y-pack span { font-size: 12px; color: var(--y-muted); }
.y-pack i { font-style: normal; font-weight: 800; color: var(--y-primary); margin-top: 6px; font-size: 13.5px; }
.y-packs.sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.y-packs.sm .y-pack { padding: 10px 8px; }
.y-packs.sm .y-pack b { font-size: 15px; }
.y-log > div { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--y-line); font-size: 13px; }
.y-log > div:last-child { border-bottom: 0; }
.y-log span { flex: 1; }
.y-log small { color: var(--y-muted); }
.y-log b.in { color: var(--y-ok); } .y-log b.out { color: var(--y-danger); }

/* تبلیغ */
.y-myad { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--y-line); }
.y-myad:last-child { border-bottom: 0; }
.y-myad > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.y-myad small { color: var(--y-muted); font-size: 12px; }

/* پیش‌فرض */
.y-default-hero { display: flex; gap: 18px; align-items: center; }
.y-default-hero h2 { font-size: 20px !important; margin-bottom: 4px !important; }
@media (max-width: 600px) { .y-default-hero { flex-direction: column; text-align: center; } }
.y-copyline { display: flex; gap: 8px; align-items: center; background: var(--y-surface-2); border-radius: 12px; padding: 6px 6px 6px 6px; margin: 10px 0; }
.y-copyline code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 13px; padding: 0 8px; }
.y-det { border-top: 1px solid var(--y-line); padding: 10px 0; }
.y-det summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.y-steps { margin: 8px 0 0; padding-right: 22px; font-size: 13.5px; line-height: 2; }

/* اعلان‌ها */
.y-inbox { display: grid; gap: 4px; margin: -6px; }
.y-inb { display: flex; gap: 12px; padding: 12px; border-radius: 14px; }
.y-inb:hover { background: var(--y-surface-2); }
.y-inb.new { background: var(--y-p-soft); }
.y-inb .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--y-surface-2); display: grid; place-items: center; color: var(--y-primary); flex: none; }
.y-inb b { display: block; font-size: 14px; }
.y-inb p { margin: 2px 0; font-size: 13px; color: var(--y-muted); }
.y-inb small { font-size: 11.5px; color: var(--y-muted); }
.y-ring { text-align: center; padding: 10px 0; }
.y-ring-ic { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--y-a-soft); color: #b45309; animation: yring 1s infinite; }
.y-ring-ic svg.i { width: 46px; height: 46px; }
.y-ring h2 { font-size: 24px !important; }
@keyframes yring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }

/* کافی نت من */
.y-cafe-hero { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 24px; padding: 22px 24px; margin-bottom: 18px; color: #fff; background: radial-gradient(500px 200px at 0% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, #a16207, #78350f); box-shadow: 0 24px 50px -30px #78350f; }
.y-cafe-hero h2 { font-size: 21px !important; display: flex; align-items: center; gap: 10px; }
.y-cafe-hero h2 svg.i { width: 28px; height: 28px; }
.y-cafe-hero p { margin: 4px 0 0; opacity: .88; font-size: 13.5px; }
.y-cafe-search { display: flex; align-items: center; gap: 8px; background: #fff; color: #555; border-radius: 16px; padding: 4px 14px; flex: 1; min-width: 240px; max-width: 420px; }
.y-cafe-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 15px; color: #1c2421; min-width: 0; }
.yar[data-theme="dark"] .y-cafe-search { background: var(--y-surface); }
.yar[data-theme="dark"] .y-cafe-search input { color: var(--y-text); }
.y-cafe-cat { font-size: 15px !important; margin: 20px 0 10px !important; color: var(--y-muted); }
.y-cafe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.y-cafe-item { position: relative; display: flex; gap: 12px; align-items: flex-start; background: var(--y-surface); border: 1px solid color-mix(in srgb, var(--y-line) 75%, transparent); border-radius: 18px; padding: 14px; box-shadow: var(--y-shadow); flex-wrap: wrap; transition: border-color .15s; }
.y-cafe-item:hover { border-color: color-mix(in srgb, #a16207 45%, transparent); }
.y-cafe-item .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, #a16207 13%, transparent); color: #a16207; flex: none; }
.yar[data-theme="dark"] .y-cafe-item .ic { color: #f5b74a; }
.y-cafe-item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-left: 26px; }
.y-cafe-item .t b { font-size: 14.5px; }
.y-cafe-item .t small { font-size: 12.5px; color: var(--y-muted); line-height: 1.8; }
.y-cafe-item .t .h { font-size: 11px; color: var(--y-muted); opacity: .8; text-align: right; }
.y-cafe-item .a { display: flex; gap: 6px; width: 100%; padding-right: 56px; }
.y-cafe-star { position: absolute; top: 10px; left: 10px; border: 0; background: none; color: var(--y-line); cursor: pointer; padding: 4px; display: grid; }
.y-cafe-star.on { color: var(--y-accent); }
.y-cafe-star.on svg.i { fill: currentColor; }

/* شارژ و قبض */
.y-paygrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .y-paygrid { grid-template-columns: 1fr; } .y-payside { display: none; } }
.y-ops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.y-ops button { border: 1.5px solid var(--y-line); background: var(--y-surface); border-radius: 14px; padding: 12px 6px; cursor: pointer; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--y-text); }
.y-ops button i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.y-ops button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--y-surface)); }
.y-paysum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; background: var(--y-surface-2); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.y-paysum:empty { display: none; }
.y-paysum b { font-size: 22px; }
.y-paysum b i { font-style: normal; font-size: 12px; color: var(--y-muted); font-weight: 500; }
.y-paysum small { width: 100%; }
.y-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.y-pkg { border: 1.5px solid var(--y-line); background: var(--y-surface); border-radius: 14px; padding: 12px; text-align: right; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--y-text); }
.y-pkg.on { border-color: var(--y-primary); background: var(--y-p-soft); }
.y-pkg small { color: var(--y-muted); font-size: 11.5px; }
.y-pkg i { font-style: normal; font-weight: 800; color: var(--y-primary); font-size: 13px; margin-top: 4px; }
.y-payside { text-align: center; }
.y-payside h3 { font-size: 17px; margin: 12px 0 10px !important; }
.y-payside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: right; font-size: 13.5px; }
.y-payside li { display: flex; gap: 8px; align-items: center; }
.y-payside li svg.i { color: var(--y-ok); width: 18px; height: 18px; }
.y-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.y-tabs::-webkit-scrollbar { display: none; }
.y-tabs button { white-space: nowrap; flex: none; }
@media (max-width: 520px) { .y-tabs button { padding: 8px 11px; font-size: 13px; gap: 5px; } .y-tabs button svg.i { width: 15px; height: 15px; } }
.yar[data-theme="dark"] .y-amounts button.on { color: color-mix(in srgb, var(--y-primary) 45%, #fff); }
.y-rem .b small, .y-rem .b b { overflow-wrap: anywhere; word-break: break-word; }
.y-rem .b small { white-space: normal; }
.y-main { overflow-x: clip; }

/* =====================================================================
   دسکتاپ یار (صفحه اصلی)
   ===================================================================== */
.yar.desk { --g-bg: rgba(12, 30, 62, .52); --g-bg2: rgba(255, 255, 255, .08); --g-line: rgba(255, 255, 255, .14); --g-text: #fff; --g-muted: rgba(255, 255, 255, .68); background: transparent; position: relative; isolation: isolate; }
.yar.desk::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #2f8be8 var(--y-wall) center / cover no-repeat; }
.yar-embed.desk::before { position: absolute; }
body.yar-body:has(.yar.desk) { background: #2f8be8; }
.yar.desk[data-theme="dark"] { --g-bg: rgba(6, 12, 26, .62); }
.yar.desk .y-main { max-width: none; padding: 20px 112px 40px 24px; }
.yar.desk .y-page-title, .yar.desk .y-foot { display: none; }
.y-desk { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(280px, 330px); gap: 20px; max-width: 1500px; margin: 0 auto; align-items: start; }
.y-dcol { display: grid; gap: 20px; align-content: start; min-width: 0; }
.y-glass { background: var(--g-bg); color: var(--g-text); border: 1px solid var(--g-line); border-radius: 26px; padding: 18px; backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 24px 60px -30px rgba(0, 10, 30, .6); }
.y-glass a { color: inherit; }
.y-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.y-gh h3 { flex: 1; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.y-gh h3 small { display: block; font-size: 11px; font-weight: 500; color: var(--g-muted); }
.y-gh > a, .y-gh > button { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--g-bg2); border: 0; color: var(--g-text); cursor: pointer; }
.y-dmuted { color: var(--g-muted); font-size: 12px; }
.y-dmuted a { text-decoration: underline; }
.y-dempty { text-align: center; color: var(--g-muted); padding: 18px 6px; font-size: 13px; }
.y-dempty svg.i { width: 34px; height: 34px; opacity: .6; display: block; margin: 0 auto 6px; }
.yar.desk .y-skel { background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)); background-size: 200% 100%; }

/* جستجو */
.y-dsearch { padding: 14px; position: relative; }
.y-dseg { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.y-dseg button { border: 0; background: transparent; color: var(--g-muted); padding: 6px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.y-dseg button .g { display: grid; width: 20px; height: 20px; place-items: center; background: #fff; border-radius: 50%; }
.y-dseg button svg.i { width: 16px; height: 16px; }
.y-dseg button.on { background: rgba(255, 255, 255, .16); color: #fff; }
.y-dsearch form { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .28); border: 1px solid var(--g-line); border-radius: 18px; padding: 6px; }
.y-dsearch form:focus-within { border-color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .36); }
.y-dsearch form .i { color: var(--g-muted); display: grid; padding-right: 8px; }
.y-dsearch input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; padding: 11px 6px; font-size: 16.5px; min-width: 0; }
.y-dsearch input::placeholder { color: var(--g-muted); }
.y-dsearch .mic, .y-dsearch .go { width: 44px; height: 44px; border-radius: 14px; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; }
.y-dsearch .mic { background: transparent; }
.y-dsearch .mic.rec { background: #ef4444; animation: yring 1s infinite; }
.y-dsearch .go { background: linear-gradient(135deg, #6366f1, #3b82f6); box-shadow: 0 8px 20px -8px #3b82f6; }
.y-dsugg { position: absolute; top: calc(100% - 6px); right: 14px; left: 14px; z-index: 30; background: rgba(14, 26, 50, .96); border: 1px solid var(--g-line); border-radius: 0 0 16px 16px; padding: 6px; display: grid; }
.y-dsugg button { border: 0; background: none; color: #fff; text-align: right; padding: 9px 12px; border-radius: 10px; cursor: pointer; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.y-dsugg button:hover { background: rgba(255, 255, 255, .1); }
.y-dsugg svg.i { width: 15px; height: 15px; opacity: .6; }

/* میانبرها */
.y-dapps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; padding-bottom: 26px; }
.y-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; border: 0; background: none; cursor: pointer; padding: 0; color: #fff; }
.y-app .ai { width: 100%; aspect-ratio: 1; max-width: 86px; border-radius: 24px; background: var(--g-bg); border: 1px solid var(--g-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; place-items: center; font-weight: 900; font-size: 24px; color: var(--c, #fff); transition: transform .15s, background .15s; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.y-app .ai img { width: 38px; height: 38px; border-radius: 10px; }
.y-app:hover .ai { transform: translateY(-3px); background: rgba(20, 44, 86, .66); }
.y-app .al { font-size: 12.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.y-app.add .ai { background: rgba(12, 30, 62, .28); color: rgba(255, 255, 255, .6); border-style: dashed; box-shadow: none; }
.y-app.add .ai svg.i { width: 26px; height: 26px; }
.y-app .x { position: absolute; top: -6px; left: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; display: none; place-items: center; cursor: pointer; font-size: 15px; line-height: 1; }
.y-dapps.editing .y-app .x { display: grid; }
.y-dapps.editing .y-app:not(.add) .ai { animation: ywig .3s infinite alternate; }
@keyframes ywig { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.y-apps-edit { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border: 0; background: rgba(0, 0, 0, .25); color: #fff; font-size: 11.5px; padding: 3px 12px; border-radius: 10px; cursor: pointer; opacity: .75; }

/* ابزارها روی شیشه */
.y-dtools.y-glass { padding: 12px; }
.y-dtools.y-tools { margin: 0; }
.yar.desk .y-dtools a { background: rgba(255, 255, 255, .06); border-color: var(--g-line); color: #fff; box-shadow: none; }
.yar.desk .y-dtools a span { background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; }

/* ساعت و آب‌وهوا */
.y-dtop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.y-dtime b { display: block; font-size: 44px; font-weight: 300; line-height: 1.05; letter-spacing: 1px; direction: ltr; text-align: right; background: linear-gradient(180deg, #fff, #c7dcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.y-dtime span { display: block; font-weight: 800; font-size: 15px; margin-top: 4px; }
.y-dtime small { display: block; color: var(--g-muted); font-size: 11.5px; margin-top: 2px; }
.y-dwx { display: flex; gap: 6px; align-items: center; text-align: left; }
.y-dwx .y-wxi { font-size: 38px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.y-dwx b { display: block; font-size: 28px; font-weight: 800; color: #ffd166; line-height: 1.1; }
.y-dwx span { display: block; font-size: 12.5px; font-weight: 700; }
.y-dwx small { display: block; font-size: 11px; color: var(--g-muted); }
.y-dtabs { display: flex; gap: 4px; margin: 14px 0 10px; background: rgba(0, 0, 0, .2); padding: 3px; border-radius: 12px; }
.y-dtabs button { flex: 1; border: 0; background: none; color: var(--g-muted); font-size: 12px; font-weight: 700; padding: 6px 4px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.y-dtabs button svg.i { width: 14px; height: 14px; }
.y-dtabs button.on { background: rgba(255, 255, 255, .14); color: #fff; }
.y-dpanel { min-height: 86px; }
.y-pray { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.y-pray div { display: flex; justify-content: space-between; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; }
.y-pray div.nx { background: rgba(255, 209, 102, .2); outline: 1px solid rgba(255, 209, 102, .5); }
.y-pray b { font-weight: 800; }
.y-fc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; }
.y-fc div { display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 2px; font-size: 11px; }
.y-fc i { font-style: normal; font-size: 20px; }
.y-fc small { color: var(--g-muted); }
.y-dev { display: grid; gap: 7px; font-size: 13px; }
.y-dev div { display: flex; gap: 8px; align-items: center; }
.y-dev i { width: 7px; height: 7px; border-radius: 50%; background: #7dd3fc; flex: none; }
.y-dev .hol i { background: #f87171; }
.y-dev span { flex: 1; }
.y-dev small { color: var(--g-muted); font-size: 11px; white-space: nowrap; }
.y-dev .nw i { background: #ffd166; }
.y-dev .nw span { color: #ffd166; font-weight: 700; }

/* تقویم کوچک */
.y-dcal .y-gh h3 { justify-content: center; text-align: center; flex-direction: column; gap: 0; }
.y-mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.y-mcal .wd { font-size: 11.5px; color: var(--g-muted); font-weight: 700; padding: 2px 0 6px; }
.y-mcal .wd:last-child { color: #fca5a5; }
.y-mcal a { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; position: relative; transition: background .15s; }
.y-mcal a:hover { background: rgba(255, 255, 255, .12); }
.y-mcal a.hol { color: #fca5a5; }
.y-mcal a.ev::after, .y-mcal a.has::before { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #7dd3fc; }
.y-mcal a.has::before { background: #ffd166; transform: translateX(5px); }
.y-mcal a.td { background: #fff; color: #0b2a55; }
.y-mcal a.td.hol { background: #ef4444; color: #fff; }
.y-mcal-f { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--g-line); font-size: 12px; }
.y-mcal-f a { display: inline-flex; align-items: center; gap: 5px; color: var(--g-muted); }
.y-mcal-f svg.i { width: 15px; height: 15px; }

/* کارهای من */
.y-tasks { display: flex; flex-direction: column; min-height: 520px; max-height: calc(100vh - 60px); }
.y-tlist { flex: 1; overflow-y: auto; display: grid; gap: 8px; align-content: start; margin: 0 -4px; padding: 0 4px; }
.y-task { display: flex; gap: 10px; align-items: flex-start; background: rgba(0, 0, 0, .22); border: 1px solid var(--g-line); border-radius: 16px; padding: 10px 12px; position: relative; }
.y-task[data-c="yellow"] { border-right: 3px solid #fde047; } .y-task[data-c="green"] { border-right: 3px solid #86efac; } .y-task[data-c="blue"] { border-right: 3px solid #93c5fd; } .y-task[data-c="pink"] { border-right: 3px solid #f9a8d4; } .y-task[data-c="purple"] { border-right: 3px solid #c4b5fd; } .y-task[data-c="orange"] { border-right: 3px solid #fdba74; }
.y-task .ck { width: 20px; height: 20px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .5); background: none; flex: none; cursor: pointer; display: grid; place-items: center; margin-top: 2px; color: #fff; padding: 0; }
.y-task .ck svg.i { width: 14px; height: 14px; stroke-width: 3; }
.y-task.dn .ck { background: #22c55e; border-color: #22c55e; }
.y-task .tx { flex: 1; min-width: 0; cursor: pointer; }
.y-task .tx b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.y-task .tx p { margin: 2px 0 0; font-size: 12px; color: var(--g-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.y-task .tx small { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; font-size: 11px; background: rgba(255, 255, 255, .1); padding: 1px 8px; border-radius: 8px; }
.y-task .tx small svg.i { width: 12px; height: 12px; }
.y-task.dn { opacity: .45; }
.y-task.dn .tx b { text-decoration: line-through; }
.y-task .pn { color: #ffd166; position: absolute; top: 8px; left: 8px; }
.y-task .pn svg.i { width: 15px; height: 15px; }
.y-tadd { display: flex; gap: 6px; margin-top: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--g-line); border-radius: 14px; padding: 4px; }
.y-tadd input { flex: 1; border: 0; outline: 0; background: none; color: #fff; padding: 9px 10px; min-width: 0; }
.y-tadd input::placeholder { color: var(--g-muted); }
.y-tadd button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.y-drem { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--g-line); font-size: 13px; }
.y-drem:last-child { border-bottom: 0; }
.y-drem i { width: 8px; height: 8px; border-radius: 50%; background: #7dd3fc; flex: none; }
.y-drem.k-cheque i, .y-drem.k-installment i { background: #f87171; }
.y-drem span { flex: 1; }
.y-drem small { display: block; font-size: 11px; color: var(--g-muted); }

/* اخبار و سرویس‌ها */
.y-dnews { display: grid; gap: 4px; }
.y-dnews a { display: flex; gap: 12px; padding: 8px; border-radius: 14px; align-items: center; }
.y-dnews a:hover { background: rgba(255, 255, 255, .08); }
.y-dnews b { display: block; font-size: 13.5px; line-height: 1.7; }
.y-dnews small { color: var(--g-muted); font-size: 11.5px; }
.y-dnews .lead .ph { width: 120px; height: 76px; border-radius: 12px; background: center/cover; flex: none; }
.y-deco { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.y-deco a { position: relative; border-radius: 22px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 20px 40px -24px var(--c); display: flex; flex-direction: column; }
.y-deco b { font-size: 18px; }
.y-deco small { opacity: .85; font-size: 12.5px; }
.y-deco svg.i { position: absolute; top: 14px; left: 14px; opacity: .7; }

/* داک */
.y-dock { display: none; }
@media (min-width: 901px) { .yar.desk .y-dock { display: flex; }
}
.yar.desk .y-dock { position: fixed; top: 20px; bottom: 20px; right: 20px; z-index: 45; width: 68px; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; background: var(--g-bg); border: 1px solid var(--g-line); border-radius: 34px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; }
.yar-embed.desk .y-dock { position: absolute; }
.y-dock-logo .y-logo { width: 44px; height: 44px; border-radius: 15px; }
.y-dock nav { display: grid; gap: 4px; margin: auto 0; }
.y-dock nav a, .y-dock nav button, .y-dock-foot button { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: rgba(255, 255, 255, .78); background: none; border: 0; cursor: pointer; position: relative; transition: background .15s; }
.y-dock nav a:hover, .y-dock nav button:hover, .y-dock-foot button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.y-dock nav a.on { background: rgba(255, 255, 255, .18); color: #fff; }
.y-dock-foot { display: grid; gap: 4px; justify-items: center; }
.y-dock-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--y-accent), #b45309); display: grid; place-items: center; font-weight: 800; color: #fff; margin-top: 4px; border: 2px solid rgba(255, 255, 255, .5); }
.y-dock .y-badge { border-color: transparent; }
.y-launch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.y-launch a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--y-surface-2); font-size: 12.5px; font-weight: 700; text-align: center; }
.y-launch a span { width: 44px; height: 44px; border-radius: 14px; background: var(--y-p-soft); color: var(--y-primary); display: grid; place-items: center; }

/* پخش‌کننده */
.y-player { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 44; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 40px; background: rgba(10, 22, 44, .72); border: 1px solid var(--g-line, rgba(255,255,255,.14)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); max-width: calc(100vw - 32px); }
.y-player .cv { width: 44px; height: 44px; border-radius: 50%; background: #1e3a8a center/cover; display: grid; place-items: center; font-size: 18px; flex: none; border: 2px solid rgba(255, 255, 255, .3); }
.y-player .cv.spin { animation: yspin 6s linear infinite; }
.y-player .mt { min-width: 0; padding: 0 4px; }
.y-player .mt b { display: block; font-size: 13px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y-player .mt small { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); }
.y-player button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.y-player button.pl { background: #fff; color: #0b2a55; width: 40px; height: 40px; }
.yar.desk .y-main { padding-bottom: 110px; }

/* شخصی‌سازی */
.y-wps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.y-wps button { aspect-ratio: 1.5; border-radius: 14px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; position: relative; overflow: hidden; }
.y-wps button span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px; }
.y-wps button.on { border-color: var(--y-primary); box-shadow: 0 0 0 3px var(--y-p-soft); }

/* واکنش‌گرا */
@media (max-width: 1250px) { .y-desk { grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); } .y-dcol-c { grid-column: 1; grid-row: 1; } .y-dcol-l { grid-column: 2; grid-row: 1; } .y-dcol-r { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .y-tasks { min-height: 0; max-height: 460px; } }
@media (min-width: 901px) { .yar.desk .y-header { display: none; } .yar.desk .y-bottom { display: none; } }
@media (max-width: 900px) {
	.yar.desk .y-main { padding: 12px 12px 120px; }
	.yar.desk .y-header { background: rgba(10, 24, 50, .35); border-bottom-color: rgba(255, 255, 255, .1); }
	.yar.desk .y-header .y-brand b { color: #fff; }
	.yar.desk .y-header .y-brand small { color: rgba(255, 255, 255, .7); }
	.y-desk { display: flex; flex-direction: column; gap: 14px; }
	.y-dcol { display: contents; }
	.y-dclock { order: 1; } .y-dsearch { order: 2; } .y-dapps { order: 3; } .y-dtools { order: 4; } [data-rem] { order: 5; } .y-tasks { order: 6; min-height: 0; max-height: none; } .y-dcal { order: 7; } [data-w="news"] { order: 8; } [data-eco] { order: 9; }
	.y-dapps { grid-template-columns: repeat(4, 1fr); gap: 10px; }
	.y-app .ai { border-radius: 20px; }
	.y-dtime b { font-size: 38px; }
	.y-glass { border-radius: 22px; padding: 14px; }
	.y-player { bottom: 82px; }
	.y-wps { grid-template-columns: repeat(3, 1fr); }
}

/* جستجوی اینترنت */
.y-ttabs { display: flex; gap: 6px; margin: -8px 0 16px; max-width: 1080px; }
.y-ttabs a { padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--y-muted); border: 1px solid var(--y-line); background: var(--y-surface); }
.y-ttabs a.on { background: var(--y-text); color: var(--y-bg); border-color: var(--y-text); }
.y-sgrid { display: grid; gap: 24px; max-width: 1080px; }
.y-sgrid.has-side { grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); align-items: start; }
@media (max-width: 1000px) { .y-sgrid.has-side { grid-template-columns: 1fr; } .y-ibox { order: -1; } }
.y-ibox img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.y-ibox h3 { font-size: 19px !important; margin-bottom: 6px !important; }
.y-ibox p { font-size: 13.5px; line-height: 2; color: color-mix(in srgb, var(--y-text) 80%, transparent); }
.y-qa { background: var(--y-surface); border: 1px solid var(--y-line); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--y-shadow); max-width: 760px; }
.y-qa small { display: block; color: var(--y-muted); font-size: 13px; }
.y-qa b { display: block; font-size: 30px; font-weight: 800; margin: 2px 0; }
.y-related { margin-top: 20px; max-width: 760px; }
.y-related h4 { font-size: 15px; margin-bottom: 10px; }
.y-related > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.y-related a { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--y-surface-2); font-size: 13.5px; }
.y-related svg.i { width: 15px; height: 15px; color: var(--y-muted); }
.y-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.y-imgs a { position: relative; border-radius: 14px; overflow: hidden; background: var(--y-surface-2); aspect-ratio: 1; display: block; }
.y-imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.y-imgs a:hover img { transform: scale(1.05); }
.y-imgs span { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 11px; padding: 14px 8px 4px; direction: ltr; text-align: left; }
.y-media a { display: flex; gap: 14px; align-items: flex-start; }
.y-media .th { width: 168px; aspect-ratio: 16/10; border-radius: 12px; background: var(--y-surface-2) center/cover; flex: none; position: relative; }
.y-media .th i { position: absolute; bottom: 6px; left: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; font-style: normal; padding: 1px 6px; border-radius: 6px; direction: ltr; }
.y-media .u { gap: 10px; }
@media (max-width: 600px) { .y-media .th { width: 110px; } .y-imgs { grid-template-columns: repeat(2, 1fr); } }
.y-dsugg[hidden] { display: none !important; }
.yar.desk .y-dtools { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.yar.desk .y-dtools a { padding: 10px 4px; border-radius: 16px; font-size: 11.5px; }
.yar.desk .y-dtools a span { width: 40px; height: 40px; border-radius: 13px; }
.y-dwx { flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.y-dwx > div:last-child { text-align: left; }
.y-dwx small { white-space: nowrap; }
@media (max-width: 1250px) { .yar.desk .y-dtools { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .y-dock { display: none !important; } .yar.desk .y-dtools { grid-template-columns: repeat(4, 1fr); } .y-desk > *, .y-dcol > * { min-width: 0; max-width: 100%; } }
@media (max-width: 900px) { .y-desk { align-items: stretch; } .y-desk .y-glass, .y-desk .y-dapps, .y-desk [data-eco] { width: 100%; } }
.yar.desk::before { background-color: var(--y-wall-base, #2f8be8); background-image: var(--y-wall); }
.yar.desk.wall-light { --g-bg: rgba(255, 255, 255, .62); --g-bg2: rgba(0, 0, 0, .05); --g-line: rgba(0, 0, 0, .08); --g-text: #1c2421; --g-muted: rgba(0, 0, 0, .55); }
.yar.desk.wall-light .y-app .al { color: #1c2421; text-shadow: none; }
.yar.desk.wall-light .y-dsearch input, .yar.desk.wall-light .y-tadd input { color: #1c2421; }
.yar.desk.wall-light .y-dsearch form, .yar.desk.wall-light .y-tadd, .yar.desk.wall-light .y-task { background: rgba(255, 255, 255, .55); }
.yar.desk.wall-light .y-dtime b { background: none; color: #1c2421; -webkit-background-clip: initial; }
.yar.desk.wall-light .y-dseg button.on, .yar.desk.wall-light .y-dtabs button.on { background: rgba(0, 0, 0, .08); color: #1c2421; }
.yar.desk.wall-light .y-task .ck { border-color: rgba(0, 0, 0, .35); }
.y-wps.sm { grid-template-columns: repeat(5, 1fr); }
.y-wps.sm button { aspect-ratio: 1.3; }
.y-colorpick { width: 54px; height: 40px; border: 1.5px solid var(--y-line); border-radius: 12px; padding: 3px; background: var(--y-surface); cursor: pointer; }
.y-gprev { flex: 1; height: 40px; border-radius: 12px; }
.y-upbox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; border: 2px dashed var(--y-line); border-radius: 18px; cursor: pointer; background: var(--y-surface-2) center/cover; text-align: center; padding: 14px; text-shadow: 0 1px 3px rgba(255,255,255,.8); }
.y-upbox svg.i { width: 34px; height: 34px; color: var(--y-primary); }
.y-upbox small { color: var(--y-muted); }
[data-wp-pane][hidden] { display: none; }

/* ===== حالت ابزارک (المنتور / شورت‌کد [yar_widget]) ===== */
.yar.yar-w { background: transparent; min-height: 0; margin: 0 0 18px; font-family: var(--y-font); color: var(--y-text); }
.yar.yar-w.y-w-glass:not(.desk) { --g-bg: rgba(12, 30, 62, .58); --g-bg2: rgba(255, 255, 255, .08); --g-line: rgba(255, 255, 255, .14); --g-text: #fff; --g-muted: rgba(255, 255, 255, .7); }
.yar.yar-w.y-w-card { --g-bg: var(--y-surface); --g-bg2: rgba(0, 0, 0, .045); --g-line: var(--y-line); --g-text: var(--y-text); --g-muted: var(--y-muted); }
.yar.yar-w.y-w-card .y-glass { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 30px -18px rgba(0, 20, 40, .35); }
.yar.yar-w.y-w-card .y-app, .yar.yar-w.y-w-card .y-app .al { color: var(--y-text); text-shadow: none; }
.yar.yar-w.y-w-card .y-dsearch input, .yar.yar-w.y-w-card .y-tadd input, .yar.yar-w.y-w-card .y-dsugg button, .yar.yar-w.y-w-card .y-dsearch .mic { color: var(--y-text); }
.yar.yar-w.y-w-card .y-dsearch form, .yar.yar-w.y-w-card .y-tadd, .yar.yar-w.y-w-card .y-task { background: rgba(0, 0, 0, .035); }
.yar.yar-w.y-w-card .y-dtime b { background: none; color: var(--y-text); -webkit-background-clip: initial; background-clip: initial; }
.yar.yar-w.y-w-card .y-dseg button.on, .yar.yar-w.y-w-card .y-dtabs button.on { background: rgba(0, 0, 0, .07); color: var(--y-text); }
.yar.yar-w.y-w-card .y-task .ck { border-color: rgba(0, 0, 0, .35); }
.yar.yar-w.y-w-card .y-apps-edit { background: rgba(0, 0, 0, .06); color: var(--y-text); }
.yar.yar-w .y-wpiece { margin: 0; }
.yar.yar-w.y-wpage { max-width: 980px; margin-inline: auto; }
.yar.yar-w.y-wpage .y-page-title { display: none; }
/* صفحه اصلی کامل داخل کانتینر */
.yar.yar-w.desk { min-height: 100vh; overflow: hidden; border-radius: 0; }
.yar.yar-w.desk::before { position: absolute; background-color: var(--y-wall-base, #2f8be8); }
.yar.yar-w.desk .y-dock { position: absolute; }
/* برگه‌های قالب یار */
body.yar-canvas-body { margin: 0; background: #f4f7f6; font-family: var(--y-font, Vazirmatn, Tahoma, sans-serif); }
body.yar-wall-body { background: var(--y-wall-base, #2f8be8) var(--y-wall) center / cover fixed no-repeat; min-height: 100vh; }
body.yar-wall-body .elementor-widget-heading .elementor-heading-title { color: #fff; }
.yar.y-cbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0, 0, 0, .06); min-height: 0; }
body.yar-wall-body .yar.y-cbar { background: rgba(12, 30, 62, .45); border-color: rgba(255, 255, 255, .12); }
body.yar-wall-body .yar.y-cbar a { color: #fff; }
.y-cbar-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--y-text); font-size: 17px; }
.y-cbar-brand .y-logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--y-primary); color: #fff; font-weight: 900; overflow: hidden; }
.y-cbar-brand .y-logo img { width: 100%; height: 100%; object-fit: cover; }
.y-cbar nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.y-cbar nav a { color: var(--y-text); text-decoration: none; padding: 7px 12px; border-radius: 10px; font-size: 14.5px; white-space: nowrap; }
.y-cbar nav a:hover { background: rgba(0, 0, 0, .05); }
.y-cbar-app { background: var(--y-primary); color: #fff !important; text-decoration: none; padding: 8px 16px; border-radius: 12px; font-size: 14px; white-space: nowrap; }
.y-canvas-main { min-height: 60vh; }
.y-canvas-main > .yar.yar-w { padding: 16px; }
@media (max-width: 700px) { .yar.y-cbar { flex-wrap: wrap; gap: 8px; padding: 8px 14px; } .y-cbar nav { order: 3; flex-basis: 100%; } .y-cbar-app { margin-inline-start: auto; } }
.yar.yar-w.desk > div { padding: 20px 112px 110px 24px; }
@media (max-width: 900px) { .yar.yar-w.desk > div { padding: 14px 12px 100px; } }

.y-desk .y-wpiece { display: contents; }
.yar.yar-w.desk .y-player { position: absolute; }
.yar.yar-w.y-w-glass:not(.desk) .y-dtools a { background: var(--g-bg2); border-color: var(--g-line); color: #fff; box-shadow: none; }
.yar.yar-w.y-w-glass:not(.desk) .y-dtools a span { background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; }
.yar.yar-w.y-w-card .y-dtools a { color: var(--y-text); }

/* ===== رادیو ملودی ===== */
.y-radio .y-gh h3 svg { width: 18px; height: 18px; }
.y-rfull { width: auto !important; padding: 0 10px; gap: 4px; display: inline-flex !important; align-items: center; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.y-rfull svg.i { width: 14px; height: 14px; }
.y-rlive { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-inline-start: 6px; }
.y-rlive span { width: 3px; background: #22c55e; border-radius: 2px; animation: yeq 1s ease-in-out infinite; }
.y-rlive span:nth-child(2) { animation-delay: .2s; } .y-rlive span:nth-child(3) { animation-delay: .4s; }
@keyframes yeq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.y-rbody { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.y-rcv { width: 68px; height: 68px; flex: none; border-radius: 50%; background: #1e3a8a center / cover; display: grid; place-items: center; font-size: 24px; color: #fff; border: 3px solid var(--g-line); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.y-rcv.spin { animation: yspin 8s linear infinite; }
.y-rmeta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.y-rmeta b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--g-text); }
.y-rmeta small { color: var(--g-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.y-rmeta a { font-size: 11.5px; color: var(--g-muted); text-decoration: underline; margin-top: 2px; }
.y-rseek { width: 100%; margin: 12px 0 2px; accent-color: #22c55e; height: 4px; cursor: pointer; }
.y-rrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.y-rtime { font-size: 11.5px; color: var(--g-muted); white-space: nowrap; }
.y-rctl { display: flex; align-items: center; gap: 4px; }
.y-rctl button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--g-bg2); color: var(--g-text); display: grid; place-items: center; cursor: pointer; }
.y-rctl button.on { color: #22c55e; }
.y-rctl button.pl { width: 46px; height: 46px; background: #fff; color: #0b1324; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.y-rnext { margin-top: 10px; border-top: 1px solid var(--g-line); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.y-rnext small { color: var(--g-muted); font-size: 11.5px; }
.y-rnext button { border: 0; background: none; color: var(--g-text); text-align: right; font-size: 12.5px; padding: 5px 6px; border-radius: 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.y-rnext button:hover { background: var(--g-bg2); }
.y-radio .y-rcv.y-skel { border: 0; }
.yar.yar-w.y-w-card .y-rctl button.pl { background: var(--y-primary); color: #fff; }

/* ===== تبلیغات تبلیغو ===== */
.y-adbox { padding: 10px 12px 12px; }
.y-adh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.y-adh small { font-size: 11px; color: var(--g-muted); background: var(--g-bg2); padding: 1px 8px; border-radius: 6px; }
.y-adh a { font-size: 11px; color: var(--g-muted); text-decoration: none; }
.y-adh a:hover { text-decoration: underline; }
.y-adin { background: rgba(255, 255, 255, .94); color: #1c2421; border-radius: 14px; padding: 8px 10px; overflow: hidden; min-height: 36px; font-size: 14px; line-height: 1.9; }
.y-adin a { color: #0f5fc2; }
.y-adin:empty { display: none; }
.y-adframe { width: 100%; border: 0; display: block; min-height: 40px; background: transparent; }
@media (max-width: 900px) { [data-w="radio"] { order: 4; } [data-ad="top"] { order: 2; } [data-ad="center"] { order: 8; } [data-ad="side"] { order: 9; } }
.y-ralert { background: rgba(239, 68, 68, .18); border: 1px solid rgba(239, 68, 68, .35); color: var(--g-text); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; margin: 6px 0 4px; line-height: 1.8; }
.y-rcv.wait { animation: ypulse 1s ease-in-out infinite; }
@keyframes ypulse { 50% { opacity: .5; } }
.y-alert.warn { background: #fff7e6; color: #92400e; border: 1px solid #fcd9a4; font-weight: 600; line-height: 1.9; }
/* ===== دستیار هوشمند در صفحه اصلی ===== */
.y-dai .y-gh h3 svg.i { color: #c4b5fd; }
.y-daim { display: flex; gap: 4px; margin-bottom: 8px; }
.y-daim button { border: 0; background: transparent; color: var(--g-muted); padding: 5px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.y-daim button svg.i { width: 15px; height: 15px; }
.y-daim button.on { background: linear-gradient(135deg, rgba(124, 58, 237, .55), rgba(59, 130, 246, .45)); color: #fff; }
.y-daii { display: flex; gap: 6px; background: rgba(0, 0, 0, .25); border: 1px solid var(--g-line); border-radius: 16px; padding: 5px; }
.y-daii input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--g-text); padding: 9px 8px; font-size: 15px; }
.y-daii input::placeholder { color: var(--g-muted); }
.y-daii button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.y-daic { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.y-daic button { border: 1px solid var(--g-line); background: var(--g-bg2); color: var(--g-text); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.yar.desk.wall-light .y-daii, .yar.yar-w.y-w-card .y-daii { background: rgba(0, 0, 0, .04); }
@media (max-width: 900px) { [data-w="ai"] { order: 2; } }
