/* ════════════════════════════════════════════════════════════════════
   DICED REGISTRATION — v2.0.0 Neon Kitchen W.O.W V1
   Dark forest end-to-end · Fraunces + Inter · Aurora + grid + noise
   Matches diced-homepage v3.5.x · OLED-grade contrast mandate applied
   Popup (wp_footer, site-wide) + Registration form (shortcode) + Success
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,700;1,9..144,900&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══ TOKENS — Neon Kitchen palette + OLED-grade plate alphas.
   Defined globally at :root so every registration surface (popup,
   form, success, already-registered) has access regardless of
   wrapper nesting. ═══ */
:root {
    --dreg-bg:         #061811;
    --dreg-bg-soft:    #0b2218;
    --dreg-bg-card:    #102a1f;
    --dreg-ink:        #f7f3ea;
    --dreg-ink-dim:    rgba(247,243,234,0.78);
    --dreg-ink-faint:  rgba(247,243,234,0.42);
    --dreg-green:      #22C55E;
    --dreg-green-soft: #6EE7B7;
    --dreg-green-deep: #1B4332;
    --dreg-green-dark: #0d2818;
    --dreg-gold:       #D4A017;
    --dreg-gold-soft:  #FCD34D;
    --dreg-pink:       #F9A8C9;
    --dreg-red:        #DC2626;
    --dreg-red-soft:   #FF7878;
    --dreg-rule:       rgba(247,243,234,0.11);
    --dreg-rule-strong: rgba(247,243,234,0.19);
    /* OLED-grade plates (>=0.85 per contrast mandate) */
    --dreg-plate:      rgba(16,42,31,0.88);
    --dreg-plate-hi:   rgba(16,42,31,0.96);
    /* Three-stop OLED gradient for cards */
    --dreg-card-gradient: linear-gradient(180deg, rgba(27,67,50,0.7) 0%, rgba(16,42,31,0.88) 30%, rgba(6,24,17,0.95) 100%);
    --dreg-radius: 18px;
    --dreg-radius-lg: 28px;
    --dreg-shadow-deep: 0 24px 64px -16px rgba(0,0,0,0.75), 0 4px 18px -8px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   POPUP — Full-screen dark overlay with aurora ambient
   ═══════════════════════════════════════════════════════════════════ */

.diced-reg-overlay {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 24, 17, 0.88);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: dregFadeIn 0.4s cubic-bezier(.22,1,.36,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    isolation: isolate;
}

/* Aurora ambient layer behind overlay */
.diced-reg-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(40vw 40vw at 18% 22%, rgba(34,197,94,0.22), transparent 60%),
        radial-gradient(50vw 50vw at 82% 78%, rgba(212,160,23,0.18), transparent 62%),
        radial-gradient(36vw 36vw at 50% 110%, rgba(249,168,201,0.08), transparent 65%);
    z-index: -2;
    pointer-events: none;
    animation: dregAuroraDrift 20s ease-in-out infinite alternate;
}
.diced-reg-overlay::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(247,243,234,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,243,234,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 35%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 35%, transparent 95%);
}
@keyframes dregAuroraDrift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.08); }
    100% { transform: translate3d(1.5%, -1%, 0) scale(1.03); }
}

@keyframes dregFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═══ POPUP CARD ═══ */
.diced-reg-popup {
    position: relative;
    background: var(--dreg-card-gradient);
    border: 1px solid rgba(247,243,234,0.14);
    border-radius: var(--dreg-radius-lg);
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    box-shadow:
        0 40px 100px -20px rgba(0,0,0,0.85),
        0 16px 40px -12px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(247,243,234,0.08);
    animation: dregSlideUp 0.55s cubic-bezier(.22,1,.36,1);
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: var(--dreg-ink);
    font-family: 'Inter', sans-serif;
}

