.giveaway-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1.25rem;
}

.giveaway-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(116, 70, 178, 0.3);
	border-radius: 1.25rem;
	background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(11, 12, 27, 0.94));
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.giveaway-card:hover {
	transform: translateY(-3px);
	border-color: rgba(238, 128, 58, 0.65);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38), 0 0 24px rgba(116, 70, 178, 0.18);
}

.giveaway-card-image {
	display: grid;
	height: 190px;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 40%, rgba(116, 70, 178, 0.3), transparent 60%),
		linear-gradient(135deg, rgba(116, 70, 178, 0.16), rgba(238, 128, 58, 0.08));
}

.giveaway-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.giveaway-card-placeholder {
	color: #ee803a;
	font-size: 4rem;
	filter: drop-shadow(0 0 20px rgba(238, 128, 58, 0.3));
}

.giveaway-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.2rem;
}

.giveaway-card-title {
	margin: 0;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1.25;
}

.giveaway-card-description {
	display: -webkit-box;
	margin: 0.65rem 0 1rem;
	overflow: hidden;
	color: #aab5c7;
	font-size: 0.875rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.giveaway-card-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding: 0.9rem 0;
	color: #aab5c7;
	font-size: 0.75rem;
	font-weight: 700;
}

.giveaway-card-actions {
	display: flex;
	gap: 0.6rem;
}

.giveaway-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	padding: 0.65rem 1rem;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-align: center;
	text-transform: uppercase;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
	cursor: pointer;
}

.giveaway-button:hover {
	transform: translateY(-1px);
}

.giveaway-button-primary {
	background: #7446b2;
	box-shadow: 0 0 18px rgba(116, 70, 178, 0.25);
}

.giveaway-button-primary:hover {
	background: #ee803a;
}

.giveaway-button-secondary {
	border-color: rgba(116, 70, 178, 0.55);
	background: rgba(116, 70, 178, 0.12);
}

.giveaway-button-secondary:hover {
	border-color: #ee803a;
	background: rgba(238, 128, 58, 0.12);
}

.giveaway-button-discord {
	background: #5865f2;
}

.giveaway-button-discord:hover {
	background: #4752c4;
}

.giveaway-button:disabled {
	transform: none;
	cursor: not-allowed;
	opacity: 0.55;
}

.giveaway-status {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	z-index: 1;
	border: 1px solid rgba(52, 211, 153, 0.35);
	border-radius: 999px;
	background: rgba(2, 6, 23, 0.82);
	padding: 0.35rem 0.65rem;
	color: #6ee7b7;
	font-size: 0.65rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}

.giveaway-status-ended {
	border-color: rgba(148, 163, 184, 0.3);
	color: #cbd5e1;
}

.giveaway-message {
	min-height: 1.25rem;
	color: #fbbf24;
	font-size: 0.875rem;
}

.giveaway-message:empty {
	display: none;
}

.giveaway-empty {
	grid-column: 1 / -1;
	border: 1px dashed rgba(116, 70, 178, 0.4);
	border-radius: 1rem;
	padding: 2rem;
	color: #94a3b8;
	text-align: center;
}

.giveaway-admin-panel {
	border: 1px solid rgba(238, 128, 58, 0.32);
	border-radius: 1.25rem;
	background: rgba(15, 23, 42, 0.78);
	padding: clamp(1rem, 3vw, 1.6rem);
}

.giveaway-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.giveaway-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	color: #cbd5e1;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.giveaway-form-field-full {
	grid-column: 1 / -1;
}

.giveaway-form-field input,
.giveaway-form-field textarea {
	width: 100%;
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 0.7rem;
	outline: none;
	background: rgba(2, 6, 23, 0.7);
	padding: 0.8rem 0.9rem;
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	letter-spacing: normal;
	text-transform: none;
}

.giveaway-form-field input:focus,
.giveaway-form-field textarea:focus {
	border-color: #ee803a;
	box-shadow: 0 0 0 3px rgba(238, 128, 58, 0.12);
}

.giveaway-form-field textarea {
	min-height: 100px;
	resize: vertical;
}

