/**
 * LPK Core - Frontend UI/UX Pro Max Styles
 *
 * Desain antarmuka modern, ergonomis, dan ramah untuk pengguna awam
 * (calon siswa, siswa pelatihan kerja, instruktur/sensei, & pemilik LPK).
 * Terinspirasi oleh estetika institusi pelatihan Jepang: Imperial Deep Emerald,
 * Warm Gold, Soft Warm Creams, dan Glassmorphic Cards.
 *
 * @package LPK_Core
 * @since   1.8.0
 */

/* =====================================================
   Design Tokens & CSS Variables
   ===================================================== */
:root {
    /* Brand Palette - Emerald & Gold (Selaras dengan Login & Checkout) */
    --lpk-primary: #0f2e2a;
    --lpk-primary-dark: #0a221f;
    --lpk-primary-light: #184e47;
    --lpk-primary-surface: #edf7f5;
    
    --lpk-gold: #c9a83e;
    --lpk-gold-light: #e6cb6c;
    --lpk-gold-dark: #a28328;
    --lpk-gold-surface: #fbf7ec;

    /* Semantic Feedback Colors */
    --lpk-success: #10b981;
    --lpk-success-surface: #ecfdf5;
    --lpk-success-border: #a7f3d0;
    --lpk-success-dark: #047857;

    --lpk-warning: #f59e0b;
    --lpk-warning-surface: #fffbeb;
    --lpk-warning-border: #fde68a;
    --lpk-warning-dark: #b45309;

    --lpk-danger: #ef4444;
    --lpk-danger-surface: #fef2f2;
    --lpk-danger-border: #fecaca;
    --lpk-danger-dark: #b91c1c;

    --lpk-info: #0284c7;
    --lpk-info-surface: #f0f9ff;
    --lpk-info-border: #bae6fd;
    --lpk-info-dark: #0369a1;

    /* Neutral & Background Tones */
    --lpk-bg-canvas: #f6f8f7;
    --lpk-bg-card: #ffffff;
    --lpk-bg-subtle: #f0f4f2;
    
    --lpk-text-main: #0e2233;
    --lpk-text-muted: #5e6d7a;
    --lpk-text-subtle: #8a99a6;
    --lpk-text-inverse: #ffffff;

    --lpk-border: #e2e8e5;
    --lpk-border-subtle: #edf2f0;
    --lpk-border-focus: #c9a83e;

    /* Elevations & Shadows */
    --lpk-shadow-xs: 0 1px 2px rgba(15, 46, 42, 0.04);
    --lpk-shadow-sm: 0 2px 4px rgba(15, 46, 42, 0.06), 0 1px 2px rgba(15, 46, 42, 0.04);
    --lpk-shadow-md: 0 6px 16px -2px rgba(15, 46, 42, 0.08), 0 2px 6px -1px rgba(15, 46, 42, 0.04);
    --lpk-shadow-lg: 0 14px 28px -4px rgba(15, 46, 42, 0.12), 0 4px 10px -2px rgba(15, 46, 42, 0.06);
    --lpk-shadow-glow: 0 0 0 3px rgba(201, 168, 62, 0.22);

    /* Radii */
    --lpk-radius-sm: 8px;
    --lpk-radius: 12px;
    --lpk-radius-lg: 18px;
    --lpk-radius-pill: 9999px;

    /* Transitions */
    --lpk-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --lpk-transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --lpk-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Plus Jakarta Sans", sans-serif;
    --lpk-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* =====================================================
   Root Container & Reset
   ===================================================== */
.lpk-dashboard {
    min-height: 100vh;
    font-family: var(--lpk-font-sans);
    background-color: var(--lpk-bg-canvas);
    color: var(--lpk-text-main);
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.lpk-dashboard *,
.lpk-dashboard *::before,
.lpk-dashboard *::after {
    box-sizing: border-box;
}

/* =====================================================
   Top Navigation Header (Brand & Context)
   ===================================================== */
.lpk-dashboard-header {
    background: linear-gradient(135deg, var(--lpk-primary-dark) 0%, var(--lpk-primary) 100%);
    color: var(--lpk-text-inverse);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 18px rgba(10, 34, 31, 0.25);
    border-bottom: 1px solid rgba(201, 168, 62, 0.2);
}

.lpk-dashboard-header .lpk-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lpk-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--lpk-radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--lpk-transition);
}

.lpk-mobile-toggle:hover {
    background: rgba(201, 168, 62, 0.25);
    border-color: var(--lpk-gold);
}