@keyframes dregSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Conic-gradient subtle border animation on popup card */
.diced-reg-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--dreg-angle, 0deg),
        rgba(34,197,94,0.3),
        rgba(212,160,23,0.35),
        rgba(110,231,183,0.3),
        rgba(212,160,23,0.2),
        rgba(34,197,94,0.3)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: dregBorderSpin 12s linear infinite;
    opacity: 0.85;
}
@keyframes dregBorderSpin {
    to { --dreg-angle: 360deg; }
}
@property --dreg-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* ═══ CLOSE BUTTON ═══ */
.diced-reg-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(6,24,17,0.8);
    border: 1px solid rgba(247,243,234,0.2);
    color: var(--dreg-ink);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    padding: 0;
    transition: all 300ms cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.diced-reg-popup-close:hover {
    background: rgba(220,38,38,0.85);
    border-color: rgba(255,120,120,0.6);
    transform: scale(1.08) rotate(90deg);
    color: #fff;
}

/* ═══ LOGO HEADER ═══ */
.diced-reg-popup-logo {
    position: relative;
    padding: 44px 24px 28px;
    text-align: center;
    overflow: hidden;
}
.diced-reg-popup-logo::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    width: 180%;
    height: 200%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(212,160,23,0.14), transparent 55%);
    pointer-events: none;
    animation: dregLogoGlow 6s ease-in-out infinite alternate;
}
@keyframes dregLogoGlow {
    from { opacity: 0.7; transform: translateX(-50%) scale(1); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}
.diced-reg-logo-img {
    position: relative;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(212,160,23,0.4));
}

/* ═══ POPUP BODY ═══ */
.diced-reg-popup-body {
    position: relative;
    padding: 12px 32px 36px;
    text-align: center;
}

.diced-reg-popup-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--dreg-ink) !important;
    -webkit-text-fill-color: var(--dreg-ink);
    margin: 0 0 24px;
    text-shadow: 0 4px 24px rgba(212,160,23,0.14);
}
.diced-reg-popup-title span {
    display: block;
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, var(--dreg-green-soft), var(--dreg-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 4px;
    filter: drop-shadow(0 0 24px rgba(34,197,94,0.25));
}

/* Gift panel — dark-glass with gold accent */
.diced-reg-popup-notice,
.diced-reg-popup-gift {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(27,67,50,0.7) 0%, rgba(16,42,31,0.88) 100%);
    border: 1px solid var(--dreg-rule);
    border-radius: var(--dreg-radius);
    box-shadow: inset 0 1px 0 rgba(247,243,234,0.05);
    text-align: left;
}
.diced-reg-popup-gift {
    border-color: rgba(212,160,23,0.4);
    background: linear-gradient(180deg, rgba(212,160,23,0.12) 0%, rgba(16,42,31,0.88) 60%, rgba(6,24,17,0.95) 100%);
    box-shadow:
        inset 0 1px 0 rgba(252,211,77,0.15),
        0 0 24px -6px rgba(212,160,23,0.25);
    position: relative;
    overflow: hidden;
}
.diced-reg-popup-gift::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(252,211,77,0.18), transparent 50%);
    pointer-events: none;
    animation: dregGiftShine 4s ease-in-out infinite alternate;
}
@keyframes dregGiftShine {
    0%   { opacity: 0.5; }
    100% { opacity: 1; }
}

.diced-reg-popup-notice-icon,
.diced-reg-popup-gift-icon {
    position: relative;
    font-size: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.diced-reg-popup-notice p,
.diced-reg-popup-gift p {
    position: relative;
    margin: 0;
    color: var(--dreg-ink-dim);
    font-size: 13.5px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}
.diced-reg-popup-notice p strong {
    color: var(--dreg-green-soft);
    font-weight: 800;
}
.diced-reg-popup-gift p strong {
    color: var(--dreg-gold-soft);
    font-weight: 900;
    letter-spacing: 0.3px;
}

/* ═══ POPUP BUTTONS ═══ */
.diced-reg-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.diced-reg-popup-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--dreg-gold) 0%, var(--dreg-gold-soft) 100%);
    color: var(--dreg-green-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(252,211,77,0.55);
    box-shadow:
        0 8px 24px -6px rgba(212,160,23,0.55),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 300ms cubic-bezier(.22,1,.36,1);
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.diced-reg-popup-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    transition: transform 600ms cubic-bezier(.22,1,.36,1);
}
.diced-reg-popup-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 16px 40px -8px rgba(212,160,23,0.75),
        inset 0 1px 0 rgba(255,255,255,0.4);
    color: var(--dreg-green-dark);
}
.diced-reg-popup-btn-primary:hover::before {
    transform: translateX(100%);
}
.diced-reg-popup-btn-primary:active {
    transform: translateY(0) scale(1);
}

