.resource-heading,.tool-header {
    border-bottom: 2px solid #eee
}

.resource-heading:after,.resource-icon:after,.resource-icon:before,.view-icon:after {
    position: absolute;
    content: ''
}

html.dark-mode .resource-button:hover,html.dark-mode .share-button:hover {
    background: var(--hover-bg);
    box-shadow: var(--hover-shadow)
}
/* Add these styles for the popup */
.subscription-details-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

.subscription-details-content {
    margin-top: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: #333;
}

.detail-value {
    color: #666;
}

body,html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0
}
        .subscription-info.expired {
            background: #ffebee;
            color: #c62828;
        }

        .level-basic { color: #666; }
        .level-premium { color: #0066cc; }
        .level-gold { color: #cc9900; }
        .level-platinum { color: #666666; }
        .level-vip { color: #990000; }
.resource-button.login-required {
    background-color: #f0f0f0;
    cursor: pointer;
}
/* Main pricing container */
.mts-pricing-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px auto;
}

/* Individual pricing card */
.pricing-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* Package header */
.package-header {
    padding: 25px 20px;
    text-align: center;
    color: #fff;
}

.package-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.pricing-controls {
    text-align: center;
}
.tool-image-gallery img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tool-image-gallery img[src^="http"] {
    opacity: 1;
}

.viewport-load {
    background: #f0f0f0;
}
.pricing-controls select {
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    min-width: 200px;
}


.package-features li span {
    margin-right: 5px;
}
.price {
    font-size: 36px;
    font-weight: 700;
    margin: 15px 0;
}

.period {
    font-size: 14px;
    opacity: 0.8;
}

/* Features section */
.package-features {
    padding: 20px;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.package-features li:last-child {
    border-bottom: none;
}

.dashicons-yes {
    color: #4CAF50;
    margin-right: 10px;
}

/* Package footer */
.package-footer {
    padding: 20px;
    text-align: center;
}

.subscribe-button {
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.pricing-controls label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}
.pricing-controls label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.subscribe-button:hover {
    background: #2B642C;
    color: #e2e2e2;
}

/* Responsive design */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin panel styles */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.package-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.package-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.package-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.package-fields input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.subscription-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.5s ease-out;
    transition: transform 0.3s ease;
}

.subscription-alert:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .subscription-alert {
        background: linear-gradient(135deg, #9f000e, #6e0000);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .subscription-alert {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}
.login-notice {
    font-size: 0.8em;
    color: #FFF700;
    margin-left: 5px;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
}

.popup button {
    margin-top: 15px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.resource-protection {
    margin: 5px 0;
}


.progress-bar {
    width: 100%;
    height: 15px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, hsla(22, 100%, 78%, 1) 0%, hsla(2, 78%, 62%, 1) 100%);
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 14px;
}

.expiry-info {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #ddd;
}

.expiry-info.expired {
    color: #f44336;
}

[data-membership="premium"] .membership-status::before {
    background: linear-gradient(90deg, #FF416C 0%, #FF4B2B 100%);
}

[data-membership="gold"] .membership-status::before {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
}

[data-membership="platinum"] .membership-status::before {
    background: linear-gradient(90deg, #8E2DE2 0%, #4A00E0 100%);
}

[data-membership="vip"] .membership-status::before {
    background: linear-gradient(90deg, #000428 0%, #004e92 100%);
}

/* Hover Effects */
.membership-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .membership-status {
        padding: 20px;
        margin: 15px 0;
    }
    
    .membership-status p {
        font-size: 14px;
    }
    
    .membership-status strong {
        font-size: 15px;
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px
}
.login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.close-popup {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.login-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}
.package-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.package-popup .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.upgrade-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

.upgrade-button:hover {
    background-color: #45a049;
}
.tool-header h1 {
    font-size: 2.4em;
    color: #111;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px
}

.tool-content-wrapper {
    display: grid;
    grid-template-columns: repeat(2,minmax(400px,600px));
    gap: 25px;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto
}

.left-content,.right-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto
}

.main-gallery-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px
}

.main-gallery-image img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1)
}

.secondary-images-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px
}

.secondary-gallery-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform .3s
}

.secondary-gallery-image img:hover {
    transform: scale(1.05)
}

.resource-heading {
    font-size: 1.8em;
    color: #111;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative
}

.resource-button,.resource-grid {
    max-width: 420px;
    margin: 0 auto;
    display: flex
}

.resource-heading:after {
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #005294
}

.resource-grid {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px
}

.resource-button {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #005294;
    color: #fff;
    padding: 8px 15px;
    transition: .3s;
    border-radius: 6px;
    font-size: 14px;
    min-height: 40px
}

.gallery-close,.gallery-nav {
    font-size: 30px;
    cursor: pointer;
    color: #fff
}

.button-left,.button-right {
    display: flex;
    align-items: center;
    gap: 8px
}

.resource-icon,.view-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    position: relative
}

.resource-button:hover {
    background: #005ba1;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,103,184,.2)
}

.resource-icon {
    justify-content: center;
    flex-shrink: 0
}

.resource-icon:before {
    width: 10px;
    height: 6px;
    border: 2px solid currentColor;
    border-top: 0;
    left: 50%;
    top: 55%;
    transform: translate(-50%,-50%)
}

.resource-icon:after {
    width: 2px;
    height: 8px;
    background: currentColor;
    left: 50%;
    top: 20%;
    transform: translateX(-50%)
}

.gallery-modal img,.view-icon:after {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%)
}

.view-icon {
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    flex-shrink: 0
}

.view-icon:after {
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 50%
}

.tool-content {
    margin-top: 10px
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
    z-index: 1000
}

.gallery-modal img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px
}

