/* Netcup Coupons Beautifier - Modern SaaS & Coupon Portal Styles */

:root {
    --nc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    --nc-font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --nc-primary-color: #0f172a;
    --nc-success-color: #059669;
    --nc-success-rgb: 5, 150, 105;
    --nc-bg-card: #ffffff;
    --nc-bg-item: #f8fafc;
    --nc-bg-item-hover: #f1f5f9;
    --nc-border-color: #e2e8f0;
    --nc-border-hover: #cbd5e1;
    --nc-text-main: #0f172a;
    --nc-text-muted: #64748b;
    --nc-text-sub: #475569;
    --nc-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
    --nc-shadow-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 16px 24px -4px rgba(15, 23, 42, 0.08);
    --nc-radius: 12px;
}

/* Dark mode compatibility for Blocksy */
[data-theme="dark"] .nc-coupon-card {
    --nc-bg-card: #1e293b;
    --nc-bg-item: #0f172a;
    --nc-bg-item-hover: #1e293b;
    --nc-border-color: #334155;
    --nc-border-hover: #475569;
    --nc-text-main: #f8fafc;
    --nc-text-muted: #94a3b8;
    --nc-text-sub: #cbd5e1;
    --nc-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --nc-shadow-hover: 0 8px 25px -2px rgba(0, 0, 0, 0.6);
}

/* Coupon Card Wrapper */
.nc-coupon-card {
    background: var(--nc-bg-card);
    border: 1px solid var(--nc-border-color);
    border-radius: var(--nc-radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--nc-shadow);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    font-family: var(--nc-font-sans);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nc-coupon-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--nc-theme-color, #059669);
    border-top-left-radius: var(--nc-radius);
    border-top-right-radius: var(--nc-radius);
}

.nc-coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nc-shadow-hover);
    border-color: var(--nc-border-hover);
}

/* Header Area */
.nc-coupon-header {
    margin-bottom: 18px;
    position: relative;
}

.nc-coupon-badge {
    background: rgba(var(--nc-theme-rgb, 5, 150, 105), 0.1);
    color: var(--nc-theme-color, #059669);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(var(--nc-theme-rgb, 5, 150, 105), 0.2);
}

.nc-coupon-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--nc-text-main);
    margin: 0 0 6px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.nc-coupon-subtitle {
    font-size: 13.5px;
    color: var(--nc-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Body and Lists */
.nc-coupon-body {
    margin-bottom: 20px;
    flex: 1 1 auto;
}

.nc-coupon-list-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--nc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nc-coupon-list-title:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nc-success-color);
}

