:root {
    --bg-dark: #05050A;
    --acc-teal: #3ddc97;
    --acc-red: #ff4d4d;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    cursor: none; /* Hide for custom cursor */
}

/* Custom Dadaist Cursor */
#cursor {
    width: 20px;
    height: 20px;
    background: #ffcc00;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, clip-path 0.3s ease;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Background Stars effect */
.stars-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, rgba(30, 60, 70, 0.2) 0%, var(--bg-dark) 80%);
    pointer-events: none; z-index: -1;
}

/* Glass Panel Reusable Class */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* Base Screens Transition */
.screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; pointer-events: none; 
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.9) rotate(2deg);
    z-index: 10;
}
.screen.active {
    opacity: 1; pointer-events: auto;
    transform: scale(1) rotate(0deg);
}

/* --- SPLASH SCREEN --- */
.full-page {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-dark);
    z-index: 100;
}
.web-layout { background: transparent; position: relative; overflow: hidden; }
.dashboard-content.ledger-only { display: flex; align-items: center; justify-content: center; flex: 1; position: relative; z-index: 1; margin: 0; }
.web-header { position: relative; z-index: 2; }
#pluriverse-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.6; pointer-events: none; }
#dashboard-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; pointer-events: none; }
.splash-content { text-align: center; position: relative; z-index: 2; pointer-events: auto;}
.glow-btn { pointer-events: auto; }
.logo { font-size: 3.5rem; letter-spacing: 4px; font-weight: 700; line-height: 1.2; margin-bottom: 2rem; }
.logo-small { font-size: 1.5rem; letter-spacing: 2px; font-weight: 700; margin: 0; }
.white-glow-text { color: white; text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4); }
.separator-line { width: 140px; height: 1px; background: #3ddc97; margin: 1.5rem auto 2.5rem; box-shadow: 0 0 8px #3ddc97; }
.subtitle-clean { color: #8a8a8a; font-size: 0.95rem; line-height: 1.6; margin-bottom: 4rem; letter-spacing: 0.5px; }
.outline-btn {
    pointer-events: auto; background: transparent; border: 1px solid #3ddc97; color: white;
    padding: 0.8rem 3.5rem; border-radius: 30px; font-size: 1rem; letter-spacing: 2px; cursor: pointer;
    transition: all 0.3s ease;
    position: relative; z-index: 10;
}
.outline-btn:hover { background: rgba(61, 220, 151, 0.1); box-shadow: 0 0 15px rgba(61,220,151,0.2); }
.subtitle { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 5rem; line-height: 1.5; }
.glow-btn {
    background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.5);
    color: var(--text-main); padding: 1rem 4rem; border-radius: 30px; font-size: 1.2rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 20px rgba(61, 220, 151, 0.2);
    text-transform: uppercase; letter-spacing: 2px;
}
.glow-btn:hover { background: rgba(61, 220, 151, 0.2); box-shadow: 0 0 35px rgba(61, 220, 151, 0.5); transform: translateY(-2px); }

/* --- DASHBOARD WEB LAYOUT --- */
.web-layout {
    position: relative; 
    height: 100vh; 
    overflow: hidden; 
    display: none; 
    flex-direction: column;
}
.web-layout.active { display: flex; }

.web-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; border-bottom: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
}

.profile-area { display: flex; align-items: center; }
.avatar { width: 45px; height: 45px; border-radius: 50%; margin-right: 1rem; }
.user-info .name { font-weight: 600; font-size: 1.1rem; }
.user-info .handle { font-size: 0.8rem; color: var(--text-muted); }

.dashboard-content {
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 5%;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    flex: 1;
}

