/* ============================================================
   NEXORA WHMCS THEME - custom.css
   Modern, clean WHMCS client area theme
   ============================================================ */

/* ── CSS Custom Properties (Color Schemes) ── */
:root {
    --nexora-primary:        #4f46e5;
    --nexora-primary-dark:   #3730a3;
    --nexora-primary-light:  #818cf8;
    --nexora-secondary:      #06b6d4;
    --nexora-accent:         #f59e0b;
    --nexora-success:        #10b981;
    --nexora-warning:        #f59e0b;
    --nexora-danger:         #ef4444;
    --nexora-info:           #3b82f6;

    --nexora-bg:             #f1f5f9;
    --nexora-bg-card:        #ffffff;
    --nexora-bg-sidebar:     #1e1b4b;
    --nexora-bg-header:      #ffffff;
    --nexora-bg-footer:      #1e1b4b;

    --nexora-text:           #1e293b;
    --nexora-text-muted:     #64748b;
    --nexora-text-light:     #94a3b8;
    --nexora-text-inverse:   #ffffff;

    --nexora-border:         #e2e8f0;
    --nexora-border-radius:  12px;
    --nexora-border-radius-sm: 8px;
    --nexora-border-radius-lg: 16px;

    --nexora-shadow:         0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    --nexora-shadow-md:      0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --nexora-shadow-lg:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --nexora-shadow-xl:      0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);

    --nexora-transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --nexora-font:           'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --nexora-sidebar-width:  260px;
    --nexora-header-height:  64px;
}

/* ── Color Scheme: Blue (default) ── */
.nexora-scheme-blue { --nexora-primary: #4f46e5; --nexora-primary-dark: #3730a3; --nexora-primary-light: #818cf8; }
/* ── Color Scheme: Green ── */
.nexora-scheme-green { --nexora-primary: #059669; --nexora-primary-dark: #047857; --nexora-primary-light: #34d399; }
/* ── Color Scheme: Purple ── */
.nexora-scheme-purple { --nexora-primary: #7c3aed; --nexora-primary-dark: #6d28d9; --nexora-primary-light: #a78bfa; }
/* ── Color Scheme: Orange ── */
.nexora-scheme-orange { --nexora-primary: #ea580c; --nexora-primary-dark: #c2410c; --nexora-primary-light: #fb923c; }
/* ── Color Scheme: Red ── */
.nexora-scheme-red { --nexora-primary: #dc2626; --nexora-primary-dark: #b91c1c; --nexora-primary-light: #f87171; }

/* ── Base Reset & Typography ── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--nexora-font);
    background-color: var(--nexora-bg);
    color: var(--nexora-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--nexora-primary);
    text-decoration: none;
    transition: var(--nexora-transition);
}
a:hover { color: var(--nexora-primary-dark); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--nexora-text);
    margin-top: 0;
}

/* ── Layout ── */
#nexora-wrapper {
    display: flex;
    min-height: 100vh;
}

#nexora-sidebar {
    width: var(--nexora-sidebar-width);
    background: var(--nexora-bg-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--nexora-transition);
    display: flex;
    flex-direction: column;
}

#nexora-content-wrapper {
    margin-left: var(--nexora-sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

#nexora-header {
    height: var(--nexora-header-height);
    background: var(--nexora-bg-header);
    border-bottom: 1px solid var(--nexora-border);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: var(--nexora-shadow);
}

#nexora-main {
    flex: 1;
    padding: 32px 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

#nexora-footer {
    background: var(--nexora-bg-footer);
    color: rgba(255, 255, 255, 0.7);
    padding: 24px;
    margin-left: 0;
    text-align: center;
    font-size: 14px;
}

/* ── Sidebar ── */
.nexora-sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--nexora-header-height);
}

.nexora-sidebar-brand img {
    max-height: 36px;
    max-width: 140px;
    object-fit: contain;
}

.nexora-sidebar-brand-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nexora-sidebar-nav {
    padding: 16px 0;
    flex: 1;
}