.diced-reg-popup-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: rgba(16,42,31,0.6);
    color: var(--dreg-ink);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(110,231,183,0.3);
    transition: all 300ms cubic-bezier(.22,1,.36,1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.diced-reg-popup-btn-secondary:hover {
    background: rgba(34,197,94,0.14);
    border-color: rgba(110,231,183,0.6);
    color: var(--dreg-green-soft);
    transform: translateY(-1px);
}

.diced-reg-popup-skip {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 8px;
    background: transparent;
    color: var(--dreg-ink-faint);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: color 250ms;
    text-decoration: underline;
    text-decoration-color: rgba(247,243,234,0.2);
    text-underline-offset: 4px;
}
.diced-reg-popup-skip:hover {
    color: var(--dreg-ink-dim);
    text-decoration-color: var(--dreg-ink-dim);
}

/* ═══════════════════════════════════════════════════════════════════
   REGISTRATION FORM — Fullpage Neon Kitchen
   ═══════════════════════════════════════════════════════════════════ */

/* Nuke Astra when the register wrap is on the page. Cover html + body
   + all common Astra wrappers. Use #diced-register-wrap (id selector)
   specificity to ensure override strength. */
html:has(#diced-register-wrap),
body:has(#diced-register-wrap) {
    background: var(--dreg-bg) !important;
    background-color: var(--dreg-bg) !important;
    color: var(--dreg-ink) !important;
}
body:has(#diced-register-wrap) .site,
body:has(#diced-register-wrap) .site-content,
body:has(#diced-register-wrap) .ast-container,
body:has(#diced-register-wrap) #primary,
body:has(#diced-register-wrap) #content,
body:has(#diced-register-wrap) .entry-content,
body:has(#diced-register-wrap) .entry-header,
body:has(#diced-register-wrap) .ast-article-single,
body:has(#diced-register-wrap) .ast-article-post,
body:has(#diced-register-wrap) main,
body:has(#diced-register-wrap) article {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--dreg-ink) !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: none !important;
}
body:has(#diced-register-wrap) .entry-title,
body:has(#diced-register-wrap) .post-thumb-img-content,
body:has(#diced-register-wrap) .ast-article-single > header,
body:has(#diced-register-wrap) .ast-single-post-header,
body:has(#diced-register-wrap) .ast-blog-single-element { display: none !important; }

#diced-register-wrap.diced-register-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    color: var(--dreg-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    isolation: isolate;
    min-height: 100vh;
}

/* Ambient layer — auroras + grid + noise fixed behind */
#diced-register-wrap::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(40vw 40vw at 12% 18%, rgba(34,197,94,0.14), transparent 60%),
        radial-gradient(50vw 50vw at 88% 72%, rgba(212,160,23,0.10), transparent 62%),
        radial-gradient(36vw 36vw at 50% 110%, rgba(249,168,201,0.06), transparent 65%);
    z-index: -2;
    pointer-events: none;
    animation: dregAuroraDrift 24s ease-in-out infinite alternate;
}
#diced-register-wrap::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(247,243,234,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,243,234,0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 35%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 35%, transparent 95%);
}

/* ═══ HERO ═══ */
#diced-reg-form-container {
    position: relative;
    animation: dregFadeUp 0.8s cubic-bezier(.22,1,.36,1);
}
@keyframes dregFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══ HERO ═══ */
.diced-reg-hero {
    position: relative;
    text-align: center;
    padding: 20px 0 44px;
    animation: dregFadeUp 0.8s cubic-bezier(.22,1,.36,1);
}
.diced-reg-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dreg-green-soft);
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.diced-reg-hero-kicker::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--dreg-green);
    box-shadow: 0 0 12px var(--dreg-green);
    animation: dregPulseDot 1.8s ease-in-out infinite;
}
@keyframes dregPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}

.diced-reg-hero-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: clamp(44px, 9vw, 104px);
    line-height: 0.94;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    /* Solid cream — beats Astra h1 default. Italic em carries colour. */
    color: var(--dreg-ink) !important;
    -webkit-text-fill-color: var(--dreg-ink);
    text-shadow:
        0 1px 0 rgba(255,255,255,0.04),
        0 4px 32px rgba(212,160,23,0.14),
        0 0 80px rgba(247,243,234,0.08);
}
.diced-reg-hero-title em {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, var(--dreg-green-soft), var(--dreg-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 28px rgba(34,197,94,0.3));
}

.diced-reg-hero-sub {
    font-size: clamp(14px, 1.4vw, 16px);
    color: var(--dreg-ink-dim);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.55;
    font-family: 'Inter', sans-serif;
}

/* Gift banner — dark-glass with gold accent + shimmer */
.diced-reg-gift-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    margin-bottom: 32px;
    background: linear-gradient(180deg, rgba(212,160,23,0.14) 0%, rgba(16,42,31,0.88) 60%, rgba(6,24,17,0.95) 100%);
    border: 1px solid rgba(212,160,23,0.4);
    border-radius: var(--dreg-radius-lg);
    box-shadow:
        0 16px 40px -12px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(252,211,77,0.18),
        0 0 32px -8px rgba(212,160,23,0.3);
    overflow: hidden;
    animation: dregFadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.1s both;
}
.diced-reg-gift-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(252,211,77,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: dregGiftSweep 5s cubic-bezier(.22,1,.36,1) infinite;
    animation-delay: 1.5s;
    pointer-events: none;
}
@keyframes dregGiftSweep {
    0%   { transform: translateX(-100%); }
    40%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.diced-reg-gift-emoji {
    position: relative;
    font-size: 38px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(212,160,23,0.6));
    animation: dregGiftBounce 2.2s cubic-bezier(.22,1,.36,1) infinite;
}
@keyframes dregGiftBounce {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-4px) rotate(6deg); }
}

.diced-reg-gift-banner > div {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.diced-reg-gift-banner strong {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--dreg-gold-soft), var(--dreg-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.diced-reg-gift-banner span {
    color: var(--dreg-ink-dim);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

/* ═══ FORM ═══ */
.diced-reg-form {
    position: relative;
    background: var(--dreg-card-gradient);
    border: 1px solid rgba(247,243,234,0.14);
    border-radius: var(--dreg-radius-lg);
    padding: 36px;
    box-shadow:
        0 24px 64px -16px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(247,243,234,0.06);
    animation: dregFadeUp 1s cubic-bezier(.22,1,.36,1) 0.2s both;
}

.diced-reg-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    padding-top: 6px;
    background: linear-gradient(90deg, var(--dreg-ink) 0%, var(--dreg-green-soft) 60%, var(--dreg-gold-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.diced-reg-section-title:not(:first-child) {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--dreg-rule);
}
.diced-reg-section-title::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--dreg-green), var(--dreg-gold));
    border-radius: 2px;
    -webkit-text-fill-color: initial;
    flex-shrink: 0;
    transform: translateY(-6px);
}

/* Row + field */
.diced-reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.diced-reg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.diced-reg-field.diced-reg-full { width: 100%; }
.diced-reg-row .diced-reg-field { margin-bottom: 0; }

.diced-reg-field label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dreg-green-soft);
    padding-left: 2px;
}

.diced-reg-field input[type="text"],
.diced-reg-field input[type="email"],
.diced-reg-field input[type="tel"],
.diced-reg-field input[type="password"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 14px 16px;
    background: rgba(6,24,17,0.6);
    border: 1px solid var(--dreg-rule-strong);
    border-radius: var(--dreg-radius);
    color: var(--dreg-ink);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: all 250ms cubic-bezier(.22,1,.36,1);
    box-shadow: inset 0 1px 0 rgba(247,243,234,0.04);
    line-height: 1.3;
}
.diced-reg-field input::placeholder {
    color: var(--dreg-ink-faint);
    font-weight: 400;
}
.diced-reg-field input:hover {
    border-color: rgba(247,243,234,0.3);
}
.diced-reg-field input:focus {
    outline: none;
    background: rgba(6,24,17,0.8);
    border-color: rgba(212,160,23,0.6);
    box-shadow:
        inset 0 1px 0 rgba(247,243,234,0.06),
        0 0 0 4px rgba(212,160,23,0.14),
        0 0 24px -6px rgba(212,160,23,0.4);
}
/* Valid-state green (when not empty + no :invalid match) */
.diced-reg-field input:not(:placeholder-shown):valid {
    border-color: rgba(34,197,94,0.4);
}

/* ═══ PASSWORD STRENGTH ═══ */
.diced-reg-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.diced-reg-strength-bar {
    flex: 1;
    height: 6px;
    background: rgba(6,24,17,0.6);
    border: 1px solid var(--dreg-rule);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.diced-reg-strength-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--dreg-red), var(--dreg-gold), var(--dreg-green));
    border-radius: inherit;
    transition: width 400ms cubic-bezier(.22,1,.36,1), opacity 200ms;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}
.diced-reg-strength-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dreg-ink-dim);
    min-width: 56px;
    text-align: right;
}