/* Overview Section */
.overview-section { padding: 2rem; }
.overview-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.progress-bar-container { margin-bottom: 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 0.5rem; font-weight: 500; }
.glow-green { color: var(--acc-teal); text-shadow: 0 0 8px var(--acc-teal); }
.glow-red { color: var(--acc-red); text-shadow: 0 0 8px var(--acc-red); }
.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* Events Grid */
.events-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.event-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
    padding: 1.5rem; cursor: pointer; display: flex; flex-direction: column; gap: 1rem;
    backdrop-filter: blur(5px); transition: all 0.4s ease; position: relative; overflow: hidden;
}
.event-card:hover { 
    background: rgba(255,255,255,0.08); transform: translateY(-3px); border-color: var(--acc-teal);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.card-header { font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: #fff; }
.card-stats { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 400; font-style: italic; margin-top: auto; }
.stat-gain { color: var(--acc-teal); }
.stat-loss { color: var(--acc-red); }

/* Radar chart section below event cards */
.event-radar-section { margin-top: 2rem; }
.event-radar-section h3 { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.radar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.radar-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; text-align: center; }
.radar-card h4 { font-size: 0.85rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.7); }
.radar-card canvas { width: 100%; height: 180px; }

/* --- DETAIL MODAL OVERLAY --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    z-index: 200; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }
.hidden { display: none; }

.detail-modal {
    width: 90%; max-width: 900px; padding: 2.5rem;
    position: relative; animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem;}
#detail-title { font-size: 1.8rem; font-weight: 600; }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 2.5rem; cursor: pointer; transition: color 0.2s; line-height: 1;}
.close-btn:hover { color: white; }

.detail-content-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}

@media (max-width: 768px) {
    .detail-content-split { grid-template-columns: 1fr; gap: 2rem; }
}

.gains-losses-section h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text-muted); font-weight: 500; }
.list-wrapper { max-height: 400px; overflow-y: auto; padding-right: 1rem;}

.detail-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(61, 220, 151, 0.2); border-radius: 8px;
    padding: 1rem 1.2rem; margin-bottom: 0.8rem; display: flex; justify-content: space-between; font-size: 1rem;
}
.detail-item.loss { border-color: rgba(255, 77, 77, 0.2); }

/* Sliders */
.slider-item { flex-direction: column; gap: 0.8rem; }
.slider-header { display: flex; justify-content: space-between; width: 100%; align-items: center;}
.impact-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px;
    outline: none; opacity: 0.8; transition: opacity .2s; margin-top: 0.5rem;
}
.impact-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; cursor: pointer;
}
.gain-slider { background: rgba(61, 220, 151, 0.3); }
.gain-slider::-webkit-slider-thumb { background: var(--acc-teal); box-shadow: 0 0 10px var(--acc-teal); }
.loss-slider { background: rgba(255, 77, 77, 0.3); }
.loss-slider::-webkit-slider-thumb { background: var(--acc-red); box-shadow: 0 0 10px var(--acc-red); }

.losses-label { font-size: 0.9rem; color: var(--text-muted); margin: 2rem 0 1rem; text-transform: uppercase; letter-spacing: 1px;}

