/**
 * Sejoli Toolkit - Modern Clean Member Area Styles
 * Version: 2.2.0
 */

:root {
    --stk-sb-width: 250px;
    --stk-sb-bg: #ffffff;
    --stk-sb-border: #f1f5f9;
    --stk-sb-text: #475569;
    --stk-sb-text-hover: #0f172a;
    --stk-sb-heading: #94a3b8;
    --stk-sb-accent: #4f46e5;
    --stk-sb-accent-bg: #eef2ff;
    --stk-main-bg: #f8fafc;
}

/* ==========================================================================
   GLOBAL ULTRA-SLEEK TRANSLUCENT SCROLLBARS (Eliminates ugly Windows grey scrollbars)
   ========================================================================== */
html, body, * {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, 0.32) transparent !important;
}
::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}
::-webkit-scrollbar-track {
    background: transparent !important;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3) !important;
    border-radius: 9999px !important;
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
    transition: background 0.2s ease !important;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.55) !important;
}
::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Reset semantic UI sidebar interference */
body.stk-modern-theme .ui.sidebar.sejolisa-memberarea-menu,
body.stk-modern-theme .sejolisa-menubars {
    display: none !important;
}

body.stk-modern-theme {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f6f8fc !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.16) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 45%),
        radial-gradient(at 50% 25%, rgba(168, 85, 247, 0.10) 0px, transparent 40%),
        radial-gradient(at 15% 75%, rgba(16, 185, 129, 0.08) 0px, transparent 42%),
        radial-gradient(at 90% 85%, rgba(99, 102, 241, 0.13) 0px, transparent 50%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* Layout Container - Global Multi-Page Ambient Background */
.stk-member-layout {
    display: flex;
    min-height: 100vh;
    background: transparent !important;
    position: relative;
}

/* SIDEBAR CONTAINER */
.stk-member-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--stk-sb-width);
    background: var(--stk-sb-bg);
    border-right: 1px solid var(--stk-sb-border);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02);
}

/* WP Admin Bar Compatibility */
body.admin-bar .stk-member-sidebar {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .stk-member-sidebar {
        top: 46px;
    }
}

/* BRAND / LOGO */
.stk-sb-brand {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f8fafc;
    min-height: 72px;
    box-sizing: border-box;
}

.stk-sb-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    max-width: 100%;
}

.stk-sb-logo-img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.stk-sb-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    text-decoration: none;
}

/* NAVIGATION SCROLL AREA */
.stk-sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
}

.stk-sb-nav::-webkit-scrollbar {
    width: 4px;
}
.stk-sb-nav::-webkit-scrollbar-track {
    background: transparent;
}
.stk-sb-nav::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

/* CATEGORY HEADING */
.stk-sb-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--stk-sb-heading);
    letter-spacing: 0.6px;
    padding: 16px 12px 6px 12px;
}

/* MENU ITEM */
.stk-sb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 2px 0;
    border-radius: 10px;
    color: var(--stk-sb-text);
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.stk-sb-item:hover {
    background-color: #f8fafc;
    color: var(--stk-sb-text-hover);
}

.stk-sb-item:hover .stk-sb-icon svg {
    stroke: var(--stk-sb-accent, #4f46e5);
}

/* ACTIVE PILL (Aexus / Modern SaaS style) */
.stk-sb-item.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

.stk-sb-item.active .stk-sb-icon svg {
    stroke: #ffffff !important;
}

.stk-sb-item.active .stk-sb-label {
    color: #ffffff !important;
}

.stk-sb-item.active .stk-sb-arrow svg {
    stroke: #ffffff !important;
}

.stk-sb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: currentColor;
}

.stk-sb-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.stk-sb-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stk-sb-badge {
    margin-left: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    display: inline-block;
}

.stk-sb-item.active .stk-sb-badge {
    background: #ffffff;
    color: #ef4444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.stk-sb-arrow {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.stk-sb-arrow svg {
    width: 100%;
    height: 100%;
}

.stk-sb-accordion.open .stk-sb-arrow {
    transform: rotate(180deg);
}

/* SUBMENU */
.stk-sb-submenu {
    display: none;
    padding: 4px 0 6px 36px;
}

.stk-sb-accordion.open .stk-sb-submenu {
    display: block;
}

.stk-sb-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin: 2px 0;
    border-radius: 8px;
    font-size: 12.5px;
    color: #64748b;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.15s ease;
}

.stk-sb-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: background-color 0.15s ease;
}

.stk-sb-subitem:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.stk-sb-subitem:hover .stk-sb-dot {
    background-color: #64748b;
}

