@font-face {
    font-family: 'ForFansCustom';
    src: url('/forfans-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.brand-font {
    font-family: 'ForFansCustom', sans-serif !important;
}

:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.theme-light {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body.theme-sunset {
    --bg-color: #1a0b0b;
    --card-bg: rgba(61, 28, 28, 0.7);
    --text-primary: #fff1f1;
    --text-secondary: #fca5a5;
    --accent-color: #f87171;
    --glass-border: rgba(248, 113, 113, 0.1);
}

body.theme-midnight {
    --bg-color: #020617;
    --card-bg: rgba(15, 23, 42, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 500px;
    padding-bottom: 40px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#app.loaded {
    opacity: 1;
}

/* Header & Banner */
.profile-header {
    position: relative;
    width: 100%;
    height: 240px;
    margin-bottom: 60px;
}

.banner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.avatar-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    padding: 4px;
    background: var(--bg-color);
    border-radius: 50%;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #334155;
}

.level-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid var(--bg-color);
    white-space: nowrap;
    z-index: 10;
}

/* Info Section */
.profile-info {
    text-align: center;
    padding: 0 20px;
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.name {
    font-size: 24px;
    font-weight: 700;
}

.verify-icon {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 90%;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.bio-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.read-more-btn:hover {
    opacity: 0.8;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px;
    margin: 0 20px 32px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links Section */
.links-container {
    padding: 0 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.social-icon:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.custom-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-card {
    position: relative;
    width: 100%;
    background: #121212;
    /* Darker background for the info section */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.link-banner-container {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #1e293b;
    overflow: hidden;
}

.link-banner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.link-card:hover .link-banner {
    transform: scale(1.05);
}

.link-icon-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.link-icon-overlay i {
    color: #000;
    font-size: 24px;
}

.link-info {
    padding: 16px 20px;
    background: #121212;
}

.link-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 2px;
    display: block;
}

.link-subtitle {
    font-size: 14px;
    color: #888888;
    display: block;
}

/* Loading & 404 States */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.error-container {
    text-align: center;
    padding-top: 100px;
}

.error-container h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn {
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

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

/* Profile Footer */
.profile-footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* Landing Page Styles */
#landing-page {
    width: 100vw;
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand-text {
    font-family: 'ForFansCustom', sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 10px 5px;
    line-height: 1;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #f8fafc;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.highlight {
    color: #6366f1;
}

.hero-subtitle {
    font-size: 20px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    color: white !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.app-availability {
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
}

.app-mockup {
    position: absolute;
    width: 250px;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-main {
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: 2;
}

.mockup-secondary {
    top: 55%;
    left: 65%;
    transform: translate(-50%, -50%) rotate(10deg);
    z-index: 1;
    opacity: 0.8;
}

/* Features */
.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3b82f6;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Showcase */
.showcase {
    background: #020617;
    padding: 120px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.showcase.accent-bg {
    background: #0f172a;
}

.showcase-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.showcase-content.reverse {
    direction: ltr;
}

.showcase-text h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
}

.showcase-text p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.6;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #f8fafc;
}

.check-list i {
    color: #10b981;
}

.full-width-mockup {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px;
    background-color: #020617;
}

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

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .brand-text {
        font-size: 26px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 20px;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .mockup-container {
        height: 420px;
    }

    .app-mockup {
        width: 200px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .showcase-content.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .check-list li {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 500px) {
    .profile-header {
        height: 200px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero {
        padding: 40px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 8px;
    }
}