/* DEEP SPACE BACKGROUND */
body { 
    background-color: #030712; 
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(34, 211, 238, 0.05), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.05), transparent 25%);
    color: #cbd5e1; 
    font-family: 'Inter', sans-serif; 
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(51, 65, 85, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.5); }

/* GLASSMORPHISM CLASSES */
.glass-panel { 
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

.glass-card { 
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.glass-card:hover { 
    border-color: rgba(34, 211, 238, 0.15); 
    transform: translateY(-4px); 
}

/* HOVER GLOWS */
.glow-emerald:hover { box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.2); }
.glow-blue:hover { box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.2); }
.glow-amber:hover { box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.2); }
.glow-cyan:hover { box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.2); }
.glow-purple:hover { box-shadow: 0 10px 40px -10px rgba(168, 85, 247, 0.2); }

/* TAB ANIMATIONS */
.tab-content { display: none; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
.tab-content.active { display: block; opacity: 1; transform: translateY(0); }

/* INPUT FIELDS */
.dark-input { 
    background: rgba(15,23,42,0.5); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: white; 
    outline: none; 
    transition: 0.3s ease; 
}
.dark-input:focus { 
    border-color: #22d3ee; 
    background: rgba(15,23,42,0.8); 
    box-shadow: 0 0 15px rgba(34,211,238,0.2); 
}

/* SKELETON LOADER */
.skeleton-row { animation: pulse-bg 1.5s infinite ease-in-out; }
@keyframes pulse-bg { 
    0% { background-color: rgba(30, 41, 59, 0.3); } 
    50% { background-color: rgba(51, 65, 85, 0.4); } 
    100% { background-color: rgba(30, 41, 59, 0.3); } 
}

/* HIDDEN PDF RENDER CONTAINER */
#hidden-pdf-wrapper { 
    position: fixed; top: 0; left: 0; z-index: -9999; 
    opacity: 0.001; pointer-events: none; overflow: visible; 
}
.a4-container { 
    width: 210mm; min-height: 297mm; background: #ffffff; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"); 
    position: relative; overflow: hidden; color: #0f172a; 
}

.watermark { 
    position: absolute; top:50%; left:50%; transform:translate(-50%,-50%) rotate(-45deg); 
    font-family:'Playfair Display'; font-size:120px; font-weight:900; 
    color:rgba(30,58,138,0.03); pointer-events:none; white-space:nowrap; z-index: 0;
}

.rubber-stamp {
    font-family: 'Courier New', Courier, monospace; color: #1e3a8a; border: 3px solid #1e3a8a;
    border-radius: 50%; display: inline-block; padding: 1rem; text-align: center;
    text-transform: uppercase; font-weight: bold; font-size: 10px; opacity: 0.8;
    transform: rotate(-12deg); mix-blend-mode: multiply;
}
.stamp-inner { border: 1px solid #1e3a8a; border-radius: 50%; padding: 8px; width: 90px; height: 90px; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* UNICORN NOTIFICATION BADGE */
#toast-container { 
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%); 
    z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; 
}
.toast { 
    transform: translateY(-150%) scale(0.9); opacity: 0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 12px 24px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }

/* THEME ENGINE CSS LOGIC */
.theme-classic .t-header { border-bottom: 4px solid #172554; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.theme-classic .t-title { color: #1d4ed8; font-family: 'Playfair Display', serif; }
.theme-classic .t-table-head { background-color: #172554; color: white; }
.theme-classic .t-box { border: 1px solid #e2e8f0; background-color: #f8fafc; border-radius: 0.25rem; padding: 0.75rem; }
.theme-classic .t-font-body { font-family: 'Inter', sans-serif; }

.theme-modern .t-header { background: linear-gradient(to right, #f8fafc, #f1f5f9); padding: 1.5rem; border-radius: 1rem; margin-bottom: 1.5rem; border: none; }
.theme-modern .t-title { color: #2563eb; font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }
.theme-modern .t-table-head { background-color: #3b82f6; color: white; }
.theme-modern .t-table-head th:first-child { border-top-left-radius: 0.5rem; }
.theme-modern .t-table-head th:last-child { border-top-right-radius: 0.5rem; }
.theme-modern .t-box { background-color: #f8fafc; border: none; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.theme-modern .t-font-body { font-family: 'Inter', sans-serif; }

.theme-neo .t-header { border-bottom: 2px solid #0f172a; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.theme-neo .t-title { color: #0f172a; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.02em; }
.theme-neo .t-table-head { background-color: transparent; color: #0f172a; border-top: 2px solid #0f172a; border-bottom: 2px solid #0f172a; }
.theme-neo .t-box { border: 1px solid #0f172a; background-color: transparent; border-radius: 0; padding: 0.75rem; }
.theme-neo .t-font-body { font-family: 'JetBrains Mono', monospace; }

/* PREMIUM LOGO FRAME CSS */
.logo-frame {
    background-color: #f8fafc;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.8), inset 0 -2px 5px rgba(0,0,0,0.05), 0 0 20px rgba(34, 211, 238, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ACCORDION CSS FOR LEGAL TAB */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .5s ease-in-out; }
@keyframes sweep { 0% {opacity: 0; transform: translateY(-10px)} 100% {opacity: 1; transform: translateY(0)} }