/**
 * Neon Trade Portal - Centralized Styles
 * Version: 2.0.1
 * 
 * This file consolidates all NTP portal styles to avoid inline CSS duplication
 * in templates (login.php, register.php, dashboard.php)
 */

/* ==========================================================================
   Hide "Dealer Registration" from WP menu when logged in
   WordPress adds body classes like .logged-in when user is authenticated
   ========================================================================== */
body.logged-in .menu-item a[href*="b2b-register"],
body.logged-in .menu-item a[href*="dealer-registration"],
body.logged-in .nav-link[href*="b2b-register"],
body.logged-in .nav-link[href*="dealer-registration"],
body.logged-in a.menu-link[href*="b2b-register"],
body.logged-in a.menu-link[href*="dealer-registration"],
/* Common menu class patterns */
body.logged-in .main-navigation a[href*="register"],
body.logged-in .primary-menu a[href*="register"],
body.logged-in .header-menu a[href*="register"],
body.logged-in #primary-menu a[href*="register"],
body.logged-in .site-header a[href*="b2b-register"],
/* Astra theme */
body.logged-in .ast-header-sections-navigation a[href*="register"],
/* Elementor */
body.logged-in .elementor-nav-menu a[href*="register"],
/* Generic patterns */
body.logged-in li.dealer-registration,
body.logged-in li.menu-item-dealer-registration {
    display: none !important;
}

/* ==========================================================================
   CSS Variables - Single Source of Truth
   ========================================================================== */
:root {
    /* Backgrounds */
    --ntp-bg-main: #02030a;
    --ntp-bg-panel: #070817;
    --ntp-bg-card: #0b0d24;
    
    /* Borders */
    --ntp-border-soft: rgba(0, 136, 254, 0.35);
    --ntp-border-light: rgba(255, 255, 255, 0.08);
    --ntp-border-accent: rgba(121, 148, 255, 0.25);
    
    /* Accent Colors */
    --ntp-accent: #0088fe;
    --ntp-accent-soft: #00aaff;
    --ntp-accent-pink: #ff2df0;
    --ntp-accent-green: #00ffb8;
    
    /* Text Colors */
    --ntp-text-main: #f5f7ff;
    --ntp-text-soft: #a9b1d1;
    --ntp-text-muted: #7f8aae;
    
    /* Border Radius */
    --ntp-radius-lg: 22px;
    --ntp-radius-md: 14px;
    --ntp-radius-sm: 10px;
    --ntp-radius-pill: 999px;
    
    /* Shadows */
    --ntp-shadow-neon: 0 0 35px rgba(0, 136, 254, 0.55);
    --ntp-shadow-dark: 0 0 30px rgba(0, 0, 0, 0.9);
    --ntp-shadow-card: 0 10px 25px rgba(0, 0, 0, 0.8);
    
    /* Transitions */
    --ntp-transition: 0.2s ease;
}

/* ==========================================================================
   Base Theme Styles
   ========================================================================== */
