/* ==========================================================================
   1. GLOBAL FULLSCREEN LOADING SCREEN SYSTEM
   ========================================================================== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050507;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25em;
    font-weight: 400;
    color: #f4f4f5;
    border-radius: 50%;
    background-color: transparent;
    user-select: none;
}
.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: transparent;
    animation: loader-rotate 2s linear infinite;
    z-index: 0;
}
@keyframes loader-rotate {
    0% {
        transform: rotate(90deg);
        box-shadow:
            0 10px 20px 0 rgba(255, 255, 255, 0.2) inset,
            0 20px 30px 0 rgba(255, 255, 255, 0.05) inset,
            0 60px 60px 0 rgba(18, 18, 22, 0.45) inset;
    }
    50% {
        transform: rotate(270deg);
        box-shadow:
            0 10px 20px 0 rgba(255, 255, 255, 0.2) inset,
            0 20px 10px 0 rgba(255, 255, 255, 0.02) inset,
            0 40px 60px 0 rgba(10, 10, 12, 0.7) inset;
    }
    100% {
        transform: rotate(450deg);
        box-shadow:
            0 10px 20px 0 rgba(255, 255, 255, 0.2) inset,
            0 20px 30px 0 rgba(255, 255, 255, 0.05) inset,
            0 60px 60px 0 rgba(18, 18, 22, 0.45) inset;
    }
}
.loader-letter {
    display: inline-block;
    opacity: 0.3;
    transform: translateY(0);
    animation: loader-letter-anim 2s infinite;
    z-index: 1;
    border-radius: 50ch;
    border: none;
    letter-spacing: 1px;
}
.loader-letter:nth-child(1) { animation-delay: 0s; }
.loader-letter:nth-child(2) { animation-delay: 0.1s; }
.loader-letter:nth-child(3) { animation-delay: 0.2s; }
.loader-letter:nth-child(4) { animation-delay: 0.3s; }
.loader-letter:nth-child(5) { animation-delay: 0.4s; }
.loader-letter:nth-child(6) { animation-delay: 0.5s; }
.loader-letter:nth-child(7) { animation-delay: 0.6s; }
.loader-letter:nth-child(8) { animation-delay: 0.7s; }
.loader-letter:nth-child(9) { animation-delay: 0.8s; }

@keyframes loader-letter-anim {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    20% { opacity: 1; transform: scale(1.2) translateY(-2px); color: #ffffff; }
    40% { opacity: 0.6; transform: translateY(0); }
}

/* ==========================================================================
   2. CORE VARIABLES & RESET SYSTEM
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}
:root {
    --bg-main: #050507;
    --bg-card: rgba(18, 18, 22, 0.45);
    --bg-sidebar: rgba(10, 10, 12, 0.7);
    --accent: #ffffff;
    --accent-sub: #a1a1aa;
    --text-main: #f4f4f5;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    --smooth-blur: blur(24px);
}
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.glow-orb {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.015);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
.orb-1 { top: -10%; left: -10%; }
.orb-2 { bottom: 10%; right: -5%; }

/* HEADER STYLES */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: var(--smooth-blur);
    -webkit-backdrop-filter: var(--smooth-blur);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-area h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: 2px; }
.logo-dot { color: var(--accent); }
.logo-sub { font-weight: 300; color: var(--accent-sub); margin-left: 2px; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-color: var(--border);
}
.role-badge.admin {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-color: rgba(255, 255, 255, 0.3);
}
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.profile-login-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-muted);
    position: relative;
}
.profile-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: var(--border-hover);
    transform: scale(1.05);
}
.profile-login-btn.logged-in {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--accent);
}
.profile-login-btn.logged-in:hover {
    background: rgba(255, 59, 59, 0.15);
    border-color: rgba(255, 59, 59, 0.3);
    color: #ff5252;
}

/* SIDEBAR SYSTEM */
.sidebar-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px); 
    z-index: 998; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }
#sidebar { 
    position: fixed; 
    top: 0; 
    right: -300px; 
    width: 280px; 
    height: 100vh; 
    background: var(--bg-sidebar); 
    backdrop-filter: var(--smooth-blur); 
    -webkit-backdrop-filter: var(--smooth-blur); 
    border-left: 1px solid var(--border); 
    z-index: 999; 
    display: flex; 
    flex-direction: column; 
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
#sidebar.active { right: 0; }
.sidebar-header { 
    padding: 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border); 
}
.nav-title { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: var(--text-muted); 
    font-weight: 600; 
}
.close-sidebar { 
    background: transparent; 
    border: none; 
    color: var(--text-muted); 
    font-size: 1.2rem; 
    cursor: pointer; 
}
.nav-links { 
    list-style: none; 
    padding: 1.5rem 1rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
}
.nav-item { 
    display: flex; 
    align-items: center; 
    gap: 0.85rem; 
    padding: 0.85rem 1rem; 
    color: var(--text-muted); 
    text-decoration: none; 
    border-radius: 10px; 
    font-size: 0.95rem; 
    font-weight: 500; 
    transition: all 0.2s ease; 
}
.nav-item i { width: 18px; height: 18px; }
.nav-item:hover, .nav-item.active { 
    color: var(--text-main); 
    background: rgba(255, 255, 255, 0.05); 
}
.nav-item.active { 
    border-left: 3px solid var(--accent); 
    border-radius: 4px 10px 10px 4px; 
}
.sidebar-footer { 
    margin-top: auto; 
    padding: 1.5rem 1rem; 
    border-top: 1px solid var(--border); 
}

/* LAYOUT CORE */
.container { 
    flex: 1; 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 1.5rem 1rem 3rem 1rem; 
}
.content-section { display: none; }
.content-section.active-section { 
    display: block; 
    animation: fadeIn 0.4s ease; 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(6px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* CARDS & UI FRAMEWORKS */
.profile-card { 
    background: var(--bg-card); 
    backdrop-filter: var(--smooth-blur); 
    -webkit-backdrop-filter: var(--smooth-blur); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    overflow: hidden; 
    margin-bottom: 1.5rem; 
}
.profile-banner { 
    height: 140px; 
    width: 100%; 
    background: #121214; 
    position: relative; 
}
.profile-banner img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.8; 
}
.profile-info { 
    padding: 0 1.5rem 1.5rem 1.5rem; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
}
.avatar-container { 
    width: 84px; 
    height: 84px; 
    border-radius: 50%; 
    border: 4px solid #050507; 
    overflow: hidden; 
    margin-top: -42px; 
    background: #1c1c21; 
    margin-bottom: 0.75rem; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); 
}
.avatar-container img { width: 100%; height: 100%; object-fit: cover; }
.profile-title-row { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    margin-bottom: 0.25rem; 
}
.profile-title-row h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.3px; }
.verified-badge { color: var(--accent); display: flex; align-items: center; }
.profile-bio { 
    color: var(--accent-sub); 
    font-size: 0.92rem; 
    line-height: 1.5; 
    margin-bottom: 1rem; 
    max-width: 650px; 
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid var(--border); 
    color: var(--text-muted); 
    font-size: 0.78rem; 
    padding: 0.25rem 0.65rem; 
    border-radius: 6px; 
    font-weight: 500; 
}

/* STATS GRID */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
    margin-bottom: 1.5rem; 
}
.stat-box { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 1.25rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}
.stat-icon { 
    width: 44px; 
    height: 44px; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--accent); 
}
.stat-data { display: flex; flex-direction: column; }
.stat-label { 
    font-size: 0.78rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.stat-value { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-top: 2px; 
}

/* VAULT LIVE FEEDS */
.section-vault { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: 1.5rem; 
}
.vault-header { 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 1rem; 
    margin-bottom: 1rem; 
}
.vault-header h3 { 
    font-size: 1.05rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}
.donation-feed-container { 
    max-height: 280px; 
    overflow-y: auto; 
    padding-right: 0.25rem; 
}
.feed-stream { display: flex; flex-direction: column; gap: 0.75rem; }
.feed-card { 
    background: rgba(255, 255, 255, 0.01); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    transition: border-color 0.2s ease; 
}
.feed-card:hover { border-color: var(--border-hover); }
.feed-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 0.35rem; 
}
.feed-user { 
    font-size: 0.92rem; 
    font-weight: 600; 
    color: var(--text-main); 
}
.feed-amount { 
    font-size: 0.88rem; 
    font-weight: 700; 
    color: var(--accent); 
    background: rgba(255,255,255,0.06); 
    padding: 0.15rem 0.5rem; 
    border-radius: 6px; 
}