.nexora-sidebar-section-title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 24px 8px;
}

.nexora-nav-item {
    list-style: none;
    margin: 0;
}

.nexora-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: var(--nexora-transition);
    border-left: 3px solid transparent;
    position: relative;
}

.nexora-nav-link:hover,
.nexora-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--nexora-primary-light);
}

.nexora-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nexora-nav-badge {
    margin-left: auto;
    background: var(--nexora-primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
}

/* ── Header ── */
.nexora-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nexora-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nexora-sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--nexora-border-radius-sm);
    color: var(--nexora-text-muted);
    transition: var(--nexora-transition);
    display: none;
}

.nexora-sidebar-toggle:hover {
    background: var(--nexora-bg);
    color: var(--nexora-text);
}

.nexora-header-search {
    position: relative;
}

.nexora-header-search input {
    background: var(--nexora-bg);
    border: 1px solid var(--nexora-border);
    border-radius: 24px;
    padding: 8px 16px 8px 40px;
    font-size: 14px;
    color: var(--nexora-text);
    width: 220px;
    transition: var(--nexora-transition);
    outline: none;
}

.nexora-header-search input:focus {
    border-color: var(--nexora-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    width: 280px;
}

.nexora-header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nexora-text-muted);
    font-size: 14px;
}

.nexora-header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--nexora-bg);
    color: var(--nexora-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--nexora-transition);
    position: relative;
    font-size: 16px;
}

.nexora-header-icon-btn:hover {
    background: var(--nexora-border);
    color: var(--nexora-text);
}

.nexora-header-icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--nexora-danger);
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
}

.nexora-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nexora-primary), var(--nexora-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid var(--nexora-border);
    transition: var(--nexora-transition);
}

.nexora-user-avatar:hover {
    border-color: var(--nexora-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ── Cards ── */
.nexora-card {
    background: var(--nexora-bg-card);
    border-radius: var(--nexora-border-radius);
    border: 1px solid var(--nexora-border);
    box-shadow: var(--nexora-shadow);
    overflow: hidden;
    transition: var(--nexora-transition);
}

.nexora-card:hover {
    box-shadow: var(--nexora-shadow-md);
}

.nexora-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--nexora-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nexora-bg-card);
}

.nexora-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--nexora-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nexora-card-title i {
    color: var(--nexora-primary);
}

.nexora-card-body {
    padding: 24px;
}

.nexora-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--nexora-border);
    background: var(--nexora-bg);
}

/* ── Stat Cards ── */
.nexora-stat-card {
    background: var(--nexora-bg-card);
    border-radius: var(--nexora-border-radius);
    border: 1px solid var(--nexora-border);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--nexora-transition);
    box-shadow: var(--nexora-shadow);
}

.nexora-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nexora-shadow-lg);
}

.nexora-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--nexora-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.nexora-stat-icon.primary { background: rgba(79, 70, 229, 0.12); color: var(--nexora-primary); }
.nexora-stat-icon.success { background: rgba(16, 185, 129, 0.12); color: var(--nexora-success); }
.nexora-stat-icon.warning { background: rgba(245, 158, 11, 0.12); color: var(--nexora-warning); }
.nexora-stat-icon.danger  { background: rgba(239, 68, 68, 0.12); color: var(--nexora-danger); }
.nexora-stat-icon.info    { background: rgba(59, 130, 246, 0.12); color: var(--nexora-info); }

.nexora-stat-content { flex: 1; }

.nexora-stat-label {
    font-size: 13px;
    color: var(--nexora-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.nexora-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--nexora-text);
    line-height: 1;
    margin-bottom: 4px;
}

.nexora-stat-change {
    font-size: 12px;
    font-weight: 500;
}

.nexora-stat-change.up { color: var(--nexora-success); }
.nexora-stat-change.down { color: var(--nexora-danger); }

