/* =========================================================================
   PROMPTSKILL ADMIN PORTAL — SOLO LEVELING DARK FANTASY 3D UI
   Palet Utama: #07172E | #123C70 | #168BFF | #36D9FF | #B8EDFF
   Font: Orbitron (Display/Futuristic) & Roboto (UI/Body)
   ========================================================================= */

:root {
    /* Palet Warna Utama Sesuai Spesifikasi */
    --bg-abyss: #07172E;
    --bg-deep: #051022;
    --bg-navy: #123C70;
    --primary-electric: #168BFF;
    --accent-cyan: #36D9FF;
    --text-ice: #B8EDFF;
    --text-white: #F4FAFF;
    --text-muted: #7DA8D6;

    /* Warna Sekunder & Status Sesuai Gambar Referensi */
    --accent-purple: #8B5CF6;
    --accent-purple-glow: rgba(139, 92, 246, 0.45);
    --status-green: #22C55E;
    --status-green-bg: rgba(34, 197, 94, 0.18);
    --status-gold: #FBBF24;
    --status-danger: #EF4444;

    /* Glassmorphism & Border 3D */
    --glass-bg: rgba(10, 29, 59, 0.72);
    --glass-bg-strong: rgba(8, 23, 48, 0.86);
    --glass-card: linear-gradient(145deg, rgba(18, 60, 112, 0.52) 0%, rgba(7, 23, 46, 0.84) 100%);
    --glass-card-hover: linear-gradient(145deg, rgba(22, 139, 255, 0.34) 0%, rgba(12, 36, 72, 0.90) 100%);
    --border-cyan: rgba(54, 217, 255, 0.38);
    --border-cyan-bright: rgba(54, 217, 255, 0.85);
    --border-purple: rgba(168, 85, 247, 0.48);
    --glow-cyan-sm: 0 0 14px rgba(54, 217, 255, 0.32);
    --glow-cyan-md: 0 0 24px rgba(22, 139, 255, 0.45), 0 0 8px rgba(54, 217, 255, 0.35);
    --glow-cyan-lg: 0 0 36px rgba(22, 139, 255, 0.60), 0 0 14px rgba(54, 217, 255, 0.55);
    --shadow-3d: 0 14px 32px rgba(2, 8, 20, 0.72), inset 0 1px 1px rgba(184, 237, 255, 0.25);

    /* Tipografi */
    --font-display: 'Orbitron', 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sistem Motion Terpusat (SKILL.md Section 21.3) */
    --dur-fast: 150ms;
    --dur-base: 250ms;
    --dur-slow: 400ms;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Ukuran Layout */
    --sidebar-width: 248px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
}

/* Mode Terang (Light Theme Override di Pengaturan) */
body.theme-light {
    --bg-abyss: #E6F2FF;
    --bg-deep: #D4E8FF;
    --bg-navy: #B8DAFF;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-bg-strong: rgba(245, 250, 255, 0.94);
    --glass-card: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(226, 240, 255, 0.88) 100%);
    --glass-card-hover: linear-gradient(145deg, rgba(215, 236, 255, 0.98) 0%, rgba(195, 225, 255, 0.95) 100%);
    --text-white: #07172E;
    --text-ice: #123C70;
    --text-muted: #3A608C;
    --border-cyan: rgba(22, 139, 255, 0.38);
    --shadow-3d: 0 10px 26px rgba(18, 60, 112, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Reset & Dasar */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   BACKGROUND LAYER: SOLO LEVELING HUNTER, DUNGEON, & EFEK ENERGI BIRU
   ========================================================================= */
.dungeon-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 24%, rgba(54, 217, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 20% 88%, rgba(22, 139, 255, 0.24) 0%, transparent 50%),
        linear-gradient(135deg, #040D1D 0%, #07172E 50%, #0B2548 100%);
}

.dungeon-hero-art {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    height: 100%;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    opacity: 0.72;
    filter: saturate(1.15) contrast(1.06);
    mask-image: linear-gradient(to right, transparent 2%, rgba(0,0,0,0.45) 28%, rgba(0,0,0,0.95) 68%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 2%, rgba(0,0,0,0.45) 28%, rgba(0,0,0,0.95) 68%, rgba(0,0,0,1) 100%);
    animation: heroPulseFloat 9s ease-in-out infinite alternate;
    transform-origin: right center;
}

body.theme-light .dungeon-hero-art {
    opacity: 0.26;
}

.dungeon-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #051124 0%, rgba(7, 23, 46, 0.86) 36%, rgba(7, 23, 46, 0.42) 68%, rgba(7, 23, 46, 0.65) 100%),
        linear-gradient(180deg, rgba(5, 16, 34, 0.15) 0%, rgba(7, 23, 46, 0.58) 56%, rgba(5, 14, 30, 0.94) 100%);
}

