* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --primary-dark: #d1d5db;
    --accent-color: #9ca3af;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #151515;
    --border-color: #262626;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: auto;
}

html {
    position: relative;
}

/* Floating Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
    will-change: transform;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100004;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 1;
    will-change: left, top;
    display: block;
    visibility: visible;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100005;
    transform: translate(-50%, -50%);
    opacity: 1;
    will-change: left, top;
    display: block;
    visibility: visible;
}

body.custom-cursor-enabled {
    cursor: none;
}

body.custom-cursor-enabled * {
    cursor: none;
}

body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea {
    cursor: text;
}

@media (hover: none) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 25%, #151515 50%, #111111 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
}

/* Grid pattern overlay */
.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 40s linear infinite;
}


@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}


/* Floating Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    animation-duration: var(--particle-speed, 15s);
    animation-direction: normal;
    opacity: 0.6;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    will-change: transform;
}

.particle.large {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

@keyframes floatParticle {
    0% {
        transform: translateY(calc(100vh + 100px)) translateX(var(--drift, 0px));
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift, 50px));
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.875rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar:hover {
    background: rgba(10, 10, 10, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.navbar:hover::before {
    opacity: 1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    position: relative;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.nav-brand h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand h1:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.nav-brand h1:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0.25rem;
    display: inline-block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover::after {
    width: calc(100% - 0.5rem);
}

.nav-link-auth {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.nav-link-auth::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) !important;
}


/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    pointer-events: auto;
}

.custom-modal.active {
    display: flex;
}

.custom-modal-content {
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 460px;
    width: 92%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.custom-modal-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.custom-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.custom-modal-actions .btn-primary,
.custom-modal-actions .btn-secondary {
    min-width: 140px;
    white-space: nowrap;
}

.custom-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.login-modal * {
    pointer-events: auto;
}

.login-modal.active {
    display: flex;
}

/* Payment Method Selection Modal */
.payment-method-modal {
    display: none;
    position: fixed;
    z-index: 100003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    pointer-events: auto;
}

.payment-method-modal.active {
    display: flex;
}

.payment-method-modal-content {
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 92%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
}

.payment-method-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-method-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-method-modal-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: none;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.payment-method-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.payment-method-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.payment-method-text {
    flex: 1;
}

.payment-method-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-method-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.payment-method-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.payment-method-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.payment-method-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.payment-method-modal * {
    pointer-events: auto;
}

.login-modal-content {
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.login-modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(21, 21, 21, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: top 0.3s ease, opacity 0.3s ease;
    min-width: 300px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.toast-notification.show {
    top: 20px;
    opacity: 1;
    pointer-events: auto;
}

.toast-notification.success {
    border-color: rgba(34, 197, 94, 0.6);
}

.toast-notification.error {
    border-color: rgba(239, 68, 68, 0.6);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab.active::after {
    width: 100%;
}

.auth-tab:hover {
    color: var(--text-primary);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.manual-login-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.manual-login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.discord-btn {
    width: 100%;
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
}

.login-btn svg {
    flex-shrink: 0;
}

/* User Menu */
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    min-width: 250px;
    width: max-content;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    min-width: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
}

.user-plan {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* User Nav Button */
.user-nav-btn {
    display: flex;
    align-items: center;
    cursor: none;
    position: relative;
    margin-left: 0.5rem;
}

.nav-links {
    position: relative;
}

.user-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-nav-btn:hover .user-nav-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #0a0a0a;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    cursor: none;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transition: left 0.3s ease;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: transparent;
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1.5px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero-subtitle.visible {
    opacity: 0.95;
    transform: translateY(0);
}

.upload-area {
    margin-top: 3rem;
}

.upload-box {
    background: rgba(21, 21, 21, 0.6);
    backdrop-filter: blur(10px);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.upload-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.upload-box:hover {
    background: rgba(21, 21, 21, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: white;
}

.upload-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-box p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.upload-box.hidden {
    display: none;
}

/* Video Preview */
.video-preview-container {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-preview-wrapper {
    background: rgba(21, 21, 21, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-preview-wrapper:hover {
    border-color: var(--primary-color);
    transform: scale(1.01);
}

#videoPreview {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    background: #000;
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow-lg);
}

.video-info {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
}

.video-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.video-info p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.upload-progress-fill.indeterminate {
    width: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.4));
    background-size: 200% 100%;
    animation: indeterminate-slide 1.6s linear infinite;
}

@keyframes indeterminate-slide {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    gap: 1rem;
}

.upload-progress-info span {
    white-space: nowrap;
}

.upload-status-processing {
    display: inline-flex;
    align-items: center;
}

.upload-status-text {
    display: inline-block;
}

.upload-spinner {
    display: none;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    vertical-align: -0.1em;
}

.upload-dots {
    display: none;
}

.upload-status-processing .upload-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.video-actions button {
    min-width: 150px;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -1px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    cursor: none;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--primary-color);
    background: rgba(21, 21, 21, 0.7);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}


.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    cursor: none;
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    background: rgba(21, 21, 21, 0.7);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    background: rgba(21, 21, 21, 0.6);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.pricing-card:hover .price {
    transform: scale(1.1);
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .comparison-note {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.pricing-card button {
    width: 100%;
    margin-top: auto;
}

/* Match CTA sizes in pricing cards */
.pricing-card .btn-primary,
.pricing-card .btn-secondary,
.pricing-card .stripe-link-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Subscription status card */
.subscription-status {
    background: rgba(21, 21, 21, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.subscription-status h3 {
    margin-bottom: 1rem;
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.status-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.plan-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    cursor: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.plan-button.primary {
    background: var(--primary-color);
    color: #0a0a0a;
    border-color: transparent;
}


/* Footer */
.footer {
    background: transparent;
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.875rem;
        padding: 0.4rem 0.15rem;
    }

    .user-nav-avatar {
        width: 28px;
        height: 28px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .upload-box {
        padding: 2rem 1.5rem;
    }

    .video-preview-wrapper {
        padding: 1.5rem;
    }

    .video-actions {
        flex-direction: column;
    }

    .video-actions button {
        width: 100%;
    }
}
