.xto__mbtn-wrap {position: relative; margin: 0 auto; box-sizing: border-box;}
.xto__mbtn-row {margin: 0 auto; display: grid; position:relative; box-sizing: border-box;}
.tag-title {position: relative; align-items: center; display: flex; border: 0; z-index: 2;}
.tag-title h2, .tag-title .mb-btn-heading {line-height: 1.2 !important; margin: 0 !important;}
.tag-fn-title {position: relative; align-items: center; display: flex; border: 0; z-index: 2;}
.tag-fn-title .mb-btn-footernote {line-height: 1.2 !important; margin: 0 !important;}
.xto__mbtn-row .xto__btn-grid {padding: 0; word-wrap: break-word; display: flex; flex-direction: column;}
.xto__mbtn-row .xto__btn {position: relative; text-align: center;}
.xto__mbtn-row .xto__btn a {cursor: pointer; text-decoration: none;}
.xto__mbtn-row .xto__btn a,
.xto__mbtn-row .xto__btn .xto__btn-inner {
    position: relative;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    border: 0;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.xto__mbtn-row .xto__btn .xto__btn-icon {text-decoration: none !important; display: flex; justify-content: center; align-items: center; transition:all 0.3s; text-shadow: none; box-sizing: border-box;}
.xto__mbtn-row .xto__btn .xto__btn-img-wrap {text-decoration: none !important; display: flex; justify-content: center; align-items: center; transition: all 0.3s; box-sizing: border-box; line-height: 0;}
.xto__mbtn-row .xto__btn .xto__btn-img {display: block; object-fit: cover; transition: inherit; box-sizing: border-box;}
.xto__mbtn-row .xto__btn .xto__btn-text {display: inline-block; transition: inherit; font-weight: inherit; font-style: inherit;}
.xto__mbtn-row .xto__btn > span:not(.xto__btn-text) {text-decoration: none !important; transition:all 0.3s; text-shadow: none;}

/* Background Image Mode */
.xto__mbtn-row .xto__btn.xto__btn-has-bg-img a,
.xto__mbtn-row .xto__btn.xto__btn-has-bg-img .xto__btn-inner {
    position: relative;
    overflow: hidden;
}
.xto__btn-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.xto__mbtn-row .xto__btn.xto__btn-has-bg-img a:hover .xto__btn-bg-img,
.xto__mbtn-row .xto__btn.xto__btn-has-bg-img .xto__btn-inner:hover .xto__btn-bg-img {
    transform: scale(1.06);
}
.xto__btn-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    transition: inherit;
}
.xto__mbtn-row .xto__btn.xto__btn-has-bg-img .xto__btn-text,
.xto__mbtn-row .xto__btn.xto__btn-has-bg-img .xto__btn-icon {
    position: relative;
    z-index: 3;
}

/* Modal Popup */
.xto__modal-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.xto__modal-container.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.xto__modal-container .xto__modal-wrapper {
    width: 420px;
    max-width: 100%;
    min-height: 260px;
    border-radius: 12px;
    padding: 18px 20px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: scale(0.94);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.xto__modal-container.is-active .xto__modal-wrapper {
    transform: scale(1);
}
.xto__modal-container .xto__modal-header {
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}
.xto__modal-container .xto__modal-header span {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}
.xto__modal-container .xto__modal-header .modal-close {
    color: #6b7280;
    background: #f3f4f6;
    height: 32px;
    width: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.xto__modal-container .xto__modal-header .modal-close svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}
.xto__modal-container .xto__modal-header .modal-close:hover {
    background-color: #e5e7eb;
    color: #111827;
    transform: scale(1.08);
}
.xto__modal-container .xto__modal-content {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    min-height: 110px;
}
.xto__modal-container .xto__modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
}
.xto__modal-ad-placeholder {
    width: 280px;
    max-width: 100%;
    height: 160px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 4px auto;
    user-select: none;
}
.xto__modal-ad-placeholder .sb-ad-tag {
    font-size: 22px;
    font-weight: 700;
    color: #2b7cb7;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: uppercase;
}
.xto__modal-ad-placeholder .sb-ad-dim {
    font-size: 15px;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.xto__modal-container .xto__modal-footer {
    padding-top: 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}
.xto__modal-container .btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.xto__modal-container .modal-btn {
    display: inline-block;
    padding: 10px 48px;
    border-radius: 6px;
    cursor: pointer;
    color: #d02b20;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid #f5c0b8;
    background-color: #fcecea;
    transition: all 0.2s ease;
}
.xto__modal-container .modal-btn:hover {
    background-color: #f8d7da;
    box-shadow: 0 4px 12px rgba(208, 43, 32, 0.15);
    transform: translateY(-1px);
}
.xto__count {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

@media only screen and (max-width: 600px) {
    .xto__modal-container .xto__modal-wrapper {
        width: 100%;
        padding: 15px;
    }
    .xto__modal-container .modal-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 20px;
    }
}

