/* ============================================================
   BETWAR - Main Stylesheet
   ============================================================
   This file contains all the styles for the BetWar website.
   It includes:
   - CSS Custom Properties (design tokens / color palette)
   - Base / Reset styles
   - Typography
   - Navbar / Header
   - Hero section
   - Footer
   - Modal / Menu system
   - Form / Input styling
   - Validation icons
   - Country selector
   - Password toggle
   - Terms page
   - Animations
   ============================================================ */

/* =====================
   1. DESIGN TOKENS
   ===================== */
:root {
    /* Brand Colors */
    --green-rgb: 44, 136, 41;
    --green: rgb(var(--green-rgb));
    --green-dim-rgb: 139, 190, 137;
    --green-dim: rgb(var(--green-dim-rgb));
    --neon-rgb: 149, 228, 87;
    --neon: rgb(var(--neon-rgb));
    --neon-dim-rgb: 197, 240, 162;
    --neon-dim: rgb(var(--neon-dim-rgb));

    --primary: var(--green);
    --primary-rgb: var(--green-rgb);
    --secondary: var(--neon);
    --secondary-rgb: var(--neon-rgb);

    /* Background Colors */
    --bg-void: #010401;
    --bg-deep: #070e07;
    --bg-card: #0e1b0e;
    --bg-card2: #122711;

    /* Text Colors */
    --text-bright: #fff;
    --text-mid: rgba(200, 200, 255, 0.6666);

    /* Glow Effects */
    --glow-m: 0 0 20px rgba(var(--primary-rgb), 0.5), 0 0 60px rgba(var(--primary-rgb), 0.2);
    --glow-c: 0 0 20px rgba(var(--secondary-rgb), 0.5), 0 0 60px rgba(var(--secondary-rgb), 0.2);

    /* Layout */
    --height-header: 73px;
    --height-footer: 93px;

    /* Bootstrap Overrides */
    --bs-body-color: var(--bs-light);
    --bs-body-bg: var(--bs-dark);

    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    scroll-behavior: smooth;
}

.btn-info {
    --bs-btn-bg: var(--neon);
    --bs-btn-border-color: var(--neon);
    --bs-btn-hover-bg: var(--neon-dim);
    --bs-btn-hover-border-color: var(--neon-dim);
    --bs-btn-focus-shadow-rgb: var(--neon-rgb);
    --bs-btn-active-bg: var(--neon-dim);
    --bs-btn-active-border-color: var(--neon-dim);
    --bs-btn-disabled-bg: var(--neon);
    --bs-btn-disabled-border-color: var(--neon);
}

/* =====================
   2. BASE STYLES
   ===================== */
body {
    background-color: var(--bg-void);
    color: var(--text-bright);
    font-family: "Barlow", var(--bs-font-sans-serif, sans-serif);
    overflow-x: hidden;
}

h1 {
    color: var(--neon);
    font-weight: bold;
    font-family: "Barlow Condensed", var(--bs-font-sans-serif, sans-serif);
}

.disabled {
    display: none !important;
}

label[for] {
    cursor: pointer;
}

input,
span:not(.badge),
.fa-ios-arrow {
    color: #fff;
}

a {
    color: var(--secondary);
}

/* =====================
   3. TYPOGRAPHY
   ===================== */
