/* ═══════════════════════════════════════════════════════════════════════════
           SECTION 1: CUSTOMIZABLE COLOR VARIABLES
           ───────────────────────────────────────────────────────────────────────────
           Modify these variables to fully customize the appearance.
        ═══════════════════════════════════════════════════════════════════════════ */
        :root {
            --bg-gradient-start: #000;
            --bg-gradient-middle: #000;
            --bg-gradient-end: #000;
            --btn-background: rgba(255, 255, 255, 0.08);
            --btn-background-hover: rgba(255, 255, 255, 0.15);
            --btn-border: rgba(255, 255, 255, 0.18);
            --btn-border-hover: rgba(255, 255, 255, 0.35);
            --btn-text: #ffffff;
            --btn-shadow: rgba(0, 0, 0, 0.2);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.75);
            --text-muted: rgba(255, 255, 255, 0.5);
            --avatar-border: rgba(255, 255, 255, 0.25);
            --avatar-shadow: rgba(0, 0, 0, 0.3);
            --social-icon-color: rgba(255, 255, 255, 0.7);
            --social-icon-hover: #ffffff;
            --modal-bg: #000;
            --modal-text: #ffffff;
            --modal-border: rgba(255, 255, 255, 0.1);
            --border-radius: 16px;
            --transition-speed: 0.3s;
        }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 3: BASE STYLES
        ═══════════════════════════════════════════════════════════════════════════ */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            background: #000000;
            background-attachment: fixed;
            display: flex;
            justify-content: center;
            padding: 40px 20px;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: none;
        }

        .linktree-container { width: 100%; max-width: 680px; position: relative; z-index: 1; }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 5: HEADER - AVATAR, NAME AND BIO
        ═══════════════════════════════════════════════════════════════════════════ */
        .profile-header { text-align: center; margin-bottom: 32px; padding-top: 50px; }
        .avatar-wrapper { position: relative; display: inline-block; margin-bottom: 20px; }
        .avatar {
            width: 110px; height: 110px;
            border-radius: 50%; object-fit: cover;
            border: 3px solid var(--avatar-border);
            box-shadow: 0 8px 32px var(--avatar-shadow);
            transition: transform var(--transition-speed) ease;
        }
        .avatar:hover { transform: scale(1.05); }
        .verified-badge {
            position: absolute; bottom: 5px; right: 5px;
            width: 28px; height: 28px;
            background: linear-gradient(135deg, #017aee 0%, #017aee 100%);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            border: 3px solid var(--bg-gradient-middle);
            font-size: 12px; color: white;
        }
        .profile-name { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.02em; }
        .profile-handle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; }
        .profile-bio { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; max-width: 400px; margin: 0 auto; }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 6: LINKS LIST
        ═══════════════════════════════════════════════════════════════════════════ */
        .links-container { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
        .link-item {
            display: flex; align-items: center; justify-content: center;
            position: relative;
            background: var(--btn-background);
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--btn-border);
            border-radius: var(--border-radius);
            padding: 16px 24px;
            color: var(--btn-text);
            text-decoration: none;
            font-weight: 500; font-size: 1rem;
            transition: all var(--transition-speed) ease;
            box-shadow: 0 4px 15px var(--btn-shadow);
            min-height: 60px;
        }
        .link-item:hover {
            background: var(--btn-background-hover);
            border-color: var(--btn-border-hover);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px var(--btn-shadow);
            color: var(--btn-text);
        }
        .link-item:active { transform: translateY(-1px); }
        .link-icon { flex-shrink: 0; font-size: 1.3rem; opacity: 0.9; margin-right: 12px; }
        /* Custom platform logos: place your PNG/SVG files in assets/images/ */
        .link-icon.custom-icon {
            width: 26px;
            height: 26px;
            object-fit: contain;
            flex-shrink: 0;
            opacity: 1;
            margin-right: 12px;
            font-size: initial;
        }

        .link-text { text-align: center; flex: 1; }
        .link-external { flex-shrink: 0; font-size: 0.85rem; opacity: 0.5; transition: opacity var(--transition-speed) ease; margin-left: 12px; }
        .link-item:hover .link-external { opacity: 0.8; }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 7: SOCIAL MEDIA ICONS
        ═══════════════════════════════════════════════════════════════════════════ */
        .social-icons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
        .social-icon {
            width: 44px; height: 44px;
            display: flex; align-items: center; justify-content: center;
            color: var(--social-icon-color);
            font-size: 1.4rem;
            transition: all var(--transition-speed) ease;
            border-radius: 50%;
            text-decoration: none;
        }
        .social-icon:hover { color: var(--social-icon-hover); transform: translateY(-3px) scale(1.1); }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 8: SHARE AND QR CODE BUTTONS
        ═══════════════════════════════════════════════════════════════════════════ */
        .share-section { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; }
        .share-btn {
            display: flex; align-items: center; gap: 8px;
            padding: 10px 20px;
            background: var(--btn-background);
            border: 1px solid var(--btn-border);
            border-radius: 50px;
            color: var(--text-secondary);
            font-size: 0.9rem; font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-speed) ease;
        }
        .share-btn:hover { background: var(--btn-background-hover); color: var(--text-primary); }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 9: FOOTER
        ═══════════════════════════════════════════════════════════════════════════ */
        .footer { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
        .footer-logo {
            display: inline-flex; align-items: center; gap: 8px;
            color: var(--text-muted); font-size: 0.85rem;
            text-decoration: none;
            transition: color var(--transition-speed) ease;
        }
        .footer-logo:hover { color: var(--text-secondary); }
        .footer-logo i { font-size: 1.1rem; }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 10: MODALS
        ═══════════════════════════════════════════════════════════════════════════ */
        .modal-content { background: var(--modal-bg); border: 1px solid var(--modal-border); border-radius: 20px; color: var(--modal-text); }
        .modal-header { border-bottom: 1px solid var(--modal-border); padding: 20px 24px; }
        .modal-title { font-weight: 600; font-size: 1.2rem; }
        .modal-body { padding: 24px; }
        .btn-close { filter: invert(1); opacity: 0.6; }
        .btn-close:hover { opacity: 1; }
        .qr-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
        .qr-code-wrapper { background: white; padding: 20px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
        #qrcode { display: flex; justify-content: center; }
        .qr-download-btn {
            background: linear-gradient(135deg, #0d6efd 0%, #0d6efd 100%);
            border: none; padding: 12px 28px; border-radius: 50px;
            color: white; font-weight: 600;
            transition: all var(--transition-speed) ease;
        }
        .qr-download-btn:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); color: white; }
        .share-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
        .share-option {
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            padding: 16px 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px; cursor: pointer;
            transition: all var(--transition-speed) ease;
            text-decoration: none;
            color: var(--text-secondary);
        }
        .share-option:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); color: var(--text-primary); }
        .share-option i { font-size: 1.8rem; }
        .share-option span { font-size: 0.8rem; }
        .copy-link-container { display: flex; gap: 10px; }
        .copy-link-input {
            flex: 1;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--modal-border);
            border-radius: 10px; padding: 12px 16px;
            color: var(--text-secondary); font-size: 0.9rem;
        }
        .copy-link-input:focus { outline: none; border-color: rgba(102, 126, 234, 0.5); }
        .copy-btn {
            background: linear-gradient(135deg, #0d6efd 0%, #0d6efd 100%);
            border: none; padding: 12px 20px; border-radius: 10px;
            color: white; font-weight: 600; cursor: pointer;
            transition: all var(--transition-speed) ease;
            white-space: nowrap;
        }
        .copy-btn:hover { transform: scale(1.02); }
        .copy-btn.copied { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 11: ANIMATIONS
        ═══════════════════════════════════════════════════════════════════════════ */
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .profile-header { animation: fadeInUp 0.6s ease-out; }
        .link-item { animation: fadeInUp 0.6s ease-out; animation-fill-mode: both; }
        .link-item:nth-child(1) { animation-delay: 0.1s; }
        .link-item:nth-child(2) { animation-delay: 0.15s; }
        .link-item:nth-child(3) { animation-delay: 0.2s; }
        .link-item:nth-child(4) { animation-delay: 0.25s; }
        .link-item:nth-child(5) { animation-delay: 0.3s; }
        .link-item:nth-child(6) { animation-delay: 0.35s; }
        .link-item:nth-child(7) { animation-delay: 0.4s; }
        .link-item:nth-child(8) { animation-delay: 0.45s; }
        .link-item:nth-child(9) { animation-delay: 0.5s; }
        .link-item:nth-child(10) { animation-delay: 0.55s; }

        .social-icons { animation: fadeInUp 0.6s ease-out 0.5s; animation-fill-mode: both; }
        .share-section { animation: fadeInUp 0.6s ease-out 0.6s; animation-fill-mode: both; }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 12: RESPONSIVE
        ═══════════════════════════════════════════════════════════════════════════ */
        @media (max-width: 576px) {
            body { padding: 30px 16px; }
            .avatar { width: 96px; height: 96px; }
            .profile-name { font-size: 1.4rem; }
            .link-item { padding: 14px 20px; min-height: 56px; }
            .share-options { grid-template-columns: repeat(2, 1fr); }
            .copy-link-container { flex-direction: column; }
        }

        /* ═══════════════════════════════════════════════════════════════════════════
           SECTION 13: TOAST
        ═══════════════════════════════════════════════════════════════════════════ */
        .toast-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 9999; }
        .toast { background: rgba(16, 185, 129, 0.95); backdrop-filter: blur(10px); border: none; border-radius: 50px; color: white; padding: 14px 28px; font-weight: 500; }