.stk-sb-subitem.active {
    color: var(--stk-sb-accent, #4f46e5) !important;
    font-weight: 700;
    background-color: var(--stk-sb-accent-bg, #eef2ff);
}

.stk-sb-subitem.active .stk-sb-dot {
    background-color: var(--stk-sb-accent, #4f46e5);
    box-shadow: 0 0 6px rgba(79, 70, 229, 0.4);
}

/* LOGOUT BUTTON */
.stk-sb-logout {
    color: #64748b;
}

.stk-sb-logout:hover {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
}

/* BOTTOM CARD (STATUS BADGE) */
.stk-sb-bottom-wrap {
    padding: 12px 14px;
    border-top: 1px solid var(--stk-sb-border);
    background: #ffffff;
}

.stk-sb-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stk-sb-card-badge {
    width: 34px;
    height: 34px;
    background: #eef2ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stk-sb-accent, #4f46e5);
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.12);
    flex-shrink: 0;
}

.stk-sb-card-info {
    flex: 1;
    min-width: 0;
}

.stk-sb-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stk-sb-card-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MAIN CONTENT CONTAINER */
.stk-member-main {
    flex: 1;
    margin-left: var(--stk-sb-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.stk-mobile-topbar {
    display: none;
}

.stk-member-body {
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px 28px !important;
    box-sizing: border-box;
    background: transparent !important;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .stk-member-body {
        padding: 10px 14px 120px 14px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* Dashboard Full-Width Fluid Override */
body.stk-has-custom-dashboard .stk-member-body,
.stk-member-body:has(#srdash-dashboard-root) {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Clean up Sejoli basic segment inside custom body */
.stk-member-body > .ui.basic.segment {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* RESPONSIVE STYLES (TABLET & MOBILE) */
@media (max-width: 991px) {
    .stk-member-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .stk-member-sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    }

    .stk-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(3px);
        z-index: 9999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .stk-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .stk-member-main {
        margin-left: 0 !important;
        padding-top: 56px !important;
    }

    /* Fixed topbar locked permanently to the top of screen */
    .stk-mobile-topbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 16px !important;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(241, 245, 249, 0.9) !important;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 56px !important;
        z-index: 99990 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stk-mobile-brand {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .stk-mobile-logo-link {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

    .stk-mobile-logo {
        max-height: 42px !important;
        height: auto !important;
        width: auto !important;
        max-width: 190px !important;
        display: block !important;
        object-fit: contain !important;
    }

    .stk-mobile-title {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        text-decoration: none;
    }

    .stk-mobile-toggle {
        background: #f1f5f9 !important;
        border: none !important;
        border-radius: 8px !important;
        width: 38px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #1e293b !important;
        cursor: pointer !important;
        padding: 0 !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        transition: background-color 0.2s ease, transform 0.15s ease;
    }

    .stk-mobile-toggle svg {
        width: 22px !important;
        height: 22px !important;
        display: block !important;
        stroke: #1e293b !important;
        fill: none !important;
    }

    .stk-mobile-toggle svg line {
        stroke: #1e293b !important;
        stroke-width: 2.5px !important;
        stroke-linecap: round !important;
    }

    .stk-mobile-toggle:hover,
    .stk-mobile-toggle:active {
        background: #e2e8f0 !important;
        transform: scale(0.96);
    }

    .stk-member-body {
        padding: 18px 14px 120px 14px !important;
        box-sizing: border-box !important;
    }

    /* Mobile safe bottom padding for app bottom bar */
    body.stk-modern-theme {
        padding-bottom: 120px !important;
    }
    body.stk-has-custom-dashboard #srdash-dashboard-root {
        padding-bottom: 120px !important;
    }

    /* Bottom Navigation Bar Layout */
    .stk-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 66px !important;
        z-index: 99980 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(241, 245, 249, 0.95) !important;
        box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.05) !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-sizing: border-box !important;
    }

    .stk-bottom-nav-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        height: 66px !important;
        position: relative !important;
        padding: 0 4px !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .stk-bottom-item {
        flex: 1 1 0% !important;
        width: 20% !important;
        max-width: 20% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #94a3b8 !important;
        transition: color 0.2s ease, transform 0.2s ease !important;
        padding: 6px 0 4px !important;
        position: relative !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
    }

    .stk-bottom-item:hover,
    .stk-bottom-item:focus,
    .stk-bottom-item:active {
        text-decoration: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .stk-bottom-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: transform 0.2s ease, color 0.2s ease !important;
        margin-bottom: 2px !important;
        color: inherit !important;
    }

    .stk-bottom-icon svg {
        width: 22px !important;
        height: 22px !important;
        stroke: currentColor !important;
        transition: stroke 0.2s ease, stroke-width 0.2s ease !important;
    }

    .stk-bottom-label {
        font-size: 11px !important;
        font-weight: 500 !important;
        color: inherit !important;
        transition: color 0.2s ease, font-weight 0.2s ease !important;
        letter-spacing: -0.2px !important;
        line-height: 1.2 !important;
    }

    .stk-bottom-dot {
        width: 24px !important;
        height: 3.5px !important;
        border-radius: 999px !important;
        background: linear-gradient(90deg, #818cf8 0%, var(--stk-sb-accent, #4f46e5) 100%) !important;
        margin: 3px auto 0 auto !important;
        opacity: 0 !important;
        transform: scaleX(0.2) !important;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.9), 0 2px 5px rgba(79, 70, 229, 0.5) !important;
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        display: block !important;
    }

    /* Active state for regular bottom items */
    .stk-bottom-item.active {
        color: var(--stk-sb-accent, #4f46e5) !important;
    }

    .stk-bottom-item.active .stk-bottom-icon {
        transform: translateY(-2px) !important;
        color: var(--stk-sb-accent, #4f46e5) !important;
    }

    .stk-bottom-item.active .stk-bottom-icon svg {
        stroke: var(--stk-sb-accent, #4f46e5) !important;
        stroke-width: 2.3 !important;
    }

    .stk-bottom-item.active .stk-bottom-label {
        color: var(--stk-sb-accent, #4f46e5) !important;
        font-weight: 700 !important;
    }

    .stk-bottom-item.active .stk-bottom-dot {
        opacity: 1 !important;
        transform: scaleX(1) !important;
    }

    /* CENTER FLOATING ACTION BUTTON (AKSES) */
    .stk-bottom-fab-wrap {
        flex: 1 1 0% !important;
        width: 20% !important;
        max-width: 20% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        height: 100% !important;
        overflow: visible !important;
    }

    .stk-bottom-fab {
        width: 52px !important;
        height: 52px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
        color: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        position: absolute !important;
        top: -16px !important;
        box-shadow: 0 6px 18px rgba(79, 70, 229, 0.42) !important;
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
        border: 3.5px solid #ffffff !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .stk-bottom-fab-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 19px !important;
        width: 19px !important;
    }

    .stk-bottom-fab-icon svg {
        width: 19px !important;
        height: 19px !important;
        stroke: #ffffff !important;
        stroke-width: 2.2 !important;
    }

    .stk-bottom-fab-label {
        font-size: 8.5px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        margin-top: 1px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
    }

    .stk-bottom-fab:hover,
    .stk-bottom-fab:active {
        transform: scale(1.06) !important;
        box-shadow: 0 8px 24px rgba(79, 70, 229, 0.58) !important;
    }

    /* When Akses is active, it glows vibrantly */
    .stk-bottom-fab.active {
        transform: scale(1.06) !important;
        box-shadow: 0 8px 24px rgba(79, 70, 229, 0.58) !important;
        border-color: #ffffff !important;
    }
}

/* TOP-LEVEL ADMIN BAR HANDLING (MOBILE <= 782px) */
@media (max-width: 782px) {
    #wpadminbar {
        position: fixed !important;
        top: 0 !important;
    }
    body.admin-bar .stk-mobile-topbar {
        top: 46px !important;
    }
    body.admin-bar .stk-member-main {
        padding-top: 102px !important;
    }
    body.admin-bar .stk-member-sidebar {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }
}

/* TOP-LEVEL ADMIN BAR HANDLING (TABLET 783px - 991px) */
@media (min-width: 783px) and (max-width: 991px) {
    #wpadminbar {
        position: fixed !important;
        top: 0 !important;
    }
    body.admin-bar .stk-mobile-topbar {
        top: 32px !important;
    }
    body.admin-bar .stk-member-main {
        padding-top: 88px !important;
    }
    body.admin-bar .stk-member-sidebar {
        top: 32px !important;
        height: calc(100vh - 32px) !important;
    }
}

/* DESKTOP RESET */
@media (min-width: 992px) {
    .stk-mobile-topbar {
        display: none !important;
    }
    .stk-bottom-nav {
        display: none !important;
    }
    .stk-member-main {
        padding-top: 0 !important;
    }
}

/* ==========================================================================
   MODERN SAAS DATA TABLES & CONTAINERS (Aexus Dashboard Style)
   Applies to Order, Subscription, License, Affiliate Tables, & Generic DataTables
   ========================================================================== */

/* Ambient Aurora Glow Layer */
.stk-ambient-aura-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.stk-aura-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.85;
    pointer-events: none;
    will-change: transform;
}
.stk-aura-top-left {
    top: -120px;
    left: 18%;
    width: 650px;
    height: 480px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 75%);
}
.stk-aura-top-right {
    top: -100px;
    right: -80px;
    width: 620px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 75%);
}
.stk-aura-mid-left {
    top: 45%;
    left: -100px;
    width: 550px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.11) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 75%);
}
.stk-aura-bottom-right {
    bottom: -100px;
    right: 15%;
    width: 600px;
    height: 480px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(56, 189, 248, 0.09) 50%, transparent 75%);
}

/* Modern Card Container */
.stk-table-card {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    padding: 24px 28px !important;
    margin-bottom: 32px !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.25s ease !important;
}
.stk-table-card:hover {
    box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

@media (max-width: 768px) {
    .stk-table-card {
        padding: 16px 14px 28px 14px !important;
        border-radius: 16px !important;
        margin-bottom: 95px !important; /* Safe clearance so pagination is never blocked by mobile bottom bar */
    }
}

/* Table Card Header */
.stk-table-header-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.stk-table-title-group {
    flex: 1 1 auto !important;
}
.stk-table-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.4px !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}
.stk-table-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 4px 0 0 0 !important;
    line-height: 1.4 !important;
}
.stk-table-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Action Buttons: Vibrant Modern Filter Button */
.stk-btn-filter,
button.show-filter-form,
.ui.button.show-filter-form,
.ui.primary.button.show-filter-form,
.show-filter-form.button,
button.show-filter-form.ui.button {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    text-shadow: none !important;
}
.stk-btn-filter:hover,
button.show-filter-form:hover,
.ui.button.show-filter-form:hover,
.ui.primary.button.show-filter-form:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(79, 70, 229, 0.48) !important;
    color: #ffffff !important;
}
.stk-btn-filter svg,
button.show-filter-form i.icon,
.ui.button.show-filter-form i.icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
    stroke-width: 2.2 !important;
    flex-shrink: 0 !important;
    margin-right: 4px !important;
}

/* Spacing between Filter Button & Length Dropdown / Table (Tight, Compact Gap) */
#orders_length,
#affiliate-orders_length,
#sejoli-license_length,
#commission_length,
.dataTables_length {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.dataTables_length select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    margin: 0 6px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    outline: none !important;
}

.stk-btn-secondary,
button.ui.button.export-csv {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 9.5px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
.stk-btn-secondary:hover,
button.ui.button.export-csv:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Modern Clean Table Core Overrides (No Horizontal/Vertical Scrollbars on Desktop) */
.stk-table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) and (min-width: 769px) {
    .stk-table-responsive {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
    }
}