body.theme-light .dungeon-vignette {
    background:
        linear-gradient(90deg, rgba(230, 242, 255, 0.95) 0%, rgba(230, 242, 255, 0.82) 45%, rgba(230, 242, 255, 0.68) 100%);
}

/* Efek Partikel Mana Biru Elektrik */
.mana-aura-bottom {
    position: absolute;
    bottom: -30px;
    left: 15%;
    right: 5%;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(54, 217, 255, 0.35) 0%, rgba(22, 139, 255, 0.15) 45%, transparent 75%);
    filter: blur(22px);
    animation: manaWave 5s ease-in-out infinite alternate;
}

.mana-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mana-spark {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 0%, #36D9FF 55%, transparent 100%);
    box-shadow: 0 0 12px #36D9FF, 0 0 22px #168BFF;
    opacity: 0.55;
    animation: floatSpark linear infinite;
}

@keyframes heroPulseFloat {
    0% { transform: scale(1) translate3d(0, 0, 0); }
    100% { transform: scale(1.028) translate3d(-6px, 4px, 0); }
}

@keyframes manaWave {
    0% { opacity: 0.55; transform: scaleX(0.96) translateY(0); }
    100% { opacity: 0.92; transform: scaleX(1.04) translateY(-8px); }
}

@keyframes floatSpark {
    0% { transform: translateY(100vh) scale(0.4); opacity: 0; }
    20% { opacity: 0.75; }
    80% { opacity: 0.65; }
    100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

/* =========================================================================
   STRUKTUR SHELL UTAMA (SIDEBAR + MAIN CONTENT)
   ========================================================================= */
.portal-shell {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    padding: 16px;
    gap: 20px;
    max-width: 1680px;
    margin: 0 auto;
}

/* =========================================================================
   SIDEBAR FUTURISTIK 3D GLASSMORPHISM
   ========================================================================= */
.portal-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(10, 31, 64, 0.88) 0%, rgba(6, 18, 38, 0.94) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--border-cyan);
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 28px rgba(22, 139, 255, 0.25),
        inset 0 0 22px rgba(22, 139, 255, 0.12),
        0 18px 40px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.portal-sidebar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    box-shadow: 0 0 12px var(--accent-cyan);
}

/* Brand Header di Sidebar */
.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(54, 217, 255, 0.16);
    cursor: pointer;
    user-select: none;
}

.brand-crest {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 14px rgba(54, 217, 255, 0.75));
    transition: transform var(--dur-base) var(--ease-spring), filter var(--dur-base) var(--ease-out);
}

.sidebar-brand:hover .brand-crest {
    transform: translateY(-3px) scale(1.06);
    filter: drop-shadow(0 0 22px rgba(54, 217, 255, 0.98));
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: var(--text-white);
    text-shadow: 0 0 14px rgba(22, 139, 255, 0.55);
}

.brand-title span {
    color: var(--accent-cyan);
    text-shadow: 0 0 16px rgba(54, 217, 255, 0.85);
}

.brand-subtitle {
    font-size: 0.76rem;
    color: var(--text-ice);
    opacity: 0.82;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

/* Navigasi Menu Sidebar */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(54, 217, 255, 0.25);
    border-radius: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-ice);
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition:
        background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-out);
}