/* ═══ CUSTOM CHECKBOXES ═══ */
.diced-reg-consent {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}
.diced-reg-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(27,67,50,0.55) 0%, rgba(16,42,31,0.88) 100%);
    border: 1px solid var(--dreg-rule-strong);
    border-radius: var(--dreg-radius);
    cursor: pointer;
    transition: all 250ms cubic-bezier(.22,1,.36,1);
    box-shadow: inset 0 1px 0 rgba(247,243,234,0.04);
}
.diced-reg-checkbox:hover {
    border-color: rgba(110,231,183,0.4);
    transform: translateY(-1px);
}
.diced-reg-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.diced-reg-checkmark {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(6,24,17,0.7);
    border: 1.5px solid var(--dreg-rule-strong);
    border-radius: 6px;
    transition: all 250ms cubic-bezier(.22,1,.36,1);
    margin-top: 1px;
}
.diced-reg-checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--dreg-green-dark);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 280ms cubic-bezier(.68,-.55,.27,1.55);
}
.diced-reg-checkbox input:checked ~ .diced-reg-checkmark {
    background: linear-gradient(135deg, var(--dreg-gold) 0%, var(--dreg-gold-soft) 100%);
    border-color: var(--dreg-gold-soft);
    box-shadow: 0 0 16px -2px rgba(212,160,23,0.6);
}
.diced-reg-checkbox input:checked ~ .diced-reg-checkmark::after {
    transform: rotate(45deg) scale(1);
}
.diced-reg-checkbox > span:last-child {
    flex: 1;
    color: var(--dreg-ink-dim);
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}
.diced-reg-checkbox > span:last-child strong {
    color: var(--dreg-ink);
    font-weight: 800;
}

