/* Enhanced Modal Styles */
.modal-content {
    background: linear-gradient(160deg, #0f0f0f 0%, #1b1b1b 50%, #0d1421 100%);

}

.custom-check .form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background-color: transparent;
    border: 2px solid #BCFB6C;
    cursor: pointer;
}

.custom-check .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #BCFB6C;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.custom-check .form-check-input:checked {
    background-color: #BCFB6C;
    border-color: #BCFB6C;
}

.custom-check .form-check-input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-check .form-check-label {
    margin-left: 8px;
    font-size: 16px;
    cursor: pointer;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.bell-icon {
    position: relative;
    display: inline-block;
}

.bell-icon::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle,
            rgba(188, 251, 108, 0.3) 0%,
            transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.bell-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #BCFB6C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(188, 251, 108, 0.3);
}

.bell-icon-wrapper i {
    font-size: 2.5rem;
    color: #000;
}

.form-control-enhanced {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(188, 251, 108, 0.2);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-control-enhanced:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #bcfb6c;
    box-shadow: 0 0 0 3px rgba(188, 251, 108, 0.15),
        0 8px 25px rgba(188, 251, 108, 0.1);
    transform: translateY(-2px);
}

.form-control-enhanced::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.form-control-enhanced:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-enhanced {
    background: #bcfb6c;
    border: none;
    padding: 16px 30px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.btn-enhanced:active {
    transform: translateY(-1px);
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(18, 18, 18, 0.3);
    border-radius: 50%;
    border-top-color: #121212;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-close-enhanced {
    color: #bcfb6c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        border-radius: 25px;
    }
}

.soon-modal-content {
    background: #121212 !important;
    color: #fff;
    border-radius: 20px;
}

.modal-backdrop.show {
    opacity: 0 !important;
}

/* ===== Elegant Waitlist Modal Redesign ===== */
.waitlist-modal {
    background: linear-gradient(145deg, #0f1114, #151a1d);
    border: 2px solid rgba(188, 251, 108, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(188, 251, 108, 0.05) inset;
    border-radius: 20px;
    padding: 0;
    max-width: 420px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.waitlist-header {
    padding: 28px 32px 20px;
    position: relative;
    overflow: hidden;
}

.waitlist-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(188, 251, 108, 0.3), transparent);
}

.header-inner {
    position: relative;
    z-index: 2;
}

.waitlist-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 8px;
    line-height: 1.3;
}

.waitlist-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    font-weight: 400;
}

.btn-close-simple {
    background: rgba(188, 251, 108, 0.1);
    border: 1px solid rgba(188, 251, 108, 0.2);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: #BCFB6C;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.25s ease;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    font-weight: 300;
}

.btn-close-simple:hover {
    opacity: 1;
    background: rgba(188, 251, 108, 0.18);
    transform: scale(1.08);
    border-color: rgba(188, 251, 108, 0.35);
}

.btn-close-simple:active {
    transform: scale(0.95);
}

/* RTL support for close button */
[dir="rtl"] .btn-close-simple {
    right: auto;
    left: 20px;
}

.waitlist-body {
    padding: 0 32px 32px;
}

.flat-input.form-control-enhanced {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(188, 251, 108, 0.2);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flat-input.form-control-enhanced:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #BCFB6C;
    box-shadow: 0 0 0 3px rgba(188, 251, 108, 0.15);
    transform: translateY(-1px);
}

.flat-input.form-control-enhanced::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.flat-input.form-control-enhanced:focus::placeholder {
    opacity: 0.6;
}

.closed-beta-box {
    background: linear-gradient(135deg, rgba(188, 251, 108, 0.08), rgba(188, 251, 108, 0.03));
    border: 1.5px solid rgba(188, 251, 108, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    position: relative;
    margin-top: 8px;
}

.closed-beta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(188, 251, 108, 0.4), transparent);
    border-radius: 16px 16px 0 0;
}

.beta-switch .form-check-input {
    cursor: pointer;
}

.beta-switch label {
    font-size: 0.875rem;
    color: #FFFFFF;
    font-weight: 500;
    line-height: 1.5;
}

.beta-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    font-weight: 400;
}

.flat-btn.btn-enhanced {
    background: linear-gradient(135deg, #BCFB6C 0%, #A8E85A 100%);
    color: #0A1A05;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 24px;
    box-shadow: 0 4px 16px rgba(188, 251, 108, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.flat-btn.btn-enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.flat-btn.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 251, 108, 0.35);
    filter: brightness(1.05);
}

.flat-btn.btn-enhanced:hover::before {
    left: 100%;
}

.flat-btn.btn-enhanced:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(188, 251, 108, 0.25);
}

