/* --- CUM LUXURY DASHBOARD THEME (REMASTERED & RESPONSIVE) --- */

/* 1. CSS VARIABLES & SCOPED RESET */
:root {
    --cum-bg-dark: #0f172a;
    --cum-bg-panel: rgba(30, 41, 59, 0.78);
    --cum-border: rgba(255, 255, 255, 0.1);
    --cum-gold: #d4af37;
    --cum-gold-glow: rgba(212, 175, 55, 0.4);
    --cum-text-main: #f8fafc;
    --cum-text-muted: #94a3b8;
    --cum-success: #10b981;
    --cum-warning: #f59e0b;
    --cum-danger: #ef4444;
    --cum-info: #3b82f6;
    --cum-primary-gradient: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    --cum-radius: 16px;
    --cum-font-head: 'Playfair Display', serif;
    --cum-font-body: 'Plus Jakarta Sans', sans-serif;
}

#cum-main-wrapper.cum-dashboard-wrapper {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 30px auto;
    background-color: var(--cum-bg-dark);
    color: var(--cum-text-main);
    font-family: var(--cum-font-body);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    line-height: 1.6;
    z-index: 10;
}

/* Scoped Box-Sizing & Font Inheritance (Tanpa merusak Font Awesome) */
#cum-main-wrapper *,
#cum-main-wrapper *::before,
#cum-main-wrapper *::after {
    box-sizing: border-box;
}

#cum-main-wrapper p,
#cum-main-wrapper span,
#cum-main-wrapper div,
#cum-main-wrapper a,
#cum-main-wrapper label,
#cum-main-wrapper input,
#cum-main-wrapper button,
#cum-main-wrapper select,
#cum-main-wrapper textarea {
    font-family: var(--cum-font-body);
}

#cum-main-wrapper h1,
#cum-main-wrapper h2,
#cum-main-wrapper h3,
#cum-main-wrapper h4,
#cum-main-wrapper h5,
#cum-main-wrapper h6 {
    font-family: var(--cum-font-head);
    color: var(--cum-text-main);
    margin: 0 0 15px 0;
    line-height: 1.3;
    letter-spacing: normal;
}

#cum-main-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

#cum-main-wrapper ul,
#cum-main-wrapper li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Background Decoration */
#cum-main-wrapper::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--cum-gold-glow) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* 2. SHARED COMPONENTS (GLASS PANEL & ADMIN BANNER) */
.cum-glass-panel {
    background: var(--cum-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cum-border);
    border-radius: var(--cum-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.cum-admin-view-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #fef3c7;
    position: relative;
    z-index: 3;
    font-size: 13px;
}

.cum-admin-banner-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cum-admin-banner-info i {
    color: var(--cum-gold);
    font-size: 16px;
}

.cum-admin-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cum-btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--cum-gold);
    color: #0f172a !important;
}

.cum-btn-banner.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border: 1px solid var(--cum-border);
}

.cum-btn-banner:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 3. HEADER SECTION */
.cum-header-card {
    padding: 25px 30px;
    margin-bottom: 28px;
}

.cum-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    flex-wrap: nowrap;
}

.cum-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.cum-avatar-img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cum-gold);
    padding: 3px;
    background: rgba(0, 0, 0, 0.25);
    display: block;
}

.cum-status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: var(--cum-success);
    border: 2px solid var(--cum-bg-dark);
    border-radius: 50%;
}

.cum-user-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 6px;
}

.cum-welcome-text {
    font-size: 24px;
    margin-bottom: 2px !important;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
}

.cum-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.cum-badge {
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: capitalize;
    letter-spacing: 0.4px;
    border: 1px solid var(--cum-border);
    color: var(--cum-text-muted);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cum-membership-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    width: fit-content;
    max-width: 100%;
}

.cum-membership-status.cum-active {
    color: var(--cum-success);
    border-left: 3px solid var(--cum-success);
}

.cum-membership-status.cum-expiring-soon {
    color: var(--cum-warning);
    border-left: 3px solid var(--cum-warning);
    background: rgba(245, 158, 11, 0.1);
}

