:root {
    --primary: #00d1b2;
    --primary-dark: #009f8c;
    --background: #f5f7fa;
    --card-radius: 14px;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

html {
    background: var(--background);
}

body {
    min-height: 100vh;
    background: var(--background);
    color: #363636;
    padding-bottom: 80px;
}

/* Main application container */

.app-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* Header */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: white;
    box-shadow: var(--shadow);
}

.app-header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px 16px;
}

/* Logo */

.app-logo {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-dark);
}

.app-subtitle {
    font-size: 0.8rem;
    color: #777;
}

/* User information */

.user-name {
    font-weight: 600;
    font-size: 1rem;
}

.balance {
    font-size: 0.85rem;
    color: #666;
}

.balance strong {
    color: #363636;
}

/* Cards */

.app-card {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    border: none;
}

.service-card {
    height: 100%;
    transition: transform 0.15s ease,
        box-shadow 0.15s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9faf7;
    color: var(--primary-dark);
}

/* Buttons */

.app-button {
    min-height: 44px;
    border-radius: 9px;
    font-weight: 600;
}

.pay-button {
    min-height: 40px;
    border-radius: 8px;
}

/* Navigation */

.desktop-navigation {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
}

.desktop-navigation .button {
    white-space: nowrap;
}

/* Mobile bottom navigation */

.mobile-navigation {
    display: none;
}

/* Connection indicator */

.connection-indicator {
    font-size: 0.72rem;
}

/* Login */

.login-container {
    width: 100%;
    max-width: 480px;
    margin: 40px auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-card {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

/* Desktop */

@media (min-width: 769px) {

    .app-container {
        padding: 0 24px;
    }

    .dashboard-grid {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

}

/* Large desktop */

@media (min-width: 1200px) {

    .dashboard-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

/* Tablet */

@media (max-width: 768px) {

    .app-container {
        padding: 0 12px;
    }

    .desktop-navigation {
        display: flex;
    }

}

/* Mobile */

@media (max-width: 600px) {

    body {
        padding-bottom: 76px;
    }

    .app-header-inner {
        padding: 12px;
    }

    .app-logo {
        font-size: 1.15rem;
    }

    .desktop-navigation {
        display: none;
    }

    .dashboard-grid {
        display: block;
    }

    .service-card {
        margin-bottom: 12px;
    }

    .mobile-navigation {
        position: fixed;
        display: flex;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        z-index: 200;
        background: white;
        border-top: 1px solid #eee;
        box-shadow:
            0 -4px 15px rgba(0, 0, 0, 0.08);
    }

    .mobile-navigation a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.68rem;
        color: #777;
        text-decoration: none;
    }

    .mobile-navigation a i {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .mobile-navigation a.active {
        color: var(--primary-dark);
        font-weight: 600;
    }

    .mobile-navigation a.logout {
        color: #f14668;
    }

    .login-container {
        margin: 20px auto;
    }

    .button {
        min-height: 44px;
    }

}