/* CARDS LIST IN GRID */
.section-title { margin-bottom: 1.75rem; }
.section-title h2 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
    margin-bottom: 0.25rem; 
}
.section-title p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}
.items-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 1.25rem; 
}
.dev-card { 
    background: var(--bg-card); 
    backdrop-filter: var(--smooth-blur); 
    -webkit-backdrop-filter: var(--smooth-blur); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: all 0.25s ease; 
}
.dev-card:hover { 
    transform: translateY(-2px); 
    border-color: var(--border-hover); 
}
.card-media { 
    height: 160px; 
    background: #121214; 
    position: relative; 
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { 
    padding: 1.25rem; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}
.card-body h3 { 
    font-size: 1.1rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    color: var(--text-main); 
}
.card-body p { 
    color: var(--text-muted); 
    font-size: 0.88rem; 
    line-height: 1.5; 
    margin-bottom: 1.25rem; 
}
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.card-price { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }

/* BUTTONS SYSTEM */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    padding: 0.65rem 1.25rem; 
    font-size: 0.88rem; 
    font-weight: 600; 
    border-radius: 10px; 
    cursor: pointer; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    border: 1px solid transparent; 
}
.btn-primary { background: var(--accent); color: #000000; }
.btn-primary:hover { background: #e4e4e7; }
.btn-secondary { 
    background: rgba(255, 255, 255, 0.04); 
    color: var(--text-main); 
    border-color: var(--border); 
}
.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.08); 
    border-color: var(--border-hover); 
}
.btn-danger-action {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-left: 8px;
    background: rgba(255, 59, 59, 0.08);
    color: #ff4a4a;
    border: 1px solid rgba(255, 59, 59, 0.15);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-danger-action:hover { background: rgba(255, 59, 59, 0.16); }
.btn-login-trigger { 
    width: 100%; 
    background: transparent; 
    border: 1px solid var(--border); 
    color: var(--text-muted); 
    padding: 0.65rem; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 0.88rem; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    transition: all 0.2s ease; 
}
.btn-login-trigger:hover { 
    border-color: var(--border-hover); 
    color: var(--text-main); 
    background: rgba(255,255,255,0.02); 
}
.btn-logout { 
    width: 100%; 
    background: rgba(255, 59, 59, 0.05); 
    border: 1px solid rgba(255, 59, 59, 0.1); 
    color: #ff5252; 
    padding: 0.65rem; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 0.88rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
}

/* FORMS MANAGEMENT */
.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.45rem; 
    margin-bottom: 1rem; 
    width: 100%; 
}
.form-group label { 
    font-size: 0.82rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.form-group input, .form-group textarea, .form-group select { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--border); 
    border-radius: 10px; 
    padding: 0.75rem 1rem; 
    color: var(--text-main); 
    font-size: 0.92rem; 
    outline: none; 
    transition: all 0.2s ease; 
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { 
    border-color: rgba(255, 255, 255, 0.2); 
    background: rgba(255, 255, 255, 0.04); 
}
.form-group select option {
    background: #1a1a1e;
    color: var(--text-main);
}

.image-preview {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.image-preview img {
    border-radius: 8px;
    object-fit: cover;
}
.btn-clear-image {
    margin-top: 8px;
    background: rgba(255, 59, 59, 0.08);
    color: #ff4a4a;
    border: 1px solid rgba(255, 59, 59, 0.15);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-clear-image:hover {
    background: rgba(255, 59, 59, 0.16);
}

.donation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.donation-form-card, .donation-info-card, .contact-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: 1.75rem; 
}
.donation-form-card h3, .donation-info-card h3, .contact-card h2 { 
    font-size: 1.25rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    letter-spacing: -0.3px; 
}
.payment-methods { display: flex; flex-direction: column; gap: 0.85rem; }
.pay-method-item { 
    background: rgba(255,255,255,0.02); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.25rem; 
}
.pay-name { 
    font-size: 0.82rem; 
    font-weight: 700; 
    color: var(--text-muted); 
}
.pay-number { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text-main); 
    letter-spacing: 0.3px; 
}
.contact-card { max-width: 680px; margin: 0 auto; }
.contact-header { margin-bottom: 1.5rem; }
.contact-header p { 
    color: var(--text-muted); 
    font-size: 0.92rem; 
    margin-top: 0.25rem; 
}

.table-container { width: 100%; overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.admin-table th { 
    background: rgba(255,255,255,0.03); 
    color: var(--text-muted); 
    padding: 0.85rem 1rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px; 
    border-bottom: 1px solid var(--border); 
}
.admin-table td { 
    padding: 1rem; 
    border-bottom: 1px solid var(--border); 
    color: var(--text-main); 
    vertical-align: middle; 
}
.btn-table-action { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    padding: 0.45rem 0.75rem; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.btn-table-action:hover { background: var(--accent); color: #000000; }

/* TOAST NOTIFICATION SYSTEM */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2500;
    pointer-events: none;
}
.toast-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 240px;
    font-size: 10px;
    pointer-events: auto;
    animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: all 0.3s ease;
}
@media (min-width: 640px) {
    .toast-wrapper {
        width: 288px;
        font-size: 12px;
    }
}
.toast-alert {
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background-color: #121216;
    border: 1px solid var(--border);
    padding: 0 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
@media (min-width: 640px) {
    .toast-alert {
        height: 56px;
    }
}
.toast-content-area {
    display: flex;
    gap: 8px;
    align-items: center;
}
.toast-icon-box {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-icon-box svg {
    width: 20px;
    height: 20px;
}
.toast-wrapper.success .toast-icon-box {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toast-wrapper.error .toast-icon-box {
    background-color: rgba(214, 85, 99, 0.1);
    color: #d65563;
    border: 1px solid rgba(214, 85, 99, 0.2);
}
.toast-text-title {
    color: #ffffff;
    font-weight: 600;
}
.toast-text-desc {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 1px;
}
.toast-close-btn {
    background: transparent;
    border: none;
    color: #4b5563;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s linear, color 0.1s linear;
}
.toast-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}
.toast-close-btn svg {
    width: 18px;
    height: 18px;
}
.toast-wrapper.fade-out {
    animation: toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(60px) scale(0.9); margin-top: -60px; }
}

/* QRIS CARD STYLE */
.qris-card {
  --bg-card: rgba(39, 39, 42, 0.6);
  --primary: #6d28d9;
  --primary-800: #4c1d95;
  --primary-shadow: #2e1065;
  --light: #d9d9d9;
  --zinc-800: #18181b;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-card);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-sizing: border-box;
}
.qris-card .image_container {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  z-index: 5;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 300px;
  align-self: center;
  background-color: var(--primary-800);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qris-card .image_container img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 4px;
}
.qris-card .title {
  overflow: clip;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  text-transform: capitalize;
  text-align: center;
}
.qris-card .size {
  font-size: 0.75rem;
  color: var(--light);
  text-align: center;
}
.qris-card .action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.qris-card .button {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 1px solid #301779;
  background-color: #382099;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s;
}
.qris-card .button .button__text {
  transform: translateX(22px);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s;
}
.qris-card .button .button__icon {
  position: absolute;
  transform: translateX(calc(100% - 39px));
  height: 100%;
  width: 39px;
  background-color: #171979;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  right: 0;
}
.qris-card .button .svg {
  width: 20px;
  fill: #fff;
}
.qris-card .button:hover {
  background: #172779;
}
.qris-card .button:hover .button__text {
  color: transparent;
}
.qris-card .button:hover .button__icon {
  width: 100%;
  transform: translateX(0);
}
.qris-card .button:active .button__icon {
  background-color: #146c54;
}
.qris-card .button:active {
  border: 1px solid #146c54;
}

/* FILE ASSETS MANAGER */
.file-upload-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.dropzone {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.dropzone:hover, .dropzone.drag-over {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.01);
}
.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.dropzone-content i {
    width: 48px;
    height: 48px;
    color: var(--accent-sub);
    margin-bottom: 0.5rem;
}
.dropzone-content p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}
.dropzone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.upload-queue {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.upload-queue-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.2s;
}
.upload-queue-item .file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.upload-queue-item .file-name {
    font-weight: 500;
    color: var(--text-main);
    word-break: break-word;
}
.upload-queue-item .file-size {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 6px;
    overflow: hidden;
}
.progress-bar-fill {
    background: var(--accent);
    width: 0%;
    height: 100%;
    border-radius: 20px;
    transition: width 0.2s ease;
}
.upload-status {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: var(--accent-sub);
}
.uploaded-files-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
}
.uploaded-files-list h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}
.files-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 260px;
    overflow-y: auto;
}
.file-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.file-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}
.file-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    flex: 1;
}
.file-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-sub);
}
.file-meta {
    overflow: hidden;
}
.file-original-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-size {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.btn-delete-file {
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.15);
    color: #ff4a4a;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-delete-file:hover {
    background: rgba(255, 59, 59, 0.16);
}
.storage-metric {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* LOGIN MODAL */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}
.login-modal.active {
    visibility: visible;
    opacity: 1;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}