.mini-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.mini-link i {
    color: #BCFB6C;
    font-size: 0.75rem;
}

.mini-link:hover {
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Icon row + chips */
.icon-row {
    gap: 8px !important;
    margin-bottom: 20px;
}

.icon-row .mini-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #BCFB6C 0%, #A8E85A 100%);
    border: none;
    border-radius: 12px;
    color: #0A1A05;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(188, 251, 108, 0.25);
    transition: transform 0.2s ease;
}

.icon-row .mini-icon:hover {
    transform: translateY(-1px);
}

.beta-chip {
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 12px;
    line-height: 1;
    border-radius: 20px;
    background: rgba(188, 251, 108, 0.15);
    color: #BCFB6C;
    border: 1px solid rgba(188, 251, 108, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.beta-chip:hover {
    background: rgba(188, 251, 108, 0.2);
    transform: translateY(-1px);
}

.waitlist-modal .form-label {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    text-transform: none;
}

/* Refined spacing */
.waitlist-body .mb-3 {
    margin-bottom: 20px !important;
}

.closed-beta-box {
    margin-bottom: 24px !important;
}

/* Enhanced custom switch with proper alignment */
.beta-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    padding: 0;
}

.beta-switch .form-check-input {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    width: 50px;
    height: 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(188, 251, 108, 0.25);
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    flex-shrink: 0;
    order: 0;
    /* Switch comes first in LTR */
}

.beta-switch .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
    order: 1;
    /* Label comes second in LTR */
    line-height: 1.4;
}

/* RTL: Switch on the right, label on the left */
[dir="rtl"] .beta-switch .form-check-input {
    order: 1;
    /* Switch comes second (right side) in RTL */
}

[dir="rtl"] .beta-switch .form-check-label {
    order: 0;
    /* Label comes first (left side) in RTL */
    text-align: right;
}

.beta-switch .form-check-input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.beta-switch .form-check-input:checked {
    background: linear-gradient(135deg, #BCFB6C 0%, #A8E85A 100%);
    border-color: #BCFB6C;
}

.beta-switch .form-check-input:checked::after {
    transform: translateX(22px);
    background: #FFFFFF;
}

[dir="rtl"] .beta-switch .form-check-input::after {
    left: auto;
    right: 3px;
}

[dir="rtl"] .beta-switch .form-check-input:checked::after {
    transform: translateX(-22px);
}

.beta-switch .form-check-input:focus-visible {
    outline: 2px solid #BCFB6C;
    outline-offset: 3px;
}

/* Direction aware adjustments */
[dir="rtl"] .waitlist-modal .form-label,
[dir="rtl"] .waitlist-modal .beta-hint {
    text-align: right;
}

[dir="rtl"] .waitlist-modal .closed-beta-box {
    direction: rtl;
}

[dir="rtl"] .waitlist-modal .btn-text {
    flex-direction: row-reverse;
}

[dir="rtl"] .waitlist-modal .mini-link i {
    margin-left: .25rem;
    margin-right: 0;
}

[dir="ltr"] .waitlist-modal .mini-link i {
    margin-right: .25rem;
}

/* Enhanced focus and accessibility */
.waitlist-modal .form-control-enhanced:focus-visible,
.waitlist-modal .btn-enhanced:focus-visible,
.waitlist-modal .form-check-input:focus-visible {
    outline: 2px solid #BCFB6C;
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {

    .flat-btn.btn-enhanced,
    .icon-row .mini-icon {
        transition: none;
    }
}

/* Responsive design */
@media (max-width: 576px) {
    .waitlist-modal {
        border-radius: 18px;
        max-width: 95vw;
        margin: 20px auto;
    }

    .waitlist-header {
        padding: 24px 24px 16px;
    }

    .waitlist-body {
        padding: 0 24px 24px;
    }

    .waitlist-title {
        font-size: 1.2rem;
    }

    .flat-input.form-control-enhanced {
        font-size: 14px;
        padding: 14px 16px;
    }

    .flat-btn.btn-enhanced {
        font-size: 15px;
        padding: 14px 20px;
    }

    .closed-beta-box {
        padding: 16px 20px;
    }

    .btn-close-simple {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    [dir="rtl"] .btn-close-simple {
        right: auto;
        left: 16px;
    }

    .icon-row .mini-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.flat-input.form-control-enhanced {
    font-size: 13px;
    padding: 11px 14px;
}

.flat-btn.btn-enhanced {
    font-size: 14px;
    padding: 12px 16px;
}

.closed-beta-box {
    padding: 12px 14px 14px;
}