/* New Licensing Center - styles scoped under .nlx so global site styles are untouched. */
.nlx {
    --nlx-primary: #5d124c;
    --nlx-primary-end: #5c154e;
    --nlx-orange: #ffa008;
    --nlx-pink: #f7507b;
    --nlx-ink: #212529;
    --nlx-muted: #6c757d;
    --nlx-border: #dee2e6;
    --nlx-bg: #f8f9fa;
    --nlx-success: #28a745;
    color: var(--nlx-ink);
}

.nlx a { color: var(--nlx-primary); }

.nlx-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.25rem;
}

.nlx-hero h1 {
    font-weight: 700;
    margin-bottom: .5rem;
}

.nlx-hero h1 span {
    background: linear-gradient(90deg, var(--nlx-orange), var(--nlx-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nlx-hero p { color: var(--nlx-muted); max-width: 675px; margin: 0 auto; }

/* Mode cards (New User / Existing User) */
.nlx-modes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1.75rem; }

.nlx-mode {
    background: #fff;
    border: 2px solid var(--nlx-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}

.nlx-mode:hover { border-color: var(--nlx-primary); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(93,18,76,.12); }
.nlx-mode.is-active { border-color: var(--nlx-primary); box-shadow: 0 12px 30px rgba(93,18,76,.18); }
.nlx-mode .nlx-mode-icon { font-size: 2.4rem; color: var(--nlx-primary); margin-bottom: .6rem; }
.nlx-mode h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .35rem; }
.nlx-mode p { color: var(--nlx-muted); font-size: .92rem; margin: 0; }

/* Stepper */
.nlx-steps { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.75rem; }
.nlx-step {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--nlx-bg); border: 1px solid var(--nlx-border);
    border-radius: 999px; padding: .4rem .95rem; font-size: .85rem; color: var(--nlx-muted);
}
.nlx-step.is-active { background: var(--nlx-primary); border-color: var(--nlx-primary); color: #fff; }
.nlx-step.is-done { background: #e7f5ec; border-color: #b7e4c7; color: #146c43; }
.nlx-step b { font-weight: 600; }

/* Cards & panels */
.nlx-card { background: #fff; border: 1px solid var(--nlx-border); border-radius: 16px; box-shadow: 0 6px 22px rgba(0,0,0,.05); }
.nlx-card .nlx-card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: .4rem; }
.nlx-sub { color: var(--nlx-muted); font-size: .93rem; }

.nlx-drop {
    border: 2px dashed var(--nlx-border); border-radius: 14px; padding: 2rem 1rem; text-align: center;
    background: var(--nlx-bg); transition: all .2s ease;
}
.nlx-drop.is-over { border-color: var(--nlx-primary); background: #f6eef4; }
.nlx-drop i { font-size: 2rem; color: var(--nlx-primary); }

/* Products */
.nlx-products { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.nlx-product { background: #fff; border: 1px solid var(--nlx-border); border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.nlx-product .nlx-badge { align-self: flex-start; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.nlx-product h4 { font-size: 1rem; font-weight: 600; margin: 0; }
.nlx-product p { font-size: .85rem; color: var(--nlx-muted); margin: 0; flex: 1; }

/* Cart */
.nlx-cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .9rem 0; border-bottom: 1px dashed var(--nlx-border); }
.nlx-cart-line:last-child { border-bottom: 0; }
.nlx-cart-line .nlx-line-main { flex: 1 1 220px; }
.nlx-cart-line .nlx-line-main b { display: block; font-weight: 600; }
.nlx-cart-line .nlx-line-total { font-weight: 700; color: var(--nlx-primary); min-width: 90px; text-align: right; }

.nlx-totals { background: var(--nlx-bg); border-radius: 14px; padding: 1rem 1.15rem; }
.nlx-totals .nlx-row { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .95rem; }
.nlx-totals .nlx-grand { font-size: 1.25rem; font-weight: 700; border-top: 1px solid var(--nlx-border); margin-top: .5rem; padding-top: .7rem; }

/* Payment */
.nlx-pay { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.nlx-upi-box { background: #f4f6ff; border: 1px solid var(--nlx-border); border-radius: 14px; padding: 1.15rem; }
.nlx-upi-box .nlx-upi-id { font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; word-break: break-all; }
.nlx-qr { display: flex; justify-content: center; align-items: center; min-height: 172px; }

/* Buttons */
.nlx-btn {
    background: linear-gradient(135deg, var(--nlx-primary), var(--nlx-primary-end));
    color: #fff; border: 0; border-radius: 10px; padding: .7rem 1.35rem; font-weight: 600;
}
.nlx-btn:hover, .nlx-btn:focus { color: #fff; filter: brightness(1.08); }
.nlx-btn[disabled] { opacity: .6; cursor: not-allowed; }
.nlx-btn-accent { background: linear-gradient(135deg, var(--nlx-orange), var(--nlx-pink)); }
.nlx-btn-outline { background: #fff; color: var(--nlx-primary); border: 1.5px solid var(--nlx-primary); border-radius: 10px; padding: .7rem 1.35rem; font-weight: 600; }
.nlx-btn-outline:hover { background: var(--nlx-primary); color: #fff; }
.nlx-btn-success { background: linear-gradient(135deg, #28a745, #20c997); }

/* Pricing Cards */
.nlx-pricing-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.5rem; }
@media (max-width: 1199px) { .nlx-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 576px) { .nlx-pricing-grid { grid-template-columns: 1fr; } }

.nlx-pricing-card {
    background: #fff;
    border: 2px solid var(--nlx-border);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    transition: all .2s ease;
    height: 100%;
}
.nlx-pricing-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(93,18,76,.1); border-color: rgba(93,18,76,.4); }
.nlx-pricing-card.is-selected { border-color: var(--nlx-primary); box-shadow: 0 14px 36px rgba(93,18,76,.16); }
.nlx-pricing-card.is-best { border-color: rgba(247,80,123,.8); }
.nlx-pricing-card.is-best::before {
    content: "Super Saver — Best Value";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--nlx-orange), var(--nlx-pink));
    color: #fff;
    font-weight: 700;
    font-size: .7rem;
    padding: .25rem .8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(247,80,123,.25);
    z-index: 2;
}
.nlx-pricing-card.is-best .nlx-pricing-header { padding-top: 1.8rem; }

.nlx-pricing-header { text-align: center; padding: 1.4rem 1.2rem .8rem; }
.nlx-pricing-duration { font-weight: 700; font-size: 1.25rem; margin-bottom: .3rem; }
.nlx-pricing-primary { font-size: 2.2rem; font-weight: 800; color: var(--nlx-primary); }
.nlx-pricing-primary small { font-size: .9rem; font-weight: 600; }
.nlx-pricing-monthly { color: var(--nlx-muted); font-size: .85rem; }
.nlx-pricing-badge { display: inline-flex; align-items: center; gap: .35rem; background: rgba(40,167,69,.12); color: var(--nlx-success); border-radius: 999px; padding: .25rem .7rem; font-weight: 600; font-size: .8rem; margin-top: .6rem; }
.nlx-pricing-body { padding: 0 1.2rem .8rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.nlx-pricing-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.nlx-pricing-row-label { color: var(--nlx-muted); }
.nlx-pricing-row-value { font-weight: 600; }
.nlx-pricing-total { border-top: 1px solid var(--nlx-border); padding-top: .7rem; margin-top: .1rem; font-weight: 700; }
.nlx-pricing-message { text-align: center; color: var(--nlx-muted); font-size: .85rem; min-height: 40px; }
.nlx-pricing-footer { padding: 0 1.2rem 1.4rem; }

/* Platform Cards */
.nlx-platform-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .nlx-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 576px) { .nlx-platform-grid { grid-template-columns: 1fr; } }
.nlx-platform-card { background: #fff; border: 1px solid var(--nlx-border); border-radius: 16px; padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: 0 6px 22px rgba(0,0,0,.04); }
.nlx-platform-header { display: flex; align-items: center; gap: .8rem; }
.nlx-platform-logo { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--nlx-bg); border: 1px solid var(--nlx-border); overflow: hidden; }
.nlx-platform-logo img { max-width: 32px; max-height: 32px; }
.nlx-platform-name { font-weight: 700; font-size: 1.05rem; }
.nlx-platform-prices { display: grid; gap: .4rem; font-size: .9rem; color: var(--nlx-muted); }
.nlx-platform-prices strong { color: var(--nlx-ink); }
.nlx-qty-row { display: flex; align-items: center; justify-content: space-between; }
.nlx-qty-controls { display: flex; align-items: center; gap: .6rem; }
.nlx-qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--nlx-border); background: #fff; display: flex; align-items: center; justify-content: center; }
.nlx-qty-value { min-width: 32px; text-align: center; font-weight: 700; }
.nlx-platform-subtotal { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px dashed var(--nlx-border); padding-top: .8rem; }

/* Summary */
.nlx-summary { background: #fff; border: 1px solid var(--nlx-border); border-radius: 16px; box-shadow: 0 6px 22px rgba(0,0,0,.05); padding: 1.6rem; }
.nlx-summary-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.nlx-summary-item { background: var(--nlx-bg); border-radius: 12px; padding: .9rem 1rem; }
.nlx-summary-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--nlx-border); margin-top: 1rem; padding-top: 1rem; font-size: 1.2rem; font-weight: 800; flex-wrap: wrap; gap: 1rem; }
.nlx-summary-coupon { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.nlx-summary-coupon-input { border: 1px solid var(--nlx-border); border-radius: 10px; padding: .7rem 1rem; min-width: 220px; font-size: 1rem; }
.nlx-summary-coupon .nlx-btn,
.nlx-summary-coupon .nlx-btn-outline { padding: .7rem 1.35rem; font-size: 1rem; }
.nlx-summary-amounts { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: .2rem; }
.nlx-summary-original { text-decoration: line-through; color: var(--nlx-muted); font-size: 1rem; font-weight: 600; }
.nlx-summary-payable { font-size: 1.6rem; font-weight: 800; }

/* UPI reuse */
.nlx-upi-section { background: linear-gradient(180deg, #ffffff 0%, #f9f7fb 100%); border: 1px solid rgba(93,18,76,.18); border-radius: 16px; box-shadow: 0 10px 30px rgba(93,18,76,.08); padding: 1rem 1.4rem; }
.nlx-upi-grid { display: grid; gap: 0.8rem; grid-template-columns: 3.2fr 1fr; align-items: stretch; }
.nlx-upi-section { align-items: stretch; }
@media (max-width: 991px) { .nlx-upi-grid { grid-template-columns: 1fr; } }
.nlx-upi-amount { font-size: 2rem; font-weight: 800; color: var(--nlx-primary); }
.nlx-upi-meta { display: flex; flex-direction: column; gap: .4rem; }
.nlx-upi-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .95rem; }
.nlx-upi-label { color: var(--nlx-muted); }
.nlx-upi-value { font-weight: 700; }
.nlx-copy-btn { border: 1px solid var(--nlx-border); background: #fff; border-radius: 999px; padding: .35rem .8rem; font-weight: 600; font-size: .9rem; }
.nlx-qr-wrap { display: flex; justify-content: center; align-items: center; padding: 0; height: 100%; align-self: stretch; overflow: hidden; }
.nlx-qr-wrap canvas,
.nlx-qr-wrap img { height: 100% !important; width: auto !important; max-height: 100% !important; max-width: none !important; object-fit: contain; display: block; margin: 0 auto; }
.nlx-mobile-only { display: none; }
@media (max-width: 768px) { .nlx-mobile-only { display: inline-flex; } .nlx-desktop-only { display: none; } }
@media (min-width: 769px) { .nlx-mobile-only { display: none; } .nlx-desktop-only { display: flex; } }

/* Notices */
.nlx-notice { border-radius: 12px; padding: .9rem 1.05rem; font-size: .93rem; display: flex; gap: .6rem; align-items: flex-start; }
.nlx-notice-info { background: #eef4ff; border: 1px solid #cfe0ff; color: #0b3a8f; }
.nlx-notice-ok { background: #e7f5ec; border: 1px solid #b7e4c7; color: #146c43; }
.nlx-notice-warn { background: #fff7e6; border: 1px solid #ffe1a6; color: #7a5b00; }
.nlx-notice-err { background: #fdecec; border: 1px solid #f5c2c2; color: #842029; }

/* Licenses table */
.nlx-table { margin-bottom: 0; }
.nlx-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--nlx-muted); }
.nlx-badge-active { background: #198754; color: #fff; }
.nlx-badge-expired { background: #dc3545; color: #fff; }
.nlx-badge-pending { background: #ffc107; color: #212529; }
.nlx-badge-other { background: #6c757d; color: #fff; }

.nlx-hidden { display: none !important; }
.nlx-muted { color: var(--nlx-muted); }
.nlx-loading { text-align: center; padding: 1.5rem; }

@media (max-width: 576px) {
    .nlx-hero { padding-top: 1.75rem; }
    .nlx-cart-line .nlx-line-total { text-align: left; }
}
