.mc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 133, 244, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
}

.mc-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mc-popup-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 20px;
    position: relative;
    z-index: 1000000;
}

.mc-popup-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mc-popup-overlay.active .mc-popup-content {
    transform: scale(1);
}

.mc-popup-content.animation-fade {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mc-popup-overlay.active .mc-popup-content.animation-fade {
    opacity: 1;
}

.mc-popup-content.animation-slide-up {
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.mc-popup-overlay.active .mc-popup-content.animation-slide-up {
    transform: translateY(0);
}

.mc-popup-content.animation-slide-down {
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.mc-popup-overlay.active .mc-popup-content.animation-slide-down {
    transform: translateY(0);
}

.mc-popup-content.animation-zoom {
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.mc-popup-overlay.active .mc-popup-content.animation-zoom {
    transform: scale(1);
}

.mc-popup-content.animation-rotate {
    transform: rotate(-180deg) scale(0.5);
    transition: transform 0.4s ease;
}

.mc-popup-overlay.active .mc-popup-content.animation-rotate {
    transform: rotate(0) scale(1);
}

.mc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333333;
    padding: 5px 10px;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
}

.mc-popup-close:focus {
    outline: none;
}

.mc-popup-close-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: scale(1);
}

.mc-popup-close:hover .mc-popup-close-icon {
    transform: scale(1.2);
}

.mc-popup-body {
    color: #333333;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
}

.mc-popup-body > *:first-child {
    margin-top: 0 !important;
}

.mc-popup-body > *:last-child {
    margin-bottom: 0 !important;
}

.mc-popup-body h1 {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    color: inherit;
}

.mc-popup-body h2 {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    color: inherit;
}

.mc-popup-body h3 {
    font-size: 1.75em;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    color: inherit;
}

.mc-popup-body h4 {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1em;
    margin-bottom: 1em;
    color: inherit;
}

.mc-popup-body h5 {
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.33em;
    margin-bottom: 1.33em;
    color: inherit;
}

.mc-popup-body h6 {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.67em;
    margin-bottom: 1.67em;
    color: inherit;
}

.mc-popup-body p {
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.6;
}

.mc-popup-body strong,
.mc-popup-body b {
    font-weight: 700;
}

.mc-popup-body em,
.mc-popup-body i {
    font-style: italic;
}

.mc-popup-body u {
    text-decoration: underline;
}

.mc-popup-body s,
.mc-popup-body strike,
.mc-popup-body del {
    text-decoration: line-through;
}

.mc-popup-body mark {
    background-color: #ffff00;
    color: #000000;
    padding: 2px 4px;
}

.mc-popup-body small {
    font-size: 0.875em;
}

.mc-popup-body sub {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    bottom: -0.25em;
}

.mc-popup-body sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
}

.mc-popup-body a {
    color: #4B6BED;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mc-popup-body a:hover {
    color: #111E61;
    text-decoration: underline;
}

.mc-popup-body ul {
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 2em;
}

.mc-popup-body ol {
    list-style-type: decimal;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 2em;
}

.mc-popup-body li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.mc-popup-body ul ul,
.mc-popup-body ul ol,
.mc-popup-body ol ul,
.mc-popup-body ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.mc-popup-body ul ul {
    list-style-type: circle;
}

.mc-popup-body ul ul ul {
    list-style-type: square;
}

.mc-popup-body blockquote {
    border-left: 4px solid #4B6BED;
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background-color: #f5f5f5;
    font-style: italic;
    color: #555;
}

.mc-popup-body blockquote p {
    margin: 0;
}

.mc-popup-body code {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    color: #c7254e;
}

.mc-popup-body pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 1.5em 0;
    overflow-x: auto;
    padding: 1em;
}

.mc-popup-body pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

.mc-popup-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 1.5em 0;
}

.mc-popup-body figure {
    margin: 1.5em 0;
}

.mc-popup-body figcaption {
    font-size: 0.875em;
    color: #777;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}

.mc-popup-body hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0;
}

.mc-popup-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.mc-popup-body table th,
.mc-popup-body table td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}

.mc-popup-body table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.mc-popup-body table tr:nth-child(even) {
    background-color: #fafafa;
}

.mc-popup-body dl {
    margin: 1em 0;
}

.mc-popup-body dt {
    font-weight: 600;
    margin-bottom: 0.25em;
}

.mc-popup-body dd {
    margin-left: 2em;
    margin-bottom: 1em;
}

.mc-popup-body abbr {
    text-decoration: underline dotted;
    cursor: help;
}

.mc-popup-body kbd {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    padding: 2px 6px;
}

.mc-popup-body address {
    font-style: italic;
    margin: 1em 0;
}

.mc-popup-body cite {
    font-style: italic;
}

.mc-popup-body q {
    quotes: """ """ "'" "'";
}

.mc-popup-body q:before {
    content: open-quote;
}

.mc-popup-body q:after {
    content: close-quote;
}

.mc-popup-body iframe,
.mc-popup-body video {
    max-width: 100%;
    display: block;
    margin: 1.5em 0;
}

@media (max-width: 768px) {
    .mc-popup-wrapper {
        margin: 10px;
    }
    
    .mc-popup-content {
        padding: 25px;
        max-height: 90vh;
    }
    
    .mc-popup-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }

    .mc-popup-body h1 {
        font-size: 2em;
    }

    .mc-popup-body h2 {
        font-size: 1.75em;
    }

    .mc-popup-body h3 {
        font-size: 1.5em;
    }

    .mc-popup-body h4 {
        font-size: 1.25em;
    }

    .mc-popup-body h5 {
        font-size: 1.1em;
    }

    .mc-popup-body h6 {
        font-size: 1em;
    }
}

body.mc-popup-open {
    overflow: hidden !important;
}