.hero-headline {
    font-family: "Barlow Condensed", var(--bs-font-sans-serif, sans-serif);
    font-weight: 900;
    font-size: clamp(6.5rem, 12vw, 7.5rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-headline .line-green {
    color: var(--primary);
    text-shadow: var(--glow-m);
    display: block;
}

.hero-headline .line-white {
    color: var(--text-bright);
    display: block;
}

.hero-headline .line-neon {
    color: var(--secondary);
    text-shadow: var(--glow-c);
    display: block;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 36px;
}

/* =====================
   4. NAVBAR / HEADER
   ===================== */
.header .logo {
    max-height: 44px;
}

.navbar-ah {
    background-color: rgba(3,3,10,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--secondary-rgb),0.12);
    min-height: var(--height-header);
    padding: 14px 0;
    /* Installed on iOS the page runs under the status bar (viewport-fit=cover +
       black-translucent), so push the bar's content below it. 0 everywhere else. */
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .navbar-ah > .container,
.hero > .container {
    max-width: 572px;
}

.btn-login,
.btn-signup {
    background-color: transparent;
    border: 1px solid rgba(var(--secondary-rgb),0.4);
    color: var(--secondary);
    font-family: "Barlow Condensed", var(--bs-font-sans-serif, sans-serif);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 24px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-login:hover,
.btn-signup:hover {
    background-color: rgba(var(--secondary-rgb), 0.1);
    color: var(--text-bright);
}

/* =====================
   5. HERO SECTION
   ===================== */
.hero {
    min-height: calc(100dvh - var(--height-header) - var(--height-footer));
    background-color: var(--bg-void);
    position: relative;
    display: flex;
    overflow: hidden;
}

.hero .subcontainer {
    max-width: 600px;
}

.hero .logo {
    margin-top: 10vh; /* Fallback */
    margin-top: 10dvh;
}

@media (min-width: 600px) and (min-height: 900px) {
    .hero .logo {
        margin-top: 25vh; /* Fallback */
        margin-top: 25dvh;
    }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--secondary-rgb),0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--secondary-rgb),0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
}

.hero-glow-left {
    position: absolute;
    width: 600px;
    height: 600px;
    left: -100px;
    top: -50px;
    background-image: radial-gradient(circle, rgba(var(--primary-rgb),0.15) 0%, transparent 65%);
    pointer-events: none;
}

.hero-glow-right {
    position: absolute;
    width: 700px;
    height: 700px;
    right: -150px;
    bottom: -100px;
    background-image: radial-gradient(circle, rgba(var(--secondary-rgb),0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero-logo {
    max-width: 320px;
}

.banner.ratio {
    --bs-aspect-ratio: 59.635%;
    max-width: 545px;
}

/* =====================
   6. FOOTER
   ===================== */
footer {
    background-color: var(--bg-deep);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0 10px;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    font-size: 0.75rem;
    color: rgba(144,184,144,0.45);
    line-height: 1.7;
}

.footer-bottom a {
    color: rgba(144,184,144,0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-mid);
}

/* =====================
   7. MENU / MODAL SYSTEM
   ===================== */
.menu,
.menu-hider {
    position: fixed;
}

.menu-hider {
    top: -100px;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.67);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: all 350ms ease;
}

.menu-hider.menu-active {
    opacity: 1;
    pointer-events: all;
    user-select: auto;
}

.menu {
    display: none;
    opacity: 0;
    z-index: 101;
    overflow: auto;
    box-shadow: var(--glow-c);
    transition-property: opacity, display;
    transition-duration: 350ms;
    transition-timing-function: ease;
    transition-behavior: allow-discrete;
    -webkit-overflow-scrolling: touch;
}

.menu-active.menu {
    opacity: 1 !important;
    pointer-events: all !important;
    display: block;
}

/* Modal (centered) */
.menu-box-modal {
    top: 50%;
    left: 50%;
    width: 330px;
    max-height: 480px;
    transform: translate(-50%, -50%) scale(0, 0);
    opacity: 0;
    pointer-events: none;
    border-radius: 15px;
    animation: menu-modal-out 350ms ease both;
}

.menu-box-modal.menu-active {
    animation-name: menu-modal-in;
    pointer-events: all !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1, 1);
}

dialog.menu-box-modal[popover] {
    margin: 0;
    padding: 0; /* the browser gives [popover] elements 0.25em of padding */
    border-width: 0;
}

/* Login Modal */
.menu-login {
    max-width: 578px;
    background-color: var(--bg-void);
    color: var(--text-bright);
}

.menu-login .icon-validate {
    opacity: 0;
}

.menu-login .card-top.sticky-top {
    background-color: rgba(3, 3, 10, 0.875);
}

.menu-login .btn-submit.btn {
    --bs-btn-disabled-opacity: 0.5;
}

.card-login.card-style {
    margin-bottom: 0;
}

.menu-login.menu-box-modal {
    max-height: fit-content;
}

/* Signup Modal */
.menu-signup {
    background-color: var(--bg-void);
    color: var(--text-bright);
}

.menu-signup.menu-box-modal {
    width: calc(100% - 16px);
    max-width: 800px;
    max-height: calc(100dvh - 16px);
}

.menu-signup .card-top.sticky-top {
    background-color: rgba(3, 3, 10, 0.875);
}

.menu-signup .btn-submit.btn {
    --bs-btn-disabled-opacity: 0.5;
}

.menu-signup .input-style input,
.menu-signup .input-style select {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-signup .input-style.input-style-active label {
    right: auto;
    left: auto !important;
    transform: none;
    padding-left: 0;
}

.menu-signup .input-style.input-style-active label.reveal-password {
    right: 0;
}

/* Warning Modal */
.menu-warning {
    max-width: 480px;
    z-index: 103;
    background-color: #151615;
}

.menu-warning.menu-box-modal {
    box-shadow: 0 0 20px rgba(var(--bs-warning-rgb), 0.5), 0 0 60px rgba(var(--bs-warning-rgb), 0.2);
}

.menu-warning .icon > svg {
    display: block;
    max-height: 72px;
}

.menu-warning h3 {
    color: #fff;
}

/* Close Button */
.close-menu {
    --bs-link-color-rgb: 200, 200, 255;
}

.close-menu:hover,
.close-menu:focus,
.close-menu:active {
    --bs-link-color-rgb: 255, 255, 255;
}

.close-menu.icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu.icon > svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

/* =====================
   8. FORM / INPUT STYLES
   ===================== */
.input-style,
.input-age {
    margin-top: 32px;
}

.input-style {
    position: relative;
}

.input-style input,
.input-style select,
.input-style textarea {
    font-size: 1em;
    width: 100%;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    padding: 0;
    border-radius: 0;
}

.input-style input,
.input-style select {
    height: 2.5rem;
    line-height: 1.125;
}

.input-style textarea {
    padding-top: 0.5em;
    field-sizing: content;
}

.input-style label {
    opacity: 0;
    left: 0 !important;
    transform: translateX(30px);
    position: absolute;
    top: -22px;
    transition: 150ms;
    color: rgba(255, 255, 255, 0.625);
}

/* Has Icon */
.input-style.has-icon {
    position: relative;
}

.input-style.has-icon .icon:first-child {
    position: absolute;
    top: 7px;
    width: 10px;
    text-align: center;
    margin-top: -8px;
}

.input-style.has-icon.has-borders .icon:first-child {
    position: absolute;
    top: 50%;
    width: 10px;
    padding-left: 15px !important;
    text-align: center;
    margin-top: -7px;
}

.input-style.has-icon.has-borders input,
.input-style.has-icon.has-borders select,
.input-style.has-icon.has-borders textarea {
    padding-left: 35px !important;
}

.input-style.has-icon input,
.input-style.has-icon select,
.input-style.has-icon textarea {
    padding-left: 25px;
}

/* Has Borders (rounded inputs) */
.input-style.has-borders input,
.input-style.has-borders select,
.input-style.has-borders textarea {
    border-radius: 30px !important;
    height: 53px;
    border-left-width: 1px !important;
    border-right-width: 1px !important;
    border-top-width: 1px !important;
    padding-left: 13px !important;
    padding-right: 10px !important;
}

/* Active State (label floats up) */
.input-style.input-style-active label {
    opacity: 1;
    left: 0 !important;
    transform: none !important;
    position: absolute;
    padding: 0 4px !important;
    height: 23px;
    font-size: 0.875em;
    transition: 250ms;
    color: var(--text-mid);
}

.input-style.has-borders.input-style-active label {
    margin-left: 14px !important;
    margin-right: auto;
    transform: none;
}

/* Validation Icons */
.input-style .invalid,
.input-style .valid,
.input-style em,
.input-style span {
    position: absolute;
    top: 50%;
    margin-top: -5px;
    pointer-events: none;
    max-width: 14px;
    max-height: 16px;
    right: 5px;
}

.input-style.input-password .invalid,
.input-style.input-password .valid,
.input-style.input-password em,
.input-style.input-password span,
.input-style.input-date-of-birth .invalid,
.input-style.input-date-of-birth .valid,
.input-style.input-date-of-birth em,
.input-style.input-date-of-birth span {
    right: 24px;
}

.input-style .icon-label {
    display: inline-flex;
    min-width: 25px;
    min-height: 16px;
}

.input-style .icon-label > svg {
    max-width: 14px;
    max-height: 16px;
    margin: auto;
}

.input-style.input-address .icon-label > svg {
    margin-top: 0.75rem;
}

.input-style .invalid:not(.icon-dropdown) {
    color: #f00;
}

.input-style .valid:not(.icon-dropdown) {
    color: #4d4;
}

.input-style .icon-label {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

.input-style .icon-label > svg:first-child {
    opacity: 0.5;
}

/* Address textarea */
.input-style.input-address .icon-label > svg {
    margin-top: 0.75rem;
}

/* Date input */
.input-style input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.3;
}

.input-style select {
    color: inherit;
}

.input-style input[type="date"] {
    color: inherit;
    width: calc(100vw - 64px);
    display: block;
    appearance: none;
    -webkit-appearance: none;
    padding-top: 2px;
}

/* =====================
   9. COUNTRY SELECTOR
   ===================== */
.input-style.input-country {
    position: relative;
}

.input-style.input-country .icon-country {
    pointer-events: none;
    user-select: none;
}

.input-style.input-country span.icon-country {
    right: auto;
    font-size: 1em;
    max-width: none;
    max-height: none;
    margin-top: auto;
    transform: translateY(-50%);
}

.input-style.input-country input::-webkit-search-cancel-button {
    margin-right: 1.75em;
}

.country-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--bg-void);
    border-width: 0 1px 1px;
    border-style: solid;
    border-color: rgba(var(--secondary-rgb), 0.35);
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    display: none;
}

.country-suggestions.visible {
    display: block;
}

.country-suggestion-item {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text-bright);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-suggestion-item:hover,
.country-suggestion-item.active {
    background: rgba(var(--secondary-rgb),0.15);
}

/* =====================
   10. PASSWORD TOGGLE
   ===================== */
.menu .reveal-password,
.menu .input-style.input-style-active .reveal-password {
    height: calc(100% - 2px);
}

.menu .reveal-password {
    opacity: 0.75;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.125rem;
    margin-right: 30px;
}

.menu .input-style.input-style-active .reveal-password {
    left: auto !important;
    transform: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    font-size: inherit;
}

.menu .reveal-password[for] {
    cursor: pointer;
}

.menu .reveal-password input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.menu .reveal-password input[type="checkbox"]:hover,
.menu .reveal-password input[type="checkbox"]:focus {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

.menu .reveal-password input[type="checkbox"] ~ .icon {
    margin: auto;
    pointer-events: none;
    user-select: none;
}

.menu .reveal-password input[type="checkbox"] ~ svg.icon {
    height: 100%;
}

.menu .reveal-password input[type="checkbox"]:not(:checked) ~ .icon-show-password,
.menu .reveal-password input[type="checkbox"]:checked ~ .icon-hide-password {
    display: none;
    font-size: 0.875rem;
}

.menu .reveal-password input[type="checkbox"]:checked ~ .icon-show-password,
.menu .reveal-password input[type="checkbox"]:not(:checked) ~ .icon-hide-password {
    display: block;
}

.menu .reveal-password:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* =====================
   11. CHECKBOX / TERMS
   ===================== */
.input-age {
    opacity: 0.625;
}

.input-age:has(.form-check-input[type="checkbox"]:checked),
.input-age:has(.form-check-input[type="checkbox"]:focus),
.input-age:has(.form-check-input[type="checkbox"]:active) {
    opacity: 1;
}

.input-age .icon-check,
.input-age .form-check-label[for] {
    cursor: pointer;
}

.input-age .icon-check {
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.25em;
}

.input-age .icon-check-true > svg {
    fill: currentColor;
}

.input-age .form-check-input[type="checkbox"] {
    width: 0;
    border-width: 0;
}

.input-age .form-check-input[type="checkbox"]:checked + .form-check-label > .icon-check-true {
    display: inline-block;
}

.input-age .form-check-input[type="checkbox"]:checked + .form-check-label > .icon-check-false {
    display: none;
}

.input-age .form-check-input[type="checkbox"]:not(:checked) + .form-check-label > .icon-check-true {
    display: none;
}

.input-age .form-check-input[type="checkbox"]:not(:checked) + .form-check-label > .icon-check-false {
    display: inline-block;
}

/* =====================
   12. TERMS PAGE
   ===================== */
.content {
    padding-bottom: 40px;
}

.content .card {
    margin-bottom: 0;
}

.content .card + .card {
    margin-top: 15px;
}

.content .card-body h2 {
    font-size: 1rem;
}

.content .card-body h3 {
    font-size: 0.9rem;
    color: var(--neon);
}

.content .card-body p {
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--text-mid);
    margin-bottom: 0;
}

.content .card-body ol {
    padding-left: 20px;
}

.color-highlight {
    color: var(--secondary);
}

.font-12 {
    font-size: 0.75rem;
}

.bottom-10 {
    margin-bottom: 10px;
}

.unstyled-link {
    text-decoration: none;
    color: inherit;
}

.unstyled-link:hover {
    color: var(--secondary);
}

/* =====================
   13. LOGIN FORM SPECIFICS
   ===================== */
.menu .login-form .icon > svg {
    max-width: 1.5em;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.menu .login-logo,
.menu .signup-logo {
    margin-bottom: 0;
}

.menu .login-logo > .logo,
.menu .signup-logo > .logo {
    max-height: 24px;
}

/* Select element dark theme fix */
.menu select {
    background-color: var(--bg-void) !important;
    color: var(--text-bright) !important;
    -webkit-text-fill-color: var(--text-bright) !important;
    color-scheme: dark;
}

.menu select option {
    background-color: var(--bg-void);
    color: var(--text-bright);
    -webkit-text-fill-color: var(--text-bright);
}

.menu select option:disabled {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    -webkit-text-fill-color: var(--bs-secondary-color);
}

/* =====================
   14. FORM CONTROL OVERRIDES
   ===================== */
.form-control {
    --bs-body-color: rgba(255, 255, 255, 0.875) !important;
}

.form-control:focus {
    --bs-body-color: #fff !important;
}

input:not([type="file"]),
select,
textarea {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(255, 255, 255, 0.08);
}

input[type="submit"] {
    --bs-btn-color: #000;
    --bs-btn-bg: var(--neon);
    --bs-btn-disabled-bg: var(--neon-dim);
}

input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active {
    opacity: 0.875;
}

input:not([type="submit"]),
textarea {
    --bs-body-bg: transparent;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:disabled {
    color: rgba(255, 255, 255, 0.33) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.33) !important;
    --bs-secondary-bg: rgba(255, 255, 255, 0.0625);
}

.form-control::placeholder {
    padding-left: 4px;
}

.menu select:disabled {
    background-color: var(--bs-secondary-bg) !important;
}

input:not([type="submit"]):not(.focus-color):focus,
select:focus,
textarea:active {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.input-style input:-webkit-autofill,
.input-style input:-webkit-autofill:hover,
.input-style input:-webkit-autofill:focus,
.input-style input:-webkit-autofill:active {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8125) !important;
    -webkit-box-shadow: 0 0 0 30px #222 inset !important;
}

.input-style input:-webkit-autofill:hover,
.input-style input:-webkit-autofill:focus,
.input-style input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* =====================
   15. TOOLTIP OVERRIDES
   ===================== */
.tooltip {
    font-size: 13px;
}

.signup-tooltip-validations {
    --bs-emphasis-color: #222;
}

/* =====================
   16. ANIMATIONS
   ===================== */
@keyframes menu-modal-in {
    0% {
        display: none;
    }
    0.01%,
    100% {
        display: block;
    }
    0%,
    0.01% {
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(0, 0);
    }
    100% {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1, 1);
    }
}

@keyframes menu-modal-out {
    0%,
    99.99% {
        display: block;
    }
    0% {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1, 1);
    }
    99.99% {
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(0, 0);
    }
    100% {
        display: none;
    }
}

