@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --sage: #FF6B1A;
    --sage-light: #FF8C4A;
    --sage-pale: #FFF0E8;
    --cream: #FFFFFF;
    --charcoal: #0A0A0A;
    --slate: #1A1A1A;
    --muted: #666666;
    --line: #E8E8E8;
    --accent: #0A0A0A;
    --accent-light: #F5F5F5;
    --white: #FFFFFF;
    --error: #FF3B3B;
    --r: 12px;
    --r-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.15;
}

a {
    text-decoration: none;
}

/* NAVBAR */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--sage);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--sage-pale);
    color: var(--sage);
}

.nav-btn {
    background: var(--sage);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--sage-light);
    transform: translateY(-1px);
}

.nav-btn.outline {
    background: transparent;
    border: 1.5px solid var(--charcoal);
    color: var(--charcoal);
}

.nav-btn.outline:hover {
    background: var(--accent-light);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255,107,26,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255,107,26,0.08) 0%, transparent 60%);
}

.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,26,0.10) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,107,26,0.15);
    border: 1px solid rgba(255,107,26,0.3);
    color: var(--sage-light);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--sage);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 em {
    color: var(--sage);
    font-style: italic;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.22s;
    text-decoration: none;
}

.btn-primary {
    background: var(--sage);
    color: white;
}

.btn-primary:hover {
    background: var(--sage-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,26,0.4);
}

.btn-secondary {
    background: white;
    color: var(--charcoal);
    border: 1.5px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--sage);
    color: var(--sage);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-num {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* HERO CARD */
.hero-visual {
    position: relative;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.match-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
}

.match-card-back {
    position: absolute;
    top: -16px;
    left: 16px;
    right: -16px;
    height: 100%;
    background: var(--sage-pale);
    border-radius: 20px;
    border: 1px solid rgba(255,107,26,0.2);
    z-index: -1;
}

.match-card-back2 {
    position: absolute;
    top: -28px;
    left: 28px;
    right: -28px;
    height: 100%;
    background: rgba(255,107,26,0.08);
    border-radius: 20px;
    border: 1px solid rgba(255,107,26,0.1);
    z-index: -2;
}

.match-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.match-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.match-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
}

.match-info p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
}

.match-badge {
    margin-left: auto;
    background: var(--sage);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
}

.match-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-bar-label {
    font-size: 12px;
    color: var(--muted);
    width: 80px;
    flex-shrink: 0;
}

.match-bar-track {
    flex: 1;
    height: 6px;
    background: var(--sage-pale);
    border-radius: 100px;
    overflow: hidden;
}

.match-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--sage);
}

.match-bar-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate);
    width: 30px;
    text-align: right;
}

.match-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tag {
    background: var(--sage-pale);
    color: var(--sage);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
}

.tag.accent {
    background: var(--charcoal);
    color: white;
}

/* FOOTER */
.footer {
    background: var(--charcoal);
    padding: 64px 24px 36px;
    color: rgba(255,255,255,0.5);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-logo span {
    color: var(--sage);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--sage-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-inner {
        height: auto;
        padding: 14px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}


.form-page {
    min-height: 100vh;
    padding: 120px 24px 60px;
    background: var(--cream);
}

.form-container {
    max-width: 620px;
    margin: 0 auto;
}

.progress-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 40px;
}

.progress-step {
    flex: 1;
    height: 4px;
    border-radius: 100px;
    background: var(--line);
}

.progress-step.active {
    background: var(--sage);
}

.form-header {
    margin-bottom: 32px;
}

.form-header.small-gap {
    margin-top: 42px;
}

.form-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sage);
    margin-bottom: 8px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 15px;
    color: var(--muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--charcoal);
    background: white;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--sage);
}

.checkbox-row label {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/*Login page*/

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 64px;
}

.login-left {
    background: var(--charcoal);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 12px;
}

.login-left p {
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    line-height: 1.6;
}

.login-testimonial {
    margin-top: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
}

.login-testimonial p {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1.65;
    font-style: italic;
    font-family: 'Fraunces', serif;
    font-weight: 300;
}

