.rhp-portal {
	--rhp-primary: #635bff;
	--rhp-primary-dark: #4f46e5;
	--rhp-ink: #1a1f36;
	--rhp-muted: #697386;
	--rhp-border: #e3e8ee;
	--rhp-bg: #f7fafc;
	--rhp-success: #0d9488;
	--rhp-warning: #d97706;
	--rhp-radius: 12px;
	max-width: 920px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--rhp-ink);
}

.rhp-portal__hero {
	text-align: center;
	margin-bottom: 2rem;
}

.rhp-portal__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rhp-primary);
}

.rhp-portal__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	line-height: 1.15;
}

.rhp-portal__subtitle {
	margin: 0 auto;
	max-width: 36rem;
	color: var(--rhp-muted);
	line-height: 1.6;
}

.rhp-hub__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.rhp-hub-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.25rem;
	border: 1px solid var(--rhp-border);
	border-radius: var(--rhp-radius);
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rhp-hub-card:hover,
.rhp-hub-card:focus-visible {
	border-color: var(--rhp-primary);
	box-shadow: 0 8px 24px rgba(99, 91, 255, 0.12);
	transform: translateY(-2px);
	outline: none;
}

.rhp-hub-card__icon {
	font-size: 1.5rem;
	line-height: 1;
}

.rhp-hub-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--rhp-ink);
}

.rhp-hub-card__desc {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--rhp-muted);
}

.rhp-back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 1rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rhp-primary);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.rhp-panel {
	padding: 1.5rem;
	border: 1px solid var(--rhp-border);
	border-radius: var(--rhp-radius);
	background: #fff;
}

.rhp-panel--center {
	text-align: center;
}

.rhp-panel__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
}

.rhp-panel__intro {
	margin: 0 0 1.25rem;
	color: var(--rhp-muted);
	line-height: 1.6;
}

.rhp-tabs {
	display: inline-flex;
	gap: 0.25rem;
	margin-bottom: 1rem;
	padding: 0.25rem;
	border-radius: 999px;
	background: var(--rhp-bg);
}

.rhp-tab {
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rhp-muted);
	font-weight: 600;
	cursor: pointer;
}

.rhp-tab.is-active {
	background: #fff;
	color: var(--rhp-primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rhp-form__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.rhp-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.rhp-form__input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--rhp-border);
	border-radius: 10px;
	font-size: 1rem;
}

.rhp-form__select {
	appearance: auto;
}

.rhp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.rhp-btn--primary {
	background: var(--rhp-primary);
	color: #fff;
}

.rhp-btn--primary:hover {
	background: var(--rhp-primary-dark);
	color: #fff;
}

.rhp-btn--ghost {
	background: transparent;
	border: 1px solid var(--rhp-border);
	color: var(--rhp-ink);
}

.rhp-btn--whatsapp {
	background: #25d366;
	color: #fff;
}

.rhp-state {
	margin-top: 1.25rem;
	padding: 1rem;
	border-radius: 10px;
	text-align: center;
}

.rhp-state--loading {
	color: var(--rhp-muted);
}

.rhp-state--error {
	background: #fef2f2;
	color: #b91c1c;
}

.rhp-state--empty {
	background: var(--rhp-bg);
	color: var(--rhp-muted);
}

.rhp-spinner {
	width: 28px;
	height: 28px;
	margin: 0 auto 0.75rem;
	border: 3px solid var(--rhp-border);
	border-top-color: var(--rhp-primary);
	border-radius: 50%;
	animation: rhp-spin 0.8s linear infinite;
}

@keyframes rhp-spin {
	to { transform: rotate(360deg); }
}

.rhp-summary {
	margin-bottom: 1rem;
	padding: 1rem;
	border-radius: 10px;
	background: var(--rhp-bg);
}

.rhp-summary__title {
	margin: 0 0 0.25rem;
	font-size: 1.125rem;
}

.rhp-summary__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.rhp-summary__stat {
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	background: #fff;
	font-size: 0.8125rem;
}

.rhp-card {
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid var(--rhp-border);
	border-radius: var(--rhp-radius);
}

.rhp-card--winner {
	border-color: #fbbf24;
	background: #fffbeb;
}

.rhp-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.rhp-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	color: var(--rhp-muted);
}

.rhp-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
}

.rhp-badge--active {
	background: #d1fae5;
	color: #065f46;
}

.rhp-badge--finished,
.rhp-badge--sold_out {
	background: #e5e7eb;
	color: #374151;
}

.rhp-tickets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rhp-ticket {
	padding: 0.25rem 0.5rem;
	border: 1px solid #c7d2fe;
	border-radius: 6px;
	background: #eef2ff;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--rhp-primary-dark);
}

.rhp-order {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px dashed var(--rhp-border);
}

.rhp-order--pending {
	background: #fffbeb;
	margin-left: -0.5rem;
	margin-right: -0.5rem;
	padding: 0.75rem 0.5rem 0;
	border-radius: 8px;
}

.rhp-raffle-detail {
	margin-top: 1.25rem;
	padding: 1rem;
	border-radius: 10px;
	background: var(--rhp-bg);
}

.rhp-raffle-detail__message {
	margin: 0.75rem 0 0;
	line-height: 1.6;
}

.rhp-raffle-detail__meta {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.875rem;
}

.rhp-raffle-detail__meta strong {
	color: var(--rhp-ink);
}
