/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0; /* Màu nền ngoài desktop */
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Container giả lập Mobile trên Desktop */
.mobile-wrapper {
    width: 100%;
    max-width: 430px; /* Chiều rộng chuẩn của iPhone Pro Max */
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow-y: auto;
}

/* Header */
.app-header {
    background-color: #703b93; /* Màu tím Pi */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pi-logo-small {
    background: orange;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Banner */
.welcome-banner {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    gap: 15px;
}

.pi-logo-large {
    border: 2px solid #ffa500;
    color: #ffa500;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: bold;
}

.welcome-banner h1 {
    font-size: 20px;
    color: #f5a623;
    font-weight: 500;
}

/* Section Header */
.app-section {
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
}

.toggle-arrow {
    color: #703b93;
    font-weight: bold;
}

/* Grid Apps */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-box {
    width: 75px;
    height: 75px;
    border: 1.5px solid #8b5cf6;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #703b93;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-box:active {
    background-color: #f3e8ff;
}

.app-item p {
    font-size: 14px;
    color: #666;
}

/* Section Third Party */
.third-party-section {
    text-align: center;
    padding: 20px;
    border-top: 8px solid #f8f8f8;
}

.third-party-section h2 {
    font-size: 20px;
    color: #333;
}

/* Responsive ẩn thanh cuộn */
.mobile-wrapper::-webkit-scrollbar {
    width: 0px;
}