/**
 * =============================================================================
 * KAMPUSIM UI ENGINE - THEME STYLESHEET (100% Custom SaaS Application Design System)
 * No similarity to legacy aMember default styling.
 * =============================================================================
 */

:root {
    --nova-primary: #4f46e5;
    --nova-primary-hover: #4338ca;
    --nova-primary-light: #eef2ff;
    --nova-primary-glow: rgba(79, 70, 229, 0.18);

    --nova-dark: #0f172a;
    --nova-sidebar-bg: #5c67f6;
    --nova-sidebar-border: #4f5be6;
    --nova-sidebar-hover: rgba(255, 255, 255, 0.15);
    --nova-sidebar-text: rgba(255, 255, 255, 0.88);
    --nova-sidebar-active-text: #4f46e5;

    --nova-body-bg: #f8fafc;
    --nova-surface: #ffffff;
    --nova-border: #e2e8f0;
    --nova-border-subtle: #f1f5f9;

    --nova-text-main: #0f172a;
    --nova-text-muted: #64748b;
    --nova-text-subtle: #94a3b8;

    --nova-radius-sm: 8px;
    --nova-radius-md: 12px;
    --nova-radius-lg: 16px;
    --nova-radius-xl: 24px;

    --nova-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --nova-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --nova-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);

    --nova-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: var(--nova-body-bg) !important;
}

body.nova-app-body {
    margin: 0;
    padding: 0;
    background-color: var(--nova-body-bg) !important;
    color: var(--nova-text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* SHELL LAYOUT */
.nova-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--nova-body-bg) !important;
}

/* =============================================================================
   SIDEBAR
   ============================================================================= */
.nova-sidebar {
    width: 270px;
    background-color: var(--nova-sidebar-bg);
    border-right: 1px solid var(--nova-sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: var(--nova-transition);
}

.nova-sidebar-header {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nova-sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--nova-sidebar-text);
    font-size: 1.25rem;
    cursor: pointer;
}

/* Brand */
.nova-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nova-brand-img {
    max-height: 36px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.nova-brand-img.nova-brand-img-lg {
    max-height: 42px;
    max-width: 180px;
}

.nova-brand-divider {
    width: 1px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.28);
    display: inline-block;
}

.nova-brand-symbol {
    width: 36px;
    height: 36px;
    border-radius: var(--nova-radius-md);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.nova-brand-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nova-brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--nova-brand-color-desktop, #ffffff);
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nova-brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #818cf8;
    letter-spacing: 0.12em;
}

/* User mini profile in sidebar */
.nova-sidebar-user {
    margin: 16px 16px 8px;
    padding: 12px;
    border-radius: var(--nova-radius-md);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nova-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.nova-avatar.sm {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.nova-avatar .nova-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.nova-avatar .nova-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nova-sidebar-user-meta {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nova-sidebar-username {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nova-sidebar-status {
    color: var(--nova-sidebar-text);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nova-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #64748b;
}

.nova-status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Nav links */
.nova-sidebar-nav {
    padding: 12px 14px;
    flex: 1;
    overflow-y: auto;
}

.nova-nav-group-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 10px 12px 6px;
}

.nova-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--nova-sidebar-text);
    text-decoration: none;
    font-size: 0.885rem;
    font-weight: 500;
    border-radius: var(--nova-radius-sm);
    transition: var(--nova-transition);
    margin-bottom: 2px;
}

.nova-nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.16);
}

.nova-nav-link.active {
    color: #4338ca !important;
    background: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

.nova-nav-link.active .nova-nav-icon i,
.nova-nav-link.active .nova-chevron {
    color: #4338ca;
}

.nova-nav-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nova-nav-text {
    flex: 1;
}

.nova-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nova-nav-dropdown-item.open .nova-chevron {
    transform: rotate(180deg);
}

.nova-nav-submenu {
    display: none;
    padding: 4px 0 4px 34px;
}

.nova-nav-dropdown-item.open .nova-nav-submenu {
    display: block;
}

.nova-nav-sublink {
    display: block;
    padding: 5px 10px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.825rem;
    border-radius: var(--nova-radius-sm);
    transition: var(--nova-transition);
}

.nova-nav-sublink:last-child {
    margin-bottom: 0;
}

.nova-nav-sublink:hover,
.nova-nav-sublink.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.22);
}

.nova-support-link {
    color: #34d399 !important;
}

/* Sidebar Footer & User Profile Menu */
.nova-sidebar-footer {
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    background-color: var(--nova-sidebar-bg);
}

.nova-sidebar-user-menu {
    position: relative;
    width: 100%;
}

.nova-sidebar-profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--nova-radius-md);
    cursor: pointer;
    text-align: left;
    transition: var(--nova-transition);
}

.nova-sidebar-profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.nova-sidebar-profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nova-sidebar-profile-name {
    font-size: 0.885rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.nova-sidebar-profile-email {
    font-size: 0.735rem;
    color: var(--nova-sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    margin-top: 2px;
}

.nova-sidebar-profile-more {
    color: var(--nova-sidebar-text);
    font-size: 0.85rem;
    opacity: 0.75;
    transition: var(--nova-transition);
}

.nova-sidebar-profile-btn:hover .nova-sidebar-profile-more {
    opacity: 1;
    color: #ffffff;
}

/* Popover Profil di Sidebar Bawah */
.nova-profile-popover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    background-color: #ffffff;
    border-radius: var(--nova-radius-md);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--nova-border);
    padding: 8px;
    display: none;
    z-index: 120;
}

.nova-profile-popover.open {
    display: block;
    animation: novaSlideUpFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes novaSlideUpFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   MAIN CONTAINER & TOPBAR
   ============================================================================= */
.nova-main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
    background-color: var(--nova-body-bg) !important;
}

.nova-topbar {
    height: 68px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--nova-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.nova-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nova-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--nova-text-main);
    font-size: 1.25rem;
    cursor: pointer;
}

.nova-mobile-floating-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: var(--nova-radius-md);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--nova-border);
    align-items: center;
    justify-content: center;
    z-index: 950;
    color: var(--nova-primary);
}

.nova-collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: #4f46e5;
    font-size: 0.72rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 105;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nova-collapse-toggle:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.nova-collapse-toggle i {
    transition: transform 0.25s ease;
}

/* =============================================================================
   COLLAPSED SIDEBAR (DESKTOP)
   ============================================================================= */
@media (min-width: 1025px) {

    html.nova-sidebar-pre-collapsed .nova-sidebar,
    .nova-sidebar.collapsed {
        width: 76px;
    }

    html.nova-sidebar-pre-collapsed .nova-sidebar .nova-sidebar-header,
    .nova-sidebar.collapsed .nova-sidebar-header {
        padding: 20px 14px;
        justify-content: center;
    }

    .nova-sidebar.collapsed .nova-brand-link {
        justify-content: center;
        width: 100%;
    }

    html.nova-sidebar-pre-collapsed .nova-sidebar .nova-brand-text,
    html.nova-sidebar-pre-collapsed .nova-sidebar .nova-brand-divider,
    html.nova-sidebar-pre-collapsed .nova-sidebar .nova-nav-group-label,
    html.nova-sidebar-pre-collapsed .nova-sidebar .nova-nav-text,
    html.nova-sidebar-pre-collapsed .nova-sidebar .nova-chevron,
    .nova-sidebar.collapsed .nova-brand-text,
    .nova-sidebar.collapsed .nova-brand-divider,
    .nova-sidebar.collapsed .nova-nav-group-label,
    .nova-sidebar.collapsed .nova-nav-text,
    .nova-sidebar.collapsed .nova-chevron {
        display: none !important;
    }

    /* Izinkan popover menu navigasi keluar dari sidebar saat collapsed */
    html.nova-sidebar-pre-collapsed .nova-sidebar,
    .nova-sidebar.collapsed {
        overflow: visible;
    }

    html.nova-sidebar-pre-collapsed .nova-sidebar .nova-sidebar-nav,
    .nova-sidebar.collapsed .nova-sidebar-nav {
        overflow: visible;
        padding: 16px 10px;
    }

    /* Tampilkan fallback icon bila ada gambar logo yang disembunyikan saat collapsed */
    .nova-sidebar.collapsed .nova-brand-symbol {
        display: flex !important;
        margin: 0 auto;
    }

    .nova-sidebar.collapsed .nova-nav-link {
        justify-content: center;
        padding: 12px 0;
        position: relative;
    }

    .nova-sidebar.collapsed .nova-nav-icon {
        margin: 0;
        font-size: 1.2rem;
    }

    /* Tooltip sederhana saat hover pada item menu tunggal di sidebar collapsed */
    .nova-sidebar.collapsed .nova-nav-link:not(.nova-dropdown-trigger):hover::after {
        content: attr(data-title);
        position: absolute;
        left: 64px;
        top: 50%;
        transform: translateY(-50%);
        background: #0f172a;
        color: #ffffff;
        font-size: 0.785rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        white-space: nowrap;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        pointer-events: none;
    }

    /* Flyout Submenu pada Dropdown saat Collapsed */
    .nova-sidebar.collapsed .nova-nav-dropdown-item {
        position: relative;
    }

    .nova-sidebar.collapsed .nova-nav-submenu {
        display: none !important;
        position: absolute;
        left: calc(100% + 8px);
        top: 0;
        min-width: 200px;
        background: #1e1b4b;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--nova-radius-md);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
        padding: 8px;
        z-index: 1000;
    }

    /* Buka flyout saat di-hover atau saat memiliki class open */
    .nova-sidebar.collapsed .nova-nav-dropdown-item:hover .nova-nav-submenu,
    .nova-sidebar.collapsed .nova-nav-dropdown-item.open .nova-nav-submenu {
        display: block !important;
        animation: novaFadeIn 0.18s ease;
    }

    .nova-sidebar.collapsed .nova-nav-sublink {
        padding: 6px 12px;
        margin-bottom: 4px;
        font-size: 0.85rem;
        border-radius: var(--nova-radius-sm);
        white-space: nowrap;
    }

    .nova-sidebar.collapsed .nova-nav-sublink:last-child {
        margin-bottom: 0;
    }

    /* Icon rotasi tombol collapse toggle saat collapsed */
    body.nova-sidebar-collapsed .nova-collapse-toggle i {
        transform: rotate(180deg);
    }

    /* Penyesuaian Footer Profil di Sidebar Saat Collapsed */
    .nova-sidebar.collapsed .nova-sidebar-footer {
        padding: 12px 10px;
        overflow: visible;
    }

    .nova-sidebar.collapsed .nova-sidebar-profile-btn {
        justify-content: center;
        padding: 10px 0;
    }

    .nova-sidebar.collapsed .nova-sidebar-profile-info,
    .nova-sidebar.collapsed .nova-sidebar-profile-more {
        display: none !important;
    }

    .nova-sidebar.collapsed .nova-profile-popover {
        left: calc(100% + 12px);
        right: auto;
        bottom: 8px;
        width: 250px;
    }
}

.nova-topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.nova-bc-item {
    color: var(--nova-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nova-bc-link {
    transition: var(--nova-transition);
}

.nova-bc-link:hover {
    color: var(--nova-primary);
}

.nova-bc-item.current {
    color: var(--nova-text-main);
    font-weight: 600;
}

.nova-bc-sep {
    font-size: 0.65rem;
    color: var(--nova-text-subtle);
}

.nova-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Quick Search Button in Topbar */
.nova-quick-search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--nova-body-bg);
    border: 1px solid var(--nova-border);
    padding: 6px 14px;
    border-radius: var(--nova-radius-md);
    cursor: pointer;
    transition: var(--nova-transition);
}

.nova-quick-search-trigger:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.nova-search-placeholder {
    font-size: 0.825rem;
    color: var(--nova-text-muted);
}

.nova-kbd-shortcut {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--nova-text-muted);
    background-color: #ffffff;
    border: 1px solid var(--nova-border);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: var(--nova-shadow-sm);
}

/* User Profile Topbar Dropdown */
.nova-user-menu-wrapper {
    position: relative;
}

.nova-user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--nova-radius-md);
    transition: var(--nova-transition);
}

.nova-user-profile-btn:hover {
    background-color: var(--nova-body-bg);
}

.nova-topbar-name {
    font-weight: 600;
    font-size: 0.885rem;
    color: var(--nova-text-main);
}

.nova-sm-chevron {
    font-size: 0.7rem;
    color: var(--nova-text-muted);
}

.nova-profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 250px;
    background-color: #ffffff;
    border-radius: var(--nova-radius-md);
    box-shadow: var(--nova-shadow-lg);
    border: 1px solid var(--nova-border);
    padding: 8px;
    display: none;
    z-index: 110;
}

.nova-profile-dropdown.open {
    display: block;
    animation: novaFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nova-pdd-header {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--nova-border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nova-pdd-header-info {
    flex: 1;
    min-width: 0;
}

.nova-pdd-name {
    font-weight: 700;
    font-size: 0.925rem;
    color: var(--nova-text-main);
    line-height: 1.25;
}

.nova-pdd-email {
    font-size: 0.785rem;
    color: var(--nova-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.nova-pdd-links {
    padding-top: 6px;
}

.nova-pdd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-decoration: none;
    color: var(--nova-text-main);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--nova-radius-sm);
    transition: var(--nova-transition);
}

.nova-pdd-item:hover {
    background-color: var(--nova-primary-light);
    color: var(--nova-primary);
}

.nova-pdd-divider {
    height: 1px;
    background-color: var(--nova-border-subtle);
    margin: 6px 0;
}

.nova-logout-link {
    color: #ef4444;
}

.nova-logout-link:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

/* =============================================================================
   BODY CONTENT & DASHBOARD VIEW
   ============================================================================= */
.nova-content-body {
    flex: 1;
    padding: 32px;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--nova-body-bg) !important;
}

/* HERO SECTION */
.nova-hero-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--nova-radius-xl);
    padding: 38px 42px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px -5px rgba(49, 46, 129, 0.4);
    margin-bottom: 28px;
}

.nova-hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    right: -100px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nova-hero-main {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.nova-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nova-pulse-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #94a3b8;
}

.nova-pulse-indicator.online {
    background-color: #34d399;
    box-shadow: 0 0 10px #34d399;
}

.nova-hero-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nova-hero-sub {
    font-size: 0.98rem;
    color: #e0e7ff;
    margin: 0 0 20px;
    line-height: 1.6;
}

.nova-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nova-chip {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--nova-radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.nova-chip-label {
    color: #a5b4fc;
}

.nova-chip-val {
    color: #ffffff;
}

.nova-chip-copy {
    background: transparent;
    border: none;
    color: #c7d2fe;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: var(--nova-transition);
}

.nova-chip-copy:hover {
    color: #ffffff;
}

.nova-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.nova-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #4338ca;
    padding: 12px 22px;
    border-radius: var(--nova-radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--nova-transition);
}

.nova-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #3730a3;
}

.nova-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: var(--nova-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--nova-transition);
}

.nova-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* METRICS ROW */
.nova-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.nova-metric-card {
    background-color: var(--nova-surface);
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--nova-shadow-sm);
    transition: var(--nova-transition);
}

.nova-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nova-shadow-md);
    border-color: #cbd5e1;
}

.nova-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--nova-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.bg-indigo {
    background-color: #eef2ff;
    color: #4f46e5;
}

.bg-emerald {
    background-color: #ecfdf5;
    color: #059669;
}

.bg-amber {
    background-color: #fffbeb;
    color: #d97706;
}

.bg-rose {
    background-color: #fff1f2;
    color: #e11d48;
}

.nova-metric-details {
    display: flex;
    flex-direction: column;
}

.nova-metric-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--nova-text-muted);
}

.nova-metric-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--nova-text-main);
    line-height: 1.2;
}

/* SECTION TITLES */
.nova-section {
    margin-bottom: 40px;
    background: transparent !important;
}

/* Reset aMember default white wrapper */
.am-body .am-body-content-wrapper,
.am-body-content,
.nova-dashboard-view {
    background-color: var(--nova-body-bg) !important;
}

.nova-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nova-border);
}

.nova-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--nova-text-main);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nova-section-title i {
    color: var(--nova-primary);
}

