.coupons-page {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.center-main-content {
	scrollbar-width: thin;
	scrollbar-color: rgba(71, 85, 105, 0.95) rgba(2, 6, 23, 0.88);
}

.center-main-content::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.center-main-content::-webkit-scrollbar-track {
	background: rgba(2, 6, 23, 0.88);
}

.center-main-content::-webkit-scrollbar-thumb {
	background: rgba(71, 85, 105, 0.95);
	border-radius: 999px;
	border: 2px solid rgba(2, 6, 23, 0.88);
}

.center-main-content::-webkit-scrollbar-thumb:hover {
	background: rgba(34, 211, 238, 0.65);
}

.coupons-panel {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	background: rgba(15, 23, 42, 0.68);
	box-shadow: 0 20px 35px -18px rgba(0, 0, 0, 0.58);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 1.45rem;
}

.coupons-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.coupons-title {
	margin: 0;
	color: #e2e8f0;
	font-size: 1.08rem;
	font-weight: 800;
}

.coupons-subtitle {
	margin: 0.35rem 0 0;
	color: #94a3b8;
	font-size: 0.82rem;
	line-height: 1.5;
}

.coupons-redeem-row {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto;
	gap: 0.85rem;
	align-items: end;
}

.coupons-field-label {
	display: block;
	margin-bottom: 0.45rem;
	color: #cbd5e1;
	font-size: 0.84rem;
	font-weight: 700;
}

.coupons-input-wrap {
	position: relative;
}

.coupons-input {
	width: 100%;
	height: 44px;
	padding: 0 42px 0 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.045);
	color: #e2e8f0;
	font-size: 0.92rem;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.coupons-input:focus {
	border-color: rgba(34, 211, 238, 0.58);
	background: rgba(15, 23, 42, 0.82);
}

.coupons-clear-btn {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	transform: translateY(-50%);
	transition: all 0.2s ease;
}

.coupons-clear-btn:hover,
.coupons-clear-btn:focus {
	background: rgba(148, 163, 184, 0.12);
	color: #e2e8f0;
	outline: none;
}

.coupons-clear-btn svg {
	width: 16px;
	height: 16px;
}

.coupons-primary-btn,
.coupons-ghost-btn,
.coupons-tab-btn {
	border: 0;
	font: inherit;
	cursor: pointer;
}

.coupons-primary-btn {
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0 1.2rem;
	border-radius: 12px;
	background: #22d3ee;
	color: #020617;
	font-size: 0.9rem;
	font-weight: 800;
	box-shadow: 0 14px 28px rgba(34, 211, 238, 0.16);
	transition: background 0.2s ease, transform 0.2s ease;
}

.coupons-primary-btn:hover {
	background: #67e8f9;
	transform: translateY(-1px);
}

.coupons-primary-btn:disabled {
	cursor: not-allowed;
	opacity: 0.65;
	transform: none;
}

.coupons-ghost-btn {
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.025);
	color: #cbd5e1;
	font-size: 0.82rem;
	font-weight: 700;
	transition: all 0.2s ease;
}

.coupons-ghost-btn:hover {
	border-color: rgba(34, 211, 238, 0.42);
	color: #67e8f9;
}

.coupons-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.coupons-tab-btn {
	height: 36px;
	padding: 0 1rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.035);
	color: #94a3b8;
	font-size: 0.84rem;
	font-weight: 700;
	transition: all 0.2s ease;
}

.coupons-tab-btn:hover {
	border-color: rgba(34, 211, 238, 0.35);
	color: #cbd5e1;
}

.coupons-tab-btn.is-active {
	border-color: rgba(34, 211, 238, 0.68);
	background: rgba(34, 211, 238, 0.12);
	color: #22d3ee;
	box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

.coupons-table-card {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(2, 6, 23, 0.26);
	overflow: hidden;
}

.coupons-table-wrap {
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(71, 85, 105, 0.95) rgba(15, 23, 42, 0.75);
}

.coupons-table-wrap::-webkit-scrollbar {
	height: 8px;
	width: 8px;
}

.coupons-table-wrap::-webkit-scrollbar-track {
	background: rgba(15, 23, 42, 0.75);
	border-radius: 999px;
}

.coupons-table-wrap::-webkit-scrollbar-thumb {
	background: rgba(71, 85, 105, 0.95);
	border-radius: 999px;
	border: 2px solid rgba(15, 23, 42, 0.75);
}

.coupons-table-wrap::-webkit-scrollbar-thumb:hover {
	background: rgba(34, 211, 238, 0.65);
}

.coupons-table-wrap::-webkit-scrollbar-corner {
	background: transparent;
}

.coupons-table {
	width: 100%;
	min-width: 860px;
	border-collapse: collapse;
	color: #cbd5e1;
}

.coupons-own-table {
	min-width: 0;
	border-collapse: separate;
	border-spacing: 0 0.9rem;
}

.coupons-own-table thead {
	display: none;
}

.coupons-own-table,
.coupons-own-table tbody,
.coupons-own-table tr,
.coupons-own-table td {
	display: block;
	width: 100%;
}

.coupons-own-table tbody td {
	padding: 0;
	border-bottom: 0;
}

.coupons-own-table tbody tr:hover {
	background: transparent;
}

.coupons-card-row {
	margin-bottom: 0.95rem;
}

.coupons-own-table .coupons-card-state,
.coupons-own-table .coupons-empty-cell,
.coupons-own-table .coupons-loading-cell,
.coupons-own-table .coupons-error-cell {
	border: 1px dashed rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.48);
}