.nav-item .nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 60, 112, 0.48);
    border: 1px solid rgba(54, 217, 255, 0.24);
    color: var(--accent-cyan);
    flex-shrink: 0;
    transition: all var(--dur-fast) var(--ease-out);
}

.nav-item:hover {
    background: rgba(22, 139, 255, 0.18);
    border-color: rgba(54, 217, 255, 0.38);
    color: var(--text-white);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(22, 139, 255, 0.22);
}

.nav-item:hover .nav-icon {
    background: rgba(22, 139, 255, 0.35);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(54, 217, 255, 0.55);
    transform: scale(1.06);
}

.nav-item:active {
    transform: translateX(2px) translateY(2px) scale(0.98);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(22, 139, 255, 0.68) 0%, rgba(54, 217, 255, 0.28) 100%);
    border-color: var(--border-cyan-bright);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow:
        0 0 22px rgba(54, 217, 255, 0.45),
        inset 0 0 14px rgba(184, 237, 255, 0.28);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 20%;
    bottom: 20%;
    width: 4px;
    border-radius: 4px;
    background: #FFFFFF;
    box-shadow: 0 0 12px #36D9FF, 0 0 20px #36D9FF;
}

.nav-item.active .nav-icon {
    background: linear-gradient(135deg, #36D9FF 0%, #168BFF 100%);
    color: #06152D;
    border-color: #B8EDFF;
    box-shadow: 0 0 14px rgba(54, 217, 255, 0.8);
}

/* Profil Admin di Bawah Sidebar */
.sidebar-profile {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(18, 60, 112, 0.58) 0%, rgba(7, 23, 46, 0.88) 100%);
    border: 1px solid rgba(54, 217, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(184, 237, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
}

.sidebar-profile:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan-sm);
    transform: translateY(-2px);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(54, 217, 255, 0.55);
    overflow: hidden;
    flex-shrink: 0;
    background: #0B2548;
    position: relative;
}

.profile-avatar img,
.profile-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.profile-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-white);
    line-height: 1.2;
}

.profile-role-badge {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: linear-gradient(90deg, #168BFF 0%, #36D9FF 100%);
    color: #041022;
    box-shadow: 0 0 10px rgba(54, 217, 255, 0.5);
}

.profile-chevron {
    color: var(--text-ice);
    opacity: 0.75;
    transition: transform var(--dur-fast) var(--ease-out);
}

.sidebar-profile:hover .profile-chevron {
    transform: translateY(2px);
    color: var(--accent-cyan);
}

/* =========================================================================
   AREA KONTEN UTAMA (MAIN WORKSPACE)
   ========================================================================= */
.portal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 36px;
}

/* Topbar (Search + Notifikasi + Bantuan + Fullscreen) */
.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 4px 0;
}

.mobile-menu-trigger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-cyan);
    background: var(--glass-bg);
    color: var(--text-white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--glow-cyan-sm);
}

.mobile-brand-inline {
    display: none;
    align-items: center;
    gap: 8px;
}

.topbar-search {
    position: relative;
    flex: 1;
    max-width: 460px;
}

.topbar-search input {
    width: 100%;
    height: 44px;
    padding: 0 78px 0 42px;
    border-radius: 13px;
    border: 1px solid rgba(54, 217, 255, 0.35);
    background: rgba(8, 24, 50, 0.76);
    backdrop-filter: blur(14px);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45), 0 4px 18px rgba(7, 23, 46, 0.45);
    transition: all var(--dur-base) var(--ease-out);
}

.topbar-search input::placeholder {
    color: var(--text-ice);
    opacity: 0.72;
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(10, 31, 64, 0.92);
    box-shadow: 0 0 20px rgba(54, 217, 255, 0.4), inset 0 0 8px rgba(54, 217, 255, 0.15);
}

.topbar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cyan);
    pointer-events: none;
}

.topbar-search .shortcut-pill {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(18, 60, 112, 0.75);
    border: 1px solid rgba(54, 217, 255, 0.32);
    color: var(--text-ice);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn-3d {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(54, 217, 255, 0.36);
    background: rgba(10, 29, 59, 0.78);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(184, 237, 255, 0.22);
    transition:
        transform var(--dur-fast) var(--ease-spring),
        border-color var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out);
}

