/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== VARIABLES ===== */
:root {
    --red: #ff0000;
    --red-dark: #cc0000;
    --red-light: #ff3333;
    --black: #000000;
    --gray-dark: #0d0d0d;
    --gray: #1a1a1a;
    --gray-light: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #999999;
    --border: rgba(255, 0, 0, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--gray-dark);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--red);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 0, 0, 0.1);
    color: var(--red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
    background: var(--gray);
    padding: 0.25rem;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--red);
}

.lang-btn.active {
    background: var(--red);
    color: #fff;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s;
    position: relative;
    z-index: 1001;
}

.user-avatar:hover {
    border-color: var(--red);
    transform: scale(1.05);
}

.dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.user-menu.active .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.user-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.user-plan {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
}

.dropdown-link:hover {
    background: rgba(255, 0, 0, 0.1);
    color: var(--red);
}

.dropdown-link.logout {
    color: var(--red);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: #fff;
}

.btn-download {
    background: var(--red);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-download:hover {
    background: var(--red-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ===== BANNER ===== */
.banner {
    background: rgba(255, 0, 0, 0.1);
    border-bottom: 1px solid var(--red);
    padding: 1rem 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-content .iconify {
    font-size: 1.5rem;
    color: var(--red);
}

.banner-text {
    flex: 1;
}

.banner-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.banner-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.banner-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* ===== MAIN ===== */
.main {
    padding: 3rem 0;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--red);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* Download Box */
.download-box {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.platform-select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--gray-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.platform-select:focus {
    outline: none;
    border-color: var(--red);
}

.input-group {
    display: flex;
    gap: 1rem;
}

.url-input {
    flex: 1;
    padding: 1rem;
    background: var(--gray-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.url-input:focus {
    outline: none;
    border-color: var(--red);
}

.url-input::placeholder {
    color: #666;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 0, 0, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Result & Error */
.result,
.error {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
}

/* Download Results */
.download-results {
    margin-top: 1.5rem;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--gray-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
    text-align: left;
}

.download-link:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateX(5px);
}

.download-link svg {
    flex-shrink: 0;
}

.download-link.premium-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-link.premium-locked:hover {
    background: var(--gray-dark);
    border-color: var(--border);
    transform: none;
}

.download-link.audio-link {
    border-color: #10b981;
}

.download-link.audio-link:hover {
    background: #10b981;
    border-color: #10b981;
}

/* Download Progress */
.download-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--red);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red);
    min-width: 45px;
    text-align: right;
}

/* ===== PLANS ===== */
.plans {
    padding: 4rem 0;
}

.plans h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: var(--gray);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.plan-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.plan-card.featured {
    border-color: var(--red);
    position: relative;
}

.plan-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 0, 0, 0.2);
    color: var(--red);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.plan-badge.premium {
    background: var(--red);
    color: #fff;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-gray);
}

.plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
}

.plan-features .iconify {
    color: var(--red);
}

.plan-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--text-gray);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--red);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-gray);
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--red);
}

/* ===== AUTH FORMS ===== */
.auth-form {
    padding: 1rem 0;
}

.auth-form h2 {
    color: var(--red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.auth-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--gray-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--red);
}

.auth-input::placeholder {
    color: #666;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    cursor: pointer;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-auth:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-gray);
}

.auth-switch a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        overflow-x: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-container {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Profile Background Video/Image - Full Page Background */
.profile-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-video-iframe,
.background-video-element,
.background-media-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.background-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--red) 0%, var(--black) 100%);
    position: relative;
    z-index: 1;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--red) 0%, var(--black) 100%);
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.btn-settings {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    z-index: 100;
}

.btn-settings:hover {
    background: var(--red);
    border-color: var(--red);
}

.profile-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-top: -60px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.profile-avatar-wrapper {
    position: relative;
    z-index: 3;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gray-dark);
    border: 4px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    z-index: 4;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar.premium-avatar {
    border-color: var(--red);
}

.profile-info {
    flex: 1;
    padding-top: 60px;
}

