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

/* Body for auth pages only */
body.auth {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Default body for pages with navbar */
body:not(.auth) {
    font-family: 'Nunito', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: block;
}

.auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-form-body {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-heading {
    text-align: center;
    margin-bottom: 10px;
}

.login-form-form {
    width: 100%;
}

.login-form-form h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.login-form-input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.login-form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form-input::placeholder {
    color: #999;
}

.login-form-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-form-button:active {
    transform: translateY(0);
}

.login-form-form p {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.login-form-form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-form-form a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-form-body {
        padding: 30px 25px;
    }
    
    .login-form-form h2 {
        font-size: 24px;
    }
    
    .login-form-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .login-form-button {
        padding: 12px;
        font-size: 16px;
    }
}

.profile-page {
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.18), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(118, 75, 162, 0.18), transparent 35%),
                #f5f5f5;
    color: #0f1230;
}

.profile-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.profile-hero {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 18, 48, 0.12);
    margin-top: 32px;
}

.profile-hero__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    filter: blur(20px);
    z-index: 0;
}

.profile-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    gap: 16px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    background: #f0f0f6;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-nameblock h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f1230;
}

.profile-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: #0f1230;
    background: #f1f2fb;
}

.pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 18, 48, 0.1);
}

.pill-button.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.25);
}

.pill-button.ghost {
    background: transparent;
    border-color: #e2e4f2;
    color: #0f1230;
}

.pill-button.danger {
    background: #ffe8ec;
    color: #d73a49;
    border-color: #ffd1da;
}

.profile-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0 20px 20px;
}

.profile-stat-card {
    background: #fff;
    border: 1px solid #e9e9f2;
    border-radius: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 14px 30px rgba(15, 18, 48, 0.08);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.profile-stat-card .label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6f89;
    margin-bottom: 6px;
}

.profile-stat-card .value {
    font-size: 22px;
    font-weight: 800;
    color: #0f1230;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 18, 48, 0.12);
}

.profile-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.profile-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px 22px;
    border: 1px solid #ececf5;
    box-shadow: 0 16px 38px rgba(15, 18, 48, 0.08);
}

.profile-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #0f1230;
}

.profile-card p {
    color: #4b4f68;
    line-height: 1.6;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .profile-hero__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
    }
}

.page-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    font-family: "Nunito", sans-serif;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom:20px;
}
.eyebrow {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667eea;
    margin: 0 0 6px 0;
}

.section-card {
    background: white;
    border: 1px solid #ececf5;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(15,18,48,0.08);
}

.item-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap:14px;
}

.post-card{
    background: white;
    border: 1px solid #ececf5;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(15,18,48,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.post-card__desc {
    color: #4b4f68;
    line-height: 1.5;
}

.post-card__meta {
    display: flex;
    gap: 12px;
    color: #6b6f89;
    font-weight: 700;
}

.mod-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff9f1c 0%, #ff6b6b 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.og-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212, 0, 255, 0.3);
    animation: pulse-purple 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 159, 28, 0.4);
    }
}

@keyframes pulse-purple {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }
}