/**
 * Unlckd Giveaway — admin UI + My Account dashboard
 */

/* -------------------------------------------------------------------------- */
/* WP Admin (Unlckd plugin screens)                                            */
/* -------------------------------------------------------------------------- */

body.unlckd-giveaway-admin {
	background: #f0f0f1;
}

body.unlckd-giveaway-admin .wrap {
	padding: 20px 0;
}

body.unlckd-giveaway-admin a {
	color: #1616d3;
}

body.unlckd-giveaway-admin .card {
	border-radius: 12px;
}

body.unlckd-giveaway-admin .table thead th {
	font-size: 11px;
	text-transform: uppercase;
	color: #6c757d;
	border-top: none;
	padding: 12px 8px;
}

body.unlckd-giveaway-admin .pagination .page-link {
	border-radius: 4px;
	margin: 0 2px;
	color: #1616d3;
}

body.unlckd-giveaway-admin .pagination .page-link.active{
	color: #fff;

}

body.unlckd-giveaway-admin .pagination .page-item.active .page-link {
	background-color: #1616d3;
	border-color: #1616d3;
	color: #fff;
}

body.unlckd-giveaway-admin .badge {
	border-radius: 4px;
}

body.unlckd-giveaway-admin .breadcrumb-item a {
	color: #000;
	cursor: pointer;
}

body.unlckd-giveaway-admin .breadcrumb-item.active {
	color: #000;
}

body.unlckd-giveaway-admin .button-submit-container {
	margin-top: 40px;
}

/* Deactivate plugin modal */
.unlckd-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999998;
}

.unlckd-modal-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 450px;
	background: #fff;
	z-index: 999999;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.unlckd-modal-header h3 {
	margin-top: 0;
	color: #1d2327;
}

.unlckd-modal-body {
	margin: 20px 0;
	line-height: 1.5;
}

.unlckd-modal-footer {
	text-align: right;
	border-top: 1px solid #eee;
	padding-top: 15px;
}

#unlckd-modal-confirm {
	background: #d63638;
	border-color: #d63638;
}

#unlckd-modal-confirm:hover {
	background: #b32d2e;
}

.unlckd-modal-body label.unlckd-delete-data-label {
	color: #d63638;
	font-weight: bold;
	cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* My Account — user dashboard                                                 */
/* -------------------------------------------------------------------------- */

.unlckd-dashboard {
	font-family: inherit;
	line-height: 1.5;
}

.unlckd-header {
	margin-bottom: 30rem;
}

.unlckd-title {
	font-size: 40rem;
	line-height: 100%;
	letter-spacing: -1.6rem;
	margin-bottom: 16rem;
}

.unlckd-subtitle {
	font-size: 12rem;
}

.unlckd-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200rem, 1fr));
	gap: 20rem;
	margin-bottom: 40rem;
}

.unlckd-stat-card {
	background: #fff;
	padding: 20rem;
	border: 1px solid #e5e5e5;
	border-radius: 4rem;
	box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.02);
}

.unlckd-stat-label {
	display: block;
	font-size: 11rem;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 1rem;
	margin-bottom: 10rem;
}

.unlckd-stat-value {
	display: block;
	font-size: 20rem;
	font-weight: 800;
}

.unlckd-tier-badge {
	display: inline-block;
	padding: 4rem 12rem;
	border-radius: 4rem;
	font-size: 14rem;
	text-transform: uppercase;
}

.unlckd-tier-badge.bronze {
	background: #b6785e;
	color: #fff;
}

.unlckd-tier-badge.blue {
	background: #1616d3;
	color: #fff;
}

.unlckd-tier-badge.platinum {
	background: #9498a6;
	color: #fff;
}

.unlckd-tier-badge.black {
	background: #000000;
	color: #fff;
}

.unlckd-memberships-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16rem;
}

.unlckd-membership-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6rem;
	padding: 16rem;
}

.unlckd-membership-card--inactive {
	opacity: 0.75;
}

.unlckd-membership-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10rem;
	margin-bottom: 12rem;
}

.unlckd-membership-status {
	font-size: 11rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #666;
}

.unlckd-membership-card--active .unlckd-membership-status {
	color: #1a7f37;
}

.unlckd-membership-card__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10rem 16rem;
	margin: 0 0 10rem;
}

.unlckd-membership-card__meta dt {
	font-size: 10rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #999;
	margin: 0 0 4rem;
}

.unlckd-membership-card__meta dd {
	margin: 0;
	font-weight: 700;
	font-size: 14rem;
}

.unlckd-membership-card__sub {
	margin: 0;
	font-size: 11rem;
	color: #888;
}

.unlckd-section {
	margin-bottom: 40rem;
}

.unlckd-section-title {
	font-size: 18rem;
	margin-bottom: 20rem;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 10rem;
}

.unlckd-table-wrapper {
	overflow-x: auto;
	background: #fff;
	border-radius: 4rem;
	border: 1px solid #e5e5e5;
}

.unlckd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14rem;
	text-align: left;
}

.unlckd-table th {
	background: #f9f9f9;
	padding: 15rem;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12rem;
	border-bottom: 1px solid #eee;
}

.unlckd-table td {
	padding: 15rem;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

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

.unlckd-range-tag {
	background: #f0f0f0;
	padding: 3rem 8rem;
	border-radius: 3rem;
	font-family: monospace;
	font-size: 12rem;
	color: #444;
}

.unlckd-empty {
	text-align: center;
	color: #999;
	padding: 40rem !important;
}

.unlckd-wins-list {
	display: flex;
	flex-direction: column;
	gap: 10rem;
}

.unlckd-win-item {
	background: #fff9e6;
	border: 1px solid #ffeeba;
	padding: 15rem 20rem;
	border-radius: 4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.unlckd-win-giveaway {
	display: block;
	font-weight: 700;
	font-size: 16rem;
	color: #856404;
}

.unlckd-win-number {
	font-size: 13rem;
	color: #856404;
	opacity: 0.8;
}

.unlckd-win-date {
	font-size: 12rem;
	color: #856404;
	font-weight: 600;
}

.unlckd-pagination {
	margin-top: 20rem;
	text-align: center;
	display: flex;
	justify-content: center;
	gap: 5rem;
}

.unlckd-pagination .page-numbers {
	display: inline-block;
	padding: 8rem 14rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4rem;
	text-decoration: none;
	color: #333;
	font-size: 13rem;
	font-weight: 600;
	transition: all 0.2s ease;
}

.unlckd-pagination .page-numbers:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

.unlckd-pagination .page-numbers.current {
	background: #000;
	color: #fff;
	border-color: #000;
}

.unlckd-pagination .page-numbers.prev,
.unlckd-pagination .page-numbers.next {
	text-transform: uppercase;
	font-size: 11rem;
	letter-spacing: 0.5rem;
}

@media (max-width: 600rem) {
	.unlckd-win-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10rem;
	}
}