.lpk-org-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lpk-org-brand-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--lpk-gold-light), var(--lpk-gold));
    color: var(--lpk-primary-dark);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(201, 168, 62, 0.4);
    letter-spacing: -0.5px;
}

.lpk-org-info h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpk-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: var(--lpk-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.lpk-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--lpk-primary-light);
    border: 2px solid var(--lpk-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.lpk-user-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.lpk-user-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.2;
}

.lpk-user-role {
    font-size: 11px;
    color: var(--lpk-gold-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =====================================================
   Dashboard Layout Structure
   ===================================================== */
.lpk-dashboard-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 67px);
}

/* =====================================================
   Sidebar Navigation
   ===================================================== */
.lpk-sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid var(--lpk-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 67px;
    height: calc(100vh - 67px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(15, 46, 42, 0.02);
}

.lpk-sidebar::-webkit-scrollbar {
    width: 5px;
}
.lpk-sidebar::-webkit-scrollbar-thumb {
    background: var(--lpk-border);
    border-radius: 4px;
}

.lpk-nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--lpk-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 14px 6px;
    margin-top: 12px;
}

.lpk-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.lpk-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--lpk-text-muted);
    text-decoration: none;
    border-radius: var(--lpk-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--lpk-transition);
    position: relative;
    border: 1px solid transparent;
}

.lpk-nav-item:hover {
    background-color: var(--lpk-primary-surface);
    color: var(--lpk-primary);
    transform: translateX(3px);
}

.lpk-nav-item.active {
    background: linear-gradient(135deg, var(--lpk-primary) 0%, var(--lpk-primary-light) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 46, 42, 0.18);
}

.lpk-nav-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background: var(--lpk-gold);
    border-radius: 4px 0 0 4px;
}

.lpk-nav-item .dashicons {
    font-size: 19px;
    width: 19px;
    height: 19px;
    line-height: 19px;
    color: inherit;
    opacity: 0.9;
    transition: var(--lpk-transition);
}

.lpk-nav-item:hover .dashicons {
    color: var(--lpk-gold);
}

.lpk-nav-item.active .dashicons {
    color: var(--lpk-gold-light);
}

.lpk-nav-logout {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--lpk-border-subtle);
    color: var(--lpk-danger-dark);
}

.lpk-nav-logout:hover {
    background: var(--lpk-danger-surface);
    color: var(--lpk-danger);
}

/* =====================================================
   Main Content Area
   ===================================================== */
.lpk-main-content {
    flex: 1;
    padding: 32px 40px;
    background: var(--lpk-bg-canvas);
    max-width: 1440px;
    overflow-x: hidden;
}

.lpk-tab-content {
    background: var(--lpk-bg-card);
    border-radius: var(--lpk-radius-lg);
    padding: 32px;
    box-shadow: var(--lpk-shadow-sm);
    border: 1px solid var(--lpk-border);
    animation: lpk-content-fade 0.3s ease-out;
}

@keyframes lpk-content-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lpk-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--lpk-border);
    gap: 16px;
    flex-wrap: wrap;
}

.lpk-tab-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--lpk-primary-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpk-tab-subtitle {
    font-size: 14px;
    color: var(--lpk-text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* =====================================================
   Hero Welcome Banner (Ramah Orang Awam)
   ===================================================== */
.lpk-welcome-hero {
    background: linear-gradient(135deg, #0c2723 0%, var(--lpk-primary) 65%, #184e47 100%);
    border-radius: var(--lpk-radius);
    padding: 28px 32px;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--lpk-shadow-md);
    border: 1px solid rgba(201, 168, 62, 0.3);
}

.lpk-welcome-hero::after {
    content: "🌸";
    position: absolute;
    right: 24px;
    bottom: -10px;
    font-size: 110px;
    opacity: 0.12;
    pointer-events: none;
    transform: rotate(-10deg);
}

.lpk-welcome-hero h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpk-welcome-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    max-width: 680px;
    line-height: 1.5;
}

.lpk-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(201, 168, 62, 0.2);
    border: 1px solid var(--lpk-gold);
    color: var(--lpk-gold-light);
    border-radius: var(--lpk-radius-pill);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* =====================================================
   Stat Cards (Pro Max Grid)
   ===================================================== */
.lpk-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.lpk-stat-card {
    background: #ffffff;
    border-radius: var(--lpk-radius);
    padding: 22px 24px;
    box-shadow: var(--lpk-shadow-sm);
    border: 1px solid var(--lpk-border);
    transition: var(--lpk-transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.lpk-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--lpk-primary);
    opacity: 0;
    transition: var(--lpk-transition);
}

.lpk-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lpk-shadow-md);
    border-color: rgba(201, 168, 62, 0.4);
}

