/* --- RESET & FONTS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-dark: #010613; /* Deeper blue/black */
    --bg-gradient: linear-gradient(135deg, #010613 0%, #061633 100%);
    --glass-bg: rgba(10, 25, 50, 0.25); /* Tinted blue glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.25);
    --accent: #00f0ff; /* Brighter Neon Blue */
    --text-main: #e0f2fe;
    --text-muted: #8ba3c7;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- AMBIENT GLOW ORB --- */
.bg-orb {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
}

/* --- ENHANCED GLASSMORPHISM (Dark Blue Mirror) --- */
.glass-panel, .glass-card, .glass-sidebar, .glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.03);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.glass-panel::before, .glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 200%;
    transition: 0.7s ease-in-out;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.1);
    border-top: 1px solid rgba(0, 240, 255, 0.5);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- TOPBAR --- */
#topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(1, 6, 19, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo { height: 40px; width: auto; object-fit: contain; font-weight: bold; font-size: 1.5rem; color: #fff;}
nav a { margin-left: 20px; color: var(--text-muted); font-size: 0.9rem; }
nav a:hover { color: var(--accent); }

/* --- HERO SECTION --- */
#hero { height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { padding: 60px 80px; max-width: 800px; }
h1 { font-size: 3.5rem; margin-bottom: 20px; }
.highlight { color: var(--accent); }