.ntp-theme-neon {
    color: var(--ntp-text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Poppins', 'Segoe UI', sans-serif;
}

.ntp-viewport {
    min-height: 100vh;
    background: radial-gradient(circle at top, #06081c 0%, #02030a 40%, #000 90%);
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */
.ntp-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    max-width: 1360px;
    margin: 0 auto;
    padding: 26px 18px 32px;
    gap: 18px;
}

.ntp-grid-dashboard {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    max-width: 1360px;
    margin: 0 auto;
    padding: 26px 18px 32px;
    column-gap: 18px;
    row-gap: 16px;
    width: 100%;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.ntp-topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(120deg, rgba(11, 13, 36, 0.96), rgba(4, 7, 23, 0.96));
    border-radius: 18px;
    border: 1px solid rgba(140, 170, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.ntp-topbar-dashboard {
    padding: 10px 18px;
    background: #02030a;
    border-radius: 16px;
    box-shadow: var(--ntp-shadow-card);
}

/* Logo */
.ntp-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ntp-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 20px;
    background: radial-gradient(circle at 20% 20%, #00d4ff, #006eff 70%, #001433 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(0, 136, 254, 0.75);
}

.ntp-logo-orb {
    position: absolute;
    inset: 6px;
    border-radius: var(--ntp-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ntp-logo-orb-glow {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.15), transparent, rgba(0, 136, 254, 0.45), transparent, rgba(255, 255, 255, 0.1));
    opacity: .7;
    mix-blend-mode: screen;
}

.ntp-logo-text {
    display: flex;
    flex-direction: column;
}

.ntp-logo-title {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ntp-logo-subtitle {
    font-size: 11px;
    color: var(--ntp-text-soft);
}

/* Top Navigation */
.ntp-top-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ntp-top-link {
    font-size: 13px;
    color: var(--ntp-text-soft);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--ntp-radius-pill);
    border: 1px solid transparent;
    transition: var(--ntp-transition);
}

.ntp-top-link:hover {
    border-color: rgba(0, 136, 254, 0.4);
    color: var(--ntp-accent-soft);
}

.ntp-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--ntp-radius-pill);
    border: 1px solid rgba(0, 255, 184, 0.35);
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 184, 0.12));
    color: #9fffe4;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Status Dot */
.ntp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ntp-dot-online {
    background: radial-gradient(circle at 30% 30%, #e8fff9, #05ffb0 60%, #007046);
    box-shadow: 0 0 10px rgba(5, 255, 176, 0.9);
}

/* ==========================================================================
   Panels
   ========================================================================== */
.ntp-panel {
    border-radius: var(--ntp-radius-lg);
    background: linear-gradient(145deg, rgba(5, 7, 20, 0.98), rgba(4, 6, 28, 0.96));
    border: 1px solid var(--ntp-border-accent);
    box-shadow: var(--ntp-shadow-dark);
    overflow: hidden;
    position: relative;
}

.ntp-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 0 0, rgba(0, 136, 254, 0.4), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 45, 240, 0.32), transparent 55%);
    opacity: 0.3;
    pointer-events: none;
}

.ntp-panel-inner {
    position: relative;
    z-index: 2;
    padding: 26px 26px 28px;
}

.ntp-panel-left .ntp-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ntp-panel-right .ntp-panel-inner-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.ntp-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.ntp-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 5px 12px;
    border-radius: var(--ntp-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ntp-badge.neon {
    background: radial-gradient(circle at 0 0, rgba(0, 136, 254, 0.7), rgba(0, 0, 0, 0.6));
    color: #e8f6ff;
    border-color: rgba(0, 136, 254, 0.7);
}

.ntp-badge.soft {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ntp-text-soft);
}

/* Status Badges */
.ntp-badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: var(--ntp-radius-pill);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ntp-badge-status.status-completed {
    border-color: rgba(0, 255, 184, 0.6);
    color: #8effe3;
    background: rgba(0, 255, 184, 0.1);
}

.ntp-badge-status.status-processing {
    border-color: rgba(0, 136, 254, 0.7);
    color: #aedefe;
    background: rgba(0, 136, 254, 0.18);
}

.ntp-badge-status.status-pending {
    border-color: rgba(255, 184, 0, 0.7);
    color: #ffe99b;
    background: rgba(255, 184, 0, 0.16);
}