.nova-section-sub {
    font-size: 0.875rem;
    color: var(--nova-text-muted);
    margin: 0;
}

.nova-pill {
    background-color: var(--nova-primary-light);
    color: var(--nova-primary);
    font-weight: 700;
    font-size: 0.785rem;
    padding: 6px 14px;
    border-radius: 20px;
}

/* PRODUCTS GRID */
.nova-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.nova-product-card {
    background-color: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--nova-shadow-sm);
    transition: var(--nova-transition);
}

.nova-product-card:hover {
    border-color: #a5b4fc;
    box-shadow: var(--nova-shadow-md);
    transform: translateY(-2px);
}

.nova-product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ecfdf5;
    color: #059669;
    font-weight: 800;
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    border: 1px solid #a7f3d0;
}

.nova-product-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--nova-radius-md);
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.nova-product-body {
    flex: 1;
}

.nova-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nova-text-main);
    margin: 0 0 8px;
}

.nova-product-desc {
    font-size: 0.85rem;
    color: var(--nova-text-muted);
    line-height: 1.5;
    margin: 0;
}

.nova-product-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--nova-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nova-foot-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* RESOURCES TOOLBAR */
.nova-resource-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.nova-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid var(--nova-border);
    padding: 8px 14px;
    border-radius: var(--nova-radius-md);
    box-shadow: var(--nova-shadow-sm);
    min-width: 250px;
    position: relative;
}

.nova-search-box i {
    color: var(--nova-text-muted);
    font-size: 0.875rem;
}

.nova-search-box input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--nova-text-main);
    width: 100%;
}

.nova-clear-search {
    background: transparent;
    border: none;
    color: var(--nova-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}

.nova-tab-pills {
    display: flex;
    background-color: #e2e8f0;
    padding: 4px;
    border-radius: var(--nova-radius-md);
    gap: 4px;
}

.nova-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: var(--nova-radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--nova-text-muted);
    cursor: pointer;
    transition: var(--nova-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nova-tab-btn.active {
    background-color: #ffffff;
    color: var(--nova-text-main);
    box-shadow: var(--nova-shadow-sm);
}

/* RESOURCES GRID */
.nova-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.nova-res-card {
    background-color: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--nova-shadow-sm);
    transition: var(--nova-transition);
}

.nova-res-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nova-shadow-md);
    border-color: #cbd5e1;
}

.nova-res-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.badge-file {
    background-color: #ecfdf5;
    color: #047857;
}

.badge-video {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.badge-other {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.nova-res-content {
    flex: 1;
}

.nova-res-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nova-text-main);
    margin: 0 0 8px;
    line-height: 1.35;
}

.nova-res-desc {
    font-size: 0.85rem;
    color: var(--nova-text-muted);
    margin: 0;
    line-height: 1.5;
}

.nova-res-action {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--nova-border-subtle);
}

/* Style default aMember button link */
.nova-res-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 18px;
    border-radius: var(--nova-radius-md);
    transition: var(--nova-transition);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
    text-align: center;
}

.nova-res-action a:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* EMPTY STATES */
.nova-empty-state {
    background-color: #ffffff;
    border: 2px dashed var(--nova-border);
    border-radius: var(--nova-radius-lg);
    padding: 48px 24px;
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
}

.nova-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--nova-body-bg);
    color: var(--nova-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 16px;
}

.nova-empty-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nova-text-main);
    margin: 0 0 6px;
}

.nova-empty-desc {
    font-size: 0.885rem;
    color: var(--nova-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ALERTS */
.nova-alerts-wrapper {
    margin-bottom: 24px;
}

.nova-alert {
    padding: 14px 18px;
    border-radius: var(--nova-radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.885rem;
    margin-bottom: 12px;
}

.nova-alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.nova-alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* FOOTER */
.nova-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--nova-border);
    background-color: #ffffff;
    font-size: 0.825rem;
    color: var(--nova-text-muted);
}

.nova-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nova-portal-version {
    font-weight: 700;
    color: var(--nova-primary);
    background-color: var(--nova-primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
}

/* AUTH / LOGIN CANVAS (Modern Clean White Aesthetic) */
html.nova-auth-html,
html:has(body.nova-auth-body) {
    background-color: #f8fafc !important;
    background-image:
        radial-gradient(at 0% 0%, rgba(224, 231, 255, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(253, 230, 245, 0.4) 0px, transparent 50%),
        radial-gradient(at 50% 50%, #ffffff 0px, #f1f5f9 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body.nova-auth-body {
    background: transparent !important;
    min-height: 100vh;
    height: auto !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 48px 16px 64px;
    box-sizing: border-box;
    overflow: visible !important;
    overflow-y: visible !important;
}

.nova-auth-canvas {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    overflow: visible !important;
}

.nova-auth-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    overflow: visible !important;
}

.nova-auth-brand {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nova-auth-brand .nova-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nova-auth-brand .nova-brand-img {
    max-height: 44px;
    max-width: 180px;
    object-fit: contain;
}

.nova-auth-brand .nova-brand-title {
    color: #0f172a;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.nova-auth-brand .nova-brand-divider {
    height: 24px;
    width: 2px;
    background: #cbd5e1;
}

/* Card Container */
.nova-auth-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 44px 38px 40px;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    box-shadow:
        0 20px 45px -10px rgba(99, 102, 241, 0.08),
        0 10px 25px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

/* Reset aMember default styles inside auth card to eliminate rogue borders & shadows */
.nova-auth-card .am-login-form-wrapper,
.nova-auth-card .am-sendpass-form-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.nova-auth-card .am-form,
.nova-auth-card .am-auth-form,
.nova-auth-card .am-login-form,
.nova-auth-card .am-sendpass-form {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.nova-auth-card form,
.nova-auth-card .am-login-form form,
.nova-auth-card .am-sendpass-form form,
.nova-auth-card .am-auth-form form {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.nova-auth-card div.am-row {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Typography & Titles */

.nova-auth-card legend,
.nova-auth-card .am-form fieldset legend,
.nova-login-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    text-align: center !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    width: 100% !important;
    display: block !important;
    letter-spacing: -0.01em !important;
}


.nova-form-subtext {
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
    margin: -14px 0 24px;
    line-height: 1.5;
}

/* Form Styles & Groups */
.nova-login-form-custom fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.nova-form-group {
    margin-bottom: 20px;
}

.nova-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

/* Input Box: Rounded, Soft Indigo-Blue Background, Clean Border */
.nova-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #eef4ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 4px 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    height: 52px;
}

.nova-input-box:hover {
    border-color: #c7d2fe;
}

.nova-input-box:focus-within {
    background-color: #eef4ff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.nova-input-icon {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.nova-input-box:focus-within .nova-input-icon {
    color: #6366f1;
}

.nova-input-field {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 0.93rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    line-height: normal !important;
}

.nova-input-field:focus,
.nova-input-field:hover,
.nova-input-field:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Mengatasi warna kuning/biru autofill browser bawaan Chrome/Edge */
.nova-input-field:-webkit-autofill,
.nova-input-field:-webkit-autofill:hover,
.nova-input-field:-webkit-autofill:focus,
.nova-input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px #eef4ff inset !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b !important;
    transition: background-color 5000s ease-in-out 0s;
}

.nova-input-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Matikan background image gembok/user bawaan amember */
.nova-auth-card input[name="login"],
.nova-auth-card input[name="amember_login"],
.nova-auth-card input[name="amember_pass"],
.nova-auth-card input[type="text"],
.nova-auth-card input[type="password"] {
    background-image: none !important;
}


/* Eye Toggle Password Button */
.nova-toggle-pwd {
    background: transparent;
    border: none;
    outline: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    margin-left: 8px;
}

.nova-toggle-pwd:hover {
    color: #475569;
}

/* Remember Me Checkbox */
.nova-remember-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.nova-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
}

.nova-remember-label input[type="checkbox"] {
    accent-color: #6366f1;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Action Submit Button (Purple / Periwinkle Gradient - Proporsional & Elegan) */
.nova-submit-group {
    margin-top: 28px;
    margin-bottom: 8px;
}

.nova-login-btn,
.nova-auth-card button[type="submit"],
.nova-auth-card input[type="submit"] {
    width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 14px 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: #625df5 !important;
    background: linear-gradient(135deg, #6c63ff 0%, #584df0 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: normal !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px -4px rgba(99, 102, 241, 0.45) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

.nova-login-btn i {
    font-size: 1.1rem;
}

.nova-login-btn:hover,
.nova-auth-card button[type="submit"]:hover,
.nova-auth-card input[type="submit"]:hover {
    background: linear-gradient(135deg, #5e54fa 0%, #473bf0 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 28px -3px rgba(99, 102, 241, 0.55) !important;
}

.nova-login-btn:active,
.nova-auth-card button[type="submit"]:active,
.nova-auth-card input[type="submit"]:active {
    transform: translateY(0) !important;
}


/* Forgot Password Link */
.nova-forgot-row {
    text-align: right;
    margin-top: 14px;
}

.nova-forgot-link {
    color: #8b9db7;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.nova-forgot-link:hover {
    color: #6366f1;
    text-decoration: underline;
}

/* Signup Link Footer below card or inside card */
.nova-signup-footer-link {
    text-align: center;
    margin-top: 32px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.nova-signup-footer-link a {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}

.nova-signup-footer-link a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.nova-auth-footer {
    margin-top: 26px;
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}


/* ANIMATIONS */
@keyframes novaFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .nova-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(84vw, 300px);
        max-width: 320px;
        transform: translate3d(-100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        z-index: 1000;
        box-shadow: none;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s step-end, box-shadow 0.28s ease;
        -webkit-overflow-scrolling: touch;
    }

    .nova-sidebar.active {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        box-shadow: var(--nova-shadow-lg);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s, box-shadow 0.28s ease;
    }

    .nova-sidebar-close {
        display: block;
    }

    .nova-menu-toggle {
        display: block;
    }

    .nova-collapse-toggle {
        display: none !important;
    }

    .nova-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    .nova-backdrop.active {
        display: block;
    }

    .nova-quick-search-trigger {
        display: none;
    }
}

@media (max-width: 768px) {
    .nova-topbar {
        padding: 0 16px;
    }

    .nova-content-body {
        padding: 20px 16px;
    }

    .nova-hero-card {
        padding: 26px 20px;
    }

    .nova-hero-heading {
        font-size: 1.6rem;
    }

    .nova-hero-cta {
        width: 100%;
    }

    .nova-btn-primary,
    .nova-btn-ghost {
        width: 100%;
    }

    .nova-resource-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nova-search-box {
        min-width: 100%;
    }

    .nova-tab-pills {
        overflow-x: auto;
    }
}

/* =============================================================================
   MY PRODUCTS PAGE & MODERN DATA TABLE (No, Produk, Expired, Harga)
   ============================================================================= */
.nova-section-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--nova-radius-xl);
    padding: 32px 36px;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.4);
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nova-banner-content {
    max-width: 650px;
}

.nova-banner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nova-stat-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--nova-radius-md);
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.nova-stat-chip-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.nova-stat-chip-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.nova-stat-chip-num.text-success {
    color: #34d399;
}

.nova-stat-chip-num.text-muted {
    color: #94a3b8;
}

/* Card Container Tabel */
.nova-table-card {
    background-color: var(--nova-surface);
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-xl);
    box-shadow: var(--nova-shadow-sm);
    overflow: hidden;
}

.nova-table-toolbar {
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--nova-border);
}

.nova-table-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nova-text-main);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nova-table-title i {
    color: var(--nova-primary);
}

.nova-table-desc {
    font-size: 0.85rem;
    color: var(--nova-text-muted);
}

/* Komponen Kotak Pencarian Tabel (Clean Single Frame Modern) */
.nova-table-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 0 16px;
    height: 38px;
    width: 290px;
    max-width: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.nova-table-search-box:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.nova-table-search-box:focus-within {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14), 0 2px 8px rgba(99, 102, 241, 0.06);
}

.nova-table-search-box i {
    color: #94a3b8;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.nova-table-search-box:focus-within i {
    color: #6366f1;
}

.nova-table-search-box input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 0.835rem;
    color: #0f172a;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.nova-table-search-box input::placeholder {
    color: #94a3b8;
    font-size: 0.825rem;
    font-weight: 400;
}

/* Tabel Utama */
.nova-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.nova-custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.nova-custom-table thead th {
    background-color: #f8fafc;
    color: var(--nova-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 24px;
    border-bottom: 1px solid var(--nova-border);
}

.nova-custom-table tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--nova-border-subtle);
    vertical-align: middle;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
}

.nova-custom-table tbody tr:hover td {
    background-color: #f8fafc;
}

.nova-custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Nomor Urut */
.nova-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.825rem;
}

/* Kolom Produk Info */
.nova-prod-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nova-prod-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--nova-radius-md);
    background: #eef2ff;
    color: var(--nova-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.nova-prod-meta {
    display: flex;
    flex-direction: column;
}

.nova-prod-name {
    color: var(--nova-text-main);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.nova-prod-sub {
    font-size: 0.8rem;
    color: var(--nova-text-muted);
    margin-top: 2px;
}

/* Kolom Expired */
.nova-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 600;
}

.nova-exp-badge.badge-lifetime {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.nova-exp-badge.badge-active {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.nova-exp-badge.badge-expired {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Kolom Harga */
.nova-price-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--nova-text-main);
}

.nova-free-tag {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.785rem;
    font-weight: 600;
}

/* Baris yang sudah kedaluwarsa */
.row-expired td {
    opacity: 0.75;
}

/* PAYMENT HISTORY CUSTOM STYLES */
.nova-invoice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #c7d2fe;
    transition: var(--nova-transition);
}

.nova-invoice-badge:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.nova-invoice-badge.simple {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.nova-paysys-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
}

.nova-amount-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
}

/* =============================================================================
   PROFILE PAGE & ACCOUNT SETTINGS (FOKUS: AKUN & SANDI)
   ============================================================================= */
.nova-profile-page {
    padding-bottom: 40px;
}

/* Header Ringkas & Elegan */
.nova-profile-header-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 100%);
    border-radius: var(--nova-radius-lg);
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 25px rgba(30, 27, 75, 0.25);
    color: #ffffff;
}

@media (max-width: 900px) {
    .nova-profile-header-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 18px;
    }
}

.nova-profile-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.735rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #e0e7ff;
    margin-bottom: 10px;
}

.nova-profile-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.nova-profile-desc {
    font-size: 0.885rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 620px;
    line-height: 1.5;
}

.nova-profile-header-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nova-profile-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--nova-radius-md);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.nova-chip-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.nova-chip-val {
    font-size: 0.925rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nova-chip-val.text-success {
    color: #34d399 !important;
}

/* Container Grid 2 Kolom */
.nova-profile-grid-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .nova-profile-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Kolom Kiri: Kartu Identitas & Foto Profil */
.nova-profile-identity-card {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    padding: 30px 24px;
    position: sticky;
    top: 24px;
}

.nova-profile-avatar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nova-profile-large-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.28);
    overflow: hidden;
    position: relative;
    border: 3px solid #ffffff;
}

.nova-profile-large-avatar .nova-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.nova-profile-large-avatar .nova-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-avatar-uploader-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 6px;
}

.nova-avatar-badge-btn {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 30px;
    height: 30px;
    background: #4f46e5;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.45);
    border: 2px solid #ffffff;
    transition: var(--nova-transition);
}

.nova-avatar-badge-btn:hover {
    background: #4338ca;
    transform: scale(1.12);
}

.nova-avatar-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    z-index: 10;
}

.nova-avatar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 4px;
}

.nova-btn-avatar-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.785rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--nova-transition);
    border: 1px solid transparent;
}

