/* ============================================================
   FERMA MESSAGES ULTIMATE — v2 Premium
   Luxury editorial broadcast aesthetic.
   ============================================================ */

/* Google Fonts loaded via PHP, fallback stack here */
:root {
    --fmu-bg-deepest: #0a0a0d;
    --fmu-bg-base:    #0e0e12;
    --fmu-bg-elev:    #15151b;
    --fmu-bg-glass:   rgba(255,255,255,.035);
    --fmu-border:     rgba(255,255,255,.07);
    --fmu-border-md:  rgba(255,255,255,.12);
    --fmu-border-hi:  rgba(255,255,255,.2);
    --fmu-text:       #ffffff;
    --fmu-text-mid:   rgba(255,255,255,.72);
    --fmu-text-mute:  rgba(255,255,255,.45);
    --fmu-text-dim:   rgba(255,255,255,.28);

    --fmu-brand:      #ff7a00;
    --fmu-brand-2:    #ff9b3d;
    --fmu-brand-3:    #ffb56b;
    --fmu-brand-glow: rgba(255,122,0,.45);

    --fmu-gold:       #d4a25b;
    --fmu-gold-soft:  #e9c98a;

    --fmu-success:    #10b981;
    --fmu-danger:     #ef4444;
    --fmu-warn:       #fbbf24;

    --fmu-display:    'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --fmu-body:       'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fmu-mono:       'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --fmu-r-sm: 10px;
    --fmu-r-md: 14px;
    --fmu-r-lg: 20px;
    --fmu-r-xl: 28px;

    --fmu-ease:        cubic-bezier(.22, 1, .36, 1);
    --fmu-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* =========================
   GLOBAL & BODY
   ========================= */
.fmu-immersive {
    margin: 0;
    padding: 0;
    background: var(--fmu-bg-deepest);
    color: var(--fmu-text);
    font-family: var(--fmu-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient mesh gradient (always on) */
.fmu-immersive::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 0%,  rgba(255,122,0,.16), transparent 70%),
        radial-gradient(ellipse 50% 35% at 100% 30%, rgba(212,162,91,.08), transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255,122,0,.06), transparent 80%);
    pointer-events: none;
    animation: fmu-mesh 30s ease-in-out infinite alternate;
}
@keyframes fmu-mesh {
    0%   { transform: translate(0,0)   scale(1); }
    50%  { transform: translate(2%,1%) scale(1.05); }
    100% { transform: translate(-1%,2%) scale(.98); }
}

/* SVG noise grain overlay for premium feel */
.fmu-immersive::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.fmu-immersive > * { position: relative; z-index: 2; }

/* Shortcode containment (when used inside theme) — neutralizes theme bleed */
.fmu-screen,
.fmu-modal,
.fmu-thankyou-full {
    font-family: var(--fmu-body);
    color: var(--fmu-text);
}
.fmu-screen *,
.fmu-modal *,
.fmu-thankyou-full * { box-sizing: border-box; }

/* =========================
   HEADER
   ========================= */
.fmu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    border-bottom: 1px solid var(--fmu-border);
    background: rgba(10,10,13,.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-shrink: 0;
}
.fmu-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fmu-header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}
.fmu-header-logo-placeholder {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--fmu-brand), #c45800);
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px;
    text-transform: uppercase;
    letter-spacing: -.02em;
    box-shadow: 0 10px 30px var(--fmu-brand-glow);
}
.fmu-header-brand { display: flex; flex-direction: column; gap: 2px; }
.fmu-header-name {
    font-family: var(--fmu-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.fmu-header-season {
    font-size: 10px;
    color: var(--fmu-gold);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 700;
    font-family: var(--fmu-body);
}
.fmu-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,122,0,.18), rgba(212,162,91,.1));
    border: 1px solid rgba(255,122,0,.25);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    color: var(--fmu-brand-2);
    font-family: var(--fmu-body);
}
.fmu-header-badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fmu-brand);
    box-shadow: 0 0 8px var(--fmu-brand);
    animation: fmu-pulse 1.8s ease-in-out infinite;
}
@keyframes fmu-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .6; transform: scale(.85); }
}

/* =========================
   MAIN / FOOTER
   ========================= */
