/* Nelia Recharge — page publique.
   Palette CLAIRE, alignée sur le thème NeliaStore : fond clair, carte blanche,
   bordure fine, titre en bleu #1D33A0, bouton en orange #FF6A2B. On CONSOMME les
   variables du thème (--card, --ink, --muted, --brd…) avec des replis clairs :
   le bloc suit donc le thème au lieu d'imposer son propre sombre. */

.nr-box {
	--nr-bg:      var(--bg, #E8EDF5);
	--nr-card:    var(--card, #FFFFFF);
	--nr-ink:     var(--ink, #0F1A30);
	--nr-muted:   var(--muted, #3A4A6E);
	--nr-surface: var(--surface, #FFFFFF);
	--nr-blue:    #1D33A0;   /* titre + liens + focus (bleu du logo) */
	--nr-orange:  #FF6A2B;   /* bouton principal « Recharger » */
	--nr-gold-ink:#7A4E00;   /* montants / valeurs (or lisible sur clair) */
	--nr-green:   #1f9d57;
	--nr-red:     #b32d2e;
	--nr-brd:     var(--brd, rgba(15, 26, 48, .12));

	max-width: 520px;
	margin: 0 auto;
	padding: 30px 26px 26px;
	background: var(--nr-card);
	border: 1px solid var(--nr-brd);
	border-radius: 16px;
	color: var(--nr-ink);
	box-shadow: 0 18px 44px -28px rgba(19, 38, 74, .35);
	font-family: inherit;
}

.nr-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--nr-blue);
}

.nr-lead { margin: 0 0 18px; color: var(--nr-muted); font-size: 15px; }
.nr-help { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--nr-brd); color: var(--nr-muted); font-size: 13px; }
.nr-hint { margin: 6px 0 0; color: var(--nr-muted); font-size: 12.5px; }

/* ---------- Formulaire ---------- */
.nr-form { margin: 0; }
.nr-label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 13.5px; }

.nr-input {
	width: 100%;
	padding: 14px 16px;
	background: var(--nr-surface);
	border: 1px solid var(--nr-brd);
	border-radius: 12px;
	color: var(--nr-ink);
	font-size: 16px;      /* 16px minimum : en dessous, iOS zoome au focus. */
	transition: border-color .2s, box-shadow .2s;
}
.nr-input:focus {
	outline: none;
	border-color: var(--nr-blue);
	box-shadow: 0 0 0 3px rgba(29, 51, 160, .15);
}
.nr-input--code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
}
.nr-input--otp {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 10px;
	text-align: center;
	font-size: 24px;
	padding-left: 10px;
}

.nr-btn {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 15px 24px;
	background: var(--nr-orange);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.nr-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 106, 43, .35); color: #fff; filter: brightness(1.03); }
.nr-btn--big { padding: 20px; font-size: 18px; }
/* Quand le bouton est un LIEN (« Voir la boutique »), le style de lien du thème
   (bleu + souligné) passait au travers. On le neutralise avec une spécificité
   supérieure : texte blanc, jamais souligné, dans tous les états. */
.nr-box a.nr-btn,
.nr-box a.nr-btn:link,
.nr-box a.nr-btn:visited,
.nr-box a.nr-btn:hover,
.nr-box a.nr-btn:focus { color: #fff; text-decoration: none; }

.nr-inline { margin-top: 12px; text-align: center; }
.nr-link { background: none; border: 0; color: var(--nr-blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; }
.nr-link:hover { filter: brightness(1.15); }

/* ---------- Messages ---------- */
.nr-notice {
	margin: 0 0 18px;
	padding: 12px 15px;
	border-radius: 10px;
	font-size: 14px;
	border: 1px solid transparent;
}
.nr-notice--success { background: rgba(31, 157, 87, .10); border-color: rgba(31, 157, 87, .40); color: #116b32; }
.nr-notice--error { background: rgba(179, 45, 46, .09); border-color: rgba(179, 45, 46, .38); color: #a12321; }
.nr-notice--info { background: rgba(29, 51, 160, .08); border-color: rgba(29, 51, 160, .32); color: #123a8a; }
.nr-notice--sim { background: rgba(255, 184, 28, .14); border-color: rgba(255, 184, 28, .5); color: #8a5a00; }
.nr-notice--sim code { font-size: 18px; letter-spacing: 3px; font-weight: 700; }

/* ---------- Succès ---------- */
.nr-success { text-align: center; }
.nr-success__icon {
	width: 64px; height: 64px; line-height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: rgba(31, 157, 87, .12);
	border: 2px solid var(--nr-green);
	color: var(--nr-green);
	font-size: 32px;
}
.nr-amount {
	margin: 6px 0 10px;
	font-size: 34px;
	font-weight: 800;
	color: var(--nr-green);
}

/* ---------- Page d'activation (vendeur, hors thème) ---------- */
.nr-standalone {
	margin: 0;
	padding: 18px;
	min-height: 100vh;
	background: var(--nr-bg, #E8EDF5);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.nr-box--standalone { margin-top: 10vh; }

.nr-card-info { margin: 0 0 20px; }
.nr-card-info dt { color: var(--nr-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; margin-top: 12px; }
.nr-card-info dd { margin: 3px 0 0; font-size: 17px; }
.nr-card-value { font-size: 28px !important; font-weight: 800; color: var(--nr-gold-ink); }

.nr-brand { margin: 22px 0 0; text-align: center; color: var(--nr-muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

@media (max-width: 560px) {
	.nr-box { padding: 22px 18px; border-radius: 14px; }
	.nr-title { font-size: 21px; }
}

/* Case de vérification rendue EN LIGNE dans « Mon compte » (account_notice). */
.nr-box--inline { margin: 18px 0 24px; }

/* Coordonnées de paiement — shortcode [nelia_paiement]. */
.nr-pay { margin: 8px 0; }
.nr-pay__list { margin: 12px 0 0; padding: 0; }
/* `--nr-brd` n'est défini que sur `.nr-box` ; ce bloc peut être posé seul → valeur directe. */
.nr-pay__row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(15, 26, 48, .10); }
.nr-pay__row dt { margin: 0; min-width: 120px; font-weight: 600; opacity: .8; }
.nr-pay__row dd { margin: 0; }
.nr-pay__key { opacity: .75; margin-left: 6px; }
.nr-pay__note { margin-top: 12px; font-size: 14px; opacity: .85; }

/* Rappel « courriers indésirables » sous le champ de code. */
.nr-hint--spam { margin: 8px 0 2px; font-size: 13px; color: #6b7280; }
