* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a1a0f;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    color: #ffffff;
    padding: 16px;
}

.wallpaper-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/wallpaper/wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0px);
    opacity: 0.3;
    z-index: 0;
    animation: bgPulse 18s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    33% {
        transform: scale(1.04) rotate(0.5deg);
    }
    66% {
        transform: scale(1.02) rotate(-0.3deg);
    }
}

.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg,
        rgba(10, 26, 15, 0.88) 0%,
        rgba(26, 61, 31, 0.78) 30%,
        rgba(15, 42, 21, 0.85) 60%,
        rgba(10, 26, 15, 0.9) 100%);
    z-index: 1;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle-dot {
    position: absolute;
    bottom: -20px;
    background: #8bc34a;
    border-radius: 50%;
    animation: floatUp linear infinite;
    box-shadow: 0 0 6px #a5d66e, 0 0 12px #8bc34a, 0 0 18px #6baf5a;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-120vh) scale(1);
        opacity: 0;
    }
}

.fog-effect {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to top, 
        rgba(139, 195, 74, 0.08) 0%,
        rgba(74, 140, 63, 0.04) 30%,
        transparent 100%);
    animation: fogPulse 8s ease-in-out infinite;
}

@keyframes fogPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.7;
        transform: scaleY(1.05);
    }
}

.page-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 0.7s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.linktree-card {
    background: rgba(13, 34, 18, 0.85);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 50px rgba(45, 90, 39, 0.15);
    overflow: hidden;
}

.card-content {
    padding: 22px 20px 18px;
}

.header {
    text-align: center;
    margin-bottom: 16px;
}

.avatar-frame {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
}

.avatar-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #8bc34a, #4a8c3f, #2d5a27, #4a8c3f, #8bc34a);
    animation: rotateGlow 5s linear infinite;
    opacity: 0.8;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #0f2a15;
    z-index: 1;
    display: block;
}

.title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.4;
    max-width: 320px;
    margin: 0 auto;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.placeholder-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.placeholder-item {
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 140, 63, 0.18);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: linkSlideIn 0.4s ease-out both;
}

@keyframes linkSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 195, 74, 0.06), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-1px);
    border-color: rgba(107, 175, 90, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(139, 195, 74, 0.1);
}

.link-item:active {
    transform: translateY(0);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.link-item:hover .icon-box {
    transform: scale(1.06);
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-box.website {
    background: transparent;
}

.icon-box.twitter {
    background: #000000;
}

.icon-box.threads {
    background: #000000;
}

.icon-box.tiktok {
    background: #000000;
}

.icon-box.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366);
}

.icon-box.facebook {
    background: #0866ff;
}

.icon-box.discord {
    background: #5865F2;
}

.link-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.link-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45);
}

.link-user {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.link-followers {
    font-size: 0.65rem;
    font-weight: 500;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.link-followers i {
    font-size: 0.55rem;
}

.link-arrow {
    color: #4caf50;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.share-section {
    margin-top: 16px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(139, 195, 74, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(107, 175, 90, 0.12);
}

.share-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.share-section-title i {
    font-size: 0.65rem;
    color: #4caf50;
}

.share-buttons-horizontal {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-action-btn-horizontal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 50px;
    padding: 6px 14px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.share-action-btn-horizontal:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    transform: translateY(-1px);
}

.share-action-btn-horizontal i {
    font-size: 0.75rem;
}

.footer-text {
    text-align: center;
}

.copyright {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 2px;
}

.nonprofit {
    font-size: 0.65rem;
    color: #4caf50;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.language-selector-bottom {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 30;
}

.language-menu-btn {
    background: rgba(13, 34, 18, 0.85);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
}

.language-menu-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    transform: translateY(-2px);
}

.language-menu-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.language-dropdown {
    position: absolute;
    bottom: 52px;
    left: 0;
    z-index: 29;
    background: rgba(13, 34, 18, 0.95);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 16px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
}

.language-dropdown.show {
    display: flex;
}

.lang-option {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.lang-option:hover {
    background: rgba(76, 175, 80, 0.2);
}

.music-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 30;
    background: rgba(13, 34, 18, 0.95);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 18px;
    padding: 12px;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.music-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(74, 140, 63, 0.3);
    padding-bottom: 6px;
}

.music-panel-header i {
    font-size: 0.7rem;
    color: #4caf50;
}

.music-toggle-btn {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 50px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(107, 175, 90, 0.6);
}

.toggle-track {
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.music-toggle-btn.on .toggle-track {
    background: #4caf50;
}

.music-toggle-btn.on .toggle-thumb {
    transform: translateX(20px);
}

.music-toggle-btn.off .toggle-track {
    background: rgba(255, 255, 255, 0.2);
}

.music-toggle-btn.off .toggle-thumb {
    transform: translateX(0);
}

.toggle-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-icon {
    font-size: 0.8rem;
    color: #ffffff;
}

.toggle-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 50px;
    padding: 5px 10px;
}

.volume-control i {
    font-size: 0.75rem;
    color: #4caf50;
}

.volume-control input {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.volume-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
}

.playlist-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.playlist-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 140, 63, 0.3);
    border-radius: 50px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.now-playing {
    font-size: 0.65rem;
    color: #4caf50;
    font-weight: 500;
    background: rgba(76, 175, 80, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
}

.qr-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background: rgba(13, 34, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #4caf50;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    position: relative;
    max-width: 280px;
    width: 90%;
}

.qr-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.3s ease;
}

.qr-close:hover {
    color: #4caf50;
}

#qrCodeContainer {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

#qrCodeContainer img,
#qrCodeContainer canvas {
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    width: 160px;
    height: 160px;
}

