/* ═══════════════════════════════════════════
   پنل کاربری بیتفا — bitfa.fund/account/
   دیزاین: زغالی برند + طلایی بیتفا، کارت‌های نرم
   ═══════════════════════════════════════════ */

:root {
	--acc-gold: #f7a01d;
	--acc-gold-2: #ffb84d;
	--acc-grad: linear-gradient(135deg, #f7a01d, #ffb84d);
	--acc-dark: #17191d;
	--acc-dark-2: #1e2125;
	--acc-dark-3: #26282c;
	--acc-dark-line: rgba(255,255,255,.07);
}

/* ═══════════ صفحه‌ی ورود / ثبت‌نام — سبک bitfa.io ═══════════ */
.acc-auth-stage {
	position: relative;
	background: #0f1113; /* neutrals-0 بیتفا */
	padding: 40px 22px;
	min-height: calc(100vh - 80px);
	display: flex;
	overflow: hidden;
}
/* کارت وسط صفحه؛ واترمارک پس‌زمینه‌ی کل استیج */
.acc-split {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

/* کارت سفید فرم — جمع‌وجور و وسط */
.acc-card-side {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	justify-content: center;
}
.acc-auth {
	width: 100%;
	max-width: 460px;
	background: #fff;
	border-radius: 26px;
	padding: 40px 38px 34px;
	box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.acc-auth__head { text-align: center; margin-bottom: 30px; }
.acc-auth__logo { display: inline-block; margin-bottom: 22px; }
.acc-auth__title { margin: 0 0 12px; font-size: 25px; font-weight: 800; color: var(--text); }
.acc-auth__sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 2.1; }

/* ویژوال واترمارک — لایه‌ی پس‌زمینه‌ی کل استیج */
.acc-visual {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
/* مطابق bitfa.io: رنگ #9ba2ad با چرخش -24deg، بزرگ در سمت چپ */
.acc-visual__mark {
	position: absolute;
	top: 50%;
	left: 7%;
	height: min(78vh, 660px);
	width: auto;
	opacity: .17;
	transform: translateY(-52%) rotate(-24deg);
}
/* گلوی نارنجی: دایره‌ی بلورشده زیر نوک فلش */
.acc-visual__glow {
	position: absolute;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: var(--acc-gold);
	filter: blur(130px);
	bottom: 2%;
	left: 20%;
	opacity: .5;
	pointer-events: none;
}

/* لینک سوییچ ورود/ثبت‌نام */
.acc-switchline { text-align: center; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.acc-switchline a { color: var(--primary-d); font-weight: 800; text-decoration: none; margin-inline-start: 4px; }
.acc-switchline a:hover { text-decoration: underline; }

.acc-pane { display: none; width: 100%; max-width: 420px; margin-inline: auto; }
.acc-pane.is-active { display: block; animation: accFade .25s ease; }
@keyframes accFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.acc-auth > .acc-note { width: 100%; max-width: 420px; margin-inline: auto; }

/* فیلدها */
.acc-field { display: block; margin-bottom: 14px; }
.acc-field > span:first-child { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.acc-field__box { position: relative; display: block; }
.acc-field__ico {
	position: absolute;
	inset-inline-start: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #a7a9ac;
	display: inline-flex;
	pointer-events: none;
}
.acc-field__box input {
	width: 100%;
	height: 54px;
	padding: 0 16px;
	border: 1.5px solid var(--border);
	border-radius: 13px;
	background: #fff;
	font: inherit;
	font-size: 14.5px;
	color: var(--text);
	transition: all .18s;
}
.acc-field__box .acc-field__ico ~ input,
.acc-field__box:has(.acc-field__ico) input { padding-inline-start: 44px; }
.acc-field__box input:focus {
	outline: none;
	border-color: var(--acc-gold);
	box-shadow: 0 0 0 4px rgba(247,160,29,.14);
}
.acc-field__box input:hover:not(:focus) { border-color: #d3d6da; }
.acc-field__box input:focus ~ .acc-field__ico { color: var(--acc-gold); }
.acc-field__box input[readonly] { color: var(--muted); }
.acc-field__box input::placeholder { color: #b9bcbf; }
.acc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* دکمه‌ی اصلی طلایی */
.acc-btn-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 52px;
	margin-top: 4px;
	border: 0;
	border-radius: 13px;
	background: var(--acc-grad);
	color: #fff;
	font: inherit;
	font-size: 15.5px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(247,160,29,.35);
	transition: all .18s;
}
.acc-btn-main:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(247,160,29,.45); filter: brightness(1.03); color: #fff; }
.acc-btn-main:active { transform: none; }
.acc-btn-main[disabled] { opacity: .65; cursor: wait; transform: none; }
.acc-btn-main--sm { width: auto; height: 44px; padding: 0 22px; font-size: 14px; margin-top: 14px; }
.acc-btn-main--inline { width: auto; padding: 0 32px; }

.acc-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border: 1.5px solid var(--border);
	border-radius: 11px;
	background: #fff;
	color: var(--text);
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all .15s;
}
.acc-btn-ghost:hover { border-color: var(--acc-gold); color: var(--primary-d); }

/* پیام‌ها */
.acc-msg {
	margin: 2px 0 12px;
	padding: 10px 14px;
	border-radius: 11px;
	font-size: 13px;
	line-height: 1.9;
	background: #fdecec;
	color: var(--danger);
	border: 1px solid rgba(220,38,38,.15);
}
.acc-msg.is-ok { background: #e8f7ee; color: #15803d; border-color: rgba(22,163,74,.18); }
.acc-note { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.9; }
.acc-note--err { background: #fdecec; color: var(--danger); border: 1px solid rgba(220,38,38,.15); }

.acc-or { position: relative; margin: 20px 0 16px; text-align: center; }
.acc-or::before { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--border); }
.acc-or span { position: relative; background: #fff; padding: 0 14px; color: #a7a9ac; font-size: 12.5px; }

.acc-google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 54px;
	border: 1.5px solid var(--border);
	border-radius: 13px;
	background: #fff;
	color: var(--text);
	font-weight: 700;
	font-size: 14.5px;
	text-decoration: none;
	transition: all .18s;
}
.acc-google:hover { border-color: #c9ccd1; box-shadow: 0 8px 22px rgba(30,33,37,.1); transform: translateY(-1px); color: var(--text); }

/* ═══════════ داشبورد ═══════════ */
.acc-stage {
	padding: 40px 0 72px;
	background:
		radial-gradient(700px 260px at 85% -60px, rgba(247,160,29,.06), transparent 70%),
		var(--bg-2);
	min-height: 72vh;
}
.acc-wrap { display: grid; grid-template-columns: 272px 1fr; gap: 24px; align-items: start; }

/* ---------- سایدبار تیره ---------- */
.acc-side {
	position: sticky;
	top: 88px;
	background: linear-gradient(180deg, var(--acc-dark-3) 0%, var(--acc-dark-2) 100%);
	border-radius: 20px;
	padding: 22px 16px 14px;
	box-shadow: 0 18px 44px rgba(30,33,37,.22);
	overflow: hidden;
}
.acc-side::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 120px;
	background: radial-gradient(240px 120px at 80% -30px, rgba(247,160,29,.22), transparent 70%);
	pointer-events: none;
}
.acc-side__profile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 0 6px 18px;
	border-bottom: 1px solid var(--acc-dark-line);
	margin-bottom: 12px;
}
.acc-side__who { min-width: 0; }
.acc-side__who strong { display: block; font-size: 15px; color: #fff; }
.acc-side__who span { display: block; font-size: 11.5px; color: #8f939a; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }

.acc-avatar-wrap { position: relative; flex-shrink: 0; }
.acc-avatar-ring {
	display: inline-flex;
	padding: 3px;
	border-radius: 50%;
	background: var(--acc-grad);
}
.acc-avatar-ring--lg { padding: 3.5px; }
.acc-avatar { border-radius: 50%; object-fit: cover; display: block; border: 2.5px solid var(--acc-dark-2); }
.acc-avatar-ring--lg .acc-avatar { border-color: #fff; }
.acc-avatar--letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--acc-dark-3);
	color: var(--acc-gold);
	font-weight: 800;
	border: 2.5px solid var(--acc-dark-2);
}
.acc-avatar-ring--lg .acc-avatar--letter { background: var(--surface-2); border-color: #fff; }
.acc-avatar-edit {
	position: absolute;
	bottom: -3px;
	left: -3px;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 2px solid var(--acc-dark-2);
	background: var(--acc-grad);
	color: #fff;
	cursor: pointer;
	transition: transform .15s;
}
.acc-avatar-edit:hover { transform: scale(1.1); }

.acc-nav { position: relative; display: flex; flex-direction: column; gap: 3px; }
.acc-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 13px;
	border-radius: 12px;
	color: #b9bcbf;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all .15s;
}
.acc-nav__item:hover { background: rgba(255,255,255,.05); color: #fff; }
.acc-nav__item.is-active {
	background: var(--acc-grad);
	color: #fff;
	font-weight: 800;
	box-shadow: 0 8px 20px rgba(247,160,29,.32);
}
.acc-nav__ico { display: inline-flex; opacity: .9; }
.acc-nav__label { flex: 1; }
.acc-nav__pill {
	background: rgba(255,255,255,.14);
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 9px;
}
.acc-nav__item:not(.is-active) .acc-nav__pill { background: var(--acc-gold); color: #1e2125; }
.acc-nav__item--out {
	margin-top: 12px;
	border-top: 1px solid var(--acc-dark-line);
	border-radius: 0;
	padding-top: 15px;
	color: #f87171;
}
.acc-nav__item--out:hover { background: rgba(220,38,38,.1); color: #f87171; border-radius: 0 0 12px 12px; }

/* ---------- محتوای اصلی ---------- */
.acc-main { min-width: 0; }

/* هیروی خوش‌آمد */
.acc-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: linear-gradient(120deg, var(--acc-dark-2) 0%, var(--acc-dark-3) 100%);
	border-radius: 20px;
	padding: 30px 32px;
	margin-bottom: 22px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(30,33,37,.18);
}
.acc-hero__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(340px 190px at 12% 120%, rgba(247,160,29,.28), transparent 70%),
		radial-gradient(280px 160px at 92% -20%, rgba(247,160,29,.14), transparent 70%);
	pointer-events: none;
}
.acc-hero__txt { position: relative; }
.acc-hero__txt h1 { margin: 0 0 8px; font-size: 23px; font-weight: 800; color: #fff; }
.acc-hero__txt p { margin: 0; font-size: 13.5px; color: #b9bcbf; line-height: 2; }
.acc-hero__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	height: 46px;
	padding: 0 22px;
	border-radius: 12px;
	background: var(--acc-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(247,160,29,.35);
	transition: all .18s;
}
.acc-hero__cta:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 12px 28px rgba(247,160,29,.45); }

/* کارت‌های آمار */
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.acc-stat {
	position: relative;
	display: block;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 18px;
	text-decoration: none;
	color: var(--text);
	transition: all .18s;
	overflow: hidden;
}
.acc-stat:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30,33,37,.12); border-color: transparent; }
.acc-stat__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	margin-bottom: 12px;
}
.acc-stat__ico.is-gold   { background: rgba(247,160,29,.14); color: #d98a0c; }
.acc-stat__ico.is-blue   { background: rgba(59,130,246,.12); color: #2563eb; }
.acc-stat__ico.is-green  { background: rgba(34,197,94,.12);  color: #16a34a; }
.acc-stat__ico.is-purple { background: rgba(147,51,234,.1);  color: #7c3aed; }
.acc-stat__n { display: block; font-size: 27px; font-weight: 800; line-height: 1.2; }
.acc-stat__l { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* سربرگ صفحات داخلی */
.acc-page-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.acc-page-head__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	flex-shrink: 0;
}
.acc-page-head__ico.is-gold   { background: rgba(247,160,29,.14); color: #d98a0c; }
.acc-page-head__ico.is-blue   { background: rgba(59,130,246,.12); color: #2563eb; }
.acc-page-head__ico.is-green  { background: rgba(34,197,94,.12);  color: #16a34a; }
.acc-page-head__ico.is-purple { background: rgba(147,51,234,.1);  color: #7c3aed; }
.acc-h1 { margin: 2px 0 6px; font-size: 22px; font-weight: 800; }
.acc-lead { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 2; }
.acc-lead a { color: var(--primary-d); font-weight: 600; }

.acc-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.acc-sec-head h2 { margin: 0; font-size: 17.5px; font-weight: 800; }
.acc-sec-head a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--primary-d); text-decoration: none; font-weight: 700; }

/* کارت‌های محتوا */
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acc-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all .2s;
}
.acc-card:hover { box-shadow: 0 20px 44px rgba(30,33,37,.13); transform: translateY(-3px); border-color: transparent; }
.acc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16/9;
	background:
		radial-gradient(200px 120px at 75% 20%, rgba(247,160,29,.16), transparent 70%),
		linear-gradient(135deg, var(--acc-dark-3), var(--acc-dark-2));
}
.acc-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-card__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--acc-gold); opacity: .9; }
.acc-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(20,22,25,.72);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
}
.acc-badge--soon { background: var(--acc-grad); }
.acc-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.acc-card__title { margin: 0; font-size: 15.5px; line-height: 1.7; font-weight: 800; }
.acc-card__title a { color: var(--text); text-decoration: none; }
.acc-card__title a:hover { color: var(--primary-d); }
.acc-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-card__meta span {
	background: var(--surface-2);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
}
.acc-card__ex { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 2; flex: 1; }
.acc-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	color: var(--primary-d);
	font-size: 13.5px;
	font-weight: 800;
	text-decoration: none;
	padding: 4px 0;
	transition: gap .15s;
}
.acc-card__btn:hover { gap: 9px; }

/* حالت خالی */
.acc-empty {
	background: #fff;
	border: 1.5px dashed #d6d9dd;
	border-radius: 18px;
	padding: 48px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	line-height: 2.1;
}
.acc-empty__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--surface-2);
	color: #a7a9ac;
	margin-bottom: 14px;
}

/* واچ‌لیست */
.acc-table-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(30,33,37,.06);
}
.acc-table-scroll { overflow-x: auto; }
.acc-wl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.acc-wl th {
	text-align: right;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	padding: 13px 18px;
	background: var(--surface-2);
	white-space: nowrap;
}
.acc-wl td { padding: 14px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.acc-wl tbody tr { cursor: pointer; transition: background .12s; }
.acc-wl tbody tr:hover { background: #fbf7ef; }
.acc-wl tr:last-child td { border-bottom: 0; }
.acc-wl__coin { display: flex; align-items: center; gap: 11px; }
.acc-wl__coin img { border-radius: 50%; }
.acc-wl__coin strong { display: block; font-size: 14px; }
.acc-wl__coin small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.acc-wl .ltr { direction: ltr; text-align: right; font-weight: 800; }
.acc-wl__toman { color: var(--muted); font-weight: 600; }
.acc-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.acc-chip.is-up { background: #e8f7ee; color: #16a34a; }
.acc-chip.is-down { background: #fdecec; color: #dc2626; }
.acc-wl__go { color: var(--primary-d); font-size: 12.5px; font-weight: 700; }

.acc-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* پروفایل */
.acc-panelcard {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 8px 26px rgba(30,33,37,.06);
}
.acc-profile-avatar {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 22px;
}
.acc-profile-avatar .acc-hint { margin-top: 8px; }
.acc-profile-form .acc-msg { margin-top: 12px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 960px) {
	.acc-wrap { grid-template-columns: 1fr; gap: 16px; }
	.acc-side { position: static; padding: 16px 14px; }
	.acc-side__profile { padding-bottom: 14px; }
	.acc-nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.acc-nav::-webkit-scrollbar { display: none; }
	.acc-nav__item { flex-shrink: 0; padding: 9px 14px; }
	.acc-nav__item--out { margin: 8px 0 0; border-top: 1px solid var(--acc-dark-line); padding-top: 12px; width: 100%; justify-content: center; }
	.acc-stats { grid-template-columns: repeat(2, 1fr); gap: 11px; }
	.acc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.acc-hero { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (max-width: 1060px) {
	.acc-visual { display: none; }
}
@media (max-width: 600px) {
	.acc-stage { padding: 18px 0 56px; }
	.acc-grid { grid-template-columns: 1fr; }
	.acc-row2 { grid-template-columns: 1fr; }
	.acc-auth { padding: 34px 22px; }
	.acc-auth-stage { padding: 12px; min-height: calc(100vh - 64px); }
	.acc-auth__title { font-size: 21px; }
	.acc-panelcard { padding: 18px; }
	.acc-wl th, .acc-wl td { padding: 12px 12px; }
	.acc-hero__txt h1 { font-size: 20px; }
}