.lpk-stat-card:hover::before {
    opacity: 1;
    background: var(--lpk-gold);
}

.lpk-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lpk-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--lpk-primary-surface);
    color: var(--lpk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--lpk-transition);
}

.lpk-stat-card:hover .lpk-stat-icon {
    background: var(--lpk-primary);
    color: var(--lpk-gold-light);
}

.lpk-stat-card.lpk-stat-warning .lpk-stat-icon {
    background: var(--lpk-warning-surface);
    color: var(--lpk-warning);
}

.lpk-stat-card.lpk-stat-success .lpk-stat-icon {
    background: var(--lpk-success-surface);
    color: var(--lpk-success);
}

.lpk-stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--lpk-primary-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.lpk-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--lpk-text-muted);
}

.lpk-stat-hint {
    font-size: 11px;
    color: var(--lpk-text-subtle);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--lpk-border-subtle);
}

/* =====================================================
   Cards & Content Containers
   ===================================================== */
.lpk-card {
    background: #ffffff;
    border-radius: var(--lpk-radius);
    padding: 24px;
    box-shadow: var(--lpk-shadow-sm);
    border: 1px solid var(--lpk-border);
    margin-bottom: 24px;
}

.lpk-card h4 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--lpk-primary-dark);
}

/* Current Subscription Plan Card */
.lpk-current-plan {
    background: linear-gradient(135deg, #ffffff 0%, var(--lpk-gold-surface) 100%);
    border: 1.5px solid rgba(201, 168, 62, 0.4);
    position: relative;
}

.lpk-plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.lpk-plan-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--lpk-primary-dark);
    background: #fff;
    padding: 6px 16px;
    border-radius: var(--lpk-radius-pill);
    border: 1px solid var(--lpk-border);
    box-shadow: var(--lpk-shadow-xs);
}

.lpk-plan-expire {
    font-size: 13px;
    color: var(--lpk-text-muted);
    font-weight: 500;
}

.lpk-seat-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: #ffffff;
    padding: 16px;
    border-radius: var(--lpk-radius-sm);
    border: 1px solid var(--lpk-border);
}

.lpk-seat-info p {
    margin: 0;
    font-size: 14px;
    color: var(--lpk-text-muted);
    font-weight: 500;
}

/* =====================================================
   Buttons (Ergonomis, Jelas, & Berbobot)
   ===================================================== */
.lpk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--lpk-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lpk-transition);
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1.4;
    user-select: none;
}

.lpk-btn-primary {
    background: linear-gradient(145deg, var(--lpk-primary-light), var(--lpk-primary));
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 46, 42, 0.2);
}

.lpk-btn-primary:hover {
    background: linear-gradient(145deg, var(--lpk-primary), var(--lpk-primary-dark));
    box-shadow: 0 4px 12px rgba(15, 46, 42, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.lpk-btn-gold {
    background: linear-gradient(145deg, var(--lpk-gold-light), var(--lpk-gold));
    color: var(--lpk-primary-dark);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(201, 168, 62, 0.3);
}

.lpk-btn-gold:hover {
    background: linear-gradient(145deg, var(--lpk-gold), var(--lpk-gold-dark));
    color: #ffffff;
    transform: translateY(-1px);
}

.lpk-btn-secondary {
    background: #ffffff;
    color: var(--lpk-text-main);
    border: 1px solid var(--lpk-border);
}

.lpk-btn-secondary:hover {
    background: var(--lpk-bg-subtle);
    border-color: var(--lpk-text-subtle);
    color: var(--lpk-primary-dark);
}

.lpk-btn-success {
    background: var(--lpk-success);
    color: #ffffff;
}
.lpk-btn-success:hover {
    background: var(--lpk-success-dark);
}

.lpk-btn-danger {
    background: var(--lpk-danger);
    color: #ffffff;
}
.lpk-btn-danger:hover {
    background: var(--lpk-danger-dark);
}

.lpk-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.lpk-btn:disabled,
.lpk-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* =====================================================
   Pill Badges & Status Indicators
   ===================================================== */
.lpk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--lpk-radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.lpk-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.lpk-badge-success {
    background: var(--lpk-success-surface);
    color: var(--lpk-success-dark);
    border: 1px solid var(--lpk-success-border);
}

.lpk-badge-warning {
    background: var(--lpk-warning-surface);
    color: var(--lpk-warning-dark);
    border: 1px solid var(--lpk-warning-border);
}

.lpk-badge-danger {
    background: var(--lpk-danger-surface);
    color: var(--lpk-danger-dark);
    border: 1px solid var(--lpk-danger-border);
}

.lpk-badge-info {
    background: var(--lpk-info-surface);
    color: var(--lpk-info-dark);
    border: 1px solid var(--lpk-info-border);
}

/* =====================================================
   Interactive Data Tables
   ===================================================== */
.lpk-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--lpk-radius-sm);
    border: 1px solid var(--lpk-border);
}