/* ═══ PRIVACY NOTE ═══ */
.diced-reg-privacy {
    margin: 20px 0 26px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--dreg-ink-faint);
    text-align: center;
}
.diced-reg-privacy a {
    color: var(--dreg-green-soft);
    text-decoration: underline;
    text-decoration-color: rgba(110,231,183,0.4);
    text-underline-offset: 3px;
    transition: all 200ms;
}
.diced-reg-privacy a:hover {
    color: var(--dreg-gold-soft);
    text-decoration-color: var(--dreg-gold-soft);
}

/* ═══ SUBMIT BUTTON ═══ */
.diced-reg-submit-row {
    display: flex;
    justify-content: center;
    margin: 28px 0 14px;
}
.diced-reg-btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 44px;
    background: linear-gradient(135deg, var(--dreg-gold) 0%, var(--dreg-gold-soft) 100%);
    color: var(--dreg-green-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(252,211,77,0.6);
    cursor: pointer;
    box-shadow:
        0 16px 40px -10px rgba(212,160,23,0.7),
        inset 0 1px 0 rgba(255,255,255,0.35);
    transition: all 300ms cubic-bezier(.22,1,.36,1);
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    min-width: 280px;
}
.diced-reg-btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: translateX(-100%);
    transition: transform 700ms cubic-bezier(.22,1,.36,1);
}
.diced-reg-btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 24px 56px -10px rgba(212,160,23,0.85),
        inset 0 1px 0 rgba(255,255,255,0.45);
}
.diced-reg-btn-submit:hover::before {
    transform: translateX(100%);
}
.diced-reg-btn-submit:active {
    transform: translateY(-1px) scale(1);
}
.diced-reg-btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ═══ ERROR + LOGIN LINK ═══ */
.diced-reg-error {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(220,38,38,0.22);
    border: 1px solid rgba(255,120,120,0.55);
    border-radius: var(--dreg-radius);
    color: #FECACA;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,120,120,0.15);
    animation: dregErrorShake 500ms cubic-bezier(.36,.07,.19,.97);
}
.diced-reg-error a {
    color: #fff;
    text-decoration: underline;
    font-weight: 800;
}
@keyframes dregErrorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.diced-reg-login-link {
    margin: 20px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--dreg-ink-dim);
}
.diced-reg-login-link a {
    color: var(--dreg-green-soft);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(110,231,183,0.4);
    transition: all 200ms;
}
.diced-reg-login-link a:hover {
    color: var(--dreg-gold-soft);
    border-bottom-color: var(--dreg-gold-soft);
}

