/**
 * EventRewards Referrals Dashboard Styles
 *
 * @package EventRewardsReferrals
 */

/* Base Styles */
.er-dashboard {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #000000;
	background: #FFFFFF;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.er-dashboard-header {
	margin-bottom: 30px;
}

.er-dashboard-header h1 {
	font-size: 28px;
	font-weight: 700;
	color: #000000;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.er-dashboard-header h1 i {
	color: #F2B41D;
}

.er-dashboard-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

/* Card Styles */
.er-card {
	background: #FFFFFF;
	border: 2px solid #F2B41D;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.er-card h2 {
	font-size: 20px;
	font-weight: 600;
	color: #000000;
	margin: 0 0 20px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #F2B41D;
}

/* Link Card */
.er-link-container {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.er-link-input {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #CCCCCC;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	background: #FFFFFF;
	color: #000000;
}

.er-link-input:focus {
	outline: none;
	border-color: #F2B41D;
}

.er-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.er-share-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #F2B41D;
	color: #000000 !important;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.er-share-button:hover {
	background: #E0A100;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(242, 180, 29, 0.3);
}

.er-share-button i {
	font-size: 16px;
}

/* Button Styles */
.er-button {
	padding: 12px 24px;
	background: #F2B41D;
	color: #000000 !important;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
}

.er-button:hover {
	background: #E0A100;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(242, 180, 29, 0.3);
}

.er-button:disabled {
	background: #CCCCCC;
	cursor: not-allowed;
	opacity: 0.6;
}

.er-copy-button {
	white-space: nowrap;
}

