/* =========================================================
   Rifas Online — Estilos públicos
   ========================================================= */

/* Identidade visual única do plugin — usada em TODAS as telas
   (página da rifa, Minha Conta, painel do afiliado e admin). */
:root {
	--ro-purple: #5b2ee0;
	--ro-purple-dark: #4a24b8;
	--ro-purple-light: #f0ebff;
	--ro-white: #ffffff;
	--ro-text: #2d2d2d;
	--ro-text-muted: #6b6b6b;
	--ro-border: #e2e2e6;
	--ro-green: #1fa971;
	--ro-green-bg: #e6f7f0;
	--ro-orange: #e8890c;
	--ro-orange-bg: #fff3e0;
	--ro-gold: #c99a06;
	--ro-gold-strong: #ffd700;
	--ro-gold-bg: #fff8e1;
	--ro-red: #d33d3d;
	--ro-red-bg: #fdecea;
	--ro-radius: 10px;
}

.ro-container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }

/* Grade de rifas */
.ro-raffle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 24px 0;
}
.ro-raffle-card {
	display: block;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}
.ro-raffle-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.ro-raffle-card__image { aspect-ratio: 16/10; background: #eee; overflow: hidden; }
.ro-raffle-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ro-raffle-card__body { padding: 16px; }
.ro-raffle-card__title { margin: 0 0 10px; font-size: 18px; }
.ro-raffle-card__meta { font-size: 13px; color: var(--ro-text-muted); margin: 8px 0; }
.ro-raffle-card__price { font-weight: 700; color: var(--ro-purple); margin: 4px 0 0; }

/* Barra de progresso */
.ro-progress { background: #eee; border-radius: 999px; height: 10px; overflow: hidden; }
.ro-progress__bar { background: linear-gradient(90deg, var(--ro-purple), #9b6bff); height: 100%; border-radius: 999px; transition: width .3s ease; }

/* Topo da página: imagem principal (~40%) ao lado das informações,
   eliminando o espaço em branco lateral. Empilha em telas pequenas. */
.ro-raffle__header {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	margin-bottom: 24px;
}
.ro-raffle__header-image {
	flex: 0 0 40%;
	max-width: 40%;
}
.ro-raffle__header-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	cursor: zoom-in;
}
.ro-raffle__header-info { flex: 1 1 0; min-width: 0; }
.ro-raffle__header-info .ro-gallery { margin-top: 16px; margin-bottom: 0; }

@media (max-width: 782px) {
	.ro-raffle__header { flex-direction: column; }
	.ro-raffle__header-image { max-width: 100%; flex-basis: auto; }
}

/* Lightbox simples (sem dependências externas) */
.ro-lightbox-trigger { cursor: zoom-in; }
.ro-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
	animation: ro-fade-in .15s ease;
}
.ro-lightbox-overlay img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.ro-lightbox-close {
	position: absolute;
	top: 20px;
	right: 28px;
	color: var(--ro-white);
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	background: transparent;
	border: none;
}

/* Título + status (só aparece quando a rifa é embutida via shortcode
   fora da sua página nativa, ou quando o status não é "ativa") */
.ro-raffle__title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ro-raffle__title { font-size: 26px; margin: 0; color: var(--ro-text); }

/* Cronômetro de contagem regressiva até o sorteio */
.ro-countdown { margin-top: 14px; }
.ro-countdown__label { font-size: 13px; font-weight: 600; color: var(--ro-text-muted); margin: 0 0 6px; }
.ro-countdown__units { display: flex; gap: 8px; }
.ro-countdown__unit {
	background: var(--ro-white);
	border: 1px solid var(--ro-border);
	border-radius: 8px;
	padding: 8px 10px;
	text-align: center;
	min-width: 52px;
}
.ro-countdown__value { display: block; font-size: 20px; font-weight: 700; color: var(--ro-purple); line-height: 1.1; }
.ro-countdown__suffix { display: block; font-size: 11px; color: var(--ro-text-muted); text-transform: uppercase; }

/* Resultado do sorteio desta rifa */
.ro-raffle__winner {
	background: var(--ro-gold-bg);
	border-radius: var(--ro-radius);
	padding: 20px;
	text-align: center;
	margin: 20px 0;
}
.ro-raffle__winner h3 { margin: 0 0 10px; }
.ro-raffle__winner-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; display: block; }
.ro-raffle__winner-name { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.ro-raffle__winner-city { font-weight: 400; color: var(--ro-text-muted); font-size: 13px; }
.ro-raffle__winner-number { margin: 0 0 4px; color: var(--ro-text); }
.ro-raffle__winner-prize { margin: 0; color: var(--ro-gold); font-weight: 600; }

/* Página da rifa */
.ro-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.ro-gallery__image { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ro-raffle__progress-block { margin: 16px 0; }
.ro-raffle__progress-text { font-size: 13px; color: var(--ro-text-muted); margin-top: 6px; }
.ro-raffle__price-tag { font-size: 16px; margin-top: 8px; color: var(--ro-text); }
.ro-raffle__price-tag strong { color: var(--ro-purple); }
.ro-raffle__description { margin: 20px 0; line-height: 1.6; }

.ro-discounts { background: var(--ro-purple-light); border-radius: var(--ro-radius); padding: 16px; margin: 20px 0; }
.ro-discounts ul { margin: 8px 0 0; padding-left: 20px; }

/* Seleção de números */
.ro-number-selection { margin: 30px 0; }

.ro-number-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 16px; font-size: 13px; color: #555; }
.ro-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ro-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
.ro-swatch--available { background: #fff; }
.ro-swatch--reserved { background: var(--ro-orange); }
.ro-swatch--sold { background: #9b9b9b; }
.ro-swatch--winner { background: var(--ro-gold-strong); }
.ro-swatch--prize { background: var(--ro-gold-strong); }
.ro-swatch--mine { background: var(--ro-purple); }

.ro-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.ro-quick-actions label { font-weight: 600; font-size: 14px; }
.ro-quick-actions input[type="number"] { width: 80px; padding: 8px; border-radius: 6px; border: 1px solid #ddd; }

.ro-btn--secondary { background: #f0ebff; color: var(--ro-purple); }
.ro-btn--secondary:hover { background: #e3d9ff; color: var(--ro-purple); }

.ro-notice { padding: 16px; border-radius: 10px; margin: 20px 0; }
.ro-notice--error { background: var(--ro-red-bg); color: var(--ro-red); border: 1px solid var(--ro-red); }

.ro-number-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 8px;
	margin: 16px 0;
}
.ro-number {
	padding: 10px 4px;
	border-radius: 8px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	transition: all .12s ease;
	position: relative;
}
.ro-number:hover:not(:disabled) { border-color: var(--ro-purple); }
.ro-number--selected { background: var(--ro-purple); color: #fff; border-color: var(--ro-purple); }

/* Estados reais de uma cota: livre, reservada, paga, premiada */
.ro-number--available { background: #fff; color: #333; }
.ro-number--reserved { background: var(--ro-orange-bg); color: var(--ro-orange); border-color: var(--ro-orange); cursor: not-allowed; }
.ro-number--sold { background: #ececec; color: #999; border-color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.ro-number--winner {
	background: linear-gradient(135deg, var(--ro-gold-strong), #e8b400);
	color: #4a3200;
	border-color: #e0a800;
	font-weight: 800;
	animation: ro-winner-pulse 1.6s ease-in-out infinite;
}
.ro-number--mine:not(.ro-number--winner) { box-shadow: inset 0 0 0 2px var(--ro-purple); }

/* Cota premiada: selo (estrela) que se combina com qualquer status —
   a cota pode estar livre, reservada ou paga e ainda assim ser premiada.
   Não se aplica visualmente sobre a vencedora do sorteio (essa já tem
   destaque próprio, mais forte). */
.ro-number--prize {
	border-color: var(--ro-gold-strong);
	box-shadow: inset 0 0 0 2px var(--ro-gold-strong);
}
.ro-number--prize::after {
	content: "★";
	position: absolute;
	top: -8px;
	right: -6px;
	background: var(--ro-gold-strong);
	color: #fff;
	font-size: 10px;
	line-height: 1;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ro-prize-hint {
	font-size: 13px;
	color: #7a5b00;
	background: #fff8e1;
	border: 1px solid #ffe28a;
	border-radius: 8px;
	padding: 8px 12px;
	margin: 0 0 16px;
	display: inline-block;
}

/* Modal de revelação estilo "raspadinha" */
.ro-prize-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 10, 40, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	animation: ro-fade-in .2s ease;
}
.ro-prize-modal {
	background: linear-gradient(160deg, #fff, var(--ro-gold-bg));
	border-radius: 16px;
	padding: 36px 28px;
	max-width: 360px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
	animation: ro-pop-in .35s ease;
}
.ro-prize-modal__confetti { font-size: 32px; margin-bottom: 8px; }
.ro-prize-modal h2 { font-size: 20px; margin: 0 0 12px; color: var(--ro-text); }
.ro-prize-modal__number { font-size: 14px; color: #888; margin: 0 0 4px; }
.ro-prize-modal__prize { font-size: 18px; font-weight: 700; color: var(--ro-gold); margin: 0 0 6px; }
.ro-prize-modal__raffle { font-size: 13px; color: #999; margin: 0 0 20px; }
.ro-prize-modal__close { margin-top: 10px; }

@keyframes ro-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ro-pop-in {
	0% { transform: scale(.7); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

@keyframes ro-winner-pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,183,0,.6); }
	50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(255,183,0,0); }
}

.ro-purchase-summary { background: #fafafa; border-radius: 10px; padding: 18px; margin-top: 16px; }
.ro-purchase-summary p { margin: 6px 0; }
.ro-total-line { font-size: 18px; font-weight: 700; }
.ro-purchase-summary select { display: block; width: 100%; margin: 8px 0 14px; padding: 8px; border-radius: 6px; border: 1px solid #ddd; }

.ro-btn {
	display: inline-block;
	background: var(--ro-purple);
	color: var(--ro-white);
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	font-size: 15px;
}
.ro-btn:hover { background: var(--ro-purple-dark); color: var(--ro-white); }
.ro-btn--small { padding: 6px 12px; font-size: 13px; }
.ro-btn--whatsapp { background: #25D366; }
.ro-buy-button { width: 100%; margin-top: 6px; }
.ro-buy-button:disabled { background: #ccc; cursor: not-allowed; }
.ro-login-required { font-size: 13px; color: var(--ro-red); }

.ro-checkout-result { margin-top: 16px; padding: 16px; border-radius: var(--ro-radius); background: var(--ro-purple-light); }

.ro-pix-qrcode { text-align: center; margin: 6px 0 16px; }
.ro-pix-qrcode img {
	max-width: 220px;
	width: 100%;
	height: auto;
	display: inline-block;
	background: var(--ro-white);
	padding: 10px;
	border-radius: var(--ro-radius);
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.ro-pix-code-block { margin: 0 0 16px; }
.ro-pix-code-label { font-weight: 600; margin: 0 0 6px; font-size: 14px; color: var(--ro-text); }
.ro-pix-code-value {
	display: block;
	word-break: break-all;
	background: var(--ro-white);
	color: var(--ro-text);
	padding: 12px;
	border-radius: 8px;
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	border: 1px dashed var(--ro-border);
}

.ro-copy-pix-button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.ro-copy-feedback {
	display: none;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ro-green);
	text-align: center;
}
.ro-copy-feedback--error { color: var(--ro-red); }

.ro-pix-qrcode--local { min-height: 220px; display: flex; align-items: center; justify-content: center; }

/* Resultado final do pedido (atualizado via polling automático, sem recarregar a página) */
.ro-order-status { text-align: center; padding: 8px 4px; }
.ro-order-status__icon { font-size: 40px; margin: 0 0 8px; line-height: 1; }
.ro-order-status h4 { margin: 0 0 8px; font-size: 18px; }
.ro-order-status--approved h4 { color: var(--ro-green); }
.ro-order-status--failed h4 { color: var(--ro-red); }
.ro-order-status--pending { background: var(--ro-gold-bg); border-radius: var(--ro-radius); padding: 16px; margin-top: 12px; }
.ro-order-status--pending h4 { color: var(--ro-gold); }
.ro-order-status--pending p:last-child { font-size: 13px; color: var(--ro-text-muted); margin: 0; }

.ro-payment-hint { font-size: 13px; color: var(--ro-text-muted); margin: 4px 0 12px; }
.ro-order-status__numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.ro-order-status__number {
	background: var(--ro-green);
	color: var(--ro-white);
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 15px;
}

/* Depoimentos */
.ro-testimonials { margin: 40px 0; }
.ro-testimonials__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.ro-testimonial-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ro-testimonial-card__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.ro-testimonial-card__rating { color: var(--ro-gold-strong); margin-bottom: 6px; }
.ro-testimonial-card__message { font-style: italic; margin: 0 0 8px; }
.ro-testimonial-card__name { font-weight: 600; margin: 0; font-size: 14px; }

/* Regulamento / compartilhamento */
.ro-raffle__rules { margin: 30px 0; }
.ro-share { margin: 30px 0; }
.ro-share__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ro-share__btn { padding: 10px 16px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.ro-share__btn--whatsapp { background: #25D366; }
.ro-share__btn--facebook { background: #1877F2; }
.ro-share__btn--twitter { background: #000; }

/* Botão flutuante do WhatsApp */
.ro-whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	z-index: 9999;
}

/* =========================================================
   Painel "Minha Conta" — Dashboard
   ========================================================= */
.ro-dashboard { display: flex; gap: 24px; max-width: 1100px; margin: 0 auto; align-items: flex-start; }

.ro-dashboard__sidebar {
	flex: 0 0 220px;
	background: var(--ro-white);
	border-radius: var(--ro-radius);
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	padding: 20px 0;
	position: sticky;
	top: 20px;
}
.ro-dashboard__profile { text-align: center; padding: 0 16px 16px; border-bottom: 1px solid var(--ro-border); margin-bottom: 10px; }
.ro-dashboard__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 10px; border: 3px solid var(--ro-purple-light); }
.ro-dashboard__profile strong { display: block; font-size: 14px; }

.ro-dashboard__sidebar .ro-account__tabs { display: flex; flex-direction: column; gap: 2px; }
.ro-dashboard__sidebar .ro-account__tab {
	text-align: left;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 12px 20px;
	font-weight: 600;
	color: var(--ro-text);
}
.ro-dashboard__sidebar .ro-account__tab--active { background: var(--ro-purple-light); color: var(--ro-purple); border-left: 3px solid var(--ro-purple); }
.ro-dashboard__sidebar .ro-account__tab--logout { color: var(--ro-red); text-decoration: none; display: block; padding: 12px 20px; font-weight: 600; }

.ro-dashboard__content { flex: 1 1 0; min-width: 0; }

.ro-dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.ro-dash-card { background: var(--ro-white); border-radius: var(--ro-radius); padding: 18px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ro-dash-card__value { display: block; font-size: 24px; font-weight: 700; color: var(--ro-purple); }
.ro-dash-card__label { display: block; font-size: 12px; color: var(--ro-text-muted); margin-top: 4px; }

.ro-dash-highlight { background: var(--ro-purple-light); border-radius: var(--ro-radius); padding: 20px; margin: 18px 0; }
.ro-dash-highlight--prize { background: var(--ro-gold-bg); }
.ro-dash-highlight h3 { margin: 0 0 8px; }
.ro-dash-highlight__campaign { background: var(--ro-white); border-radius: 8px; padding: 12px 16px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.ro-dash-highlight__campaign strong { flex: 1 1 100%; }

.ro-dash-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 700px) { .ro-dash-columns { grid-template-columns: 1fr; } }

.ro-dash-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ro-dash-list li { display: flex; justify-content: space-between; align-items: center; background: var(--ro-white); padding: 10px 14px; border-radius: 8px; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }

.ro-dash-raffle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.ro-dash-raffle-card { background: var(--ro-white); border-radius: var(--ro-radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ro-dash-raffle-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.ro-dash-raffle-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ro-dash-raffle-card__date { font-size: 12px; color: var(--ro-text-muted); }

.ro-dash-quota-group { background: var(--ro-white); border-radius: var(--ro-radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ro-dash-quota-group__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ro-dash-quota-group__header img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.ro-dash-quota-group__header > div { flex: 1 1 auto; display: flex; flex-direction: column; }
.ro-dash-quota-group__header span { font-size: 12px; color: var(--ro-text-muted); }

.ro-avatar-upload { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ro-avatar-upload img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ro-purple-light); }

@media (max-width: 782px) {
	.ro-dashboard { flex-direction: column; }
	.ro-dashboard__sidebar { position: static; width: 100%; flex-basis: auto; padding: 12px; }
	.ro-dashboard__sidebar .ro-account__tabs { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
	.ro-dashboard__sidebar .ro-account__tab { white-space: nowrap; border-radius: 8px; padding: 10px 14px; }
	.ro-dashboard__sidebar .ro-account__tab--active { border-left: none; }
	.ro-dashboard__profile { display: none; }
}

/* Área do cliente / login / afiliado */
.ro-auth, .ro-account, .ro-affiliate-dashboard { max-width: 640px; margin: 0 auto; }
.ro-auth__tabs, .ro-account__tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ro-auth__tab, .ro-account__tab {
	background: var(--ro-white);
	color: var(--ro-purple);
	border: 1px solid var(--ro-border);
	padding: 10px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}
.ro-auth__tab--active, .ro-account__tab--active { background: var(--ro-purple); color: var(--ro-white); border-color: var(--ro-purple); }
.ro-auth__form, .ro-account__panel { display: none; }
.ro-auth__form--active, .ro-account__panel--active { display: block; }

.ro-auth__form label, .ro-account__panel label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
.ro-auth__form input, .ro-account__panel input, .ro-account__panel textarea {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #ddd;
	box-sizing: border-box;
}
.ro-auth__form button, .ro-account__panel button { margin-top: 16px; }

.ro-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ro-table th, .ro-table td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; font-size: 14px; }

.ro-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: #999; }
.ro-badge--approved, .ro-badge--sold, .ro-badge--confirmed, .ro-badge--paid, .ro-badge--active, .ro-badge--delivered { background: var(--ro-green); }
.ro-badge--pending, .ro-badge--reserved { background: var(--ro-orange); }
.ro-badge--refused, .ro-badge--rejected, .ro-badge--expired, .ro-badge--canceled, .ro-badge--hidden { background: var(--ro-red); }

.ro-stat-card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 6px; }
.ro-affiliate-dashboard__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.ro-stat-card__label { font-size: 12px; color: var(--ro-text-muted); text-transform: uppercase; }
.ro-stat-card__value { font-size: 20px; font-weight: 700; }

.ro-my-numbers { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ro-my-numbers__item { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }

.ro-empty-state { color: var(--ro-text-muted); font-style: italic; }

/* Histórico público de ganhadores */
.ro-winners-public { margin: 40px 0; }
.ro-winners-public__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.ro-winner-public-card { background: var(--ro-white); border-radius: var(--ro-radius); padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center; }
.ro-winner-public-card__photo { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.ro-winner-public-card__name { margin: 0 0 4px; font-size: 16px; }
.ro-winner-public-card__city { font-weight: 400; color: var(--ro-text-muted); font-size: 13px; }
.ro-winner-public-card__raffle { font-size: 12px; color: var(--ro-text-muted); margin: 0 0 6px; }
.ro-winner-public-card__prize { font-weight: 700; color: var(--ro-gold); margin: 0 0 8px; }
.ro-winner-public-card__video { font-size: 13px; color: var(--ro-purple); text-decoration: underline; }

@media (max-width: 600px) {
	.ro-number-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
}