.coupon-ticket-card {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	width: min(560px, 100%);
	min-height: 158px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	background: rgba(15, 23, 42, 0.78);
	overflow: hidden;
	box-shadow: 0 18px 32px -22px rgba(0, 0, 0, 0.75);
}

.coupon-ticket-card.is-disabled {
	opacity: 0.72;
}

.coupon-ticket-face {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	background: #22d3ee;
	color: #020617;
	text-align: center;
}

.coupon-ticket-face strong {
	font-size: 3.25rem;
	line-height: 1;
	font-weight: 900;
	letter-spacing: 0;
}

.coupon-ticket-face span {
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.03em;
}

.coupon-ticket-body {
	min-width: 0;
	padding: 1.2rem 1.15rem 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
}

.coupon-ticket-main h3 {
	margin: 0;
	color: #f8fafc;
	font-size: 1rem;
	font-weight: 900;
}

.coupon-ticket-main p {
	margin: 0.35rem 0 0;
	color: #cbd5e1;
	font-size: 0.84rem;
	line-height: 1.45;
}

.coupon-ticket-code {
	margin-top: 0.55rem;
	color: #64748b;
	font-family: "JetBrains Mono", "Consolas", monospace;
	font-size: 0.74rem;
	line-height: 1.45;
	word-break: break-all;
}

.coupon-ticket-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.coupon-ticket-foot span {
	min-width: 0;
	color: #94a3b8;
	font-size: 0.78rem;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.coupon-ticket-use {
	flex: 0 0 auto;
	height: 34px;
	padding: 0 0.95rem;
	border-radius: 10px;
	border: 1px solid rgba(203, 213, 225, 0.55);
	background: transparent;
	color: #f8fafc;
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s ease;
}

.coupon-ticket-use:hover {
	border-color: rgba(34, 211, 238, 0.75);
	color: #22d3ee;
}

.coupon-ticket-use:disabled {
	cursor: not-allowed;
	border-color: rgba(148, 163, 184, 0.18);
	color: #64748b;
}

.coupons-table thead th {
	padding: 0.78rem 0.95rem;
	background: rgba(255, 255, 255, 0.055);
	color: #94a3b8;
	font-size: 0.78rem;
	font-weight: 800;
	text-align: left;
	white-space: nowrap;
}

.coupons-table tbody td {
	padding: 0.88rem 0.95rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	font-size: 0.86rem;
	vertical-align: middle;
}

.coupons-table tbody tr:hover {
	background: rgba(34, 211, 238, 0.045);
}

.coupons-table tbody tr:last-child td {
	border-bottom: 0;
}

.coupons-mono {
	font-family: "JetBrains Mono", "Consolas", monospace;
	color: #dbeafe;
	word-break: break-all;
}

.coupons-name-cell {
	color: #e2e8f0;
	font-weight: 800;
}

.coupons-muted {
	color: #94a3b8;
}

.coupons-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 24px;
	padding: 0 0.65rem;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
	white-space: nowrap;
}

.coupons-badge-unused {
	border: 1px solid rgba(34, 211, 238, 0.28);
	background: rgba(34, 211, 238, 0.11);
	color: #22d3ee;
}

.coupons-badge-used {
	border: 1px solid rgba(74, 222, 128, 0.25);
	background: rgba(74, 222, 128, 0.1);
	color: #4ade80;
}

.coupons-badge-expired {
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(148, 163, 184, 0.09);
	color: #94a3b8;
}

.coupons-empty-cell,
.coupons-loading-cell {
	padding: 2rem 1rem !important;
	text-align: center;
	color: #94a3b8;
}

.coupons-error-cell {
	padding: 2rem 1rem !important;
	text-align: center;
	color: #f87171;
}

@media (max-width: 760px) {
	.coupons-panel {
		padding: 1rem;
	}

	.coupons-panel-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.coupons-redeem-row {
		grid-template-columns: 1fr;
	}

	.coupons-primary-btn {
		width: 100%;
	}

	.coupon-ticket-card {
		grid-template-columns: 108px minmax(0, 1fr);
		min-height: 148px;
	}

	.coupon-ticket-face strong {
		font-size: 2.55rem;
	}

	.coupon-ticket-body {
		padding: 1rem 0.85rem;
	}

	.coupon-ticket-foot {
		align-items: flex-start;
		flex-direction: column;
	}

	.coupon-ticket-foot span {
		white-space: normal;
	}
}
