
:root { --dourado-principal: #FFC700; }
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 24px;
    margin: 0;
    box-sizing: border-box;
}

.profile-page-wrapper {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    width: 100%;
    background-color: #141417;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 40px 24px 24px 24px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.share-button-corner {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, filter 0.2s ease;
    font-size: 1.1rem;
}

.share-button-corner:hover {
    transform: scale(1.1);
    filter: brightness(1.15);
}

.profile-header {
    margin-top: 0px;
    margin-bottom: 30px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border-width: 4px;
    border-style: solid;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.profile-name { font-size: 2rem; font-weight: 800; margin: 0 0 8px 0; }
.profile-bio { font-size: 1.1rem; line-height: 1.6; margin: 0; padding: 0 16px; }

.profile-items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.no-links { color: #A1A1A1; font-style: italic; }

.profile-link, .profile-button-pix {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;

    border: 2px solid rgba(255, 255, 255, 0.1); 
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; 
}
.profile-link:hover, .profile-button-pix:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    
    border-color: rgba(255, 255, 255, 0.3); 
}
.profile-link i { margin-right: 12px; font-size: 1.2rem; width: 24px; text-align: center; }

.profile-banner-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-banner-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); }
.profile-banner-item img { width: 100%; height: auto; display: block; }


@media (max-width: 480px) {
    body { padding: 16px; }
    .profile-card { padding: 40px 16px 16px 16px; }
    .profile-name { font-size: 1.5rem; }
    .profile-bio { font-size: 1rem; }
}

.profile-button-pix {
    cursor: pointer;
}


.profile-link i { 
    color: <%= details.button_text_color || '#FFFFFF' %> !important; 
    opacity: 1 !important;
}

.branding-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.branding-logo:hover {
    opacity: 1; 
}

.branding-logo img {
    height: 100px; 
    width: auto;  
}

body.light-theme .branding-logo span {
    color: var(--cinza-texto);
}

.profile-embed-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16 / 9; 
}
.profile-embed-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.embed-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #1f1f23;
    color: #f5f5f5;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.profile-embed-item.pdf-embed {
    width: 100%;
    height: 600px; 
    overflow: hidden; 
}

.embedded-pdf {
    display: block; 
    width: 100%;
    height: 100%;
}


.pix-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.pix-modal-overlay.active {
    display: flex;
}
.pix-modal-content {
    background: #1f1f23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    position: relative;
    color: #ECECEC;
}
.pix-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #A1A1A1;
    cursor: pointer;
}
.pix-modal-content h4 {
    margin-top: 0;
    margin-bottom: 16px;
}
#pix-qrcode-container {
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    margin: 0 auto 16px;
    display: inline-block;
    position: relative;
    min-height: 200px;
    min-width: 200px;
}
#pix-qrcode-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
#pix-qrcode-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.pix-brcode-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#pix-brcode-text {
    width: 100%;
    min-height: 80px;
    background-color: #141417;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #A1A1A1;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.8rem;
    resize: none;
}
#pix-copy-brcode-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: var(--dourado-principal);
    color: #141417;
    font-weight: 600;
    cursor: pointer;
}

.profile-banner-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-banner-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.profile-banner-container a {
    display: block;
    width: 100%;
    height: 100%;
}
.profile-banner-container img {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover;
}

.background-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.profile-embed-item.instagram-embed-container {
    aspect-ratio: auto; 
    height: 395px;      
}

.profile-embed-item.instagram-embed-container iframe {
    width: 100%;
    height: 100%;
    min-width: 326px; 
}

.profile-actions {
    margin-bottom: 16px;
}

.branding-logo-custom {
    display: block;                  
    margin: 0 auto;                 
    width: auto;                    
    max-width: 100%;                 
    object-fit: contain;             
    opacity: 0.9;
}

.branding-logo { 
    display: block;
    text-align: center; 
    margin-top: 20px; 
}