/* ==========================================================================
   MOBILE TRANSACTION CARD VIEW (Replaces clunky stacked headers & unlabeled cells)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Hide the useless stacked table header on mobile */
    table.stk-modern-table thead,
    table#orders thead,
    table#affiliate-orders thead,
    table#sejoli-license thead,
    table#subscription thead,
    table#commission thead,
    body.stk-modern-theme .ui.table thead {
        display: none !important;
    }

    /* 2. Reset table wrapper and body for clean card flow */
    .stk-table-responsive {
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    table.stk-modern-table,
    table#orders,
    table#affiliate-orders,
    table#sejoli-license,
    table#subscription,
    table#commission,
    body.stk-modern-theme .ui.table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    table.stk-modern-table tbody,
    table#orders tbody,
    table#affiliate-orders tbody,
    table#sejoli-license tbody,
    table#subscription tbody,
    table#commission tbody {
        display: block !important;
        width: 100% !important;
    }

    /* 3. Transform each row (<tr>) into a sleek modern Card */
    table.stk-modern-table tbody tr,
    table#orders tbody tr,
    table#affiliate-orders tbody tr,
    table#sejoli-license tbody tr,
    table#subscription tbody tr,
    table#commission tbody tr {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.95) !important;
        border-radius: 16px !important;
        padding: 14px 16px !important;
        margin-bottom: 14px !important;
        box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
        box-sizing: border-box !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    table.stk-modern-table tbody tr:hover,
    table#orders tbody tr:hover,
    table#affiliate-orders tbody tr:hover,
    table#sejoli-license tbody tr:hover,
    table#subscription tbody tr:hover {
        background: #ffffff !important;
        box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.07) !important;
    }

    /* 4. Column 0: Product Info & Badges */
    table.stk-modern-table tbody td.stk-col-detil,
    table#orders tbody td.stk-col-detil,
    table#affiliate-orders tbody td:first-child,
    table#subscription tbody td:first-child,
    table#sejoli-license tbody td:first-child {
        display: block !important;
        padding: 0 0 12px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stk-badges-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-top: 6px !important;
    }

    /* 5. Sub-rows inside the Card (Affiliate, Total, Status with automatic clear labels) */
    table.stk-modern-table tbody td.stk-col-affiliate,
    table#orders tbody td.stk-col-affiliate {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px 0 !important;
        border: none !important;
        font-size: 13px !important;
        color: #475569 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    table.stk-modern-table tbody td.stk-col-affiliate::before,
    table#orders tbody td.stk-col-affiliate::before {
        content: "Affiliasi";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    table.stk-modern-table tbody td.stk-col-total,
    table#orders tbody td.stk-col-total {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 5px 0 !important;
        border: none !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    table.stk-modern-table tbody td.stk-col-total::before,
    table#orders tbody td.stk-col-total::before {
        content: "Total Tagihan";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    table.stk-modern-table tbody td.stk-col-status,
    table#orders tbody td.stk-col-status {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 0 2px 0 !important;
        border: none !important;
        border-top: 1px dashed #f1f5f9 !important;
        margin-top: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    table.stk-modern-table tbody td.stk-col-status::before,
    table#orders tbody td.stk-col-status::before {
        content: "Status Transaksi";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    /* Subscription Table Mobile Labels (Both #subscription and Sejoli [sr_page_subscription] table#orders inside .stk-subscription-page) */
    .stk-subscription-page table#orders tbody td:first-child {
        display: block !important;
        padding: 0 0 12px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    table#subscription tbody td:nth-child(2),
    .stk-subscription-page table#orders tbody td:nth-child(2) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 4px 0 !important;
        border: none !important;
        font-size: 13px !important;
        color: #475569 !important;
    }
    table#subscription tbody td:nth-child(2)::before,
    .stk-subscription-page table#orders tbody td:nth-child(2)::before {
        content: "Akhir Aktif";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    table#subscription tbody td:nth-child(3),
    .stk-subscription-page table#orders tbody td:nth-child(3) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 4px 0 !important;
        border: none !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #475569 !important;
    }
    table#subscription tbody td:nth-child(3)::before,
    .stk-subscription-page table#orders tbody td:nth-child(3)::before {
        content: "Masa Aktif";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    table#subscription tbody td:nth-child(4),
    .stk-subscription-page table#orders tbody td:nth-child(4) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 2px 0 !important;
        border: none !important;
        border-top: 1px dashed #f1f5f9 !important;
        margin-top: 6px !important;
    }
    table#subscription tbody td:nth-child(4)::before,
    .stk-subscription-page table#orders tbody td:nth-child(4)::before {
        content: "Status";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    /* Affiliasi Orders Table Mobile Labels */
    table#affiliate-orders tbody td:nth-child(2) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 4px 0 !important;
        border: none !important;
        font-size: 13px !important;
        color: #475569 !important;
    }
    table#affiliate-orders tbody td:nth-child(2)::before {
        content: "Pembeli";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    table#affiliate-orders tbody td:nth-child(3) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 0 !important;
        border: none !important;
        font-size: 14.5px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }
    table#affiliate-orders tbody td:nth-child(3)::before {
        content: "Total Komisi";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    table#affiliate-orders tbody td:nth-child(4) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 2px 0 !important;
        border: none !important;
        border-top: 1px dashed #f1f5f9 !important;
        margin-top: 6px !important;
    }
    table#affiliate-orders tbody td:nth-child(4)::before {
        content: "Status";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    /* License Table Mobile Labels (Supports both 2-col custom template and 4-col native Sejoli table) */
    table#sejoli-license tbody td:nth-child(2):not(:last-child),
    table#sejoli-license tbody td:nth-child(3):not(:last-child) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 4px 0 !important;
        border: none !important;
        font-size: 13px !important;
        color: #475569 !important;
    }
    table#sejoli-license tbody td:nth-child(2):not(:last-child)::before {
        content: "Pemilik";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }
    table#sejoli-license tbody td:nth-child(3):not(:last-child)::before {
        content: "Penanda";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }
    table#sejoli-license tbody td:nth-child(2):last-child,
    table#sejoli-license tbody td:nth-child(4) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 2px 0 !important;
        border: none !important;
        border-top: 1px dashed #f1f5f9 !important;
        margin-top: 6px !important;
    }
    table#sejoli-license tbody td:nth-child(2):last-child::before,
    table#sejoli-license tbody td:nth-child(4)::before {
        content: "Status Lisensi";
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
    }

    /* Empty state inside mobile card */
    table.stk-modern-table tbody td.stk-empty-cell {
        display: block !important;
        text-align: center !important;
        padding: 24px 16px !important;
        border: none !important;
        color: #94a3b8 !important;
    }

    /* Pagination controls on mobile (Strictly Horizontal, Centered, No Wrap) */
    .dataTables_wrapper .dataTables_info,
    .dataTables_info {
        float: none !important;
        clear: both !important;
        text-align: center !important;
        font-size: 12px !important;
        color: #64748b !important;
        padding-top: 10px !important;
        padding-bottom: 4px !important;
        width: 100% !important;
        display: block !important;
    }

    .dataTables_wrapper .dataTables_paginate,
    .dataTables_paginate {
        float: none !important;
        clear: both !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        padding: 6px 0 12px 0 !important;
    }

    .dataTables_paginate span {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .dataTables_paginate .paginate_button {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .dataTables_paginate .paginate_button.previous,
    .dataTables_paginate .paginate_button.next {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }

    .dataTables_paginate .paginate_button.previous::before,
    .dataTables_paginate .paginate_button.next::before {
        line-height: 30px !important;
        font-size: 19px !important;
    }
}

.dataTables_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

table.stk-modern-table,
table#orders,
table#affiliate-orders,
table#sejoli-license,
table#subscription,
table#commission,
table#coupon,
.ui.table.striped,
.ui.striped.table,
.ui.single.line.table {
    border: none !important;
    box-shadow: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    margin: 0 !important;
    font-family: inherit !important;
    table-layout: auto !important;
}

/* Header Columns */
table.stk-modern-table thead th,
table#orders thead th,
table#affiliate-orders thead th,
table#sejoli-license thead th,
table#commission thead th,
.ui.table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 13px 18px !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
}
table.stk-modern-table thead tr th:first-child,
table#orders thead tr th:first-child,
table#affiliate-orders thead tr th:first-child,
table#sejoli-license thead tr th:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}
table.stk-modern-table thead tr th:last-child,
table#orders thead tr th:last-child,
table#affiliate-orders thead tr th:last-child,
table#sejoli-license thead tr th:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Hide legacy bulky footers */
table.stk-modern-table tfoot,
table#orders tfoot,
table#affiliate-orders tfoot,
table#sejoli-license tfoot {
    display: none !important;
}

/* Rows and Cells */
table.stk-modern-table tbody tr,
table#orders tbody tr,
table#affiliate-orders tbody tr,
table#sejoli-license tbody tr,
table#commission tbody tr,
table.ui.table tbody tr.negative,
table.ui.table tr.negative,
table.ui.table tbody td.negative,
table.ui.table td.negative,
table.ui.table tbody tr.warning,
table.ui.table tr.warning,
table.ui.table tbody td.warning,
table.ui.table td.warning,
table.ui.table tbody tr.positive,
table.ui.table tr.positive,
table.ui.table tbody td.positive,
table.ui.table td.positive {
    background: transparent !important;
    color: inherit !important;
    transition: background-color 0.15s ease !important;
}
table.stk-modern-table tbody tr:hover,
table#orders tbody tr:hover,
table#affiliate-orders tbody tr:hover,
table#sejoli-license tbody tr:hover,
table#commission tbody tr:hover,
table.ui.table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.85) !important;
}
table.stk-modern-table tbody td,
table#orders tbody td,
table#affiliate-orders tbody td,
table#sejoli-license tbody td,
table#commission tbody td,
.ui.table tbody td {
    padding: 15px 18px !important;
    vertical-align: middle !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
    font-size: 13.5px !important;
    background: transparent !important;
}

/* Empty State Cell */
td.stk-empty-cell {
    text-align: center !important;
    padding: 36px 20px !important;
    color: #94a3b8 !important;
    font-style: italic !important;
}