/* ═══════════════════════════════════════════════════════════════════
   SUCCESS STATE
   ═══════════════════════════════════════════════════════════════════ */

.diced-reg-success {
    position: relative;
    background: var(--dreg-card-gradient);
    border: 1px solid rgba(34,197,94,0.4);
    border-radius: var(--dreg-radius-lg);
    padding: 56px 36px 44px;
    box-shadow:
        0 32px 80px -20px rgba(0,0,0,0.75),
        0 0 40px -8px rgba(34,197,94,0.35),
        inset 0 1px 0 rgba(110,231,183,0.2);
    text-align: center;
    animation: dregSuccessIn 0.7s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
}
@keyframes dregSuccessIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.diced-reg-success::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(34,197,94,0.2), transparent 60%);
    pointer-events: none;
}

.diced-reg-success-confetti {
    position: relative;
    font-size: 80px;
    margin-bottom: 16px;
    display: inline-block;
    animation: dregConfettiBurst 1s cubic-bezier(.22,1,.36,1) 0.2s both;
    filter: drop-shadow(0 8px 24px rgba(212,160,23,0.5));
}
@keyframes dregConfettiBurst {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.diced-reg-success-title {
    position: relative;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--dreg-ink) !important;
    -webkit-text-fill-color: var(--dreg-ink);
    margin: 0 0 12px;
    text-shadow: 0 4px 32px rgba(212,160,23,0.2);
}
.diced-reg-success-text {
    position: relative;
    font-size: 15px;
    color: var(--dreg-ink-dim);
    margin: 0 0 32px;
    line-height: 1.5;
}