.ntp-badge-status.status-cancelled,
.ntp-badge-status.status-failed {
    border-color: rgba(244, 67, 54, 0.7);
    color: #ffc4c0;
    background: rgba(244, 67, 54, 0.14);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.ntp-heading-main {
    font-size: 32px;
    line-height: 1.25;
    margin: 6px 0 10px;
}

.ntp-heading-main .accent {
    color: var(--ntp-accent-soft);
    text-shadow: 0 0 16px rgba(0, 136, 254, 0.7);
}

.ntp-lead {
    font-size: 14px;
    color: var(--ntp-text-soft);
    max-width: 460px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Onboarding Steps
   ========================================================================== */
.ntp-onboard-steps {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ntp-onboard-step {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--ntp-radius-md);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ntp-step-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--ntp-accent-soft);
}

.ntp-step-title {
    font-size: 13px;
    font-weight: 600;
}

.ntp-step-desc {
    font-size: 12px;
    color: var(--ntp-text-soft);
}

.ntp-onboard-highlight {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--ntp-radius-md);
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

.ntp-highlight-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ntp-accent-soft);
}

.ntp-highlight-body {
    font-size: 12px;
    color: var(--ntp-text-soft);
    margin-top: 4px;
}

/* ==========================================================================
   Footnote
   ========================================================================== */
.ntp-footnote {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.ntp-footnote a {
    color: var(--ntp-accent-soft);
    text-decoration: none;
}

.ntp-footnote a:hover {
    text-decoration: underline;
}

.ntp-footnote-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    color: var(--ntp-text-soft);
}

/* ==========================================================================
   Form Shell
   ========================================================================== */
.ntp-form-shell {
    flex: 1;
    background: radial-gradient(circle at 0 0, rgba(0, 136, 254, 0.22), rgba(9, 10, 30, 0.96));
    border-radius: var(--ntp-radius-lg);
    padding: 24px 26px;
    box-shadow: var(--ntp-shadow-dark);
    border: 1px solid rgba(116, 148, 255, 0.35);
}

.ntp-form-header {
    margin-bottom: 16px;
}

.ntp-form-title {
    font-size: 22px;
    margin: 0 0 4px;
    color: #ffffff;
}

.ntp-form-subtitle {
    font-size: 13px;
    color: var(--ntp-text-soft);
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.ntp-alert {
    border-radius: var(--ntp-radius-md);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.4);
    font-size: 12px;
    margin-bottom: 10px;
}

.ntp-alert-title {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}

.ntp-alert-list {
    margin: 0;
    padding-left: 18px;
}

.ntp-alert-list li {
    margin-bottom: 2px;
}

.ntp-alert-error {
    border-color: rgba(244, 67, 54, 0.7);
    background: rgba(244, 67, 54, 0.2);
}

.ntp-alert-success {
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(76, 175, 80, 0.25);
}

.ntp-alert-info {
    border-color: rgba(0, 136, 254, 0.6);
    background: rgba(0, 136, 254, 0.18);
}

.ntp-alert-warning {
    border-color: rgba(255, 184, 0, 0.7);
    background: rgba(255, 184, 0, 0.16);
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.ntp-field-row {
    margin-bottom: 10px;
}

.ntp-field-row label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--ntp-text-soft);
}

.req {
    color: #ff496a;
}

.ntp-field-row input,
.ntp-field-row select,
.ntp-field-row textarea {
    width: 100%;
    padding: 10px;
    border-radius: var(--ntp-radius-sm);
    border: 1px solid var(--ntp-border-light);
    background: rgba(2, 3, 16, 0.94);
    color: var(--ntp-text-main);
    outline: none;
    transition: var(--ntp-transition);
}

.ntp-field-row input::placeholder,
.ntp-field-row textarea::placeholder {
    color: #c7cbe2;
}

.ntp-field-row input:focus,
.ntp-field-row select:focus,
.ntp-field-row textarea:focus {
    border-color: rgba(0, 136, 254, 0.9);
    box-shadow: 0 0 12px rgba(0, 136, 254, 0.8);
    color: var(--ntp-text-main);
}

.ntp-field-row-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ntp-field-row-inline > div {
    flex: 1;
}

/* ==========================================================================
   Toggle Switch
   ========================================================================== */
.ntp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
}

.ntp-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ntp-toggle-switch {
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    border-radius: var(--ntp-radius-pill);
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
}

.ntp-toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    transition: transform var(--ntp-transition);
}