/* Kolom Detil Item Styling */
.stk-order-cell,
.stk-license-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stk-order-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.stk-order-product-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}
.stk-license-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}
.stk-badge-qty {
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 1.5px 7px;
    border-radius: 9999px;
    line-height: 1.3;
}
.stk-order-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.stk-pill-inv {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2.5px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.stk-pill-date {
    font-size: 11.5px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2.5px 8px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}
.stk-pill-parent,
.stk-pill-type,
.stk-pill-product {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 2.5px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.stk-pill-limit {
    font-size: 11px;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    padding: 2.5px 8px;
    border-radius: 6px;
    border: 1px solid #e0f2fe;
}
.stk-pill-coupon {
    font-size: 11px;
    font-weight: 600;
    color: #9333ea;
    background: #faf5ff;
    padding: 2.5px 8px;
    border-radius: 6px;
    border: 1px solid #f3e8ff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

/* Detail Button inside row */
.stk-btn-detail-trigger,
button.order-detail-trigger.ui.mini.button {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border: 1px solid #e0e7ff !important;
    padding: 3.5px 10px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    margin: 0 !important;
}
.stk-btn-detail-trigger:hover,
button.order-detail-trigger.ui.mini.button:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-0.5px) !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
}
.stk-btn-renew-pill {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 3.5px 10px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}
.stk-btn-renew-pill:hover {
    background: #059669 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Total Price Column */
table.stk-modern-table td.price,
table#orders td.price,
table#affiliate-orders td.price,
table#commission td.price,
table#orders td:nth-child(3),
table#affiliate-orders td:nth-child(3) {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
}

/* Modern Soft Status Pills (SaaS Style) */
.stk-status-pill,
.ui.horizontal.label.boxed,
td .ui.horizontal.label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 13px !important;
    border-radius: 9999px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    text-shadow: none !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}
.stk-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

/* Completed / Selesai / Paid / Aktif */
.stk-status-pill[data-status*="Selesai"],
.stk-status-pill[data-status*="selesai"],
.stk-status-pill[data-status*="Paid"],
.stk-status-pill[data-status*="paid"],
.stk-status-pill[data-status*="Aktif"],
.stk-status-pill[data-status*="aktif"],
.ui.horizontal.label[style*="21ba45"],
.ui.horizontal.label[style*="green"],
.ui.horizontal.label.green {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

/* Pending / Menunggu Pembayaran / Unpaid */
.stk-status-pill[data-status*="Menunggu"],
.stk-status-pill[data-status*="menunggu"],
.stk-status-pill[data-status*="Pending"],
.stk-status-pill[data-status*="pending"],
.ui.horizontal.label[style*="fbbd08"],
.ui.horizontal.label[style*="yellow"],
.ui.horizontal.label.yellow {
    background: #fffbeb !important;
    color: #d97706 !important;
    border-color: #fde68a !important;
}

/* Cancelled / Batal / Gagal */
.stk-status-pill[data-status*="Batal"],
.stk-status-pill[data-status*="batal"],
.stk-status-pill[data-status*="Cancelled"],
.stk-status-pill[data-status*="Gagal"],
.ui.horizontal.label[style*="db2828"],
.ui.horizontal.label[style*="red"],
.ui.horizontal.label.red {
    background: #fff1f2 !important;
    color: #e11d48 !important;
    border-color: #fecdd3 !important;
}

/* Expired / Kadaluarsa */
.stk-status-pill[data-status*="Expire"],
.stk-status-pill[data-status*="expire"],
.stk-status-pill[data-status*="Kadaluarsa"],
.ui.horizontal.label[style*="grey"],
.ui.horizontal.label.grey {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}

/* DataTables Controls (Length, Filter, Pagination, Info) */
.dataTables_wrapper {
    padding-top: 0 !important;
}
.dataTables_length {
    margin-bottom: 8px !important;
    font-size: 13px !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
}
.dataTables_length select {
    padding: 5px 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 6px !important;
    outline: none !important;
    cursor: pointer !important;
    transition: border-color 0.15s ease !important;
}
.dataTables_length select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}
.dataTables_filter {
    margin-bottom: 12px !important;
}
.dataTables_filter input {
    padding: 7px 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}
.dataTables_filter input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}
.dataTables_info {
    padding-top: 10px !important;
    font-size: 13px !important;
    color: #64748b !important;
}
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_paginate.ui.pagination.menu,
.dataTables_wrapper .dataTables_paginate .ui.pagination.menu,
.dataTables_wrapper .ui.pagination.menu,
.dataTables_wrapper .ui.menu.pagination,
.dataTables_paginate,
.dataTables_paginate.ui.pagination.menu,
.dataTables_paginate .ui.pagination.menu,
.ui.pagination.menu,
.ui.menu.pagination {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
    padding-top: 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
}

/* Remove ALL Semantic UI vertical line dividers and pseudo-elements from pagination */
.ui.pagination.menu::before,
.ui.pagination.menu::after,
.ui.pagination.menu .item::before,
.ui.pagination.menu .item::after,
.dataTables_paginate.ui.pagination.menu::before,
.dataTables_paginate.ui.pagination.menu::after,
.dataTables_paginate.ui.pagination.menu .item::before,
.dataTables_paginate.ui.pagination.menu .item::after,
.dataTables_paginate .ui.pagination.menu .item::before,
.dataTables_paginate .ui.pagination.menu .item::after,
.dataTables_paginate .paginate_button::before,
.dataTables_paginate .paginate_button::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    background: none !important;
    position: static !important;
}

.dataTables_paginate span {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Individual Pagination Buttons (Desktop & Global) */
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button.item,
.dataTables_wrapper .dataTables_paginate.ui.pagination.menu .item,
.dataTables_wrapper .ui.pagination.menu .item,
.dataTables_wrapper .ui.stackable.pagination.menu .item,
.dataTables_paginate .paginate_button,
.dataTables_paginate .paginate_button.item,
.dataTables_paginate .paginate_button.item.previous,
.dataTables_paginate .paginate_button.item.next,
.dataTables_paginate.ui.pagination.menu .item,
.dataTables_paginate .ui.pagination.menu .item,
.ui.pagination.menu .item.paginate_button,
.ui.pagination.menu a.item,
.ui.pagination.menu div.item {
    min-width: 36px !important;
    width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    line-height: 34px !important;
    text-align: center !important;
    float: none !important;
    position: relative !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_paginate.ui.pagination.menu .item:hover,
.ui.pagination.menu .item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.active,
.dataTables_paginate.ui.pagination.menu .item.active,
.dataTables_paginate.ui.pagination.menu .item.current,
.ui.pagination.menu .item.active,
.ui.pagination.menu .item.current {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_paginate.ui.pagination.menu .item.disabled,
.ui.pagination.menu .item.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

/* Previous & Next Icon Buttons (Direct typography, no ::before bugs) */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next,
.dataTables_paginate.ui.pagination.menu .item.previous,
.dataTables_paginate.ui.pagination.menu .item.next,
.ui.pagination.menu .item.previous,
.ui.pagination.menu .item.next,
.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* Modals Modernization (Scoped to Modern Member Theme) */
.ui.modal.order-modal-holder,
#filter-form-wrap.ui.modal {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    background: #ffffff !important;
}
body.stk-modern-theme .ui.modal > .header,
.ui.modal.order-modal-holder > .header,
#filter-form-wrap.ui.modal > .header {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 18px 24px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
body.stk-modern-theme .ui.modal > .content,
.ui.modal.order-modal-holder > .content,
#filter-form-wrap.ui.modal > .content {
    padding: 24px !important;
}
body.stk-modern-theme .ui.modal > .actions,
.ui.modal.order-modal-holder > .actions,
#filter-form-wrap.ui.modal > .actions {
    padding: 16px 24px !important;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
}
body.stk-modern-theme .ui.modal .actions .button.primary,
.ui.modal .actions .button.filter-form {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    color: #ffffff !important;
    border: none !important;
}

/* ==========================================================================
   VIEW 1 & 2: MODERN SAAS ORDER TABLE (GB 3) & DETAIL PESANAN PAGE (GB 4)
   ========================================================================== */

/* Accent bar beside title in Order List */
.stk-title-bar-accent {
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}
.stk-table-title-group {
    display: flex !important;
    align-items: center !important;
}

/* Clickable INV Link (gb 3) */
.stk-inv-link {
    font-weight: 700 !important;
    font-size: 13.5px !important;
    color: #4f46e5 !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    background: #eef2ff !important;
    border: 1px solid #e0e7ff !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: -0.2px !important;
}
.stk-inv-link:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   GB 3 ORDER TABLE LAYOUT: 4 COLUMNS (Detil | Affiliasi | Total | Status)
   ========================================================================== */

.stk-detil-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}
.stk-prod-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.stk-prod-title-link {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
    line-height: 1.35;
}
.stk-prod-title-link:hover {
    color: #4f46e5 !important;
}
.stk-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Base Pill Badge */
.stk-pill-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    white-space: nowrap !important;
}
.stk-pill-badge svg {
    stroke: currentColor;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* Blue INV Badge (Clickable Link with Action Indicator) */
.stk-pill-inv {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.stk-pill-inv .stk-inv-arrow {
    stroke: #3b82f6 !important;
    transition: transform 0.18s ease !important;
}
.stk-pill-inv:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-0.5px) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}
.stk-pill-inv:hover .stk-inv-arrow {
    stroke: #ffffff !important;
    transform: translate(1px, -1px) !important;
}