.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(76, 175, 80, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 100px;
    }
    
    .page-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .linktree-card {
        margin-bottom: 20px;
    }
    
    .card-content {
        padding: 20px 18px 16px;
    }
    
    .avatar-frame {
        width: 65px;
        height: 65px;
        margin: 0 auto 10px;
    }
    
    .title {
        font-size: 1.35rem;
    }
    
    .subtitle {
        font-size: 0.73rem;
        line-height: 1.4;
    }
    
    .link-item {
        padding: 9px 14px;
    }
    
    .icon-box {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .link-user {
        font-size: 0.78rem;
    }
    
    .link-followers {
        font-size: 0.63rem;
    }
    
    .share-action-btn-horizontal {
        padding: 5px 12px;
        font-size: 0.68rem;
    }
    
    .music-panel {
        width: 250px;
        padding: 11px;
        gap: 8px;
    }
    
    .language-menu-btn {
        padding: 7px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
        padding-bottom: 90px;
    }
    
    .card-content {
        padding: 18px 16px 14px;
    }
    
    .avatar-frame {
        width: 60px;
        height: 60px;
        margin: 0 auto 8px;
    }
    
    .title {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    
    .links-list {
        gap: 7px;
        margin-bottom: 14px;
    }
    
    .link-item {
        padding: 8px 12px;
    }
    
    .link-left {
        gap: 10px;
    }
    
    .icon-box {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    
    .link-label {
        font-size: 0.55rem;
    }
    
    .link-user {
        font-size: 0.75rem;
    }
    
    .link-followers {
        font-size: 0.6rem;
        gap: 3px;
    }
    
    .share-section {
        margin-top: 14px;
        margin-bottom: 10px;
        padding: 8px;
    }
    
    .share-section-title {
        font-size: 0.6rem;
        margin-bottom: 8px;
    }
    
    .share-buttons-horizontal {
        gap: 8px;
    }
    
    .share-action-btn-horizontal {
        padding: 5px 10px;
        font-size: 0.65rem;
        gap: 5px;
    }
    
    .share-action-btn-horizontal i {
        font-size: 0.7rem;
    }
    
    .footer-text {
        margin-top: 4px;
    }
    
    .copyright, .nonprofit {
        font-size: 0.6rem;
    }
    
    .music-panel {
        width: 230px;
        right: 12px;
        bottom: 12px;
        padding: 10px;
    }
    
    .music-panel-header {
        font-size: 0.65rem;
        padding-bottom: 5px;
    }
    
    .music-toggle-btn {
        padding: 6px 10px;
    }
    
    .toggle-track {
        width: 36px;
        height: 18px;
    }
    
    .toggle-thumb {
        width: 14px;
        height: 14px;
        top: 2px;
        left: 2px;
    }
    
    .music-toggle-btn.on .toggle-thumb {
        transform: translateX(18px);
    }
    
    .toggle-icon {
        font-size: 0.75rem;
    }
    
    .toggle-status {
        font-size: 0.65rem;
    }
    
    .volume-control {
        padding: 4px 8px;
    }
    
    .volume-control i {
        font-size: 0.7rem;
    }
    
    .playlist-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    .now-playing {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .language-selector-bottom {
        bottom: 12px;
        left: 12px;
    }
    
    .language-menu-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .language-menu-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .language-dropdown {
        bottom: 48px;
        min-width: 120px;
        padding: 6px;
    }
    
    .lang-option {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .toast-message {
        white-space: normal;
        text-align: center;
        max-width: 85%;
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}