.fmu-main {
    flex: 1;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
}
.fmu-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--fmu-border);
    text-align: center;
    flex-shrink: 0;
}
.fmu-footer-powered {
    font-size: 11px;
    color: var(--fmu-text-dim);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =========================
   HERO
   ========================= */
.fmu-screen {
    position: relative;
}
.fmu-hero {
    position: relative;
    padding: 48px 0 56px;
    text-align: center;
    overflow: hidden;
    border-radius: var(--fmu-r-xl);
    margin-bottom: 12px;
}
.fmu-hero[style*="--hero-bg"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: .08;
    filter: blur(1px);
    pointer-events: none;
}
.fmu-hero-inner { position: relative; }
.fmu-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--fmu-border-md);
    background: var(--fmu-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--fmu-gold);
    text-transform: uppercase;
    margin-bottom: 22px;
    opacity: 0;
    animation: fmu-rise .7s var(--fmu-ease) .1s forwards;
}
.fmu-hero-eyebrow .fmu-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fmu-gold);
    box-shadow: 0 0 6px var(--fmu-gold);
}

.fmu-section-head h2 {
    font-family: var(--fmu-display);
    font-size: clamp(40px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.035em;
    font-weight: 500;
    margin: 0 0 18px;
    color: var(--fmu-text);
    opacity: 0;
    animation: fmu-rise .9s var(--fmu-ease) .2s forwards;
}
.fmu-section-head h2 em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, var(--fmu-brand-2), var(--fmu-gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 0 .04em;
}
.fmu-section-head p {
    font-size: 17px;
    color: var(--fmu-text-mid);
    margin: 0 0 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    animation: fmu-rise .8s var(--fmu-ease) .35s forwards;
}

.fmu-hero-price-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px 10px 14px;
    background: linear-gradient(135deg, rgba(255,122,0,.15), rgba(212,162,91,.06));
    border: 1px solid rgba(255,122,0,.28);
    border-radius: 999px;
    font-size: 13px;
    opacity: 0;
    animation: fmu-rise .8s var(--fmu-ease) .5s forwards;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 6px 22px rgba(255,122,0,.18);
}
.fmu-hero-price-pill svg {
    width: 16px; height: 16px;
    padding: 6px;
    background: rgba(255,122,0,.2);
    border-radius: 50%;
    color: var(--fmu-brand-2);
}
.fmu-hero-price-pill span { color: var(--fmu-text-mid); font-weight: 500; }
.fmu-hero-price-pill strong {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@keyframes fmu-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   RULES CARD
   ========================= */
.fmu-rules-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid var(--fmu-border);
    border-radius: var(--fmu-r-lg);
    margin: 0 0 32px;
    overflow: hidden;
    transition: box-shadow .4s var(--fmu-ease), border-color .3s var(--fmu-ease);
    opacity: 0;
    animation: fmu-rise .8s var(--fmu-ease) .55s forwards;
}
.fmu-rules-card.fmu-flash {
    border-color: rgba(255,122,0,.6);
    box-shadow: 0 0 0 4px rgba(255,122,0,.12), 0 30px 80px rgba(255,122,0,.18);
}
.fmu-rules-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 22px 24px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background .2s ease;
}
.fmu-rules-toggle:hover { background: rgba(255,255,255,.02); }
.fmu-rules-toggle-left { display: flex; align-items: center; gap: 14px; }
.fmu-rules-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255,122,0,.18), rgba(212,162,91,.08));
    color: var(--fmu-brand-2);
    border-radius: var(--fmu-r-md);
    border: 1px solid rgba(255,122,0,.18);
    flex-shrink: 0;
}
.fmu-rules-toggle h3 {
    margin: 0;
    font-family: var(--fmu-display);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.02em;
}
.fmu-rules-chev {
    color: var(--fmu-text-mute);
    transition: transform .35s var(--fmu-ease);
    display: flex;
}
.fmu-rules-toggle.is-closed .fmu-rules-chev { transform: rotate(-90deg); }
.fmu-rules-body {
    padding: 0 24px 24px;
    color: var(--fmu-text-mid);
    font-size: 14.5px;
    line-height: 1.7;
    border-top: 1px solid var(--fmu-border);
    padding-top: 20px;
}
.fmu-rules-body p { margin: 0 0 8px; }
.fmu-rules-body p:last-child { margin-bottom: 0; }
.fmu-rules-body p strong { color: #fff; font-weight: 600; }

/* =========================
   GRID
   ========================= */
.fmu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    perspective: 1200px;
}