/* Dedicated Action Badge [ 📄 Invoice PDF ] */
.stk-pill-invoice-pdf {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 3px 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.stk-pill-invoice-pdf svg {
    stroke: #16a34a !important;
    transition: transform 0.18s ease !important;
}
.stk-pill-invoice-pdf:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #ffffff !important;
    border-color: #15803d !important;
    transform: translateY(-0.5px) !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35) !important;
}
.stk-pill-invoice-pdf:hover svg {
    stroke: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Dedicated Action Badge [ Detail → ] */
.stk-pill-detail-link,
.stk-btn-detail-trigger {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 3px 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.stk-pill-detail-link .stk-detail-arrow,
.stk-btn-detail-trigger svg {
    stroke: #4f46e5 !important;
    transition: transform 0.18s ease !important;
}
.stk-pill-detail-link:hover,
.stk-btn-detail-trigger:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-0.5px) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35) !important;
}
.stk-pill-detail-link:hover .stk-detail-arrow,
.stk-btn-detail-trigger:hover svg {
    stroke: #ffffff !important;
    transform: translateX(2px) !important;
}

/* Slate Date Badge */
.stk-pill-date {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Pink Parent Invoice Badge (Renewal) */
.stk-pill-parent {
    background: #fdf2f8 !important;
    color: #db2777 !important;
    border: 1px solid #fce7f3 !important;
}

/* Amber Order Type Badge */
.stk-pill-type {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
    text-transform: uppercase !important;
    font-size: 10.5px !important;
    letter-spacing: 0.02em !important;
}

/* Purple Coupon / Access Badge */
.stk-pill-coupon {
    background: #f3e8ff !important;
    color: #7c3aed !important;
    border: 1px solid #e9d5ff !important;
}

/* Purple Qty Badge */
.stk-pill-qty {
    background: #ede9fe !important;
    color: #6366f1 !important;
    border: 1px solid #ddd6fe !important;
    font-size: 10.5px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

/* Column Affiliasi & Total */
.stk-col-affiliate,
.stk-aff-name {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
}
.stk-col-total,
.stk-total-price {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
}

/* ==========================================================================
   GB 5 SHOPZEN-STYLE DETAIL PESANAN (Modular, Clean, High-End SaaS)
   ========================================================================== */

.stk-shopzen-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 4px 0 48px 0;
}
@media (max-width: 768px) {
    .stk-shopzen-wrap {
        padding: 0 0 36px 0 !important;
    }
}

/* Top Header Bar */
.stk-sz-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .stk-sz-header {
        margin-bottom: 14px !important;
        gap: 12px !important;
    }
}
.stk-sz-header-left {
    flex: 1 1 auto;
}
.stk-sz-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 6px;
}
.stk-sz-title-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}
.stk-sz-title-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.stk-sz-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.stk-sz-back-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateX(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}
.stk-sz-order-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}
.stk-sz-header-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Inline ShopZen Pills */
.stk-sz-pill-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 3.5px 10px;
    border-radius: 9999px;
    line-height: 1.3;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.stk-sz-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.stk-sz-pill-completed,
.stk-sz-pill-publish {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.stk-sz-pill-on-hold {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.stk-sz-pill-processing {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}
.stk-sz-pill-cancelled,
.stk-sz-pill-failed {
    background: #fef2f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
.stk-sz-pill-type {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3.5px 10px;
    border-radius: 9999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Meta Subtitle under Title (Directly aligned with Order ID) */
.stk-sz-meta-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.4;
}
.stk-sz-meta-subtitle svg {
    stroke: #64748b;
    flex-shrink: 0;
}

/* Top Action Buttons */
.stk-sz-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.stk-sz-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9.5px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.stk-sz-btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    color: #ffffff !important;
}
.stk-sz-btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9.5px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.stk-sz-btn-emerald:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.38);
    color: #ffffff !important;
}
.stk-sz-btn-secondary {
    background: #ffffff !important;
    color: #475569 !important;
    text-decoration: none !important;
    padding: 9px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}
.stk-sz-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
}

/* 2-Column Grid Layout (ShopZen) */
.stk-sz-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.stk-sz-col-main {
    flex: 1 1 65%;
    min-width: 0;
}
.stk-sz-col-side {
    flex: 1 1 35%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 991px) {
    .stk-sz-grid {
        flex-direction: column;
    }
    .stk-sz-col-main,
    .stk-sz-col-side {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* Modular Cards (ShopZen) */
.stk-sz-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 22px;
}
.stk-sz-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.stk-sz-card-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}
.stk-sz-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}
.stk-sz-card-title svg {
    stroke: #4f46e5;
    flex-shrink: 0;
}
.stk-sz-card-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 3px 0 0 0;
}
.stk-sz-badge-subtle {
    font-size: 11.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3.5px 9px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}
.stk-sz-card-body {
    padding: 22px 24px;
}

/* Item Row (ShopZen) */
.stk-sz-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.stk-sz-item-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    flex-shrink: 0;
}
.stk-sz-item-details {
    flex: 1 1 auto;
    min-width: 0;
}
.stk-sz-item-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.2px;
}
.stk-sz-item-meta {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
}
.stk-sz-item-variants {
    font-size: 12px;
    color: #6366f1;
    margin-top: 4px;
}
.stk-sz-item-pricing {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.stk-sz-item-qty-price {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}
.stk-sz-item-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

/* Card Footer Action (ShopZen) */
.stk-sz-card-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
.stk-sz-footer-highlight {
    background: #f0fdf4;
    border-top: 1px solid #dcfce7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.stk-sz-footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}
.stk-sz-btn-emerald-sm {
    background: #059669;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.stk-sz-btn-emerald-sm:hover {
    background: #047857;
    transform: translateY(-0.5px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}

/* Calculations Table (ShopZen Order Summary) */
.stk-sz-calc-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stk-sz-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
}
.stk-sz-calc-label {
    color: #64748b;
    font-size: 13px;
}
.stk-sz-calc-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 13.5px;
}
.stk-sz-calc-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}
.stk-sz-calc-total-row {
    padding: 6px 0;
}
.stk-sz-total-text {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
}
.stk-sz-total-price {
    font-size: 20px;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.3px;
}
.stk-sz-calc-subtle {
    font-size: 13px;
    color: #475569;
}

/* Payment Method Box */
.stk-sz-payment-method-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.stk-sz-pm-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    display: block;
    margin-bottom: 3px;
}
.stk-sz-pm-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}
.stk-sz-pm-name svg {
    stroke: #4f46e5;
}

/* Timeline (ShopZen) */
.stk-sz-timeline {
    position: relative;
    padding-left: 32px;
}
.stk-sz-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 12px;
    width: 2px;
    background: #e2e8f0;
}
.stk-sz-tl-item {
    position: relative;
    margin-bottom: 22px;
}
.stk-sz-tl-item.stk-sz-tl-last {
    margin-bottom: 0;
}
.stk-sz-tl-point {
    position: absolute;
    left: -32px;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4f46e5;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #c7d2fe;
}
.stk-sz-point-emerald {
    background: #dcfce7 !important;
    color: #059669 !important;
    box-shadow: 0 0 0 2px #a7f3d0 !important;
}
.stk-sz-point-amber {
    background: #fef3c7 !important;
    color: #d97706 !important;
    box-shadow: 0 0 0 2px #fde68a !important;
}
.stk-sz-point-rose {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    box-shadow: 0 0 0 2px #fecdd3 !important;
}
.stk-sz-tl-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.stk-sz-tl-time {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

/* Side Column Cards (ShopZen) */
.stk-sz-side-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}
.stk-sz-side-title svg {
    stroke: #4f46e5;
}
.stk-sz-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.stk-sz-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}
.stk-sz-user-info {
    flex: 1 1 auto;
    min-width: 0;
}
.stk-sz-user-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.stk-sz-user-badge {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}
.stk-sz-contact-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.stk-sz-contact-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #475569;
    text-decoration: none !important;
    transition: color 0.15s ease;
    word-break: break-all;
}
.stk-sz-contact-row:hover {
    color: #4f46e5 !important;
}
.stk-sz-contact-row svg {
    stroke: #64748b;
    flex-shrink: 0;
}

/* Shipping & Resi Box */
.stk-sz-address-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stk-sz-address-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}
.stk-sz-resi-box {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #4338ca;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stk-sz-resi-label {
    font-weight: 500;
}
.stk-sz-resi-val {
    font-weight: 700;
}

/* Affiliate Box */
.stk-sz-aff-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px 16px;
}
.stk-sz-aff-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    flex-shrink: 0;
}
.stk-sz-aff-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}
.stk-sz-aff-sub {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
}