.cum-membership-status.cum-expired {
    color: var(--cum-danger);
    border-left: 3px solid var(--cum-danger);
    background: rgba(239, 68, 68, 0.1);
}

.cum-membership-status.cum-lifetime {
    color: var(--cum-gold);
    border-left: 3px solid var(--cum-gold);
}

.cum-header-action {
    flex-shrink: 0;
    margin-left: auto;
}

/* Buttons */
.cum-btn-glass {
    padding: 9px 18px;
    border: 1px solid var(--cum-border);
    color: var(--cum-text-main);
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.cum-btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.cum-btn-primary {
    background: var(--cum-primary-gradient);
    color: #0f172a;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.cum-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.35);
}

/* 4. DASHBOARD GRID SYSTEM & SIDEBAR */
.cum-dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.cum-sidebar {
    padding: 20px;
    margin-bottom: 0;
}

.cum-mobile-nav-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cum-border);
    color: var(--cum-text-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cum-mobile-nav-current {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cum-gold);
}

.cum-toggle-chevron {
    transition: transform 0.25s ease;
    color: var(--cum-text-muted);
}

.cum-mobile-nav-toggle[aria-expanded="true"] .cum-toggle-chevron {
    transform: rotate(180deg);
}

.cum-menu-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: var(--cum-text-muted);
    margin: 14px 0 8px 8px;
    opacity: 0.7;
    font-weight: 700;
    text-transform: uppercase;
}

.cum-nav-menu .cum-menu-label:first-child {
    margin-top: 2px;
}

.cum-menu-separator {
    height: 1px;
    background: var(--cum-border);
    margin: 14px 0;
}

.cum-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 4px;
    border-radius: 9px;
    color: var(--cum-text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
}

.cum-nav-link i {
    width: 18px;
    text-align: center;
    transition: 0.25s;
    font-size: 14px;
    flex-shrink: 0;
}

.cum-nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cum-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.cum-nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--cum-gold);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.cum-nav-link.active i {
    color: var(--cum-gold);
}

.cum-nav-badge {
    background: var(--cum-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    line-height: 1.1;
}

/* 5. CONTENT AREA & OVERVIEW */
.cum-main-content {
    min-width: 0;
}

.cum-section-title {
    font-size: 22px;
    margin-bottom: 18px !important;
}

.cum-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cum-tab-content.active {
    display: block;
    opacity: 1;
}

/* Stats Grid (4 Kolom Desktop -> 2 Tablet -> 1 Mobile Kecil) */
.cum-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.cum-stat-card {
    padding: 18px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.cum-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
}

.cum-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.cum-stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cum-stat-label {
    font-size: 12px;
    color: var(--cum-text-muted);
}

.cum-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cum-stat-value.small-text {
    font-size: 15px;
}

/* Glow Effects */
.glow-blue .cum-stat-icon { color: #60a5fa; box-shadow: 0 0 15px rgba(96, 165, 250, 0.2); }
.glow-purple .cum-stat-icon { color: #a78bfa; box-shadow: 0 0 15px rgba(167, 139, 250, 0.2); }
.glow-green .cum-stat-icon { color: #34d399; box-shadow: 0 0 15px rgba(52, 211, 153, 0.2); }
.glow-gold .cum-stat-icon { color: var(--cum-gold); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }

/* Overview Widgets */
.cum-overview-widgets {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.cum-widget-card,
.cum-overview-quick-widget {
    margin-bottom: 0;
}

.cum-card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cum-widget-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--cum-gold) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.cum-widget-more:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

.cum-header-count {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cum-text-muted);
    border: 1px solid var(--cum-border);
}

.cum-mini-chart-body {
    height: 230px;
    padding: 14px;
}

.cum-mini-notify-list {
    padding: 8px 0;
}

.cum-mini-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--cum-border);
}

.cum-mini-notify-item:last-child {
    border-bottom: none;
}

.cum-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cum-gold);
    margin-top: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--cum-gold-glow);
}

