:root {
    --primary: #ff2d55;
    --primary-hover: #e0244a;
    --dark-bg: #0f0f12;
    --card-bg: #1a1a1f;
    --text-main: #ffffff;
    --text-dim: #a0a0a5;
    --accent: #5856d6;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    max-width: 100%;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
nav {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 31, 0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    position: sticky;
    top: 15px;
    z-index: 1000;
    margin-top: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}

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

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #ffffff;
}

.btn-outline:hover {
    background: var(--glass);
}

/* Hero Section */
.hero {
    padding: 60px 0 40px 0;
    text-align: left;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #a0a0a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding-bottom: 80px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.profile-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.profile-img-container {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.profile-card:hover .profile-img {
    filter: brightness(1.1);
}

.profile-info {
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-meta {
    font-size: 14px;
    color: var(--text-dim);
}

.verified-badge {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Auth Page */
.auth-container {
    max-width: 450px;
    margin: 100px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.verification-code {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
    margin: 24px 0;
    padding: 20px;
    background: var(--glass);
    border-radius: 16px;
}

.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-details {
        padding-top: 20px;
    }
    .profile-gallery img {
        height: 450px !important;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        gap: 10px;
        padding: 12px 15px;
    }
    .nav-links {
        gap: 16px;
        font-size: 14px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .profile-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .profile-img-container {
        height: 320px;
    }
    .auth-container {
        margin: 40px auto;
        padding: 24px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    .nav-links {
        gap: 8px;
    }
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    nav {
        padding: 10px 12px;
    }
}

.pc-only {
    display: none !important;
}

@media (min-width: 992px) {
    .pc-only {
        display: block !important;
    }
}