/* ── Buttons ── */
.btn-nexora-primary {
    background: var(--nexora-primary);
    border-color: var(--nexora-primary);
    color: #ffffff;
    border-radius: var(--nexora-border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    transition: var(--nexora-transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-nexora-primary:hover {
    background: var(--nexora-primary-dark);
    border-color: var(--nexora-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--nexora-shadow-md);
}

.btn-nexora-outline {
    background: transparent;
    border: 2px solid var(--nexora-primary);
    color: var(--nexora-primary);
    border-radius: var(--nexora-border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    transition: var(--nexora-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-nexora-outline:hover {
    background: var(--nexora-primary);
    color: #ffffff;
}

.btn-nexora-ghost {
    background: transparent;
    border: none;
    color: var(--nexora-text-muted);
    border-radius: var(--nexora-border-radius-sm);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    transition: var(--nexora-transition);
    cursor: pointer;
}

.btn-nexora-ghost:hover {
    background: var(--nexora-bg);
    color: var(--nexora-text);
}

/* ── Forms ── */
.nexora-form-group {
    margin-bottom: 20px;
}

.nexora-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--nexora-text);
    margin-bottom: 8px;
}

.nexora-form-control,
.nexora-form-select,
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--nexora-border);
    border-radius: var(--nexora-border-radius-sm);
    font-size: 14px;
    color: var(--nexora-text);
    background: var(--nexora-bg-card);
    transition: var(--nexora-transition);
    outline: none;
    font-family: var(--nexora-font);
    line-height: 1.5;
}

.nexora-form-control:focus,
.nexora-form-select:focus,
.form-control:focus {
    border-color: var(--nexora-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: #ffffff;
}

.nexora-form-control::placeholder { color: var(--nexora-text-light); }

/* ── Tables ── */
.nexora-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.nexora-table thead th {
    background: var(--nexora-bg);
    color: var(--nexora-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--nexora-border);
    text-align: left;
    white-space: nowrap;
}

.nexora-table tbody tr {
    border-bottom: 1px solid var(--nexora-border);
    transition: var(--nexora-transition);
}

.nexora-table tbody tr:last-child { border-bottom: none; }

.nexora-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.03);
}

.nexora-table tbody td {
    padding: 14px 16px;
    color: var(--nexora-text);
    vertical-align: middle;
}

/* ── Status Badges ── */
.nexora-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nexora-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.nexora-badge-active, .nexora-badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.nexora-badge-pending, .nexora-badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.nexora-badge-cancelled, .nexora-badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.nexora-badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

/* ── Page Header ── */
.nexora-page-header {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.nexora-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--nexora-text);
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.nexora-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nexora-text-muted);
    list-style: none;
    padding: 0;
    margin: 0;
}

.nexora-breadcrumb li + li::before {
    content: '/';
    color: var(--nexora-text-light);
}

.nexora-breadcrumb a {
    color: var(--nexora-text-muted);
}

.nexora-breadcrumb a:hover { color: var(--nexora-primary); }

/* ── Quick Actions Grid ── */
.nexora-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.nexora-quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--nexora-bg-card);
    border: 1px solid var(--nexora-border);
    border-radius: var(--nexora-border-radius);
    color: var(--nexora-text);
    text-align: center;
    transition: var(--nexora-transition);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.nexora-quick-action-btn i {
    font-size: 24px;
    color: var(--nexora-primary);
    transition: var(--nexora-transition);
}

.nexora-quick-action-btn:hover {
    border-color: var(--nexora-primary);
    background: rgba(79, 70, 229, 0.04);
    color: var(--nexora-primary);
    transform: translateY(-3px);
    box-shadow: var(--nexora-shadow-md);
    text-decoration: none;
}

.nexora-quick-action-btn:hover i { transform: scale(1.1); }

/* ── Alerts ── */
.nexora-alert {
    padding: 14px 18px;
    border-radius: var(--nexora-border-radius-sm);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    border-left: 4px solid transparent;
}

