/* Panel privado /patrocinio/ */
.ci-sponsor-panel-body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(ellipse 55% 42% at 8% -5%, rgba(226, 6, 19, 0.22), transparent 58%),
		radial-gradient(ellipse 45% 36% at 92% 0%, rgba(56, 182, 216, 0.12), transparent 52%),
		linear-gradient(168deg, #03152c 0%, #07111c 46%, #090d12 100%);
	color: #f3f5f8;
	font-family: "DM Sans", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ci-sp {
	--ci-red: #e20613;
	--ci-red-soft: rgba(226, 6, 19, 0.16);
	--ci-line: rgba(255, 255, 255, 0.1);
	--ci-line-strong: rgba(255, 255, 255, 0.16);
	--ci-surface: rgba(255, 255, 255, 0.045);
	--ci-surface-2: rgba(0, 0, 0, 0.22);
	--ci-text: #f3f5f8;
	--ci-muted: rgba(243, 245, 248, 0.62);
	max-width: 980px;
	margin: 0 auto;
	padding: 1.1rem 1rem 2.75rem;
}

.ci-sp__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.35rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--ci-line);
}

.ci-sp__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ci-sp__logo {
	height: 44px;
	width: auto;
	max-width: 170px;
	object-fit: contain;
}

.ci-sp__brand-text {
	font-family: Outfit, "DM Sans", sans-serif;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ci-sp__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	border: 1px solid var(--ci-line-strong);
	background: rgba(255, 255, 255, 0.05);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ci-muted);
}

.ci-sp__main {
	display: grid;
	gap: 0.85rem;
}

.ci-sp__intro {
	margin-bottom: 0.35rem;
}

.ci-sp__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #ff6b75;
}

.ci-sp__title {
	margin: 0 0 0.45rem;
	font-family: Outfit, "DM Sans", sans-serif;
	font-size: clamp(1.45rem, 2.8vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.ci-sp__lead {
	margin: 0;
	max-width: 38rem;
	color: var(--ci-muted);
	line-height: 1.55;
	font-size: 0.95rem;
}

.ci-sp__hint {
	margin: 0.65rem 0 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.48);
}

.ci-sp__hint a {
	color: #9adcf0;
	text-decoration: none;
}

.ci-sp__hint a:hover {
	text-decoration: underline;
}

.ci-sp__gate {
	max-width: 400px;
	margin: 2.5rem auto 0;
}

.ci-sp__card {
	border-radius: 1rem;
	border: 1px solid var(--ci-line);
	background: var(--ci-surface);
	backdrop-filter: blur(16px);
}

.ci-sp__card--pad,
.ci-sp__card--gate,
.ci-sp__codes-pick {
	padding: 1.15rem 1.15rem 1.2rem;
}

.ci-sp__card--gate {
	margin-top: 1.15rem;
	display: grid;
	gap: 0.5rem;
}

.ci-sp__card--tier {
	padding: 1.1rem 1rem 1.15rem;
	display: grid;
	gap: 0.45rem;
}

.ci-sp__card--oro {
	border-color: rgba(201, 162, 39, 0.35);
}

.ci-sp__card--plata {
	border-color: rgba(154, 163, 173, 0.35);
}

.ci-sp__card--bronce {
	border-color: rgba(184, 115, 51, 0.35);
}

.ci-sp__workspace {
	display: grid;
	gap: 0.9rem;
}

.ci-sp__toolbar {
	display: grid;
	gap: 0.95rem;
}

.ci-sp__field {
	margin: 0;
	display: grid;
	gap: 0.35rem;
}

.ci-sp__label {
	margin: 0;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.ci-sp__input,
.ci-sp__file {
	width: 100%;
	box-sizing: border-box;
	border-radius: 0.7rem;
	border: 1px solid var(--ci-line-strong);
	background: rgba(0, 0, 0, 0.32);
	color: #fff;
	padding: 0.72rem 0.85rem;
	font: inherit;
	font-size: 0.95rem;
}

.ci-sp__input:focus,
.ci-sp__file:focus {
	outline: none;
	border-color: rgba(255, 107, 117, 0.55);
	box-shadow: 0 0 0 3px rgba(226, 6, 19, 0.18);
}

.ci-sp__input--qty {
	max-width: 4.75rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.ci-sp__file {
	padding: 0.55rem;
	font-size: 0.85rem;
}

.ci-sp__btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 0.72rem 1.15rem;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.ci-sp__btn--primary {
	background: var(--ci-red);
	color: #fff;
	box-shadow: none;
}

.ci-sp__btn--primary:hover {
	background: #ff1a28;
	transform: translateY(-1px);
}

.ci-sp__btn--block {
	width: 100%;
	margin-top: 0.55rem;
}

.ci-sp__btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--ci-line-strong);
	color: #fff;
}

.ci-sp__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
}