.icon-btn-3d:hover {
    border-color: var(--accent-cyan);
    background: rgba(22, 139, 255, 0.28);
    box-shadow: var(--glow-cyan-sm);
    transform: translateY(-2px);
}

.icon-btn-3d:active {
    transform: translateY(2px) scale(0.95);
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--status-danger);
    border: 1.5px solid #07172E;
    box-shadow: 0 0 8px var(--status-danger);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.85; }
}

/* =========================================================================
   HERO SECTION DASHBOARD (PORTAL ADMIN PROMPT & SKILL)
   ========================================================================= */
.hero-banner {
    position: relative;
    padding: 18px 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 155px;
}

.hero-kicker {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.72rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 2px;
    color: var(--text-white);
    text-transform: uppercase;
    text-shadow:
        0 0 18px rgba(54, 217, 255, 0.75),
        0 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.15;
}

.hero-main-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.85rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #FFFFFF 15%, #B8EDFF 65%, #36D9FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(22, 139, 255, 0.72));
    line-height: 1.12;
    margin-top: 2px;
}

.hero-subtitle {
    margin-top: 10px;
    max-width: 470px;
    font-size: 0.98rem;
    color: var(--text-ice);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    line-height: 1.5;
}

/* =========================================================================
   5 KARTU STATISTIK DASHBOARD (TOTAL PROMPT, SKILL, KATEGORI, FAVORIT, PENGGUNA)
   ========================================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    position: relative;
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-3d);
    cursor: pointer;
    overflow: hidden;
    transition:
        transform var(--dur-base) var(--ease-spring),
        border-color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    box-shadow: 0 0 12px var(--accent-cyan);
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: var(--border-cyan-bright);
    background: var(--glass-card-hover);
    box-shadow: var(--glow-cyan-md), var(--shadow-3d);
}

.stat-card:active {
    transform: translateY(2px) scale(0.98);
}

.stat-icon-3d {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    filter: drop-shadow(0 0 12px rgba(54, 217, 255, 0.55));
    transition: transform var(--dur-base) var(--ease-spring);
}

.stat-card:hover .stat-icon-3d {
    transform: scale(1.12) rotate(-4deg);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-ice);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-top: 2px;
    text-shadow: 0 0 16px rgba(54, 217, 255, 0.42);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--status-green);
    background: var(--status-green-bg);
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

/* =========================================================================
   MENU CEPAT MOBILE (TAMPIL PADA VIEWPORT MOBILE SESUAI REFERENSI KANAN ATAS)
   ========================================================================= */
.mobile-quick-menu {
    display: none;
    background: var(--glass-card);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-3d);
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.quick-menu-card {
    background: rgba(12, 36, 72, 0.78);
    border: 1px solid rgba(54, 217, 255, 0.35);
    border-radius: 13px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-spring);
}

.quick-menu-card:hover,
.quick-menu-card:active {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan-sm);
    transform: translateY(-2px);
}

/* =========================================================================
   PANEL UTAMA DASHBOARD: AKTIVITAS TERBARU & KATEGORI POPULER
   ========================================================================= */
.dashboard-lower-grid {
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    gap: 18px;
}

.glass-panel {
    background: var(--glass-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-xl);
    padding: 20px 22px;
    box-shadow: var(--shadow-3d);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(54, 217, 255, 0.65), transparent);
}

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

.panel-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.3px;
}

.panel-link {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all var(--dur-fast) var(--ease-out);
}

.panel-link:hover {
    background: rgba(54, 217, 255, 0.14);
    text-shadow: 0 0 10px var(--accent-cyan);
    transform: translateX(3px);
}

/* Daftar Aktivitas Terbaru */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    border-radius: 14px;
    background: rgba(8, 25, 52, 0.72);
    border: 1px solid rgba(54, 217, 255, 0.24);
    transition: all var(--dur-base) var(--ease-out);
    cursor: pointer;
}