@keyframes neon-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
}

.neon-pulse {
    animation: neon-pulse 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: scale(1);
    }
    33.3333% {
        transform: scale(1.125) rotate(1deg);
    }
    66.6666% {
        transform: scale(0.9375) rotate(-1deg);
    }
}

@keyframes ring-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* =====================
   17. UTILITY CLASSES
   ===================== */
.card,
.footer,
.form-floating-over > .form-control:focus ~ label,
.form-floating-over > .form-control:not(:placeholder-shown) ~ label,
.form-floating-over > .form-select ~ label {
    background-color: #0f1117;
}

.badge-new {
    background-color: var(--primary);
    color: #fff;
    font-family: "Barlow Condensed", var(--bs-font-sans-serif, sans-serif);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 2px 7px;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 6px;
}

.icon {
    position: relative;
}

.icon.icon-lg {
    font-size: 6rem;
}

svg.icon.icon-lg {
    max-height: 7rem;
}

.icon.icon-xl {
    font-size: 8rem;
}

svg.icon.icon-xl {
    max-height: 9rem;
}

/* Hero Logo Wrap (for animations if needed later) */
.hero-logo-wrap {
    position: relative;
}

.hero-logo-wrap img {
    width: min(522px, 90vw);
    filter: drop-shadow(0 0 30px rgba(var(--secondary-rgb),0.5)) drop-shadow(0 0 80px rgba(var(--primary-rgb),0.3));
}