/* ═══ COUPON BOX ═══ */
.diced-reg-coupon-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 24px 24px;
    margin: 0 auto 32px;
    max-width: 400px;
    background: linear-gradient(180deg, rgba(212,160,23,0.18) 0%, rgba(16,42,31,0.92) 50%, rgba(6,24,17,0.96) 100%);
    border: 1.5px dashed rgba(252,211,77,0.6);
    border-radius: var(--dreg-radius-lg);
    box-shadow:
        0 20px 50px -12px rgba(212,160,23,0.4),
        inset 0 1px 0 rgba(252,211,77,0.25);
    overflow: hidden;
}
.diced-reg-coupon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(252,211,77,0.25), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(212,160,23,0.2), transparent 50%);
    pointer-events: none;
    animation: dregCouponShimmer 6s ease-in-out infinite alternate;
}
@keyframes dregCouponShimmer {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

.diced-reg-coupon-label {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dreg-gold-soft);
}
.diced-reg-coupon-code {
    position: relative;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: clamp(26px, 4.5vw, 36px);
    letter-spacing: 3px;
    color: var(--dreg-ink) !important;
    -webkit-text-fill-color: var(--dreg-ink);
    padding: 10px 20px;
    background: rgba(6,24,17,0.65);
    border: 1px dashed rgba(252,211,77,0.5);
    border-radius: 10px;
    text-shadow: 0 0 20px rgba(212,160,23,0.5);
    user-select: all;
}
.diced-reg-coupon-copy {
    position: relative;
    padding: 10px 24px;
    background: rgba(16,42,31,0.7);
    color: var(--dreg-gold-soft);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(252,211,77,0.5);
    border-radius: 999px;
    cursor: pointer;
    transition: all 250ms cubic-bezier(.22,1,.36,1);
}
.diced-reg-coupon-copy:hover {
    background: rgba(212,160,23,0.2);
    color: var(--dreg-ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(212,160,23,0.5);
}
.diced-reg-coupon-copy.copied {
    background: linear-gradient(135deg, var(--dreg-green), var(--dreg-green-deep));
    color: #fff;
    border-color: var(--dreg-green);
}
.diced-reg-coupon-note {
    position: relative;
    margin: 4px 0 0;
    font-size: 11.5px;
    color: var(--dreg-ink-faint);
    line-height: 1.4;
    max-width: 280px;
}

/* ═══ SUCCESS ACTIONS ═══ */
.diced-reg-success-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
}