.nova-btn-avatar-action.upload {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.nova-btn-avatar-action.upload:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.nova-btn-avatar-action.delete {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.nova-btn-avatar-action.delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.nova-avatar-hint {
    font-size: 0.725rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.nova-profile-user-summary {
    width: 100%;
    margin-bottom: 18px;
}

.nova-profile-user-name {
    font-family: 'Outfit', sans-serif;
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.nova-profile-user-email {
    font-size: 0.85rem;
    color: #64748b;
    word-break: break-all;
}

.nova-profile-divider {
    width: 100%;
    height: 1px;
    background-color: var(--nova-border);
    margin: 16px 0 20px;
}

/* Rincian Info Singkat Akun */
.nova-profile-info-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.nova-pi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: var(--nova-radius-md);
    border: 1px solid #f1f5f9;
    font-size: 0.84rem;
}

.nova-pi-label {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nova-pi-label i {
    color: #6366f1;
    font-size: 0.85rem;
}

.nova-pi-value {
    color: #1e293b;
    font-weight: 600;
}

.nova-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.nova-status-pill.active {
    background: #dcfce7;
    color: #15803d;
}

.nova-status-pill.inactive {
    background: #fee2e2;
    color: #b91c1c;
}

/* Kolom Kanan: Kartu Formulir Profil & Sandi */
.nova-profile-form-card {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.nova-profile-form-head {
    padding: 24px 30px;
    background: #fafafa;
    border-bottom: 1px solid var(--nova-border);
}

.nova-pf-head-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.nova-pf-head-title i {
    color: #4f46e5;
}

.nova-pf-head-sub {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.45;
}

.nova-profile-form-content {
    padding: 30px;
}

@media (max-width: 600px) {

    .nova-profile-form-head,
    .nova-profile-form-content {
        padding: 20px;
    }
}

/* =============================================================================
   AMEMBER PROFILE FORM CLEAN STYLING (MODERN FORM INPUTS)
   ============================================================================= */
.nova-am-form-wrap .am-form {
    font-family: inherit;
}

.nova-am-form-wrap .am-form form,
.nova-am-form-wrap form.am-form {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nova-am-form-wrap .am-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
}

.nova-am-form-wrap .am-form fieldset>legend {
    display: none !important;
}

/* Baris Form (am-row) Vertikal Bersih */
.nova-am-form-wrap .am-form div.am-row {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

.nova-am-form-wrap .am-form div.am-element-title {
    width: 100% !important;
    float: none !important;
    text-align: left !important;
    padding: 0 0 6px 0 !important;
}

.nova-am-form-wrap .am-form div.am-element-title label {
    font-size: 0.885rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    display: block;
}

.nova-am-form-wrap .am-form div.am-element-title .comment {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.4;
    margin-top: 2px;
    display: block;
}

.nova-am-form-wrap .am-form div.am-element {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Styling Input Field */
.nova-am-form-wrap .am-form input[type="text"],
.nova-am-form-wrap .am-form input[type="password"],
.nova-am-form-wrap .am-form input[type="email"],
.nova-am-form-wrap .am-form select,
.nova-am-form-wrap .am-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--nova-radius-md);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: var(--nova-transition);
    box-sizing: border-box;
}

.nova-am-form-wrap .am-form input[type="text"]:focus,
.nova-am-form-wrap .am-form input[type="password"]:focus,
.nova-am-form-wrap .am-form input[type="email"]:focus,
.nova-am-form-wrap .am-form select:focus,
.nova-am-form-wrap .am-form textarea:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Penataan Nama Depan & Belakang: Bertumpuk Vertikal dengan Jarak 14px */
.nova-am-form-wrap div[id*="row-name"] .am-element,
.nova-am-form-wrap .am-row[id*="row-name"] .am-element,
.nova-am-form-wrap #row-name-0 .am-element {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.nova-am-form-wrap input[name="name_f"]~input[name="name_l"],
.nova-am-form-wrap #name_f~#name_l {
    margin-top: 14px !important;
}

/* Penataan Baris Ubah Password */
.nova-am-form-wrap .am-change-pass-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: var(--nova-radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--nova-transition);
}

.nova-am-form-wrap .am-change-pass-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Tombol Submit Simpan Perubahan */
.nova-am-form-wrap .am-form div.am-row-buttons {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--nova-border) !important;
    display: flex;
    justify-content: flex-start;
}

.nova-am-form-wrap .am-form input[type="submit"],
.nova-am-form-wrap .am-form button[type="submit"] {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 32px;
    border-radius: var(--nova-radius-md);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: var(--nova-transition);
}

.nova-am-form-wrap .am-form input[type="submit"]:hover,
.nova-am-form-wrap .am-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

/* =============================================================================
   AFFILIATE & PAYOUT INFO STYLING
   ============================================================================= */
.am-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--nova-radius-md);
    padding: 14px 20px;
    color: #1e40af;
    font-size: 0.885rem;
    line-height: 1.5;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.am-info a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
}

.am-info::before {
    content: "\f05a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.15rem;
    color: #3b82f6;
    flex-shrink: 0;
}

/* =============================================================================
   HALAMAN PENGATURAN PEMBAYARAN KOMISI (PAYOUT INFO)
   ============================================================================= */
.nova-payout-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .nova-payout-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar: Kartu Status & Panduan Payout */
.nova-payout-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    box-shadow: var(--nova-shadow-sm);
    overflow: hidden;
}

.nova-payout-sidebar-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 26px 24px;
    color: #ffffff;
    text-align: center;
}

.nova-payout-sidebar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 12px;
}

.nova-payout-sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #ffffff;
}

.nova-payout-sidebar-desc {
    font-size: 0.8rem;
    color: #c7d2fe;
    line-height: 1.45;
    margin: 0;
}

.nova-payout-sidebar-body {
    padding: 24px;
}

.nova-payout-status-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--nova-radius-md);
    padding: 16px;
    margin-bottom: 22px;
}

.nova-payout-status-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nova-payout-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 700;
}

.nova-payout-badge.active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.nova-payout-badge.inactive {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.nova-payout-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nova-payout-feat-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.nova-payout-feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nova-payout-feat-text {
    flex: 1;
}

.nova-payout-feat-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.nova-payout-feat-sub {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.4;
}

/* Kolom Kanan: Kartu Form Pengaturan Payout */
.nova-payout-form-card {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    box-shadow: var(--nova-shadow-sm);
    overflow: hidden;
}

.nova-payout-form-head {
    padding: 24px 28px;
    border-bottom: 1px solid var(--nova-border);
    background: #f8fafc;
}

.nova-payout-head-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.nova-payout-head-title i {
    color: #4f46e5;
}

.nova-payout-head-sub {
    font-size: 0.825rem;
    color: #64748b;
    line-height: 1.5;
}

.nova-payout-form-content {
    padding: 28px;
}

/* Styling Dropdown dan Form Input Khusus Payout */
.nova-page-aff-payout-info .nova-am-form-wrap .am-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-weight: 500;
}

.nova-page-aff-payout-info .nova-am-form-wrap .am-row {
    margin-bottom: 22px !important;
}

.nova-page-aff-payout-info .nova-am-form-wrap div[id*="_save"] {
    margin-top: 30px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e2e8f0 !important;
}

.nova-page-aff-payout-info .nova-am-form-wrap div[id*="_save"] input[type="submit"] {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 32px !important;
    border-radius: var(--nova-radius-md) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
    transition: var(--nova-transition) !important;
}

.nova-page-aff-payout-info .nova-am-form-wrap div[id*="_save"] input[type="submit"]:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* =============================================================================
   AFFILIATE STATS PAGE STYLING
   ============================================================================= */
.nova-stats-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .nova-stats-charts-grid {
        grid-template-columns: 1fr;
    }
}

.nova-chart-body {
    padding: 24px;
    background: #ffffff;
    overflow-x: auto;
}

.nova-stats-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nova-export-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nova-btn-primary-sm,
.nova-btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--nova-radius-md);
    text-decoration: none;
    transition: var(--nova-transition);
}

.nova-btn-primary-sm {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.nova-btn-primary-sm:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.nova-btn-ghost-sm {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid var(--nova-border);
}

.nova-btn-ghost-sm:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Tabel Laporan Statistik Afiliasi */
table.nova-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    table-layout: fixed;
    background: #ffffff;
}

table.nova-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 24px;
    border-top: none;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

table.nova-table thead th:first-child,
table.nova-table tbody td:first-child,
table.nova-table tfoot td:first-child {
    padding-left: 28px !important;
}

table.nova-table thead th:last-child,
table.nova-table tbody td:last-child,
table.nova-table tfoot td:last-child {
    padding-right: 28px !important;
}

/* Proporsi & Alignment Kolom */
.nova-table .nova-th-date,
.nova-table .nova-td-date {
    width: 48%;
    text-align: left;
}

.nova-table .nova-th-comm,
.nova-table .nova-td-comm {
    width: 26%;
    text-align: right;
}

.nova-table .nova-th-clicks,
.nova-table .nova-td-clicks {
    width: 26%;
    text-align: right;
}

table.nova-table tbody td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.92rem;
    color: #1e293b;
    transition: background-color 0.15s ease;
}

table.nova-table tbody tr:hover td {
    background-color: #f8faff;
}

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

.nova-stat-date-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.925rem;
}

.nova-stat-link {
    color: var(--nova-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--nova-transition);
}

.nova-stat-link:hover {
    color: var(--nova-primary-dark);
    text-decoration: underline;
}

.nova-amount-val {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.nova-amount-val.text-success {
    color: #10b981;
}

.nova-clicks-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 700;
    background-color: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    text-decoration: none;
    transition: var(--nova-transition);
}

.nova-clicks-badge:hover {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.nova-clicks-badge.total {
    background-color: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.nova-clicks-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 4px 10px;
}

.nova-period-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 6px;
}

.nova-table-tfoot-row td {
    background-color: #f8fafc !important;
    border-top: 2px solid #e2e8f0 !important;
    border-bottom: none !important;
    padding: 18px 24px !important;
    color: #0f172a;
}

.nova-tfoot-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #334155;
    text-transform: uppercase;
}

/* Row accordion detail */
.nova-aff-detail-row td {
    background: #f8fafc;
    padding: 0 20px 20px 20px !important;
    border-bottom: 2px solid #e2e8f0;
}

.nova-detail-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--nova-radius-md);
    box-shadow: var(--nova-shadow-sm);
    overflow: hidden;
}

.nova-detail-header {
    background: #f1f5f9;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.nova-detail-close {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.825rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nova-detail-close:hover {
    color: #dc2626;
    text-decoration: underline;
}

.nova-detail-content {
    padding: 16px 20px;
}

/* =============================================================================
   AFFILIATE BANNERS & LINKS PAGE (aff/aff)
   ============================================================================= */
.nova-aff-intro-card {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--nova-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #312e81;
    font-size: 0.925rem;
    line-height: 1.6;
}

.nova-link-generator-box {
    max-width: 780px;
}

.nova-copy-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-md);
    padding: 4px 6px;
    transition: var(--nova-transition);
}

.nova-copy-input-group:focus-within {
    border-color: var(--nova-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--nova-primary-glow);
}

.nova-copy-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 14px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.925rem;
    color: var(--nova-text-main);
    width: 100%;
}

.nova-copy-action-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    border: none;
    padding: 10px 18px;
    border-radius: var(--nova-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--nova-transition);
    flex-shrink: 0;
}

.nova-copy-action-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.nova-copy-input-group.mini {
    padding: 2px 4px;
}

.nova-copy-input-group.mini .nova-copy-input {
    padding: 6px 10px;
    font-size: 0.825rem;
}

.nova-copy-action-btn.mini {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Custom Landing Page Redirect */
.nova-custom-redirect-builder {
    max-width: 780px;
}

.nova-builder-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nova-text-main);
    margin-bottom: 8px;
}

.nova-builder-input-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nova-builder-input {
    flex: 1;
    min-width: 260px;
    height: 44px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-md);
    outline: none;
    transition: var(--nova-transition);
}

.nova-builder-input:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px var(--nova-primary-glow);
}

/* Marketing Materials Grid */
.nova-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.nova-material-item {
    background: #f8fafc;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--nova-transition);
}

.nova-material-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: var(--nova-shadow-sm);
    transform: translateY(-2px);
}

.nova-material-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--nova-radius-md);
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nova-material-info {
    flex: 1;
    min-width: 0;
}

.nova-material-name {
    display: block;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--nova-text-main);
    text-decoration: none;
    line-height: 1.35;
    word-break: break-word;
}

.nova-material-name:hover {
    color: var(--nova-primary);
}

.nova-material-desc {
    font-size: 0.785rem;
    color: var(--nova-text-muted);
    margin: 4px 0 0;
    line-height: 1.4;
}

/* =============================================================================
   NOVA GENERAL AFFILIATE LINK CARD (SESUAI GAMBAR DESAIN)
   ============================================================================= */
.nova-general-aff-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 24px;
}

.nova-general-aff-header {
    padding: 24px 28px 18px 28px;
    border-bottom: 1px solid #f1f5f9;
}

.nova-general-aff-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.nova-general-aff-title i {
    color: #4f46e5;
    font-size: 1.15rem;
    transform: rotate(-15deg);
}

.nova-general-aff-desc {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.nova-general-aff-body {
    padding: 16px 28px 20px 28px;
    background: #ffffff;
}

.nova-general-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px 6px 4px 16px;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nova-general-link-box:focus-within {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.nova-general-link-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 0.885rem;
    font-weight: 500;
    color: #334155;
    padding: 4px 0;
    cursor: text;
}

.nova-general-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #4338ca;
    color: #ffffff !important;
    border: none;
    border-radius: 7px;
    padding: 7px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px 0 rgba(67, 56, 202, 0.2);
    flex-shrink: 0;
}

.nova-general-copy-btn:hover {
    background: #3730a3;
    color: #ffffff !important;
    box-shadow: 0 2px 5px 0 rgba(67, 56, 202, 0.3);
    transform: translateY(-1px);
}

.nova-general-copy-btn:active {
    transform: translateY(0);
}

.nova-general-copy-btn i {
    font-size: 0.88rem;
}

@media (max-width: 640px) {
    .nova-general-aff-header {
        padding: 18px 20px 16px 20px;
    }

    .nova-general-aff-body {
        padding: 16px 20px 20px 20px;
    }

    .nova-general-link-box {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }

    .nova-general-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Banners List & Cards */
/* =============================================================================
   AFFILIATE PRODUCT LINKS & BANNERS (TABEL MODERN & COMPACT)
   ============================================================================= */
.nova-banner-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nova-table-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nova-links-count-badge {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Tabel Utama Tautan Produk */
table.nova-aff-links-table {
    width: 100% !important;
    border-collapse: collapse;
}

table.nova-aff-links-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

table.nova-aff-links-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

table.nova-aff-links-table tbody tr.nova-banner-row {
    transition: background-color 0.15s ease;
}

table.nova-aff-links-table tbody tr.nova-banner-row:hover {
    background-color: #f8fafc;
}

/* Kolom Produk */
.nova-banner-prod-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nova-banner-type-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nova-banner-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nova-banner-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.nova-banner-subdesc {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kolom Target Halaman */
.nova-target-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: var(--nova-radius-md);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 240px;
    transition: var(--nova-transition);
}

.nova-target-link-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.nova-target-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kolom Tautan Afiliasi (Pill Copy Input) */
.nova-link-input-pill {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--nova-radius-md);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: var(--nova-transition);
}

.nova-link-input-pill:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.nova-link-url-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.825rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    color: #0f172a;
    min-width: 0;
}

.nova-btn-copy-link {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    border: none;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--nova-transition);
    white-space: nowrap;
}

.nova-btn-copy-link:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

/* Kolom Tombol Kode */
.nova-btn-embed-code {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 7px 14px;
    border-radius: var(--nova-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--nova-transition);
}

.nova-btn-embed-code:hover,
.nova-btn-embed-code.active {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Expand Row: Detail Kode Sematan */
.nova-banner-detail-row td {
    padding: 0 !important;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0 !important;
}

.nova-embed-container {
    padding: 20px 24px;
    border-left: 4px solid #4f46e5;
}

.nova-embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nova-embed-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nova-embed-title i {
    color: #4f46e5;
}

.nova-embed-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.15s ease;
}

.nova-embed-close:hover {
    color: #0f172a;
}

.nova-embed-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nova-embed-preview {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--nova-radius-md);
    padding: 14px 18px;
}

.nova-embed-preview-label,
.nova-embed-code-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
}

.nova-embed-preview-render img {
    max-width: 100%;
    height: auto;
    border-radius: var(--nova-radius-sm);
}