.lpk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lpk-table th {
    background: var(--lpk-bg-subtle);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--lpk-primary-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--lpk-border);
    white-space: nowrap;
}

.lpk-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--lpk-border-subtle);
    color: var(--lpk-text-main);
    vertical-align: middle;
}

.lpk-table tbody tr {
    transition: var(--lpk-transition);
}

.lpk-table tbody tr:hover {
    background-color: rgba(15, 46, 42, 0.02);
}

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

/* =====================================================
   Forms & Controls
   ===================================================== */
.lpk-form-row {
    margin-bottom: 22px;
}

.lpk-form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lpk-primary-dark);
}

.lpk-form-row input[type="text"],
.lpk-form-row input[type="email"],
.lpk-form-row input[type="password"],
.lpk-form-row input[type="number"],
.lpk-form-row input[type="date"],
.lpk-form-row input[type="month"],
.lpk-form-row select,
.lpk-form-row textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--lpk-border);
    border-radius: var(--lpk-radius-sm);
    font-size: 14px;
    color: var(--lpk-text-main);
    background-color: #ffffff;
    transition: var(--lpk-transition);
    font-family: inherit;
}

.lpk-form-row input:focus,
.lpk-form-row select:focus,
.lpk-form-row textarea:focus {
    outline: none;
    border-color: var(--lpk-gold);
    box-shadow: var(--lpk-shadow-glow);
}

.lpk-form-hint {
    font-size: 12px;
    color: var(--lpk-text-muted);
    margin-top: 6px;
}

/* =====================================================
   Alerts & Notifications
   ===================================================== */
.lpk-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: var(--lpk-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    gap: 16px;
    flex-wrap: wrap;
}

.lpk-alert-warning {
    background: var(--lpk-warning-surface);
    border: 1px solid var(--lpk-warning-border);
    color: var(--lpk-warning-dark);
}

.lpk-alert-success {
    background: var(--lpk-success-surface);
    border: 1px solid var(--lpk-success-border);
    color: var(--lpk-success-dark);
}

.lpk-alert-danger {
    background: var(--lpk-danger-surface);
    border: 1px solid var(--lpk-danger-border);
    color: var(--lpk-danger-dark);
}

.lpk-alert-info {
    background: var(--lpk-info-surface);
    border: 1px solid var(--lpk-info-border);
    color: var(--lpk-info-dark);
}

/* =====================================================
   Class Cards Grid
   ===================================================== */
.lpk-classes-grid,
.lpk-class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.lpk-class-card {
    background: #ffffff;
    border-radius: var(--lpk-radius);
    padding: 24px;
    border: 1px solid var(--lpk-border);
    box-shadow: var(--lpk-shadow-sm);
    transition: var(--lpk-transition);
    display: flex;
    flex-direction: column;
}

.lpk-class-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lpk-shadow-md);
    border-color: rgba(201, 168, 62, 0.4);
}

.lpk-class-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 10px;
}

.lpk-class-header h4,
.lpk-class-card h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--lpk-primary-dark);
}

.lpk-class-body {
    flex: 1;
    margin-bottom: 20px;
}

.lpk-class-body p,
.lpk-class-sensei,
.lpk-class-students {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--lpk-text-muted);
}

.lpk-class-desc {
    font-size: 13px;
    color: var(--lpk-text-subtle);
    margin-top: 10px !important;
    line-height: 1.5;
}

.lpk-class-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--lpk-border-subtle);
}

/* =====================================================
   Learning Content Items (Quiz, Flashcard, Video)
   ===================================================== */
.lpk-content-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lpk-content-group h4 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--lpk-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpk-content-group h4::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--lpk-gold);
    border-radius: 4px;
}