.modal-container {
    position: relative;
    width: 90%;
    max-width: 450px;
    z-index: 10;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: #fff;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #1f1f1f;
    padding: 30px;
    width: 100%;
    border-radius: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.login-form .flex-column > label {
    color: #f1f1f1;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
}
.login-form .inputForm {
    border: 1.5px solid #333;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    transition: 0.2s ease-in-out;
    background-color: #2b2b2b;
}
.login-form .input {
    margin-left: 10px;
    border-radius: 10px;
    border: none;
    width: 100%;
    height: 100%;
    background-color: #2b2b2b;
    color: #f1f1f1;
    font-size: 0.95rem;
    outline: none;
}
.login-form .input:focus {
    outline: none;
}
.login-form .inputForm:focus-within {
    border: 1.5px solid #2d79f3;
}
.login-form .flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin: 5px 0;
}
.login-form .flex-row > div > label {
    font-size: 14px;
    color: #f1f1f1;
    font-weight: 400;
}
.login-form .span {
    font-size: 14px;
    margin-left: 5px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
}
.login-form .button-submit {
    margin: 20px 0 10px 0;
    background-color: #2d79f3;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}
.login-form .button-submit:hover {
    background-color: #1a5fd0;
}
.login-form .p {
    text-align: center;
    color: #f1f1f1;
    font-size: 14px;
    margin: 5px 0;
}
.login-form .p.line {
    position: relative;
    margin: 15px 0;
}
.login-form .p.line::before,
.login-form .p.line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #333;
}
.login-form .p.line::before {
    left: 0;
}
.login-form .p.line::after {
    right: 0;
}
.login-form .btn {
    margin-top: 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    gap: 10px;
    border: 1px solid #333;
    background-color: #2b2b2b;
    color: #f1f1f1;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.login-form .btn:hover {
    border: 1px solid #2d79f3;
}