.ci-sp__btn--danger-link {
	justify-self: start;
	margin: 0;
	padding: 0.55rem 0.35rem;
	background: transparent;
	color: rgba(255, 180, 184, 0.85);
	letter-spacing: 0.08em;
	font-size: 0.68rem;
}

.ci-sp__btn--danger-link:hover {
	color: #fff;
}

.ci-sp__btn.is-copied {
	background: #12806f !important;
	border-color: #12806f !important;
	color: #fff !important;
}

.ci-sp__tier-block {
	margin-top: 1rem;
	padding: 1.15rem 1.05rem 1.25rem;
}

.ci-sp__empty {
	margin: 0.15rem 0;
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.9rem;
}

.ci-sp__list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.ci-sp__list-item {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 0.85rem;
	align-items: start;
	padding: 0.75rem;
	border-radius: 0.9rem;
	background: var(--ci-surface-2);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.ci-sp__list-fields {
	display: grid;
	gap: 0.3rem;
}

.ci-sp__preview--sm {
	min-height: 72px;
	padding: 0.5rem;
}

.ci-sp__preview--sm .ci-sp__preview-img {
	max-height: 56px;
}

.ci-sp__upload {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 0.95rem;
	border: 1px dashed rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.04);
	display: grid;
	gap: 0.4rem;
}

.ci-sp__upload .ci-sp__btn {
	margin-top: 0.65rem;
}

.ci-sp__item-name {
	display: block;
	font-size: 0.95rem;
	color: #fff;
}

.ci-sp__item-link {
	display: block;
	margin: 0.2rem 0 0.35rem;
	font-size: 0.78rem;
	color: #9adcf0;
	word-break: break-all;
	text-decoration: none;
}

.ci-sp__item-link:hover {
	text-decoration: underline;
}

.ci-sp__inline-remove {
	margin: 0;
}

.ci-sp__grid {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.ci-sp__tier-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ci-sp__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ci-sp__badge--oro {
	background: rgba(201, 162, 39, 0.18);
	color: #f0d78c;
}

.ci-sp__badge--plata {
	background: rgba(154, 163, 173, 0.18);
	color: #d7dde3;
}

.ci-sp__badge--bronce {
	background: rgba(184, 115, 51, 0.18);
	color: #e0a86a;
}

.ci-sp__scale {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.45);
	font-variant-numeric: tabular-nums;
}

.ci-sp__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	border-radius: 0.9rem;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0.85rem;
}

.ci-sp__preview-img {
	max-width: 100%;
	max-height: 88px;
	object-fit: contain;
}

.ci-sp__preview-empty {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a93a0;
}

.ci-sp__actions {
	margin-top: 1.35rem;
	display: flex;
	justify-content: flex-end;
}

.ci-sp__alert {
	border-radius: 0.85rem;
	padding: 0.75rem 1rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.ci-sp__alert--err {
	background: rgba(226, 6, 19, 0.16);
	border: 1px solid rgba(255, 120, 130, 0.3);
	color: #ffd0d4;
}

.ci-sp__alert--ok {
	background: rgba(18, 128, 111, 0.18);
	border: 1px solid rgba(94, 200, 180, 0.35);
	color: #c9f5ea;
}

.ci-sp__foot {
	margin-top: 2.25rem;
	text-align: center;
}

.ci-sp__foot a {
	color: rgba(255, 255, 255, 0.48);
	text-decoration: none;
	font-size: 0.88rem;
}

.ci-sp__foot a:hover {
	color: #fff;
}

.ci-sp__hidden-form {
	display: none !important;
}

.ci-sp__logout {
	margin: 0;
}

/* Tabs */
.ci-sp__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.2rem;
	margin: 0 0 1.35rem;
	padding: 0.25rem;
	border-radius: 999px;
	border: 1px solid var(--ci-line);
	background: rgba(0, 0, 0, 0.22);
}

.ci-sp__tab {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.62);
	text-decoration: none;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease;
}

.ci-sp__tab:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.ci-sp__tab.is-active {
	background: var(--ci-red);
	color: #fff;
}

