@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Admin styles for NOWPayments free plugin */

.npwc-pro-badge {
    background: #6c5dd3;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    font-weight: bold;
    margin-left: 5px;
    text-transform: uppercase;
}

@property --npwc-border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.npwc-settings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    overflow: visible;
}

.npwc-settings-main {
    flex: 1 1 420px;
    min-width: 0;
}

.npwc-sidebar {
    flex: 0 0 auto;
    width: 340px;
    max-width: 100%;
    position: sticky;
    top: 115px;
    align-self: flex-start;
}

@media screen and (max-width: 1320px) {
    .npwc-settings-grid {
        flex-direction: column;
        gap: 24px;
    }

    .npwc-settings-main {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .npwc-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }
}

.npwc-sidebar .npwc-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
    border: 1px solid #e4e4e4;
    font-family: 'Poppins', sans-serif;
}

/* Improve preview screenshots in settings table */
.npwc-settings-main .forminp img[src*="product-page.gif"],
.npwc-settings-main .forminp img[src*="shop-page.gif"] {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.npwc-settings-main .forminp img[src*="product-page.gif"]:hover,
.npwc-settings-main .forminp img[src*="shop-page.gif"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.npwc-pro-trigger-row {
    cursor: pointer;
}

.npwc-pro-trigger-row td,
.npwc-pro-trigger-row th {
    position: relative;
}

.woocommerce table.form-table .npwc-pro-trigger-row label:has(input:disabled),
.woocommerce table.form-table .npwc-pro-trigger-row label:has(input:disabled) * {
    cursor: pointer !important;
}

.npwc-no-scroll {
    overflow: hidden;
}

.npwc-pro-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    padding: 20px;
}

.npwc-pro-popup-content {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 16px;
    width: 640px;
    max-width: 95vw;
    animation: npwc-popup-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.npwc-pro-popup-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    background: linear-gradient(270deg, #6c5dd3, #8f6ed5, #4f8cff, #6c5dd3);
    background-size: 400% 400%;
    animation: npwc-gradient-border 4s ease infinite;
    z-index: -1;
    opacity: 0.35;
}

.npwc-pro-popup-content::after {
    content: '';
    position: relative;
    inset: 0;
    background: #ffffff;
    border-radius: 14px;
    z-index: -1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: solid #6c5dd3 3px;
    position: absolute;
}

.npwc-pro-popup-inner {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    padding: 28px 24px 22px;
    text-align: center;
}

.npwc-pro-popup-close {
    position: absolute;
    right: 16px;
    top: 14px;
    border: 1px solid rgba(108, 93, 211, 0.15);
    border-radius: 20%;
    background: rgba(255, 255, 255, 0.9);
    color: #ef476f;
    cursor: pointer;
    width: 30px;
    height: 30px;
    font-size: 10px;
    line-height: 1;
    z-index: 5;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer !important;
}

.npwc-pro-popup-close:hover {
    background: #ffffff;
    border-color: rgba(108, 93, 211, 0.25);
}

.npwc-pro-popup-rocket {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 14px;
}

.npwc-pro-popup-inner h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.npwc-pro-popup-inner p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.npwc-pro-popup-offer {
    color: #ff5b3a;
    font-size: 16px;
    margin-bottom: 16px;
}

.npwc-pro-popup-features {
    list-style: none;
    margin: 0 auto 16px;
    padding: 0;
    max-width: 520px;
    text-align: left;
}

.npwc-pro-popup-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.npwc-pro-popup-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #6c5dd3;
    font-weight: 700;
}

.npwc-pro-popup-upgrade {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #6c5dd3 0%, #4f8cff 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(108, 93, 211, 0.3);
}

.npwc-pro-popup-upgrade:hover {
    color: #fff;
    box-shadow: 0 14px 30px rgba(108, 93, 211, 0.36);
}

.npwc-pro-popup-dismiss {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.npwc-pro-popup-dismiss:hover {
    color: #4b5563;
}

.npwc-divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin: 16px 0;
}

.npwc-trust-badges {
    display: flex;
    gap: 10px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0 0 12px;
}

.npwc-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.npwc-trust-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 20%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.npwc-trust-icon {
    color: #6c5dd3;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.npwc-trust-text-primary {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.npwc-trust-text-secondary {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.npwc-footer-text {
    font-size: 12px;
    color: #000;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Dashboard React Pro modal only */
.npwc-pro-popup-overlay.npwc-pro-popup--dashboard-dark {
    background: rgba(2, 6, 18, 0.82);
    backdrop-filter: blur(6px);
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-content::before {
    opacity: 0.55;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-content::after {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-close {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.3);
    color: #fb7185;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-close:hover,
.npwc-pro-popup--dashboard-dark .npwc-pro-popup-close:focus {
    background: rgba(51, 65, 85, 0.98);
    border-color: rgba(148, 163, 184, 0.45);
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-inner h2 {
    color: #f1f5f9;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-inner p {
    color: #94a3b8;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-features li {
    color: #cbd5e1;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-features li::before {
    color: #a78bfa;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-offer {
    color: #fb923c;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-dismiss {
    color: #94a3b8;
}

.npwc-pro-popup--dashboard-dark .npwc-pro-popup-dismiss:hover,
.npwc-pro-popup--dashboard-dark .npwc-pro-popup-dismiss:focus {
    color: #e2e8f0;
}

.npwc-pro-popup--dashboard-dark .npwc-divider {
    background: rgba(148, 163, 184, 0.22);
}

.npwc-pro-popup--dashboard-dark .npwc-trust-badges {
    background: rgba(15, 23, 42, 0.75);
}

.npwc-pro-popup--dashboard-dark .npwc-trust-icon-wrapper {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: none;
}

.npwc-pro-popup--dashboard-dark .npwc-trust-icon {
    color: #c4b5fd;
}

.npwc-pro-popup--dashboard-dark .npwc-trust-text-primary {
    color: #e2e8f0;
}

.npwc-pro-popup--dashboard-dark .npwc-trust-text-secondary {
    color: #94a3b8;
}

.npwc-pro-popup--dashboard-dark .npwc-footer-text {
    color: #94a3b8;
}

@keyframes npwc-gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes npwc-popup-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 782px) {
    .npwc-pro-popup-inner {
        padding: 22px 18px 20px;
    }

    .npwc-pro-popup-inner h2 {
        font-size: 34px;
    }

    .npwc-pro-popup-inner p {
        font-size: 15px;
    }

    .npwc-pro-popup-upgrade {
        font-size: 28px;
    }

    .npwc-trust-badges {
        flex-direction: column;
    }
}

.npwc-sidebar .npwc-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.npwc-sidebar .npwc-pro-header h3 {
    margin: 0;
}

.npwc-sidebar .npwc-pro-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.npwc-sidebar .npwc-pro-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #11142d;
}

.npwc-sidebar .npwc-pro-features li .dashicons {
    color: #7fba7a;
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.npwc-sidebar .npwc-btn-primary {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    background: #6c5dd3;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.npwc-sidebar .npwc-btn-secondary {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: 2px solid #e4e4e4;
    color: #808191;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.npwc-sidebar .npwc-btn-secondary:hover {
    border-color: #808191;
    color: #11142d;
}

.npwc-sidebar .npwc-card.npwc-pro-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
    border: none;
    --npwc-border-angle: 0deg;
}

.npwc-sidebar .npwc-card.npwc-pro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 3px solid transparent;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f7ff 100%) padding-box,
        conic-gradient(
            from var(--npwc-border-angle),
            #ffffff,
            #4f8cff,
            #9c6cff,
            #ffffff
        ) border-box;
    animation: npwc-pro-border-snake 6s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.npwc-sidebar .npwc-card.npwc-pro-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 8px 8px, rgba(118, 93, 211, 0.18) 1.2px, transparent 1.2px),
        radial-gradient(circle at 22px 22px, rgba(118, 93, 211, 0.12) 1.2px, transparent 1.2px),
        linear-gradient(180deg, #ffffff 0%, #f7f7ff 100%);
    background-position: 0 0, 16px 16px, 0 0;
    z-index: -1;
}

@keyframes npwc-pro-border-snake {
    to {
        --npwc-border-angle: 360deg;
    }
}

.shine-button {
    position: relative;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shine-button::before {
    content: '';
    position: absolute;
    height: 250%;
    width: 40px;
    top: 0;
    left: -60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg) translateY(-35%);
    animation: npwc-shine 3s ease infinite;
}

@keyframes npwc-shine {
    0% {
        left: -80px;
    }
    40% {
        left: calc(100% + 20px);
    }
    100% {
        left: calc(100% + 20px);
    }
}

#adminmenu .wp-submenu a[href*="page=npwc-get-pro"] {
    background-color: rgb(128, 118, 255);
    color: #fff !important;
    padding: 8px 22px 8px 12px !important;
    position: relative;
    font-family: 'Poppins', sans-serif;
}
