/* Alpha Code Mobile App Design System */
:root {
    --app-bg: #000000;
    --app-surface: #111111;
    --app-accent: #FF5722;
    --app-text: #FFFFFF;
    --app-text-dim: rgba(255, 255, 255, 0.6);
    --app-radius: 28px;
    --app-spacing: 1.5rem;
    --app-font: 'Inter', system-ui, sans-serif;
    --app-glass: rgba(255, 255, 255, 0.03);
    --app-glass-border: rgba(255, 255, 255, 0.1);
    --app-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: var(--app-font);
    line-height: 1.4;
    user-select: none;
    overflow: hidden; /* App feel */
    height: 100vh;
    animation: fadeIn 0.6s ease-out;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 450px; /* Force mobile width if viewed directly */
    margin: 0 auto;
    position: relative;
    background: var(--app-bg);
}

/* App Header */
.app-header {
    padding: 2.5rem var(--app-spacing) 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--app-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* App Content */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--app-spacing);
    scrollbar-width: none;
}
.app-content::-webkit-scrollbar { display: none; }

/* Cards & Lists */
.app-card {
    background: var(--app-surface);
    border: 1px solid var(--app-glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s ease-out backwards;
}
.app-card:active { transform: scale(0.96); }

/* Bottom Navigation */
.app-nav {
    height: 85px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--app-glass-border);
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--app-text-dim);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 4px;
}

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

.nav-icon {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}
.nav-item.active .nav-icon { transform: translateY(-2px); }

/* Buttons */
.app-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--app-accent);
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.app-btn:active { transform: scale(0.97); opacity: 0.9; }

/* Premium UI Elements */
.glass-surface {
    background: var(--app-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--app-glass-border);
}

.skeleton {
    background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Status Bar Simulator */
.status-bar {
    height: 28px;
    padding: 0 var(--app-spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--app-text-dim);
}

/* Utils */
.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