.nexora-alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.nexora-alert-success { background: rgba(16, 185, 129, 0.08); border-color: var(--nexora-success); color: #065f46; }
.nexora-alert-warning { background: rgba(245, 158, 11, 0.08); border-color: var(--nexora-warning); color: #92400e; }
.nexora-alert-danger  { background: rgba(239, 68, 68, 0.08); border-color: var(--nexora-danger);  color: #991b1b; }
.nexora-alert-info    { background: rgba(59, 130, 246, 0.08); border-color: var(--nexora-info);   color: #1e40af; }

/* ── Login Page ── */
.nexora-auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--nexora-bg-sidebar) 0%, #312e81 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.nexora-auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.nexora-auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.nexora-auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.nexora-auth-left h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.nexora-auth-left p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
    line-height: 1.7;
}

.nexora-auth-features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nexora-auth-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.nexora-auth-feature i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--nexora-secondary);
    flex-shrink: 0;
}

.nexora-auth-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.nexora-auth-card {
    background: #ffffff;
    border-radius: var(--nexora-border-radius-lg);
    padding: 48px 40px;
    width: 100%;
    box-shadow: var(--nexora-shadow-xl);
}

.nexora-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.nexora-auth-logo img {
    max-height: 44px;
    max-width: 180px;
}

.nexora-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--nexora-text);
    margin-bottom: 8px;
    text-align: center;
}

.nexora-auth-subtitle {
    font-size: 14px;
    color: var(--nexora-text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* ── Dropdown Menu ── */
.nexora-dropdown {
    position: relative;
}

.nexora-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid var(--nexora-border);
    border-radius: var(--nexora-border-radius);
    box-shadow: var(--nexora-shadow-xl);
    min-width: 200px;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--nexora-transition);
}

.nexora-dropdown.open .nexora-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nexora-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--nexora-text);
    cursor: pointer;
    transition: var(--nexora-transition);
}

.nexora-dropdown-item:hover {
    background: var(--nexora-bg);
    color: var(--nexora-primary);
}

.nexora-dropdown-item i { width: 16px; text-align: center; color: var(--nexora-text-muted); }
.nexora-dropdown-item:hover i { color: var(--nexora-primary); }

.nexora-dropdown-divider {
    height: 1px;
    background: var(--nexora-border);
    margin: 4px 0;
}

.nexora-dropdown-header {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--nexora-text-muted);
}

/* ── Progress Bar ── */
.nexora-progress {
    background: var(--nexora-bg);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.nexora-progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--nexora-primary), var(--nexora-secondary));
    transition: width 0.6s ease;
}

/* ── Toast Notifications ── */
.nexora-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nexora-toast {
    background: #fff;
    border-radius: var(--nexora-border-radius-sm);
    box-shadow: var(--nexora-shadow-xl);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    min-width: 300px;
    border-left: 4px solid var(--nexora-primary);
    animation: nexoraSlideIn 0.3s ease;
}

@keyframes nexoraSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ── Sidebar Collapse ── */
.nexora-sidebar-collapsed #nexora-sidebar {
    width: 72px;
}

.nexora-sidebar-collapsed #nexora-sidebar .nexora-sidebar-brand-text,
.nexora-sidebar-collapsed #nexora-sidebar .nexora-nav-link span,
.nexora-sidebar-collapsed #nexora-sidebar .nexora-nav-badge,
.nexora-sidebar-collapsed #nexora-sidebar .nexora-sidebar-section-title {
    display: none;
}

.nexora-sidebar-collapsed #nexora-sidebar .nexora-nav-link {
    justify-content: center;
    padding: 12px;
    border-left: none;
    border-radius: var(--nexora-border-radius-sm);
    margin: 2px 8px;
}

.nexora-sidebar-collapsed #nexora-content-wrapper {
    margin-left: 72px;
}

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
    .nexora-auth-left { display: none; }
    .nexora-auth-right { width: 100%; }
    .nexora-auth-card { padding: 40px 32px; }
}