.activity-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(16, 48, 94, 0.78);
    transform: translateX(5px);
    box-shadow: var(--glow-cyan-sm);
}

.activity-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(22, 139, 255, 0.35), rgba(54, 217, 255, 0.15));
    border: 1px solid rgba(54, 217, 255, 0.5);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(54, 217, 255, 0.28);
}

.activity-meta {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-white);
}

.activity-time {
    font-size: 0.79rem;
    color: var(--text-ice);
    opacity: 0.76;
    margin-top: 2px;
}

/* Grid Kategori Populer (2x3) */
.category-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.category-card-3d {
    position: relative;
    background: rgba(9, 27, 56, 0.78);
    border: 1.5px solid var(--border-cyan);
    border-radius: 15px;
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 0 18px rgba(22, 139, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.42);
    transition:
        transform var(--dur-base) var(--ease-spring),
        border-color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out);
}

.category-card-3d.accent-purple {
    border-color: var(--border-purple);
    box-shadow: inset 0 0 18px rgba(139, 92, 246, 0.14), 0 8px 20px rgba(0, 0, 0, 0.42);
}

.category-card-3d:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    background: rgba(18, 60, 112, 0.65);
    box-shadow: var(--glow-cyan-md);
}

.category-card-3d.accent-purple:hover {
    border-color: #C084FC;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.55);
}

.category-card-3d:active {
    transform: translateY(2px) scale(0.97);
}

.cat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(22, 139, 255, 0.32), rgba(54, 217, 255, 0.12));
    border: 1px solid rgba(54, 217, 255, 0.55);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 0 14px rgba(54, 217, 255, 0.35);
    transition: transform var(--dur-base) var(--ease-spring);
}

.category-card-3d.accent-purple .cat-icon-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(168, 85, 247, 0.15));
    border-color: rgba(192, 132, 252, 0.6);
    color: #D8B4FE;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.category-card-3d:hover .cat-icon-badge {
    transform: scale(1.12) translateY(-2px);
}

.cat-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
}

.cat-count {
    font-size: 0.8rem;
    color: var(--text-ice);
    opacity: 0.82;
    margin-top: 3px;
}

/* Drag and Drop State pada Kartu Kategori & Tag */
.draggable-card {
    user-select: none;
}

.draggable-card.dragging {
    opacity: 0.45;
    transform: scale(0.95);
    border-style: dashed;
}

.draggable-card.drag-over {
    border-color: #FFFFFF !important;
    box-shadow: 0 0 28px var(--accent-cyan) !important;
    transform: scale(1.04);
}

/* =========================================================================
   TOMBOL FUTURISTIK 3D DENGAN GLOW & ANIMASI TEKAN
   ========================================================================= */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 1px solid var(--border-cyan-bright);
    background: linear-gradient(180deg, #36D9FF 0%, #168BFF 100%);
    color: #041226;
    box-shadow:
        0 4px 0 #0B4C99,
        0 0 20px rgba(54, 217, 255, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.65);
    transition:
        transform var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-out),
        filter var(--dur-fast) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn-3d:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #0B4C99,
        0 0 28px rgba(54, 217, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-3d:active {
    transform: translateY(3px) scale(0.98);
    box-shadow:
        0 1px 0 #0B4C99,
        0 0 14px rgba(54, 217, 255, 0.6);
}

.btn-3d-secondary {
    background: linear-gradient(180deg, rgba(18, 60, 112, 0.82) 0%, rgba(9, 28, 58, 0.92) 100%);
    color: var(--text-white);
    border: 1px solid rgba(54, 217, 255, 0.45);
    box-shadow:
        0 4px 0 rgba(4, 15, 34, 0.9),
        0 0 14px rgba(22, 139, 255, 0.25),
        inset 0 1px 0 rgba(184, 237, 255, 0.25);
}

.btn-3d-secondary:hover {
    border-color: var(--accent-cyan);
    background: linear-gradient(180deg, rgba(22, 139, 255, 0.45) 0%, rgba(12, 38, 76, 0.95) 100%);
    box-shadow:
        0 6px 0 rgba(4, 15, 34, 0.9),
        0 0 22px rgba(54, 217, 255, 0.45);
}

.btn-3d-danger {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.28) 0%, rgba(127, 29, 29, 0.65) 100%);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.55);
    box-shadow: 0 4px 0 rgba(69, 10, 10, 0.9);
}

