/* ==========================================================================
   EscBay account page — login / register tabs + logged-in profile card.
   Uses the theme's own CSS variables (defined in main.css) so it always
   matches the current day/night palette automatically.
   ========================================================================== */

.escbay-account {
	max-width: 420px;
	margin-inline: auto;
}

/* The logged-in dashboard (پروفایل / علاقه‌مندی‌ها / گفتگو) needs more
   room than the narrow login/register card — the favorites grid and
   chat panel both want real width. */
.escbay-account--dashboard {
	max-width: 720px;
	margin-top: 28px;
}

.escbay-account__tabs {
	display: flex;
	gap: 6px;
	background: var(--escbay-card);
	border: 1px solid var(--escbay-border);
	border-radius: var(--escbay-radius);
	padding: 5px;
	margin-bottom: 22px;
}

.escbay-account__tab {
	flex: 1;
	padding: 11px 0;
	border: none;
	background: transparent;
	border-radius: 8px;
	color: var(--escbay-gray);
	font-family: var(--escbay-font);
	font-weight: 700;
	font-size: 0.92rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.escbay-account__tab.is-active {
	background: var(--escbay-glow-gradient);
	color: #1a0f00;
}

.escbay-account__panel { display: none; }
.escbay-account__panel.is-active { display: block; }

.escbay-account__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--escbay-glass-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border: 1px solid var(--escbay-glass-border);
	border-radius: var(--escbay-radius);
	padding: 24px;
}

.escbay-account__form label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 0.88rem;
	color: var(--escbay-gray);
}

.escbay-account__form input {
	font-family: var(--escbay-font);
	font-size: 0.95rem;
	color: var(--escbay-white);
	background: var(--escbay-bg-soft);
	border: 1px solid var(--escbay-border);
	border-radius: 8px;
	padding: 12px 14px;
}

.escbay-account__form input:focus-visible {
	outline: 2px solid var(--escbay-orange);
	outline-offset: 1px;
}

.escbay-account__form button {
	width: 100%;
	justify-content: center;
	margin-top: 4px;
}

.escbay-account__message {
	display: none;
	font-size: 0.85rem;
	padding: 10px 14px;
	border-radius: 8px;
	background: rgba(202, 255, 51, 0.12);
	color: var(--escbay-phosphor);
}
.escbay-account__message.is-visible { display: block; }
.escbay-account__message.is-error {
	background: rgba(220, 60, 60, 0.14);
	color: #e07070;
}

/* Logged-in profile card */
.escbay-account-profile {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px;
	border-radius: var(--escbay-radius);
	flex-wrap: wrap;
}

.escbay-account-profile__avatar {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--escbay-glow-gradient);
	color: #1a0f00;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	font-weight: 800;
}

.escbay-account-profile__info { flex: 1; min-width: 160px; }
.escbay-account-profile__info h2 { margin: 0 0 4px; font-size: 1.1rem; }
.escbay-account-profile__info p { margin: 0; color: var(--escbay-gray); font-size: 0.88rem; }

/* Header account icon — a small dot once the visitor is logged in */
.escbay-icon-btn.is-logged-in { position: relative; }
.escbay-icon-btn.is-logged-in::after {
	content: '';
	position: absolute;
	top: 6px;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--escbay-phosphor);
	border: 1.5px solid var(--escbay-bg);
}

/* "علاقه‌مندی‌ها" tab reuses the shop grid component as-is; just give it
   breathing room inside the account panel. */
.escbay-account__panel[data-panel="favorites"] .escbay-shop-grid {
	margin: 0;
}
.escbay-account__panel .escbay-shop__empty {
	color: var(--escbay-gray);
	font-size: 0.9rem;
	padding: 20px 0;
}

/* "گفتگو با پشتیبانی" tab: the inline chat widget sits directly inside
   the panel — no extra card wrapper needed since escbay-chat__panel
   already looks like one. */
.escbay-account__panel[data-panel="chat"] { padding: 0; background: none; border: none; }