/* Support Box (ShopZen) */
.stk-sz-support-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%) !important;
    border-color: #ddd6fe !important;
    text-align: center;
    padding: 24px 20px !important;
}
.stk-sz-support-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ede9fe;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.stk-sz-support-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.stk-sz-support-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 16px 0;
}
.stk-sz-btn-support {
    background: #ffffff;
    color: #6d28d9 !important;
    border: 1px solid #ddd6fe;
    text-decoration: none !important;
    padding: 8.5px 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.08);
    transition: all 0.15s ease;
}
.stk-sz-btn-support:hover {
    background: #6d28d9;
    color: #ffffff !important;
    border-color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* ==========================================================================
   MOBILE DATA TABLES & PAGINATION DEFINITIVE OVERRIDES (Max Priority at End)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Tighter top gap & padding (Eliminates excessive empty space under topbar) */
    .stk-member-main {
        padding-top: 56px !important;
    }
    .stk-member-body {
        padding: 4px 12px 120px 12px !important;
    }
    body.stk-has-custom-dashboard .stk-member-body,
    .stk-member-body:has(#srdash-dashboard-root) {
        padding: 0 0 120px 0 !important;
        margin-top: 0 !important;
    }
    #srdash-dashboard-root {
        margin-top: 0 !important;
    }
    .stk-table-card {
        padding: 14px 12px 24px 12px !important;
        margin-top: 0 !important;
        margin-bottom: 120px !important;
    }
    .stk-shopzen-wrap {
        padding: 2px 0 36px 0 !important;
        margin-top: 0 !important;
    }
    .stk-sz-header {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        padding-top: 0 !important;
        gap: 10px !important;
    }

    /* 2. Compact Order Detail Title Column & Meta Subtitle */
    .stk-sz-title-row {
        margin-top: 0 !important;
        margin-bottom: 3px !important;
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
    }
    .stk-sz-back-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .stk-sz-back-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    .stk-sz-title-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .stk-sz-title-main {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .stk-sz-title-main::-webkit-scrollbar {
        display: none !important;
    }
    .stk-sz-order-title {
        margin: 0 !important;
        font-size: 16.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        line-height: 1.25 !important;
        color: #0f172a !important;
    }
    .stk-sz-header-badges {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }
    .stk-sz-pill-status,
    .stk-sz-pill-type {
        font-size: 10.5px !important;
        font-weight: 600 !important;
        padding: 2px 7.5px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        line-height: 1.2 !important;
    }
    .stk-sz-dot {
        width: 5px !important;
        height: 5px !important;
        flex-shrink: 0 !important;
    }
    .stk-sz-meta-subtitle {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 11.5px !important;
        color: #64748b !important;
        margin: 0 !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .stk-sz-meta-subtitle svg {
        width: 12px !important;
        height: 12px !important;
        stroke: #64748b !important;
        flex-shrink: 0 !important;
    }

    /* Card Header Mobile Compactness & Anti-Stacking */
    .stk-sz-card-header {
        padding: 13px 15px !important;
        gap: 10px !important;
    }
    .stk-sz-card-header > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .stk-sz-card-title {
        font-size: 14.5px !important;
        gap: 7px !important;
    }
    .stk-sz-card-title svg {
        width: 16px !important;
        height: 16px !important;
    }
    .stk-sz-card-subtitle {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        margin-top: 2px !important;
    }
    .stk-sz-badge-subtle {
        font-size: 11px !important;
        padding: 3px 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* 3. Compact filter header & length controls */
    .stk-table-header-wrap {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding-top: 0 !important;
        padding-bottom: 8px !important;
        gap: 8px !important;
    }
    .stk-table-title {
        margin-top: 0 !important;
        font-size: 18px !important;
    }
    .stk-btn-filter {
        padding: 7px 16px !important;
        font-size: 12.5px !important;
    }
    .dataTables_length {
        margin-top: 2px !important;
        margin-bottom: 8px !important;
    }
    .dataTables_wrapper {
        padding-top: 0 !important;
    }

    /* 4. Horizontal Pagination & Centered Info (Strictly No Vertical Stacking, No Outer Box, No Shadow) */
    .dataTables_wrapper .dataTables_info,
    .dataTables_info {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px 0 8px 0 !important;
        font-size: 12.5px !important;
        color: #64748b !important;
        display: block !important;
    }

    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_paginate.ui.pagination.menu,
    .dataTables_wrapper .dataTables_paginate .ui.pagination.menu,
    .dataTables_wrapper .ui.pagination.menu,
    .dataTables_wrapper .ui.menu.pagination,
    .dataTables_wrapper .ui.stackable.pagination.menu,
    .dataTables_paginate,
    .dataTables_paginate.ui.pagination.menu,
    .dataTables_paginate .ui.pagination.menu,
    .ui.pagination.menu,
    .ui.menu.pagination,
    .ui.stackable.pagination.menu {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        padding: 4px 0 16px 0 !important;
        margin: 0 auto !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        min-height: 0 !important;
        height: auto !important;
    }

    /* Remove ALL Semantic UI vertical line dividers and decorations on mobile */
    .ui.pagination.menu::before,
    .ui.pagination.menu::after,
    .ui.pagination.menu .item::before,
    .ui.pagination.menu .item::after,
    .dataTables_paginate.ui.pagination.menu::before,
    .dataTables_paginate.ui.pagination.menu::after,
    .dataTables_paginate.ui.pagination.menu .item::before,
    .dataTables_paginate.ui.pagination.menu .item::after,
    .dataTables_paginate .ui.pagination.menu .item::before,
    .dataTables_paginate .ui.pagination.menu .item::after,
    .dataTables_paginate .paginate_button::before,
    .dataTables_paginate .paginate_button::after {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
        position: static !important;
    }

    .dataTables_paginate span {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Every button is inline-flex with exact dimensions */
    .dataTables_wrapper .dataTables_paginate .paginate_button,
    .dataTables_wrapper .dataTables_paginate .paginate_button.item,
    .dataTables_wrapper .dataTables_paginate.ui.pagination.menu .item,
    .dataTables_wrapper .ui.pagination.menu .item,
    .dataTables_wrapper .ui.stackable.pagination.menu .item,
    .dataTables_paginate .paginate_button,
    .dataTables_paginate .paginate_button.item,
    .dataTables_paginate .paginate_button.item.previous,
    .dataTables_paginate .paginate_button.item.next,
    .dataTables_paginate.ui.pagination.menu .item,
    .dataTables_paginate .ui.pagination.menu .item,
    .ui.pagination.menu .item.paginate_button,
    .ui.pagination.menu a.item,
    .ui.pagination.menu div.item {
        min-width: 36px !important;
        width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        max-height: 36px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        color: #475569 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 34px !important;
        text-align: center !important;
        float: none !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
        position: relative !important;
    }

    /* Active / Current Page */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.active,
    .dataTables_paginate.ui.pagination.menu .item.active,
    .dataTables_paginate.ui.pagination.menu .item.current,
    .ui.pagination.menu .item.active,
    .ui.pagination.menu .item.current {
        background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
        color: #ffffff !important;
        border-color: #4f46e5 !important;
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
        font-weight: 700 !important;
        opacity: 1 !important;
    }

    /* Disabled */
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    .dataTables_paginate.ui.pagination.menu .item.disabled,
    .ui.pagination.menu .item.disabled {
        opacity: 0.4 !important;
        cursor: not-allowed !important;
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
        color: #94a3b8 !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    /* Previous & Next Icon Buttons (Direct typography, no ::before bugs) */
    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next,
    .dataTables_paginate.ui.pagination.menu .item.previous,
    .dataTables_paginate.ui.pagination.menu .item.next,
    .ui.pagination.menu .item.previous,
    .ui.pagination.menu .item.next,
    .dataTables_paginate .paginate_button.previous,
    .dataTables_paginate .paginate_button.next {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   SEJOLI TOOLKIT: KATALOG PRODUK & AFFILIASI LINK MODERN STYLING
   ========================================================================== */

/* 1. Wrapper & Cards */
.stk-produk-page-wrap,
.stk-aff-link-page-wrap {
    width: 100%;
    margin-bottom: 2rem;
}

.stk-produk-card,
.stk-aff-generator-card,
.stk-aff-catalog-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 24px;
}

/* 2. Filter Bar (Type & Categories) */
.stk-pl-filter-bar {
    padding: 4px 2px 14px 2px;
}

.stk-pl-btn-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.stk-pl-btn-type:hover {
    color: #4f46e5;
    background: #eef2ff;
    border-color: #c7d2fe;
}

.stk-pl-btn-type.active {
    color: #ffffff !important;
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.stk-pl-btn-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 8px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.stk-pl-btn-cat:hover {
    color: #4f46e5;
    border-color: #cbd5e1;
}

.stk-pl-btn-cat.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    font-weight: 600;
}

/* 3. Product Grid */
.stk-pl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 640px) {
    .stk-pl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .stk-pl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1280px) {
    .stk-pl-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 639px) {
    .stk-pl-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .stk-pl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .stk-pl-card {
        border-radius: 12px !important;
    }
    .stk-pl-badge,
    .stk-pl-type-badge {
        top: 8px !important;
        left: 8px !important;
        font-size: 8.5px !important;
        padding: 3px 7px !important;
        letter-spacing: 0.2px !important;
    }
    .stk-pl-body,
    .stk-pl-card-body {
        padding: 10px 10px 12px 10px !important;
    }
    .stk-pl-price {
        font-size: 13.5px !important;
        margin-bottom: 2px !important;
    }
    .stk-pl-title {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        min-height: 30px !important;
        margin-bottom: 8px !important;
    }
    .stk-pl-actions {
        gap: 6px !important;
    }
    .stk-pl-btn {
        height: 32px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
        padding: 0 6px !important;
    }
    .stk-pl-comm-box {
        height: 28px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
        padding: 2px 4px !important;
    }
    .stk-pl-aff-row {
        padding: 3px 4px 3px 6px !important;
        gap: 4px !important;
        border-radius: 8px !important;
    }
    .stk-pl-aff-btn {
        width: 26px !important;
        height: 26px !important;
        border-radius: 6px !important;
    }
    .stk-pl-aff-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    .stk-pl-aff-input {
        font-size: 9.5px !important;
    }
}

/* 4. Product Card Styling */
.stk-pl-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
}

.stk-pl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.stk-pl-card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f8fafc;
    overflow: hidden;
}

.stk-pl-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stk-pl-card:hover .stk-pl-thumb {
    transform: scale(1.03);
}

.stk-pl-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.stk-pl-type-badge.badge-one-time {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.stk-pl-type-badge.badge-recurring {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.stk-pl-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px;
}

.stk-pl-price {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.stk-pl-title {
    font-size: 14.5px;
    line-height: 1.4;
    min-height: 40px;
}

/* 5. Product Buttons */
.stk-pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.stk-pl-btn-primary {
    background: #4f46e5;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.stk-pl-btn-primary:hover {
    background: #4338ca;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.stk-pl-btn-secondary {
    background: #312e81;
    color: #ffffff !important;
    border: none;
}

.stk-pl-btn-secondary:hover {
    background: #1e1b4b;
    color: #ffffff !important;
}

.stk-pl-btn-outline {
    background: #ffffff;
    color: #4338ca !important;
    border: 1.5px solid #c7d2fe;
}

.stk-pl-btn-outline:hover {
    background: #f5f3ff;
    border-color: #818cf8;
}

/* 6. Native Sejoli Generator Form Modernization */
.stk-aff-gen-body {
    background: #ffffff;
}

.stk-gen-action-wrap {
    display: flex !important;
    width: 100% !important;
    gap: 8px !important;
}

.stk-select-product {
    flex: 1 1 auto !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
}

.stk-btn-generate {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
}

.stk-btn-generate:hover {
    background: #4338ca !important;
    transform: translateY(-1px) !important;
}

.stk-btn-apply-param {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.stk-btn-apply-param:hover {
    background: #2563eb !important;
}

.stk-custom-select,
.stk-custom-input {
    width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #334155 !important;
}

.stk-btn-copy {
    background: #0ea5e9 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 0 8px 8px 0 !important;
    transition: all 0.2s ease !important;
}

.stk-btn-copy:hover {
    background: #0284c7 !important;
}

.stk-btn-copy.stk-copied {
    background: #10b981 !important;
}

/* Also support third-party styling from sejoli-products-listing plugin */
.w-full.px-4.md\:w-1\/2.xl\:w-1\/4 {
    box-sizing: border-box;
}

/* ==========================================================================
   HALAMAN PROFIL MEMBER (SEJOLI TOOLKIT)
   ========================================================================== */
.stk-profile-page-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 50px auto;
    box-sizing: border-box;
}

.stk-profile-form .stk-input-control,
.stk-profile-form .stk-textarea-control {
    width: 100% !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.stk-profile-form .stk-input-control:focus,
.stk-profile-form .stk-textarea-control:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

/* Custom Select2 Styling for Sejoli Profile */
.stk-profile-form .select2-container--default .select2-selection--single {
    height: 46px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.stk-profile-form .select2-container--default.select2-container--open .select2-selection--single,
.stk-profile-form .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

.stk-profile-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-size: 14px !important;
    line-height: normal !important;
    padding-left: 0 !important;
}

.stk-profile-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
}

/* Alert Notification Box */
.stk-profile-alert-box {
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    animation: srprFadeIn 0.3s ease;
}

.stk-profile-alert-box.stk-alert-success {
    background-color: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
}

.stk-profile-alert-box.stk-alert-error {
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
}

.stk-profile-alert-box .stk-alert-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.stk-profile-alert-box .stk-alert-msg-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13.5px;
    line-height: 1.5;
}

/* Area Aksi & Tombol Simpan Perubahan (Berdampingan rapi dengan Cloudflare Turnstile) */
.stk-profile-actions-bar {
    width: 100%;
    box-sizing: border-box;
}
.stk-profile-actions-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
}

/* Cloudflare Turnstile & Captcha styling: hilangkan margin pendorong, ratakan vertikal */
.stk-profile-form .cf-turnstile,
.stk-profile-form .turnstile,
.stk-profile-form .turnstile-container,
.stk-profile-actions-inner .cf-turnstile,
.stk-profile-actions-inner .turnstile-container,
.stk-profile-actions-inner div[class*="turnstile"],
.stk-profile-actions-inner div:has(> iframe[src*="cloudflare"]) {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Tombol Simpan: Anti-wrap / Teks Tidak Menumpuk */
#stk-submit-profile-btn,
.stk-submit-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: max-content !important;
    padding: 13px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
}
#stk-submit-profile-btn:hover,
.stk-submit-profile-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4338ca 100%) !important;
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.45) !important;
    transform: translateY(-1px) !important;
}
#stk-submit-profile-btn:active,
.stk-submit-profile-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px 0 rgba(124, 58, 237, 0.25) !important;
}
#stk-submit-profile-btn i,
.stk-submit-profile-btn i {
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
}
#stk-submit-profile-btn span,
.stk-submit-profile-btn span {
    white-space: nowrap !important;
    display: inline-block !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

@media (max-width: 640px) {
    .stk-profile-actions-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 14px !important;
    }
    .stk-profile-form .cf-turnstile,
    .stk-profile-form .turnstile,
    .stk-profile-actions-inner .cf-turnstile {
        align-self: center !important;
    }
    #stk-submit-profile-btn,
    .stk-submit-profile-btn {
        width: 100% !important;
    }
}