.btn-3d-danger:hover {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.48) 0%, rgba(153, 27, 27, 0.8) 100%);
    color: #FFFFFF;
    border-color: #F87171;
    box-shadow: 0 6px 0 rgba(69, 10, 10, 0.9), 0 0 20px rgba(239, 68, 68, 0.45);
}

/* =========================================================================
   HALAMAN SUB-VIEW (KELOLA PROMPT, SKILL, KATEGORI, PENGGUNA, DETAIL, DLL)
   ========================================================================= */
.page-view {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: pageEnter var(--dur-slow) var(--ease-out);
}

.page-view.active {
    display: flex;
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.992);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-Banner-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 4px 4px;
}

.page-header-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 0 18px rgba(22, 139, 255, 0.55);
}

.page-header-subtitle {
    font-size: 0.92rem;
    color: var(--text-ice);
    opacity: 0.86;
    margin-top: 3px;
}

/* Toolbar Pencarian & Filter di Dalam Panel Halaman */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.search-box-inline {
    position: relative;
    min-width: 240px;
    flex: 1;
    max-width: 360px;
}

.search-box-inline input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border-radius: 11px;
    border: 1px solid rgba(54, 217, 255, 0.34);
    background: rgba(6, 20, 43, 0.82);
    color: var(--text-white);
    font-size: 0.88rem;
    transition: all var(--dur-fast) var(--ease-out);
}

.search-box-inline input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan-sm);
}

.search-box-inline svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cyan);
    pointer-events: none;
}

.select-futuristic {
    height: 40px;
    padding: 0 32px 0 14px;
    border-radius: 11px;
    border: 1px solid rgba(54, 217, 255, 0.34);
    background: rgba(6, 20, 43, 0.85);
    color: var(--text-ice);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}

.select-futuristic:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan-sm);
}

/* =========================================================================
   TABEL FUTURISTIK (KELOLA PROMPT, SKILL, PENGGUNA)
   ========================================================================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(54, 217, 255, 0.25);
    background: rgba(6, 19, 41, 0.65);
}

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

.portal-table thead tr {
    background: linear-gradient(90deg, rgba(18, 60, 112, 0.65) 0%, rgba(10, 32, 66, 0.65) 100%);
    border-bottom: 1px solid rgba(54, 217, 255, 0.35);
}

.portal-table th {
    padding: 13px 16px;
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-ice);
}

.portal-table tbody tr {
    border-bottom: 1px solid rgba(54, 217, 255, 0.14);
    transition: background var(--dur-fast) var(--ease-out);
}

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

.portal-table tbody tr:hover {
    background: rgba(22, 139, 255, 0.16);
}

.portal-table td {
    padding: 13px 16px;
    font-size: 0.92rem;
    color: var(--text-white);
    vertical-align: middle;
}

.row-title-link {
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--dur-fast) var(--ease-out);
}

.row-title-link:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(54, 217, 255, 0.5);
}

/* Pill Badges (Kategori, Level, Status) */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-cyan {
    background: rgba(54, 217, 255, 0.16);
    color: var(--accent-cyan);
    border: 1px solid rgba(54, 217, 255, 0.45);
    box-shadow: 0 0 10px rgba(54, 217, 255, 0.2);
}

.badge-expert {
    background: linear-gradient(90deg, rgba(22, 139, 255, 0.45), rgba(54, 217, 255, 0.35));
    color: #FFFFFF;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(54, 217, 255, 0.35);
}