/* Progress Card */
.er-progress-stats {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.er-total-referrals {
	font-size: 18px;
	margin: 0;
}

.er-total-referrals strong {
	font-weight: 600;
}

.er-total-referrals span {
	font-size: 24px;
	font-weight: 700;
	color: #F2B41D;
	margin-left: 10px;
}

.er-earn-points-hint {
	font-size: 14px;
	margin: 0;
	color: #666666;
}

.er-refund-notification {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: rgba(255, 193, 7, 0.1);
	border-left: 3px solid #ffc107;
	border-radius: 4px;
	font-size: 13px;
	color: #856404;
	margin: 8px 0 0 0;
	animation: erRefundNotificationSlideIn 0.3s ease-out;
}

.er-refund-notification i {
	color: #ffc107;
	font-size: 14px;
	flex-shrink: 0;
}

.er-refund-notification span {
	line-height: 1.4;
}

@keyframes erRefundNotificationSlideIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.er-next-milestone {
	font-size: 16px;
	font-weight: 500;
	color: #000000;
	margin: 0;
}

.er-progress-bar {
	width: 100%;
 	height: 44px;
 	background: linear-gradient(180deg,#efefef,#e6e6e6);
 	border-radius: 22px;
 	overflow: hidden;
 	position: relative;
 	box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -6px 20px rgba(0,0,0,0.03);
}

.er-progress-fill {
	height: 100%;
	/* Brand golden yellow fluid */
	background: linear-gradient(90deg, #F2B41D 0%, #E0A100 50%, #D29A00 100%);
	border-radius: 22px;
	transition: width 900ms cubic-bezier(.2,.9,.3,1);
	position: relative;
	overflow: hidden;
}

.er-progress-fill::before {
	/* bubbly texture using radial gradients */
	content: '';
	position: absolute;
	top: -30%;
	left: -50%;
	right: -50%;
	bottom: -30%;
	background-image: radial-gradient(rgba(255,255,255,0.18) 10%, rgba(255,255,255,0.02) 11%),
					  radial-gradient(rgba(255,255,255,0.12) 8%, rgba(255,255,255,0.02) 9%),
					  radial-gradient(rgba(255,255,255,0.08) 6%, rgba(255,255,255,0.02) 7%);
	background-size: 120px 120px, 80px 80px, 40px 40px;
	background-position: 0% 0%, 30% 40%, 60% 20%;
	mix-blend-mode: overlay;
	transform: translate3d(0,0,0);
	animation: er-bubbles 6s linear infinite;
	pointer-events: none;
	opacity: 0.95;
}

@keyframes er-bubbles {
	0% { background-position: 0% 0%, 30% 40%, 60% 20%; }
	50% { background-position: 40% 20%, 10% 70%, 30% 60%; }
	100% { background-position: 0% 0%, 30% 40%, 60% 20%; }
}

.er-progress-markers {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.er-progress-marker {
	position: absolute;
	top: 6px;
	width: 2px;
	height: calc(100% - 12px);
	background: rgba(0,0,0,0.08);
	border-radius: 2px;
	transform: translateX(-50%);
	box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.er-progress-fill-inner {
	position: absolute;
	inset: 0;
}

/* Rewards Card - Modern Tiered Design */
.er-rewards-card {
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.er-rewards-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	position: relative;
	padding: 20px 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

/* Connection Dots */
.er-rewards-list::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #F2B41D 10%, #F2B41D 90%, transparent 100%);
	transform: translateY(-50%);
	z-index: 0;
	display: none;
}

@media (min-width: 768px) {
	.er-rewards-list {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
	
	.er-rewards-list::before {
		display: block;
	}
}

/* Reward Tier Cards */
.er-reward-tier {
	position: relative;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	border-radius: 16px;
	padding: 30px 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: 280px;
	box-sizing: border-box;
	overflow: hidden;
}

.er-reward-tier:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.er-reward-tier.er-reward-tier-locked {
	opacity: 0.7;
	background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.er-reward-tier.er-reward-tier-unlocked {
	position: relative;
	overflow: hidden;
	border: 2px solid #F2B41D;
	/* keep a subtle dark base so the liquid stands out */
	background: linear-gradient(135deg, #0f1410 0%, #17221a 100%);
	color: #ffffff;
}

.er-reward-tier.er-reward-tier-unlocked::before {
	/* Liquid bright green fill with bubbly overlay */
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background: linear-gradient(90deg, #7AF270 0%, #46B450 50%, #2D7A2D 100%);
	transform-origin: bottom center;
	transform: scaleY(0) translateZ(0);
	/* ensure the transition is present before the class is toggled */
	transition: transform 900ms cubic-bezier(.2,.9,.3,1), opacity 400ms ease;
	will-change: transform, opacity;
	backface-visibility: hidden;
	/* subtle inner glow */
	box-shadow: inset 0 6px 30px rgba(0,0,0,0.12);
	/* bubbly texture (reuse same approach as progress fill) */
	background-image: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), radial-gradient(rgba(255,255,255,0.12) 6%, rgba(255,255,255,0.02) 8%);
	background-blend-mode: overlay, normal;
	animation: er-bubbles 6s linear infinite;
	opacity: 0.95;
}

/* Filled state - animate the liquid rising */
.er-reward-tier.er-reward-tier-unlocked.er-reward-filled::before,
.er-reward-tier.er-reward-tier-redeemed.er-reward-filled::before {
	transform: scaleY(1);
	transition: transform 900ms cubic-bezier(.2,.9,.3,1), opacity 400ms ease;
}

/* Ensure content sits above the liquid layer */
.er-reward-tier.er-reward-tier-unlocked > * {
	position: relative;
	z-index: 1;
}

.er-reward-tier.er-reward-tier-unlocked .er-tier-title,
.er-reward-tier.er-reward-tier-unlocked .er-tier-reward-name,
.er-reward-tier.er-reward-tier-unlocked .er-tier-condition {
	color: #ffffff;
}

.er-reward-tier.er-reward-tier-out-of-stock {
	opacity: 0.6;
	background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.er-reward-tier.er-reward-tier-redeemed {
	opacity: 1;
	background: linear-gradient(135deg, #2d7a2d 0%, #46b450 50%, #2d7a2d 100%);
	border: 2px solid #46b450;
	box-shadow: 0 8px 24px rgba(70, 180, 80, 0.3);
}

.er-reward-tier.er-reward-tier-redeemed .er-tier-reward-name {
	color: #FFFFFF;
}

/* (Removed duplicate initial ticket styles to avoid conflicts.) */

/* Tier Header */
.er-tier-header {
	margin-bottom: 20px;
}

.er-tier-title {
	font-size: 18px;
	font-weight: 600;
	color: #FFFFFF;
	margin: 0 0 8px 0;
	text-align: center;
}

.er-tier-underline {
	width: 60px;
	height: 3px;
	background: #F2B41D;
	margin: 0 auto;
	border-radius: 2px;
}

/* Tier Content */
.er-tier-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 20px 0;
}

.er-tier-reward-name {
	font-size: 18px;
	font-weight: 700;
	color: #F2B41D;
	margin: 0 0 12px 0;
	line-height: 1.3;
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.er-tier-condition {
	font-size: 14px;
	font-weight: 400;
	color: #CCCCCC;
	margin: 0;
	line-height: 1.4;
}

/* Tier Footer */
.er-tier-footer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	margin-top: auto;
}

.er-tier-status {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 6px 16px;
	border-radius: 20px;
	display: inline-block;
}

.er-status-locked {
	background: rgba(255, 255, 255, 0.1);
	color: #999999;
}

.er-status-unlocked {
	background: rgba(242, 180, 29, 0.2);
	color: #F2B41D;
	border: 1px solid #F2B41D;
}

.er-status-out-of-stock {
	background: rgba(220, 50, 50, 0.2);
	color: #DC3232;
	border: 1px solid #DC3232;
}

.er-status-redeemed {
	background: rgba(70, 180, 80, 0.2);
	color: #46b450;
	border: 1px solid #46b450;
}

.er-redeem-button {
	background: #F2B41D;
	color: #000000 !important;
	font-weight: 600;
	padding: 10px 24px;
	border-radius: 8px;
	width: 100%;
	justify-content: center;
}

.er-redeem-button:hover {
	background: #E0A100;
	color: #000000 !important;
}


/* Message Styles */
.er-message {
	color: #666666;
	font-size: 14px;
	margin: 0;
	text-align: center;
}

/* Notification */
.er-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 20px;
	border-radius: 8px;
	font-weight: 500;
	z-index: 10000;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.er-notification.er-notification-success {
	background: #46b450;
	color: #FFFFFF;
}

.er-notification.er-notification-error {
	background: #dc3232;
	color: #FFFFFF;
}

.er-ticket-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px;
	box-sizing: border-box;
}

.er-ticket-modal.er-active {
	display: flex !important;
}

.er-ticket-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.86);
	backdrop-filter: blur(6px);
}

.er-ticket-container {
	position: relative;
	background: transparent;
	border-radius: 14px;
	padding: 0;
	max-width: 340px; /* compact coupon size - mobile-first */
	width: 100%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	color: #FFFFFF;
	z-index: 2;
	overflow: hidden;
	max-height: 96vh;
	display: flex;
	flex-direction: column;
	margin: 0 auto !important;
}

.er-ticket-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #FFFFFF;
	font-size: 22px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.2s ease;
	line-height: 1;
	padding: 0;
	font-weight: 300;
	backdrop-filter: blur(4px);
}

.er-ticket-close:hover {
	background: #F2B41D;
	border-color: #F2B41D;
	color: #000000;
	transform: scale(1.05);
}

.er-ticket-preview {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	padding: 20px 16px;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
}

.er-ticket-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.er-ticket-header-left,
.er-ticket-header-right {
	display: flex;
	align-items: center;
}

.er-ticket-brand {
	font-weight: 700;
	font-size: 13px;
	color: #F2B41D;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.er-ticket-type {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
	background: rgba(242, 180, 29, 0.15);
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid rgba(242, 180, 29, 0.3);
}

.er-ticket-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: stretch;
}

.er-ticket-info-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.er-ticket-info-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.er-ticket-label {
	text-transform: uppercase;
	font-size: 9px;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 0.8px;
	font-weight: 600;
	line-height: 1.2;
}

.er-ticket-value {
	font-size: 12px;
	font-weight: 500;
	color: #FFFFFF;
	line-height: 1.4;
	word-break: break-word;
}

.er-ticket-code {
	font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
	font-size: 11px;
	font-weight: 600;
	color: #F2B41D;
	letter-spacing: 0.5px;
	line-height: 1.4;
	word-break: break-all;
}

.er-ticket-pass-details {
	margin-top: 8px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 11px;
	line-height: 1.5;
}

.er-ticket-qr-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	width: 100%;
	margin: 8px 0;
}

.er-ticket-qr-container {
	width: 320px;
	height: 320px;
	background: #FFFFFF;
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
	margin: 0 auto;
}

/* Mobile-first compact coupon design */
@media (max-width: 900px) {
	.er-ticket-container {
		max-width: 320px;
		border-radius: 12px;
		margin: 0 auto;
		align-self: center;
		display: flex;
		flex-direction: column;
	}

	.er-ticket-preview {
		padding: 16px 14px;
	}

	.er-ticket-qr-container {
		width: 280px;
		height: 280px;
	}
}

@media (min-width: 901px) {
	/* Desktop: slightly larger but still compact */
	.er-ticket-container { 
		max-width: 360px; 
	}
	.er-ticket-qr-container { 
		width: 320px; 
		height: 320px; 
	}
}

.er-ticket-qr-container canvas,
.er-ticket-qr-container img {
	max-width: 100% !important;
	max-height: 100% !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}

.er-ticket-qr-note {
	font-size: 9px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	text-align: center;
	line-height: 1.4;
	max-width: 180px;
	font-weight: 400;
}

.er-ticket-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 8px;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.er-ticket-date {
	font-weight: 400;
}

.er-ticket-token {
	font-family: 'Courier New', monospace;
	font-size: 7px;
	word-break: break-all;
	text-align: right;
	max-width: 50%;
	opacity: 0.5;
}

.er-ticket-actions {
	padding: 16px;
	background: transparent;
	text-align: center;
	border-top: none;
}

.er-ticket-actions .er-button {
	background: #F2B41D;
	color: #000000 !important;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 13px;
	width: 100%;
	min-width: auto;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(242, 180, 29, 0.4);
	justify-content: center;
}

.er-ticket-actions .er-button:hover {
	background: #E0A517;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(242, 180, 29, 0.5);
}

/* Responsive Design for Ticket Modal - Mobile */
@media (max-width: 768px) {
	.er-ticket-container {
		max-width: 300px;
		border-radius: 12px;
		margin: 0 auto;
		max-height: 95vh;
	}
	
	.er-ticket-preview {
		padding: 14px 12px;
	}
	
	.er-ticket-qr-container {
		width: 120px;
		height: 120px;
		padding: 8px;
	}
	
	.er-ticket-qr-note {
		font-size: 8px;
		max-width: 160px;
	}
	
	.er-ticket-close {
		top: 10px;
		right: 10px;
		width: 28px;
		height: 28px;
		font-size: 18px;
	}
	
	.er-ticket-actions {
		padding: 14px;
	}
	
	.er-ticket-actions .er-button {
		font-size: 12px;
		padding: 10px 20px;
	}
}

/* Redeemed Rewards Section - Table Design */
.er-redeemed-rewards-card {
	margin-top: 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.er-redeemed-rewards-table-wrapper {
	overflow-x: auto;
	margin-top: 20px;
}

.er-redeemed-rewards-table {
	width: 100%;
	border-collapse: collapse;
	background: #FFFFFF;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.er-redeemed-rewards-table thead {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.er-redeemed-rewards-table thead th {
	padding: 16px 20px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	color: #FFFFFF;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #F2B41D;
}

.er-redeemed-rewards-table tbody tr {
	border-bottom: 1px solid #E8E8E8;
	transition: background-color 0.2s ease;
}

.er-redeemed-rewards-table tbody tr:hover {
	background-color: #F8F8F8;
}

.er-redeemed-rewards-table tbody tr:last-child {
	border-bottom: none;
}

.er-redeemed-rewards-table tbody td {
	padding: 16px 20px;
	vertical-align: middle;
	font-size: 14px;
	color: #000000;
}

.er-redeemed-item-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.er-redeemed-item-cell i {
	font-size: 20px;
	color: #F2B41D;
	width: 24px;
	text-align: center;
}

.er-redeemed-item-name {
	font-weight: 500;
	color: #000000;
}

.er-redeemed-status-badge {
	display: inline-block;
	padding: 6px 12px;
	background: #46b450;
	color: #FFFFFF;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.er-redeemed-time {
	color: #666666;
	font-size: 13px;
}

.er-redeemed-view-btn {
	background: linear-gradient(135deg, #F2B41D 0%, #E0A517 100%);
	color: #000000 !important;
	font-weight: 600;
	font-size: 13px;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(242, 180, 29, 0.25);
}

.er-redeemed-view-btn:hover {
	background: linear-gradient(135deg, #E0A517 0%, #D0950F 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(242, 180, 29, 0.35);
}

.er-redeemed-view-btn i {
	font-size: 12px;
}

/* Responsive Table */
@media (max-width: 768px) {
	.er-redeemed-rewards-table-wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.er-redeemed-rewards-table {
		min-width: 600px;
	}
	
	.er-redeemed-rewards-table thead th,
	.er-redeemed-rewards-table tbody td {
		padding: 12px 16px;
		font-size: 13px;
	}
	
	.er-redeemed-view-btn {
		padding: 6px 12px;
		font-size: 12px;
	}
}

.er-redeemed-card {
	background: #FFFFFF;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid #E8E8E8;
	position: relative;
}

.er-redeemed-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #F2B41D 0%, #E0A517 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.er-redeemed-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(242, 180, 29, 0.15);
	border-color: #F2B41D;
}

.er-redeemed-card:hover::before {
	opacity: 1;
}

.er-redeemed-card-inner {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.er-redeemed-icon-box {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #F2B41D 0%, #E0A517 100%);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: #000000;
	box-shadow: 0 6px 20px rgba(242, 180, 29, 0.3);
	margin-bottom: 4px;
}

.er-redeemed-content {
	flex: 1;
}

.er-redeemed-name {
	font-size: 22px;
	font-weight: 700;
	color: #000000;
	margin: 0 0 16px 0;
	line-height: 1.3;
	letter-spacing: -0.3px;
}

.er-redeemed-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 18px;
}

.er-redeemed-date-item,
.er-redeemed-time-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666666;
	font-weight: 500;
}

.er-redeemed-date-item i,
.er-redeemed-time-item i {
	color: #F2B41D;
	font-size: 14px;
	width: 16px;
	text-align: center;
}

.er-redeemed-code-section {
	margin-top: 4px;
}

.er-redeemed-code-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #999999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.er-redeemed-code-display {
	font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
	font-size: 14px;
	font-weight: 600;
	color: #F2B41D;
	background: rgba(242, 180, 29, 0.08);
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid rgba(242, 180, 29, 0.2);
	word-break: break-all;
	line-height: 1.5;
}

.er-redeemed-action {
	margin-top: 8px;
}

.er-redeemed-view-btn {
	width: 100%;
	background: linear-gradient(135deg, #F2B41D 0%, #E0A517 100%);
	color: #000000 !important;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 24px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(242, 180, 29, 0.25);
	position: relative;
	overflow: hidden;
}

.er-redeemed-view-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.er-redeemed-view-btn:hover::before {
	width: 300px;
	height: 300px;
}

.er-redeemed-view-btn:hover {
	background: linear-gradient(135deg, #E0A517 0%, #D0950F 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(242, 180, 29, 0.4);
}

.er-redeemed-view-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(242, 180, 29, 0.25);
}

.er-redeemed-view-btn i {
	font-size: 16px;
	position: relative;
	z-index: 1;
}

.er-redeemed-view-btn span {
	position: relative;
	z-index: 1;
	font-weight: 600;
	letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.er-redeemed-rewards-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.er-redeemed-card-inner {
		padding: 24px;
	}
	
	.er-redeemed-icon-box {
		width: 56px;
		height: 56px;
		font-size: 28px;
	}
	
	.er-redeemed-name {
		font-size: 20px;
	}
	
	.er-redeemed-meta {
		flex-direction: column;
		gap: 12px;
	}
}

/* Discount Code Modal - Professional Design */
.er-discount-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: none !important;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.er-discount-modal.er-active {
	display: flex !important;
}

.er-discount-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
}

.er-discount-container {
	position: relative;
	background: #FFFFFF;
	border-radius: 16px;
	padding: 40px;
	max-width: 520px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	z-index: 100001;
	animation: erModalSlideIn 0.3s ease-out;
}

@keyframes erModalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.er-discount-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 28px;
	color: #666;
	cursor: pointer;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
	z-index: 10;
}

.er-discount-close:hover {
	background: #f5f5f5;
	color: #000;
}

.er-discount-content {
	text-align: center;
}

.er-discount-icon {
	font-size: 64px;
	color: #F2B41D;
	margin-bottom: 20px;
	animation: erIconPulse 2s ease-in-out infinite;
}

@keyframes erIconPulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.er-discount-title {
	font-size: 28px;
	font-weight: 700;
	color: #000000;
	margin: 0 0 10px 0;
}

.er-discount-description {
	font-size: 16px;
	color: #666;
	margin: 0 0 30px 0;
	line-height: 1.5;
}

.er-discount-code-wrapper {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	background: #f9f9f9;
	border: 2px solid #F2B41D;
	border-radius: 12px;
	padding: 5px;
}

.er-discount-code-input {
	flex: 1;
	padding: 16px 20px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 2px;
	text-align: center;
	border: none;
	background: transparent;
	color: #000000;
	font-family: 'Courier New', monospace;
	outline: none;
}

.er-discount-copy {
	background: #F2B41D;
	color: #000000;
	border: none;
	padding: 16px 24px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.er-discount-copy:hover {
	background: #e0a017;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(242, 180, 29, 0.3);
}

.er-discount-copy:active {
	transform: translateY(0);
}

.er-discount-reward-info {
	margin-bottom: 25px;
	padding: 15px;
	background: linear-gradient(135deg, #F2B41D 0%, #e0a017 100%);
	border-radius: 10px;
}

.er-discount-reward-name {
	font-size: 18px;
	font-weight: 600;
	color: #000000;
	margin: 0;
}

/* Responsive Design for Discount Modal */
@media (max-width: 768px) {
	.er-discount-container {
		max-width: 100%;
		border-radius: 16px 16px 0 0;
		margin-top: auto;
		max-height: 95vh;
		padding: 32px 24px;
	}
	
	.er-discount-close {
		top: 12px;
		right: 12px;
		width: 32px;
		height: 32px;
		font-size: 22px;
	}
	
	.er-discount-icon {
		font-size: 48px;
		margin-bottom: 16px;
	}
	
	.er-discount-title {
		font-size: 22px;
	}
	
	.er-discount-description {
		font-size: 14px;
		margin-bottom: 24px;
	}
	
	.er-discount-code-wrapper {
		flex-direction: column;
		gap: 12px;
	}
	
	.er-discount-code-input {
		font-size: 20px;
		padding: 14px 16px;
	}
	
	.er-discount-copy {
		width: 100%;
		justify-content: center;
	}
	
	.er-discount-reward-name {
		font-size: 16px;
	}
	
	.er-discount-shop {
		width: 100%;
		justify-content: center;
	}
}

.er-discount-shop {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #000000;
	color: #FFFFFF;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.er-discount-shop:hover {
	background: #333333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	color: #FFFFFF;
}

.er-discount-shop:active {
	transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 768px) {
	.er-dashboard-content {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.er-rewards-card {
		grid-column: 1 / -1;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
	}
	
	.er-rewards-list {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
	}
	
	.er-reward-tier {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}
}

@media (min-width: 1024px) {
	.er-dashboard {
		padding: 40px;
	}
	
	.er-rewards-list {
		grid-template-columns: repeat(3, 1fr);
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
	}
	
	.er-reward-tier {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 767px) {
	.er-dashboard {
		padding: 15px;
	}
	
	.er-link-container {
		flex-direction: column;
	}
	
	.er-copy-button {
		width: 100%;
		justify-content: center;
	}
	
	.er-share-buttons {
		flex-direction: column;
	}
	
	.er-share-button {
		width: 100%;
		justify-content: center;
	}
	
	.er-reward-tier {
		min-height: 240px;
		padding: 24px 20px;
	}
	
	.er-tier-reward-name {
		font-size: 28px;
	}
	
	.er-discount-container {
		padding: 30px 20px;
	}
	
	.er-discount-title {
		font-size: 24px;
	}
	
	.er-discount-code-wrapper {
		flex-direction: column;
	}
	
	.er-discount-code-input {
		font-size: 20px;
		padding: 14px;
	}
	
	.er-discount-copy {
		width: 100%;
		justify-content: center;
	}
}

	.er-redeem-button {
		width: 100%;
	}