.lpk-content-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.lpk-content-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1.5px solid var(--lpk-border);
    border-radius: var(--lpk-radius-sm);
    text-decoration: none;
    color: var(--lpk-text-main);
    transition: var(--lpk-transition);
}

.lpk-content-item:hover {
    border-color: var(--lpk-gold);
    background-color: var(--lpk-gold-surface);
    transform: translateY(-2px);
    box-shadow: var(--lpk-shadow-sm);
}

.lpk-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--lpk-primary-surface);
    color: var(--lpk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--lpk-transition);
}

.lpk-content-item:hover .lpk-item-icon {
    background: var(--lpk-primary);
    color: var(--lpk-gold-light);
}

.lpk-item-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.lpk-item-type {
    font-size: 11px;
    background: var(--lpk-bg-subtle);
    color: var(--lpk-text-muted);
}

/* =====================================================
   Package & Addon Grids (Subscription Page)
   ===================================================== */
.lpk-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.lpk-package-card {
    background: #ffffff;
    border: 2px solid var(--lpk-border);
    border-radius: var(--lpk-radius);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    transition: var(--lpk-transition);
    position: relative;
}

.lpk-package-card:hover {
    border-color: var(--lpk-gold);
    transform: translateY(-3px);
    box-shadow: var(--lpk-shadow-md);
}

.lpk-package-card.lpk-current {
    border-color: var(--lpk-primary);
    background: linear-gradient(180deg, var(--lpk-primary-surface) 0%, #ffffff 40%);
}

.lpk-package-card h5 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--lpk-primary-dark);
}

.lpk-package-price {
    margin: 12px 0 18px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.lpk-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--lpk-primary-dark);
}

.lpk-price-period {
    font-size: 12px;
    color: var(--lpk-text-muted);
}

.lpk-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.lpk-package-features li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--lpk-text-muted);
    border-bottom: 1px dashed var(--lpk-border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpk-package-features li::before {
    content: "✓";
    color: var(--lpk-success);
    font-weight: bold;
}

.lpk-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.lpk-addon-card {
    background: #ffffff;
    border: 1px solid var(--lpk-border);
    border-radius: var(--lpk-radius-sm);
    padding: 18px;
    box-shadow: var(--lpk-shadow-xs);
    transition: var(--lpk-transition);
}

.lpk-addon-card:hover {
    border-color: var(--lpk-gold);
    box-shadow: var(--lpk-shadow-sm);
}

.lpk-addon-card h5 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.lpk-addon-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--lpk-primary);
    margin: 8px 0 12px;
}

/* =====================================================
   Scores & Grades (Quiz History)
   ===================================================== */
.lpk-score-success {
    color: var(--lpk-success-dark);
    font-weight: 700;
}
.lpk-score-warning {
    color: var(--lpk-warning-dark);
    font-weight: 700;
}
.lpk-score-danger {
    color: var(--lpk-danger-dark);
    font-weight: 700;
}

/* =====================================================
   Modals (Glassmorphism & Clean Pop)
   ===================================================== */
.lpk-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 34, 31, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: lpk-modal-fade 0.2s ease-out;
}

@keyframes lpk-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lpk-modal-content {
    background: #ffffff;
    border-radius: var(--lpk-radius-lg);
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--lpk-shadow-lg);
    border: 1px solid var(--lpk-border);
    animation: lpk-modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lpk-modal-lg {
    max-width: 740px;
}

@keyframes lpk-modal-pop {
    from { transform: scale(0.95) translateY(10px); }
    to { transform: scale(1) translateY(0); }
}

.lpk-modal-content h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--lpk-primary-dark);
    border-bottom: 1px solid var(--lpk-border);
    padding-bottom: 12px;
}

.lpk-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--lpk-border-subtle);
}

/* =====================================================
   Empty State Component (Ramah Orang Awam)
   ===================================================== */
.lpk-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--lpk-bg-subtle);
    border-radius: var(--lpk-radius);
    border: 1.5px dashed var(--lpk-border);
    margin: 20px 0;
}

.lpk-empty-icon {
    font-size: 48px;
    color: var(--lpk-text-subtle);
    margin-bottom: 14px;
}

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

.lpk-empty-desc {
    font-size: 13px;
    color: var(--lpk-text-muted);
    margin: 0 auto 18px;
    max-width: 400px;
    line-height: 1.5;
}

/* =====================================================
   Payment Guide Box for Students (Billing Tab)
   ===================================================== */
