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

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

body {
    overscroll-behavior: none;
}

/* APP SHELL */

.app-shell {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 36%);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

.app-content {
    min-height: 100vh;
    padding: 24px 18px 96px;
}

/* TYPOGRAPHY */

.page-header {
    margin-bottom: 22px;
}

.page-title {
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.4px;
    margin: 0 0 8px;
    color: #111827;
}

.page-subtitle {
    font-size: 16px;
    line-height: 1.4;
    color: #64748b;
    margin: 0;
}

.section-label,
.apps-section-title {
    font-size: 12px;
    font-weight: 900;
    color: #92400e;
    margin: 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* GENERAL CARD */

.card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

/* APPS */

.apps-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.native-app-card,
.app-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 14px;
    text-decoration: none !important;
    color: #1f2937 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform .12s ease, box-shadow .12s ease;
}

.native-app-card:active,
.app-card:active {
    transform: scale(.98);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.native-app-icon,
.app-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 17px;
    margin: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 -8px 14px rgba(0,0,0,0.12);
}

.native-app-icon img,
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.native-app-info {
    flex: 1;
    min-width: 0;
}

.native-app-name,
.app-name {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 850;
    color: #111827;
    min-height: unset;
    display: block;
    text-align: left;
}

.native-app-code,
.app-role {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    color: #92400e;
    background: #ffedd5;
    border-radius: 999px;
    padding: 5px 9px;
    display: inline-block;
    text-transform: uppercase;
}

.native-app-arrow {
    font-size: 30px;
    line-height: 1;
    color: #cbd5e1;
    margin-left: auto;
}

.loading-card,
.empty-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    padding: 18px;
    color: #92400e;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.10);
}

/* BOTTOM NAV */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    height: 78px;
    padding: 6px 8px 10px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    z-index: 50;
}

.bottom-nav a {
    text-decoration: none;
    color: #64748b;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 18px;
}

.bottom-nav a span {
    font-size: 11px;
    font-weight: 700;
}

.bottom-nav a.active {
    color: #f59e0b;
    font-weight: 800;
    background: #fff7ed;
}

/* SMALL MOBILE */

@media (max-width: 360px) {
    .page-title {
        font-size: 30px;
    }

    .app-content {
        padding-left: 14px;
        padding-right: 14px;
    }
}
.welcome-screen {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
}

.welcome-logo {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    color: white;
    font-size: 34px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 18px 36px rgba(146, 64, 14, 0.28);
}

.welcome-screen h1 {
    font-size: 34px;
    margin: 0 0 10px;
    color: #111827;
}

.welcome-screen p {
    max-width: 300px;
    margin: 0 0 28px;
    color: #64748b;
    line-height: 1.5;
}

.btn-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.btn-signin:active {
    transform: scale(.97);
}