/* بانک مشتریان — صفحه‌ی «حساب کاربری»: پوسته‌ی صفحه + کارت پروفایل + کاشی‌های دسترسی سریع. */

:root {
	--ddcb-acct-blue: #783942;
	--ddcb-acct-green: #B99874;
}

/* ---------- page shell ---------- */
.woocommerce-account #content,
.woocommerce-account .entry-content { background: transparent; }
body.woocommerce-account {
	background: linear-gradient(180deg, #f3f5f9 0%, #eef1f6 220px, #f7f8fa 100%);
}
.woocommerce-account .woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	max-width: 1040px;
	margin: 40px auto;
	padding: 0 16px;
}
.woocommerce-account .woocommerce-notices-wrapper { flex: 1 0 100%; }

.woocommerce-MyAccount-navigation { flex: 0 0 220px; }
.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 22px rgba(57, 36, 45, .06);
}
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 16px;
	color: #39242D;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	transition: background .2s, color .2s;
}
.woocommerce-MyAccount-navigation li:not(.is-active) a:hover { background: #f1f4f9; }
.woocommerce-MyAccount-navigation li.is-active a { color: #fff; background: var(--ddcb-acct-blue); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #b3261e; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fcf0f0; }

.woocommerce-MyAccount-content {
	flex: 1 1 320px;
	min-width: 0;
	padding: 28px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 22px rgba(57, 36, 45, .06);
}
.woocommerce-MyAccount-content > p:first-child:last-child { margin: 0; }

/* Generic reskin for the WooCommerce endpoints we don't fully redesign (orders / addresses / edit-account). */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 { margin-top: 0; color: #39242D; }
.woocommerce-MyAccount-content table.shop_table {
	overflow: hidden;
	border: 1px solid #eceff3;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
}
.woocommerce-MyAccount-content table.shop_table th { background: #f7f8fa; font-weight: 700; }
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td { padding: 12px 14px; border-top: 1px solid #eceff3; border-bottom: 0; }
.woocommerce-MyAccount-content .woocommerce-Address { padding: 18px; background: #f7f8fa; border-radius: 12px; }
.woocommerce-MyAccount-content .woocommerce-Address-title h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.woocommerce-MyAccount-content form .form-row input.input-text,
.woocommerce-MyAccount-content form .form-row select,
.woocommerce-MyAccount-content form .form-row textarea {
	padding: 9px 12px;
	border: 1px solid #dfe3e9;
	border-radius: 8px;
}
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content input.button,
.woocommerce-MyAccount-content a.button {
	padding: 10px 20px;
	font-weight: 600;
	color: #fff;
	background: var(--ddcb-acct-blue);
	border: 0;
	border-radius: 9999px;
	box-shadow: none;
	transition: background .2s, transform .2s;
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content input.button:hover,
.woocommerce-MyAccount-content a.button:hover { background: #5C2C35; transform: translateY(-1px); }

@media (max-width: 720px) {
	.woocommerce-account .woocommerce { margin: 20px auto; }
	.woocommerce-MyAccount-navigation { flex: 1 1 100%; }
	.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 4px; }
	.woocommerce-MyAccount-navigation li a { padding: 9px 13px; font-size: 13px; }
	.woocommerce-MyAccount-content { padding: 20px; }
}

/* ---------- profile card (dashboard) ---------- */
.ddcb-acct__card {
	position: relative;
	padding: 24px;
	margin: -28px -28px 24px;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(135deg, var(--ddcb-acct-blue) 0%, #5C2C35 60%, #4A2229 100%);
	border-radius: 16px 16px 0 0;
}
.ddcb-acct__card::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .5;
	background-image: radial-gradient(circle at 15% 20%, rgba(185, 152, 116, .35), transparent 45%),
		radial-gradient(circle at 85% 85%, rgba(255, 255, 255, .12), transparent 50%);
	pointer-events: none;
}

.ddcb-acct__profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ddcb-acct__avatar {
	position: relative;
	z-index: 1;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
}
.ddcb-acct__who { position: relative; z-index: 1; min-width: 0; }
.ddcb-acct__who h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #fff; }
.ddcb-acct__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.ddcb-acct__since { margin: 4px 0 0; font-size: 12px; color: rgba(255, 255, 255, .6); }

.ddcb-acct__badge {
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, .18);
	border-radius: 9999px;
}
.ddcb-acct__badge--vip { color: #3a2c00; background: #ffd873; }
.ddcb-acct__badge--customer { background: rgba(185, 152, 116, .35); }

/* ---------- quick-action tiles ---------- */
.ddcb-acct__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}
.ddcb-acct__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px;
	color: #39242D;
	text-decoration: none;
	background: #f7f8fa;
	border: 1px solid #eceff3;
	border-radius: 14px;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ddcb-acct__tile:hover {
	color: #39242D;
	background: #fff;
	border-color: var(--ddcb-acct-blue);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(57, 36, 45, .08);
}
.ddcb-acct__tile-ico { color: var(--ddcb-acct-blue); }
.ddcb-acct__tile-label { font-size: 13px; font-weight: 600; }
.ddcb-acct__tile-badge {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	padding: 1px 8px;
	font-size: 11px;
	color: #fff;
	background: var(--ddcb-acct-green);
	border-radius: 9999px;
}
.ddcb-acct__tile--danger .ddcb-acct__tile-ico,
.ddcb-acct__tile--danger .ddcb-acct__tile-label { color: #b3261e; }
.ddcb-acct__tile--danger:hover { color: #b3261e; border-color: #b3261e; }

/* Wallet balance: a full-width banner tile above the rest, not a plain link. */
.ddcb-acct__tile--highlight {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	cursor: default;
	background: linear-gradient(135deg, rgba(185, 152, 116, .14), rgba(185, 152, 116, .04));
	border-color: rgba(185, 152, 116, .35);
}
.ddcb-acct__tile--highlight:hover { background: linear-gradient(135deg, rgba(185, 152, 116, .18), rgba(185, 152, 116, .05)); border-color: rgba(185, 152, 116, .5); transform: none; box-shadow: none; }
.ddcb-acct__tile--highlight .ddcb-acct__tile-ico { color: #5c8a1f; }
.ddcb-acct__tile--highlight .ddcb-acct__tile-badge {
	position: static;
	margin-inline-start: auto;
	padding: 0;
	font-size: 19px;
	font-weight: 800;
	color: #395c11;
	background: none;
}

/* ---------- guest card ---------- */
.ddcb-acct--guest { text-align: center; }
.ddcb-acct__guest {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 32px 24px;
	margin: -28px -28px 0;
	border-radius: 16px 16px 0 0;
}
.ddcb-acct__avatar--logo { font-size: 14px; letter-spacing: .03em; }
.ddcb-acct__guest h2 { margin: 4px 0 0; font-size: 17px; color: #fff; }
.ddcb-acct__guest p { max-width: 320px; margin: 0 0 6px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.ddcb-acct__guest .ddcb-pill { margin-top: 4px; background: #fff; color: var(--ddcb-acct-blue); }
.ddcb-acct__guest .ddcb-pill .ddcb-pill__avatar { background: rgba(120, 57, 66, .12); }
.ddcb-acct__guest .ddcb-pill .ddcb-pill__avatar svg { stroke: var(--ddcb-acct-blue); }
.ddcb-acct__guest .ddcb-pill:hover { background: #f3f5f9; color: var(--ddcb-acct-blue); }

/* ---------- stepped gift coupons ---------- */
.ddcb-cpn { margin-top: 18px; }
.ddcb-cpn__title { margin: 0 0 4px; font-size: 16px; }
.ddcb-cpn__note { margin: 0 0 14px; font-size: 12.5px; line-height: 1.8; opacity: .75; }
.ddcb-cpn__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ddcb-cpn__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border: 1px dashed currentColor;
	border-color: rgba(185, 152, 116, .7);
	border-radius: 14px;
	background: rgba(185, 152, 116, .12);
}
.ddcb-cpn__amount { font-size: 19px; font-weight: 800; }
.ddcb-cpn__min, .ddcb-cpn__until { font-size: 12.5px; opacity: .8; }
.ddcb-cpn__code { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .06); font-size: 12px; letter-spacing: .06em; user-select: all; }
.ddcb-cpn__apply { align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--ddcb-acct-blue); color: #fff; font-size: 13px; text-decoration: none; }
.ddcb-cpn__apply:hover { opacity: .9; color: #fff; }
.ddcb-cpn__state { font-size: 12.5px; font-weight: 700; opacity: .7; }
.ddcb-cpn__item--used, .ddcb-cpn__item--expired { opacity: .5; background: transparent; }