.ntp-toggle input:checked + .ntp-toggle-switch {
    background: var(--ntp-accent);
    border-color: var(--ntp-accent);
}

.ntp-toggle input:checked + .ntp-toggle-switch::after {
    transform: translateX(16px);
}

.ntp-toggle-label {
    flex: 1;
    color: var(--ntp-text-soft);
    line-height: 1.4;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ntp-btn,
.ntp-btn-primary,
.ntp-btn-secondary {
    padding: 9px 16px;
    border-radius: var(--ntp-radius-sm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--ntp-accent);
    cursor: pointer;
    transition: var(--ntp-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ntp-btn-primary {
    background: var(--ntp-accent);
    color: #fff;
}

.ntp-btn-primary:hover {
    background: #fff;
    color: var(--ntp-accent);
    box-shadow: 0 0 14px rgba(0, 136, 254, 0.55);
}

.ntp-btn-secondary {
    background: var(--ntp-accent);
    color: #fff;
}

.ntp-btn-secondary:hover {
    background: #fff;
    color: var(--ntp-accent);
}

.ntp-btn-small {
    padding: 6px 10px;
    font-size: 10px;
}

.ntp-btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.ntp-step-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ==========================================================================
   Links
   ========================================================================== */
.ntp-link-inline {
    font-size: 12px;
    color: var(--ntp-accent-soft);
    text-decoration: none;
}

.ntp-link-inline:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Divider
   ========================================================================== */
.ntp-divider {
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--ntp-text-soft);
}

.ntp-divider::before,
.ntp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.ntp-divider span {
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ==========================================================================
   Progress Bar (Registration)
   ========================================================================== */
.ntp-progress {
    margin-bottom: 14px;
}

.ntp-progress-bar {
    height: 4px;
    border-radius: var(--ntp-radius-pill);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ntp-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ntp-accent), var(--ntp-accent-pink));
    transition: 0.25s;
}

.ntp-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
}

.ntp-progress-step {
    color: var(--ntp-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.ntp-progress-step.active {
    color: var(--ntp-accent-soft);
}

.ntp-progress-step.done {
    color: #4bffb3;
}

/* Step Panes */
.ntp-step-pane {
    display: none;
}

.ntp-step-pane.active {
    display: block;
}

/* ==========================================================================
   Review Box
   ========================================================================== */
.ntp-review-box {
    background: rgba(0, 0, 0, 0.45);
    border-radius: var(--ntp-radius-md);
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ntp-review-box h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--ntp-accent-soft);
}

.ntp-review-box p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--ntp-text-soft);
}

.ntp-review-list {
    margin: 0 0 10px;
    padding-left: 16px;
    font-size: 12px;
    color: var(--ntp-text-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ntp-form-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ntp-text-soft);
}

.ntp-footer-right a {
    color: var(--ntp-text-soft);
    margin-left: 10px;
    text-decoration: none;
}

.ntp-footer-right a:hover {
    color: var(--ntp-accent-soft);
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.ntp-empty {
    font-size: 12px;
    color: var(--ntp-text-soft);
    margin-top: 8px;
}

/* ==========================================================================
   Tab Panels
   ========================================================================== */
.ntp-tab-panel {
    display: none;
}

.ntp-tab-panel.active {
    display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .ntp-grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .ntp-panel-left {
        order: 2;
    }

    .ntp-panel-right {
        order: 3;
    }

    .ntp-topbar {
        order: 1;
    }

    .ntp-panel-inner {
        padding: 20px;
    }

    .ntp-form-shell {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .ntp-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ntp-heading-main {
        font-size: 26px;
    }

    .ntp-field-row-inline {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ntp-grid-layout {
        padding: 16px 12px 20px;
    }
    
    .ntp-form-shell {
        padding: 16px;
    }
    
    .ntp-btn,
    .ntp-btn-primary,
    .ntp-btn-secondary {
        padding: 8px 12px;
        font-size: 11px;
    }
}

