/* App shell */
.app {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 80px);
}

/* Header - hidden by default, shown by JS after auth check */
header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--accent);
}

/* Page container */
#app {
    min-height: 50vh;
}

.page {
    padding-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    z-index: 100;
}

.nav-inner {
    display: flex;
    max-width: 480px;
    width: 100%;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
    color: var(--accent);
}

.nav-icon {
    font-size: 22px;
    line-height: 1;
}

/* User header bar */
.user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user-greeting {
    font-size: 14px;
    color: var(--text-secondary);
}

.user-greeting strong {
    color: var(--text);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 15px;
    line-height: 1.5;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 16px 0 calc(env(safe-area-inset-bottom, 8px) + 80px);
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.5;
}
