/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }
body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Background Glows */
.background {
    position: fixed;
    width:100%;
    height:100%;
    z-index:0;
    overflow:hidden;
}
.glow {
    position:absolute;
    width:300px;
    height:300px;
    border-radius:50%;
    background: rgba(255,0,0,0.2);
    filter:blur(120px);
    animation:float 12s infinite ease-in-out alternate;
}
.glow:nth-child(2){top:60%; left:70%; animation-delay:4s;}
@keyframes float{0%{transform:translate(0,0) scale(1);}50%{transform:translate(50px,-50px) scale(1.1);}100%{transform:translate(0,0) scale(1);}}

/* Navbar */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    z-index: 100;
}
.navbar-left .nav-logo { width: 60px; height:auto; }
.navbar-right a { color:#fff; margin-left:20px; text-decoration:none; font-weight:500; }
.navbar-right a:hover { color:#ff3333; }

/* Main container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 15px 20px; /* top padding for navbar */
}

/* Card */
.card {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    padding: 35px 25px;
    border-radius: 25px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px);
    text-align: center;
    box-shadow: 0 0 50px rgba(255,0,0,0.2);
    max-height: calc(100vh - 140px);
    overflow: hidden;
}

/* Tagline */
p.tagline { color:#aaa; font-size:14px; margin-bottom:20px; }

/* Tabs */
.tabs { display:flex; justify-content:center; margin-bottom:20px; }
.tab { flex:1; cursor:pointer; padding:12px 0; border-radius:12px; background: rgba(255,0,0,0.1); transition:0.3s; }
.tab.active { background: rgba(255,0,0,0.2); font-weight:600; }

/* Forms */
form { display:none; flex-direction: column; }
form.active { display:flex; }
input { width:100%; padding:12px; margin:6px 0; border-radius:10px; border:none; outline:none; background: rgba(255,255,255,0.05); color:#fff; font-size:14px; }
input::placeholder { color:#bbb; }
button { width:100%; padding:12px; margin-top:10px; border:none; border-radius:12px; background:#ff0000; color:#fff; cursor:pointer; font-weight:600; transition:0.3s; }
button:hover { background:#ff3333; transform:scale(1.03); }
.logout-btn { background:#222; margin-top:10px; }

/* Dashboard / Editor */
.dashboard,
.editor { display: none; }
#links { flex:1; overflow-y:auto; margin-bottom:10px; max-height:250px; }

/* Link cards */
.link-card {
    margin: 10px 0;
    padding: 15px;
    border-radius:15px;
    border:1px solid rgba(255,0,0,0.4);
    background: rgba(255,0,0,0.05);
}
.link-card strong { display:block; }
.link-desc { font-size:14px; color:#ccc; margin:4px 0 8px; word-wrap:break-word; }
.link-btn { display:block; width:100%; margin-top:10px; padding:12px; border-radius:12px; background:#ff0000; color:#fff; text-align:center; text-decoration:none; font-weight:600; transition:0.3s; }
.link-btn:hover { background:#ff3333; transform:scale(1.03); }

/* Footer */
.footer {
    text-align:center;
    padding:15px 10px;
    color:#aaa;
    font-size:14px;
    border-top:1px solid rgba(255,0,0,0.3);
}