/* ==========================================================================
   PENYESUAIAN MODUL PRODUK & AFFILIASI LINK (SEJOLI-PRODUCTS-LISTING)
   ========================================================================== */
.stk-produk-sc-container > div,
.stk-aff-catalog-body > div {
    padding-top: 8px !important;
    padding-bottom: 24px !important;
}

.stk-produk-sc-container .px-4.sm\:px-6.lg\:pt-16.pt-8,
.stk-aff-catalog-body .px-4.sm\:px-6.lg\:pt-20.pt-10 {
    padding-top: 4px !important;
    padding-bottom: 16px !important;
}

/* Mencegah overflow kartu produk */
.stk-produk-sc-container .container,
.stk-aff-catalog-body .container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Efek visual feedback saat tombol copy link diklik */
.copy-btn.stk-copied {
    background-color: #10b981 !important;
    transition: background-color 0.2s ease !important;
}

/* ==========================================================================
   MODERN LIGHTWEIGHT POPUP MODAL SYSTEM (SEJOLI TOOLKIT)
   ========================================================================== */
.stk-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 9999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stk-modal-backdrop.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.stk-modal-card {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 420px !important;
    border-radius: 24px !important;
    padding: 32px 28px 26px 28px !important;
    text-align: center !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
    transform: scale(0.92) translateY(12px) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    position: relative !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.stk-modal-backdrop.is-visible .stk-modal-card {
    transform: scale(1) translateY(0) !important;
}

.stk-modal-icon-wrap {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 20px auto !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.stk-modal-backdrop.is-visible .stk-modal-icon-wrap {
    transform: scale(1.05) !important;
}

.stk-modal-icon-wrap.type-warning {
    background: #fffbeb !important;
    color: #d97706 !important;
    box-shadow: 0 0 0 8px #fef3c7 !important;
}

.stk-modal-icon-wrap.type-error {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    box-shadow: 0 0 0 8px #fee2e2 !important;
}

.stk-modal-icon-wrap.type-success {
    background: #ecfdf5 !important;
    color: #059669 !important;
    box-shadow: 0 0 0 8px #d1fae5 !important;
}

.stk-modal-icon-wrap.type-info {
    background: #f5f3ff !important;
    color: #7c3aed !important;
    box-shadow: 0 0 0 8px #ede9fe !important;
}

.stk-modal-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
}

.stk-modal-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0 0 24px 0 !important;
    word-break: break-word !important;
}

.stk-modal-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.stk-modal-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    height: 46px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    text-decoration: none !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

/* Sembunyikan tombol Batal jika BUKAN confirm dialog */
.stk-modal-backdrop:not([data-is-confirm="1"]) .stk-modal-btn-cancel,
#stkUniversalModal:not([data-is-confirm="1"]) #stkModalBtnCancel {
    display: none !important;
}

.stk-modal-btn:hover {
    transform: translateY(-1px) !important;
}

.stk-modal-btn:active {
    transform: translateY(1px) !important;
}

.stk-modal-btn-confirm {
    flex: 1 1 0% !important;
    width: 100% !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

.stk-modal-btn-confirm:hover {
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45) !important;
}