.diced-reg-btn-primary,
.diced-reg-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: all 300ms cubic-bezier(.22,1,.36,1);
}
.diced-reg-btn-primary {
    background: linear-gradient(135deg, var(--dreg-gold) 0%, var(--dreg-gold-soft) 100%);
    color: var(--dreg-green-dark);
    border: 1px solid rgba(252,211,77,0.55);
    box-shadow:
        0 12px 32px -8px rgba(212,160,23,0.6),
        inset 0 1px 0 rgba(255,255,255,0.3);
}
.diced-reg-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    color: var(--dreg-green-dark);
    box-shadow:
        0 20px 48px -8px rgba(212,160,23,0.8),
        inset 0 1px 0 rgba(255,255,255,0.4);
}
.diced-reg-btn-secondary {
    background: rgba(16,42,31,0.7);
    color: var(--dreg-ink);
    border: 1px solid rgba(110,231,183,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.diced-reg-btn-secondary:hover {
    background: rgba(34,197,94,0.16);
    border-color: rgba(110,231,183,0.6);
    color: var(--dreg-green-soft);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════
   ALREADY REGISTERED STATE
   Lives inside #diced-register-wrap so inherits aurora + Astra nuke.
   ═══════════════════════════════════════════════════════════════════ */

.diced-reg-already {
    position: relative;
    background: var(--dreg-card-gradient);
    border: 1px solid rgba(34,197,94,0.4);
    border-radius: var(--dreg-radius-lg);
    padding: 68px 36px 52px;
    text-align: center;
    box-shadow:
        0 32px 80px -20px rgba(0,0,0,0.75),
        0 0 40px -8px rgba(34,197,94,0.3),
        inset 0 1px 0 rgba(110,231,183,0.18);
    max-width: 560px;
    margin: 40px auto;
    color: var(--dreg-ink);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    animation: dregSuccessIn 0.7s cubic-bezier(.22,1,.36,1);
}
.diced-reg-already::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(34,197,94,0.22), transparent 60%);
    pointer-events: none;
}
.diced-reg-already-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--dreg-green), var(--dreg-green-deep));
    color: #fff;
    font-size: 44px;
    font-weight: 900;
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(34,197,94,0.7),
        0 16px 32px -8px rgba(34,197,94,0.4),
        inset 0 2px 0 rgba(255,255,255,0.25);
    animation: dregCheckPop 0.7s cubic-bezier(.68,-.55,.27,1.55) 0.1s both;
}
@keyframes dregCheckPop {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.diced-reg-already h3 {
    position: relative;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: clamp(30px, 5.5vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--dreg-ink) !important;
    -webkit-text-fill-color: var(--dreg-ink);
    margin: 0 0 14px;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.04),
        0 4px 32px rgba(34,197,94,0.2),
        0 0 80px rgba(247,243,234,0.08);
}
.diced-reg-already h3 em {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, var(--dreg-green-soft), var(--dreg-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 24px rgba(34,197,94,0.3));
}
.diced-reg-already p {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--dreg-ink-dim);
    margin: 0 0 32px;
    line-height: 1.5;
}
.diced-reg-already-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}
.diced-reg-already-actions .diced-reg-btn-primary,
.diced-reg-already-actions .diced-reg-btn-secondary {
    flex: 1 1 180px;
    min-width: 160px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .diced-reg-popup {
        max-width: calc(100vw - 32px);
    }
    .diced-reg-popup-logo { padding: 36px 20px 20px; }
    .diced-reg-logo-img { max-width: 150px; }
    .diced-reg-popup-body { padding: 8px 22px 28px; }
    .diced-reg-popup-title { font-size: 26px; }
    .diced-reg-popup-notice,
    .diced-reg-popup-gift { padding: 14px 16px; gap: 10px; }
    .diced-reg-popup-notice-icon,
    .diced-reg-popup-gift-icon { font-size: 24px; }
    .diced-reg-popup-notice p,
    .diced-reg-popup-gift p { font-size: 12.5px; }

    #diced-register-wrap.diced-register-wrap { padding: 32px 14px 80px; }
    .diced-reg-hero { padding: 8px 0 28px; }
    .diced-reg-hero-title { font-size: 44px; }
    .diced-reg-hero-kicker { font-size: 10px; padding: 6px 14px; letter-spacing: 2px; }
    .diced-reg-hero-sub { font-size: 13.5px; }
    .diced-reg-form { padding: 24px 18px; border-radius: 22px; }
    .diced-reg-row { grid-template-columns: 1fr; gap: 0; }
    .diced-reg-row .diced-reg-field { margin-bottom: 14px; }
    .diced-reg-row .diced-reg-field:last-child { margin-bottom: 0; }
    .diced-reg-section-title { font-size: 22px; }
    .diced-reg-section-title:not(:first-child) { margin-top: 24px; padding-top: 18px; }
    .diced-reg-gift-banner { padding: 16px 18px; gap: 12px; border-radius: 20px; }
    .diced-reg-gift-emoji { font-size: 32px; }
    .diced-reg-gift-banner strong { font-size: 17px; }
    .diced-reg-gift-banner span { font-size: 12px; }
    .diced-reg-btn-submit { min-width: 0; width: 100%; padding: 16px 24px; }
    .diced-reg-success { padding: 40px 22px 32px; }
    .diced-reg-success-confetti { font-size: 64px; }
    .diced-reg-coupon-box { padding: 22px 18px 18px; border-radius: 22px; }
    .diced-reg-coupon-code { font-size: 24px; letter-spacing: 2px; }
    .diced-reg-already { padding: 40px 22px 32px; margin: 20px 14px; }
    .diced-reg-already-icon { width: 60px; height: 60px; font-size: 28px; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