.lpk-payment-guide {
    background: var(--lpk-gold-surface);
    border: 1.5px solid rgba(201, 168, 62, 0.4);
    border-radius: var(--lpk-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.lpk-payment-guide h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lpk-primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpk-payment-guide ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--lpk-text-main);
    line-height: 1.6;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 992px) {
    .lpk-main-content {
        padding: 24px 20px;
    }
    .lpk-sidebar {
        width: 230px;
    }
}

@media (max-width: 768px) {
    .lpk-mobile-toggle {
        display: inline-flex;
    }

    .lpk-dashboard-header {
        padding: 12px 18px;
    }

    .lpk-org-info h2 {
        font-size: 17px;
    }

    .lpk-user-details {
        display: none;
    }

    .lpk-dashboard-layout {
        flex-direction: column;
    }

    .lpk-sidebar {
        position: fixed;
        top: 61px;
        left: 0;
        width: 280px;
        height: calc(100vh - 61px);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    }

    .lpk-sidebar.is-open {
        transform: translateX(0);
    }

    .lpk-sidebar-backdrop {
        position: fixed;
        inset: 0;
        top: 61px;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(2px);
        z-index: 998;
        display: none;
    }

    .lpk-sidebar-backdrop.is-open {
        display: block;
    }

    .lpk-main-content {
        padding: 16px;
    }

    .lpk-tab-content {
        padding: 20px 16px;
    }

    .lpk-stats-grid {
        grid-template-columns: 1fr;
    }

    .lpk-tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Manage Quizzes & Flashcards (Native Engine & Quota UI)
   ========================================================================== */
.lpk-manage-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lpk-quota-bar-card {
    background: #ffffff;
    border: 1px solid var(--lpk-border);
    border-radius: var(--lpk-radius-md);
    padding: 16px 20px;
    box-shadow: var(--lpk-shadow-sm);
}

.lpk-quota-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.lpk-progress-track {
    background: #eef2f6;
    height: 8px;
    border-radius: var(--lpk-radius-pill);
    overflow: hidden;
}

.lpk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lpk-primary-medium), var(--lpk-gold));
    border-radius: var(--lpk-radius-pill);
    transition: width 0.3s ease;
}

.lpk-progress-danger {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
}

.lpk-modal-dialog.lpk-modal-lg {
    max-width: 780px;
}

.lpk-question-creator {
    background: var(--lpk-surface);
    border: 1px dashed var(--lpk-border);
    border-radius: var(--lpk-radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

.lpk-audio-upload-box,
.lpk-image-upload-box {
    background: #ffffff;
    border: 1px solid var(--lpk-border);
    padding: 12px 16px;
    border-radius: var(--lpk-radius-sm);
    margin: 12px 0;
}

.lpk-options-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.lpk-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lpk-qlist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lpk-qcard {
    background: #ffffff;
    border: 1px solid var(--lpk-border);
    border-radius: var(--lpk-radius-md);
    padding: 14px 18px;
    box-shadow: var(--lpk-shadow-xs);
}

.lpk-qcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--lpk-text-muted);
}

.lpk-qcard-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--lpk-text-main);
    margin-bottom: 8px;
}

.lpk-qcard-ans {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.lpk-qcard-ans li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: var(--lpk-radius-sm);
    font-size: 13px;
}

.lpk-qcard-ans li.is-correct {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
    font-weight: 600;
}

/* Flashcard Mini Grid */
.lpk-card-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.lpk-card-item {
    background: #ffffff;
    border: 1px solid var(--lpk-border);
    border-radius: var(--lpk-radius-md);
    padding: 14px;
    text-align: center;
    box-shadow: var(--lpk-shadow-xs);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lpk-card-thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: var(--lpk-radius-sm);
    margin-bottom: 4px;
}

.lpk-card-jp {
    font-size: 18px;
    font-weight: 700;
    color: var(--lpk-primary-dark);
}

.lpk-card-reading {
    font-size: 12px;
    color: var(--lpk-gold-deep);
    font-weight: 600;
}

.lpk-card-id {
    font-size: 13px;
    color: var(--lpk-text-main);
}

/* =====================================================
   Official JFT-Basic & Prometric CBT Quiz Simulator Styles
   ===================================================== */
.lpk-cbt-modal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: #b0bec5;
    display: none;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    overflow: hidden;
    user-select: none;
}

/* Row 1 Header: Black Bar */
.lpk-cbt-top-bar {
    background: #000000;
    color: #ffffff;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid #222222;
    flex-shrink: 0;
}