/* CARD — premium editorial style */
.fmu-card {
    position: relative;
    background: linear-gradient(180deg, var(--fmu-bg-elev), var(--fmu-bg-base));
    border: 1px solid var(--fmu-border);
    border-radius: var(--fmu-r-lg);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition:
        transform .5s var(--fmu-ease),
        border-color .3s var(--fmu-ease),
        box-shadow .4s var(--fmu-ease);
    opacity: 0;
    transform: translateY(30px);
    will-change: transform;
}
.fmu-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .7s var(--fmu-ease),
        transform .7s var(--fmu-ease),
        border-color .3s var(--fmu-ease),
        box-shadow .4s var(--fmu-ease);
}
/* Stagger delays via nth-child */
.fmu-card:nth-child(1).is-visible { transition-delay: .05s; }
.fmu-card:nth-child(2).is-visible { transition-delay: .1s; }
.fmu-card:nth-child(3).is-visible { transition-delay: .15s; }
.fmu-card:nth-child(4).is-visible { transition-delay: .2s; }
.fmu-card:nth-child(5).is-visible { transition-delay: .25s; }
.fmu-card:nth-child(6).is-visible { transition-delay: .3s; }
.fmu-card:nth-child(7).is-visible { transition-delay: .35s; }
.fmu-card:nth-child(8).is-visible { transition-delay: .4s; }

.fmu-card:hover {
    border-color: rgba(255,122,0,.4);
    box-shadow:
        0 30px 60px rgba(0,0,0,.5),
        0 0 0 1px rgba(255,122,0,.2),
        0 20px 80px var(--fmu-brand-glow);
}

.fmu-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #0c0c10;
}
.fmu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s var(--fmu-ease), filter .4s ease;
    filter: saturate(.92) contrast(1.02);
}
.fmu-card:hover .fmu-card-img img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.05);
}
.fmu-card-placeholder {
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,122,0,.15), transparent 60%),
        linear-gradient(135deg, #1a1520, #2d1f35);
}
.fmu-card-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 35%, transparent 65%);
    pointer-events: none;
}

/* Vertical brand strip on cards */
.fmu-card-rail {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fmu-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    color: var(--fmu-gold-soft);
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
}
.fmu-card-rail::before {
    content: "";
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--fmu-gold);
}

.fmu-card-name-overlay {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    z-index: 2;
    font-family: var(--fmu-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0,0,0,.6);
}

.fmu-card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fmu-card-desc {
    font-size: 13.5px;
    color: var(--fmu-text-mute);
    margin: 0;
    line-height: 1.55;
    min-height: 1.55em;
}
.fmu-send-btn {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border-radius: var(--fmu-r-md);
    border: 1px solid rgba(255,122,0,.3);
    background: linear-gradient(135deg, rgba(255,122,0,.1), rgba(255,122,0,.04));
    color: var(--fmu-brand-2);
    font-family: var(--fmu-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .3s var(--fmu-ease);
    position: relative;
    overflow: hidden;
}
.fmu-send-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--fmu-brand), #c45800);
    opacity: 0;
    transition: opacity .3s var(--fmu-ease);
    z-index: 0;
}
.fmu-send-btn > * { position: relative; z-index: 1; }
.fmu-send-btn:hover {
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px var(--fmu-brand-glow);
    transform: translateY(-1px);
}
.fmu-send-btn:hover::before { opacity: 1; }
.fmu-send-btn:active { transform: translateY(0) scale(.98); }
.fmu-send-btn svg {
    flex-shrink: 0;
    transition: transform .3s var(--fmu-ease);
}
.fmu-send-btn:hover svg { transform: translateX(3px); }

/* =========================
   MODAL
   ========================= */
.fmu-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.fmu-modal.is-open { display: block; }

.fmu-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(5,5,7,.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    animation: fmu-fade-in .3s var(--fmu-ease);
}

.fmu-modal-box {
    position: relative;
    z-index: 2;
    width: min(580px, calc(100% - 32px));
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background:
        linear-gradient(180deg, var(--fmu-bg-elev) 0%, var(--fmu-bg-base) 100%);
    border: 1px solid var(--fmu-border-md);
    border-radius: var(--fmu-r-xl);
    overflow-y: auto;
    overflow-x: hidden;
    animation: fmu-modal-up .55s var(--fmu-ease-spring);
    color: #fff;
    box-shadow:
        0 50px 100px rgba(0,0,0,.7),
        inset 0 1px 0 rgba(255,255,255,.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.fmu-modal-box::-webkit-scrollbar { width: 6px; }
.fmu-modal-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.fmu-modal-x {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all .3s var(--fmu-ease);
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fmu-modal-x:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
    transform: rotate(90deg);
}

/* Banner */
.fmu-modal-banner {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #0c0c10;
}
.fmu-modal-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.95);
}
.fmu-modal-banner-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--fmu-bg-elev) 0%, rgba(15,15,21,.4) 30%, transparent 60%);
}
.fmu-modal-banner-name {
    position: absolute;
    bottom: 18px;
    left: 28px;
    right: 28px;
    font-family: var(--fmu-display);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.1;
    text-shadow: 0 4px 18px rgba(0,0,0,.7);
}
.fmu-modal-banner-rail {
    position: absolute;
    top: 16px;
    left: 28px;
    font-family: var(--fmu-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--fmu-gold-soft);
    text-transform: uppercase;
    padding: 5px 12px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
}
.fmu-modal-body { padding: 26px 28px 28px; }