/* ==========================================================================
   FLOATING BOTTOM NAVIGATION - ADMIN PANEL (PILL HORIZONTAL)
   ========================================================================== */
.floating-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    justify-content: center;
    pointer-events: none;
}
.floating-bottom-nav.show {
    display: flex;
}
.bottom-nav-container {
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 48px;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}
.bottom-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.bottom-nav-item i {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}
.bottom-nav-item span {
    font-size: 0.85rem;
    opacity: 1;
}
.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}
.bottom-nav-item.active {
    background: var(--accent);
    color: #000000;
}
.bottom-nav-item.active i {
    color: #000000;
}
@media (max-width: 768px) {
    .bottom-nav-container {
        padding: 6px 12px;
        gap: 6px;
    }
    .bottom-nav-item {
        padding: 6px 14px;
        gap: 6px;
        font-size: 0.75rem;
    }
    .bottom-nav-item i {
        width: 16px;
        height: 16px;
    }
    .bottom-nav-item span {
        font-size: 0.75rem;
    }
}
.floating-bottom-nav.hide {
    transform: translateY(100px);
    transition: transform 0.3s ease;
}
.floating-bottom-nav.show {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* ==========================================================================
   SETTINGS PAGE STYLES (Vertical List)
   ========================================================================== */
.settings-list-container {
    margin-top: 1rem;
}
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.settings-card {
    background: var(--bg-card);
    backdrop-filter: var(--smooth-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.settings-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateX(4px);
}
.settings-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.settings-info {
    flex: 1;
}
.settings-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}
.settings-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.settings-arrow {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   ADMIN PANEL - TERPISAH PER HALAMAN
   ========================================================================== */

/* Admin Card */
.admin-card {
    background: var(--bg-card);
    backdrop-filter: var(--smooth-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Quick Actions */
.quick-actions {
    background: var(--bg-card);
    backdrop-filter: var(--smooth-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.quick-actions h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--text-main);
    transform: translateY(-2px);
}

.quick-action-btn i {
    width: 16px;
    height: 16px;
}

/* Items List for Admin */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.list-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

.list-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.list-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #121214;
}

.list-item-details {
    flex: 1;
}

.list-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.list-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.list-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: 1rem;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Table improvements */
.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .donation-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .profile-banner { height: 110px; }
    .avatar-container { width: 76px; height: 76px; margin-top: -38px; }
    header { padding: 1rem; }
    .toast-container { top: 15px; right: 15px; left: 15px; align-items: center; }
    .toast-wrapper { width: 100%; max-width: 340px; }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .list-item-info {
        width: 100%;
    }
    .list-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .admin-table {
        font-size: 0.8rem;
    }
    .admin-table th, .admin-table td {
        padding: 0.5rem;
    }
}

/* ==========================================================================
   UI SHOWCASE ENHANCEMENTS
   ========================================================================== */

.ui-showcase-card {
    background: var(--bg-card);
    backdrop-filter: var(--smooth-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ui-showcase-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.ui-showcase-preview {
    height: 220px;
    background: #f5f5f7;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.ui-showcase-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    pointer-events: none;
}

.ui-showcase-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ui-showcase-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.ui-showcase-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

.ui-showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ui-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.65rem;
    color: var(--accent-sub);
}

.badge-tailwind {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-css {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.preview-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    color: var(--text-main);
    transform: scale(1.02);
}

.preview-btn i {
    width: 14px;
    height: 14px;
}

.ui-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.ui-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.ui-modal-container {
    width: 90%;
    max-width: 1300px;
    height: 85vh;
    background: #1a1a1e;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.ui-modal-header {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ui-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 8px;
}

.ui-modal-close:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.ui-modal-body {
    flex: 1;
    overflow: auto;
    background: #f5f5f7;
}

.ui-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.code-editor {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.code-editor-header {
    background: #2a2a35;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.code-editor-tab {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    border: none;
    transition: all 0.2s;
    font-weight: 500;
}

.code-editor-tab.active {
    background: #3a3a45;
    color: var(--accent);
}

.code-editor-content {
    padding: 1rem;
}

.code-editor textarea {
    width: 100%;
    background: #1e1e2e;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: #e4e4e7;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.8rem;
    resize: vertical;
}

.code-editor textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #38bdf8;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: white;
}

.ui-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

#live-preview {
    width: 100%;
    min-height: 250px;
    border: none;
    background: white;
    border-radius: 8px;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 5;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ui-projects-grid {
        grid-template-columns: 1fr !important;
    }
    .ui-modal-container {
        width: 95%;
        height: 80vh;
    }
    .ui-showcase-preview {
        height: 180px;
    }
    .code-editor-tab {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
    .code-editor textarea {
        font-size: 0.7rem;
    }
}

.tag.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.tag.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.items-list::-webkit-scrollbar {
    width: 6px;
}
.items-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.items-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.items-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}