.profile-username {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.profile-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-badge.guest {
    background: #666;
    color: #fff;
}

.profile-badge.free {
    background: #10b981;
    color: #fff;
}

.profile-badge.premium {
    background: var(--red);
    color: #fff;
}

.profile-badge.admin {
    background: #ff6600;
    color: #fff;
}

.profile-badge.on-hold {
    background: #f59e0b;
    color: #000;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 6px;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-icon {
    font-size: 1rem;
}

.profile-stat {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.profile-bio {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--gray-dark);
    border-radius: 12px;
}

.bio-text {
    color: var(--text-gray);
    line-height: 1.8;
}

.profile-social-section {
    margin-top: 2rem;
}

.social-title {
    color: var(--red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.social-icon {
    font-size: 1.5rem;
}

/* Settings Modal */
.settings-modal {
    max-width: 700px;
    max-height: 85vh;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.settings-section textarea {
    min-height: 100px;
    resize: vertical;
}

.upload-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.upload-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.premium-feature {
    border: 1px solid var(--red);
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 0, 0, 0.05);
}

.social-input {
    margin-bottom: 1rem;
}

/* Font Styles */
.font-cursive {
    font-family: 'Brush Script MT', cursive !important;
}

.font-monospace {
    font-family: 'Courier New', monospace !important;
}

.font-serif {
    font-family: 'Georgia', serif !important;
}

.font-handwriting {
    font-family: 'Comic Sans MS', cursive !important;
}

/* Font Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--red), 0 0 20px var(--red); }
    50% { text-shadow: 0 0 20px var(--red), 0 0 40px var(--red), 0 0 60px var(--red); }
}

@keyframes rainbow {
    0% { color: #ff0000; }
    16% { color: #ff7f00; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0000ff; }
    83% { color: #8b00ff; }
    100% { color: #ff0000; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes flip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes zoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes neon {
    0%, 100% { 
        text-shadow: 0 0 10px var(--red), 0 0 20px var(--red), 0 0 30px var(--red);
        color: #fff;
    }
    50% { 
        text-shadow: 0 0 20px var(--red), 0 0 40px var(--red), 0 0 60px var(--red), 0 0 80px var(--red);
        color: var(--red);
    }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.anim-pulse { animation: pulse 2s ease-in-out infinite; }
.anim-glow { animation: glow 2s ease-in-out infinite; }
.anim-rainbow { animation: rainbow 3s linear infinite; }
.anim-shake { animation: shake 0.5s ease-in-out infinite; }
.anim-bounce { animation: bounce 1s ease-in-out infinite; }
.anim-wave { animation: wave 2s ease-in-out infinite; }
.anim-flip { animation: flip 2s ease-in-out infinite; }
.anim-zoom { animation: zoom 2s ease-in-out infinite; }
.anim-slide { animation: slide 2s ease-in-out infinite; }
.anim-rotate { animation: rotate 3s linear infinite; }
.anim-neon { animation: neon 1.5s ease-in-out infinite; }
.anim-glitch { animation: glitch 0.3s ease-in-out infinite; }
.anim-fade { animation: fade 2s ease-in-out infinite; }

/* Font Preview in Dropdown */
#nameFontInput option {
    padding: 0.5rem;
    font-size: 1rem;
}

#nameFontInput option[value="cursive"] {
    font-family: 'Brush Script MT', cursive;
}

#nameFontInput option[value="monospace"] {
    font-family: 'Courier New', monospace;
}

#nameFontInput option[value="serif"] {
    font-family: 'Georgia', serif;
}

#nameFontInput option[value="handwriting"] {
    font-family: 'Comic Sans MS', cursive;
}

.color-input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}


/* ===== PROFILE PAGE OLD NAVBAR SUPPORT ===== */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    gap: 2rem;
}

.logo-img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
}

.nav-center {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--gray);
    padding: 0.25rem;
    border-radius: 8px;
}

.user-info {
    position: relative;
}

.profile-dropdown {
    position: relative;
}

.profile-link {
    text-decoration: none;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s;
    overflow: hidden;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-avatar:hover {
    border-color: var(--red);
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.profile-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-username {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dropdown-label {
    color: var(--text-gray);
}

.dropdown-value {
    font-weight: 600;
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.dropdown-button:hover {
    background: rgba(255, 0, 0, 0.1);
    color: var(--red);
}

.logout-button {
    color: var(--red);
}