.stk-modal-btn-confirm.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
}
.stk-modal-btn-confirm.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.stk-modal-btn-confirm.btn-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35) !important;
    color: #ffffff !important;
}
.stk-modal-btn-confirm.btn-error:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.stk-modal-btn-confirm.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35) !important;
    color: #ffffff !important;
}
.stk-modal-btn-confirm.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.stk-modal-btn-confirm.btn-info {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35) !important;
    color: #ffffff !important;
}
.stk-modal-btn-confirm.btn-info:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
}

.stk-modal-btn-cancel {
    flex: 1 1 0% !important;
    width: 100% !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    border: 1px solid #e2e8f0 !important;
}

.stk-modal-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* ==========================================================================
   RESPONSIVE MEMBER AREA FIX (Single Column Mobile Cards & Safe Padding)
   ========================================================================== */
@media (max-width: 768px) {
    .item-holder,
    .ui.grid.item-holder,
    .ui.cards.item-holder,
    .ui.three.column.doubling.stackable.masonry.grid.item-holder,
    .masonry.item-holder,
    .item-holder:not(.stk-list-view),
    .ui.grid.item-holder:not(.stk-list-view) {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        float: none !important;
        margin: 0 0 100px 0 !important;
        padding: 0 !important;
    }

    .item-holder > .column,
    .item-holder > .stk-column-item,
    .ui.grid.item-holder > .column,
    .ui[class*="three column"].doubling.grid.item-holder > .column,
    .ui[class*="three column"].doubling.grid.item-holder > .column:not(.row),
    .ui.three.column.doubling.stackable.masonry.grid.item-holder > .column,
    .column.stk-column-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 100% !important;
        display: block !important;
        float: none !important;
        margin: 0 0 18px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .stk-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 18px !important;
        margin: 0 !important;
    }

    .stk-title {
        font-size: 16px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }

    .stk-data-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        white-space: normal !important;
        padding: 10px 0 !important;
        gap: 10px !important;
    }

    .stk-data-label {
        white-space: nowrap !important;
        font-size: 13px !important;
        min-width: 80px !important;
        color: #64748b !important;
        flex-shrink: 0 !important;
    }

    .stk-data-value {
        text-align: right !important;
        white-space: normal !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-grow: 1 !important;
    }

    .stk-status-pill {
        white-space: nowrap !important;
        display: inline-flex !important;
        flex-shrink: 0 !important;
    }

    .stk-actions {
        position: relative !important;
        z-index: 50 !important;
        margin-top: 14px !important;
        width: 100% !important;
    }

    .stk-actions select.stk-btn,
    .stk-actions select.stk-btn-primary {
        position: relative !important;
        z-index: 50 !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #4f46e5 !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25) !important;
        box-sizing: border-box !important;
    }

    .stk-member-body {
        padding: 10px 14px 120px 14px !important;
        box-sizing: border-box !important;
    }

    .srac-container,
    .sejolisa-memberarea-content {
        padding-bottom: 50px !important;
        margin-bottom: 90px !important;
    }
}

/* ==========================================================================
   GLOBAL DIRECTIONAL BORDER & THEME ISOLATION GUARD (Member Area)
   Mencegah tema WordPress / Semantic UI menimpa .border-b / .border-t menjadi
   kotak 4 sisi di seluruh template Member Area.
   ========================================================================== */
.stk-member-body .border-t:not(.border):not(.border-b):not(.border-l):not(.border-r):not(.border-dashed):not(.border-dotted),
#stkNewsModalBackdrop .border-t:not(.border):not(.border-b):not(.border-l):not(.border-r):not(.border-dashed):not(.border-dotted),
body.stk-standalone-canvas .border-t:not(.border):not(.border-b):not(.border-l):not(.border-r):not(.border-dashed):not(.border-dotted) {
    border-top-width: 1px !important;
    border-right-width: 0 !important;
    border-bottom-width: 0 !important;
    border-left-width: 0 !important;
    border-style: solid !important;
}

.stk-member-body .border-b:not(.border):not(.border-t):not(.border-l):not(.border-r):not(.border-dashed):not(.border-dotted),
#stkNewsModalBackdrop .border-b:not(.border):not(.border-t):not(.border-l):not(.border-r):not(.border-dashed):not(.border-dotted),
body.stk-standalone-canvas .border-b:not(.border):not(.border-t):not(.border-l):not(.border-r):not(.border-dashed):not(.border-dotted) {
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-bottom-width: 1px !important;
    border-left-width: 0 !important;
    border-style: solid !important;
}

.stk-member-body .last\:border-b-0:last-child,
#stkNewsModalBackdrop .last\:border-b-0:last-child,
body.stk-standalone-canvas .last\:border-b-0:last-child {
    border-bottom-width: 0 !important;
}

.stk-member-body .border-l:not(.border):not(.border-t):not(.border-b):not(.border-r):not(.border-dashed):not(.border-dotted),
#stkNewsModalBackdrop .border-l:not(.border):not(.border-t):not(.border-b):not(.border-r):not(.border-dashed):not(.border-dotted),
body.stk-standalone-canvas .border-l:not(.border):not(.border-t):not(.border-b):not(.border-r):not(.border-dashed):not(.border-dotted) {
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-bottom-width: 0 !important;
    border-left-width: 1px !important;
    border-style: solid !important;
}

.stk-member-body .border-l-4:not(.border):not(.border-t):not(.border-b):not(.border-r):not(.border-dashed):not(.border-dotted),
#stkNewsModalBackdrop .border-l-4:not(.border):not(.border-t):not(.border-b):not(.border-r):not(.border-dashed):not(.border-dotted),
body.stk-standalone-canvas .border-l-4:not(.border):not(.border-t):not(.border-b):not(.border-r):not(.border-dashed):not(.border-dotted) {
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-bottom-width: 0 !important;
    border-left-width: 4px !important;
    border-style: solid !important;
}

.stk-member-body .border-r:not(.border):not(.border-t):not(.border-b):not(.border-l):not(.border-dashed):not(.border-dotted),
#stkNewsModalBackdrop .border-r:not(.border):not(.border-t):not(.border-b):not(.border-l):not(.border-dashed):not(.border-dotted),
body.stk-standalone-canvas .border-r:not(.border):not(.border-t):not(.border-b):not(.border-l):not(.border-dashed):not(.border-dotted) {
    border-top-width: 0 !important;
    border-right-width: 1px !important;
    border-bottom-width: 0 !important;
    border-left-width: 0 !important;
    border-style: solid !important;
}

/* Prefixed containers (Affiliasi Dashboard, Payment, Profile) */
.stk-aff-dashboard-container .sraff-border-b {
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-bottom-width: 1px !important;
    border-left-width: 0 !important;
    border-style: solid !important;
}
.stk-aff-dashboard-container .sraff-border-l-4 {
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-bottom-width: 0 !important;
    border-left-width: 4px !important;
    border-style: solid !important;
}
.stk-payment-page-container .srpy-border-t {
    border-top-width: 1px !important;
    border-right-width: 0 !important;
    border-bottom-width: 0 !important;
    border-left-width: 0 !important;
    border-style: solid !important;
}
.stk-profile-page-wrap .srpr-border-t {
    border-top-width: 1px !important;
    border-right-width: 0 !important;
    border-bottom-width: 0 !important;
    border-left-width: 0 !important;
    border-style: solid !important;
}
.stk-profile-page-wrap .srpr-border-b {
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-bottom-width: 1px !important;
    border-left-width: 0 !important;
    border-style: solid !important;
}
@media (min-width: 640px) {
    .stk-payment-page-container .sm\:srpy-border-t-0 { border-top-width: 0 !important; }
    .stk-profile-page-wrap .sm\:srpr-border-b-0 { border-bottom-width: 0 !important; }
    .stk-profile-page-wrap .sm\:srpr-border-r {
        border-top-width: 0 !important;
        border-right-width: 1px !important;
        border-left-width: 0 !important;
        border-style: solid !important;
    }
}
@media (min-width: 768px) {
    .stk-profile-page-wrap .md\:srpr-border-b-0 { border-bottom-width: 0 !important; }
    .stk-profile-page-wrap .md\:srpr-border-r {
        border-top-width: 0 !important;
        border-right-width: 1px !important;
        border-left-width: 0 !important;
        border-style: solid !important;
    }
}

/* Isolasi fokus input/select/textarea pada kontainer modern agar bebas outline kotak tema */
.stk-custom-page-wrap input:focus,
.stk-custom-page-wrap select:focus,
.stk-custom-page-wrap textarea:focus,
.stk-lms-catalog-wrap input:focus,
.stk-lms-catalog-wrap select:focus,
.stk-lms-catalog-wrap textarea:focus,
.stk-lms-player-wrap input:focus,
.stk-lms-player-wrap select:focus,
.stk-lms-player-wrap textarea:focus,
.stk-aff-dashboard-container input:focus,
.stk-aff-dashboard-container select:focus,
.stk-aff-dashboard-container textarea:focus,
.stk-profile-page-wrap input:focus,
.stk-profile-page-wrap select:focus,
.stk-profile-page-wrap textarea:focus,
#stkNewsModalBackdrop input:focus {
    outline: none !important;
}