.gallery-prev {
    left: 20px
}

.gallery-next {
    right: 20px
}

.tool-showcase-container.style-modern {
    background: linear-gradient(135deg,#fff 0,#f0f7ff 100%);
    border-radius: 16px;
    padding: 40px 10px 20px
}

.style-modern .tool-header {
    background: linear-gradient(135deg,#005294 0,#004c8c 100%);
    margin: -40px -30px 40px;
    padding: 10px;
    border-radius: 16px 16px 0 0
}

.style-modern .resource-button {
    background: #015c54;
    transform: translateY(0);
    transition: .3s
}

.style-modern .resource-button:hover {
    transform: translateY(-2px);
    background: #005ba1;
    box-shadow: 0 8px 20px rgba(0,103,184,.2)
}

.style-modern .tool-header h1 {
    color: #fff;
    font-size: 2.8em;
    text-transform: none;
    text-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 15px
}

.style-modern .seo-description {
    color: #fff;
    font-size: 1.2em;
}

.tool-content h2 {
    background: #f0f7ff;
    color: #005294;
    border-radius: 6px;
    margin: 20px 0 10px;
    font-size: 1.8em
}

.tool-content h3 {
    background: #f5f9ff;
    color: #0075d1;
    border-radius: 5px;
    margin: 5px 0 2px;
    font-size: 1.6em
}

.tool-content h4 {
    background: #f8fbff;
    color: #0084eb;
    border-radius: 4px;
    margin: 20px 0 10px;
    font-size: 1.4em
}

.tool-content h5 {
    background: #fafcff;
    color: #0093ff;
    border-radius: 4px;
    margin: 15px 0 10px;
    font-size: 1.2em
}

.tool-content h6 {
    background: #fcfdff;
    color: #00a2ff;
    border-radius: 3px;
    margin: 15px 0 10px;
    font-size: 1.1em
}

.tool-content ol,.tool-content ul {
    padding-left: 20px;
    margin: 15px 0;
    list-style: none
}

.tool-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6
}

.tool-content ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #005294;
    border-radius: 50%
}

.tool-content ol {
    counter-reset: item
}

.tool-content ol li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
    line-height: 1.6;
    counter-increment: item;
    display: block
}

.tool-content ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: #005294;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center
}

.share-button {
    padding: 5px 15px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: .3s;
    text-decoration: none
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15)
}

.share-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat
}

.facebook,.telegram {
    background: #0b53b2
}

.twitter {
    background: #0a5c8f
}

.pinterest {
    background: #8f0012
}

.whatsapp {
    background: #0a572a
}

.share-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px
}

.share-label,.share-name {
    font-weight: 700;
    font-size: 24px
}

.share-label {
    color: #06c
}
.post-meta .update-date,
.post-meta .author,
.post-meta .publish-date,
.post-meta {
   font-weight: 500;
    margin-top: 15px;
    color: #ffffff;
    font-size: 0.9em;
    display: flex;
    gap: 20px;
    justify-content: center;
}


.resource-size-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}

