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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #D4C4B0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.card {
    background-color: #F5E6D3;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Language Section */
.language-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #D4C4B0;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #2C2C2C;
}

.language-btn:hover {
    background-color: rgba(212, 196, 176, 0.2);
    border-color: #B8A896;
}

.flag-icon {
    font-size: 18px;
    line-height: 1;
}

.language-code {
    font-weight: 500;
    font-size: 13px;
}

.language-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.language-dropdown.active {
    display: flex;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #2C2C2C;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.language-option:hover {
    background-color: #F5F5F5;
}

.language-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.language-option:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Lilly Introduction Section */
.lilly-intro-section {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.lilly-image-circle {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.lilly-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lilly-greeting {
    font-size: 24px;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 16px 0;
}

.lilly-handle-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 50px;
    border-radius: 25px;
    background: linear-gradient(135deg, #E8A87C 0%, #D4A574 100%);
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lilly-handle {
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 24px;
}

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

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-img-clickable:hover {
    transform: scale(1.05);
}

.username {
    font-size: 22px;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0;
}

/* CTA Section */
.cta-section {
    margin-bottom: 24px;
}

.cta-button {
    display: block;
    background: linear-gradient(135deg, #E8A87C 0%, #D4A574 100%);
    color: #2C2C2C;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-text {
    display: block;
    line-height: 1.4;
}

/* Social Section */
.social-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.social-icon {
    color: #2C2C2C;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #2C2C2C;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #2C2C2C;
    color: #F5E6D3;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.link-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #D4C4B0;
}

.link-logo {
    flex-shrink: 0;
}

.logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text {
    min-width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
}

.icon-container {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-container svg {
    width: 24px;
    height: 24px;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-weight: 600;
    font-size: 15px;
    color: #2C2C2C;
}

.link-description {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

.link-menu {
    color: #999999;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.link-menu:hover {
    color: #2C2C2C;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
    font-size: 12px;
}

.footer-link {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2C2C2C;
}

.footer-separator {
    color: #999999;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .username {
        font-size: 20px;
    }

    .cta-button {
        font-size: 14px;
        padding: 14px 18px;
    }

    .link-card {
        padding: 14px;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .logo-text {
        min-width: 50px;
        height: 50px;
        font-size: 11px;
        padding: 6px 10px;
    }

    .icon-container {
        width: 50px;
        height: 50px;
    }

    .icon-container svg {
        width: 20px;
        height: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    animation: fadeIn 0.5s ease forwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.image-modal-content {
    position: relative;
    z-index: 1001;
    width: 50vw;
    height: 50vh;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease;
}

.expanded-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: #2C2C2C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
    line-height: 1;
    padding: 0;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

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

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .image-modal-content {
        width: 90vw;
        height: 50vh;
    }
    
    .image-modal-close {
        top: -50px;
        right: 10px;
    }
}

