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

body {
    /* Soft warm elegant gradient */
    background: linear-gradient(135deg, #FFFaf0 0%, #FFe8b3 100%);
    background-attachment: fixed;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card {
    background-color: #ffffff;
    width: 100%;
    max-width: 440px;
    height: 90vh;
    min-height: 600px;
    max-height: 850px;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.top-icons {
    display: flex;
    justify-content: space-between;
    padding: 24px 28px;
    color: #000;
}

.icon-asterisk,
.icon-share {
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-asterisk:hover,
.icon-share:hover {
    transform: scale(1.1);
}

.profile-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.logo img,
.logo svg {
    margin-bottom: 8px;
}

.logo-text {
    font-family: "Georgia", serif;
    letter-spacing: 3px;
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    text-transform: uppercase;
}

.logo-text span {
    font-size: 9px;
    letter-spacing: 4px;
    font-weight: normal;
    color: #444;
}

.username {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.scroll-wrapper {
    flex-grow: 1;
    z-index: 10;
    overflow-y: auto;
    /* Hide scrollbar for neatness */
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 160px;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.links-container {
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px 0 10px;
}

.social-icon {
    color: #444;
    transition: transform 0.2s, color 0.2s, filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.15);
}

.tiktok-icon:hover {
    color: #000;
    filter: drop-shadow(2px 2px 0px #fe2c55) drop-shadow(-2px -2px 0px #25f4ee);
}

.insta-icon {
    transition: transform 0.2s;
}

.insta-icon:hover {
    transform: scale(1.15);
}

.insta-icon:hover svg {
    stroke: url(#instaGrad);
}

.link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    padding: 18px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reseller-badge {
    background: #ffeb3b;
    color: #d32f2f;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    letter-spacing: 0.5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.link-btn:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

.link-btn::after {
    content: "⋮";
    position: absolute;
    right: 20px;
    font-weight: bold;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.4);
}

.footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(30, 30, 30, 0.85) 75%, rgba(0, 0, 0, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
    z-index: 20;
    pointer-events: none;
    /* Let clicks pass through except on inner buttons */
}

.linktree-btn {
    background: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.close-icon {
    font-size: 16px;
    line-height: 1;
    color: #666;
    margin-left: 4px;
}

.footer-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    pointer-events: auto;
}

/* Share Modal Styles */
.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    /* Slide up from bottom */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background-color: #fff;
    width: 100%;
    max-height: 90%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.share-modal-overlay.active .share-modal-content {
    transform: translateY(0);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 16px;
    position: relative;
}

.share-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    width: 100%;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 24px;
    top: -2px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.share-profile-card {
    background-color: #333;
    /* Dark card */
    margin: 8px 24px 24px;
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: contain;
    background: #fff;
}

.share-profile-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.share-profile-card p {
    font-size: 15px;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 4px;
}

.share-options-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 24px 28px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.share-options-container::-webkit-scrollbar {
    display: none;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 68px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-option:hover {
    opacity: 0.8;
}

.share-icon-circle {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex-shrink: 0;
    background-color: #f2f2f2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
}

.share-option span {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.share-divider {
    height: 1px;
    background-color: #eee;
    margin: 0;
}

.share-footer {
    padding: 24px;
    text-align: left;
}

.share-footer h4 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.share-footer p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-black {
    width: 100%;
    padding: 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: transform 0.1s;
}

.btn-black:active {
    transform: scale(0.98);
}

.btn-outline {
    width: 100%;
    padding: 16px;
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-outline:active {
    transform: scale(0.98);
}

.btn-outline:hover {
    background-color: #f9f9f9;
}