/* =====================
   18. PWA CLASSES
   ===================== */
.menu-install-pwa {
    display: none;
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    left: 10px;
    right: 10px;
    max-width: 480px;
    margin: auto;
    padding: 12px 12px 14px;
    color: rgba(0, 0, 0, 0.875);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.875) 100%);
    border: 2px solid rgba(0, 0, 0, 0.0625);
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.5;
    z-index: 1001;
    transition: all 350ms ease;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 125%, 0);
}
@media (prefers-color-scheme: dark) {
    .menu-install-pwa {
        color: rgba(255, 255, 255, 0.875);
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.875) 100%);
        border-color: rgba(255, 255, 255, 0.25);
    }
}

.menu-install-pwa.menu-active {
    transform: translate3d(0%, 0, 0) !important;
    opacity: 1 !important;
    transition: all 350ms ease;
    pointer-events: all !important;
}

.menu-install-pwa.menu-active-no-click {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: all !important;
}

.menu-install-pwa.menu-install-pwa-ios {
    overflow: visible !important;
}

.menu-install-pwa .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    padding: 8px;
    background-color: #000;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    border-radius: 1rem;
}

.menu-install-pwa .logo-wrapper > .logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.menu-install-pwa h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(0, 0, 0, 0.1875);
    text-underline-offset: 3px;
}
@media (prefers-color-scheme: dark) {
    .menu-install-pwa h3 {
        text-decoration-color: rgba(255, 255, 255, 0.1875);
    }
}

