:root {
    --top-gradient: linear-gradient(135deg, #1e88e5, #26c6da);
    --bottom-bg: #1f2933;
    --bg-app: #f2f4f8;
    --card-radius: 18px;
    --text-dark: #263238;
}

/* Base */
body {
    background: var(--bg-app);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto;
    color: var(--text-dark);
}

/* =========================
   Top Bar
========================= */
.app-top-bar {
    height: 56px;
    background: var(--top-gradient);
    display: flex;
    align-items: center;
    z-index: 1030;
    position: fixed;
    top: 0;
    width: 100%;
}

.app-title {
    color: #fff;
    font-weight: 600;
    font-size: 17px;
}

/* Logo (Left) */
.app-logo-left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.app-logo {
    height: 34px;
}

/* User Info (Right) */
.user-info-top {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

/* =========================
   Content
========================= */
.app-content {
    padding-top: 80px; /* top bar space */
    padding-bottom: 90px; /* bottom nav space */
}

/* =========================
   Bottom Bar
========================= */
.app-bottom-bar {
    background: var(--bottom-bg);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

    .app-bottom-bar a {
        color: #9ca3af;
        text-decoration: none;
        text-align: center;
        font-size: 12px;
    }

        .app-bottom-bar a i {
            display: block;
            font-size: 18px;
        }

        .app-bottom-bar a.active,
        .app-bottom-bar a:hover {
            color: #38bdf8;
        }

/* =========================
   Cards & Buttons
========================= */
.subscription-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

    .subscription-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
    }

.card-header {
    border-radius: 1rem 1rem 0 0;
}

.btn {
    font-weight: 500;
}

/* =========================
   Desktop Menu
========================= */
.desktop-menu a {
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    padding: 6px 12px;
}

    .desktop-menu a:hover {
        color: #4f46e5;
    }
