.fsm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    font-family: 'Nata Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fsm-backdrop.fsm-open {
    opacity: 1;
    visibility: visible;
}

.fsm-modal {
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 36rem;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(239, 214, 255, 0.8);
    z-index: 10;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.fsm-backdrop.fsm-open .fsm-modal {
    transform: scale(1);
    opacity: 1;
}
.fsm-glow-tr {
    position: absolute;
    top: 0;
    right: 0;
    width: 12rem;
    height: 12rem;
    background: rgba(171, 66, 171, 0.06);
    border-radius: 9999px;
    filter: blur(36px);
    transform: translate(50%, -50%);
    pointer-events: none;
}
.fsm-glow-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12rem;
    height: 12rem;
    background: rgba(171, 66, 171, 0.06);
    border-radius: 9999px;
    filter: blur(36px);
    transform: translate(-50%, 50%);
    pointer-events: none;
}
.fsm-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.fsm-close-btn:hover {
    background: #faf5ff;
    color: #592368;
}
@media (min-width: 640px) {
    .fsm-close-btn {
        top: 1.25rem;
        right: 1.25rem;
        width: 2rem;
        height: 2rem;
    }
}
.fsm-body {
    padding: 1.25rem 1.25rem;
    position: relative;
    z-index: 10;
    overflow-y: auto;
    flex: 1;
}
@media (min-width: 640px) {
    .fsm-body {
        padding: 1.5rem 2rem;
    }
}
.fsm-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-right: 1.75rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .fsm-header {
        gap: 1rem;
        padding-right: 2rem;
        margin-bottom: 1.5rem;
    }
}
.fsm-icon-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(171, 66, 171, 0.1);
    border: 1px solid rgba(234, 199, 245, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
@media (min-width: 640px) {
    .fsm-icon-badge {
        width: 3rem;
        height: 3rem;
    }
}
.fsm-tag {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    background: #faf5ff;
    color: #8d2567;
    font-size: 0.625rem;
    font-weight: 900;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #efd6ff;
    margin-bottom: 0.375rem;
}
.fsm-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.3;
    text-transform: uppercase;
}
@media (min-width: 640px) {
    .fsm-title {
        font-size: 1.25rem;
        line-height: 1.25;
    }
}
.fsm-text {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0.875rem;
}
@media (min-width: 640px) {
    .fsm-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
}
.fsm-note-card {
    background: linear-gradient(to right, #faf5ff, #ffffff);
    border: 1px solid rgba(239, 214, 255, 0.8);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.875rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
@media (min-width: 640px) {
    .fsm-note-card {
        padding: 1rem;
        gap: 0.875rem;
        margin-bottom: 1rem;
    }
}
.fsm-note-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(171, 66, 171, 0.1);
    border: 1px solid rgba(234, 199, 245, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.fsm-note-content {
    position: relative;
    z-index: 2;
    font-size: 0.8125rem;
    color: #374151;
    font-weight: 500;
}
.fsm-footer {
    padding: 1rem 1.25rem;
    background: rgba(249, 250, 251, 0.9);
    border-top: 1px solid rgba(243, 244, 246, 0.8);
    display: flex;
    flex-direction: column-reverse;
    gap: 0.625rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .fsm-footer {
        padding: 1.25rem 2rem;
        flex-direction: row;
        gap: 0.75rem;
    }
}
.fsm-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}
@media (min-width: 640px) {
    .fsm-btn {
        font-size: 0.8125rem;
        padding: 0.875rem 1.5rem;
    }
}
.fsm-btn-ghost {
    background: transparent;
    color: #592368;
    border: 1px solid transparent;
}

.fsm-btn-ghost:hover {
    background: rgba(250, 245, 255, 0.6);
    color: #592368;
}

.fsm-btn-primary {
    background: #ab42ab;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(89, 35, 104, 0.15);
}

.fsm-btn-primary:hover {
    background: #8d2567;
}

.fsm-btn:active {
    transform: scale(0.98);
}