.login-testimonial-author {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.login-right {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-form h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.login-form p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
}

.divider {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    height: 1px;
    background: var(--line);
}

.divider span {
    background: var(--cream);
    padding: 0 12px;
    position: relative;
}

@media (max-width: 768px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 120px 24px 60px;
    }
}



.full-dashboard {
    padding-top: 110px;
    max-width: 1200px;
    margin: 0 auto;
}

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dash-topbar h1 {
    font-size: 30px;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.dash-topbar p {
    color: var(--muted);
    font-size: 15px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stat-card-num {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--charcoal);
}

.stat-card-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.props-table {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 60px;
}

.props-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px;
    padding: 14px 20px;
    background: var(--accent-light);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
}

.props-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.props-table-row:last-child {
    border-bottom: none;
}

.prop-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
}

.prop-addr {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.prop-cell {
    font-size: 14px;
    color: var(--slate);
}

.status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 100px;
    text-transform: capitalize;
}

.status-active {
    background: var(--sage-pale);
    color: var(--sage);
}

.table-link {
    color: var(--sage);
    font-size: 13px;
    font-weight: 700;
}

.empty-box {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 768px) {
    .full-dashboard {
        padding: 150px 18px 40px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .props-table-header,
    .props-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dash-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}


/*student dasboard*/

.property-hero {
    background: white;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.property-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--sage-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.property-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.property-info p {
    font-size: 14px;
    color: var(--muted);
}

.property-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate);
}

.match-detail {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.match-detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.match-detail-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.match-detail-header p {
    color: var(--muted);
    line-height: 1.6;
}

/*student property*/

.page-heading {
    font-size: 24px;
    margin-bottom: 20px;
}

.housemates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

.housemate-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1.5px solid var(--line);
    transition: all 0.22s;
    box-shadow: var(--shadow);
}

.housemate-card:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
}

.housemate-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.housemate-av {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.housemate-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    font-family: 'Fraunces', serif;
}

.housemate-role {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.housemate-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.student-bio {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 14px;
}

.student-actions {
    margin-top: 18px;
}

.btn-small {
    padding: 10px 16px;
    font-size: 13px;
}


/*student deatils*/

.student-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-big-avatar {
    width: 72px;
    height: 72px;
    font-size: 26px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.detail-box {
    background: var(--sage-pale);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255,107,26,0.15);
}

.detail-box span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 5px;
}

.detail-box strong {
    font-size: 14px;
    color: var(--charcoal);
    word-break: break-word;
}

.section-mini-title {
    font-size: 18px;
    margin: 28px 0 12px;
}

.big-bio {
    background: var(--accent-light);
    padding: 18px;
    border-radius: 14px;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}



/*propert-match*/

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.match-result-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.match-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--sage-pale);
    color: var(--sage);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Fraunces', serif;
    border: 4px solid rgba(255,107,26,0.15);
}

.match-students {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.match-student {
    text-align: center;
}

.mini-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--sage);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 18px;
}

.match-divider {
    font-size: 20px;
    font-weight: 700;
    color: var(--muted);
}

.match-breakdown {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.score-row strong {
    color: var(--sage);
}



/*send-message*/

.messages-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 64px);
    margin-top: 64px;
}

.messages-sidebar {
    border-right: 1px solid var(--line);
    overflow-y: auto;
    background: white;
}

.messages-header {
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.messages-header h3 {
    font-size: 18px;
}

.convo-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--charcoal);
}

.convo-item:hover,
.convo-item.active {
    background: var(--sage-pale);
}

.convo-av {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sage);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    flex-shrink: 0;
}

.convo-info {
    min-width: 0;
}

.convo-name {
    font-size: 14px;
    font-weight: 700;
}

.convo-preview {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.chat-area {
    display: flex;
    flex-direction: column;
    background: var(--cream);
}

.chat-header {
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-header h4 {
    font-size: 16px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.msg.them {
    background: white;
    color: var(--charcoal);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: var(--shadow);
}

.msg.me {
    background: var(--sage);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-input-row {
    background: white;
    border-top: 1px solid var(--line);
    padding: 16px 24px;
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    border-radius: 100px;
}

.chat-send {
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .messages-sidebar {
        height: 260px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
}