/* ============================================================
   NOVA — Shared Components (Light Theme)
   ============================================================ */

/* ---- Buttons ---- */
.nova-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; background: var(--gradient-primary); color: white;
    font-weight: 600; font-size: 0.85rem; border-radius: var(--border-radius-md);
    transition: all var(--transition-base); box-shadow: var(--shadow-sm);
}

.nova-btn-primary:hover {
    box-shadow: var(--shadow-glow-blue); transform: translateY(-1px);
}

.nova-btn-primary:active { transform: translateY(0); }

.nova-btn-generate {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 24px;
    background: var(--gradient-generate); background-size: 200% 200%;
    color: white; font-weight: 600; font-size: 0.9rem;
    border-radius: var(--border-radius-md); transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.nova-btn-generate:hover {
    box-shadow: var(--shadow-glow-blue); transform: translateY(-1px);
}

.nova-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; color: var(--text-secondary); font-weight: 500; font-size: 0.8rem;
    border-radius: var(--border-radius-sm); border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.nova-btn-ghost:hover {
    color: var(--accent-blue); border-color: var(--accent-blue-muted); background: var(--accent-blue-soft);
}

/* ---- Inputs ---- */
.nova-input {
    width: 100%; padding: 10px 14px; background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
    color: var(--text-primary); font-size: 0.85rem; transition: all var(--transition-fast);
}

.nova-input:focus {
    border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
    background: white;
}

.nova-input::placeholder { color: var(--text-tertiary); }

.nova-textarea {
    width: 100%; padding: 10px 14px; background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
    color: var(--text-primary); font-size: 0.85rem; resize: vertical; min-height: 56px;
    line-height: 1.5; transition: all var(--transition-fast);
}

.nova-textarea:focus {
    border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
    background: white;
}

.nova-textarea::placeholder { color: var(--text-tertiary); }

/* ---- Select ---- */
.nova-select {
    appearance: none; padding: 8px 32px 8px 12px; background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
    color: var(--text-primary); font-size: 0.8rem; cursor: pointer;
    transition: all var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238e9bb7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}

.nova-select:focus { border-color: var(--accent-blue); }
.nova-select option { background: white; }

/* ---- Slider ---- */
.nova-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
    background: var(--border-color); border-radius: 2px; cursor: pointer;
}

.nova-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px;
    background: var(--accent-blue); border-radius: 50%; cursor: pointer;
    box-shadow: 0 0 6px rgba(74,144,226,0.3);
}

.nova-slider::-moz-range-thumb {
    width: 16px; height: 16px; background: var(--accent-blue);
    border-radius: 50%; border: none; cursor: pointer;
}

/* ---- Upload Zone ---- */
.upload-zone {
    position: relative; border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg); overflow: hidden; cursor: pointer;
    transition: all var(--transition-base); min-height: 180px;
    display: flex; align-items: center; justify-content: center; background: var(--bg-surface);
}

.upload-zone:hover { border-color: var(--accent-blue); background: var(--accent-blue-soft); }

.upload-zone.drag-over {
    border-color: var(--accent-blue); background: var(--accent-blue-soft);
    box-shadow: var(--shadow-glow-blue);
}

.upload-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-tertiary); padding: 32px 20px; text-align: center;
}

.upload-placeholder svg { opacity: 0.3; color: var(--accent-blue); }

.upload-placeholder p { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.upload-placeholder span { font-size: 0.72rem; }

.upload-preview {
    width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; background: var(--bg-primary); border-radius: var(--border-radius-lg);
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px); z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-container {
    background: white; border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl); width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl);
    animation: modalIn 0.25s ease-out;
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 14px; border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    display: flex; align-items: center; gap: 8px; font-size: 1rem;
}

.modal-close {
    padding: 6px; border-radius: var(--border-radius-sm);
    color: var(--text-secondary); transition: all var(--transition-fast);
}

.modal-close:hover { color: var(--text-primary); background: var(--bg-surface); }

.modal-body { padding: 18px 22px; }

.modal-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 14px 22px 18px; border-top: 1px solid var(--border-color);
}

/* ---- Settings Fields ---- */
.settings-section { display: flex; flex-direction: column; gap: 18px; }

.settings-field label {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 0.85rem; margin-bottom: 3px; color: var(--text-primary);
}

.field-desc { font-size: 0.72rem; color: var(--text-tertiary); margin-bottom: 6px; }