.badge-advanced {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.42), rgba(59, 130, 246, 0.35));
    color: #E9D5FF;
    border: 1px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.badge-intermediate {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.badge-active {
    background: rgba(34, 197, 94, 0.22);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.badge-inactive {
    background: rgba(148, 163, 184, 0.18);
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Tombol Aksi Tabel */
.action-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(54, 217, 255, 0.3);
    background: rgba(12, 38, 76, 0.75);
    color: var(--text-ice);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-spring);
}

.table-action-btn:hover {
    border-color: var(--accent-cyan);
    color: #FFFFFF;
    background: rgba(22, 139, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(54, 217, 255, 0.45);
}

.table-action-btn.delete:hover {
    border-color: #F87171;
    background: rgba(239, 68, 68, 0.35);
    color: #FECACA;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

.star-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(184, 237, 255, 0.35);
    font-size: 1.15rem;
    transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-fast) var(--ease-out);
}

.star-toggle-btn.favorited {
    color: var(--status-gold);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}

.star-toggle-btn:hover {
    transform: scale(1.25) rotate(8deg);
}

/* =========================================================================
   HALAMAN DETAIL PROMPT / DETAIL SKILL (SESUAI GAMBAR REFERENSI BAWAH KIRI)
   ========================================================================= */
.detail-box-card {
    background: linear-gradient(145deg, rgba(12, 38, 76, 0.84) 0%, rgba(6, 19, 41, 0.92) 100%);
    border: 1.5px solid var(--border-cyan);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--glow-cyan-sm), var(--shadow-3d);
}

.detail-title {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(54, 217, 255, 0.22);
}

.prompt-code-box {
    background: rgba(4, 13, 29, 0.9);
    border: 1px solid rgba(54, 217, 255, 0.38);
    border-radius: 14px;
    padding: 18px 20px;
    color: var(--text-ice);
    font-family: 'Roboto Mono', Consolas, monospace;
    font-size: 0.94rem;
    line-height: 1.65;
    white-space: pre-wrap;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

/* =========================================================================
   HALAMAN FAVORIT & RIWAYAT (TAB FILTER PILL & LIST KARTU)
   ========================================================================= */
.pill-tabs {
    display: inline-flex;
    background: rgba(6, 19, 41, 0.85);
    border: 1px solid rgba(54, 217, 255, 0.32);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.pill-tab {
    padding: 7px 20px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-ice);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}

.pill-tab.active {
    background: linear-gradient(90deg, #168BFF 0%, #36D9FF 100%);
    color: #041226;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(54, 217, 255, 0.55);
}

.favorite-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(9, 28, 58, 0.78);
    border: 1px solid rgba(54, 217, 255, 0.3);
    transition: all var(--dur-base) var(--ease-out);
    cursor: pointer;
}

.favorite-card-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(16, 48, 94, 0.85);
    transform: translateX(4px);
    box-shadow: var(--glow-cyan-sm);
}

/* =========================================================================
   HALAMAN PENGATURAN SISTEM (SUB-SIDEBAR + TAMPILAN TEMA & WARNA UTAMA)
   ========================================================================= */
.settings-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
}

.settings-subnav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(7, 22, 46, 0.76);
    border: 1px solid rgba(54, 217, 255, 0.28);
    border-radius: 16px;
    padding: 12px;
    height: fit-content;
}

.settings-tab-btn {
    padding: 10px 14px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-ice);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}

.settings-tab-btn:hover {
    background: rgba(22, 139, 255, 0.16);
    color: var(--text-white);
}

.settings-tab-btn.active {
    background: linear-gradient(90deg, rgba(22, 139, 255, 0.65), rgba(54, 217, 255, 0.25));
    border-color: var(--accent-cyan);
    color: #FFFFFF;
    box-shadow: var(--glow-cyan-sm);
}

.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 160px));
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.theme-mode-btn {
    padding: 12px 16px;
    border-radius: 13px;
    border: 1.5px solid rgba(54, 217, 255, 0.3);
    background: rgba(8, 25, 52, 0.78);
    color: var(--text-ice);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-spring);
}

.theme-mode-btn.active {
    background: linear-gradient(90deg, #168BFF 0%, #36D9FF 100%);
    color: #041226;
    border-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(54, 217, 255, 0.65);
}

.color-swatches-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.color-swatch-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out);
    position: relative;
}

.color-swatch-circle:hover {
    transform: scale(1.15);
}