.lpk-cbt-meta-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.lpk-cbt-meta-left .cbt-q-title {
    color: #ffeb3b;
    font-weight: 800;
}

.lpk-cbt-meta-left .cbt-sec-title {
    color: #ffeb3b;
    font-weight: 700;
}

.lpk-cbt-meta-center {
    display: flex;
    align-items: center;
}

.lpk-cbt-timer-capsule {
    background: #111111;
    border: 1.5px solid #333333;
    border-radius: 20px;
    padding: 5px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpk-cbt-timer-capsule .cbt-clock-icon {
    width: 18px;
    height: 18px;
    background: #1e88e5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
}

.lpk-cbt-timer-label {
    color: #ffd700;
    font-size: 12px;
    font-weight: 700;
}

.lpk-cbt-timer-val {
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1.2px;
    font-family: "Courier New", Courier, monospace;
}

.lpk-cbt-meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lpk-cbt-finish-btn {
    background: #ffcc00;
    color: #000000;
    border: none;
    border-radius: 4px;
    padding: 7px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s;
}

.lpk-cbt-finish-btn:hover {
    background: #ffd740;
    transform: translateY(-1px);
}

.lpk-cbt-exit-btn {
    background: transparent;
    border: none;
    color: #9e9e9e;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.lpk-cbt-exit-btn:hover {
    color: #ffffff;
}

/* Row 2 Header: Green Bar */
.lpk-cbt-sub-bar {
    background: #5c9e31;
    color: #ffffff;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid #4a8226;
    flex-shrink: 0;
}

/* Main CBT Container (Layout) */
.lpk-cbt-main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #b0bec5;
}

/* Column 1: Sections Column (Paling Kiri) */
.lpk-cbt-col-sections {
    width: 68px;
    background: #ffffff;
    border-right: 1px solid #cfd8dc;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 2px;
    gap: 16px;
    overflow-y: auto;
    flex-shrink: 0;
}

.lpk-cbt-sec-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 100%;
    padding: 4px 0;
    text-decoration: none;
}

.lpk-cbt-sec-pill {
    width: 12px;
    height: 60px;
    background: #cfd8dc;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s, width 0.2s;
}

.lpk-cbt-sec-tab.active .lpk-cbt-sec-pill {
    background: #689f38;
    width: 14px;
}

.lpk-cbt-sec-name {
    font-size: 10.5px;
    font-weight: 700;
    color: #78909c;
    text-align: center;
    line-height: 1.1;
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lpk-cbt-sec-tab.active .lpk-cbt-sec-name {
    color: #2e7d32;
    font-weight: 800;
}

/* Column 2: Question Numbers Column (Sebelahnya) */
.lpk-cbt-col-numbers {
    width: 62px;
    background: #b0bec5;
    border-right: 1px solid #90a4ae;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    gap: 8px;
    overflow-y: auto;
    flex-shrink: 0;
}

.lpk-cbt-num-btn {
    width: 48px;
    height: 32px;
    background: #cfd8dc;
    color: #37474f;
    border: 1px solid #90a4ae;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.lpk-cbt-num-btn:hover {
    background: #eceff1;
}

.lpk-cbt-num-btn.active {
    background: #5c9e31;
    color: #ffffff;
    border-color: #4a8226;
    clip-path: polygon(0% 0%, 78% 0%, 100% 50%, 78% 100%, 0% 100%);
    padding-right: 6px;
}

.lpk-cbt-num-btn.answered:not(.active) {
    background: #81c784;
    color: #1b5e20;
    border-color: #66bb6a;
}

.lpk-cbt-num-btn.flagged::after {
    content: "⚑";
    position: absolute;
    top: -4px;
    right: 0px;
    font-size: 11px;
    color: #e65100;
}

/* Center Question Canvas */
.lpk-cbt-canvas-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #b0bec5;
}

.lpk-cbt-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 980px;
    min-height: 480px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.lpk-cbt-instruction-box {
    background: #e1f5fe;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #01579b;
    margin-bottom: 20px;
    line-height: 1.5;
    border: 1px solid #b3e5fc;
}

.lpk-cbt-prompt-box {
    background: #f0f4f8;
    border: 1px solid #d9e2ec;
    border-radius: 4px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 20px;
}

.lpk-cbt-media-center {
    text-align: center;
    margin: 10px 0 20px 0;
}