.api-key-input { display: flex; gap: 8px; }
.api-key-input .nova-input { flex: 1; }

.toggle-visibility {
    padding: 8px 10px; border-radius: var(--border-radius-sm);
    color: var(--text-tertiary); border: 1px solid var(--border-color); background: var(--bg-surface);
    transition: all var(--transition-fast);
}

.toggle-visibility:hover { color: var(--text-primary); }

/* ---- Toast ---- */
.toast-container {
    position: fixed; top: 16px; right: 16px; z-index: 400;
    display: flex; flex-direction: column; gap: 8px;
}

.toast {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: white; border: 1px solid var(--border-color); border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg); font-size: 0.8rem; color: var(--text-primary);
    animation: toastIn 0.25s ease-out; max-width: 340px;
}

.toast.toast-out { animation: toastOut 0.25s ease-in forwards; }
.toast-success { border-left: 3px solid #34c77b; }
.toast-error { border-left: 3px solid #e74c5e; }
.toast-info { border-left: 3px solid var(--accent-blue); }

/* ---- Loading ---- */
.loading-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px); z-index: 500;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s;
}

.loading-spinner { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.spinner-ring {
    width: 40px; height: 40px; border: 3px solid transparent; border-radius: 50%;
    border-top-color: var(--accent-blue); animation: spin 1s linear infinite; position: absolute;
}

.spinner-ring:nth-child(1) { width: 40px; height: 40px; position: relative; }
.spinner-ring:nth-child(2) { width: 30px; height: 30px; animation-direction: reverse; border-top-color: var(--accent-indigo); }
.spinner-ring:nth-child(3) { width: 20px; height: 20px; border-top-color: var(--accent-blue-light); }

.loading-text { margin-top: 28px; font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

.slider-value { font-size: 0.72rem; color: var(--accent-blue); font-weight: 600; min-width: 32px; text-align: right; }

.generate-btn { width: 100%; padding: 13px; font-size: 0.9rem; font-weight: 600; margin-top: 8px; }

/* ---- Media Lightbox Modal (Zoom Fullscreen) ---- */
.media-lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.media-lightbox-overlay.hidden {
    display: none !important;
}

.media-lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.media-lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.media-lightbox-element {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.media-lightbox-element.hidden {
    display: none !important;
}

.media-lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.media-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.08);
}

.media-lightbox-actions {
    margin-top: 14px;
    display: flex;
    gap: 12px;
}

.media-lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

.media-lightbox-download:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-2px);
}

/* Make preview areas show pointer cursor to indicate clickability */
.result-preview, .video-preview-container, .upload-preview {
    cursor: pointer;
}

/* ============================================================
   NOVA PRO & QUOTA WIDGET STYLES (MODERN UI)
   ============================================================ */
.quota-sidebar-container {
    margin-bottom: 12px;
    padding: 0 4px;
}

