@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --bg-black: #030508;
    --card-glass: rgba(15, 23, 42, 0.75);
    --card-border: rgba(255, 255, 255, 0.12);
    --cyan-glow: #00f2fe;
    --blue-glow: #4facfe;
    --purple-glow: #7000ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    animation: floatingGlow 12s infinite alternate ease-in-out;
}

@keyframes floatingGlow {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.18) translate(30px, -20px); }
    100% { transform: scale(1) translate(-20px, 30px); }
}

.glow-1 { width: 550px; height: 550px; background: rgba(0, 242, 254, 0.18); top: -120px; left: -120px; }
.glow-2 { width: 650px; height: 650px; background: rgba(112, 0, 255, 0.20); bottom: -160px; right: -160px; }

/* GLOBAL RICH BACK BUTTON */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-glow);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(0, 242, 254, 0.2);
    transform: translateX(-4px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.top-bar {
    background: rgba(3, 5, 8, 0.9);
    backdrop-filter: blur(25px);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.left-nav { display: flex; align-items: center; gap: 15px; }
.sidebar-toggle-btn { background: transparent; border: none; color: var(--text-main); font-size: 1.3rem; cursor: pointer; }

.top-bar .logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan-glow), var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-layout { display: flex; min-height: calc(100vh - 70px); position: relative; }

.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--card-border);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed { width: 0px; padding: 25px 0px; border-right: none; }
.sidebar-nav { display: flex; flex-direction: column; gap: 10px; }
.sidebar-nav a { color: var(--text-muted); text-decoration: none; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; transition: 0.3s; display: flex; align-items: center; gap: 12px; }
.sidebar-nav a.active, .sidebar-nav a:hover { background: rgba(0, 242, 254, 0.12); color: var(--cyan-glow); border: 1px solid var(--card-border); }

.usage-meter { margin-top: auto; background: var(--card-glass); border: 1px solid var(--card-border); padding: 18px; border-radius: 16px; font-size: 0.85rem; }
.progress-bar { width: 100%; height: 7px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; margin-top: 10px; overflow: hidden; }
#progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan-glow), var(--blue-glow)); transition: width 0.4s; }

.container { max-width: 1250px; margin: 0 auto; padding: 35px; flex: 1; }

.btn { padding: 12px 26px; border-radius: 35px; font-weight: 800; font-size: 0.9rem; cursor: pointer; border: none; transition: all 0.3s ease; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--cyan-glow), var(--blue-glow)); color: #000; box-shadow: 0 4px 25px rgba(0, 242, 254, 0.4); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(0, 242, 254, 0.6); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-main); border: 1px solid var(--card-border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.full-width { width: 100%; text-align: center; }

/* 3D RICH BUBBLE / HOVER CARDS FOR DASHBOARD */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.app-card {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid #64748b;
    position: relative;
    cursor: pointer;
}

.app-card:hover {
    border-color: var(--cyan-glow);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.25);
}

.app-card.active { border-left-color: #22c55e; }
.app-card.sleeping { border-left-color: #f59e0b; }
.app-card.error { border-left-color: #ef4444; }

/* APP CARD ACTION MENU DROPDOWN */
.app-action-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--cyan-glow);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: menuPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes menuPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.app-action-menu button {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 8px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.app-action-menu button:hover {
    background: rgba(0, 242, 254, 0.2);
    color: var(--cyan-glow);
}

/* ULTRA RICH SIDE-BY-SIDE BUBBLE PRICING CARDS */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
}

.price-card {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 35px 25px;
    position: relative;
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.price-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--cyan-glow);
    box-shadow: 0 25px 60px rgba(0, 242, 254, 0.25);
}

.price-card.pro {
    border-color: var(--cyan-glow);
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.12) 0%, var(--card-glass) 100%);
}

.badge-pro {
    position: absolute;
    top: -14px;
    right: 25px;
    background: linear-gradient(135deg, var(--cyan-glow), var(--blue-glow));
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 20px;
}

.price-card h3 { font-size: 1.5rem; font-weight: 900; color: var(--text-main); }
.price-num { font-size: 2.5rem; font-weight: 900; margin: 15px 0; color: var(--text-main); }
.price-num span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }

.price-list { list-style: none; margin: 20px 0; padding: 0; }
.price-list li { margin-bottom: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.price-list li i { color: var(--cyan-glow); }

/* AVATAR SELECTOR & PROFILE SETTINGS */
.avatar-picker {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.avatar-opt {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.avatar-opt:hover, .avatar-opt.active {
    border-color: var(--cyan-glow);
    color: var(--cyan-glow);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* FIXED CLEAN FOOTER (NO OVERLAP) */
.site-footer {
    background: rgba(3, 5, 8, 0.98);
    border-top: 1px solid var(--card-border);
    padding: 50px 8% 30px;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 30px;
}

.footer-col h4 { color: var(--text-main); font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--cyan-glow); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 0.8rem;
}

.hidden { display: none !important; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(15px); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: #0b1120; border: 1px solid var(--card-border); border-radius: 28px; width: 92%; max-width: 520px; padding: 35px; box-shadow: 0 30px 60px rgba(0,0,0,0.9); max-height: 90vh; overflow-y: auto; }
.pricing-modal { max-width: 1100px !important; }

input, select { 
    width: 100%; 
    background: #0f172a !important; 
    border: 1px solid var(--card-border); 
    border-radius: 12px; 
    padding: 14px; 
    color: #ffffff !important; 
    outline: none; 
    font-weight: 600;
}