.nova-embed-textarea-box {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--nova-radius-md);
    overflow: hidden;
}

.nova-embed-textarea {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 14px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.8rem;
    color: #1e293b;
    resize: vertical;
    min-height: 64px;
}

.nova-btn-copy-embed {
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-left: 1px solid #cbd5e1;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: stretch;
    transition: var(--nova-transition);
    white-space: nowrap;
}

.nova-btn-copy-embed:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* =============================================================================
   AFFILIATE PAYOUT TABLE (SERASI DENGAN TEMA KAMPUSIM UI ENGINE)
   ============================================================================= */
table.nova-payout-table {
    width: 100% !important;
    border-collapse: collapse;
}

table.nova-payout-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}

table.nova-payout-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
    font-size: 0.9rem;
}

table.nova-payout-table tbody tr {
    transition: background-color 0.15s ease;
}

table.nova-payout-table tbody tr:hover {
    background-color: #f8fafc;
}

/* =============================================================================
   NOVA PRODUCT CATALOG / ORDER PRODUK (GRID SESUAI GAMBAR REFERENSI USER)
   ============================================================================= */
.nova-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1100px) {
    .nova-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .nova-catalog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.nova-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nova-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

.nova-prod-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.nova-prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.nova-product-card:hover .nova-prod-img {
    transform: scale(1.03);
}

.nova-prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.725rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    z-index: 2;
    letter-spacing: 0.02em;
}

.nova-prod-badge i {
    font-size: 0.7rem;
}

.nova-prod-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.nova-prod-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.nova-prod-desc {
    font-size: 0.835rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.nova-prod-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    margin-top: auto;
    margin-bottom: 16px;
}

.nova-prod-price-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.nova-prod-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.nova-prod-orig-price {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.nova-prod-sale-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.02em;
}

.nova-prod-btn-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #5850ec;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(88, 80, 236, 0.3);
}

.nova-prod-btn-buy:hover {
    background: #4338ca;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(67, 56, 202, 0.4);
}

.nova-prod-btn-buy:active {
    transform: translateY(0);
}

.nova-prod-btn-buy i {
    font-size: 0.95rem;
}

/* =============================================================================
   NEW NOVA DASHBOARD REDESIGN (SESUAI GAMBAR REFERENSI USER)
   ============================================================================= */

/* 1. HERO BANNER WELCOME */
.nova-dash-hero {
    background: linear-gradient(135deg, #7c7cf8 0%, #6366f1 50%, #4f46e5 100%);
    border-radius: 24px;
    padding: 40px 48px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 12px 36px -6px rgba(99, 102, 241, 0.35);
}

.nova-dash-hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.nova-dash-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}

.nova-dash-hero-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.25);
    color: #ffffff;
    border-radius: 8px;
    width: 38px;
    height: 42px;
    margin-right: 2px;
}

.nova-dash-hero-sub {
    font-size: 1.05rem;
    color: #e0e7ff;
    margin: 0 0 24px;
    font-weight: 400;
}

.nova-dash-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nova-dash-btn-product {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #4338ca !important;
    font-weight: 700;
    font-size: 0.925rem;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: var(--nova-transition);
}

.nova-dash-btn-product:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.nova-dash-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.925rem;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(18, 140, 126, 0.3);
    transition: var(--nova-transition);
}

