* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #222230;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #f56565;
    --accent-light: #fc8181;
    --accent-dark: #e53e3e;
    --accent-glow: rgba(245, 101, 101, 0.3);
    --gradient-start: #f56565;
    --gradient-end: #ed64a6;
    --success: #48bb78;
    --error: #fc8181;
    --warning: #f6ad55;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --glass-bg: rgba(26, 26, 37, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-google {
    background: #ffffff;
    color: #374151;
    font-weight: 500;
    padding: 16px 28px;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background: #f9fafb;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 20px;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.landing-page {
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, var(--accent-glow) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(237, 100, 166, 0.15) 0%, transparent 40%);
    animation: gradientMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, 5%) rotate(5deg); }
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.hero {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.accent {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

.username-checker {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0 20px;
    flex: 1;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.prefix {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 16px;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 18px 10px;
    outline: none;
    width: 100%;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.username-status {
    font-size: 14px;
    min-height: 24px;
    font-weight: 500;
}

.username-status.available {
    color: var(--success);
}

.username-status.taken {
    color: var(--error);
}

.username-status.checking {
    color: var(--text-muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin-top: 100px;
    padding: 0 24px;
}

.feature {
    text-align: center;
    padding: 40px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.landing-footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 50%);
    pointer-events: none;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--text-primary);
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.logo-small {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border-radius: var(--radius-lg);
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 16px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.input-with-prefix:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-with-prefix .prefix {
    padding-left: 18px;
    color: var(--text-muted);
}

.input-with-prefix input {
    border: none;
    background: transparent;
}

.input-with-prefix input:focus {
    box-shadow: none;
}

.error-message {
    color: var(--error);
    margin-top: 20px;
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(252, 129, 129, 0.1);
    border-radius: var(--radius-md);
}

.auth-footer {
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 15px;
}

.benefits-list {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.benefit-icon {
    font-size: 20px;
    color: var(--accent);
}

.profile-page {
    min-height: 100vh;
    transition: var(--transition);
}

.profile-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px;
}

.sponsorship-banner {
    margin-bottom: 28px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: var(--shadow-glow);
}

.sponsorship-banner a {
    display: block;
    text-decoration: none;
}

.sponsorship-banner img {
    width: 100%;
    display: block;
}

.sponsor-text {
    padding: 20px 24px;
    color: white;
}

.sponsor-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.sponsor-name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.sponsor-message {
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.9;
}

.sponsor-url {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
    word-break: break-all;
    color: var(--accent-light);
}

.sponsor-url-small {
    display: block;
    font-size: 11px;
    margin-top: 6px;
    opacity: 0.6;
    word-break: break-all;
    color: var(--accent);
}

.sponsor-link-display {
    display: block;
    font-size: 13px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    word-break: break-all;
    color: #ffffff;
    font-weight: 500;
}

.sponsorship-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-card);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.sponsorship-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-card-hover);
    text-decoration: none;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.display-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bio {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.link-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    text-decoration: none;
}

.link-button.rounded {
    border-radius: var(--radius-lg);
}

.link-button.pill {
    border-radius: 50px;
}

.link-button.sharp {
    border-radius: 0;
}

.link-icon {
    font-size: 20px;
    opacity: 0.8;
}

.link-title {
    flex: 1;
    font-size: 15px;
}

.embed-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
}

.embed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.embed-container iframe {
    width: 100%;
    border: none;
}

.youtube-embed iframe {
    aspect-ratio: 16/9;
}

.spotify-embed iframe {
    height: 152px;
}

.soundcloud-embed iframe {
    height: 166px;
}

.cheerad-widget-container {
    margin-top: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.profile-footer {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-link img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.not-found-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.not-found-container {
    text-align: center;
    padding: 48px;
}

.not-found-container h1 {
    font-size: 32px;
    margin: 28px 0 16px;
}

.not-found-container p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.back-home {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-secondary);
}

.sponsor-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.sponsor-container {
    width: 100%;
    max-width: 500px;
}

.sponsor-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.sponsor-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 16px;
}

.price-info {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 36px;
    border: 1px solid var(--border);
}

.price {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

.payment-options,
.token-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.payment-option,
.token-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover,
.token-option:hover {
    border-color: var(--border-light);
}

.payment-option:has(input:checked),
.token-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(245, 101, 101, 0.05);
}

.crypto-options {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.status-message {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.status-message.success {
    color: var(--success);
    background: rgba(72, 187, 120, 0.1);
}

.status-message.error {
    color: var(--error);
    background: rgba(252, 129, 129, 0.1);
}

.status-message.processing {
    color: var(--warning);
    background: rgba(246, 173, 85, 0.1);
}

@media (max-width: 768px) {
    .landing-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .username-checker {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
        margin-top: 60px;
        gap: 16px;
    }
    
    .feature {
        padding: 32px 24px;
    }
    
    .auth-card,
    .sponsor-card {
        padding: 36px 28px;
    }
    
    .profile-container {
        padding: 24px 16px;
    }
}

.sponsors-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.sponsors-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.sponsor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sponsor-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sponsor-card .sponsor-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sponsor-card .sponsor-msg {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.claim-section {
    margin-top: 40px;
    text-align: center;
}

.claim-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.claim-link:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 13px;
}

.avatar-upload input[type="url"] {
    flex: 1;
    min-width: 150px;
}
