:root {
    --bg-main: #000000;
    --card-bg: #0c0c0e;
    --border-color: #27272a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --btn-bg: #18181b;
    --btn-bg-hover: #27272a;
    --banner-bg: #f4f4f5;
    --avatar-border: #0c0c0e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center; /* Exactly center vertically */
    min-height: 100vh;
    padding: 2rem 1rem;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 70%);
}

.card-container {
    width: 100%;
    max-width: 480px; /* Thinner than before, looks more like a profile card */
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    overflow: hidden; /* For the banner */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Banner overlaying the top */
.banner {
    width: 100%;
    height: 180px;
    background-color: var(--banner-bg);
    position: relative;
    /* Simulated grunge/graffiti backdrop using repeating gradients fallback if image fails */
    background-color: var(--banner-bg);
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

/* Avatar Section perfectly centered */
.avatar-section {
    position: relative;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    position: absolute;
    top: -65px; /* Pull it up onto the banner */
    /* It's inside a flex column so it will naturally center if we just adjust top. Wait, no, absolute positioning takes it out of flow. */
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
    border: 8px solid var(--avatar-border);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: hidden; /* For the image to stay circular */
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-badge {
    position: absolute;
    top: 75px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e1f22;
    border: 1px solid #313338;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #dbdee1;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Content Area */
.content {
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.06em;
    margin-bottom: 24px;
    /* Simulate the 3D chrome metallic effect of the "dimi!" text */
    background: linear-gradient(180deg, #ffffff 0%, #b3b3b3 40%, #ffffff 60%, #4a4a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,1)) drop-shadow(0 0 10px rgba(255,255,255,0.1));
    text-transform: lowercase; /* match dimi! */
}

/* Links */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--btn-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.1, 0.7, 0.1, 1);
    border: 1px solid #27272a;
}

.link-btn:hover {
    background-color: var(--btn-bg-hover);
    border-color: #3f3f46;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.link-btn:hover .icon {
    color: #ffffff;
}

.link-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Animations */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.95) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.card-container {
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    z-index: 2;
}

/* Footer Styling */
.site-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    z-index: 1;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--text-primary);
}

/* Legal Pages Styling */
.legal-content {
    text-align: left;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
}

.legal-content h2 {
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 22px;
}

.legal-content h3 {
    color: #dbdee1;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content a {
    color: #3b82f6;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    align-self: flex-start;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .card-container {
        border-radius: 12px;
    }
    
    .content {
        padding: 30px 20px 24px 20px;
    }
    
    .banner {
        height: 140px;
    }
    
    .avatar-wrapper {
        width: 110px;
        height: 110px;
        top: -55px;
    }
}
