/* ═══════════════════════════════════════════
   پنل کاربری بیتفا — bitfa.fund/account/
   ═══════════════════════════════════════════ */

/* ---------- صفحه‌ی ورود / ثبت‌نام ---------- */
.acc-auth-stage {
	min-height: calc(100vh - 220px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px;
	background:
		radial-gradient(600px 300px at 85% 0%, rgba(247,160,29,.07), transparent 70%),
		var(--bg-2);
}
.acc-auth {
	width: 100%;
	max-width: 420px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px 28px;
	text-align: center;
}
.acc-auth__logo { display: inline-block; margin-bottom: 10px; }
.acc-auth__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.acc-auth__sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.acc-auth__hint { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.acc-auth__hint a { color: var(--primary-d); text-decoration: none; }

.acc-tabs {
	display: flex;
	background: var(--surface-2);
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 18px;
}
.acc-tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 9px 10px;
	border-radius: 9px;
	font: inherit;
	font-weight: 700;
	color: var(--muted);
	cursor: pointer;
	transition: all .15s;
}
.acc-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(30,33,37,.08); }

.acc-pane { display: none; text-align: right; }
.acc-pane.is-active { display: block; }

.acc-field { display: block; margin-bottom: 12px; }
.acc-field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.acc-field input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
	font: inherit;
	font-size: 14px;
	color: var(--text);
	transition: border-color .15s;
}
.acc-field input:focus { outline: none; border-color: var(--primary); }
.acc-field input[readonly] { background: var(--surface-2); color: var(--muted); }
.acc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.acc-submit { width: 100%; margin-top: 6px; }
.acc-submit[disabled] { opacity: .6; cursor: wait; }

.acc-msg {
	margin: 4px 0 10px;
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 13px;
	line-height: 1.8;
	background: #fdecec;
	color: var(--danger);
}
.acc-msg.is-ok { background: #e8f7ee; color: var(--accent); }

.acc-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.8; }
.acc-note--err { background: #fdecec; color: var(--danger); }

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

.acc-google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
	color: var(--text);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: all .15s;
}
.acc-google:hover { border-color: #c9ccd1; box-shadow: 0 4px 14px rgba(30,33,37,.08); }

/* ---------- داشبورد ---------- */
.acc-stage { padding: 36px 0 64px; background: var(--bg-2); min-height: 70vh; }
.acc-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }

.acc-side {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	position: sticky;
	top: 84px;
}
.acc-side__profile { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.acc-side__who { min-width: 0; }
.acc-side__who strong { display: block; font-size: 14.5px; }
.acc-side__who span { display: block; font-size: 12px; color: var(--muted); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; }

.acc-avatar-wrap { position: relative; flex-shrink: 0; }
.acc-avatar { border-radius: 50%; object-fit: cover; display: block; }
.acc-avatar--letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), #ffb84d);
	color: #fff;
	font-weight: 800;
}
.acc-avatar-edit {
	position: absolute;
	bottom: -2px;
	left: -2px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--surface);
	background: var(--surface-2);
	font-size: 12px;
	cursor: pointer;
	line-height: 1;
}

.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background .12s;
}
.acc-nav__item:hover { background: var(--surface-2); }
.acc-nav__item.is-active { background: rgba(247,160,29,.12); color: var(--primary-d); }
.acc-nav__ico { width: 22px; text-align: center; }
.acc-nav__pill {
	margin-right: auto;
	background: var(--primary);
	color: #fff;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 800;
	padding: 1px 8px;
}
.acc-nav__item--out { color: var(--danger); margin-top: 8px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; padding-top: 12px; }

.acc-main {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	min-height: 420px;
}
.acc-h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.acc-lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.acc-lead a { color: var(--primary-d); }

.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.acc-stat {
	display: block;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px;
	text-align: center;
	text-decoration: none;
	color: var(--text);
	transition: all .15s;
}
.acc-stat:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.acc-stat__n { display: block; font-size: 26px; font-weight: 800; color: var(--primary-d); }
.acc-stat__l { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

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

/* کارت‌ها */
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acc-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all .15s;
}
.acc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.acc-card__media { position: relative; display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--surface-2), var(--bg-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%; font-size: 44px; }
.acc-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(30,33,37,.75);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}
.acc-badge--soon { background: var(--primary); }
.acc-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acc-card__title { margin: 0; font-size: 15px; line-height: 1.7; }
.acc-card__title a { color: var(--text); text-decoration: none; }
.acc-card__meta { font-size: 12px; color: var(--muted); }
.acc-card__ex { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.9; flex: 1; }
.acc-card__btn { align-self: flex-start; }

.acc-empty {
	background: var(--bg-2);
	border: 1.5px dashed var(--border);
	border-radius: 14px;
	padding: 40px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	line-height: 2;
}

/* واچ‌لیست */
.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: 600;
	padding: 8px 10px;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}
.acc-wl td { padding: 11px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.acc-wl tr:last-child td { border-bottom: 0; }
.acc-wl__coin { display: flex; align-items: center; gap: 10px; }
.acc-wl__coin img { border-radius: 50%; }
.acc-wl__coin strong { display: block; font-size: 13.5px; }
.acc-wl__coin span { display: block; font-size: 11px; color: var(--muted); }
.acc-wl .ltr { direction: ltr; text-align: right; font-weight: 700; }
.acc-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.acc-chip.is-up { background: #e8f7ee; color: var(--accent); }
.acc-chip.is-down { background: #fdecec; color: var(--danger); }
.acc-wl__go { color: var(--primary-d); text-decoration: none; font-size: 12.5px; font-weight: 700; }

.acc-hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* پروفایل */
.acc-profile-avatar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.acc-profile-form .acc-msg { margin-top: 10px; }
.acc-profile-form .acc-submit { width: auto; padding-inline: 28px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
	.acc-wrap { grid-template-columns: 1fr; }
	.acc-side { position: static; }
	.acc-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.acc-nav__item { flex-shrink: 0; }
	.acc-nav__item--out { margin: 0; border-top: 0; padding-top: 10px; }
	.acc-stats { grid-template-columns: repeat(2, 1fr); }
	.acc-grid { grid-template-columns: repeat(2, 1fr); }
	.acc-main { padding: 20px 16px; }
}
@media (max-width: 560px) {
	.acc-grid { grid-template-columns: 1fr; }
	.acc-row2 { grid-template-columns: 1fr; }
	.acc-auth { padding: 26px 18px; }
}