/* Stats + generate */
.ci-sp__stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ci-sp__stat {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	background: rgba(226, 6, 19, 0.14);
	border: 1px solid rgba(255, 107, 117, 0.22);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.78);
}

.ci-sp__stat strong {
	font-size: 1rem;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.ci-sp__stat--muted {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--ci-line);
}

.ci-sp__gen-bar {
	margin: 0;
	padding-top: 0.15rem;
	border-top: 1px solid var(--ci-line);
	display: grid;
	gap: 0.4rem;
}

.ci-sp__codes-gen-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.ci-sp__codes-gen-row .ci-sp__input:not(.ci-sp__input--qty) {
	flex: 1 1 12rem;
	min-width: 0;
}

.ci-sp__codes-stats {
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.75);
}

/* Code list */
.ci-sp__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.ci-sp__codes-list-title {
	margin: 0;
	font-family: Outfit, "DM Sans", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.ci-sp__count {
	min-width: 1.6rem;
	height: 1.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--ci-line);
	font-size: 0.75rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.7);
}

.ci-sp__codes-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.ci-sp__codes-item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem 1rem;
	align-items: center;
	padding: 0.9rem 1rem;
	border-radius: 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--ci-surface-2);
}

.ci-sp__codes-item--usado,
.ci-sp__codes-item--anulado {
	opacity: 0.55;
}

.ci-sp__codes-item-main {
	display: grid;
	gap: 0.5rem;
	min-width: 0;
}

.ci-sp__code-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.ci-sp__code {
	font-family: Outfit, "DM Sans", monospace;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: #fff;
}

.ci-sp__code--sm {
	font-size: 0.88rem;
	letter-spacing: 0.1em;
}

.ci-sp__code-state {
	margin-left: 0.5rem;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #9adcf0;
}

.ci-sp__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ci-sp__pill--disponible,
.ci-sp__pill--ok {
	background: rgba(18, 128, 111, 0.22);
	color: #8fe3d2;
	border: 1px solid rgba(94, 200, 180, 0.28);
}

.ci-sp__pill--usado {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--ci-line);
}

.ci-sp__pill--anulado {
	background: rgba(226, 6, 19, 0.14);
	color: #ffb4b8;
	border: 1px solid rgba(255, 120, 130, 0.25);
}

.ci-sp__codes-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	justify-content: flex-end;
}

.ci-sp__codes-ready {
	border-color: rgba(94, 200, 180, 0.35);
	background: linear-gradient(160deg, rgba(18, 128, 111, 0.14), rgba(255, 255, 255, 0.04));
}

.ci-sp__codes-ready-head {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.35rem;
}

.ci-sp__codes-ready-title {
	margin: 0;
	font-family: Outfit, "DM Sans", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}

.ci-sp__codes-ready-lead {
	margin: 0 0 0.85rem;
	color: var(--ci-muted);
	font-size: 0.9rem;
}

.ci-sp__codes-ready-item {
	display: grid;
	gap: 0.65rem;
	padding: 0.85rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ci-sp__codes-ready-item:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.ci-sp__codes-ready-meta,
.ci-sp__link-row {
	display: grid;
	gap: 0.5rem;
}

.ci-sp__codes-ready-link {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border-radius: 0.65rem;
	border: 1px solid var(--ci-line);
	background: rgba(0, 0, 0, 0.28);
	color: #bfe9f5;
	font-size: 0.78rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ci-sp__muted {
	color: rgba(255, 255, 255, 0.35);
}

/* Table */
.ci-sp__table-wrap {
	overflow-x: auto;
	margin-top: 0.85rem;
	-webkit-overflow-scrolling: touch;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.ci-sp__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
	font-size: 0.84rem;
}

.ci-sp__table th,
.ci-sp__table td {
	padding: 0.7rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	text-align: left;
	vertical-align: top;
}

.ci-sp__table th {
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.45);
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.18);
}

.ci-sp__table td {
	color: rgba(255, 255, 255, 0.88);
}

.ci-sp__table tbody tr:last-child td {
	border-bottom: 0;
}

.ci-sp__table tbody tr:hover td {
	background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 720px) {
	.ci-sp__codes-item {
		grid-template-columns: 1fr;
	}

	.ci-sp__codes-actions {
		justify-content: flex-start;
	}

	.ci-sp__tabs {
		width: 100%;
	}

	.ci-sp__tab {
		flex: 1 1 auto;
		justify-content: center;
		padding: 0.55rem 0.6rem;
		font-size: 0.62rem;
	}
}