.lpk-cbt-image {
    max-height: 230px;
    max-width: 100%;
    border-radius: 4px;
    display: inline-block;
    object-fit: contain;
}

.lpk-cbt-audio-player {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.lpk-cbt-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

@keyframes cbtFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lpk-cbt-fade-in {
    animation: cbtFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lpk-cbt-option-card {
    border: 2px solid #cbd5e1;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lpk-cbt-option-card:hover {
    background: #f8fafc;
    border-color: #689f38;
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(104, 159, 56, 0.15);
}

.lpk-cbt-option-card:active {
    transform: scale(0.99);
}

.lpk-cbt-option-card.selected {
    background: #f0fdf4;
    border-color: #2e7d32;
    box-shadow: 0 3px 12px rgba(46, 125, 50, 0.2);
    transform: translateX(4px);
}

.lpk-cbt-option-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1.5px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.lpk-cbt-option-card:hover .lpk-cbt-option-badge {
    border-color: #689f38;
    color: #2e7d32;
}

.lpk-cbt-option-card.selected .lpk-cbt-option-badge {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35);
}

/* Result Stats Breakdown */
.lpk-cbt-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 20px auto;
    width: 100%;
}

.lpk-cbt-result-stats .stat-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lpk-cbt-result-stats .stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.lpk-cbt-result-stats .stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bottom Sticky Bar */
.lpk-cbt-bottom-bar {
    background: #000000;
    color: #ffffff;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #5c9e31;
    min-height: 54px;
    flex-shrink: 0;
}

.lpk-cbt-bottom-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lpk-cbt-tool-icon-btn {
    background: #222222;
    border: 1px solid #444444;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    transition: background 0.15s, border-color 0.15s;
}

.lpk-cbt-tool-icon-btn:hover {
    background: #5c9e31;
    border-color: #5c9e31;
}

.lpk-cbt-bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpk-cbt-flag-btn {
    width: 38px;
    height: 38px;
    background: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 4px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s;
}

.lpk-cbt-flag-btn:hover {
    background: #444444;
    transform: scale(1.05);
}

.lpk-cbt-flag-btn.flagged {
    background: #e65100;
    border-color: #e65100;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(230, 81, 0, 0.4);
}

.lpk-cbt-flag-btn.flagged:hover {
    background: #f57c00;
}

.lpk-cbt-nav-btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 38px;
}

.lpk-cbt-btn-back {
    background: #689f38;
    color: #ffffff;
}

.lpk-cbt-btn-back:hover {
    background: #7cb342;
    transform: translateX(-2px);
}

.lpk-cbt-btn-next {
    background: #2e7d32;
    color: #ffffff;
}

.lpk-cbt-btn-next:hover {
    background: #388e3c;
    transform: translateX(2px);
}

/* Quick Question Review Modal */
.lpk-cbt-grid-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lpk-cbt-grid-dialog {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.lpk-cbt-grid-header {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lpk-cbt-grid-header h4 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.lpk-cbt-grid-body {
    padding: 20px;
    overflow-y: auto;
}

.lpk-cbt-grid-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    flex-wrap: wrap;
}

.lpk-cbt-grid-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lpk-cbt-grid-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
}

.lpk-cbt-grid-matrix button {
    height: 40px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #334155;
    transition: all 0.15s;
    position: relative;
}

.lpk-cbt-grid-matrix button.answered {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
}

.lpk-cbt-grid-matrix button.flagged::after {
    content: "⚑";
    position: absolute;
    top: -3px;
    right: 2px;
    font-size: 10px;
    color: #e65100;
}

.lpk-cbt-grid-matrix button.active {
    outline: 2px solid #ffcc00;
    outline-offset: 1px;
}

@media (max-width: 768px) {
    .lpk-cbt-top-bar {
        padding: 6px 12px;
    }
    .lpk-cbt-sub-bar {
        padding: 4px 12px;
        font-size: 11px;
    }
    .lpk-cbt-sheet {
        padding: 16px;
    }
    .lpk-cbt-col-sections {
        width: 48px;
        padding: 8px 2px;
    }
    .lpk-cbt-col-numbers {
        width: 46px;
        padding: 8px 4px;
    }
    .lpk-cbt-num-btn {
        width: 36px;
        height: 28px;
        font-size: 11px;
    }
    .lpk-cbt-option-card {
        padding: 10px 14px;
        font-size: 14px;
        gap: 10px;
    }
    .lpk-cbt-option-badge {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .lpk-cbt-result-stats {
        grid-template-columns: 1fr;
    }
}