/* Summary card inside modal */
.fmu-modal-summary {
    background:
        linear-gradient(135deg, rgba(255,122,0,.07), rgba(212,162,91,.03));
    border: 1px solid rgba(255,122,0,.18);
    border-radius: var(--fmu-r-md);
    padding: 16px 18px;
    margin-bottom: 22px;
}
.fmu-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
}
.fmu-modal-row span { color: var(--fmu-text-mute); font-weight: 500; }
.fmu-modal-row strong { font-variant-numeric: tabular-nums; }
.fmu-modal-total {
    border-top: 1px dashed rgba(255,255,255,.1);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 15px;
}
.fmu-modal-total span { color: #fff; }
.fmu-modal-total strong {
    font-family: var(--fmu-display);
    font-size: 22px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--fmu-brand-2), var(--fmu-gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fmu-modal-section { margin-bottom: 20px; }
.fmu-modal-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--fmu-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--fmu-text-mute);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px;
}

/* Textarea */
.fmu-textarea-wrap {
    position: relative;
}
.fmu-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--fmu-border-md);
    border-radius: var(--fmu-r-md);
    padding: 16px 18px;
    font-size: 15.5px;
    color: #fff;
    font-family: var(--fmu-body);
    line-height: 1.55;
    outline: none;
    resize: vertical;
    min-height: 130px;
    transition: border-color .25s, background .25s, box-shadow .25s;
}
.fmu-textarea:focus {
    border-color: rgba(255,122,0,.5);
    background: rgba(255,122,0,.04);
    box-shadow: 0 0 0 4px rgba(255,122,0,.08);
}
.fmu-textarea::placeholder { color: var(--fmu-text-dim); }

/* Character counter with progress ring */
.fmu-char-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--fmu-text-mute);
}
.fmu-char-counter-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fmu-char-progress-ring {
    --p: 0;
    --c: var(--fmu-brand);
    position: relative;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0);
    transition: --p .25s ease;
}
@property --p {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}
.fmu-char-progress-ring::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--fmu-bg-elev);
}
.fmu-char-text {
    font-family: var(--fmu-mono);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 600;
}
.fmu-char-counter.is-warn { color: var(--fmu-warn); }
.fmu-char-counter.is-warn .fmu-char-progress-ring { --c: var(--fmu-warn); }
.fmu-char-counter.is-max  { color: var(--fmu-danger); }
.fmu-char-counter.is-max  .fmu-char-progress-ring { --c: var(--fmu-danger); }

.fmu-saved-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--fmu-success);
    opacity: 0;
    transition: opacity .3s ease;
}
.fmu-saved-tag.is-shown { opacity: 1; }
.fmu-saved-tag svg { width: 12px; height: 12px; }

/* Form fields */
.fmu-modal-form { margin-bottom: 18px; }
.fmu-field { margin-bottom: 12px; position: relative; }
.fmu-field.fmu-full { width: 100%; }
.fmu-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.fmu-field label {
    display: block;
    font-family: var(--fmu-mono);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--fmu-text-mute);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.fmu-field input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--fmu-border-md);
    border-radius: var(--fmu-r-md);
    padding: 0 16px;
    padding-right: 38px;
    font-size: 15px;
    color: #fff;
    outline: none;
    font-family: var(--fmu-body);
    transition: all .25s;
}
.fmu-field input::placeholder { color: var(--fmu-text-dim); }
.fmu-field input:focus {
    border-color: rgba(255,122,0,.5);
    background: rgba(255,122,0,.04);
    box-shadow: 0 0 0 4px rgba(255,122,0,.08);
}
.fmu-field-valid {
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: 2px;
    color: var(--fmu-success);
    opacity: 0;
    transform: scale(.5);
    transition: all .3s var(--fmu-ease-spring);
    pointer-events: none;
}
.fmu-field-valid.is-valid {
    opacity: 1;
    transform: scale(1);
}
.fmu-field-valid svg { width: 18px; height: 18px; }

