/* SMB360 storefront: customer club, rewards, coupons, history. Theme-independent. */
.smb-club {
	--c-primary: #5b55f0;
	--c-primary-2: #8a5cf6;
	--c-text: #1b1f33;
	--c-muted: #6b7088;
	--c-border: #e7e9f0;
	--c-soft: #f6f7fb;
	--c-green: #0b8a43;
	--c-red: #c9343a;
	direction: rtl;
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.8;
}
.smb-club *,
.smb-club *::before,
.smb-club *::after {
	box-sizing: border-box;
}
.smb-club [hidden] {
	display: none !important;
}

.smb-club__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 0 0 26px;
}
.smb-club__stat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 20px 22px;
	border-radius: 18px;
	color: #fff;
	overflow: hidden;
	box-shadow: 0 14px 30px -18px rgba(40, 30, 120, .6);
}
.smb-club__stat::after {
	content: "";
	position: absolute;
	left: -40px;
	bottom: -70px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	border: 30px solid rgba(255, 255, 255, .09);
}
.smb-club__stat--points {
	background: linear-gradient(135deg, #5b55f0 0%, #8a5cf6 100%);
}
.smb-club__stat--wallet {
	background: linear-gradient(135deg, #0e9f8f 0%, #22b07d 100%);
	box-shadow: 0 14px 30px -18px rgba(10, 110, 90, .6);
}
.smb-club__stat span {
	font-size: 13px;
	opacity: .85;
}
.smb-club__stat strong {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -.3px;
}
.smb-club__stat strong .woocommerce-Price-currencySymbol {
	font-size: 14px;
	font-weight: 500;
	opacity: .85;
	margin-right: 4px;
}
.smb-club__stat strong .woocommerce-Price-amount,
.smb-club__stat strong bdi {
	font-size: inherit;
	color: inherit;
}
.smb-club__stat em {
	font-style: normal;
	font-size: 12.5px;
	opacity: .8;
}

.smb-club__h {
	margin: 28px 0 12px !important;
	font-size: 17px !important;
	font-weight: 700;
}

/* Rewards */
.smb-club__rewards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
}
.smb-reward {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	border: 1px solid var(--c-border);
	border-radius: 16px;
	background: #fff;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.smb-reward:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -16px rgba(17, 24, 39, .3);
}
.smb-reward.is-ready {
	border-color: #d6d3ff;
	box-shadow: 0 0 0 3px rgba(91, 85, 240, .07);
}
.smb-reward__type {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 600;
}
.smb-reward__type--credit { color: #0a857a; background: #e2f5f2; }
.smb-reward__type--coupon { color: #6a46e8; background: #f0ecff; }
.smb-reward h4 {
	margin: 0 !important;
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.6;
}
.smb-reward__cost {
	color: var(--c-muted);
	font-size: 13px;
}
.smb-reward__bar {
	height: 6px;
	border-radius: 10px;
	background: #eef0f5;
	overflow: hidden;
}
.smb-reward__bar span {
	display: block;
	height: 100%;
	border-radius: 10px;
	background: linear-gradient(90deg, var(--c-primary-2), var(--c-primary));
}
.smb-reward__btn {
	margin-top: 6px;
	padding: 10px 14px !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: var(--c-primary) !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.smb-reward__btn:hover {
	background: #4b44db !important;
}
.smb-reward__btn[disabled] {
	background: var(--c-soft) !important;
	color: var(--c-muted) !important;
	font-weight: 500 !important;
	cursor: default;
}
.smb-reward__btn.is-busy {
	opacity: .6;
	pointer-events: none;
}
.smb-club__result {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	border: 1px solid;
}
.smb-club__result.is-ok { color: #075f30; background: #ecf9f1; border-color: #c4ebd3; }
.smb-club__result.is-err { color: #8f1f24; background: #fff0f0; border-color: #f6caca; }
.smb-club__result code {
	padding: 2px 8px;
	border-radius: 6px;
	background: #fff;
	font-weight: 700;
	direction: ltr;
	display: inline-block;
}

/* Coupons */
.smb-club__coupons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}
.smb-coupon {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 16px;
	border: 1.5px dashed #cfcbff;
	border-radius: 14px;
	background: #faf9ff;
}
.smb-coupon code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #4b44db;
	background: none;
	padding: 0;
	direction: ltr;
}
.smb-coupon span {
	flex: 1;
	color: var(--c-muted);
	font-size: 12.5px;
}
.smb-coupon button {
	padding: 5px 12px !important;
	border: 1px solid #d6d3ff !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: #4b44db !important;
	font: inherit !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	line-height: 1.6 !important;
	cursor: pointer;
}
.smb-coupon.is-off {
	opacity: .55;
	border-color: var(--c-border);
	background: var(--c-soft);
}
.smb-coupon.is-off code {
	color: var(--c-muted);
	text-decoration: line-through;
}

/* History */
.smb-club__tabs {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: #eef0f5;
}
.smb-club__tabs button {
	padding: 6px 16px !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: var(--c-muted) !important;
	font: inherit !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	line-height: 1.6 !important;
	cursor: pointer;
}
.smb-club__tabs button.is-active {
	background: #fff !important;
	color: var(--c-text) !important;
	font-weight: 700 !important;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .1);
}
.smb-club__history ul {
	margin: 0 !important;
	padding: 4px 16px !important;
	list-style: none !important;
	border: 1px solid var(--c-border);
	border-radius: 16px;
	background: #fff;
}
.smb-club__history li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 12px 0;
	border-bottom: 1px solid #f0f2f7;
}
.smb-club__history li:last-child {
	border-bottom: 0;
}
.smb-tx__dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.smb-tx__dot.is-in { background: #22b07d; box-shadow: 0 0 0 4px #e5f6eb; }
.smb-tx__dot.is-out { background: #e5484d; box-shadow: 0 0 0 4px #fde9ea; }
.smb-tx__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.55;
}
.smb-tx__text strong {
	font-size: 14px;
	font-weight: 600;
}
.smb-tx__text small {
	color: var(--c-muted);
	font-size: 12px;
}
.smb-tx__amount {
	font-weight: 700;
	white-space: nowrap;
	direction: ltr;
}
.smb-tx__amount.is-in { color: var(--c-green); }
.smb-tx__amount.is-out { color: var(--c-red); }
.smb-club__empty {
	padding: 26px;
	margin: 0;
	text-align: center;
	color: var(--c-muted);
	border: 1px dashed var(--c-border);
	border-radius: 16px;
}

/* Mini card on the account dashboard */
.smb-club--mini {
	margin: 0 0 24px;
}
.smb-club--mini .smb-club__stats {
	margin-bottom: 10px;
}
.smb-club--mini .smb-club__stat {
	padding: 16px 18px;
}
.smb-club--mini .smb-club__stat strong {
	font-size: 22px;
}
.smb-club__link {
	font-weight: 600;
	text-decoration: none !important;
	color: var(--c-primary) !important;
}

.smb-club-login {
	padding: 16px 18px;
	border-radius: 12px;
	background: #f6f7fb;
	color: #6b7088;
	direction: rtl;
}

/* Shortcode values */
.smb-sc {
	font-weight: 700;
}
.smb-sc--cashback { color: #0b8a43; }
.smb-sc--points { color: #5b55f0; }
.smb-sc-label {
	color: #6b7088;
}

/* Copy toast */
.smb-club-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 99999;
	padding: 10px 18px;
	border-radius: 11px;
	background: #1b1f33;
	color: #fff;
	font-size: 14px;
	transform: translate(-50%, 0);
	box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35);
	animation: smbClubToast .25s ease both;
}
@keyframes smbClubToast {
	from { opacity: 0; transform: translate(-50%, 10px); }
}

@media (max-width: 600px) {
	.smb-club__stat strong { font-size: 24px; }
	.smb-club__rewards,
	.smb-club__coupons { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Customer account 3.6: flat cards, one accent, readable on any theme.
   Change the accent with:  .smb-acc { --acc: #your-color; }
   ========================================================================== */
.smb-club.smb-acc,
.smb-club--mini,
.smb360-acc {
	--acc: #0f766e;
	--acc-soft: #e6f6f3;
	--ink: #111827;
	--muted: #6b7280;
	--line: #e5e7eb;
	--soft: #f9fafb;
	--ok: #0f766e;
	--bad: #b42318;
	--warn: #9a540c;
	color: var(--ink);
	direction: rtl;
	font-size: 15px;
	line-height: 1.8;
}
.smb-acc *, .smb360-acc * { box-sizing: border-box; }
.smb-acc [hidden], .smb360-acc [hidden] { display: none !important; }
.smb-acc h2, .smb-acc h3, .smb-acc h4, .smb360-acc h2 { color: var(--ink); line-height: 1.5; margin: 0; }
.smb-acc__hello { margin: 0 0 18px; }
.smb-acc__hello h2, .smb360-acc__head h2 { font-size: 22px; font-weight: 800; }
.smb-acc__hello p, .smb360-acc__head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.smb-acc-card {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	text-decoration: none;
	box-shadow: none;
}
a.smb-acc-card:hover { border-color: var(--acc); color: var(--ink); }
.smb-acc__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.smb-acc-card--stat { display: flex; flex-direction: column; gap: 2px; }
.smb-acc-card--stat small { color: var(--muted); font-size: 13px; font-weight: 600; }
.smb-acc-card--stat strong { font-size: 22px; font-weight: 800; line-height: 1.5; font-variant-numeric: tabular-nums; }
.smb-acc-card--stat strong .woocommerce-Price-currencySymbol { font-size: 13px; font-weight: 600; color: var(--muted); }
.smb-acc-card--stat em { font-style: normal; color: var(--muted); font-size: 12.5px; }

.smb-acc__sec { margin: 26px 0 0; }
.smb-acc__sec > h3 { font-size: 17px; font-weight: 800; margin: 0 0 12px; }
.smb-acc__empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 14px; background: var(--soft); }

.smb-acc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 0 16px; border: 1px solid var(--acc); border-radius: 8px;
	background: var(--acc); color: #fff !important; font: inherit; font-size: 14px; font-weight: 700;
	cursor: pointer; text-decoration: none; white-space: nowrap;
}
.smb-acc-btn:hover { filter: brightness(.92); }
.smb-acc-btn--ghost { background: #fff; color: var(--acc) !important; border-color: var(--line); }
.smb-acc-btn--ghost:hover { border-color: var(--acc); filter: none; }
.smb-acc-btn[disabled] { opacity: .6; cursor: default; filter: none; }

/* Invite box */
.smb-invite { display: grid; gap: 12px; margin: 0 0 18px; border-color: var(--acc); background: var(--acc-soft); }
.smb-invite h3 { font-size: 17px; font-weight: 800; }
.smb-invite p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.smb-invite__link { display: flex; gap: 8px; }
.smb-invite__link input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); }
.smb-invite__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; }
.smb-invite__share code { padding: 2px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-weight: 700; cursor: pointer; letter-spacing: 1px; }
.smb-invite__share a { color: var(--acc); font-weight: 700; text-decoration: none; }
.smb-invite__more { margin-inline-start: auto; }

/* Coupons as tickets */
.smb-acc__coupons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.smb-ticket { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.smb-ticket__value { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 6px 8px; border-left: 2px dashed var(--line); color: var(--acc); font-size: 18px; font-weight: 800; line-height: 1.3; }
.smb-ticket__value small { color: var(--muted); font-size: 11px; font-weight: 600; }
.smb-ticket__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.smb-ticket__body code { font-size: 15px; font-weight: 800; letter-spacing: 1px; background: none; padding: 0; color: var(--ink); }
.smb-ticket__body small { color: var(--muted); font-size: 12px; }
.smb-ticket .smb-acc-btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.smb-ticket.is-used, .smb-ticket.is-expired { opacity: .55; }
.smb-ticket.is-used code, .smb-ticket.is-expired code { text-decoration: line-through; }

/* Rewards */
.smb-acc__rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.smb-acc .smb-reward { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; box-shadow: none; transform: none; background: #fff; border: 1px solid var(--line); }
.smb-acc .smb-reward.is-ready { border-color: var(--acc); }
.smb-acc .smb-reward__type { align-self: flex-start; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 22px; }
.smb-acc .smb-reward h4 { font-size: 15px; font-weight: 800; }
.smb-acc .smb-reward__cost { color: var(--muted); font-size: 13px; }
.smb-acc .smb-reward__bar { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.smb-acc .smb-reward__bar span { display: block; height: 100%; background: var(--acc); border-radius: 6px; }
.smb-acc .smb-reward .smb-acc-btn { margin-top: 4px; width: 100%; }

/* Next cart link */
.smb-acc-link { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; }
.smb-acc-link span { flex: 1; color: var(--muted); font-size: 14px; }
.smb-acc-link em { font-style: normal; color: var(--acc); font-weight: 800; }

/* Lists: history, referrals */
.smb-acc .smb-club__tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); box-shadow: none; }
.smb-acc .smb-club__tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 6px; font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; box-shadow: none; }
.smb-acc .smb-club__tabs button.is-active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--line); }
.smb-acc__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.smb-acc__list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0; }
.smb-acc__list li + li { border-top: 1px solid var(--line); }
.smb-acc__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.smb-acc__who strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smb-acc__who small { color: var(--muted); font-size: 12px; }
.smb-acc__dot, .smb-acc__avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; }
.smb-acc__dot.is-in { background: var(--acc-soft); color: var(--ok); }
.smb-acc__dot.is-out { background: #fbedeb; color: var(--bad); }
.smb-acc__avatar { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.smb-acc__amount { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.smb-acc__amount.is-in { color: var(--ok); }
.smb-acc__amount.is-out { color: var(--bad); }
.smb-acc__badge { padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.smb-acc__badge.is-ok { background: var(--acc-soft); color: var(--ok); }
.smb-acc__badge.is-wait { background: #f7ead9; color: var(--warn); }
.smb-acc__reward { color: var(--muted); font-size: 13px; min-width: 90px; text-align: left; }
.smb-acc .smb-club__result { margin: 12px 0 0; border-radius: 10px; }

/* Dashboard mini card */
.smb-club--mini { margin: 0 0 20px; }
.smb-club--mini .smb-acc-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.smb-club--mini .smb-acc-stat:hover { border-color: var(--acc); }
.smb-club--mini .smb-acc-stat span { display: flex; flex-direction: column; }
.smb-club--mini .smb-acc-stat small { color: var(--muted); font-size: 12.5px; }
.smb-club--mini .smb-acc-stat strong { font-size: 18px; font-weight: 800; }
.smb-club--mini .smb-acc-stat em { margin-inline-start: auto; font-style: normal; color: var(--acc); font-weight: 700; }

/* Next cart page */
.smb360-acc__head { margin: 0 0 16px; }
.smb360-acc__empty { padding: 22px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.smb360-nc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.smb360-nc__item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0; }
.smb360-nc__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.smb360-nc__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.smb360-nc__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.smb360-nc__price { color: var(--muted); font-size: 14px; }
.smb360-nc__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.smb360-nc__badge { padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 22px; }
.smb360-nc__badge.is-down { background: var(--acc-soft); color: var(--ok); }
.smb360-nc__badge.is-up, .smb360-nc__badge.is-low { background: #f7ead9; color: var(--warn); }
.smb360-nc__badge.is-out { background: #fbedeb; color: var(--bad); }
.smb360-nc__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.smb360-nc__remove { color: var(--muted); font-size: 13px; }
.smb360-nextcart-btn { margin-inline-start: 8px !important; }
.smb360-later { margin-top: 4px; font-size: 13px; }

@media (max-width: 600px) {
	.smb-acc__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smb-invite__link { flex-direction: column; }
	.smb-acc__list li { flex-wrap: wrap; }
	.smb-acc__list .smb-acc__who { flex: 1 1 calc(100% - 90px); }
	.smb-acc__list .smb-acc__badge { margin-inline-start: 42px; }
	.smb-acc__reward { text-align: right; min-width: 0; }
	.smb360-nc__item { flex-wrap: wrap; }
	.smb360-nc__actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}
.smb360-nextcart { margin: 10px 0 16px; }
.smb360-nextcart__form { margin: 0; }
.smb360-nextcart-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: .85; }

.smb360-nextcart-btn:hover { opacity: 1; }