.cum-mini-notify-text p {
    margin: 0 0 3px 0 !important;
    font-size: 13px;
    color: var(--cum-text-main);
    line-height: 1.45;
}

.cum-mini-notify-text span {
    font-size: 11px;
    color: var(--cum-text-muted);
}

.cum-quick-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    padding: 20px 25px;
}

.cum-quick-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cum-border);
    color: var(--cum-text-main) !important;
    font-size: 13px;
    font-weight: 500;
}

.cum-quick-chip i {
    color: var(--cum-gold);
    font-size: 13px;
    flex-shrink: 0;
}

.cum-quick-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cum-quick-chip:hover {
    border-color: var(--cum-gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

/* Cards & Notifications List */
.cum-card {
    width: 100%;
    overflow: hidden;
}

.cum-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--cum-border);
    background: rgba(0, 0, 0, 0.15);
}

.cum-card-header h3 {
    margin: 0 !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cum-card-header h3 i {
    color: var(--cum-gold);
}

.cum-card-body {
    padding: 0;
}

.cum-shortcode-body {
    padding: 24px;
}

.cum-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cum-notify-item {
    display: flex;
    gap: 15px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--cum-border);
    transition: background 0.2s;
    position: relative;
}

.cum-notify-item:last-child {
    border-bottom: none;
}

.cum-notify-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cum-notify-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: var(--cum-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.cum-notify-content {
    flex: 1;
    min-width: 0;
}

.cum-notify-msg {
    margin: 0 0 6px 0 !important;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    word-break: break-word;
}

.cum-notify-footer {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--cum-text-muted);
    align-items: center;
    flex-wrap: wrap;
}

.cum-link-action {
    color: var(--cum-gold) !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cum-btn-delete {
    color: var(--cum-text-muted) !important;
    opacity: 0.55;
    transition: 0.2s;
    margin-left: auto;
    align-self: flex-start;
    padding: 4px;
}

.cum-btn-delete:hover {
    color: var(--cum-danger) !important;
    opacity: 1;
}

.cum-empty-state {
    padding: 40px 24px;
    text-align: center;
    color: var(--cum-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cum-empty-state.compact {
    padding: 28px 20px;
}

.cum-empty-state i {
    font-size: 28px;
    opacity: 0.5;
}

.cum-empty-state p {
    margin: 0 !important;
    font-size: 13px;
}

/* Quick Links Grid */
.cum-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    padding: 24px;
}

.cum-quick-card {
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cum-border);
    transition: 0.25s;
    overflow: hidden;
    display: flex;
}

.cum-quick-card:hover {
    border-color: var(--cum-gold);
    transform: translateY(-3px);
}

.cum-quick-click-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    text-decoration: none;
    color: #fff !important;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.cum-quick-icon {
    font-size: 24px;
    color: var(--cum-gold);
}

.cum-quick-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.cum-btn-delete-abs {
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--cum-text-muted) !important;
    padding: 5px;
    font-size: 12px;
    z-index: 5;
}

.cum-btn-delete-abs:hover {
    color: var(--cum-danger) !important;
}

/* Forms & Password Toggle */
.cum-form-luxury {
    padding: 24px;
}

.cum-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cum-form-group {
    margin-bottom: 20px;
}

.cum-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--cum-text-muted);
    font-weight: 500;
}

.cum-form-luxury input[type="text"],
.cum-form-luxury input[type="email"],
.cum-form-luxury input[type="password"] {
    width: 100%;
    padding: 11px 15px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--cum-border) !important;
    border-radius: 9px;
    color: #fff !important;
    font-size: 14px;
    transition: 0.25s;
    outline: none;
    height: auto;
}

.cum-form-luxury input:focus {
    border-color: var(--cum-gold) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.cum-password-wrapper {
    position: relative;
}

.cum-password-wrapper input {
    padding-right: 44px !important;
}

.cum-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--cum-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    z-index: 3;
    transition: color 0.2s;
}

.cum-toggle-password:hover {
    color: var(--cum-gold);
}

/* File Upload (Clean & Interactive) */
.cum-file-upload-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--cum-border);
}