/* Compact Minimal Sidebar Widget (Gambar 2) */
.quota-widget-free-compact {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.quota-widget-free-compact:hover {
    border-color: rgba(203, 213, 225, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.quota-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quota-widget-pro-compact {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.quota-tier-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quota-tier-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    display: inline-block;
}

.quota-tier-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-upgrade-pill {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
    transition: all 0.2s ease;
}

.btn-upgrade-pill:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
    filter: brightness(1.1);
}

/* Detailed Quota Card inside Account Modal (Gambar 1) */
.account-quota-box {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 14px 16px;
    text-align: left;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.account-quota-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.account-quota-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #334155;
    letter-spacing: 0.5px;
}

.account-reset-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(241, 245, 249, 0.9);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.account-upgrade-btn {
    width: 100%;
    margin-top: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 10px;
    color: #db2777;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.account-upgrade-btn:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
    border-color: #ec4899;
    transform: translateY(-1px);
}

.quota-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quota-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.q-icon-wrap {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.q-icon-wrap.q-chat {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.q-icon-wrap.q-img {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
}

.q-icon-wrap.q-vid {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}

.q-progress-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.q-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
}

.q-labels .q-val {
    color: #1e293b;
    font-weight: 700;
}

.q-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.q-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.fill-chat { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.fill-img  { background: linear-gradient(90deg, #ec4899, #f472b6); }
.fill-vid  { background: linear-gradient(90deg, #8b5cf6, #a855f7); }

/* Pro Sidebar Widget */
.quota-widget-pro {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.pro-widget-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(236, 72, 153, 0.6);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.pro-badge-info {
    display: flex;
    flex-direction: column;
}

.pro-badge-name {
    font-size: 0.76rem;
    font-weight: 800;
    color: #f472b6;
    letter-spacing: 0.5px;
}

.pro-badge-status {
    font-size: 0.64rem;
    color: #94a3b8;
}

/* ============================================================
   NOVA PRO UPGRADE MODAL
   ============================================================ */
.nova-pro-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px;
}

.nova-pro-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nova-pro-modal-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 24px 26px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 40px rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.nova-pro-modal-overlay.active .nova-pro-modal-card {
    transform: translateY(0) scale(1);
}

.nova-pro-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(241, 245, 249, 0.9);
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.nova-pro-modal-close:hover {
    background: #ef4444;
    color: white;
}

.pro-modal-hero {
    text-align: center;
    margin-bottom: 16px;
}

.pro-modal-img-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
}

.pro-hero-badge-img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    position: relative;
    z-index: 1;
    border: 1.5px solid rgba(236, 72, 153, 0.4);
}

.pro-img-glow {
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    opacity: 0.4;
    filter: blur(10px);
    z-index: 0;
}

.pro-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.pro-modal-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.pro-modal-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.pro-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.benefit-card {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon.icon-chat { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.benefit-icon.icon-img  { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.benefit-icon.icon-vid  { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.benefit-icon.icon-vip  { background: rgba(234, 179, 8, 0.15); color: #d97706; }

.benefit-text strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.benefit-text span {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.25;
    display: block;
}

.pro-pricing-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.price-left {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    font-family: var(--font-heading);
}

.price-sub {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.price-guarantee {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #059669;
}

.pro-upgrade-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4);
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pro-upgrade-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5);
}

.pro-guarantee-note {
    margin: 8px 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
}

/* ============================================================
   LITE MODE / ANTI-LAG (FOR LOW-END DEVICES & SMOOTH 60FPS)
   ============================================================ */
body.lite-mode #bgParticles,
body.lite-mode #aiBrainCanvas {
    display: none !important;
}

body.lite-mode * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    animation-duration: 0.001s !important;
    transition-duration: 0.05s !important;
}

/* Retain card borders & essentials cleanly in Lite Mode */
body.lite-mode .nova-pro-modal-card,
body.lite-mode .admin-card,
body.lite-mode .feature-card,
body.lite-mode .quota-widget-free,
body.lite-mode .sidebar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

body.lite-mode .nova-pro-modal-overlay,
body.lite-mode .sidebar-overlay,
body.lite-mode .loading-overlay {
    background: rgba(15, 23, 42, 0.96) !important;
}

/* ============================================================
   SYSTEM NOTIFICATIONS & BROADCAST ANNOUNCEMENTS
   ============================================================ */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    width: 360px;
    max-width: 90vw;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: dropFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-dropdown.hidden {
    display: none !important;
}

@keyframes dropFade {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-tertiary, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.notif-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.notif-title-wrap svg {
    color: var(--accent-blue, #3b82f6);
}

.notif-mark-read {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue, #3b82f6);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.notif-mark-read:hover {
    background: rgba(59, 130, 246, 0.1);
}

.notif-list-container {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-tertiary, #94a3b8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.notif-item {
    position: relative;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: var(--bg-hover, #f8fafc);
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.04);
}

.notif-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.notif-type-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.notif-time-text {
    font-size: 0.7rem;
    color: var(--text-tertiary, #94a3b8);
}

.notif-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin: 0;
    padding-right: 14px;
}

.notif-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.45;
    margin: 0;
}

.notif-unread-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.8);
}

/* Admin Announcements Panel Styling */
.announce-form-box {
    background: var(--bg-tertiary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    padding: 18px;
    margin-top: 14px;
}

.announce-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announce-card-item {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.announce-card-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-color: rgba(139, 92, 246, 0.3);
}

.announce-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.urgent-badge-pill {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.announce-date-text {
    font-size: 0.72rem;
    color: var(--text-tertiary, #94a3b8);
}

.btn-delete-announce {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-delete-announce:hover {
    background: #ef4444;
    color: white;
}

.announce-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0;
}

.announce-card-body {
    font-size: 0.82rem;
    color: var(--text-secondary, #475569);
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

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