@media (max-width: 768px) {
    :root { --nexora-sidebar-width: 0px; }

    #nexora-sidebar {
        transform: translateX(-260px);
        width: 260px;
    }

    #nexora-sidebar.mobile-open {
        transform: translateX(0);
    }

    #nexora-content-wrapper {
        margin-left: 0 !important;
    }

    .nexora-sidebar-toggle {
        display: flex !important;
    }

    #nexora-main {
        padding: 20px 16px;
    }

    .nexora-page-header {
        flex-direction: column;
        gap: 12px;
    }

    .nexora-page-title { font-size: 22px; }

    .nexora-header-search { display: none; }

    .nexora-stat-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .nexora-auth-card {
        padding: 32px 24px;
        border-radius: var(--nexora-border-radius);
    }

    .nexora-auth-right { padding: 20px 16px; }
}

/* ── Utility classes ── */
.nexora-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.nexora-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nexora-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1200px) { .nexora-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .nexora-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
    .nexora-grid-2,
    .nexora-grid-3,
    .nexora-grid-4 { grid-template-columns: 1fr; }
}

.nexora-mt-0  { margin-top: 0; }
.nexora-mb-0  { margin-bottom: 0; }
.nexora-mb-4  { margin-bottom: 16px; }
.nexora-mb-6  { margin-bottom: 24px; }
.nexora-mb-8  { margin-bottom: 32px; }
.nexora-text-center { text-align: center; }
.nexora-text-right  { text-align: right; }
.nexora-w-full      { width: 100%; }
.nexora-d-flex      { display: flex; }
.nexora-align-center { align-items: center; }
.nexora-justify-between { justify-content: space-between; }
.nexora-gap-2 { gap: 8px; }
.nexora-gap-3 { gap: 12px; }
.nexora-gap-4 { gap: 16px; }

/* ── WHMCS Overrides ── */
.panel, .panel-default {
    background: var(--nexora-bg-card);
    border: 1px solid var(--nexora-border);
    border-radius: var(--nexora-border-radius);
    box-shadow: var(--nexora-shadow);
    margin-bottom: 20px;
}

.panel-heading {
    background: var(--nexora-bg-card) !important;
    border-bottom: 1px solid var(--nexora-border);
    padding: 16px 20px;
    border-radius: var(--nexora-border-radius) var(--nexora-border-radius) 0 0;
    font-weight: 700;
    color: var(--nexora-text);
}

.panel-body { padding: 20px; }

