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

/* Page Header Logo Styles */
.page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
}

.profile-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a5568 0%, #718096 50%, #a0aec0 100%);
}

.profile-header {
    margin-bottom: 30px;
}

.profile-image-container {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: block;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.display-name {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
    letter-spacing: -0.025em;
    text-align: center;
}

.bio {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.links-container {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: #f7fafc;
    color: #2d3748;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4a5568;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    border-color: #cbd5e0;
}

.link-item:hover::before {
    transform: scaleY(1);
}

.link-icon {
    font-size: 1.25rem;
    margin-right: 16px;
    width: 32px;
    text-align: center;
    color: #4a5568;
    transition: color 0.3s ease;
}

.link-item:hover .link-icon {
    color: #2d3748;
}

.link-title {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.025em;
}

/* YouTube Video Styles */
.youtube-container {
    margin: 30px 0;
}

.youtube-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* X.com Image Fetch Button */
.fetch-x-btn {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fetch-x-btn:hover {
    background: linear-gradient(135deg, #0d8bd9, #0a7bc4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.fetch-x-btn:active {
    transform: translateY(0);
}

.fetch-x-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fetch-x-btn i {
    font-size: 12px;
}

.fetch-x-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.wallets-container {
    margin: 30px 0;
}

.wallet-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.wallet-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.wallet-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.wallet-header i {
    font-size: 1.25rem;
    color: #f6ad55;
    margin-right: 12px;
}

.wallet-blockchain {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #edf2f7;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.address-text {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: #4a5568;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Loading and Error States */
.loading, .error-message {
    text-align: center;
    padding: 48px;
    color: #4a5568;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    border-radius: 12px;
    border: 1px solid #feb2b2;
}

/* Dashboard Styles */
.dashboard-body {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
}

.dashboard-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.header-logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.header-logo-img:hover {
    transform: scale(1.1);
}

/* Dashboard Header Text */
.header-text h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
    color: white;
}

.header-subtitle {
    font-size: 0.875rem;
    color: #cbd5e0;
    margin: 0;
    font-weight: 400;
}

.view-profile-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.view-profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-content {
    padding: 32px;
}

.profile-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h2 {
    color: #1a202c;
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.025em;
}

.form-section h2 i {
    color: #4a5568;
}

.section-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-help {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 4px;
    line-height: 1.4;
}

.required {
    color: #ef4444;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #374151;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
    background-color: #ffffff;
}

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

/* Links Form Styles */
.links-form-container {
    margin-bottom: 20px;
}

.link-form-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
}

.link-form-item h4 {
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.875rem;
}

.remove-link-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.remove-link-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.link-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    gap: 15px;
    align-items: end;
}

.add-link-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.add-link-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.links-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #4a5568;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #059669;
    width: 16px;
}

.links-counter {
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.save-help {
    text-align: center;
    margin-top: 12px;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.save-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.025em;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.25);
}

.save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message Styles */
.message {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    font-size: 0.875rem;
}

.message.success {
    background: #059669;
    border: 1px solid #047857;
}

.message.error {
    background: #ef4444;
    border: 1px solid #dc2626;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 10px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .display-name {
        font-size: 2rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dashboard-content {
        padding: 15px;
    }
    
    .profile-form {
        padding: 20px;
    }
    
    .link-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .message {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .display-name {
        font-size: 1.8rem;
    }
    
    .link-item {
        padding: 12px 15px;
    }
    
    .link-icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #2d3748;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Form validation styles */
.form-group input:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid {
    border-color: #10b981;
}

.form-group input:focus:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group input:focus:valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Character counter styles */
.character-counter {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-align: right;
}

.character-counter.warning {
    color: #f59e0b;
}

.character-counter.danger {
    color: #ef4444;
}

/* Success message animation */
.message.success {
    animation: slideInSuccess 0.3s ease-out;
}

.message.error {
    animation: slideInError 0.3s ease-out;
}

@keyframes slideInSuccess {
    from {
        transform: translateY(-20px);
        opacity: 0;
        background-color: rgba(16, 185, 129, 0.1);
    }
    to {
        transform: translateY(0);
        opacity: 1;
        background-color: rgba(16, 185, 129, 0.1);
    }
}

@keyframes slideInError {
    from {
        transform: translateY(-20px);
        opacity: 0;
        background-color: rgba(239, 68, 68, 0.1);
    }
    to {
        transform: translateY(0);
        opacity: 1;
        background-color: rgba(239, 68, 68, 0.1);
    }
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tuperfil-logo {
    height: 28px;
    width: auto;
    transition: all 0.3s ease;
}

.tuperfil-logo:hover {
    transform: scale(1.1);
}

.footer-separator {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
}

.footer-text {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #f7fafc;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.footer-logo {
    height: 28px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-link:hover .footer-logo {
    transform: scale(1.1);
}

/* Floating Share Button */
.floating-share {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(29, 161, 242, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(29, 161, 242, 0.6);
    background: linear-gradient(135deg, #0d8bd9 0%, #1da1f2 100%);
}

.share-btn:active {
    transform: translateY(0);
}

/* Language Toggle */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-toggle {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-btn:active {
    transform: translateY(0);
}

/* Dashboard Header Updates */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

@media (max-width: 768px) {
    .floating-share {
        bottom: 20px;
        right: 20px;
    }
    
    .share-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-controls {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .tuperfil-logo {
        height: 28px;
    }
    
    .footer-logo {
        height: 32px;
    }
}

/* Password Change Section */
.password-change-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-top: 15px;
}

.change-password-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.change-password-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.change-password-btn:active {
    transform: translateY(0);
}

.change-password-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.change-password-btn.loading {
    background: #6b7280;
    cursor: not-allowed;
}

.change-password-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 0;
}

.password-strength.weak {
    color: #ef4444;
}

.password-strength.medium {
    color: #f59e0b;
}

.password-strength.strong {
    color: #10b981;
}

.password-match {
    margin-top: 5px;
    font-size: 0.75rem;
    font-weight: 500;
}

.password-match.match {
    color: #10b981;
}

.password-match.no-match {
    color: #ef4444;
}

@media (max-width: 768px) {
    .password-change-container {
        padding: 20px;
    }
    
    .change-password-btn {
        width: 100%;
        justify-content: center;
    }
}