.system-insight { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;}
.insight-title { font-size: 1rem; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 0.5rem; }
.insight-subtitle { font-size: 1.3rem; line-height: 1.4; margin-bottom: 2rem; font-weight: 300; }
.chart-container { position: relative; width: 100%; max-width: 400px; height: 350px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

/* --- LEDGER SELECTOR --- */
.ledger-text { font-size: 1.3rem; font-weight: 600; color: var(--text-main); margin-bottom: 2rem; line-height: 1.6; letter-spacing: 0.5px;}
.ledger-options { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;}
.ledger-btn {
    width: 60px; height: 60px; border-radius: 50%; background: transparent;
    border: 2px solid var(--text-main); color: var(--text-main); font-size: 1.5rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
}
.ledger-btn:hover { border-color: var(--acc-teal); color: var(--acc-teal); box-shadow: 0 0 15px rgba(61,220,151,0.3); }
.ledger-btn.active { background: var(--acc-teal); color: var(--bg-dark); border-color: var(--acc-teal); box-shadow: 0 0 20px rgba(61,220,151,0.6); transform: scale(1.1); }

/* 5 distinct button colours */
.lb1 { border-color: #3ddc97; color: #3ddc97; }
.lb1:hover, .lb1.active { background: #3ddc97; color: var(--bg-dark); box-shadow: 0 0 20px rgba(61,220,151,0.6); }
.lb2 { border-color: #4fc3f7; color: #4fc3f7; }
.lb2:hover, .lb2.active { background: #4fc3f7; color: var(--bg-dark); box-shadow: 0 0 20px rgba(79,195,247,0.6); }
.lb3 { border-color: #ffd54f; color: #ffd54f; }
.lb3:hover, .lb3.active { background: #ffd54f; color: var(--bg-dark); box-shadow: 0 0 20px rgba(255,213,79,0.6); }
.lb4 { border-color: #ce93d8; color: #ce93d8; }
.lb4:hover, .lb4.active { background: #ce93d8; color: var(--bg-dark); box-shadow: 0 0 20px rgba(206,147,216,0.6); }
.lb5 { border-color: #ff8a65; color: #ff8a65; }
.lb5:hover, .lb5.active { background: #ff8a65; color: var(--bg-dark); box-shadow: 0 0 20px rgba(255,138,101,0.6); }

/* Branch Button Glow Pulse */
#ledger-btn-2 {
    animation: branchPulse 2.5s ease-in-out infinite;
}
#ledger-btn-2:hover {
    background: #3ddc97 !important;
    color: #111 !important;
    box-shadow: 0 0 40px rgba(61,220,151,0.8), 0 0 80px rgba(61,220,151,0.3) !important;
    transform: scale(1.05) !important;
}

@keyframes branchPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(61,220,151,0.3), 0 0 20px rgba(61,220,151,0.1); }
    50% { box-shadow: 0 0 25px rgba(61,220,151,0.7), 0 0 60px rgba(61,220,151,0.3); }
}

/* Ledger panel decorative corner badges */
.ledger-selector-section::before {
    content: '⬡';
    position: absolute;
    top: 15px; left: 20px;
    font-size: 2.5rem;
    color: rgba(162, 0, 255, 0.25);
    animation: spinSlow 8s linear infinite;
}
.ledger-selector-section::after {
    content: '⬡';
    position: absolute;
    bottom: 15px; right: 20px;
    font-size: 2rem;
    color: rgba(0,174,239,0.25);
    animation: spinSlow 6s linear infinite reverse;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- NAVIGATION HELPERS --- */
.back-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted); padding: 0.4rem 1rem; border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.back-btn:hover { border-color: var(--acc-teal); color: var(--acc-teal); }

/* --- AZAM PROFILE PAGE --- */
.profile-page-content { max-width: 900px; margin: 2rem auto; padding: 0 2rem; }
.profile-hero { 
    display: flex; align-items: center; gap: 3rem; padding: 3rem; margin-bottom: 2rem; 
    border-right: 5px solid #00aeef; transform: rotate(0.5deg);
}
.avatar-lg { 
    width: 140px; height: 140px; border-radius: 4px; border: 4px solid #ffcc00; 
    flex-shrink: 0; box-shadow: 8px 8px 0 rgba(255, 204, 0, 0.3); transform: rotate(-3deg);
}
.profile-name { font-family: 'Anton', sans-serif; font-size: 3.5rem; margin: 0 0 0.5rem; letter-spacing: 2px; text-transform: uppercase; }
.profile-desc { font-family: 'Special Elite', monospace; color: #3ddc97; margin: 0 0 1rem; font-size: 1.2rem; background: rgba(0,0,0,0.3); display: inline-block; padding: 5px 15px; }
.profile-meta { color: rgba(255,255,255,0.6); margin: 0; font-size: 1rem; line-height: 1.6; max-width: 500px; }

/* --- AZAM'S LEDGER TABLE PAGE --- */
.ledger-page-content { max-width: 1100px; margin: 2rem auto; padding: 0 2rem; }
.ledger-page-title { 
    font-family: 'Anton', sans-serif; font-size: 3rem; text-align: center; margin-bottom: 2.5rem; 
    letter-spacing: 5px; text-transform: uppercase; transform: rotate(1deg); color: #ffcc00;
    text-shadow: 4px 4px 0 #a200ff;
}
.ledger-table-wrapper { border: 2px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4); padding: 2rem; transition: transform 0.3s ease; }
.ledger-table-wrapper:hover { transform: scale(1.01); }
.ledger-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-family: 'Montserrat', sans-serif; }
.ledger-table th { 
    padding: 1.5rem; text-align: center; font-family: 'Special Elite', monospace; 
    font-size: 1.2rem; letter-spacing: 2px; border-bottom: 3px solid #00aeef; color: #00aeef; 
    text-transform: uppercase;
}
.ledger-table th:first-child { text-align: left; color: #fff; border-bottom-color: #a200ff; }
.ledger-table td { padding: 1.2rem; text-align: center; background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.7); vertical-align: middle; }
.ledger-table td:first-child { text-align: left; color: #fff; font-weight: 700; font-family: 'Special Elite', monospace; font-size: 1.1rem; border-left: 4px solid #3ddc97; }
.ledger-table tr:hover td { background: rgba(255,255,255,0.08); color: #fff; transform: scale(1.02); z-index: 10; font-weight: bold; }

/* --- BOTTOM NAVIGATION BAR --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 50;
}

/* Text Animation and Sound Toggle */
.animated-text-container { font-size: 1.1rem; line-height: 1.8; color: #ccc; }
.word { display: inline-block; margin-right: 6px; opacity: 0; transform: translateY(10px); transition: all 0.5s ease; }
.word.visible { opacity: 1; transform: translateY(0); }
.sound-toggle-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--acc-teal); color: var(--acc-teal); padding: 8px 15px; border-radius: 20px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.sound-toggle-btn:hover { background: rgba(61, 220, 151, 0.1); box-shadow: 0 0 10px rgba(61, 220, 151, 0.4); }

/* --- COLLAGE STYLE EXTENSION FOR 1ST AND 2ND SCREENS --- */
/* Removed the beige background to allow the dark professional background to show through */
.collage-bg, .collage-bg.active {
    background-color: transparent !important;
}

/* Allow the moving green dots canvas to show over the dark background */
.collage-bg #pluriverse-canvas,
.collage-bg #dashboard-canvas {
    display: block !important;
    opacity: 0.8 !important;
    mix-blend-mode: screen; /* Works better on dark backgrounds */
}

.collage-title {
    font-family: 'Anton', sans-serif;
    font-size: 6rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff; /* Adjusted to white for dark bg */
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
    transform: rotate(-2deg);
}

.c-char {
    display: inline-block;
    position: relative;
    /* Creating a stacked block 3D text effect */
    text-shadow: 
        1px 1px 0px #444,
        2px 2px 0px #444,
        3px 3px 0px #666,
        4px 4px 0px #666,
        5px 5px 0px #00aeef,
        6px 6px 0px #00aeef,
        7px 7px 0px #00aeef,
        8px 8px 15px rgba(0,0,0, 0.9) !important;
}

.c-m { color: #a200ff; transform: rotate(4deg) scale(1.1); }
.c-y { color: #ffcc00; transform: rotate(-5deg); }
.c-c { color: #00aeef; transform: rotate(3deg) scale(0.9); }
.c-o { color: #f26522; }

.c-bg {
    display: inline-block;
    padding: 0 10px;
    margin: 0 5px;
    transform: rotate(3deg);
}

.c-m-bg { background-color: #a200ff; color: #fff; transform: rotate(-3deg); padding: 5px 15px; display: inline-block;}
.c-c-bg { background-color: #00aeef; color: #111; transform: rotate(4deg); padding: 5px 15px; display: inline-block;}
.c-y-bg { background-color: #ffcc00; color: #111; transform: rotate(-2deg); padding: 5px 15px; display: inline-block;}
.c-black-bg { background-color: transparent; border: 2px solid #fff; color: #fff; transform: rotate(5deg); padding: 5px 15px; display: inline-block;}

/* Dashboard smaller logo scaling */
.dash-collage-logo {
    font-size: 2.2rem !important; /* Scale down the overall text size */
    margin-bottom: 0 !important;
}
.dash-collage-logo .c-char {
    text-shadow: 
        1px 1px 0px #444,
        2px 2px 0px #666,
        3px 3px 0px #00aeef,
        4px 4px 6px rgba(0,0,0, 0.9) !important; /* Smaller 3D effect so it's not bulky */
    animation-duration: 6s !important; /* Slower animation in header to be less distracting */
}
.dash-collage-logo .c-m-bg, 
.dash-collage-logo .c-c-bg, 
.dash-collage-logo .c-y-bg, 
.dash-collage-logo .c-black-bg {
    padding: 2px 8px !important; /* Shrink padding on solid blocks */
    border-width: 1px !important;
}

.collage-subtitle {
    font-family: 'Special Elite', monospace;
    color: #fff; /* Adjusted */
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border: 2px solid #fff;
    display: inline-block;
    margin-bottom: 3rem;
    font-weight: bold;
    text-shadow: none !important;
    animation: subtitleWobble 3s ease-in-out infinite alternate;
}

@keyframes subtitleWobble {
    0% { transform: rotate(1deg) scale(1); box-shadow: 4px 4px 0 #a200ff; }
    33% { transform: rotate(-2deg) scale(1.02); box-shadow: 6px 6px 0 #00aeef; }
    66% { transform: rotate(3deg) scale(0.98); box-shadow: -4px 5px 0 #ffcc00; }
    100% { transform: rotate(-1deg) scale(1.05); box-shadow: 5px -4px 0 #e6007e; }
}

.collage-btn {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    background-color: #ffcc00;
    color: #111;
    border: 3px solid #ffcc00;
    padding: 10px 40px;
    cursor: pointer;
    box-shadow: 6px 6px 0 #00aeef;
    transform: rotate(-1deg);
    transition: all 0.2s;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.collage-btn:hover {
    transform: rotate(0deg) translate(2px, 2px) skewX(-3deg);
    box-shadow: 4px 4px 0 #00aeef;
    filter: hue-rotate(45deg);
}

/* Dashboard screen specific collage elements */
#dashboard-screen.collage-bg .web-header {
    background: transparent !important;
    border-bottom: 2px solid rgba(255,255,255,0.2) !important;
}

.collage-logo {
    font-family: 'Anton', sans-serif !important;
    color: #fff !important;
    text-shadow: 2px 2px 0 #a200ff !important;
    font-size: 2rem !important;
    letter-spacing: 1px !important;
}

#dashboard-screen.collage-bg .back-btn {
    font-family: 'Special Elite', monospace !important;
    background: transparent !important;
    border: 2px solid #111 !important; /* Keep original border since we override below */
    border-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
    font-weight: bold !important;
    box-shadow: 3px 3px 0 rgba(255,255,255,0.2) !important;
}

#dashboard-screen.collage-bg .back-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #ffcc00 !important;
    border-color: #ffcc00 !important;
    transform: translate(1px, 1px) !important;
    box-shadow: 2px 2px 0 #ffcc00 !important;
}

#dashboard-screen.collage-bg .ledger-selector-section {
    background: rgba(255,255,255,0.03) !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    box-shadow: 8px 8px 0 #00aeef !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    transform: rotate(1deg) !important;
}

#dashboard-screen.collage-bg .ledger-text {
    font-family: 'Special Elite', monospace !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 1.5rem !important;
    text-transform: uppercase !important;
}

#dashboard-screen.collage-bg .ledger-options {
    justify-content: center !important;
}

#dashboard-screen.collage-bg .ledger-btn {
    font-family: 'Anton', sans-serif !important;
    border-radius: 0 !important;
    border: 2px solid #fff !important;
    background: transparent !important;
    color: #111 !important; /* Will be overridden by specific buttons */
    font-size: 2rem !important;
    box-shadow: 4px 4px 0 #fff !important;
    transform: rotate(-2deg) !important;
}

#dashboard-screen.collage-bg .ledger-btn:hover {
    transform: rotate(0) translate(2px, 2px) !important;
    box-shadow: 2px 2px 0 rgba(255,255,255,0.5) !important;
}

#dashboard-screen.collage-bg .lb1 { background: #a200ff !important; color: #fff !important; transform: rotate(3deg) !important; border-color: #a200ff !important; box-shadow: 4px 4px 0 rgba(255,255,255,0.2) !important;}
#dashboard-screen.collage-bg .lb2 { background: #00aeef !important; color: #111 !important; transform: rotate(-4deg) !important; border-color: #00aeef !important; box-shadow: 4px 4px 0 rgba(255,255,255,0.2) !important;}
#dashboard-screen.collage-bg .lb3 { background: #ffcc00 !important; color: #111 !important; transform: rotate(5deg) !important; border-color: #ffcc00 !important; box-shadow: 4px 4px 0 rgba(255,255,255,0.2) !important;}
#dashboard-screen.collage-bg .lb4 { background: #f26522 !important; color: #fff !important; transform: rotate(-3deg) !important; border-color: #f26522 !important; box-shadow: 4px 4px 0 rgba(255,255,255,0.2) !important;}
#dashboard-screen.collage-bg .lb5 { background: transparent !important; color: #fff !important; transform: rotate(2deg) !important; border-color: #fff !important; box-shadow: 4px 4px 0 #a200ff !important;}

#dashboard-screen.collage-bg .lb1:hover, #dashboard-screen.collage-bg .lb1.active { background: #fff !important; color: #a200ff !important; box-shadow: 4px 4px 0 #a200ff !important; filter: hue-rotate(90deg); }
#dashboard-screen.collage-bg .lb2:hover, #dashboard-screen.collage-bg .lb2.active { background: #fff !important; color: #00aeef !important; box-shadow: 4px 4px 0 #00aeef !important; filter: hue-rotate(90deg); }
#dashboard-screen.collage-bg .lb3:hover, #dashboard-screen.collage-bg .lb3.active { background: #fff !important; color: #ffcc00 !important; box-shadow: 4px 4px 0 #ffcc00 !important; filter: hue-rotate(90deg); }
#dashboard-screen.collage-bg .lb4:hover, #dashboard-screen.collage-bg .lb4.active { background: #fff !important; color: #f26522 !important; box-shadow: 4px 4px 0 #f26522 !important; filter: hue-rotate(90deg); }
#dashboard-screen.collage-bg .lb5:hover, #dashboard-screen.collage-bg .lb5.active { background: #a200ff !important; color: #fff !important; box-shadow: 4px 4px 0 #fff !important; filter: hue-rotate(90deg); }

/* --- FLOATING SHAPES FOR COLLAGE BACKGROUND --- */
.shapes-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}

.bg-shape {
    position: absolute;
    top: 105%; /* Start just below the screen */
    animation: driftChaos 20s linear infinite alternate; /* Alternating direction */
    mix-blend-mode: screen;
}

/* Base keyframes for drifting up and tumbling wildly */
@keyframes driftChaos {
    0% { top: 105%; transform: rotate(0deg) scale(0.8); }
    50% { top: 40%; transform: rotate(180deg) scale(1.2); }
    100% { top: -15%; transform: rotate(360deg) scale(0.8); }
}

/* Animations for collage title letters */
.c-char {
    animation: hoverLetter 3s ease-in-out infinite alternate, fontChaos 4s infinite step-end;
}

.c-word .c-char:nth-child(even) { animation-duration: 2.3s, 5s; animation-delay: -1s, -2s; }
.c-word .c-char:nth-child(3n)   { animation-duration: 3.2s, 6s; animation-delay: -2s, -4s; }
.c-word .c-char:nth-child(5n)   { animation-duration: 4.1s, 4.5s; animation-delay: -1.5s, -1s; }

@keyframes hoverLetter {
    0%   { top: 0px; }
    100% { top: -15px; }
}

@keyframes fontChaos {
    0% { font-family: 'Anton', sans-serif; }
    14% { font-family: 'Special Elite', monospace; }
    28% { font-family: 'Bangers', cursive; }
    42% { font-family: 'Times New Roman', serif; }
    57% { font-family: 'Creepster', cursive; }
    71% { font-family: 'Courier New', monospace; }
    85% { font-family: 'Impact', sans-serif; }
    100% { font-family: 'Anton', sans-serif; }
}

@keyframes fontChaosSinhala {
    0% { font-family: 'Gemunu Libre', sans-serif; font-weight: 800; font-size: 1em; }
    25% { font-family: 'Abhaya Libre', serif; font-weight: 800; font-size: 1.1em;}
    50% { font-family: 'Noto Sans Sinhala', sans-serif; font-weight: 900; font-size: 0.9em; }
    75% { font-family: 'Yrsa', serif; font-weight: 700; font-size: 1em; }
    100% { font-family: 'Gemunu Libre', sans-serif; font-weight: 800; }
}

@keyframes fontChaosTamil {
    0% { font-family: 'Kavivanar', cursive; font-size: 1em; }
    33% { font-family: 'Baloo Thambi 2', cursive; font-weight: 800; font-size: 1.1em; }
    66% { font-family: 'Coiny', cursive; font-size: 0.9em;}
    100% { font-family: 'Kavivanar', cursive; }
}

.c-si {
    animation: hoverLetter 3s ease-in-out infinite alternate, fontChaosSinhala 3.5s infinite step-end !important;
}

.c-ta {
    animation: hoverLetter 3s ease-in-out infinite alternate, fontChaosTamil 4s infinite step-end !important;
}

/* Enter Button Dadaist Shapes */
.btn-shape {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.bs1 { top: -10px; left: -5%; width: 20px; height: 15px; background: #00aeef; clip-path: polygon(15% 0, 100% 20%, 80% 100%, 0 85%); -webkit-clip-path: polygon(15% 0, 100% 20%, 80% 100%, 0 85%); animation: btnShapeAnim 3s infinite alternate; }
.bs2 { bottom: -12px; right: -5%; width: 25px; height: 20px; background: #ffcc00; clip-path: polygon(0 20%, 90% 0, 100% 90%, 20% 100%); -webkit-clip-path: polygon(0 20%, 90% 0, 100% 90%, 20% 100%); animation: btnShapeAnim 4s infinite alternate-reverse; }
.bs3 { top: 40%; right: 102%; width: 15px; height: 15px; background: #e6007e; clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); -webkit-clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); animation: btnShapeAnim 2.5s infinite alternate; }
.bs4 { top: -8px; right: 10%; width: 18px; height: 12px; background: #a200ff; clip-path: polygon(20% 0, 100% 10%, 80% 100%, 0 100%); -webkit-clip-path: polygon(20% 0, 100% 10%, 80% 100%, 0 100%); animation: btnShapeAnim 3.5s infinite alternate-reverse; z-index: 2; mix-blend-mode: exclusion; }

@keyframes btnShapeAnim {
    0% { transform: scale(1) rotate(0deg) translate(0,0); }
    100% { transform: scale(1.1) rotate(10deg) translate(3px, -3px); }
}
