@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
    --cream: #EFF0E4;
    --cream-soft: #F5F2EA;
    --dark: #0d2820;
    --teal: #1a9b8a;
    --teal-soft: #d4ede9;
    --orange: #F5A524;
    --red-soft: #fde8e8;
    --red-text: #c0392b;
    --border: rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --radius-sm: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #EAEED8 0%, #F2EADB 40%, #F5E6CE 100%);
    min-height: 100vh;
    color: var(--dark);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: transparent;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--teal);
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
}

.navbar-nav {
    display: flex;
    gap: 4px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(13, 40, 32, 0.7);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.nav-link:hover,
.nav-link.active {
    background: var(--teal-soft);
    color: var(--dark);
}

/* ===== PAGES ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 40px 80px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--teal);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 50px;
    background: white;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== CARDS ===== */
.card {
    background: var(--cream-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.dark-card {
    background: var(--dark);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.hero-banner {
    padding: 48px 52px;
}

.p-md {
    padding: 28px;
}

.p-lg {
    padding: 36px;
}

/* ===== TYPOGRAPHY ===== */
.label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
}

.label-light {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.55);
}

.heading-xl {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.1;
}

.heading-md {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.15;
}

.heading-sm {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
}

.text-white {
    color: white;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
}

.text-muted {
    color: rgba(13, 40, 32, 0.65);
    font-size: 13px;
    line-height: 1.6;
}

.bold {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.muted {
    color: rgba(13, 40, 32, 0.65);
    font-size: 13px;
}

.text-xs-muted {
    font-size: 12px;
    color: rgba(13, 40, 32, 0.6);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

/* ===== SPACING ===== */
.mt-sm {
    margin-top: 12px;
}

.mt-md {
    margin-top: 20px;
}

.mt-lg {
    margin-top: 28px;
}

.mt-xl {
    margin-top: 40px;
}

.mt-xxl {
    margin-top: 64px;
}

/* ===== TAGS ===== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: var(--teal-soft);
    color: var(--dark);
}

.tag-red {
    background: var(--red-soft);
    color: var(--red-text);
}

.tag-light {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.tag-green {
    background: rgba(26, 155, 138, 0.25);
    color: #6EE7B7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ===== GRIDS ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {

    .hero-grid,
    .grid-3,
    .grid-2,
    .grid-2-form {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        display: none;
    }

    .container {
        padding: 12px 16px 60px;
    }

    .hero-banner {
        padding: 28px 24px;
    }
}

/* ===== HOME HERO ===== */
.hero-left {
    padding: 48px;
}

.hero-right {
    padding: 40px;
}

.orange-dot {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin: 8px 0 10px;
}

.stat-desc {
    font-size: 12px;
    color: rgba(13, 40, 32, 0.6);
    line-height: 1.5;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== CARD FOOTER ===== */
.card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.user-meta {
    font-size: 12px;
    color: rgba(13, 40, 32, 0.6);
    margin-top: 2px;
}

/* ===== BIG NUMBER ===== */
.big-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin: 12px 0 8px;
}

/* ===== EXPLORE ===== */
.explore-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.explore-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 900px) {
    .explore-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== AI CENTER ===== */
.ai-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.ai-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

/* ===== LEADERBOARD ===== */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.rank-skills {
    font-size: 12px;
    color: rgba(13, 40, 32, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-score {
    text-align: right;
}

.score {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

.contributions {
    font-size: 11px;
    color: rgba(13, 40, 32, 0.6);
}

.badge-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.badge-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.badge-tag {
    font-size: 12px;
    color: rgba(13, 40, 32, 0.6);
    margin: 2px 0 10px;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #F5A524 0%, #E8B04B 40%, #1A9B8A 100%);
}

/* ===== AVATAR ===== */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
}

.avatar-orange {
    background: var(--orange);
}

.avatar-dark {
    background: var(--dark);
}

.avatar-teal {
    background: var(--teal);
}

/* ===== PROFILE ===== */
.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.profile-row-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== FORMS ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
}

.form-group textarea {
    resize: vertical;
}

/* ===== MESSAGES ===== */
.msg-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msg-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.msg-body {
    flex: 1;
}

.msg-from {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 6px;
}

.msg-time {
    background: var(--teal-soft);
    color: var(--dark);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== NOTIFICATIONS ===== */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
}

.notif-text {
    min-width: 0;
    flex: 1;
}

.notif-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-sub {
    font-size: 12px;
    color: rgba(13, 40, 32, 0.55);
    margin-top: 2px;
}

.tag-btn {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
}

.tag-btn.unread {
    background: white;
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tag-btn.read {
    background: var(--teal-soft);
    color: var(--dark);
}

/* ===== CREATE REQUEST ===== */
.create-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .create-layout {
        grid-template-columns: 1fr;
    }
}

.ai-guidance {
    display: flex;
    flex-direction: column;
}

.guidance-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.guidance-row.last {
    border-bottom: none;
}

/* ===== REQUEST DETAIL ===== */
.ai-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-badge {
    background: var(--teal-soft);
    color: var(--dark);
    font-size: 11px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 50px;
    white-space: nowrap;
    text-align: center;
}