/* Rules consent */
.fmu-rules-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid var(--fmu-border-md);
    border-radius: var(--fmu-r-md);
    padding: 14px 16px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: border-color .25s, background .25s;
    user-select: none;
    position: relative;
}
.fmu-rules-consent:hover { border-color: rgba(255,122,0,.3); }
.fmu-rules-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fmu-checkbox-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .2s var(--fmu-ease-spring);
    margin-top: 1px;
}
.fmu-checkbox-box svg { opacity: 0; transform: scale(.5); transition: all .25s var(--fmu-ease-spring); }
.fmu-rules-consent input:checked ~ .fmu-checkbox-box {
    background: linear-gradient(135deg, var(--fmu-brand), #c45800);
    border-color: transparent;
    box-shadow: 0 6px 20px var(--fmu-brand-glow);
}
.fmu-rules-consent input:checked ~ .fmu-checkbox-box svg { opacity: 1; transform: scale(1); }
.fmu-rules-consent-text {
    font-size: 13.5px;
    color: var(--fmu-text-mid);
    line-height: 1.5;
}
.fmu-rules-link {
    color: var(--fmu-brand-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .2s;
}
.fmu-rules-link:hover { color: var(--fmu-gold-soft); }
.fmu-shake { animation: fmu-shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes fmu-shake {
    10%,90% { transform: translateX(-1px); }
    20%,80% { transform: translateX(2px); }
    30%,50%,70% { transform: translateX(-5px); }
    40%,60% { transform: translateX(5px); }
}

/* Pay button */
.fmu-pay-btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: var(--fmu-r-md);
    background: linear-gradient(135deg, var(--fmu-brand) 0%, #ff5d00 50%, #c45800 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    color: #fff;
    font-family: var(--fmu-body);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-position .5s var(--fmu-ease), transform .2s, box-shadow .3s;
    box-shadow:
        0 14px 36px var(--fmu-brand-glow),
        inset 0 1px 0 rgba(255,255,255,.18);
    position: relative;
    overflow: hidden;
}
.fmu-pay-btn:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: 0 18px 46px var(--fmu-brand-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.fmu-pay-btn:active { transform: scale(.98); }
.fmu-pay-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.fmu-pay-btn svg { flex-shrink: 0; }

/* Spinner inside pay button when loading */
.fmu-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fmu-spin .8s linear infinite;
    display: inline-block;
}
@keyframes fmu-spin { to { transform: rotate(360deg); } }

.fmu-modal-note {
    text-align: center;
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--fmu-text-dim);
    letter-spacing: .04em;
}

.fmu-msg {
    margin-top: 14px;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: var(--fmu-r-md);
    padding: 0;
    text-align: center;
    transition: padding .25s, background .25s;
}
.fmu-msg:not(:empty) { padding: 11px 16px; }
.fmu-msg.is-error {
    background: rgba(239,68,68,.1);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,.25);
}
.fmu-msg.is-success {
    background: rgba(16,185,129,.1);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,.25);
}

/* =========================
   THANK YOU PAGE
   ========================= */
.fmu-thankyou-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    text-align: center;
    padding: 60px 20px;
    animation: fmu-rise .8s var(--fmu-ease);
}
.fmu-thankyou-icon {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(16,185,129,.05));
    border: 1px solid rgba(16,185,129,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: fmu-scale-in .7s var(--fmu-ease-spring);
    box-shadow: 0 20px 50px rgba(16,185,129,.15);
}
.fmu-thankyou-full h1 {
    font-family: var(--fmu-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -.03em;
    margin: 0 0 10px;
}
.fmu-thankyou-sub {
    font-size: 17px;
    color: var(--fmu-text-mid);
    margin: 0 0 32px;
    max-width: 480px;
    line-height: 1.5;
}
.fmu-thankyou-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 520px;
    width: 100%;
    margin-bottom: 28px;
}
.fmu-ty-card {
    background: var(--fmu-bg-glass);
    border: 1px solid var(--fmu-border-md);
    border-radius: var(--fmu-r-md);
    padding: 18px 20px;
    text-align: left;
}
.fmu-ty-card span {
    display: block;
    font-family: var(--fmu-mono);
    font-size: 10.5px;
    color: var(--fmu-text-mute);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}
