.coin-mobile-menu__auth {
	padding: 10px 2px 12px;
	margin-bottom: 4px;
	border-bottom: 1px solid #eee;
}

.coin-mobile-menu__auth .coin-auth-nav {
	justify-content: flex-start;
	gap: 6px;
}

.coin-mobile-menu__auth .coin-auth-nav__link,
.coin-mobile-menu__auth .coin-auth-nav__btn {
	color: #111;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 10px;
}

.coin-mobile-menu__auth .coin-auth-nav__wallet {
	display: inline-flex;
	align-items: center;
	color: #111;
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	text-shadow: none;
}

.coin-mobile-menu__auth .coin-auth-nav__link:hover,
.coin-mobile-menu__auth .coin-auth-nav__btn:hover,
.coin-mobile-menu__auth .coin-auth-nav__wallet:hover {
	color: #111;
	background: #e8eaee;
	opacity: 1;
}

.coin-mobile-menu__auth .coin-auth-nav__btn--primary {
	background: #111;
	color: #fff;
}

.coin-mobile-menu__auth .coin-auth-nav__btn--primary:hover {
	color: #fff;
	background: #222;
	opacity: 1;
}

/* Auth nav */
.coin-auth-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.coin-auth-nav__btn,
.coin-auth-nav__link {
	font-size: 12px;
	line-height: 1.2;
	border: 0;
	background: transparent;
	color: #444;
	cursor: pointer;
	text-decoration: none;
	padding: 4px 8px;
	font-family: inherit;
}