.table { font-size: 14px; }
.table > thead > tr > th {
    border-bottom: 2px solid var(--nexora-border);
    color: var(--nexora-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    background: var(--nexora-bg);
}

.table > tbody > tr > td {
    padding: 14px 16px;
    border-top: 1px solid var(--nexora-border);
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(241, 245, 249, 0.5);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(79, 70, 229, 0.03);
}

.btn-primary {
    background-color: var(--nexora-primary);
    border-color: var(--nexora-primary);
    border-radius: var(--nexora-border-radius-sm);
    font-weight: 600;
    padding: 8px 18px;
    transition: var(--nexora-transition);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--nexora-primary-dark);
    border-color: var(--nexora-primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-default {
    border-radius: var(--nexora-border-radius-sm);
    font-weight: 600;
    padding: 8px 18px;
    border: 1.5px solid var(--nexora-border);
    background: #fff;
    color: var(--nexora-text);
    transition: var(--nexora-transition);
}

.btn-default:hover {
    border-color: var(--nexora-primary);
    color: var(--nexora-primary);
    background: rgba(79, 70, 229, 0.04);
}

.btn-success { background-color: var(--nexora-success); border-color: var(--nexora-success); border-radius: var(--nexora-border-radius-sm); font-weight: 600; }
.btn-danger  { background-color: var(--nexora-danger);  border-color: var(--nexora-danger);  border-radius: var(--nexora-border-radius-sm); font-weight: 600; }
.btn-warning { background-color: var(--nexora-warning); border-color: var(--nexora-warning); border-radius: var(--nexora-border-radius-sm); font-weight: 600; }
.btn-info    { background-color: var(--nexora-info);    border-color: var(--nexora-info);    border-radius: var(--nexora-border-radius-sm); font-weight: 600; }

.label-success { background-color: var(--nexora-success); border-radius: 20px; padding: 3px 10px; font-size: 11px; }
.label-danger  { background-color: var(--nexora-danger);  border-radius: 20px; padding: 3px 10px; font-size: 11px; }
.label-warning { background-color: var(--nexora-warning); border-radius: 20px; padding: 3px 10px; font-size: 11px; }
.label-info    { background-color: var(--nexora-info);    border-radius: 20px; padding: 3px 10px; font-size: 11px; }
.label-default { background-color: var(--nexora-text-light); border-radius: 20px; padding: 3px 10px; font-size: 11px; }

.alert { border-radius: var(--nexora-border-radius-sm); border: none; border-left: 4px solid; font-size: 14px; }
.alert-success { border-color: var(--nexora-success); background: rgba(16, 185, 129, 0.08); color: #065f46; }
.alert-danger  { border-color: var(--nexora-danger);  background: rgba(239, 68, 68, 0.08);  color: #991b1b; }
.alert-warning { border-color: var(--nexora-warning); background: rgba(245, 158, 11, 0.08); color: #92400e; }
.alert-info    { border-color: var(--nexora-info);    background: rgba(59, 130, 246, 0.08); color: #1e40af; }

.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 13px;
    color: var(--nexora-text-muted);
    margin-bottom: 8px;
}

.breadcrumb > li + li::before { color: var(--nexora-text-light); }

.pagination > li > a,
.pagination > li > span {
    color: var(--nexora-primary);
    border-color: var(--nexora-border);
    border-radius: var(--nexora-border-radius-sm);
    margin: 0 2px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--nexora-transition);
}

.pagination > .active > a,
.pagination > .active > span {
    background-color: var(--nexora-primary);
    border-color: var(--nexora-primary);
}

.pagination > li > a:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--nexora-primary);
    color: var(--nexora-primary);
}

.nav-tabs { border-bottom: 2px solid var(--nexora-border); }
.nav-tabs > li > a {
    color: var(--nexora-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    transition: var(--nexora-transition);
}

.nav-tabs > li > a:hover {
    color: var(--nexora-primary);
    background: transparent;
    border-color: transparent;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover {
    color: var(--nexora-primary);
    border-bottom-color: var(--nexora-primary);
    background: transparent;
}

.tab-content { padding-top: 20px; }

.modal-content {
    border-radius: var(--nexora-border-radius);
    border: none;
    box-shadow: var(--nexora-shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--nexora-border);
    padding: 20px 24px;
}

.modal-title { font-weight: 700; font-size: 18px; }

.modal-body { padding: 24px; }

.modal-footer {
    border-top: 1px solid var(--nexora-border);
    padding: 16px 24px;
}

select.form-control,
input.form-control,
textarea.form-control {
    border-radius: var(--nexora-border-radius-sm);
    border: 1.5px solid var(--nexora-border);
    transition: var(--nexora-transition);
    font-family: var(--nexora-font);
}

select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
    border-color: var(--nexora-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* ── Overlay for mobile sidebar ── */
.nexora-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.nexora-overlay.active { display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--nexora-bg); }
::-webkit-scrollbar-thumb { background: var(--nexora-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--nexora-text-light); }

#nexora-sidebar::-webkit-scrollbar { width: 4px; }
#nexora-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

/* ── Animations ── */
@keyframes nexoraFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nexora-fade-in { animation: nexoraFadeIn 0.35s ease; }

/* ── Welcome Banner ── */
.nexora-welcome-banner {
    background: linear-gradient(135deg, var(--nexora-primary) 0%, var(--nexora-secondary) 100%);
    border-radius: var(--nexora-border-radius);
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.nexora-welcome-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.nexora-welcome-banner::after {
    content: '';
    position: absolute;
    right: 80px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.nexora-welcome-text h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nexora-welcome-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

.nexora-welcome-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.nexora-welcome-actions a {
    padding: 10px 20px;
    border-radius: var(--nexora-border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--nexora-transition);
}

.nexora-welcome-actions .btn-white {
    background: #ffffff;
    color: var(--nexora-primary);
    border: 2px solid transparent;
}

.nexora-welcome-actions .btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: var(--nexora-shadow-md);
    color: var(--nexora-primary);
}

.nexora-welcome-actions .btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.nexora-welcome-actions .btn-outline-white:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ============================================================
   PUBLIC LAYOUT — Top Navigation, Marketing Pages, Auth Cards
   ============================================================ */

body.nx-is-public {
    background: #fff;
    font-family: var(--nexora-font, 'Inter', sans-serif);
}

.nx-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Sticky Public Header ── */
.nx-public-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nx-pub-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nexora-border);
    transition: box-shadow 0.25s ease;
}

.nx-pub-header.nx-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

/* ── Navbar ── */
.nx-navbar {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 16px;
}

.nx-navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 8px;
}
.nx-navbar-brand img {
    max-height: 38px;
    max-width: 180px;
    object-fit: contain;
}
.nx-navbar-brand span {
    font-size: 21px;
    font-weight: 800;
    color: var(--nexora-primary);
    letter-spacing: -0.5px;
}
.nx-navbar-brand:hover { text-decoration: none; }

/* ── Desktop Nav Links ── */
.nx-navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nx-nav-item {
    position: relative;
}

.nx-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nexora-text);
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
}
.nx-nav-link:hover,
.nx-nav-link:focus {
    background: rgba(79,70,229,.07);
    color: var(--nexora-primary);
    text-decoration: none;
}