.menu-install-pwa p {
    margin-top: 0.5rem;
    opacity: 0.8125;
}

.menu-install-pwa ul {
    display: flex;
    flex-direction: row-reverse;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.menu-install-pwa ul > li {
    flex-grow: 1;
}

.menu-install-pwa .pwa-install,
.menu-install-pwa .pwa-dismiss {
    display: block;
    max-width: fit-content;
    margin-right: auto;
    margin-left: auto;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.menu-install-pwa .pwa-install {
    color: rgba(255, 255, 255, 0.875);
    background-color: #555;
    border-color: rgba(255, 255, 255, 0.25);
}

.menu-install-pwa .pwa-install:hover,
.menu-install-pwa .pwa-install:focus,
.menu-install-pwa .pwa-install:active {
    color: #fff;
    background-color: #555;
    border-color: rgba(255, 255, 255, 0.5);
}

.menu-install-pwa .pwa-dismiss {
    color: rgba(0, 0, 0, 0.875);
    border-color: rgba(0, 0, 0, 0.625);
}
@media (prefers-color-scheme: dark) {
    .menu-install-pwa .pwa-dismiss {
        color: rgba(255, 255, 255, 0.875);
        border-color: rgba(255, 255, 255, 0.625);
    }
}

.menu-install-pwa .pwa-dismiss:hover,
.menu-install-pwa .pwa-dismiss:focus,
.menu-install-pwa .pwa-dismiss:active {
    color: #000;
    border-color: #000;
}
@media (prefers-color-scheme: dark) {
    .menu-install-pwa .pwa-dismiss:hover,
    .menu-install-pwa .pwa-dismiss:focus,
    .menu-install-pwa .pwa-dismiss:active {
        color: #fff;
        border-color: #fff;
    }
}