.coin-auth-nav__btn--primary {
	background: var(--coin-primary, #054ada);
	color: #fff;
	border-radius: 3px;
	padding: 5px 10px;
}

.coin-auth-nav__btn:hover,
.coin-auth-nav__link:hover {
	color: var(--coin-primary, #054ada);
}

.coin-auth-nav__btn--primary:hover {
	color: #fff;
	opacity: 0.92;
}

.coin-auth-nav__wallet {
	font-weight: 600;
	color: var(--coin-primary, #054ada);
}

/* Buttons */
.coin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	border-radius: 4px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
}

.coin-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.coin-btn--primary {
	background: var(--coin-primary, #054ada);
	color: #fff;
}

.coin-btn--ghost {
	background: #eef2f7;
	color: #222;
}

/* Auth modal */
.coin-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.coin-auth-modal[hidden] {
	display: none !important;
}

.coin-auth-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.coin-auth-modal__panel {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	background: #fff;
	border-radius: 10px;
	padding: 22px 20px 20px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.coin-auth-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.coin-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 12px;
}

.coin-auth-tabs__btn {
	border: 0;
	background: #f3f5f8;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-family: inherit;
}

.coin-auth-tabs__btn.is-active {
	background: var(--coin-primary, #054ada);
	color: #fff;
}

.coin-auth-modal__lead {
	margin: 0 0 12px;
	font-size: 13px;
	color: #555;
	line-height: 1.45;
}

.coin-auth-form__label {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
}

.coin-auth-form__label span {
	display: block;
	margin-bottom: 4px;
	color: #333;
}

.coin-auth-form__label input,
.coin-auth-form__label select,
.coin-wallet__withdraw input,
.coin-wallet__withdraw select {
	width: 100%;
	border: 1px solid #d7dde5;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.coin-auth-form__check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin-bottom: 12px;
}

.coin-auth-form__hint {
	margin: 0 0 12px;
	font-size: 12px;
	color: #667;
}

.coin-auth-form__submit {
	width: 100%;
	border: 0;
	border-radius: 6px;
	background: var(--coin-primary, #054ada);
	color: #fff;
	font-weight: 700;
	padding: 12px;
	cursor: pointer;
	font-family: inherit;
}

.coin-auth-msg {
	margin: 0 0 12px;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13px;
}

.coin-auth-msg.is-error {
	background: #fde8e8;
	color: #9b1c1c;
}

.coin-auth-msg.is-ok {
	background: #e7f7ee;
	color: #0f6b3a;
}

body.coin-auth-open {
	overflow: hidden;
}

/* Read reward — compact fixed status (bottom / desktop right) */
.coin-read-reward {
	position: fixed;
	z-index: 100040;
	right: 12px;
	bottom: 12px;
	left: auto;
	width: min(280px, calc(100vw - 24px));
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #d7e3f4;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.coin-read-reward__inner {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) auto;
	grid-template-areas:
		"icon body actions"
		"prog prog prog";
	gap: 4px 8px;
	align-items: center;
}

.coin-read-reward__icon {
	grid-area: icon;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #054ada;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex: 0 0 auto;
	line-height: 1;
}

.coin-read-reward__body {
	grid-area: body;
	min-width: 0;
}

.coin-read-reward__title {
	display: block;
	font-size: 12px;
	font-weight: 650;
	margin: 0 0 1px;
	color: #122;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.coin-read-reward__text {
	display: block;
	margin: 0;
	font-size: 11px;
	color: #5a6a7e;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
}

a.coin-read-reward__text:hover {
	color: #054ada;
}

.coin-read-reward__progress {
	grid-area: prog;
	margin: 2px 0 0;
	height: 3px;
	background: #e2eaf6;
	border-radius: 999px;
	overflow: hidden;
}

.coin-read-reward__bar {
	display: block;
	height: 100%;
	background: #054ada;
	transition: width 0.25s ease;
}

.coin-read-reward__actions {
	grid-area: actions;
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
	align-items: center;
}

.coin-read-reward__actions[hidden] {
	display: none !important;
}

.coin-read-reward__btn {
	appearance: none;
	border: 0;
	border-radius: 6px;
	padding: 5px 9px;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.2;
	font-family: inherit;
	cursor: pointer;
	background: #054ada;
	color: #fff;
	white-space: nowrap;
}

.coin-read-reward__btn:hover {
	opacity: 0.92;
}

.coin-read-reward__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.coin-read-reward.is-claimed {
	opacity: 0.92;
}

.coin-read-reward.is-claimed .coin-read-reward__icon {
	background: #0f7a3f;
}

.coin-read-reward.is-claimed .coin-read-reward__inner {
	grid-template-columns: 24px minmax(0, 1fr);
	grid-template-areas: "icon body";
}

body.single-post {
	padding-bottom: 64px;
}

@media (max-width: 767px) {
	.coin-read-reward {
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		padding: 7px 9px;
		border-radius: 9px;
	}

	.coin-read-reward__title {
		font-size: 11.5px;
	}

	.coin-read-reward__text {
		font-size: 10.5px;
	}
}

@media (min-width: 768px) {
	.coin-read-reward {
		right: 18px;
		bottom: 18px;
		width: 268px;
	}

	body.single-post {
		padding-bottom: 0;
	}
}

/* Signup gift — fixed until claimed */
.coin-signup-gift {
	position: fixed;
	z-index: 100030;
	left: 14px;
	bottom: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
}

.coin-signup-gift__box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
	animation: coin-gift-bob 2.4s ease-in-out infinite;
}

.coin-signup-gift__label {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.coin-signup-gift:hover .coin-signup-gift__box,
.coin-signup-gift:focus-visible .coin-signup-gift__box {
	transform: translateY(-2px) scale(1.04);
}

.coin-signup-gift:disabled {
	cursor: wait;
	opacity: 0.7;
}

.coin-signup-gift:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
	border-radius: 18px;
}

@keyframes coin-gift-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

@media (max-width: 767px) {
	body.single-post .coin-signup-gift {
		bottom: 78px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.coin-signup-gift__box {
		animation: none;
	}
}

/* Congrats popup + confetti */
.coin-congrats {
	position: fixed;
	inset: 0;
	z-index: 100060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.coin-congrats[hidden] {
	display: none !important;
}

.coin-congrats__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(11, 31, 68, 0.55);
}

.coin-congrats__confetti {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.coin-congrats__panel {
	position: relative;
	z-index: 2;
	width: min(360px, 100%);
	text-align: center;
	background: #fff;
	border-radius: 14px;
	padding: 26px 20px 20px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
	animation: coin-congrats-pop 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.coin-congrats__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: #667;
	cursor: pointer;
}

.coin-congrats__burst {
	position: absolute;
	left: 50%;
	top: 54px;
	width: 120px;
	height: 120px;
	margin: -60px 0 0 -60px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(5, 74, 218, 0.18) 0%, rgba(5, 74, 218, 0) 70%);
	animation: coin-congrats-burst 0.9s ease-out;
	pointer-events: none;
}

.coin-congrats__badge {
	position: relative;
	z-index: 1;
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #054ada, #2f7bff);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(5, 74, 218, 0.35);
	animation: coin-congrats-bounce 0.7s ease;
}

.coin-congrats__title {
	position: relative;
	z-index: 1;
	margin: 0 0 6px;
	font-size: 22px;
	color: #122;
}

.coin-congrats__amount {
	position: relative;
	z-index: 1;
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 750;
	color: #0f7a3f;
	animation: coin-congrats-amount 0.55s ease 0.08s both;
}

.coin-congrats__text {
	position: relative;
	z-index: 1;
	margin: 0 0 6px;
	font-size: 14px;
	color: #456;
	line-height: 1.45;
}

.coin-congrats__balance {
	position: relative;
	z-index: 1;
	margin: 0 0 16px;
	font-size: 13px;
	color: #667;
}

.coin-congrats__actions {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.coin-congrats__actions .coin-btn {
	min-width: 118px;
	padding: 9px 14px;
	font-size: 13px;
}

@keyframes coin-congrats-pop {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.92);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes coin-congrats-bounce {
	0% { transform: scale(0.4); opacity: 0; }
	55% { transform: scale(1.12); opacity: 1; }
	100% { transform: scale(1); }
}

@keyframes coin-congrats-burst {
	from { transform: scale(0.4); opacity: 0.9; }
	to { transform: scale(1.8); opacity: 0; }
}

@keyframes coin-congrats-amount {
	from { opacity: 0; transform: translateY(8px) scale(0.9); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

body.coin-congrats-open {
	overflow: hidden;
}

/* Wallet page — top/bottom only so .coin-container keeps horizontal padding */
.coin-wallet {
	padding-top: 28px;
	padding-bottom: 48px;
	max-width: 920px;
}

.coin-wallet__title {
	margin: 0 0 8px;
	font-size: 28px;
}

.coin-wallet__desc {
	margin: 0 0 22px;
	color: #556;
	font-size: 14px;
	line-height: 1.5;
}

.coin-wallet__guest {
	padding: 24px;
	border: 1px dashed #c9d5e8;
	border-radius: 10px;
	background: #f8fafc;
}

.coin-wallet__guest-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.coin-wallet__balance-card {
	padding: 20px;
	border-radius: 12px;
	background: #0b1f44;
	color: #fff;
	margin-bottom: 24px;
}

.coin-wallet__balance-label {
	font-size: 13px;
	opacity: 0.85;
}

.coin-wallet__balance {
	font-size: 34px;
	font-weight: 700;
	margin: 6px 0 8px;
}

.coin-wallet__ok {
	margin: 0;
	color: #9dffc2;
	font-size: 13px;
}

.coin-wallet__hint {
	margin: 0;
	color: #c9d7f2;
	font-size: 13px;
}

.coin-wallet__section {
	margin-bottom: 28px;
}

.coin-wallet__section h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

.coin-wallet__withdraw {
	max-width: 420px;
	display: grid;
	gap: 4px;
}

.coin-wallet__empty {
	color: #667;
	font-size: 14px;
}

.coin-wallet__table-wrap {
	overflow-x: auto;
	border: 1px solid #e5eaf1;
	border-radius: 8px;
}

.coin-wallet__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.coin-wallet__table th,
.coin-wallet__table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eef2f7;
	text-align: left;
	vertical-align: top;
}

.coin-wallet__table th {
	background: #f7f9fc;
	font-weight: 600;
}

.coin-wallet__table tr:last-child td {
	border-bottom: 0;
}

.coin-wallet__table .is-plus {
	color: #0f7a3f;
	font-weight: 600;
}

.coin-wallet__table .is-minus {
	color: #b42318;
	font-weight: 600;
}

@media (max-width: 767px) {
	.coin-wallet.coin-container {
		padding-top: 20px;
		padding-bottom: 36px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.coin-wallet__title {
		font-size: 22px;
	}

	.coin-wallet__balance {
		font-size: 28px;
	}

	.coin-wallet__balance-card,
	.coin-wallet__guest {
		padding: 16px;
	}

	.coin-auth-nav__wallet {
		max-width: 140px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}
