* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: white;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    overflow: hidden;
    position: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-y;
    overscroll-behavior: none;
}

.app-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: white;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.content {
    width: 100%;
    min-height: 100%;
    padding: max(60px, env(safe-area-inset-top) + 30px) 30px max(40px, env(safe-area-inset-bottom) + 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* Header Section */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.logo-text {
    font-size: 32px;
    font-weight: 400;
    color: #000;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
    max-width: 320px;
    margin: 0 auto;
}

/* Bare for allow.html  */
.main-text {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    max-width: 320px;
}

.main-text > p {
    margin-bottom: 30px;
}

/* Profile Network */
.profile-network {
    position: relative;
    width: 100%;
    height: 480px;
    margin-bottom: auto;
}

.profile {
    position: absolute;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Profile sizes */
.profile[data-size="small"] {
    width: 60px;
    height: 60px;
}

.profile[data-size="medium"] {
    width: 80px;
    height: 80px;
}

.profile[data-size="large"] {
    width: 140px;
    height: 140px;
}

/* Profile positioning - matching the design */
.profile-1 {
    left: 15px;
    top: 50px;
}

.profile-2 {
    left: 110px;
    top: 10px;
}

.profile-3 {
    left: 220px;
    top: 60px;
}

.profile-4 {
    right: 15px;
    top: 130px;
}

.profile-5 {
    left: 60px;
    top: 170px;
}

.profile-6 {
    left: 5px;
    top: 280px;
}

/* Center large profile */
.profile-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.profile-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.profile-7 {
    right: 20px;
    top: 260px;
}

.profile-8 {
    left: 50px;
    bottom: 160px;
}

.profile-9 {
    left: 140px;
    bottom: 80px;
}

.profile-10 {
    right: 50px;
    bottom: 120px;
}

.profile-11 {
    left: 20px;
    bottom: 50px;
}

.profile-12 {
    left: 160px;
    bottom: 10px;
}

/* CTA Button */
.cta-button {
    width: calc(100% - 20px);
    max-width: 340px;
    height: 56px;
    background: #0C7C59;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 124, 89, 0.3);
    margin-top: auto;
}

.cta-button:hover {
    background: #0a6b4d;
    box-shadow: 0 6px 20px rgba(12, 124, 89, 0.4);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(12, 124, 89, 0.3);
}

/* Prevent pull-to-refresh and other mobile browser behaviors */
html {
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .profile-network {
        height: 50vh;
    }

    .subtitle {
        font-size: 18px;
    }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .content {
        padding: 20px 30px;
    }

    .header {
        margin-bottom: 30px;
    }

    .profile-network {
        height: 40vh;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.header {
    animation: fadeInUp 0.6s ease-out;
}

.profile {
    animation: fadeIn 0.6s ease-out backwards;
}

.profile-1 { animation-delay: 0.1s; }
.profile-2 { animation-delay: 0.15s; }
.profile-3 { animation-delay: 0.2s; }
.profile-4 { animation-delay: 0.25s; }
.profile-5 { animation-delay: 0.3s; }
.profile-6 { animation-delay: 0.35s; }
.profile-center { animation-delay: 0.4s; }
.profile-7 { animation-delay: 0.45s; }
.profile-8 { animation-delay: 0.5s; }
.profile-9 { animation-delay: 0.55s; }
.profile-10 { animation-delay: 0.6s; }
.profile-11 { animation-delay: 0.65s; }
.profile-12 { animation-delay: 0.7s; }

.cta-button {
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
}
