/* Prof.ile.pub - Main Stylesheet */
/* Cache-busting timestamp: 2025-09-23-25 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    min-height: 60px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header .logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 3rem;
}

.header .logo a:hover {
    transform: translateY(-1px);
}

.logo-image {
    height: 40px;
    width: auto;
    margin-top: 0.4rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-image:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.logo-text {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex: 1;
    order: 2;
}

.header .nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header .nav a:hover {
    color: var(--accent-primary);
}

.header .nav a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.header .nav .chat-btn {
    background: #25d366;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header .nav .chat-btn:hover {
    background: #20ba5a;
    transform: translateY(-1px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--accent-primary);
    border-radius: 50%;
    border: none;
    box-shadow: var(--shadow);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    height: 40px;
    transition: all 0.3s ease;
    width: 40px;
    position: fixed;
    top: 0.9rem;
    left: 1rem;
}

.theme-toggle:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

/* Logout Button in Header - same style as theme toggle */
.logout-btn-header {
    background: var(--accent-primary);
    border-radius: 50%;
    border: none;
    box-shadow: var(--shadow);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    height: 40px;
    transition: all 0.3s ease;
    width: 40px;
}

.logout-btn-header:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-links a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Legal Content Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.legal-content h1 {
    color: var(--accent-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

.back-link a {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-link a:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .header .logo {
        flex-shrink: 0;
        max-width: 180px;
        order: 1;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .header .nav {
        gap: 0.75rem;
        flex-wrap: nowrap;
        min-width: 0;
        flex-shrink: 0;
        order: 2;
        justify-content: flex-end;
    }
    
    .header .nav .chat-btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Mobile WhatsApp button - small round green button with icon only */
    .header .nav .chat-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        min-width: unset;
    }
    
    .header .nav .chat-btn span {
        display: none; /* Hide text on mobile */
    }
    
    .theme-toggle,
    .logout-btn-header {
        height: 32px;
        width: 32px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .header .nav .chat-btn {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 0.25rem 0;
    }
    
    .footer-links {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer p {
        font-size: 0.75rem;
    }
}

:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark Theme */
.dark-theme {
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated SVG Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23636f1' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundFloat 20s ease-in-out infinite;
}

/* Animated geometric shapes */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Dark theme adjustments for background */
[data-theme="dark"] body::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23818cf8' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] body::after {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(129, 140, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(129, 140, 248, 0.08) 0%, transparent 50%);
}

/* Floating geometric shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 20s linear infinite;
}

.floating-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-shape:nth-child(2) {
    top: 20%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: var(--accent-secondary);
    transform: rotate(45deg);
    animation-delay: -5s;
    animation-duration: 30s;
}

.floating-shape:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: -10s;
    animation-duration: 35s;
}

.floating-shape:nth-child(4) {
    bottom: 20%;
    right: 25%;
    width: 50px;
    height: 50px;
    background: var(--accent-secondary);
    border-radius: 20%;
    animation-delay: -15s;
    animation-duration: 28s;
}

.floating-shape:nth-child(5) {
    top: 60%;
    left: 5%;
    width: 70px;
    height: 70px;
    background: var(--accent-primary);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: -20s;
    animation-duration: 32s;
}

@keyframes floatShape {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.25;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 0.1;
    }
}

/* Dark theme adjustments for floating shapes */
[data-theme="dark"] .floating-shape {
    opacity: 0.15;
}

[data-theme="dark"] .floating-shape:nth-child(1),
[data-theme="dark"] .floating-shape:nth-child(3),
[data-theme="dark"] .floating-shape:nth-child(5) {
    background: var(--accent-primary);
}

[data-theme="dark"] .floating-shape:nth-child(2),
[data-theme="dark"] .floating-shape:nth-child(4) {
    background: var(--accent-secondary);
}

.container {
    max-width: 480px;
    flex: 1;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper for static pages */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Profile Header */
.profile-header {
    text-align: center;
    position: relative;
}

.profile-image {
    margin-bottom: 1.5rem;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

/* Profile Name Container */
.profile-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-name {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    max-width: 100%;
    transition: font-size 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

/* Mobile: Keep text on single line with ellipsis */
@media (max-width: 768px) {
    .profile-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Desktop: Allow text to wrap naturally but keep badge inline */
@media (min-width: 769px) {
    .profile-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .profile-name .verification-badge {
        white-space: nowrap;
        display: inline-block;
        margin-left: 0.5rem;
    }
}

/* Verification Badge */
.verification-badge {
    color: #1DA1F2; /* Twitter blue for verification */
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Verification Badge in Profile Name */
.profile-name .verification-badge {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
    color: #1DA1F2 !important;
    display: inline;
}


.verification-badge:hover {
    color: #0d8bd9;
    transform: scale(1.1);
}

.profile-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Links Container */
.links-container {
    flex: 1;
    margin-bottom: 2rem;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item {
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    user-select: none;
}
.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.link-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--gradient);
    color: white;
    flex-shrink: 0;
}

.drag-handle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: grab;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-right: 0.5rem;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -1px;
    font-weight: bold;
}

.drag-handle:hover {
    opacity: 1;
    color: var(--accent-primary);
}

.drag-handle:active {
    cursor: grabbing;
}

/* Removed duplicate drag-handle definition */

.link-content {
    flex: 1;
    font-size: 0.9rem;
    text-align: left;
}

.link-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-description {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

.link-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.link-actions button:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.link-actions .delete-btn:hover {
    background: #ef4444;
    color: white;
}


/* Footer */
.footer {
    padding: 0.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Image Upload Styles */
.image-upload-container {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.image-preview {
    margin-bottom: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.image-preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.image-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.upload-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Add Link Section */
.add-link-section {
    margin-bottom: 20px;
    text-align: center;
}

.add-link-section .btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-panel.open {
    right: 0;
}

.admin-header {
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header-content {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.admin-username {
    font-weight: 500;
    color: #111827;
}

.admin-verification-badge {
    color: #1da1f2 !important;
    font-size: 14pt;
    margin-left: 4px;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.admin-header-actions {
    display: flex;
    gap: 8px;
}

.admin-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-admin, .logout-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-admin:hover, .logout-btn:hover {
    color: #374151;
}

.admin-content {
    padding: 24px;
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

/* Profile Section */
.profile-section {
    text-align: center;
}

.profile-image-container {
    margin-bottom: 24px;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.profile-image {
    object-fit: cover;
    border-radius: 50%;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.profile-image-wrapper:hover {
    transform: scale(1.05);
}

.profile-image-wrapper:hover .profile-image-overlay {
    opacity: 1;
}

.profile-image-overlay i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Main profile image wrapper */
#mainProfileImageWrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

#mainProfileImageWrapper .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#mainProfileImageWrapper .profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

#mainProfileImageWrapper:hover .profile-image-overlay {
    opacity: 1;
}

#mainProfileImageWrapper .profile-image-overlay i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Links Section */
.links-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-add-link {
    background: #3b82f6;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-add-link:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Settings Section */
.btn-save {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-save:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-selected:hover {
    border-color: var(--accent-primary);
}

.dropdown-selected i:last-child {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-selected.active i:last-child {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.dropdown-options.show {
    display: block;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.dropdown-option:hover {
    background: var(--accent-primary);
    color: white;
}

.dropdown-option i {
    width: 16px;
    text-align: center;
    font-size: 1rem;
}

/* Brand icon colors */
.dropdown-option[data-value="fab fa-github"] i { color: #333; }
.dropdown-option[data-value="fab fa-facebook"] i { color: #1877f2; }
.dropdown-option[data-value="fab fa-linkedin"] i { color: #0077b5; }
.dropdown-option[data-value="fab fa-discord"] i { color: #5865f2; }
.dropdown-option[data-value="fab fa-youtube"] i { color: #ff0000; }
.dropdown-option[data-value="fab fa-google"] i { color: #4285f4; }
.dropdown-option[data-value="fab fa-twitch"] i { color: #9146ff; }
.dropdown-option[data-value="fab fa-instagram"] i { color: #e4405f; }
.dropdown-option[data-value="fab fa-whatsapp"] i { color: #25d366; }
.dropdown-option[data-value="fab fa-telegram"] i { color: #0088cc; }
.dropdown-option[data-value="fab fa-skype"] i { color: #00aff0; }
.dropdown-option[data-value="fab fa-amazon"] i { color: #ff9900; }
.dropdown-option[data-value="fab fa-spotify"] i { color: #1db954; }
.dropdown-option[data-value="fab fa-playstation"] i { color: #003791; }
.dropdown-option[data-value="fab fa-xbox"] i { color: #107c10; }
.dropdown-option[data-value="fab fa-shopify"] i { color: #96bf48; }
.dropdown-option[data-value="fab fa-x-twitter"] i { color: #000000; }
.dropdown-option[data-value="fab fa-twitter"] i { color: #1da1f2; }
.dropdown-option[data-value="fab fa-tiktok"] i { color: #000000; }

/* Override colors on hover */
.dropdown-option:hover i {
    color: white !important;
}

/* Verification Badge Styles */
.verification-badge {
    color: #1da1f2 !important;
    font-size: 14pt;
    margin-left: 4px;
    vertical-align: middle;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Dark theme verification badge */
[data-theme="dark"] .verification-badge {
    color: #1da1f2 !important;
}

/* Light theme verification badge */
[data-theme="light"] .verification-badge {
    color: #1da1f2 !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.add-link-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.add-link-form button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-link-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.links-list-admin {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.admin-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--gradient);
    color: white;
}

.admin-link-content {
    flex: 1;
    font-size: 0.9rem;
}

.admin-link-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-link-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-link-actions button:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.admin-link-actions .delete-btn:hover {
    background: #ef4444;
    color: white;
}

#saveSettingsBtn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#saveSettingsBtn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* Admin Toggle Button - removed (now in header) */

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .profile-name {
        font-size: clamp(1rem, 5vw, 1.75rem);
    }
    
    .profile-bio {
        font-size: 1rem;
    }
    
    
    /* Admin toggle now in header - no mobile-specific positioning needed */
    
    .admin-panel {
        width: 100%;
        right: -100%;
    }
    
    .admin-panel.open {
        right: 0;
    }
}

@media (max-width: 480px) {
    .link-item {
        padding: 0.75rem;
    }
    
    .link-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .link-title {
        font-size: 0.85rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom CSS Support */
#customCss {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    min-height: 120px;
}

/* Drag and Drop Visual Feedback */
.links-list {
    position: relative;
}

.links-list.drag-active {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.drag-placeholder {
    height: 80px;
    background: var(--accent-primary);
    background-opacity: 0.1;
    border: 2px dashed var(--accent-primary);
    border-radius: 12px;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.drag-placeholder::before {
    content: '📎 Hier ablegen';
    font-size: 0.9rem;
}

/* Mobile Drag and Drop */
@media (max-width: 768px) {
    .link-item {
        padding: 0.75rem;
    }
    
    .drag-handle {
        width: 24px;
        height: 24px;
        margin-right: 0.75rem;
    }
    
    .drag-handle::before {
        font-size: 14px;
    }
}

/* Drag Instructions */
.drag-instructions {
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Admin Drag Instructions */
.admin-drag-instructions {
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Drop Indicators */
.drop-indicator {
    height: 4px;
    margin: 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: dropIndicatorAppear 0.2s ease forwards;
}

.drop-line {
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    width: 100%;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

@keyframes dropIndicatorAppear {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Admin Drop Zone */
.admin-drop-zone {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    opacity: 0.3;
    transform: scale(0.98);
}

.admin-drop-zone.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    opacity: 1;
    transform: scale(1.02);
}

.admin-drop-zone .drop-line {
    margin-bottom: 0.5rem;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.drag-instructions p {
    margin: 0;
}

/* Additional Drag and Drop Styles */

.link-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.link-item.drag-over {
    border-top: 3px solid var(--accent-primary);
    transform: translateY(-2px);
}

.link-item.drag-over-top {
    border-top: 3px solid var(--accent-primary);
}

.link-item.drag-over-bottom {
    border-bottom: 3px solid var(--accent-primary);
}

/* Drag handle - removed duplicate definition */

.link-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Admin drag and drop */
.admin-link-item {
    position: relative;
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
}

.admin-link-item:active {
    cursor: grabbing;
}

.admin-link-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-link-item.drag-over {
    border-top: 2px solid var(--accent-primary);
    transform: translateY(-1px);
}

.admin-drag-handle {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: grab;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-size: 1rem;
    z-index: 10;
}

.admin-link-item:hover .admin-drag-handle {
    opacity: 1;
}

.admin-drag-handle:active {
    cursor: grabbing;
}

/* Drop zone indicator */
.drop-zone {
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    margin: 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.drop-zone.active {
    opacity: 1;
}

/* Sortable container */
.sortable-container {
    position: relative;
}

/* Drag preview */
.drag-preview {
    position: fixed;
    pointer-events: none;
    z-index: 1001;
    opacity: 0.8;
    transform: rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile drag and drop */
@media (max-width: 768px) {
    .link-item {
        touch-action: pan-y;
    }
    
    .drag-handle {
        opacity: 1;
        font-size: 1.4rem;
    }
    
    .admin-drag-handle {
        opacity: 1;
        font-size: 1.2rem;
    }
}

/* Login Status */
.login-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
    z-index: 100;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.logout-btn-small {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.logout-btn-small:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Login prompt for non-authenticated users */
.login-prompt {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.login-prompt h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-prompt-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-prompt-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* Mobile login status */
@media (max-width: 768px) {
    .login-status {
        position: static;
        margin: 1rem auto;
        width: fit-content;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
}

/* Welcome Page Styles */
.welcome-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome-content {
    padding: 20px;
}

.welcome-container .logo {
    font-size: 2em;
    margin-bottom: 20px;
    color: #6366f1;
}

.welcome-container h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.welcome-container .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.tiktok-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff0050, #00f2ea);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    transition: transform 0.2s;
}

.tiktok-btn:hover {
    transform: translateY(-2px);
}

.tiktok-btn i {
    margin-right: 8px;
}

.error-message {
    color: #ff0050;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffe6e6;
    border-radius: 8px;
}

.success-message {
    color: #00a86b;
    margin-bottom: 20px;
    padding: 15px;
    background: #e6f7f0;
    border-radius: 8px;
}

/* Upload Image Modal */

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.upload-area h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-upload {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-upload:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.upload-preview {
    text-align: center;
}

.upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.upload-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #6b7280;
}

/* Live Edit Styles */
.profile-image {
    position: relative;
    cursor: pointer;
}

.profile-image-edit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-image:hover .profile-image-edit {
    opacity: 1;
}

.live-edit-profile {
    margin: 20px 0px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.edit-form-group {
    margin-bottom: 16px;
}

.edit-input, .edit-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s ease;
}

.edit-input:focus, .edit-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-save-edit {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-save-edit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-cancel-edit {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-cancel-edit:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-edit-profile {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.btn-edit-profile:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.links-header {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* Show links header when user is authenticated */
.profile-section .links-header {
    display: flex;
}

.links-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.btn-add-link-inline {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 50%;
}

.btn-add-link-inline:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-edit-bio-inline {
    background: #10b981;
    border: 1px solid #10b981;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 50%;
}

.btn-edit-bio-inline:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-share-profile-inline {
    background: #8b5cf6;
    border: 1px solid #8b5cf6;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

/* Two-line labels for action buttons */
.links-header .btn-label {
    display: inline-block;
    text-align: left;
    line-height: 1.1;
}

.links-header button i {
    font-size: 16px;
}

.btn-share-profile-inline:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Icon Picker Modal */
.icon-picker-modal {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.icon-picker-title {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.icon-picker-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.icon-search-container {
    position: relative;
}

.icon-search-wrapper {
    position: relative;
}

.icon-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    z-index: 1;
}

.icon-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(249, 250, 251, 0.5);
    transition: border-color 0.2s ease;
}

.icon-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.icon-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: rgba(249, 250, 251, 0.5);
    padding: 4px;
    border-radius: 8px;
}

.icon-tab {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.icon-tab.active {
    background: white;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.icon-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #374151;
}

.icon-grid-container {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 8px;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    color: #6b7280;
}

.icon-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    transform: translateY(-1px);
}

.icon-option.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.icon-option i {
    pointer-events: none;
}

/* Brand icon colors */
.icon-option .fab.fa-github { color: #333; }
.icon-option .fab.fa-facebook { color: #1877f2; }
.icon-option .fab.fa-linkedin { color: #0077b5; }
.icon-option .fab.fa-discord { color: #5865f2; }
.icon-option .fab.fa-youtube { color: #ff0000; }
.icon-option .fab.fa-google { color: #4285f4; }
.icon-option .fab.fa-twitch { color: #9146ff; }
.icon-option .fab.fa-instagram { color: #e4405f; }
.icon-option .fab.fa-whatsapp { color: #25d366; }
.icon-option .fab.fa-telegram { color: #0088cc; }
.icon-option .fab.fa-skype { color: #00aff0; }
.icon-option .fab.fa-amazon { color: #ff9900; }
.icon-option .fab.fa-spotify { color: #1db954; }
.icon-option .fab.fa-playstation { color: #003791; }
.icon-option .fab.fa-xbox { color: #107c10; }
.icon-option .fab.fa-shopify { color: #96bf48; }
.icon-option .fab.fa-x-twitter { color: #000000; }

.features {
    text-align: left;
    margin-top: 30px;
}

.features h3 {
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    margin: 10px 0;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.features li:last-child {
    border-bottom: none;
}

/* Dark theme for welcome page */
[data-theme="dark"] .welcome-container {
    background: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .welcome-container h1 {
    color: #e0e0e0;
}

[data-theme="dark"] .welcome-container .subtitle {
    color: #b0b0b0;
}

[data-theme="dark"] .features h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .features li {
    color: #b0b0b0;
    border-bottom-color: #333;
}

.public-profile footer.footer {
    min-height: auto;
}

.public-profile .theme-toggle {
    top: 0.7rem;
}

.public-profile .profile-header {
    padding: 0;
}

/* Ensure link hover effects work on public profiles */
.public-profile .link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.public-profile .link-item:hover::before {
    left: 100%;
}

/* Ensure dynamic font sizing works on public profiles */
.public-profile .profile-name {
    transition: font-size 0.3s ease;
}

/* Ensure verification badge works on public profiles */
.public-profile .profile-name .verification-badge {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
    color: #1DA1F2 !important;
    display: inline;
}

/* ALL4E Themes  */
[data-theme="light"][data-agency="all4e"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0C1457;
    --text-secondary: #64748b;
    --accent-primary: #FD4E00;
    --accent-secondary: #FD4E00;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #FD4E00 0%, #0025AF 100%);
}

[data-theme="dark"][data-agency="all4e"] {
    --bg-primary: #000;
    --bg-secondary: #000;
    --text-primary: #fff;
    --text-secondary: #fff;
    --accent-primary: #FD4E00;
    --accent-secondary: #FD4E00;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #FD4E00 0%, #FD4E00 100%);
}
/* ALL4E Themes End */

/* TikTok Stats Display */
.tiktok-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.tiktok-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 80px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.tiktok-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.tiktok-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    position: relative;
    transition: all 0.3s ease;
}

.tiktok-stat-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* Size indicators */
.tiktok-stat-icon.size-xs::after {
    background: #6b7280; /* Gray */
}

.tiktok-stat-icon.size-sm::after {
    background: #10b981; /* Green */
}

.tiktok-stat-icon.size-md::after {
    background: #3b82f6; /* Blue */
}

.tiktok-stat-icon.size-lg::after {
    background: #f59e0b; /* Orange */
}

.tiktok-stat-icon.size-xl::after {
    background: #ef4444; /* Red */
}

.tiktok-stat-icon.size-elite::after {
    background: linear-gradient(45deg, #ffd700, #ffed4e); /* Gold gradient */
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Icon colors */
.tiktok-stat-icon.likes {
    background: linear-gradient(135deg, #ff0050, #ff4081);
}

.tiktok-stat-icon.followers {
    background: linear-gradient(135deg, #00f2ea, #00d4aa);
}

.tiktok-stat-icon.following {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.tiktok-stat-icon.videos {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tiktok-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Tooltip styles */
.tiktok-stat-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.tiktok-stat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-primary);
}

.tiktok-stat-item:hover .tiktok-stat-tooltip,
.tiktok-stat-item:active .tiktok-stat-tooltip,
.tiktok-stat-item.touch-active .tiktok-stat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Count values are now only shown in tooltips, not on hover */

/* Size indicator labels */
.tiktok-stat-size-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tiktok-stat-size-label.size-xs {
    background: #6b7280;
    color: white;
}

.tiktok-stat-size-label.size-sm {
    background: #10b981;
    color: white;
}

.tiktok-stat-size-label.size-md {
    background: #3b82f6;
    color: white;
}

.tiktok-stat-size-label.size-lg {
    background: #f59e0b;
    color: white;
}

.tiktok-stat-size-label.size-xl {
    background: #ef4444;
    color: white;
}

.tiktok-stat-size-label.size-elite {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-weight: 800;
}

/* Responsive design for TikTok stats */
@media (max-width: 768px) {
    .tiktok-stats {
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .tiktok-stat-item {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .tiktok-stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .tiktok-stat-icon::after {
        width: 10px;
        height: 10px;
    }
    
    .tiktok-stat-label {
        font-size: 0.7rem;
    }
    
    .tiktok-stat-value {
        font-size: 0.8rem;
    }
    
    .tiktok-stat-tooltip {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .tiktok-stats {
        gap: 0.5rem;
    }
    
    .tiktok-stat-item {
        min-width: 70px;
        padding: 0.4rem;
    }
    
    .tiktok-stat-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .tiktok-stat-icon::after {
        width: 8px;
        height: 8px;
    }
}

/* Share Profile Modal Styles */
.url-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.url-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.url-input-container input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-copy-url {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-copy-url:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.btn-download-qr {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-download-qr:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Responsive adjustments for share modal */
@media (max-width: 768px) {
    .url-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copy-url {
        justify-content: center;
    }
    
    .qr-code-container {
        padding: 0.75rem;
    }
    
    #qrCodeCanvas {
        width: 150px !important;
        height: 150px !important;
    }
}