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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #090a0f; /* Deep dark background */
    color: #e2e8f0;
    overflow: hidden;
}

/* --- Premium Ambient Background --- */
.bg-animation {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6; /* Blue */
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6; /* Purple */
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #0ea5e9; /* Light Blue */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* --- Dashboard Layout --- */
.dashboard-container {
    width: 95%;
    max-width: 1200px;
    z-index: 1;
}

/* --- Glassmorphism Elements --- */
.glass-header, .glass-card {
    background: rgba(17, 25, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    margin-bottom: 40px;
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Profile Display --- */
.profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-badge img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.profile-badge span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- Feature Grid --- */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.glass-card {
    padding: 35px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: rgba(17, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-card h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #f8fafc;
}

.glass-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* --- Buttons --- */
button, .btn-discord {
    border: none;
    outline: none;
}

.btn-discord {
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    display: inline-block;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.btn-primary {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.1);
    color: #64748b;
    background: transparent;
}

/* --- New View Styles --- */
.full-width {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.info-item strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 5px;
}

/* --- Forms --- */
.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.settings-form input[type="text"],
.settings-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.settings-form input:focus {
    border-color: #3b82f6;
}

/* --- Logout Button --- */
.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.4);
    color: white;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
    color: #64748b;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.site-footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

/* --- New Infinite Moving Background --- */
.moving-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background: linear-gradient(135deg, #090a0f 0%, #111827 25%, #0f172a 50%, #030712 100%);
    background-size: 400% 400%;
    animation: panBackground 25s ease infinite alternate;
    z-index: -2;
}

@keyframes panBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, -10%); }
}

/* --- Floating Geometric Shapes --- */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    animation: drift 20s infinite linear;
}

.shape-1 { width: 300px; height: 300px; border-radius: 50%; top: -10%; left: 10%; animation-duration: 35s; }
.shape-2 { width: 400px; height: 400px; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; bottom: -15%; right: 5%; animation-duration: 25s; animation-direction: reverse; }
.shape-3 { width: 150px; height: 150px; border-radius: 10px; top: 40%; left: 70%; transform: rotate(45deg); animation-duration: 40s; }
.shape-4 { width: 250px; height: 250px; border-radius: 50%; bottom: 20%; left: -5%; animation-duration: 30s; }

@keyframes drift {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* --- New Back Button & Planner List Styles --- */
.btn-back {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #fff;
    text-decoration: underline;
}

.planner-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.planner-item {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.planner-item:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateX(5px);
}

/* --- UNIVERSAL MOBILE RESPONSIVENESS PATCH --- */
@media (max-width: 850px) {
    .glass-header { 
        flex-direction: column !important; 
        gap: 20px !important; 
        align-items: stretch !important; 
        text-align: center; 
        padding: 20px !important;
    }
    .brand { justify-content: center !important; }
    .glass-header > div:nth-child(2) { 
        flex-direction: column !important; 
        width: 100%; 
        gap: 15px !important; 
    }
    #profile-display { 
        margin-left: 0 !important; 
        width: 100% !important; 
        flex-direction: column !important; 
        text-align: center; 
        padding: 15px !important; 
        box-sizing: border-box; 
    }
    #profile-display img { margin: 0 auto; width: 60px !important; height: 60px !important; }
    #profile-display > div:nth-child(2) { align-items: center; margin-bottom: 10px; }
    #profile-display > div:nth-child(3) { 
        border-left: none !important; 
        padding-left: 0 !important; 
        margin-left: 0 !important; 
        flex-direction: row !important; 
        justify-content: center; 
        border-top: 1px solid rgba(255,255,255,0.1); 
        padding-top: 15px !important; 
        width: 100%; 
        flex-wrap: wrap;
    }
    .theme-toggle { width: 100%; justify-content: center; }
}