.nc-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Coupon Items */
.nc-coupon-item {
    background: var(--nc-bg-item);
    border: 1px dashed var(--nc-border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.nc-coupon-item:hover {
    border-color: var(--nc-theme-color, #059669);
    background: var(--nc-bg-item-hover);
    transform: translateX(2px);
}

.nc-coupon-code {
    font-family: var(--nc-font-mono);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--nc-text-main);
    letter-spacing: 0.6px;
    user-select: all;
}

.nc-coupon-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nc-coupon-status {
    font-size: 11px;
    color: var(--nc-success-color);
    background: rgba(var(--nc-success-rgb), 0.1);
    border: 1px solid rgba(var(--nc-success-rgb), 0.2);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nc-coupon-copy-button {
    background: #ffffff;
    border: 1px solid var(--nc-border-color);
    color: var(--nc-text-sub);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nc-coupon-copy-button:hover {
    border-color: var(--nc-theme-color, #059669);
    color: var(--nc-theme-color, #059669);
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.nc-copy-svg {
    transition: transform 0.2s ease;
}

.nc-coupon-copy-button:hover .nc-copy-svg {
    transform: scale(1.1);
}

/* Copied State Styling */
.nc-coupon-item.copied {
    border-style: solid;
    border-color: var(--nc-success-color);
    background: rgba(var(--nc-success-rgb), 0.06);
}

.nc-coupon-item.copied .nc-coupon-status {
    background: var(--nc-success-color);
    color: #ffffff;
    border-color: var(--nc-success-color);
}

.nc-coupon-item.copied .nc-coupon-copy-button {
    background: var(--nc-success-color);
    border-color: var(--nc-success-color);
    color: #ffffff;
}

/* Footer Section */
.nc-coupon-footer {
    border-top: 1px solid var(--nc-border-color);
    padding-top: 18px;
    margin-top: auto;
}

.nc-coupon-redeem-button {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    font-weight: 800;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.2px;
}

.nc-coupon-redeem-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
    filter: brightness(1.04);
}

.nc-coupon-redeem-button:active {
    transform: translateY(0);
}

.nc-arrow-svg {
    transition: transform 0.2s ease;
}

.nc-coupon-redeem-button:hover .nc-arrow-svg {
    transform: translateX(4px);
}

/* Copy Notification Toast */
.nc-copied-notification {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.35), 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nc-copied-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nc-copied-notification-icon {
    color: #10b981;
}

/* Layout Utilities: Grid System for Columns */
.nc-coupon-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 28px;
}

.nc-coupon-grid .nc-coupon-card {
    margin: 0;
    height: 100%;
}

@media (min-width: 640px) {
    .nc-coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .nc-coupon-grid,
    .nc-coupon-grid.cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .nc-coupon-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nc-coupon-grid.cols-1 {
        grid-template-columns: minmax(0, 480px);
    }
}

/* ==========================================================================
   Ticket Voucher Styles: Cutouts, Perforated Lines & Live Badges
   ========================================================================== */

.nc-card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.nc-card-top-bar .nc-coupon-badge {
    margin-bottom: 0;
}

.nc-card-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(var(--nc-success-rgb, 5, 150, 105), 0.08);
    color: var(--nc-theme-color, #059669);
    border: 1px solid rgba(var(--nc-success-rgb, 5, 150, 105), 0.22);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.nc-live-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    display: inline-block;
    animation: nc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes nc-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.nc-ticket-divider-wrap {
    position: relative;
    margin: 12px -24px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.nc-ticket-notch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--nc-border-color, #e2e8f0);
    position: relative;
    z-index: 2;
    flex: 0 0 16px;
}

[data-theme="dark"] .nc-ticket-notch {
    background: #0f172a;
}

.nc-ticket-notch-left {
    margin-left: -9px;
    border-left-color: transparent !important;
}

.nc-ticket-notch-right {
    margin-right: -9px;
    border-right-color: transparent !important;
}

.nc-ticket-cut-line {
    flex: 1 1 auto;
    height: 1px;
    border-top: 1.5px dashed var(--nc-border-color, #e2e8f0);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
}

.nc-cut-scissors {
    background: var(--nc-bg-card, #ffffff);
    padding: 0 5px;
    font-size: 11px;
    color: var(--nc-text-muted, #64748b);
    line-height: 1;
    display: inline-block;
}

.nc-cut-text {
    background: var(--nc-bg-card, #ffffff);
    padding: 0 6px;
    font-size: 10px;
    font-weight: 750;
    color: var(--nc-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.nc-ticket-stock-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 750;
    background: var(--nc-bg-item, #f8fafc);
    color: var(--nc-text-sub, #475569);
    border: 1px solid var(--nc-border-color, #e2e8f0);
    border-radius: 5px;
    padding: 2px 7px;
    text-transform: none;
    letter-spacing: 0;
}

.nc-ticket-fallback-tip {
    font-size: 11px;
    line-height: 1.45;
    color: var(--nc-text-muted, #64748b);
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.nc-ticket-fallback-tip .nc-tip-icon {
    font-size: 12px;
    flex: 0 0 auto;
}

.nc-affiliate-note {
    font-size: 10px;
    line-height: 1.4;
    color: var(--nc-text-muted, #64748b);
    opacity: 0.85;
    margin-top: 8px;
    border-top: 1px dashed var(--nc-border-color, #e2e8f0);
    padding-top: 6px;
}

/* ==========================================================================
   Category Filter Tabs Bar
   ========================================================================== */

.ncg-filter-tabs,
.ncg-coupon-filter-tabs {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--nc-bg-card, #ffffff);
    padding: 6px 8px;
    border: 1px solid var(--nc-border-color, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.ncg-filter-tab-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ncg-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--nc-text-sub, #475569) !important;
    font-family: var(--nc-font-sans);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none !important;
    box-sizing: border-box;
}

.ncg-filter-btn:hover {
    background: var(--nc-bg-item-hover, #f1f5f9);
    color: var(--nc-text-main, #0f172a) !important;
    text-decoration: none !important;
}

.ncg-filter-btn.active {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.ncg-filter-icon {
    font-size: 14px;
    line-height: 1;
}

.ncg-coupon-category-group {
    margin-bottom: 20px;
    transition: opacity 0.2s ease;
}

/* Hide redundant legacy quick nav when modern filter tabs are present */
.ncg-coupon-nav {
    display: none !important;
}

[data-theme="dark"] .ncg-coupon-filter-tabs,
[data-theme="dark"] .ncg-filter-tab-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .ncg-filter-btn {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .ncg-filter-btn:hover {
    background: #0f172a;
    color: #f8fafc !important;
}

[data-theme="dark"] .ncg-filter-btn.active {
    background: #059669;
    color: #ffffff !important;
    border-color: #059669;
}

/* ==========================================================================
   0% VAT Savings Calculator & Looking Glass (Enhanced & Protected)
   ========================================================================== */

.ncg-deep-dive-section {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#ncg-vat-calculator-section.ncg-deep-dive-section,
#ncg-looking-glass-section.ncg-deep-dive-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 24px auto;
    max-width: 1280px;
    width: 100%;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.ncg-calc-container,
.ncg-lg-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ncg-calc-header {
    margin-bottom: 20px;
}

.ncg-calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ncg-calc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #059669;
    display: inline-block;
}

.ncg-calc-title,
.ncg-lg-title {
    font-size: 22px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.ncg-calc-title:before,
.ncg-lg-title:before {
    display: none !important;
}

.ncg-calc-desc,
.ncg-lg-desc {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* Prevent rogue wpautop paragraphs from taking grid tracks */
.ncg-calc-grid > p,
.ncg-lg-grid > p,
.ncg-lg-network-stats > p,
.ncg-calc-pills-grid > p,
.ncg-calc-country-pills > p,
.ncg-lg-ping-chips > p,
.ncg-calc-container > p,
.ncg-lg-container > p,
.ncg-calc-results-card > p,
.ncg-lg-card > p,
.ncg-lg-speed-banner > p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.ncg-calc-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 22px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ncg-calc-inputs {
    grid-column: 1 / 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    box-sizing: border-box !important;
}

.ncg-calc-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ncg-calc-field-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ncg-calc-current-country {
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
}

.ncg-calc-pills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.ncg-calc-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    line-height: 1.2;
}

.ncg-calc-pill:hover {
    border-color: #059669;
    background: #f0fdf4;
}

.ncg-calc-pill.active {
    border-color: #059669;
    background: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.ncg-calc-pill .ncg-pill-name {
    font-size: 11px;
    font-weight: 750;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ncg-calc-pill.active .ncg-pill-name {
    color: #ffffff;
}

.ncg-calc-pill .ncg-pill-price {
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.ncg-calc-pill.active .ncg-pill-price {
    color: #d1fae5;
}

.ncg-calc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ncg-calc-curr {
    position: absolute;
    left: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #94a3b8;
    pointer-events: none;
}

.ncg-calc-input-wrap .ncg-calc-input {
    padding-left: 28px;
    font-size: 16px;
    font-weight: 800;
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
}

.ncg-calc-select,
.ncg-calc-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.ncg-calc-select:focus,
.ncg-calc-input:focus {
    border-color: #059669;
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.ncg-calc-country-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.ncg-country-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 11px;
    font-weight: 650;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ncg-country-pill:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
}

.ncg-country-pill.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-weight: 800;
}

.ncg-rate-tag {
    font-size: 10px;
    opacity: 0.8;
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
}

.ncg-calc-tip-card {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 11.5px;
    color: #334155;
    line-height: 1.45;
}

.ncg-calc-tip-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: #047857;
    margin-bottom: 4px;
    font-size: 12px;
}

.ncg-calc-tip-desc {
    margin: 0;
    color: #475569;
}

.ncg-calc-results-wrap {
    grid-column: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.ncg-calc-results-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
}

.ncg-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.ncg-calc-row-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 600;
}

.ncg-calc-sublabel {
    font-size: 11px;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.ncg-calc-row-val {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.ncg-calc-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 4px 0;
}

.ncg-calc-total-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #059669;
}

.ncg-calc-total-sub {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

.ncg-calc-total-amounts {
    text-align: right;
}

.ncg-calc-total-main {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.ncg-calc-total-annual {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 700;
}

.ncg-calc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: #047857;
    font-size: 12px;
    font-weight: 700;
}

.ncg-calc-banner-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ncg-calc-banner-save {
    font-weight: 900;
    font-size: 13px;
    color: #059669;
}

.ncg-calc-action {
    margin-top: 4px;
}

.ncg-calc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.25);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ncg-calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
    filter: brightness(1.05);
}

/* Looking Glass & Speedtest */
.ncg-lg-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ncg-lg-header-top {
    max-width: 720px;
}

.ncg-lg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ncg-lg-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ncg-lg-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    transition: all 0.2s ease;
}

.ncg-lg-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    filter: brightness(1.05);
}

.ncg-lg-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b !important;
    font-size: 12.5px;
    font-weight: 750;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ncg-lg-btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.ncg-lg-network-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.ncg-lg-stat-card {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.ncg-lg-stat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-emerald {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.icon-teal {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

.icon-cyan {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
}

.icon-purple {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
}

.ncg-lg-stat-text {
    min-width: 0;
}

.ncg-lg-stat-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ncg-lg-stat-val {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ncg-lg-speed-banner {
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(13, 148, 136, 0.04) 100%);
    border: 2px solid rgba(5, 150, 105, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.06);
    box-sizing: border-box;
}

.ncg-lg-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ncg-lg-banner-info {
    max-width: 580px;
}

.ncg-lg-banner-tag-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.ncg-lg-banner-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: #059669;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.ncg-lg-flag-chip {
    font-size: 16px;
    line-height: 1;
}

.ncg-lg-banner-title {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.ncg-lg-banner-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.ncg-lg-banner-ips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ncg-lg-ip-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ncg-lg-ip-meta {
    display: flex;
    flex-direction: column;
}

.ncg-lg-ip-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.ncg-lg-ip-val {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.ncg-copy-btn {
    padding: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #64748b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ncg-copy-btn:hover {
    background: #f1f5f9;
    color: #059669;
}

.ncg-lg-banner-downloads {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(5, 150, 105, 0.2);
}

.ncg-lg-dl-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
}

.ncg-lg-dl-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.ncg-dl-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.ncg-dl-pill:hover {
    border-color: #059669;
    color: #059669 !important;
    background: #f0fdf4;
    transform: translateY(-1px);
}

.ncg-dl-native-link {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 800;
    color: #059669 !important;
    text-decoration: none !important;
}

.ncg-dl-native-link:hover {
    text-decoration: underline !important;
}

.ncg-lg-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

.ncg-lg-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 16px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    box-sizing: border-box !important;
}

.ncg-lg-card.is-primary {
    border: 2px solid rgba(5, 150, 105, 0.4);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
}

.ncg-lg-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.ncg-lg-location {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ncg-lg-loc-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ncg-lg-flag {
    font-size: 22px;
    line-height: 1;
}

.ncg-lg-city {
    font-size: 14px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin: 0 0 2px !important;
    line-height: 1.3 !important;
}

.ncg-lg-campus {
    font-size: 10.5px;
    color: #64748b;
    display: block;
    line-height: 1.3;
}

.ncg-lg-tag-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.25);
    flex-shrink: 0;
}

.ncg-lg-tag-badge.badge-neutral {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.ncg-lg-card-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin: 4px 0 10px;
    min-height: 36px;
}

.ncg-lg-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ncg-lg-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ncg-lg-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ncg-copy-ip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: all;
    word-break: break-all;
}

.ncg-copy-ip:hover {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
    color: #0284c7;
}

.ncg-copy-icon {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
    flex: 0 0 auto;
}

.ncg-lg-ping-box {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ncg-lg-ping-title {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ncg-lg-ping-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 10px;
}

.ncg-ping-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px 2px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ncg-ping-chip span {
    color: #94a3b8;
    font-size: 9px;
}

.ncg-ping-chip strong {
    color: #1e293b;
    font-size: 10.5px;
}

.ncg-lg-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.ncg-lg-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 750;
    transition: all 0.15s ease;
    text-align: center;
}

.ncg-lg-link:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: #0284c7;
    color: #0284c7 !important;
}

.ncg-lg-btn-glow {
    background: rgba(5, 150, 105, 0.1) !important;
    color: #059669 !important;
    border-color: rgba(5, 150, 105, 0.3) !important;
}

.ncg-lg-btn-glow:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}

.ncg-speed-link:hover {
    background: rgba(5, 150, 105, 0.08);
    border-color: #059669;
    color: #059669 !important;
}

.ncg-lg-advice-panel {
    padding: 16px 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
}

.ncg-lg-advice-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 2px;
}

.ncg-lg-advice-panel p {
    margin: 0;
}

/* ==========================================================================
   Dark Mode Styles for Custom Modules
   ========================================================================== */

[data-theme="dark"] #ncg-vat-calculator-section.ncg-deep-dive-section,
[data-theme="dark"] #ncg-looking-glass-section.ncg-deep-dive-section {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .ncg-calc-container,
[data-theme="dark"] .ncg-lg-container {
    background: transparent !important;
    border-color: transparent !important;
}

[data-theme="dark"] .ncg-calc-inputs,
[data-theme="dark"] .ncg-calc-results-card,
[data-theme="dark"] .ncg-lg-card,
[data-theme="dark"] .ncg-lg-stat-card,
[data-theme="dark"] .ncg-lg-advice-panel {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .ncg-calc-pill,
[data-theme="dark"] .ncg-country-pill,
[data-theme="dark"] .ncg-dl-pill,
[data-theme="dark"] .ncg-lg-btn-secondary {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .ncg-calc-pill:hover,
[data-theme="dark"] .ncg-country-pill:hover {
    background: #334155;
    color: #ffffff !important;
}

[data-theme="dark"] .ncg-calc-pill.active {
    background: #059669;
    border-color: #059669;
    color: #ffffff !important;
}

[data-theme="dark"] .ncg-calc-pill.active .ncg-pill-name {
    color: #ffffff !important;
}

[data-theme="dark"] .ncg-calc-pill.active .ncg-pill-price {
    color: #d1fae5 !important;
}

[data-theme="dark"] .ncg-country-pill.active {
    background: rgba(5, 150, 105, 0.25);
    border-color: #10b981;
    color: #34d399 !important;
}

[data-theme="dark"] .ncg-calc-select,
[data-theme="dark"] .ncg-calc-input,
[data-theme="dark"] .ncg-copy-ip,
[data-theme="dark"] .ncg-lg-link {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .ncg-calc-title,
[data-theme="dark"] .ncg-lg-title,
[data-theme="dark"] .ncg-lg-city,
[data-theme="dark"] .ncg-lg-banner-title,
[data-theme="dark"] .ncg-lg-advice-title,
[data-theme="dark"] .ncg-calc-row-val {
    color: #f8fafc !important;
}

[data-theme="dark"] .ncg-calc-field label {
    color: #cbd5e1;
}

[data-theme="dark"] .ncg-lg-speed-banner {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.18) 0%, rgba(13, 148, 136, 0.1) 100%);
    border-color: rgba(5, 150, 105, 0.45);
}

[data-theme="dark"] .ncg-lg-ip-box,
[data-theme="dark"] .ncg-ping-chip,
[data-theme="dark"] .ncg-lg-ping-box {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .ncg-lg-ip-val,
[data-theme="dark"] .ncg-ping-chip strong,
[data-theme="dark"] .ncg-lg-stat-val {
    color: #f8fafc;
}

[data-theme="dark"] .ncg-lg-tag-badge.badge-neutral {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

[data-theme="dark"] .ncg-calc-row {
    border-color: #334155;
}

[data-theme="dark"] .ncg-calc-sublabel {
    background: #334155;
    color: #94a3b8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
    .ncg-calc-grid {
        grid-template-columns: 1fr !important;
    }
    .ncg-calc-inputs {
        grid-column: 1 / -1 !important;
    }
    .ncg-calc-results-wrap {
        grid-column: 1 / -1 !important;
    }
    .ncg-lg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .ncg-lg-network-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .ncg-calc-pills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ncg-lg-grid {
        grid-template-columns: 1fr !important;
    }
    .ncg-lg-network-stats {
        grid-template-columns: 1fr !important;
    }
    .ncg-lg-banner-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .ncg-lg-banner-ips {
        width: 100%;
    }
    .ncg-lg-ip-box {
        flex: 1;
    }
}

/* ==========================================================================
   Sticky Top Frosted-Glass Modern 1-Row Navbar & Vector Flag Switcher
   ========================================================================== */
.ncg-top-navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 16px rgba(15, 23, 42, 0.02);
    padding: 0 24px;
    margin: 0 0 20px;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ncg-navbar-container {
    width: 100% !important;
    max-width: 1280px;
    min-height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box !important;
}

.ncg-nav-top-row,
.ncg-nav-menu-row {
    display: contents;
}

.ncg-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: #0f172a !important;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    transition: opacity 0.15s ease;
}

.ncg-nav-brand:hover {
    opacity: 0.88;
}

.ncg-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.12);
}

.ncg-brand-text {
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.ncg-brand-accent {
    color: #059669;
}

.ncg-brand-year {
    display: inline-flex;
    align-items: center;
    padding: 1.5px 7px;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.ncg-nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex-shrink: 0;
}

/* Custom Flag Language Switcher */
.ncg-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.ncg-language-switcher br,
.ncg-lang-dropdown br,
.ncg-lang-trigger br {
    display: none !important;
}

.ncg-language-switcher p,
.ncg-lang-dropdown p,
.ncg-lang-trigger p {
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
}

.ncg-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 33px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
    box-sizing: border-box !important;
}

.ncg-lang-trigger:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.ncg-flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    margin: 0 !important;
}

.ncg-curr-lang {
    font-weight: 600;
    font-size: 13px;
    line-height: 1 !important;
    white-space: nowrap;
}

.ncg-chevron {
    color: #64748b;
    transition: transform 0.2s ease;
    margin-left: 2px;
    flex-shrink: 0;
}

.ncg-lang-trigger[aria-expanded="true"] .ncg-chevron {
    transform: rotate(180deg);
}

.ncg-lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 145px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
    z-index: 10000;
    padding: 4px !important;
    margin: 0 !important;
    display: none;
    box-sizing: border-box !important;
}

.ncg-lang-dropdown.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: ncg-fade-dropdown 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ncg-fade-dropdown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ncg-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 6px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1 !important;
    transition: all 0.12s ease;
    box-sizing: border-box !important;
    white-space: nowrap;
}

.ncg-lang-option:hover {
    background: #f1f5f9;
    color: #059669 !important;
}

.ncg-lang-option.active {
    background: rgba(5, 150, 105, 0.08);
    color: #059669 !important;
    font-weight: 700;
}

.ncg-check {
    margin-left: auto;
    color: #059669;
    font-weight: 800;
    font-size: 12px;
    line-height: 1 !important;
}

/* Navigation Menu & Items */
.ncg-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ncg-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.ncg-nav-pill:hover {
    background: #f1f5f9;
    color: #0f172a !important;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.ncg-nav-pill.ncg-pill-coupons,
.ncg-nav-pill.active {
    background: #ecfdf5;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-weight: 650;
}

.ncg-nav-pill.ncg-pill-coupons:hover,
.ncg-nav-pill.active:hover {
    background: #d1fae5;
    color: #065f46 !important;
    border-color: rgba(16, 185, 129, 0.35);
}

/* Responsive Navbar */
@media (max-width: 900px) {
    .ncg-top-navbar {
        padding: 8px 16px;
    }
    .ncg-navbar-container {
        min-height: auto;
        flex-wrap: wrap;
        gap: 8px;
    }
    .ncg-nav-brand {
        order: 1;
    }
    .ncg-nav-actions {
        order: 2;
        margin-left: auto !important;
    }
    .ncg-nav-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 0 3px;
        gap: 6px;
    }
    .ncg-nav-menu::-webkit-scrollbar {
        display: none;
    }
    .ncg-nav-pill {
        padding: 5px 10px;
        font-size: 12.5px;
    }
}

@media (max-width: 640px) {
    .ncg-top-navbar {
        padding: 8px 12px;
    }
}

/* Dark Mode Overrides */
[data-theme="dark"] .ncg-top-navbar {
    background: rgba(15, 23, 42, 0.9);
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .ncg-nav-brand {
    color: #f8fafc !important;
}

[data-theme="dark"] .ncg-brand-text {
    color: #f8fafc;
}

[data-theme="dark"] .ncg-brand-accent {
    color: #34d399;
}

[data-theme="dark"] .ncg-brand-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.3) 100%);
    color: #fbbf24;
    box-shadow: none;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .ncg-brand-year {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
    border-color: rgba(5, 150, 105, 0.4);
}

[data-theme="dark"] .ncg-lang-trigger {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .ncg-lang-trigger:hover {
    background: #273549;
    border-color: #475569;
}

[data-theme="dark"] .ncg-lang-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .ncg-lang-option {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .ncg-lang-option:hover {
    background: #334155;
    color: #38bdf8 !important;
}

[data-theme="dark"] .ncg-lang-option.active {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399 !important;
}

[data-theme="dark"] .ncg-nav-pill {
    background: transparent;
    border-color: transparent;
    color: #94a3b8 !important;
}

[data-theme="dark"] .ncg-nav-pill:hover {
    background: #1e293b;
    color: #f8fafc !important;
}

[data-theme="dark"] .ncg-nav-pill.ncg-pill-coupons,
[data-theme="dark"] .ncg-nav-pill.active {
    background: rgba(5, 150, 105, 0.18);
    color: #34d399 !important;
    border-color: rgba(5, 150, 105, 0.35);
}

[data-theme="dark"] .ncg-nav-pill.ncg-pill-coupons:hover,
[data-theme="dark"] .ncg-nav-pill.active:hover {
    background: rgba(5, 150, 105, 0.28);
    color: #6ee7b7 !important;
}

/* AI Quick Read Box */
#ai-summary-box, .ncg-quickread-collapsible {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #059669;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.ncg-quickread-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.ncg-quickread-toggle:hover {
    background: #f1f5f9;
}

.ncg-quickread-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ncg-quickread-icon {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.ncg-quickread-collapsible[aria-expanded="true"] .ncg-quickread-icon {
    transform: rotate(180deg);
}

.ncg-quickread-body {
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
    border-top: 1px solid #e2e8f0;
    display: none;
}

.ncg-quickread-collapsible[aria-expanded="true"] .ncg-quickread-body {
    display: block;
}

[data-theme="dark"] #ai-summary-box,
[data-theme="dark"] .ncg-quickread-collapsible {
    background: #1e293b;
    border-color: #334155;
    border-left-color: #10b981;
}

[data-theme="dark"] .ncg-quickread-toggle {
    background: #0f172a;
}

[data-theme="dark"] .ncg-quickread-toggle:hover {
    background: #1e293b;
}

[data-theme="dark"] .ncg-quickread-title {
    color: #f8fafc;
}

[data-theme="dark"] .ncg-quickread-icon {
    color: #94a3b8;
}

[data-theme="dark"] .ncg-quickread-body {
    color: #cbd5e1;
    border-top-color: #334155;
}

/* Toast Action Link */
.nc-copied-notification.active {
    pointer-events: auto !important;
}
.nc-copied-notification-action {
    background: #10b981;
    color: #0f172a !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 6px;
}
.nc-copied-notification-action:hover {
    background: #34d399;
    color: #0f172a !important;
}

/* Mobile Sticky Conversion Bar */
.ncg-mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    z-index: 99990;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.ncg-mobile-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 640px;
    margin: 0 auto;
    gap: 12px;
}
.ncg-mobile-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ncg-mobile-sticky-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ncg-mobile-sticky-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
}
.ncg-mobile-sticky-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
    white-space: nowrap;
    transition: transform 0.15s ease;
}
.ncg-mobile-sticky-cta:active {
    transform: scale(0.96);
}
@media (max-width: 768px) {
    .ncg-mobile-sticky-bar {
        display: block;
    }
    body {
        padding-bottom: 65px;
    }
}
[data-theme="dark"] .ncg-mobile-sticky-bar {
    background: rgba(15, 23, 42, 0.96);
    border-top-color: #334155;
}