.resource-size-wrapper input[type="number"] {
    width: 80px;
}
.resource-format {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.resource-button:hover .resource-format {
    background: rgba(255, 255, 255, 0.25);
}

.button-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.resource-size {
    margin-left: auto;
    opacity: 0.9;
}
html.dark-mode .post-meta .publish-date,
html.dark-mode .post-meta .author,
html.dark-mode .post-meta .update-date,
html.dark-mode .post-meta,
html.dark-mode .seo-description {
    color: var(--text-muted)
}
html.dark-mode .share-label {
    color: #e5e5e5
}

html.dark-mode .share-name {
    color: #3b82f6
}

html.dark-mode .share-button {
    background: #15374f;
    color: var(--text-bright)
}

html.dark-mode .share-button:hover {
    color: var(--button-color)
}

html.dark-mode .share-button.facebook:hover {
    background: #1559b3
}

html.dark-mode .share-button.twitter:hover {
    background: #1681c1
}

html.dark-mode .share-button.pinterest:hover {
    background: #b3001b
}

html.dark-mode .share-button.telegram:hover {
    background: #069
}

html.dark-mode .share-button.whatsapp:hover {
    background: #1da851
}

html.dark-mode .tool-content h2,html.dark-mode .tool-content h3,html.dark-mode .tool-content h4,html.dark-mode .tool-content h5,html.dark-mode .tool-content h6 {
    background: #15374f;
    color: #fff
}

html.dark-mode .tool-content ol li:before,html.dark-mode .tool-content ul li:before {
    background: #0093ff
}

html.dark-mode .tool-header {
    background: linear-gradient(135deg,#000a10 0,#002442 100%);
    border-bottom-color: var(--border-color)
}

html.dark-mode .tool-header h1 {
    color: var(--text-bright)
}

html.dark-mode .tool-content {
    color: var(--text-color)
}

html.dark-mode .resource-heading {
    color: var(--text-bright);
    border-bottom-color: var(--border-color)
}

html.dark-mode .resource-button {
    background: #15374f;
    color: var(--button-color)
}

html.dark-mode .tool-showcase-container.style-modern {
    background: linear-gradient(135deg,var(--bg-color) 0,var(--header-bg) 100%);
    box-shadow: var(--box-shadow)
}

html.dark-mode .style-modern .tool-content-wrapper {
    background: var(--header-bg);
    box-shadow: var(--box-shadow)
}

html.dark-mode .gallery-modal {
    background: rgba(0,0,0,.95)
}

html.dark-mode .main-gallery-image img,html.dark-mode .secondary-gallery-image img {
    box-shadow: var(--box-shadow)
}

@media (max-width: 992px) {
    .style-modern .tool-content-wrapper,.tool-content-wrapper {
        grid-template-columns:1fr
    }

    .tool-content-wrapper {
        gap: 30px
    }

    .main-gallery-image img {
        height: 200px
    }

    .style-modern .tool-header {
        padding: 30px
    }
}

@media (max-width: 768px) {
    .tool-showcase-container {
        padding:15px
    }

    .tool-header h1,.tool-header h2 {
        font-size: 1.8em
    }

    .secondary-images-grid {
        gap: 10px
    }

    .secondary-gallery-image img {
        height: 100px
    }

    .resource-heading {
        font-size: 1.5em
    }

    .tool-showcase-container.style-modern {
        padding: 20px
    }

    .style-modern .tool-header {
        margin: -20px -20px 20px;
        padding: 20px
    }

    .style-modern .tool-header h1 {
        font-size: 2.2em
    }
}

@media (max-width: 480px) {
    .tool-showcase-container {
        padding:10px
    }

    .tool-header h1,.tool-header h2 {
        font-size: 1.4em
    }

    .seo-description {
        font-size: .9em
    }

    .secondary-images-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 8px
    }

    .secondary-gallery-image img {
        height: 80px
    }

    .resource-button {
        padding: 10px 15px;
        font-size: 14px
    }

    .resource-icon,.view-icon {
        width: 14px;
        height: 14px
    }

    .tool-content {
        padding: 15px 15px 15px 0;
        font-size: .9em
    }

    .style-modern .tool-header h1 {
        font-size: 1.8em
    }

    .social-share-buttons {
        flex-direction: column;
        align-items: stretch
    }

    .share-button {
        justify-content: center
    }
}

.style-right-image .tool-content-wrapper {
    flex-direction: row-reverse
}

.style-top-image .tool-content-wrapper {
    grid-template-columns: 1fr;
    max-width: 800px
}

.style-top-image .full-width-content {
    width: 100%
}

.style-top-image .resource-grid {
    margin-top: 30px
}