.color-swatch-circle.active {
    border-color: #FFFFFF;
    transform: scale(1.18);
    box-shadow: 0 0 20px currentColor;
}

/* =========================================================================
   GALERI 8 PANEL PRATINJAU HALAMAN (SESUAI KOMPOSISI GAMBAR MOCKUP)
   ========================================================================= */
.showcase-reference-section {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(54, 217, 255, 0.22);
}

.showcase-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.showcase-mini-card {
    background: linear-gradient(160deg, rgba(12, 38, 76, 0.82) 0%, rgba(6, 18, 38, 0.94) 100%);
    border: 1.5px solid rgba(54, 217, 255, 0.38);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow-3d);
    transition: all var(--dur-base) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.showcase-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan-md);
}

.showcase-mini-preview {
    background: rgba(5, 15, 32, 0.82);
    border: 1px solid rgba(54, 217, 255, 0.24);
    border-radius: 11px;
    padding: 11px;
    margin-bottom: 10px;
    min-height: 128px;
    font-size: 0.75rem;
}

.showcase-caption {
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-ice);
    letter-spacing: 0.2px;
}

/* =========================================================================
   MODAL DIALOG & FORMULIR TAMBAH / EDIT DATA
   ========================================================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(3, 10, 22, 0.78);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn var(--dur-fast) var(--ease-out);
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog-3d {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(155deg, rgba(14, 43, 84, 0.96) 0%, rgba(6, 19, 40, 0.98) 100%);
    border: 1.5px solid var(--border-cyan-bright);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--glow-cyan-lg), 0 24px 60px rgba(0, 0, 0, 0.85);
    animation: modalPop var(--dur-base) var(--ease-spring);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(18px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-ice);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 11px;
    border: 1px solid rgba(54, 217, 255, 0.36);
    background: rgba(5, 16, 35, 0.88);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all var(--dur-fast) var(--ease-out);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan-sm);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.55;
}

/* =========================================================================
   TOAST NOTIFICATION (NOTIFIKASI BERHASIL SALIN PROMPT / CRUD)
   ========================================================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.hunter-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(12, 42, 84, 0.96) 0%, rgba(6, 20, 42, 0.98) 100%);
    border: 1.5px solid var(--accent-cyan);
    color: var(--text-white);
    box-shadow: var(--glow-cyan-md), 0 12px 30px rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    animation: toastSlideIn var(--dur-base) var(--ease-spring);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px) scale(0.92); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* =========================================================================
   MOBILE BOTTOM NAVIGATION BAR (SESUAI GAMBAR MOBILE KANAN ATAS)
   ========================================================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(6, 19, 40, 0.95);
    backdrop-filter: blur(18px);
    border-top: 1.5px solid rgba(54, 217, 255, 0.42);
    box-shadow: 0 -6px 26px rgba(0, 0, 0, 0.7);
    padding: 6px 12px 10px;
    justify-content: space-around;
}

.mobile-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-ice);
    opacity: 0.75;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all var(--dur-fast) var(--ease-out);
}

.mobile-tab-btn.active {
    color: var(--accent-cyan);
    opacity: 1;
    text-shadow: 0 0 10px rgba(54, 217, 255, 0.65);
}

.mobile-tab-btn.active::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   ========================================================================= */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .showcase-grid-8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .portal-sidebar {
        position: fixed;
        left: 12px;
        top: 12px;
        bottom: 12px;
        z-index: 110;
        transform: translateX(-115%);
    }
    .portal-sidebar.mobile-open {
        transform: translateX(0);
    }
    .mobile-menu-trigger,
    .mobile-brand-inline {
        display: inline-flex;
    }
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .portal-shell {
        padding: 10px 10px 76px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats-grid .stat-card:nth-child(5) {
        grid-column: span 2;
    }
    .mobile-quick-menu {
        display: block;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .category-grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .showcase-grid-8 {
        grid-template-columns: 1fr;
    }
    .topbar-search .shortcut-pill {
        display: none;
    }
}

/* Hormati Prefers-Reduced-Motion (SKILL.md Section 19.2 & 21.5) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