.fmu-ty-card strong {
    font-family: var(--fmu-display);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.02em;
}
.fmu-thankyou-preview {
    max-width: 640px;
    width: 100%;
    background:
        linear-gradient(135deg, rgba(255,122,0,.06), rgba(212,162,91,.02));
    border: 1px solid rgba(255,122,0,.2);
    border-radius: var(--fmu-r-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    text-align: left;
    position: relative;
}
.fmu-thankyou-preview::before {
    content: "“";
    position: absolute;
    top: 0;
    left: 16px;
    font-family: var(--fmu-display);
    font-size: 88px;
    font-weight: 500;
    color: rgba(255,122,0,.18);
    line-height: 1;
    pointer-events: none;
}
.fmu-thankyou-preview-label {
    display: block;
    font-family: var(--fmu-mono);
    font-size: 10.5px;
    color: var(--fmu-brand-2);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    margin-bottom: 10px;
}
.fmu-thankyou-preview p {
    font-family: var(--fmu-display);
    font-size: 19px;
    line-height: 1.5;
    color: var(--fmu-text);
    margin: 0;
    font-style: italic;
    font-weight: 400;
    position: relative;
    z-index: 1;
}
.fmu-again-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 30px;
    border-radius: var(--fmu-r-md);
    font-weight: 800;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(255,122,0,.12), rgba(255,122,0,.04));
    border: 1px solid rgba(255,122,0,.3);
    color: var(--fmu-brand-2);
    text-decoration: none;
    transition: all .3s var(--fmu-ease);
    position: relative;
    overflow: hidden;
}
.fmu-again-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--fmu-brand), #c45800);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 0;
}
.fmu-again-btn > * { position: relative; z-index: 1; }
.fmu-again-btn:hover {
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px var(--fmu-brand-glow);
}
.fmu-again-btn:hover::before { opacity: 1; }

/* =========================
   STATES (closed / empty / error)
   ========================= */
.fmu-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--fmu-text-mute);
}
.fmu-empty h2 {
    font-family: var(--fmu-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.02em;
    margin: 18px 0 0;
}
.fmu-closed-icon { display: inline-flex; color: var(--fmu-text-dim); }
.fmu-alert {
    padding: 24px;
    border-radius: var(--fmu-r-md);
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
    text-align: center;
    margin: 48px 0;
    font-weight: 600;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fmu-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fmu-modal-up {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fmu-scale-in {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
    .fmu-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .fmu-header { padding: 16px 22px; }
    .fmu-header-logo { height: 38px; }
    .fmu-header-name { font-size: 16px; }
    .fmu-main { padding: 22px; }
    .fmu-hero { padding: 32px 0 40px; }
    .fmu-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .fmu-card-name-overlay { font-size: 17px; }
    .fmu-card-info { padding: 14px; }
    .fmu-send-btn { font-size: 12px; height: 42px; }
    .fmu-rules-toggle { padding: 18px 18px; }
    .fmu-rules-toggle h3 { font-size: 16px; }
    .fmu-rules-body { padding: 16px 18px 18px; font-size: 13.5px; }

    /* Bottom-sheet modal on mobile */
    .fmu-modal-bg { background: rgba(0,0,0,.85); }
    .fmu-modal-box {
        margin: 0;
        width: 100%;
        max-height: 92vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 24px 24px 0 0;
        animation: fmu-sheet-up .5s var(--fmu-ease-spring);
    }
    @keyframes fmu-sheet-up {
        from { transform: translateY(100%); opacity: .8; }
        to   { transform: translateY(0); opacity: 1; }
    }
    .fmu-modal-box::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255,255,255,.2);
        z-index: 11;
    }
    .fmu-modal-banner { height: 200px; }
    .fmu-modal-banner-name { font-size: 26px; }
    .fmu-modal-body { padding: 22px 20px 24px; }
    .fmu-field-row { grid-template-columns: 1fr; gap: 0; }
    .fmu-field-row .fmu-field { margin-bottom: 12px; }

    .fmu-thankyou-full h1 { font-size: 32px; }
    .fmu-thankyou-cards { grid-template-columns: 1fr; }
    .fmu-thankyou-preview { padding: 20px 22px; }
    .fmu-thankyou-preview p { font-size: 17px; }
}
@media (max-width: 480px) {
    .fmu-grid { grid-template-columns: 1fr; }
    .fmu-card-img { aspect-ratio: 16/11; }
    .fmu-card-name-overlay { font-size: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .fmu-card { opacity: 1; transform: none; }
}
