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

html, body {
    background-color: #ffffff; 
}

body {
    font-family: "Avenir Next", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh; 
}

.app-container {
    width: 100%;
    max-width: 500px;
    height: 100dvh; 
    background-color: #f7f7f8;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.top-profile-bg {
    background-image: url('pfp.jpg');
    background-size: cover;
    background-position: center 20%; 
    background-color: #ff71f9; 
    height: 45vh;
    width: 100%;
    position: relative;
}

.open-snap-btn {
    position: absolute;
    top: max(20px, env(safe-area-inset-top)); 
    left: 50%;
    transform: translateX(-50%); 
    background-color: #FFFC00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600; 
    font-size: 15px;
    cursor: pointer;
    z-index: 999; /* Zvýšené na maximum, aby tlačidlo nič neprekrývalo */
    white-space: nowrap;
}

.bottom-card {
    background-color: #f7f7f8; 
    flex-grow: 1;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    margin-top: -20px; 
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.snapcode-img {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #FFFC00; 
    margin-right: 16px;
    background-color: #FFFC00;
}

.name-container h1 {
    font-size: 22px;
    font-weight: 700; 
    color: #000;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.list-btn {
    background-color: #ffffff;
    color: #000;
    border: none;
    padding: 16px 20px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500; 
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.list-btn svg {
    color: #333;
}

.add-friend-btn {
    background-color: #0099ff;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: auto; 
}

.snap-action-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}