.nx-nav-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}
.nx-nav-item:hover .nx-nav-arrow {
    transform: rotate(180deg);
}

/* ── Dropdown Panel ── */
.nx-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--nexora-border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.14);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 200;
}
.nx-nav-item:hover .nx-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-dropdown-link {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nexora-text);
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.12s;
}
.nx-dropdown-link:hover {
    background: rgba(79,70,229,.07);
    color: var(--nexora-primary);
    text-decoration: none;
}

.nx-dropdown-divider {
    height: 1px;
    background: var(--nexora-border);
    margin: 5px 2px;
}

/* ── Navbar CTA Buttons ── */
.nx-navbar-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.nx-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--nexora-text-muted);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.15s;
}
.nx-cart-btn:hover {
    color: var(--nexora-primary);
    background: rgba(79,70,229,.07);
    text-decoration: none;
}
.nx-cart-count {
    position: absolute;
    top: 1px;
    right: 1px;
    background: var(--nexora-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nx-btn-outline-sm {
    padding: 8px 18px;
    border: 1.5px solid var(--nexora-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nexora-text);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.nx-btn-outline-sm:hover {
    border-color: var(--nexora-primary);
    color: var(--nexora-primary);
    text-decoration: none;
}

.nx-btn-primary-sm {
    padding: 8px 20px;
    background: var(--nexora-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
}
.nx-btn-primary-sm:hover {
    background: var(--nexora-primary-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
}

/* ── Mobile Toggle ── */
.nx-mobile-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--nexora-border);
    border-radius: 7px;
    cursor: pointer;
    padding: 7px 11px;
    color: var(--nexora-text);
    font-size: 17px;
    margin-left: auto;
    line-height: 1;
    transition: border-color 0.15s;
}
.nx-mobile-toggle:hover { border-color: var(--nexora-primary); }

/* ── Mobile Menu ── */
.nx-mobile-menu {
    display: none;
    border-top: 1px solid var(--nexora-border);
    background: #fff;
    padding: 8px 0 16px;
}
.nx-mobile-menu.open { display: block; }

.nx-mobile-link {
    display: block;
    padding: 11px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--nexora-text);
    border-bottom: 1px solid var(--nexora-border);
    text-decoration: none;
    transition: color 0.12s;
}
.nx-mobile-link:hover { color: var(--nexora-primary); text-decoration: none; }
.nx-mobile-link-sub {
    padding-left: 20px;
    font-size: 14px;
    color: var(--nexora-text-muted);
}

.nx-mobile-cta {
    display: flex;
    gap: 10px;
    padding-top: 16px;
}

/* ── Public Main ── */
.nx-pub-main {
    flex: 1;
}

/* ── Auth Page (Login / Register / Pwreset) ── */
.nx-auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 72vh;
    padding: 52px 16px 60px;
    background: var(--nexora-bg);
}

.nx-auth-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,.1);
    padding: 44px 40px;
    width: 100%;
    max-width: 500px;
}