.nova-dash-btn-whatsapp i {
    font-size: 1.25rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.nova-dash-btn-whatsapp:hover {
    background: linear-gradient(135deg, #2ae06d 0%, #0f9b8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 3px 8px rgba(18, 140, 126, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.nova-dash-btn-whatsapp:hover i {
    transform: scale(1.15) rotate(5deg);
}

.nova-dash-hero-art {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.nova-moon-svg {
    width: 145px;
    height: 145px;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: novaFloat 4s ease-in-out infinite;
}

@keyframes novaFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@media (max-width: 860px) {
    .nova-dash-hero {
        padding: 30px 24px;
        position: relative;
    }

    .nova-dash-hero-content {
        max-width: 72%;
    }

    .nova-dash-hero-art {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
        pointer-events: none;
    }

    .nova-moon-svg {
        width: 105px;
        height: 105px;
    }
}

@media (max-width: 600px) {
    .nova-dash-hero {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .nova-dash-hero-content {
        max-width: 100%;
        width: 100%;
    }

    .nova-dash-hero-title {
        font-size: 1.55rem;
        flex-wrap: wrap;
        padding-right: 65px;
        /* Memberi ruang agar tidak menabrak ikon bulan di pojok kanan atas */
    }

    .nova-dash-hero-letter {
        width: 32px;
        height: 35px;
        font-size: 1.25rem;
    }

    .nova-dash-hero-sub {
        font-size: 0.88rem;
        margin: 0 0 18px;
        padding-right: 55px;
        /* Hindari tumpang tindih teks dengan bulan */
        line-height: 1.45;
    }

    .nova-dash-hero-actions {
        width: 100%;
        gap: 10px;
    }

    .nova-dash-btn-product,
    .nova-dash-btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        font-size: 0.875rem;
    }

    .nova-dash-hero-art {
        position: absolute;
        top: 20px;
        right: 14px;
        transform: none;
        margin: 0;
        opacity: 0.9;
    }

    .nova-moon-svg {
        width: 68px;
        height: 68px;
    }
}

/* 2. STATS CARDS GRID (CLEAN MINIMALIST WHITE) */
.nova-stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .nova-stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* =========================================================================
       OPSI 1: SEGMENTED BAR 3 KOLOM DALAM 1 KARTU (MOBILE DASHBOARD)
       ========================================================================= */
    .nova-stats-cards-grid {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        background: #ffffff !important;
        border: 1px solid var(--nova-border, #e2e8f0) !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
        padding: 12px 0 !important;
        gap: 0 !important;
        margin-bottom: 22px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Setiap Segmen Kolom di Dalam Kartu Tunggal */
    .nova-stats-cards-grid .nova-stat-card-clean {
        flex: 1 1 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 6px 4px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: auto !important;
        position: relative !important;
        transition: background 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nova-stats-cards-grid .nova-stat-card-clean:hover,
    .nova-stats-cards-grid .nova-stat-card-clean:active {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
        background: rgba(241, 245, 249, 0.6) !important;
    }

    /* Garis Pembatas Vertikal Halus Antar Kolom */
    .nova-stats-cards-grid .nova-stat-card-clean:not(:last-child) {
        border-right: 1px solid #f1f5f9 !important;
    }

    /* Sembunyikan Ghost Icon Besar Agar Tampilan Minimalis & Bersih Ala Bar Finansial */
    .nova-stats-cards-grid .nova-stat-card-ghost-icon {
        display: none !important;
    }

    .nova-stats-cards-grid .nova-stat-card-text {
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Angka Nilai Besar di Bagian Atas */
    .nova-stats-cards-grid .nova-stat-card-val {
        order: 1 !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 1.45rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        margin-bottom: 3px !important;
    }

    /* Warna Angka Sesuai Makna Status */
    .nova-stats-cards-grid .card-stat-pending .nova-stat-card-val {
        color: #d97706 !important; /* Amber / Kuning Menunggu Bayar */
    }

    .nova-stats-cards-grid .card-stat-purchases .nova-stat-card-val {
        color: #2563eb !important; /* Royal Blue Total Pembelian */
    }

    .nova-stats-cards-grid .card-stat-active .nova-stat-card-val {
        color: #059669 !important; /* Emerald Green Produk Aktif */
    }

    /* Label Judul di Bawah Angka */
    .nova-stats-cards-grid .nova-stat-card-title {
        order: 2 !important;
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        text-align: center !important;
        letter-spacing: -0.01em !important;
        display: block !important;
    }
}

.nova-stat-card-clean {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    padding: 24px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: var(--nova-transition);
    position: relative;
    overflow: hidden;
}

.nova-stat-card-clean:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.nova-stat-card-text {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.nova-stat-card-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nova-stat-card-val {
    font-family: 'Outfit', sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.nova-stat-card-ghost-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    opacity: 1;
}

.icon-yellow {
    color: #b45309;
    background: #fde68a;
}

.icon-blue {
    color: #1d4ed8;
    background: #bfdbfe;
}

.icon-green {
    color: #047857;
    background: #a7f3d0;
}

/* Pewarnaan Soft Masing-Masing Kartu Metrik Dashboard */

/* 1. Menunggu Bayar (Soft Amber Gold) */
.nova-stat-card-clean.card-stat-pending {
    background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.07);
}

.nova-stat-card-clean.card-stat-pending:hover {
    border-color: #fcd34d;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.15);
    transform: translateY(-3px);
}

.nova-stat-card-clean.card-stat-pending .nova-stat-card-title {
    color: #b45309;
}

.nova-stat-card-clean.card-stat-pending .nova-stat-card-val {
    color: #78350f;
}

/* 2. Total Pembelian (Soft Sky Blue) */
.nova-stat-card-clean.card-stat-purchases {
    background: linear-gradient(135deg, #f8faff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.07);
}

.nova-stat-card-clean.card-stat-purchases:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.nova-stat-card-clean.card-stat-purchases .nova-stat-card-title {
    color: #1d4ed8;
}

.nova-stat-card-clean.card-stat-purchases .nova-stat-card-val {
    color: #1e3a8a;
}

/* 3. Produk Aktif (Soft Mint Emerald) */
.nova-stat-card-clean.card-stat-active {
    background: linear-gradient(135deg, #f7fdf9 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.07);
}

.nova-stat-card-clean.card-stat-active:hover {
    border-color: #6ee7b7;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.15);
    transform: translateY(-3px);
}

.nova-stat-card-clean.card-stat-active .nova-stat-card-title {
    color: #047857;
}

.nova-stat-card-clean.card-stat-active .nova-stat-card-val {
    color: #064e3b;
}

/* Pewarnaan Soft Kartu Statistik Afiliasi */

/* 1. Total Komisi (Soft Emerald Mint) */
.nova-stat-card-clean.card-stat-commission {
    background: linear-gradient(135deg, #f7fdf9 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.07);
}

.nova-stat-card-clean.card-stat-commission:hover {
    border-color: #6ee7b7;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.15);
    transform: translateY(-3px);
}

.nova-stat-card-clean.card-stat-commission .nova-stat-card-title {
    color: #047857;
}

.nova-stat-card-clean.card-stat-commission .nova-stat-card-title i {
    color: #10b981;
}

.nova-stat-card-clean.card-stat-commission .nova-stat-card-val {
    color: #065f46;
}

.nova-stat-card-clean.card-stat-commission .icon-commission {
    background: #d1fae5;
    color: #059669;
}

/* 2. Komisi Belum Terbayar (Soft Warm Amber) */
.nova-stat-card-clean.card-stat-unpaid {
    background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.07);
}

.nova-stat-card-clean.card-stat-unpaid:hover {
    border-color: #fcd34d;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.15);
    transform: translateY(-3px);
}

.nova-stat-card-clean.card-stat-unpaid .nova-stat-card-title {
    color: #b45309;
}

.nova-stat-card-clean.card-stat-unpaid .nova-stat-card-title i {
    color: #f59e0b;
}

.nova-stat-card-clean.card-stat-unpaid .nova-stat-card-val {
    color: #92400e;
}

.nova-stat-card-clean.card-stat-unpaid .icon-unpaid {
    background: #fef3c7;
    color: #d97706;
}

/* 3. Total Klik (Soft Indigo Lavender) */
.nova-stat-card-clean.card-stat-clicks {
    background: linear-gradient(135deg, #fbfbfe 0%, #eef2ff 100%);
    border: 1px solid #c7d2fe;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.07);
}

.nova-stat-card-clean.card-stat-clicks:hover {
    border-color: #a5b4fc;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.15);
    transform: translateY(-3px);
}

.nova-stat-card-clean.card-stat-clicks .nova-stat-card-title {
    color: #4338ca;
}

.nova-stat-card-clean.card-stat-clicks .nova-stat-card-title i {
    color: #6366f1;
}

.nova-stat-card-clean.card-stat-clicks .nova-stat-card-val {
    color: #1e1b4b;
}

.nova-stat-card-clean.card-stat-clicks .nova-stat-card-subtext {
    font-size: 0.8rem;
    color: #4f46e5;
    font-weight: 600;
    margin-top: 5px;
}

.nova-stat-card-clean.card-stat-clicks .icon-clicks {
    background: #e0e7ff;
    color: #4f46e5;
}

.icon-coins {
    color: rgba(255, 255, 255, 0.35);
    font-size: 2.4rem;
}

/* Card Poin Bergradasi Ungu-Pink */
.card-points-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%) !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.text-white-opacity {
    color: rgba(255, 255, 255, 0.85) !important;
}

.text-white {
    color: #ffffff !important;
}

/* 3. SECTION MINI HEAD & CLEAN TABLE */
.nova-section-mini-head {
    font-size: 0.785rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nova-table-clean {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto !important;
    width: 100% !important;
}

.nova-table-clean th.col-nowrap,
.nova-table-clean td.col-nowrap {
    white-space: nowrap !important;
    width: 1% !important;
}

.nova-table-clean th.col-product,
.nova-table-clean td.col-product {
    width: auto !important;
}

.nova-table-clean thead th {
    background: transparent !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.nova-table-clean tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.865rem;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

.nova-table-clean tbody tr:hover td {
    background-color: #f8fafc;
}

.nova-table-clean thead th:first-child,
.nova-table-clean tbody td:first-child {
    padding-left: 18px !important;
}

.nova-table-clean thead th:last-child,
.nova-table-clean tbody td:last-child {
    padding-right: 18px !important;
}

.nova-table-clean tbody tr:last-child td {
    border-bottom: none;
}

.nova-table-inv-code {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: var(--nova-transition);
}

.nova-table-inv-code:hover {
    color: #6366f1;
}

.nova-table-date-text {
    color: #64748b;
    font-size: 0.85rem;
}

.nova-table-prod-text {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

.nova-table-price-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
}

.nova-inv-status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.nova-inv-status-pill.badge-paid {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.nova-inv-status-pill.badge-free {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.nova-inv-status-pill.badge-pending {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

.nova-inv-status-pill.badge-cancelled {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

/* Tombol Aksi Transaksi */
.nova-btn-pay-now {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-size: 0.785rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.nova-btn-pay-now:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.4);
}

.nova-btn-pay-now i {
    font-size: 0.85rem;
}

.nova-btn-invoice-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 0.785rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nova-btn-invoice-detail:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

/* 4. BANNER TIPS UNTUKMU */

.nova-tips-banner {
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nova-tips-badge-star {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fb7185;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nova-tips-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #e11d48;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nova-tips-text {
    font-size: 0.885rem;
    color: #475569;
    line-height: 1.4;
}

/* 5. TWO CARDS: AFFILIATE & REKOMENDASI PRODUK */
.nova-section-features {
    background: transparent !important;
}

.nova-two-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    background: transparent !important;
}

.nova-feature-card-wrapper {
    background: transparent !important;
}

@media (max-width: 820px) {
    .nova-two-cards-grid {
        grid-template-columns: 1fr;
    }
}

.nova-feature-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nova-feature-card {
    border-radius: 20px;
    padding: 34px 32px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-cream {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.bg-mint {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.nova-feature-ghost-watermark {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 6.5rem;
    opacity: 0.12;
    color: #0f172a;
    pointer-events: none;
    line-height: 1;
}

.nova-feature-body {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.nova-feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.nova-feature-desc {
    font-size: 0.875rem;
    color: #475569;
    margin: 0 0 22px;
    line-height: 1.5;
}

.nova-btn-gradient-indigo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: var(--nova-transition);
}

.nova-btn-gradient-indigo:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

/* =============================================================================
   STYLING HALAMAN SOFTWARE LICENSES (Murni CSS untuk template default)
   ============================================================================= */
.am-body-software-license .am-block {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

.am-body-software-license .am-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.am-body-software-license .am-grid th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.785rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.am-body-software-license .am-grid th:first-child {
    border-top-left-radius: 12px;
}

.am-body-software-license .am-grid th:last-child {
    border-top-right-radius: 12px;
}

.am-body-software-license .am-grid td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    background: #ffffff;
    transition: background 0.15s ease;
}

.am-body-software-license .am-grid tr:last-child td {
    border-bottom: none;
}

.am-body-software-license .am-grid tr:hover td {
    background: #f8fafc;
}

/* Badge / Kode Lisensi */
.am-body-software-license .am-grid td code {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Judul Produk */
.am-body-software-license .am-grid td strong {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Status Expired / Lifetime */
.am-body-software-license .am-grid td:last-child {
    font-weight: 600;
    color: #059669;
}

/* =============================================================================
   REDESAIN HALAMAN INSTRUKSI PEMBAYARAN TRANSFER UNIK (Theme KampusIM UI Engine)
   ============================================================================= */
.tu-container {
    max-width: 820px !important;
    margin: 10px auto 40px !important;
    padding: 0 10px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.tu-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.02em !important;
}

/* Kartu Pembungkus Utama */
.tu-main-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 36px 32px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
    margin-bottom: 30px !important;
}

.tu-main-card>p:first-child {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Step Wrapper & Step Badges */
.tu-step {
    margin-bottom: 36px !important;
    padding-bottom: 28px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
}

.tu-step:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.tu-step-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #eef2ff !important;
    color: #4338ca !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin-bottom: 18px !important;
    border: 1px solid #c7d2fe !important;
}

/* Tabel Rincian Invoice & Jumlah Unik */
.tu-invoice-table {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 540px !important;
    width: 100% !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.tu-table-row {
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.tu-table-row:last-child {
    border-bottom: none !important;
}

.tu-table-row:nth-child(even) {
    background-color: #f8fafc !important;
}

.tu-table-label {
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.tu-table-value {
    font-size: 0.925rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.tu-table-value.price {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #4338ca !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Tombol Salin Kecil */
.tu-copy-btn {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #4338ca !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tu-copy-btn:hover {
    background: #4338ca !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
    transform: translateY(-1px) !important;
}

.tu-copy-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* Kartu Bank ATM yang Mewah */
.tu-step-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 14px !important;
    width: 100% !important;
}

.tu-premium-bank-card {
    border-radius: 16px !important;
    padding: 24px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.25) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9.5 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.tu-premium-bank-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.35) !important;
}

.tu-pcard-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.tu-pcard-bank-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
}

.tu-pcard-number {
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 8px 0 !important;
}

.tu-pcard-copy {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.725rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tu-pcard-copy:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
}

.tu-pcard-copy.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.tu-pcard-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
}

.tu-pcard-label {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 2px !important;
}

.tu-pcard-name {
    font-size: 0.885rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Tombol WhatsApp Resmi Nova */
.tu-btn-wa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #25D366 !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 13px 26px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    margin: 16px 0 20px 0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tu-btn-wa:hover {
    background: #20bd5a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5) !important;
    color: #ffffff !important;
}

/* Struk / Receipt Box */
.am-receipt {
    margin-top: 30px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    padding: 24px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03) !important;
}

.am-receipt-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.am-receipt-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.785rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.am-receipt-table td {
    padding: 14px 16px !important;
    font-size: 0.885rem !important;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Footer Catatan */
.tu-footer {
    margin-top: 28px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 0.885rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

.tu-footer-bold {
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* =============================================================================
   KAMPUSIM UI ENGINE - SOFTWARE LICENSE & DEVICE MANAGEMENT STYLES
   ============================================================================= */

/* 1. Header Banner Lisensi */
.nova-section-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--nova-shadow-sm);
    flex-wrap: wrap;
}

.nova-section-banner-content {
    flex: 1;
    min-width: 280px;
}

.nova-section-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.nova-section-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.nova-section-banner-desc {
    font-size: 0.925rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    max-width: 580px;
}

.nova-section-banner-stat-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nova-stat-chip {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-md);
    padding: 12px 20px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.nova-stat-chip-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.nova-stat-chip-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.nova-stat-chip-num.text-success {
    color: #10b981 !important;
}

/* 2. Card Table & Toolbar */
.nova-table-card {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    box-shadow: var(--nova-shadow-sm);
    overflow: hidden;
}

.nova-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--nova-border);
    gap: 20px;
    flex-wrap: wrap;
    background: #ffffff;
}

.nova-table-title-wrap {
    flex: 1;
    min-width: 250px;
}

.nova-table-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nova-table-title i {
    color: #4f46e5;
}

.nova-table-desc {
    font-size: 0.84rem;
    color: #64748b;
}


/* 3. Custom Table */
.nova-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nova-custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.nova-custom-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 24px;
    border-bottom: 1px solid var(--nova-border);
    white-space: nowrap;
}

.nova-custom-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.885rem;
}

.nova-custom-table tr.nova-license-row {
    transition: background-color 0.15s ease;
}

.nova-custom-table tr.nova-license-row:hover {
    background-color: #fafbfc;
}

/* Kolom Produk */
.nova-prod-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nova-prod-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.nova-prod-meta {
    display: flex;
    flex-direction: column;
}

.nova-prod-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.3;
}

.nova-prod-sub {
    font-size: 0.775rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Kolom Kunci Lisensi */
.nova-lic-cell-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.nova-lic-code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.835rem;
    font-weight: 600;
    color: #1e293b;
    padding: 5px 10px;
    user-select: all;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nova-lic-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nova-lic-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 6px;
    font-size: 0.825rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--nova-transition);
    border: none;
    flex-shrink: 0;
}

.nova-lic-action-btn.copy-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.nova-lic-action-btn.copy-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.nova-lic-action-btn.copy-btn.copied {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #059669 !important;
}

.nova-lic-action-btn.regen-btn {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
}

.nova-lic-action-btn.regen-btn:hover {
    background: #ffe4e6;
    color: #be123c;
    border-color: #fda4af;
}

.nova-lic-action-btn.disabled {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.nova-lic-reset-info {
    font-size: 0.745rem;
    color: #94a3b8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Badges Masa Berlaku */
.nova-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.nova-exp-badge.badge-lifetime {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.nova-exp-badge.badge-active {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.nova-exp-badge.badge-expired {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Kuota & Toggle Perangkat */
.nova-lic-quota-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nova-lic-quota-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nova-lic-quota-badge.full {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.nova-lic-quota-badge.used {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.nova-lic-quota-badge.empty {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.nova-lic-status-dot {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nova-lic-status-dot.active {
    color: #16a34a;
}

.nova-lic-status-dot.inactive {
    color: #dc2626;
}

.nova-btn-toggle-device {
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #4f46e5;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--nova-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nova-btn-toggle-device:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
}

.nova-btn-toggle-device.open {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

/* 4. Sub-row Detail Perangkat */
.nova-devices-card-inner {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.nova-devices-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.nova-devices-title {
    font-weight: 700;
    font-size: 0.885rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nova-devices-hint {
    font-size: 0.785rem;
    color: #64748b;
}

.nova-devices-table-wrap {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.nova-devices-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    box-sizing: border-box;
}

.nova-devices-table th {
    background: #f1f5f9;
    padding: 9px 12px;
    font-size: 0.735rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap !important;
}

.nova-devices-table td {
    padding: 10px 12px;
    font-size: 0.84rem;
    border-top: 1px solid #f1f5f9;
    vertical-align: middle;
    white-space: nowrap;
}

.nova-devices-table th.col-dev-th-action,
.nova-devices-table td.col-dev-action {
    text-align: center !important;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
}

.nova-device-label-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.nova-device-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.nova-device-name {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nova-btn-rename-device {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.785rem;
    padding: 3px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: var(--nova-transition);
}

.nova-btn-rename-device:hover {
    color: #4f46e5;
    background: #eef2ff;
}

.nova-chip-ip {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.785rem;
    font-family: monospace;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.nova-hwid-text {
    font-family: monospace;
    font-size: 0.78rem;
    color: #64748b;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.nova-device-date-text {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nova-btn-del-device {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: var(--nova-transition);
}

.nova-btn-del-device:hover {
    background: #ffe4e6;
    color: #be123c;
    border-color: #fda4af;
}

/* Helper Sembunyikan Baris Perangkat pada Halaman Non-Aktif Pagination */
.nova-devices-table tr.nova-device-row.is-page-hidden,
tr.nova-device-row.is-page-hidden {
    display: none !important;
}

.nova-devices-pagination.is-hidden {
    display: none !important;
}

/* Pagination Detail Perangkat (Desktop) */
.nova-devices-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 4px 6px;
    gap: 12px;
    margin-top: 8px;
    box-sizing: border-box;
    width: 100%;
}

.nova-dev-page-info {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.nova-dev-page-info strong {
    color: #1e293b;
    font-weight: 700;
}

.nova-dev-page-info-mobile {
    display: none;
}

.nova-dev-page-info-desktop {
    display: inline;
}

.nova-dev-page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nova-dev-page-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--nova-transition);
}

.nova-dev-page-btn:hover:not(:disabled) {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #a5b4fc;
}

.nova-dev-page-btn:disabled,
.nova-dev-page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    pointer-events: none;
}

.nova-dev-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nova-dev-page-num {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--nova-transition);
}

.nova-dev-page-num:hover:not(.active) {
    background: #f1f5f9;
    color: #1e293b;
}

.nova-dev-page-num.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .nova-section-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nova-section-banner-stat-wrap {
        width: 100%;
    }

    .nova-stat-chip {
        flex: 1;
        min-width: 100px;
    }

    .nova-table-toolbar {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nova-table-search-box {
        width: 100%;
    }
}

/* Penyesuaian Kerapatan & Tinggi Baris Tabel Data Lisensi Produk (Sama dengan Riwayat & Status Akses Produk) */
#novaLicenseTable thead th {
    padding: 10px 18px;
    font-size: 0.72rem;
    white-space: nowrap;
}

#novaLicenseTable tbody td {
    padding: 8px 18px;
    font-size: 0.86rem;
}

#novaLicenseTable .nova-prod-name {
    font-size: 0.875rem;
    line-height: 1.25;
}

#novaLicenseTable .nova-lic-cell-wrap {
    gap: 6px;
    white-space: nowrap;
}

#novaLicenseTable .nova-lic-code {
    padding: 3px 8px;
    font-size: 0.815rem;
    border-radius: 5px;
    white-space: nowrap;
}

#novaLicenseTable .nova-lic-actions {
    gap: 4px;
    white-space: nowrap;
}

#novaLicenseTable .nova-lic-action-btn {
    width: 26px;
    height: 26px;
    font-size: 0.775rem;
    border-radius: 5px;
    white-space: nowrap;
}

#novaLicenseTable .nova-exp-badge {
    padding: 3px 10px;
    font-size: 0.775rem;
    white-space: nowrap;
}

#novaLicenseTable .nova-lic-quota-wrap {
    gap: 2px;
    white-space: nowrap;
}

#novaLicenseTable .nova-lic-quota-badge {
    padding: 2px 8px;
    font-size: 0.775rem;
    white-space: nowrap;
}

#novaLicenseTable .nova-lic-status-dot {
    font-size: 0.7rem;
    white-space: nowrap;
}

#novaLicenseTable .nova-btn-toggle-device {
    padding: 2px 8px;
    font-size: 0.72rem;
    margin-top: 2px;
    white-space: nowrap;
}

#novaLicenseTable .nova-lic-reset-info {
    margin-top: 2px;
    font-size: 0.72rem;
}

.nova-page-software-licenses .nova-table-card {
    border-radius: 10px;
}

/* Helper Desktop Visibility untuk Tabel Lisensi */
@media (min-width: 769px) {

    .nova-lic-status-badge-wrap,
    .nova-lic-btn-text,
    .nova-lic-quota-label-mobile,
    .nova-lic-icon,
    .nova-lic-collapse-toggle,
    .nova-btn-toggle-all-lic,
    .nova-tx-collapse-toggle {
        display: none !important;
    }

    .nova-lic-quota-row-mobile {
        display: contents;
    }
}

/* =============================================================================
   KAMPUSIM UI ENGINE - SIGNUP PAGE (INTEGRATED IN PORTAL THEME)
   ============================================================================= */

.nova-portal-signup-page .nova-content-body {
    padding: 16px 20px 36px;
}

.nova-signup-portal-card {
    background: #ffffff;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg, 16px);
    box-shadow: var(--nova-shadow-sm);
    padding: 20px 26px 18px;
    max-width: 680px;
    margin: 0 auto 18px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nova-portal-signup-page .nova-content-body {
        padding: 12px 8px 24px;
    }

    .nova-signup-portal-card {
        padding: 16px 14px 16px;
        border-radius: 12px;
    }
}

.nova-signup-portal-header {
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.nova-signup-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.nova-signup-portal-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    letter-spacing: -0.015em !important;
}

.nova-signup-portal-desc {
    font-size: 0.815rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

/* Alert info login offer */
.nova-portal-alert-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 11px;
    font-size: 0.8rem;
    color: #1e40af;
    line-height: 1.35;
}

.nova-portal-alert-info i {
    font-size: 0.95rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.nova-portal-alert-info a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
}

.nova-portal-alert-info a:hover {
    color: #1d4ed8;
}

/* Form Wrap & Reset */
.nova-portal-form-wrap {
    width: 100%;
    box-sizing: border-box;
}

.nova-portal-form-wrap .am-form {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.nova-portal-form-wrap .am-form form {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.nova-portal-form-wrap fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 12px 0 !important;
    background: transparent !important;
}

.nova-portal-form-wrap legend {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 4px !important;
    margin: 14px 0 10px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    box-shadow: none !important;
    letter-spacing: -0.01em !important;
}

/* Setiap Baris Input Form (Ultra Compact: Margin Rapat 7px) */
.nova-portal-form-wrap .am-row {
    display: grid !important;
    grid-template-columns: 210px 1fr !important;
    gap: 14px !important;
    align-items: start !important;
    margin-bottom: 7px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Kolom Kiri: Label & Keterangan */
.nova-portal-form-wrap .am-row-title,
.nova-portal-form-wrap .am-element-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 0 !important;
    padding-top: 7px !important;
    /* Sejajar lurus dengan teks input tinggi 38px */
    width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.nova-portal-form-wrap .am-row-title label,
.nova-portal-form-wrap .am-element-title label {
    font-size: 0.835rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1.3 !important;
}

.nova-portal-form-wrap .am-row-required,
.nova-portal-form-wrap .required,
.nova-portal-form-wrap .am-required {
    color: #ef4444 !important;
    font-weight: 700 !important;
    margin-left: 2px !important;
}

/* Petunjuk & Hint (Tampil di Bawah Kotak Input Form) */
.nova-portal-form-wrap .am-element .comment,
.nova-portal-form-wrap .am-element-comment,
.nova-portal-form-wrap .am-element-desc,
.nova-portal-form-wrap .comment {
    display: block !important;
    font-size: 0.765rem !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-top: 3px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    width: 100% !important;
}

/* Kolom Kanan: Kotak Input Form */
.nova-portal-form-wrap .am-element {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Input Fields (Ukuran Ramping 38px, Sangat Rapi & Compact) */
.nova-portal-form-wrap input[type="text"],
.nova-portal-form-wrap input[type="email"],
.nova-portal-form-wrap input[type="password"],
.nova-portal-form-wrap input[type="tel"],
.nova-portal-form-wrap input[type="number"],
.nova-portal-form-wrap select {
    width: 100% !important;
    height: 38px !important;
    padding: 5px 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    color: #0f172a !important;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.nova-portal-form-wrap input[type="text"]:hover,
.nova-portal-form-wrap input[type="email"]:hover,
.nova-portal-form-wrap input[type="password"]:hover,
.nova-portal-form-wrap input[type="tel"]:hover,
.nova-portal-form-wrap input[type="number"]:hover,
.nova-portal-form-wrap select:hover {
    border-color: #cbd5e1 !important;
}

.nova-portal-form-wrap input[type="text"]:focus,
.nova-portal-form-wrap input[type="email"]:focus,
.nova-portal-form-wrap input[type="password"]:focus,
.nova-portal-form-wrap input[type="tel"]:focus,
.nova-portal-form-wrap input[type="number"]:focus,
.nova-portal-form-wrap select:focus {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.nova-portal-form-wrap textarea {
    width: 100% !important;
    padding: 7px 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #0f172a !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.nova-portal-form-wrap textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* First & Last Name Sejajar 2 Kolom (Grid Compact) */
.nova-portal-form-wrap .am-row[id*="name"] .am-element.group,
.nova-portal-form-wrap div[id*="name-0"] .am-element {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
}

@media (max-width: 600px) {

    .nova-portal-form-wrap .am-row[id*="name"] .am-element.group,
    .nova-portal-form-wrap div[id*="name-0"] .am-element {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================================================
   KARTU PILIHAN PRODUK (Ultra Compact Subscription Cards)
   ============================================================================= */
.nova-portal-form-wrap .am-row[id*="product"] .am-element br,
.nova-portal-form-wrap .am-row[id*="paysys"] .am-element br {
    display: none !important;
}

.nova-portal-form-wrap .am-row[id*="product"] .am-element label,
.nova-portal-form-wrap .am-product-wrapper,
.nova-portal-form-wrap label[for^="product-"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin-bottom: 5px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.nova-portal-form-wrap .am-row[id*="product"] .am-element label:hover,
.nova-portal-form-wrap .am-product-wrapper:hover,
.nova-portal-form-wrap label[for^="product-"]:hover {
    border-color: #a5b4fc !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08) !important;
    background: #fafbff !important;
}

/* State Checked / Aktif */
.nova-portal-form-wrap .am-row[id*="product"] .am-element label:has(input:checked),
.nova-portal-form-wrap label[for^="product-"]:has(input:checked) {
    border-color: #6366f1 !important;
    background: #f5f7ff !important;
    box-shadow: 0 0 0 1.5px #6366f1, 0 2px 8px rgba(99, 102, 241, 0.08) !important;
}

.nova-portal-form-wrap .am-row[id*="product"] input[type="radio"],
.nova-portal-form-wrap .am-row[id*="product"] input[type="checkbox"],
.nova-portal-form-wrap label[for^="product-"] input {
    margin: 0 8px 0 0 !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #4f46e5 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

.nova-portal-form-wrap .am-product-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    flex: 1 1 auto !important;
    margin-right: 8px !important;
    line-height: 1.3 !important;
}

.nova-portal-form-wrap .am-product-terms {
    background: #eef2ff !important;
    color: #4338ca !important;
    font-size: 0.775rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 16px !important;
    border: 1px solid #c7d2fe !important;
    white-space: nowrap !important;
    display: inline-block !important;
    margin-left: auto !important;
}

.nova-portal-form-wrap .am-product-desc {
    display: block !important;
    width: 100% !important;
    font-size: 0.765rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
    padding-left: 24px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

/* =============================================================================
   KARTU METODE PEMBAYARAN (Compact Payment System Cards)
   ============================================================================= */
.nova-portal-form-wrap .am-row[id*="paysys"] .am-element label,
.nova-portal-form-wrap label[for^="paysys_id-"] {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    margin-bottom: 5px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.nova-portal-form-wrap .am-row[id*="paysys"] .am-element label:hover,
.nova-portal-form-wrap label[for^="paysys_id-"]:hover {
    border-color: #a5b4fc !important;
    background: #fafbff !important;
}

.nova-portal-form-wrap .am-row[id*="paysys"] .am-element label:has(input:checked),
.nova-portal-form-wrap label[for^="paysys_id-"]:has(input:checked) {
    border-color: #6366f1 !important;
    background: #f5f7ff !important;
    box-shadow: 0 0 0 1.5px #6366f1, 0 2px 8px rgba(99, 102, 241, 0.08) !important;
}

.nova-portal-form-wrap .am-row[id*="paysys"] input[type="radio"],
.nova-portal-form-wrap label[for^="paysys_id-"] input {
    margin: 0 8px 0 0 !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #4f46e5 !important;
    flex-shrink: 0 !important;
}

/* Tampilan Kartu Jika Hanya Ada 1 Metode Pembayaran (Tanpa Radio) */
.nova-portal-form-wrap .am-row[id*="paysys"] .am-element:not(:has(label)),
.nova-portal-form-wrap .am-row#row-paysys_id .am-element {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 3px 10px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.nova-portal-form-wrap .am-paysystem-title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.nova-portal-form-wrap .am-row[id*="paysys"] .am-element:not(:has(label)) .am-paysystem-title::before,
.nova-portal-form-wrap .am-row#row-paysys_id .am-element .am-paysystem-title::before {
    content: "\f19c";
    /* FontAwesome bank icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #4f46e5;
    font-size: 0.9rem;
}

.nova-portal-form-wrap .am-paysystem-desc {
    font-size: 0.775rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Password Strength Indicator Wrapper (Lebar 100% Penuh & Bersih) */
.nova-portal-form-wrap .am-pass-indicator-wrap {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.nova-portal-form-wrap .am-pass-indicator-wrap input[type="password"] {
    width: 100% !important;
}

/* Sembunyikan garis meteran password bawaan aMember agar form bersih dan seragam */
.nova-portal-form-wrap .am-pass-indicator-bar {
    display: none !important;
}

/* Checkbox & Radio Standar (Agreement, dsb) */
.nova-portal-form-wrap .am-element-checkbox,
.nova-portal-form-wrap .am-element-radio,
.nova-portal-form-wrap label.am-checkbox,
.nova-portal-form-wrap label.am-radio,
.nova-portal-form-wrap .am-row[id*="agreement"] label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.815rem !important;
    color: #475569 !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
}

.nova-portal-form-wrap input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    accent-color: #4f46e5 !important;
    cursor: pointer !important;
    border-radius: 4px !important;
}

/* Coupon Code Input */
.nova-portal-form-wrap .am-row[id*="coupon"] .am-element {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.nova-portal-form-wrap .am-row[id*="coupon"] input[type="text"] {
    max-width: 220px !important;
}

/* Tombol Submit Pendaftaran (Sejajar Kolom Kanan) */
.nova-portal-form-wrap .am-row-buttons,
.nova-portal-form-wrap div[id*="buttons"] {
    display: grid !important;
    grid-template-columns: 210px 1fr !important;
    gap: 14px !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding-top: 2px !important;
}

.nova-portal-form-wrap .am-row-buttons .am-element,
.nova-portal-form-wrap div[id*="buttons"] .am-element {
    grid-column: 2 / -1 !important;
}

.nova-portal-form-wrap input[type="submit"],
.nova-portal-form-wrap button[type="submit"] {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 18px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.925rem !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 3px 12px -1px rgba(79, 70, 229, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.nova-portal-form-wrap input[type="submit"]:hover,
.nova-portal-form-wrap button[type="submit"]:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px -1px rgba(79, 70, 229, 0.45) !important;
}

.nova-portal-form-wrap input[type="submit"]:active,
.nova-portal-form-wrap button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Responsif Mobile (< 768px): Kembali ke 1 Kolom Vertikal */
@media (max-width: 768px) {

    .nova-portal-form-wrap .am-row,
    .nova-portal-form-wrap .am-row-buttons,
    .nova-portal-form-wrap div[id*="buttons"] {
        grid-template-columns: 1fr !important;
        gap: 3px !important;
        margin-bottom: 8px !important;
    }

    .nova-portal-form-wrap .am-row-title,
    .nova-portal-form-wrap .am-element-title {
        padding-top: 0 !important;
        margin-bottom: 2px !important;
    }

    .nova-portal-form-wrap .am-row-buttons .am-element,
    .nova-portal-form-wrap div[id*="buttons"] .am-element {
        grid-column: 1 / -1 !important;
    }
}

/* Validasi & Error Alert */
.nova-portal-form-wrap .am-error,
.nova-portal-form-wrap .error {
    color: #ef4444 !important;
    font-size: 0.775rem !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    display: block !important;
}

.nova-portal-form-wrap .reqnote {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    margin-top: 8px !important;
    text-align: right !important;
}

/* Footer Tautan Login */
.nova-signup-portal-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.825rem;
    color: #64748b;
}

.nova-signup-portal-footer a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.nova-signup-portal-footer a:hover {
    color: #4338ca;
    text-decoration: underline;
}



/* =============================================================================
   AFFILIATE LEADS (AFF-LEADS) - IDENTIK 100% STYLE "LINK AKSES PRODUK"
   KampusIM UI Engine - Modern Clean Leads Management UI
   ============================================================================= */

.nova-page-aff-leads .nova-table-card {
    border-radius: 10px;
    background-color: var(--nova-surface, #ffffff);
    border: 1px solid var(--nova-border, #e2e8f0);
    box-shadow: var(--nova-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
    overflow: hidden;
    margin-bottom: 28px;
}

/* Toolbar Utama */
.nova-page-aff-leads .nova-table-toolbar {
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--nova-border, #e2e8f0);
    background: #ffffff;
}

.nova-page-aff-leads .nova-table-title-wrap {
    display: flex;
    flex-direction: column;
}

.nova-page-aff-leads .nova-table-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--nova-text-main, #0f172a);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nova-page-aff-leads .nova-table-title i {
    color: var(--nova-primary, #4f46e5);
}

.nova-page-aff-leads .nova-table-desc {
    font-size: 0.835rem;
    color: var(--nova-text-muted, #64748b);
}

.nova-leads-actions-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Kotak Pencarian Kapsul (Identik .nova-table-search-box Link Akses Produk) */
.nova-page-aff-leads .nova-table-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 0 16px;
    height: 38px;
    width: 290px;
    max-width: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.nova-page-aff-leads .nova-table-search-box:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.nova-page-aff-leads .nova-table-search-box:focus-within {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14), 0 2px 8px rgba(99, 102, 241, 0.06);
}

.nova-page-aff-leads .nova-table-search-box i {
    color: #94a3b8;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.nova-page-aff-leads .nova-table-search-box:focus-within i {
    color: #6366f1;
}

.nova-page-aff-leads .nova-table-search-box input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 0.835rem;
    color: #0f172a;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.nova-page-aff-leads .nova-table-search-box input::placeholder {
    color: #94a3b8;
    font-size: 0.825rem;
    font-weight: 400;
}

/* Tombol Export Leads */
.nova-export-leads-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.825rem;
    padding: 8px 16px;
    border-radius: var(--nova-radius-md, 8px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
    height: 38px;
    box-sizing: border-box;
}

.nova-export-leads-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.38) !important;
    transform: translateY(-1px);
}

/* Filter Strip Periode Tanggal */
.nova-leads-filter-strip {
    background: #f8fafc;
    border-bottom: 1px solid var(--nova-border, #e2e8f0);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.nova-filter-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nova-filter-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 10px;
    height: 32px;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.nova-filter-date-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.nova-filter-label {
    font-size: 0.775rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nova-date-field {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.8rem !important;
    color: #1e293b !important;
    font-family: inherit !important;
    padding: 0 !important;
    cursor: pointer;
}

.nova-filter-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 0 12px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nova-filter-apply-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.nova-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ef4444;
    font-size: 0.775rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0 8px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nova-filter-reset-btn:hover {
    background: #fee2e2;
}

.nova-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid #c7d2fe;
}

/* Tabel Leads (Kerapatan Identik 100% dengan #novaResourcesTable) */
#novaLeadsTable {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#novaLeadsTable thead th {
    padding: 10px 18px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid var(--nova-border, #e2e8f0);
}

#novaLeadsTable tbody td {
    padding: 8px 18px !important;
    font-size: 0.86rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: #1e293b;
    transition: background-color 0.15s ease;
}

#novaLeadsTable tbody tr:hover td {
    background-color: #f8fafc;
}

#novaLeadsTable tbody tr:last-child td {
    border-bottom: none;
}

#novaLeadsTable .nova-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
}

#novaLeadsTable .nova-prod-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#novaLeadsTable .nova-prod-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#novaLeadsTable .nova-prod-meta {
    display: flex;
    flex-direction: column;
}

#novaLeadsTable .nova-prod-name {
    font-size: 0.84rem;
    line-height: 1.3;
    color: #334155;
    font-weight: 400;
}

#novaLeadsTable .col-lead-status .nova-exp-badge {
    padding: 3px 10px;
    font-size: 0.775rem;
}

.nova-lead-email-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 0.84rem;
}

.nova-lead-email-wrap i {
    color: #94a3b8;
    font-size: 0.85rem;
}

.nova-lead-date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.825rem;
    font-variant-numeric: tabular-nums;
}

.nova-lead-date-wrap i {
    color: #94a3b8;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .nova-page-aff-leads .nova-table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nova-leads-actions-wrap {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nova-page-aff-leads .nova-table-search-box {
        width: 100%;
    }

    .nova-export-leads-btn {
        justify-content: center;
    }

    .nova-leads-filter-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .nova-filter-dates {
        width: 100%;
    }

    .nova-filter-date-group {
        flex: 1;
    }
}

/* =============================================================================
   AFFILIATE COUPONS (AFF-COUPONS) - KAMPUSIM UI ENGINE
   Modern Voucher Ticket & Clean Coupon Management
   ============================================================================= */

.nova-page-aff-coupons .nova-table-card {
    border-radius: 10px;
    background-color: var(--nova-surface, #ffffff);
    border: 1px solid var(--nova-border, #e2e8f0);
    box-shadow: var(--nova-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
    overflow: hidden;
    margin-bottom: 28px;
}

.nova-page-aff-coupons .nova-table-toolbar {
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--nova-border, #e2e8f0);
    background: #ffffff;
}

.nova-coupons-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nova-coupons-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

#novaCouponsTable {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#novaCouponsTable thead th {
    padding: 10px 18px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid var(--nova-border, #e2e8f0);
}

#novaCouponsTable tbody td {
    padding: 10px 18px !important;
    font-size: 0.86rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: #1e293b;
    transition: background-color 0.15s ease;
}

#novaCouponsTable tbody tr:hover td {
    background-color: #f8fafc;
}

#novaCouponsTable tbody tr:last-child td {
    border-bottom: none;
}

.nova-voucher-pill-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nova-voucher-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px dashed #6366f1;
    color: #4338ca;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    user-select: all;
    transition: all 0.15s ease;
}

.nova-voucher-tag:hover {
    background: #eef2ff;
    border-color: #4f46e5;
}

.nova-copy-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.nova-copy-code-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #4f46e5;
    transform: translateY(-1px);
}

.nova-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 700;
    white-space: nowrap;
}

.nova-coupon-product-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.35;
}

.nova-commission-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    color: #475569;
    font-weight: 600;
}

.nova-usage-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 0.85rem;
    color: #0f172a;
}

.nova-usage-max {
    font-size: 0.775rem;
    color: #94a3b8;
}

.nova-btn-edit-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nova-btn-edit-code:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

/* =============================================================================
   GLOBAL TOAST NOTIFICATION
   ============================================================================= */
.nova-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--nova-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.885rem;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.nova-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.nova-toast.success i {
    color: #34d399;
}

.nova-toast.error {
    background: #dc2626;
}

.nova-toast.error i {
    color: #ffffff;
}

/* =============================================================================
   KAMPUSIM UI ENGINE - ADVANCED RESPONSIVE & MOBILE ENGINE
   ============================================================================= */

/* 1. Mobile Sticky Topbar (<= 1024px) */
.nova-mobile-topbar {
    display: none;
}

.nova-mobile-bottom-bar {
    display: none;
}

@media (min-width: 1025px) {

    .nova-mobile-topbar,
    .nova-mobile-bottom-bar,
    .nova-mobile-floating-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .nova-mobile-floating-toggle {
        display: none !important;
    }

    .nova-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--nova-border, #e2e8f0);
        z-index: 940;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .nova-mobile-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid var(--nova-border, #e2e8f0);
        color: #1e293b;
        font-size: 1.15rem;
        cursor: pointer;
        transition: all 0.18s ease;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .nova-mobile-toggle-btn:hover,
    .nova-mobile-toggle-btn:active {
        background: #f1f5f9;
        color: var(--nova-primary, #4f46e5);
        border-color: #cbd5e1;
        transform: scale(0.96);
    }

    .nova-mobile-brand {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 0 8px;
    }

    .nova-mobile-brand .nova-brand-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        max-width: 100%;
    }

    .nova-mobile-brand .nova-brand-img {
        max-height: 32px;
        width: auto;
        object-fit: contain;
    }

    .nova-mobile-brand .nova-brand-text {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--nova-brand-color-mobile, #0f172a);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nova-mobile-brand .nova-brand-title {
        color: var(--nova-brand-color-mobile, #0f172a) !important;
    }

    .nova-mobile-user-action {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        min-width: 40px;
    }

    .nova-mobile-avatar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nova-mobile-avatar-btn .nova-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #e2e8f0;
    }

    .nova-mobile-avatar-btn:active {
        transform: scale(0.92);
    }

    .nova-mobile-login-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: #eef2ff;
        color: var(--nova-primary, #4f46e5);
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.18s ease;
    }

    .nova-mobile-login-btn:hover {
        background: var(--nova-primary, #4f46e5);
        color: #ffffff;
    }

    /* Sidebar Drawer Upgrade */
    .nova-sidebar {
        width: min(84vw, 300px);
        max-width: 320px;
        transform: translate3d(-100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        -webkit-overflow-scrolling: touch;
    }

    .nova-sidebar.active {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }
}

/* 2. Mobile Bottom Bar & Touch Ergonomics (<= 768px) */
@media (max-width: 768px) {

    /* Sembunyikan tombol menu toggle di kiri atas pada HP (<= 768px) karena redundan dengan tombol Menu di bottom bar */
    .am-logged-in .nova-mobile-toggle-btn {
        display: none !important;
    }

    .am-logged-in .nova-mobile-brand {
        justify-content: flex-start;
        padding-left: 0;
    }

    /* Mencegah konten tertutup Bottom Navigation Bar */
    .nova-app-body.am-logged-in,
    .nova-app-body.am-logged-in .nova-main-container {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .nova-mobile-bottom-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--nova-border, #e2e8f0);
        z-index: 990 !important;
        box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.05);
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateZ(0);
    }

    .nova-mob-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px 2px;
        text-decoration: none;
        color: #64748b;
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.16s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nova-mob-nav-icon {
        font-size: 1.12rem;
        line-height: 1;
        margin-bottom: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 20px;
        transition: transform 0.15s ease, color 0.15s ease;
    }

    .nova-mob-nav-label {
        font-size: 0.675rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }

    .nova-mob-nav-item.active {
        color: var(--nova-primary, #4f46e5);
    }

    .nova-mob-nav-item.active .nova-mob-nav-icon {
        transform: translateY(-2px);
    }

    .nova-mob-nav-item:active {
        transform: scale(0.92);
    }

    /* iOS Input Auto-Zoom Prevention (Ukuran font minimal 16px saat fokus form di HP) */
    .nova-portal-form-wrap input[type="text"],
    .nova-portal-form-wrap input[type="email"],
    .nova-portal-form-wrap input[type="password"],
    .nova-portal-form-wrap input[type="tel"],
    .nova-portal-form-wrap input[type="number"],
    .nova-portal-form-wrap input[type="search"],
    .nova-portal-form-wrap select,
    .nova-portal-form-wrap textarea,
    .nova-table-search-box input,
    .nova-general-link-input,
    .nova-builder-input {
        font-size: 16px !important;
    }

    /* =========================================================================
       RESPONSIVE MOBILE TABLES (MODERN CARD-BASED TRANSFORMATION)
       ========================================================================= */

    /* Hilangkan batasan lebar kaku & overflow yang merusak layout */
    .nova-table-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .nova-table-toolbar {
        background: #ffffff !important;
        border: 1px solid var(--nova-border, #e2e8f0) !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }

    .nova-table-search-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .nova-table-responsive {
        width: 100% !important;
        overflow-x: visible !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* Transformasi Tabel Menjadi Block / Kartu Bertumpuk */
    .nova-table-responsive>table,
    .nova-table-responsive>.nova-table,
    .nova-table-responsive>.nova-custom-table,
    table.nova-table,
    table.nova-custom-table,
    table.nova-devices-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border: none !important;
        background: transparent !important;
        table-layout: auto !important;
    }

    /* Sembunyikan Header Kolom Tabel Desktop */
    .nova-table-responsive thead,
    table.nova-table thead,
    table.nova-custom-table thead,
    table.nova-devices-table thead {
        display: none !important;
    }

    /* Badan Tabel Menjadi Flex Container Vertikal */
    .nova-table-responsive tbody,
    table.nova-table tbody,
    table.nova-custom-table tbody,
    table.nova-devices-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Setiap Baris (TR) Berubah Menjadi Kartu Mandiri yang Bersih & Rapi */
    .nova-table-responsive tbody tr,
    table.nova-table tbody tr,
    table.nova-custom-table tbody tr,
    table.nova-devices-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid var(--nova-border, #e2e8f0) !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    .nova-table-responsive tbody tr:hover,
    table.nova-table tbody tr:hover,
    table.nova-custom-table tbody tr:hover {
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    }

    /* Setiap Sel (TD) Menjadi Baris Key-Value di Dalam Kartu */
    .nova-table-responsive tbody td,
    table.nova-table tbody td,
    table.nova-custom-table tbody td,
    table.nova-devices-table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 7px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: right !important;
        min-width: 0 !important;
        font-size: 0.86rem !important;
    }

    .nova-table-responsive tbody td:last-child,
    table.nova-table tbody td:last-child,
    table.nova-custom-table tbody td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    /* Label Dinamis Berdasarkan Header Kolom */
    .nova-table-responsive tbody td::before,
    table.nova-table tbody td::before,
    table.nova-custom-table tbody td::before,
    table.nova-devices-table tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
        text-align: left !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Sembunyikan Nomor Urut Tabel di Handphone Agar Tampilan Ringkas */
    .nova-table-responsive tbody td.col-no,
    table.nova-table tbody td.col-no,
    table.nova-custom-table tbody td.col-no {
        display: none !important;
    }

    /* Kolom Judul / Hero Produk di Paling Atas Kartu */
    .nova-table-responsive tbody td.col-product,
    .nova-table-responsive tbody td.col-title,
    .nova-table-responsive tbody td.col-resource-info,
    .nova-table-responsive tbody td.col-lead-info,
    .nova-table-responsive tbody td.col-items,
    table.nova-table tbody td.col-product,
    table.nova-table tbody td.col-title,
    table.nova-table tbody td.col-items,
    table.nova-custom-table tbody td.col-product,
    table.nova-custom-table tbody td.col-resource-info {
        order: -2 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-bottom: 10px !important;
        margin-bottom: 2px !important;
    }

    .nova-table-responsive tbody td.col-product::before,
    .nova-table-responsive tbody td.col-title::before,
    .nova-table-responsive tbody td.col-resource-info::before,
    .nova-table-responsive tbody td.col-lead-info::before,
    .nova-table-responsive tbody td.col-items::before,
    table.nova-table tbody td.col-product::before,
    table.nova-table tbody td.col-title::before,
    table.nova-table tbody td.col-items::before,
    table.nova-custom-table tbody td.col-product::before,
    table.nova-custom-table tbody td.col-resource-info::before {
        display: none !important;
    }

    .nova-prod-name,
    .nova-table-prod-text {
        font-size: 0.98rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }

    .nova-prod-sub {
        font-size: 0.8rem !important;
        color: #64748b !important;
        margin-top: 3px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }

    /* Kolom Invoice Sebagai Header Kartu Transaksi */
    .nova-table-responsive tbody td.col-invoice,
    table.nova-table tbody td.col-invoice {
        order: -3 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        padding-bottom: 8px !important;
    }

    /* Tombol Aksi di Bagian Bawah Kartu (Full Width, Mudah Diklik Jempol) */
    .nova-table-responsive tbody td.col-action,
    .nova-table-responsive tbody td.col-resource-action,
    table.nova-table tbody td.col-action,
    table.nova-custom-table tbody td.col-resource-action {
        justify-content: stretch !important;
        margin-top: 4px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
        border-bottom: none !important;
        order: 10 !important;
    }

    .nova-table-responsive tbody td.col-action::before,
    .nova-table-responsive tbody td.col-resource-action::before,
    table.nova-table tbody td.col-action::before,
    table.nova-custom-table tbody td.col-resource-action::before {
        display: none !important;
    }

    .nova-btn-pay-now,
    .nova-btn-invoice-detail,
    .nova-table-action-btn,
    .nova-btn-edit-code,
    .nova-table-action-wrap>a,
    .nova-table-action-wrap>button {
        width: 100% !important;
        justify-content: center !important;
        height: 38px !important;
        font-size: 0.86rem !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Penanganan Khusus Baris Kosong (Empty State) */
    .nova-table-responsive tbody td[colspan],
    table.nova-table tbody td[colspan],
    table.nova-custom-table tbody td[colspan] {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 32px 16px !important;
        border: none !important;
    }

    .nova-table-responsive tbody td[colspan]::before,
    table.nova-table tbody td[colspan]::before,
    table.nova-custom-table tbody td[colspan]::before {
        display: none !important;
    }

    /* Summary / Footer Tabel (TFOOT) */
    .nova-table-responsive tfoot,
    table.nova-table tfoot,
    table.nova-custom-table tfoot {
        display: block !important;
        margin-top: 14px !important;
    }

    .nova-table-responsive tfoot tr,
    table.nova-table tfoot tr,
    table.nova-custom-table tfoot tr {
        display: flex !important;
        flex-direction: column !important;
        background: #f8fafc !important;
        border: 2px solid #e0e7ff !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .nova-table-responsive tfoot td,
    table.nova-table tfoot td,
    table.nova-custom-table tfoot td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        font-size: 0.88rem !important;
    }

    .nova-table-responsive tfoot td:last-child {
        border-bottom: none !important;
    }

    .nova-table-responsive tfoot td::before {
        content: attr(data-label);
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #475569 !important;
    }

    .nova-table-responsive tfoot td.nova-td-date {
        border-bottom: 1px solid #c7d2fe !important;
        padding-bottom: 8px !important;
    }

    .nova-table-responsive tfoot td.nova-td-date::before {
        display: none !important;
    }

    /* =========================================================================
       SPESIFIK: TABEL TRANSAKSI TERAKHIR (DASHBOARD MEMBER)
       ========================================================================= */
    .nova-table-clean {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    .nova-table-clean thead {
        display: none !important;
    }

    .nova-table-clean tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    /* Setiap baris transaksi menjadi kartu modern ber-grid 2 kolom */
    .nova-table-clean tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "product status"
            "invoice invoice"
            "date date"
            "total total"
            "action action" !important;
        background: #ffffff !important;
        border: 1px solid var(--nova-border, #e2e8f0) !important;
        border-radius: 16px !important;
        padding: 16px 18px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        gap: 8px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        border-left: 4px solid #94a3b8 !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nova-table-clean tbody tr:hover,
    .nova-table-clean tbody tr:active {
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    }

    /* Indikator Warna Status di Tepi Kiri Kartu Transaksi */
    .nova-table-clean tbody tr.badge-paid {
        border-left-color: #10b981 !important;
        /* Hijau - Lunas */
    }

    .nova-table-clean tbody tr.badge-pending {
        border-left-color: #f59e0b !important;
        /* Amber - Menunggu Pembayaran */
    }

    .nova-table-clean tbody tr.badge-free {
        border-left-color: #6366f1 !important;
        /* Indigo - Gratis */
    }

    .nova-table-clean tbody tr.badge-cancelled {
        border-left-color: #ef4444 !important;
        /* Merah - Dibatalkan */
    }

    /* 1. Baris Pertama Kiri: Judul Produk */
    .nova-table-clean td.col-product {
        grid-area: product !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 10px 10px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .nova-table-clean td.col-product::before {
        display: none !important;
    }

    .nova-table-clean .nova-tx-prod-header {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .nova-table-clean td.col-product .nova-table-prod-text {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.4 !important;
        min-width: 0 !important;
    }

    /* Saat Collapsed: Nama produk 1 baris rapi dengan ellipsis agar status & arrowdown tidak menurun */
    .nova-table-clean tbody tr.is-collapsed td.col-product .nova-table-prod-text {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        width: 100% !important;
    }

    /* Saat Expand: Nama produk dapat tampil penuh (wrap multiline) */
    .nova-table-clean tbody tr:not(.is-collapsed) td.col-product .nova-table-prod-text {
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* 2. Baris Pertama Kanan: Status Badge & Chevron Toggle */
    .nova-table-clean td.col-status {
        grid-area: status !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 0 10px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin: 0 !important;
        width: auto !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .nova-table-clean td.col-status::before {
        display: none !important;
    }

    .nova-table-clean .nova-tx-status-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .nova-table-clean td.col-status .nova-inv-status-pill {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .nova-tx-collapse-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 7px !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #64748b !important;
        font-size: 0.68rem !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .nova-tx-collapse-toggle:hover,
    .nova-tx-collapse-toggle:active {
        background: #e2e8f0 !important;
        color: #0f172a !important;
    }

    .nova-table-clean tbody tr:not(.is-collapsed) .nova-tx-collapse-toggle {
        background: #eef2ff !important;
        color: #4f46e5 !important;
        border-color: #c7d2fe !important;
    }

    .nova-table-clean tbody tr:not(.is-collapsed) .nova-tx-chevron {
        transform: rotate(180deg) !important;
    }

    .nova-tx-chevron {
        transition: transform 0.2s ease !important;
    }

    /* Mode Collapsed pada Baris Transaksi (Khusus Mobile) */
    .nova-table-clean tbody tr.is-collapsed {
        padding: 13px 16px !important;
        gap: 0 !important;
        align-items: center !important;
    }

    .nova-table-clean tbody tr.is-collapsed td.col-product,
    .nova-table-clean tbody tr.is-collapsed td.col-status {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .nova-table-clean tbody tr.is-collapsed td.col-invoice,
    .nova-table-clean tbody tr.is-collapsed td.col-date,
    .nova-table-clean tbody tr.is-collapsed td.col-total,
    .nova-table-clean tbody tr.is-collapsed td.col-action {
        display: none !important;
    }

    /* 3. Baris Kedua: Kode Invoice */
    .nova-table-clean td.col-invoice {
        grid-area: invoice !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .nova-table-clean td.col-invoice::before {
        content: "No. Invoice" !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
        display: inline-block !important;
    }

    .nova-table-clean td.col-invoice .nova-table-inv-code {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: #334155 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: #f8fafc !important;
        padding: 4px 10px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        letter-spacing: 0.02em !important;
    }

    /* 4. Baris Ketiga: Tanggal Transaksi */
    .nova-table-clean td.col-date {
        grid-area: date !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .nova-table-clean td.col-date::before {
        content: "Tanggal" !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
    }

    .nova-table-clean td.col-date .nova-table-date-text {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        color: #334155 !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* 5. Baris Keempat: Total Tagihan */
    .nova-table-clean td.col-total {
        grid-area: total !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .nova-table-clean td.col-total::before {
        content: "Total Pembayaran" !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
    }

    .nova-table-clean td.col-total .nova-table-price-text {
        font-family: 'Outfit', sans-serif !important;
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .nova-table-clean tbody tr.badge-paid td.col-total .nova-table-price-text {
        color: #059669 !important;
    }

    .nova-table-clean tbody tr.badge-pending td.col-total .nova-table-price-text {
        color: #d97706 !important;
    }

    /* 6. Baris Kelima: Tombol Aksi */
    .nova-table-clean td.col-action {
        grid-area: action !important;
        display: block !important;
        width: 100% !important;
        padding: 8px 0 0 0 !important;
        border: none !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .nova-table-clean td.col-action::before {
        display: none !important;
    }

    .nova-table-clean td.col-action .nova-btn-pay-now {
        width: 100% !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28) !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    .nova-table-clean td.col-action .nova-btn-invoice-detail {
        width: 100% !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #f8fafc !important;
        color: #334155 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 10px !important;
        font-size: 0.86rem !important;
        font-weight: 600 !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    /* Empty state */
    .nova-table-clean tbody tr:has(td[colspan]) {
        display: block !important;
        padding: 36px 16px !important;
        text-align: center !important;
        border-left: 1px solid var(--nova-border, #e2e8f0) !important;
    }

    .nova-table-clean tbody tr:has(td[colspan]) td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 0 !important;
        text-align: center !important;
    }

    /* =========================================================================
       SPESIFIK: TABEL LISENSI SOFTWARE (software-license.phtml) RESPONSIVE
       ========================================================================= */
    .nova-lic-toolbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .nova-lic-toolbar-right .nova-table-search-box {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .nova-btn-toggle-all-lic {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        height: 38px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
        color: #475569 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    }

    .nova-btn-toggle-all-lic:hover,
    .nova-btn-toggle-all-lic:active {
        background: #eef2ff !important;
        color: #4f46e5 !important;
        border-color: #a5b4fc !important;
    }

    #novaLicenseTable {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    #novaLicenseTable thead {
        display: none !important;
    }

    #novaLicenseTable tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    /* Setiap baris lisensi menjadi kartu modern */
    #novaLicenseTable tr.nova-license-row {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid var(--nova-border, #e2e8f0) !important;
        border-radius: 16px !important;
        padding: 14px 14px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
    }

    #novaLicenseTable tr.nova-license-row:hover,
    #novaLicenseTable tr.nova-license-row:active {
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    }

    /* 1. Header Kartu: Nama Produk Software & Status Badge */
    #novaLicenseTable tr.nova-license-row td.col-lic-product {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 0 10px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin: 0 !important;
        text-align: left !important;
        order: 1 !important;
    }

    #novaLicenseTable tr.nova-license-row td.col-lic-product::before {
        display: none !important;
    }

    #novaLicenseTable .nova-lic-prod-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    #novaLicenseTable .nova-lic-prod-title {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    #novaLicenseTable .nova-lic-icon {
        font-size: 0.95rem !important;
        color: #4f46e5 !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }

    #novaLicenseTable .nova-prod-name {
        font-family: 'Outfit', sans-serif !important;
        font-size: 0.90rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    #novaLicenseTable .nova-lic-header-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    #novaLicenseTable .nova-lic-status-badge-wrap {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    #novaLicenseTable .nova-lic-status-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 2px 8px !important;
        border-radius: 20px !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
    }

    #novaLicenseTable .nova-lic-status-pill.active {
        background: #ecfdf5 !important;
        color: #059669 !important;
        border: 1px solid #a7f3d0 !important;
    }

    #novaLicenseTable .nova-lic-status-pill.inactive {
        background: #fef2f2 !important;
        color: #dc2626 !important;
        border: 1px solid #fecaca !important;
    }

    #novaLicenseTable .nova-lic-collapse-toggle {
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        color: #64748b !important;
        border: 1px solid #e2e8f0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 0.68rem !important;
        padding: 0 !important;
        transition: all 0.25s ease !important;
    }

    #novaLicenseTable tr.nova-license-row:not(.is-collapsed) .nova-lic-collapse-toggle {
        background: #eef2ff !important;
        color: #4f46e5 !important;
        border-color: #c7d2fe !important;
    }

    #novaLicenseTable .nova-lic-chevron {
        transition: transform 0.25s ease !important;
        display: inline-block !important;
    }

    #novaLicenseTable tr.nova-license-row:not(.is-collapsed) .nova-lic-chevron {
        transform: rotate(180deg) !important;
    }

    /* Mode Collapsed pada Kartu Lisensi (Khusus Mobile) */
    #novaLicenseTable tr.nova-license-row.is-collapsed {
        padding: 14px 14px !important;
        gap: 0 !important;
    }

    #novaLicenseTable tr.nova-license-row.is-collapsed td.col-lic-product {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    #novaLicenseTable tr.nova-license-row.is-collapsed td.col-lic-key,
    #novaLicenseTable tr.nova-license-row.is-collapsed td.col-lic-issued,
    #novaLicenseTable tr.nova-license-row.is-collapsed td.col-lic-expire,
    #novaLicenseTable tr.nova-license-row.is-collapsed td.col-lic-quota {
        display: none !important;
    }

    /* 2. Kunci Lisensi (Full Width Monospace Box + Action Buttons) */
    #novaLicenseTable tr.nova-license-row td.col-lic-key {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 4px 0 12px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        margin: 0 !important;
        text-align: left !important;
        order: 2 !important;
        gap: 8px !important;
    }

    #novaLicenseTable tr.nova-license-row td.col-lic-key::before {
        content: "Kunci Lisensi" !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
        margin-bottom: 2px !important;
        display: block !important;
        text-align: left !important;
    }

    #novaLicenseTable .nova-lic-cell-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    #novaLicenseTable .nova-lic-code {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-family: 'JetBrains Mono', Consolas, monospace !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        text-align: center !important;
        letter-spacing: 0.8px !important;
        word-break: break-all !important;
        user-select: all !important;
    }

    /* Tombol Salin Kunci & Reset Kunci yang Proporsional (Sama Rata 50% - 50%) */
    #novaLicenseTable .nova-lic-actions {
        display: flex !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    #novaLicenseTable .nova-lic-action-btn {
        flex: 1 1 0px !important;
        min-width: 0 !important;
        width: auto !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border-radius: 10px !important;
        font-size: 0.84rem !important;
        font-weight: 600 !important;
        padding: 0 12px !important;
        cursor: pointer !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
    }

    #novaLicenseTable .nova-lic-action-btn.copy-btn {
        flex: 1 1 0px !important;
        background: #ffffff !important;
        color: #4f46e5 !important;
        border: 1px solid #c7d2fe !important;
        box-shadow: 0 1px 3px rgba(79, 70, 229, 0.08) !important;
    }

    #novaLicenseTable .nova-lic-action-btn.copy-btn:hover,
    #novaLicenseTable .nova-lic-action-btn.copy-btn:active {
        background: #eef2ff !important;
        border-color: #a5b4fc !important;
        color: #4338ca !important;
    }

    #novaLicenseTable .nova-lic-action-btn.copy-btn.copied {
        background: #ecfdf5 !important;
        color: #059669 !important;
        border-color: #10b981 !important;
    }

    #novaLicenseTable .nova-lic-action-btn.regen-btn {
        flex: 1 1 0px !important;
        background: #fff1f2 !important;
        color: #e11d48 !important;
        border: 1px solid #fecdd3 !important;
    }

    #novaLicenseTable .nova-lic-action-btn.regen-btn:hover,
    #novaLicenseTable .nova-lic-action-btn.regen-btn:active {
        background: #ffe4e6 !important;
        border-color: #fda4af !important;
        color: #be123c !important;
    }

    #novaLicenseTable .nova-lic-action-btn.disabled {
        flex: 1 1 0px !important;
        background: #f1f5f9 !important;
        color: #94a3b8 !important;
        border: 1px solid #e2e8f0 !important;
        cursor: not-allowed !important;
    }

    #novaLicenseTable .nova-lic-btn-text {
        display: inline !important;
        font-weight: 600 !important;
    }

    #novaLicenseTable .nova-lic-reset-info {
        font-size: 0.74rem !important;
        color: #64748b !important;
        margin-top: 4px !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    /* 3. Baris Diterbitkan & Masa Berlaku */
    #novaLicenseTable tr.nova-license-row td.col-lic-issued {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        order: 3 !important;
    }

    #novaLicenseTable tr.nova-license-row td.col-lic-issued::before {
        content: "Diterbitkan" !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
    }

    #novaLicenseTable .nova-lic-date-val {
        font-size: 0.86rem !important;
        color: #334155 !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    #novaLicenseTable tr.nova-license-row td.col-lic-expire {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        order: 4 !important;
    }

    #novaLicenseTable tr.nova-license-row td.col-lic-expire::before {
        content: "Masa Berlaku" !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
    }

    #novaLicenseTable .nova-lic-expired-date {
        font-size: 0.75rem !important;
        color: #dc2626 !important;
        margin-top: 2px !important;
        text-align: right !important;
    }

    /* 4. Kuota Aktivasi & Tombol Toggle */
    #novaLicenseTable tr.nova-license-row td.col-lic-quota {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 8px 0 0 0 !important;
        border: none !important;
        margin: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        order: 5 !important;
    }

    #novaLicenseTable tr.nova-license-row td.col-lic-quota::before {
        display: none !important;
    }

    #novaLicenseTable .nova-lic-quota-row-mobile {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    #novaLicenseTable .nova-lic-quota-label-mobile {
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.04em !important;
        display: block !important;
    }

    #novaLicenseTable .nova-lic-quota-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #novaLicenseTable .nova-lic-quota-wrap .nova-lic-status-dot {
        display: none !important;
    }

    #novaLicenseTable .nova-btn-toggle-device {
        width: 100% !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #eef2ff !important;
        color: #4f46e5 !important;
        border: 1px solid #c7d2fe !important;
        border-radius: 10px !important;
        font-size: 0.84rem !important;
        font-weight: 700 !important;
        margin-top: 4px !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    #novaLicenseTable .nova-btn-toggle-device.open {
        background: #4f46e5 !important;
        color: #ffffff !important;
        border-color: #4f46e5 !important;
    }

    /* =========================================================================
       SUB-ROW: PERANGKAT TERHUBUNG (.nova-device-detail-row) RESPONSIVE
       ========================================================================= */
    #novaLicenseTable tr.nova-device-detail-row {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: -6px !important;
        margin-bottom: 8px !important;
        display: none !important;
    }

    #novaLicenseTable tr.nova-device-detail-row.is-open {
        display: block !important;
    }

    #novaLicenseTable tr.nova-device-detail-row td.nova-device-detail-td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    #novaLicenseTable tr.nova-device-detail-row td.nova-device-detail-td::before {
        display: none !important;
    }

    .nova-devices-card-inner {
        padding: 14px 16px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .nova-devices-card-header {
        margin-bottom: 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .nova-devices-title {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
    }

    .nova-devices-hint {
        font-size: 0.74rem !important;
        color: #64748b !important;
        line-height: 1.35 !important;
    }

    .nova-devices-table-wrap {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    /* Tabel Perangkat di Mobile menjadi tumpukan mini-card */
    .nova-devices-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    .nova-devices-table thead {
        display: none !important;
    }

    .nova-devices-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .nova-devices-table tr.nova-device-row {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    }

    .nova-devices-table tr.nova-device-row td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        width: 100% !important;
        font-size: 0.82rem !important;
        box-sizing: border-box !important;
    }

    .nova-devices-table tr.nova-device-row td::before {
        content: attr(data-label) !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        margin-right: 8px !important;
        flex-shrink: 0 !important;
    }

    /* Header Mini Card: Nama Perangkat */
    .nova-devices-table tr.nova-device-row td.col-dev-name {
        padding-bottom: 8px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .nova-devices-table tr.nova-device-row td.col-dev-name::before {
        display: none !important;
    }

    .nova-device-label-box {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .nova-device-name-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .nova-device-name {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    /* HWID Text di Mobile */
    .nova-hwid-text {
        max-width: 160px !important;
        font-size: 0.76rem !important;
    }

    .nova-device-date-text {
        font-size: 0.8rem !important;
        color: #64748b !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Tombol Hapus / Lepas Perangkat */
    .nova-devices-table tr.nova-device-row td.col-dev-action {
        border-bottom: none !important;
        padding-top: 8px !important;
        justify-content: stretch !important;
    }

    .nova-devices-table tr.nova-device-row td.col-dev-action::before {
        display: none !important;
    }

    .nova-devices-table .nova-btn-del-device {
        width: 100% !important;
        height: 36px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
    }

    /* Pagination Detail Perangkat di Mobile (HP: 1 Perangkat Per Halaman) */
    .nova-devices-pagination {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 4px 2px 4px !important;
        border-top: 1px dashed #e2e8f0 !important;
        margin-top: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .nova-devices-pagination.is-hidden {
        display: none !important;
    }

    .nova-devices-table tr.nova-device-row.is-page-hidden {
        display: none !important;
    }

    .nova-dev-page-info-desktop {
        display: none !important;
    }

    .nova-dev-page-info-mobile {
        display: inline !important;
        font-size: 0.82rem !important;
        color: #475569 !important;
        font-weight: 600 !important;
    }

    .nova-dev-page-numbers {
        display: none !important;
    }

    .nova-dev-page-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.84rem !important;
        border-radius: 10px !important;
    }

                    /* Penanganan Tabel Kupon Afiliasi */
                    #novaCouponsTable td.col-coupon-code {
                        order: -2 !important;
                        flex-direction: column !important;
                        align-items: flex-start !important;
                        border-bottom: 1px solid #e2e8f0 !important;
                        padding-bottom: 10px !important;
                    }

                    #novaCouponsTable td.col-coupon-code::before {
                        display: none !important;
                    }

                    #novaCouponsTable .nova-voucher-pill-wrap {
                        width: 100% !important;
                    }

                    /* Penanganan Tabel Tautan Afiliasi */
                    #novaBannersTable td {
                        flex-direction: column !important;
                        align-items: flex-start !important;
                        text-align: left !important;
                        gap: 6px !important;
                    }

                    #novaBannersTable td:first-child {
                        order: -2 !important;
                        border-bottom: 1px solid #e2e8f0 !important;
                        padding-bottom: 10px !important;
                    }

                    #novaBannersTable td:first-child::before {
                        display: none !important;
                    }

                    #novaBannersTable .nova-link-input-pill,
                    #novaBannersTable .nova-target-link-pill {
                        width: 100% !important;
                        box-sizing: border-box !important;
                    }

                    /* Wrapper bawaan aMember Core Grids agar tetap aman */
                    .am-grid-wrap {
                        width: 100% !important;
                        overflow-x: auto !important;
                        -webkit-overflow-scrolling: touch !important;
                    }

                    /* Toast Notification Repositioned for Mobile Bottom Bar */
                    .nova-toast {
                        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
                        right: 16px;
                        left: 16px;
                        justify-content: center;
                        text-align: center;
                        box-sizing: border-box;
                    }
                }

                /* 3. Small Mobile Phones (<= 480px) */
                @media (max-width: 480px) {
                    .nova-content-body {
                        padding: 16px 12px 24px !important;
                    }

                    .nova-dash-hero {
                        padding: 20px 14px !important;
                    }

                    .nova-dash-hero-title {
                        font-size: 1.35rem !important;
                        padding-right: 50px !important;
                    }

                    .nova-dash-hero-sub {
                        font-size: 0.825rem !important;
                        padding-right: 45px !important;
                    }

                    .nova-dash-btn-product,
                    .nova-dash-btn-whatsapp {
                        font-size: 0.84rem !important;
                        padding: 9px 14px !important;
                    }

                    .nova-table-toolbar {
                        padding: 14px 16px !important;
                    }

                    .nova-table-title {
                        font-size: 1.1rem !important;
                    }

                    /* Penyesuaian Tabel Lisensi di Layar Sangat Kecil (<= 480px) */
                    #novaLicenseTable tr.nova-license-row,
                    #novaLicenseTable tr.nova-license-row.is-collapsed {
                        padding: 12px 12px !important;
                        border-radius: 14px !important;
                    }

                    #novaLicenseTable .nova-lic-code {
                        font-size: 0.8rem !important;
                        padding: 8px 6px !important;
                        letter-spacing: 0.4px !important;
                    }

                    #novaLicenseTable .nova-prod-name {
                        font-size: 0.88rem !important;
                        white-space: nowrap !important;
                        overflow: hidden !important;
                        text-overflow: ellipsis !important;
                    }

                    #novaLicenseTable .nova-lic-action-btn {
                        height: 36px !important;
                        font-size: 0.78rem !important;
                        padding: 0 6px !important;
                        gap: 4px !important;
                    }

                    .nova-devices-card-inner {
                        padding: 12px 10px !important;
                    }

                    .nova-devices-table tr.nova-device-row {
                        padding: 10px 10px !important;
                    }

                    .nova-hwid-text {
                        max-width: 120px !important;
                        font-size: 0.72rem !important;
                    }

                    .nova-two-cards-grid {
                        grid-template-columns: 1fr !important;
                        gap: 16px !important;
                    }

                    .nova-feature-card {
                        padding: 22px 18px !important;
                    }

                    .nova-feature-title {
                        font-size: 1.15rem !important;
                    }

                    .nova-feature-desc {
                        font-size: 0.85rem !important;
                    }

                    .nova-footer {
                        padding: 20px 14px 30px !important;
                    }

                    .nova-footer-inner {
                        flex-direction: column;
                        gap: 8px;
                        text-align: center;
                        font-size: 0.8rem;
                    }
                }