#sm-gating-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 18, 84, 0.85);
    z-index: 999999;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

#sm-gating-modal .modal-dialog {
    position: absolute;
    max-width: 540px;
    width: calc(100% - 30px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideUp 0.4s ease-out;
}

#sm-gating-modal .modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

#sm-gating-modal .modal-header {
    background: linear-gradient(135deg, #171254 0%, #2a1f6b 100%);
    padding: 35px 40px;
    border: none;
    position: relative;
    border-radius: 12px 12px 0 0;
}

#sm-gating-modal .modal-title {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.03em;
    padding-right: 50px;
}

#sm-gating-modal .sm-modal-close {
    position: absolute;
    right: 25px;
    top: 25px;
    background: transparent;
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 200;
    opacity: 0.8;
    padding: 0;
}

#sm-gating-modal .sm-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: scale(1.1);
}

#sm-gating-modal .sm-modal-close:active {
    transform: scale(0.95);
}

#sm-gating-modal .modal-body {
    padding: 30px 35px 35px;
}

#sm-gating-modal .modal-body > p,
#sm-gating-modal .sm-options-container > p {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

#sm-gating-modal .d-grid {
    display: grid;
    gap: 15px;
}

#sm-gating-modal .btn {
    display: block;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#sm-gating-modal .btn-gating-primary,
#sm-gating-modal #sm-signup-button {
    background: #D5AABA;
    color: #171254;
    border: 2px solid #D5AABA !important;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#sm-gating-modal .btn-gating-primary:hover,
#sm-gating-modal #sm-signup-button:hover {
    background: #D5AABA;
    color: #171254;
    border: 2px solid #D5AABA !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#sm-gating-modal .btn-gating-secondary,
#sm-gating-modal #sm-verify-button {
    background: #171254;
    color: #ffffff;
    border: 2px solid #171254 !important;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#sm-gating-modal .btn-gating-secondary:hover,
#sm-gating-modal #sm-verify-button:hover {
    background: #171254;
    color: #ffffff;
    border: 2px solid #171254 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#sm-gating-modal .btn i {
    font-size: 1.2rem;
}

#sm-gating-modal .btn svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

#sm-gating-modal .sm-form-container h6 {
    color: #171254;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 15px;
}

#sm-gating-modal .sm-form-container p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

#sm-gating-modal .form-label {
    display: block;
    color: #212529;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#sm-gating-modal .form-label .text-danger {
    color: #dc3545;
    font-weight: 700;
}

#sm-gating-modal .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#sm-gating-modal .form-control-lg {
    min-height: calc(1.5em + 1rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1rem !important;
    border-radius: 0.5rem;
    border: 1px solid #ced4da !important;
}

#sm-gating-modal .form-control:hover {
    border-color: #6c757d !important;
    background-color: #fff;
}

#sm-gating-modal .form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #495057 !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

#sm-gating-modal .form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

#sm-gating-modal .w-100 {
    width: 100%;
}

#sm-gating-modal button[type="submit"] {
    margin-top: 10px;
}

#sm-gating-modal .sm-back-to-options {
    color: #171254;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

#sm-gating-modal .sm-back-to-options:hover {
    color: #171254;
    text-decoration: none;
    transform: translateX(-5px);
}

#sm-gating-modal .sm-back-to-options i {
    margin-right: 5px;
}

#sm-gating-modal .sm-back-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

#sm-gating-modal .alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

#sm-gating-modal .alert-success {
    background-color: #d1f2eb;
    border: 1px solid #a8e6cf;
    color: #00695c;
}

#sm-gating-modal .alert-danger {
    background-color: #fde2e2;
    border: 1px solid #f5c2c7;
    color: #842029;
}

#sm-gating-modal .alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

#sm-gating-modal .alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}


.d-none {
    display: none !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

body.sm-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #sm-gating-modal .modal-dialog {
        max-width: 90%;
        width: 90%;
    }

    #sm-gating-modal .modal-header {
        padding: 30px 35px;
    }

    #sm-gating-modal .modal-title {
        font-size: 1.6rem;
    }

    #sm-gating-modal .sm-modal-close {
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
    }

    #sm-gating-modal .modal-body {
        padding: 30px 25px;
    }

    #sm-gating-modal .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #sm-gating-modal {
        padding: 15px;
    }

    #sm-gating-modal .modal-dialog {
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
    }

    #sm-gating-modal .modal-content {
        border-radius: 8px;
    }

    #sm-gating-modal .modal-header {
        padding: 25px 20px;
    }

    #sm-gating-modal .modal-title {
        font-size: 1.4rem;
        padding-right: 40px;
    }

    #sm-gating-modal .sm-modal-close {
        right: 12px;
        top: 12px;
        width: 36px;
        height: 36px;
    }

    #sm-gating-modal .sm-modal-close svg {
        width: 20px;
        height: 20px;
    }

    #sm-gating-modal .modal-body {
        padding: 25px 20px 20px;
    }

    #sm-gating-modal .modal-body > p,
    #sm-gating-modal .sm-options-container > p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    #sm-gating-modal .btn {
        padding: 13px 24px;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
    }

    #sm-gating-modal .d-grid {
        gap: 12px;
    }

    #sm-gating-modal .form-control {
        padding: 10px 14px;
        font-size: 16px;
    }

    #sm-gating-modal .form-control-lg {
        padding: 12px 16px;
        font-size: 16px !important;
        min-height: 48px;
    }

    #sm-gating-modal .sm-form-container h6 {
        font-size: 1.2rem;
    }

    #sm-gating-modal .alert {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    #sm-gating-modal .modal-title {
        font-size: 1.25rem;
    }

    #sm-gating-modal .modal-header {
        padding: 20px 15px;
    }

    #sm-gating-modal .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    #sm-gating-modal .modal-body > p {
        font-size: 0.95rem;
    }
}

#sm-gating-modal .btn:disabled,
#sm-gating-modal button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#sm-gating-modal .btn:disabled:hover,
#sm-gating-modal button[type="submit"]:disabled:hover {
    box-shadow: none;
}

#sm-gating-modal .btn:focus-visible,
#sm-gating-modal .form-control:focus-visible,
#sm-gating-modal .sm-modal-close:focus-visible {
    outline: 3px solid #D5AABA;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    #sm-gating-modal .modal-content {
        border: 2px solid #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sm-gating-modal,
    #sm-gating-modal .modal-dialog,
    #sm-gating-modal .alert,
    #sm-gating-modal .btn,
    #sm-gating-modal .sm-modal-close {
        animation: none;
        transition: none;
    }
}

@media print {
    #sm-gating-modal {
        display: none !important;
    }
}