.cum-file-upload-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cum-gold);
    flex-shrink: 0;
}

.cum-file-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cum-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cum-file-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 16px;
    margin-bottom: 0 !important;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--cum-gold) !important;
    transition: 0.25s;
}

.cum-file-label:hover {
    background: rgba(212, 175, 55, 0.24);
}

.cum-file-name {
    font-size: 12px;
    color: var(--cum-text-muted);
    word-break: break-all;
}

/* Alerts */
.cum-alert {
    position: relative;
    padding: 14px 42px 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.cum-alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cum-alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cum-alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cum-alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px;
}

.cum-alert-close:hover {
    opacity: 1;
}

/* Chart Container */
.cum-chart-body {
    height: 380px;
    padding: 16px;
}

.cum-chart-container {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Custom Iframe (Tinggi Adaptif) */
.cum-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 68vh;
    min-height: 480px;
    overflow: hidden;
    border-radius: 0 0 var(--cum-radius) var(--cum-radius);
    background: #020617;
}

.cum-custom-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Login Page Specific */
.cum-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.cum-login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    margin-bottom: 0;
}

.cum-login-card .cum-form-luxury {
    padding: 0;
}

.cum-login-header {
    text-align: center;
    margin-bottom: 26px;
}

.cum-login-title {
    font-size: 28px !important;
    margin-bottom: 6px !important;
}

.cum-login-subtitle {
    color: var(--cum-text-muted);
    font-size: 14px;
    margin: 0 !important;
}

.cum-input-icon-wrapper {
    position: relative;
}

.cum-input-icon-wrapper .cum-input-prefix-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cum-text-muted);
    z-index: 2;
    pointer-events: none;
}

.cum-input-icon-wrapper input {
    padding-left: 42px !important;
}

.cum-form-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--cum-text-muted);
    margin-bottom: 22px;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cum-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0 !important;
}

.cum-forgot-link {
    color: var(--cum-gold) !important;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* --- 6. RESPONSIVE MEDIA QUERIES --- */

/* Desktop Sedang / Tablet Besar (Below 1160px) */
@media (max-width: 1160px) {
    .cum-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cum-overview-widgets {
        grid-template-columns: 1fr;
    }
}

/* Tablet & Mobile (Below 992px) */
@media (max-width: 992px) {
    .cum-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cum-sidebar {
        min-height: auto;
        padding: 14px;
    }

    .cum-mobile-nav-toggle {
        display: flex;
    }

    .cum-nav-menu {
        display: none;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--cum-border);
    }

    .cum-nav-menu.is-open {
        display: block;
    }

    .cum-header-content {
        flex-wrap: wrap;
    }
}

/* Mobile Small (Below 600px) - Specificity setara agar override sempurna */
@media (max-width: 600px) {
    #cum-main-wrapper.cum-dashboard-wrapper {
        margin: 12px auto;
        padding: 16px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
    }

    .cum-header-card {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .cum-header-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .cum-welcome-text {
        font-size: 20px;
    }

    .cum-user-details {
        width: 100%;
        align-items: center;
    }

    .cum-badges,
    .cum-membership-status {
        justify-content: center;
    }

    .cum-header-action {
        width: 100%;
        margin: 0;
    }

    .cum-btn-glass {
        width: 100%;
        justify-content: center;
    }

    .cum-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cum-form-luxury {
        padding: 18px;
    }

    .cum-card-header {
        padding: 14px 18px;
    }

    .cum-notify-item {
        padding: 15px 18px;
    }

    .cum-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px;
        gap: 12px;
    }

    .cum-quick-chips-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .cum-chart-body {
        height: 290px;
    }

    .cum-iframe-wrapper {
        height: 65vh;
        min-height: 380px;
    }

    .cum-login-card {
        padding: 26px 20px;
    }
}

/* Mobile Extra Small (Below 420px) */
@media (max-width: 420px) {
    .cum-stats-grid {
        grid-template-columns: 1fr;
    }

    .cum-quick-grid {
        grid-template-columns: 1fr;
    }
}