.page-register .nx-auth-box { max-width: 660px; }

.nx-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.nx-auth-logo img {
    max-height: 44px;
    max-width: 180px;
    object-fit: contain;
}
.nx-auth-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--nexora-primary);
}

/* Auth headings inside the box */
.nx-auth-box .nexora-auth-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--nexora-text);
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.nx-auth-box .nexora-auth-subtitle {
    font-size: 14px;
    color: var(--nexora-text-muted);
    margin-bottom: 28px;
}

/* ── Inner Page Banner ── */
.nx-pub-page-banner {
    background: linear-gradient(135deg, var(--nexora-primary) 0%, var(--nexora-primary-dark) 100%);
    padding: 56px 0;
    color: #fff;
}
.nx-pub-page-title {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -0.5px;
}
.nx-pub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,.75);
}
.nx-pub-breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: rgba(255,255,255,.4);
}
.nx-pub-breadcrumb a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}
.nx-pub-breadcrumb a:hover { color: #fff; }

.nx-pub-inner {
    padding: 48px 0 72px;
}

/* ── Public Footer ── */
.nx-pub-footer {
    background: #0f172a;
    color: rgba(255,255,255,.6);
    padding: 72px 0 36px;
    margin-top: auto;
}

.nx-pub-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

.nx-pub-footer-brand {
    margin-bottom: 14px;
}
.nx-pub-footer-brand img {
    max-height: 36px;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .8;
}
.nx-pub-footer-brand-text {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.nx-pub-footer-tagline {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,.45);
    max-width: 280px;
    margin-bottom: 20px;
}

.nx-pub-footer-social {
    display: flex;
    gap: 10px;
}
.nx-pub-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.55);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
}
.nx-pub-footer-social a:hover {
    background: var(--nexora-primary);
    color: #fff;
    text-decoration: none;
}

.nx-pub-footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.3);
    margin-bottom: 16px;
}

.nx-pub-footer-link {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.12s;
}
.nx-pub-footer-link:hover {
    color: #fff;
    text-decoration: none;
}

.nx-pub-footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.3);
}

/* ── Homepage sections need full-width ── */
body.page-homepage .nx-pub-main {
    background: var(--nexora-bg);
}

/* Make sure homepage hero works inside public layout */
body.nx-is-public .nx-hero {
    padding-top: 0;
    margin-top: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .nx-pub-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nx-navbar-nav { display: none; }
    .nx-navbar-cta { display: none; }
    .nx-mobile-toggle { display: flex; }

    .nx-pub-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .nx-pub-footer-tagline { max-width: 100%; }

    .nx-auth-box { padding: 32px 20px; }
    .nx-pub-page-title { font-size: 28px; }
    .nx-pub-page-banner { padding: 40px 0; }
}

@media (max-width: 480px) {
    .nx-auth-box { padding: 24px 16px; border-radius: 12px; }
    .nx-mobile-cta { flex-direction: column; }
}