.giveaway-admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.giveaway-edit-button {
	min-height: 34px;
	border: 1px solid rgba(238, 128, 58, 0.4);
	border-radius: 0.55rem;
	background: rgba(238, 128, 58, 0.1);
	padding: 0.4rem 0.7rem;
	color: #fdba74;
	font-size: 0.7rem;
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.giveaway-edit-button:hover {
	background: rgba(238, 128, 58, 0.22);
}

.giveaway-winner {
	color: #fdba74;
	font-weight: 800;
}

.giveaway-user {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: #e2e8f0;
	font-size: 0.85rem;
	font-weight: 800;
}

.giveaway-user img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
}

.giveaways-page {
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(ellipse at 70% 0%, rgba(116, 70, 178, 0.22), transparent 42rem),
		radial-gradient(ellipse at 0% 40%, rgba(238, 128, 58, 0.07), transparent 38rem),
		#020617;
	color: #f8fafc;
	font-family: 'Outfit', 'Segoe UI', sans-serif;
}

.giveaways-header {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	min-height: 78px;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	border-bottom: 1px solid rgba(116, 70, 178, 0.24);
	background: rgba(2, 6, 23, 0.88);
	padding: 0.85rem clamp(1rem, 5vw, 4rem);
	backdrop-filter: blur(18px);
}

.giveaways-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: #fff;
	font-size: 1.1rem;
	font-style: italic;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.giveaways-brand img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.giveaways-header nav,
.giveaways-account {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.giveaways-header nav a,
.giveaways-footer a {
	color: #94a3b8;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.giveaways-header nav a:hover,
.giveaways-header nav a.is-current,
.giveaways-footer a:hover {
	color: #ee803a;
}

.giveaways-account #giveaway-user {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.giveaways-account #giveaway-user:empty {
	display: none;
}

.giveaways-main {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
}

.giveaways-hero {
	position: relative;
	padding: clamp(4rem, 10vw, 7rem) 0 3.5rem;
}

.giveaways-eyebrow {
	margin: 0 0 0.5rem;
	color: #ee803a;
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.giveaways-hero h1 {
	margin: 0;
	font-size: clamp(3rem, 9vw, 6rem);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -0.07em;
	line-height: 0.94;
	text-transform: uppercase;
}

.giveaways-hero h1 span {
	color: #a783dc;
	text-shadow: 0 0 35px rgba(116, 70, 178, 0.45);
}

.giveaways-hero > p:last-child {
	max-width: 590px;
	margin: 1.5rem 0 0;
	color: #aab5c7;
	font-size: 1rem;
	line-height: 1.7;
}

.giveaways-section {
	margin: 0 0 4rem;
}

.giveaways-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.4rem;
}

.giveaways-section-heading h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.giveaways-live {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	border: 1px solid rgba(52, 211, 153, 0.25);
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.08);
	padding: 0.55rem 0.8rem;
	color: #6ee7b7;
	font-size: 0.65rem;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.giveaways-live span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 10px #34d399;
}

.giveaways-footer {
	border-top: 1px solid rgba(116, 70, 178, 0.2);
	padding: 1.75rem 1rem 2.5rem;
	color: #64748b;
	font-size: 0.8rem;
	text-align: center;
}

.giveaways-footer p {
	margin: 0.6rem 0 0;
}

@media (max-width: 640px) {
	.giveaway-form-grid {
		grid-template-columns: 1fr;
	}

	.giveaway-form-field-full {
		grid-column: auto;
	}

	.giveaways-header {
		flex-wrap: wrap;
	}

	.giveaways-header nav {
		order: 3;
		width: 100%;
		justify-content: center;
		border-top: 1px solid rgba(116, 70, 178, 0.16);
		padding-top: 0.65rem;
	}

	.giveaways-account {
		margin-left: auto;
	}

	.giveaways-account .giveaway-user span {
		display: none;
	}

	.giveaways-account .giveaway-button {
		min-height: 38px;
		padding: 0.5rem 0.65rem;
		font-size: 0.62rem;
	}

	.giveaways-section-heading {
		align-items: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.giveaway-card,
	.giveaway-button {
		transition: none;
	}
}