.btn-glow {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 35px;
    background: var(--accent);
    color: #010613;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.btn-glow:hover { background: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }

/* --- PLANS --- */
#plans-container { padding: 50px 20px 100px; text-align: center; }
#plans { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.plan { width: 220px; padding: 30px 20px; }
.plan.popular { border-color: var(--accent); box-shadow: 0 0 20px rgba(0, 240, 255, 0.15); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #000; padding: 4px 12px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; }
.price { font-size: 2rem; margin: 15px 0; font-weight: 600; }
.price span { font-size: 1rem; color: var(--text-muted); }

.btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 25px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 20px;
}
.btn-outline:hover { background: var(--accent); color: #000; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(1, 6, 19, 0.7);
    backdrop-filter: blur(10px);
}

/* --- LOGIN / REGISTER PAGE --- */
.center-body { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-container, .container { width: 400px; padding: 40px; text-align: center; }
.container { 
    background: var(--glass-bg); backdrop-filter: blur(16px); 
    border: 1px solid var(--glass-border); border-radius: 16px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); margin: 10vh auto; 
}
.container h1 { margin-bottom: 25px; color: var(--text-main); font-size: 1.8rem;}
.input-group, .container form { text-align: left; }
.input-group label, .container label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
.input-group input, .container input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.3s;
    margin-bottom: 20px;
}
.input-group input:focus, .container input:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
.full-width, .container button { width: 100%; }
.container button {
    padding: 12px 35px; background: var(--accent); color: #010613; font-weight: 600;
    border-radius: 30px; box-shadow: 0 0 20px rgba(0, 240, 255, 0.4); border: none; cursor: pointer; transition: 0.3s; margin-bottom: 15px;
}
.container button:hover { background: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
.switch-text { margin-top: 15px; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.switch-text a, .container p a { color: var(--accent); font-weight: 600; }

/* --- DASHBOARD --- */
.dashboard-layout { display: flex; height: 100vh; }
.glass-sidebar { width: 250px; height: 95vh; margin: 2.5vh 0 2.5vh 2.5vh; padding: 20px; display: flex; flex-direction: column; }
.sidebar-header { font-size: 1.2rem; font-weight: 600; margin-bottom: 40px; text-align: center; color: var(--accent); text-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }

.storage-widget { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 12px; margin-bottom: 30px; border: 1px solid var(--glass-border); }
.storage-widget h3 { font-size: 0.9rem; margin-bottom: 10px; color: var(--text-muted); }
.storage-widget p { font-size: 0.8rem; margin-top: 5px; color: var(--text-muted); }

.progress-bar-bg { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width 0.5s ease; }

.menu { list-style: none; }
.menu li { margin-bottom: 10px; }
.menu a { display: block; padding: 10px 15px; border-radius: 8px; color: var(--text-muted); }
.menu a:hover, .menu a.active { background: rgba(255,255,255,0.05); color: #fff; border-left: 2px solid var(--accent); }

main { flex: 1; padding: 2.5vh; overflow-y: auto; }
.glass-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; margin-bottom: 30px; }
.glass-header h2 { font-weight: 400; }

.user-profile { display: flex; align-items: center; gap: 10px; }
.avatar { background: linear-gradient(45deg, rgba(0,240,255,0.3), rgba(0,95,115,0.3)), url("camo.png"); background-size: cover; background-position: center; width: 35px; height: 35px; border-radius: 50%; box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }

.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.file-card { padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 150px; cursor: pointer; }
.file-card .icon { font-size: 2.5rem; margin-bottom: 10px; }
.file-card .info { text-align: center; }
.file-card h4 { font-size: 0.9rem; margin-bottom: 5px; color: #fff; }

.add-new { border-style: dashed; border-color: rgba(0, 240, 255, 0.4); color: var(--accent); background: rgba(0, 240, 255, 0.02); }
.add-new:hover { border-color: var(--accent); background: rgba(0, 240, 255, 0.05); }

.file-size { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; font-weight: 300; opacity: 0.8; transition: 0.3s; }
.file-card:hover .file-size { color: var(--accent); opacity: 1; }

.action-btn { transition: 0.2s ease; opacity: 0.7; }
.action-btn:hover { opacity: 1; transform: scale(1.15); text-shadow: 0 0 8px currentColor; }

/* --- INVOICES GRID --- */
.invoices-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.invoice {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.invoice:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.1);
}

.invoice div {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
    text-transform: capitalize;
}

.invoice div strong {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- NOTIFICATIONS --- */
#notificationContainer { position: fixed; bottom: 20px; left: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.notification { background: rgba(0, 240, 255, 0.1); border: 1px solid var(--glass-border); padding: 15px 20px; border-radius: 12px; color: #fff; box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); animation: fadeInOut 4s forwards; }
@keyframes fadeInOut { 0% { opacity: 0; transform: translateY(-10px); } 10% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }

/* --- MODALS & EDITOR --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { width: 80vw; height: 85vh; display: flex; flex-direction: column; padding: 20px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; position: relative; }
.close-btn { background: none; border: none; color: var(--accent); font-size: 2rem; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: #fff; text-shadow: 0 0 10px var(--accent); }
.modal-body { flex: 1; display: flex; justify-content: center; align-items: center; overflow: hidden; background: rgba(0,0,0,0.3); border-radius: 8px; }
.modal-body img, .modal-body video, .modal-body iframe, textarea { max-width: 100%; max-height: 100%; width: 100%; height: 100%; border-radius: 8px; border: none; object-fit: contain; }

.pencil-outline { font-size: 15px; color: white; transition: 0.3s; }
.pencil-outline:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
#editbutton { border: none; background-color: transparent; position: absolute; right: 60px; top: 50%; transform: translateY(-50%); cursor: pointer; }
#savebutton { border: none; background-color: transparent; position: absolute; right: 100px; top: 50%; transform: translateY(-50%); cursor: pointer; color: white; }
#savei { color: white; font-size: 17px; transition: 0.3s; }
#savei:hover { color: #2ed573; text-shadow: 0 0 10px #2ed573; }

/* --- SETTINGS PANEL --- */
.settings { 
    position: fixed; 
    top: 15vh; 
    left: 15vw; 
    width: 70vw; 
    height: 70vh; 
    color: var(--text-main); 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); 
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px; 
    border-radius: 16px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.03); 
    z-index: 1000;
}

.settings select { 
    color: var(--text-main); 
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid var(--glass-border); 
    border-radius: 8px; 
    padding: 10px 15px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}

.settings select:focus, .settings select:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.settings select option {
    background: var(--bg-dark);
    color: var(--text-main);
}