html, body {
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}
/* HOME PAGE */

.hero {
    min-height: 100vh;
    padding-bottom: 50px;
}

.hero-content {
    max-width: 1180px;
    margin: 45px auto 0;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.05;
    margin: 0 0 24px;
    color: #3d2a1d;
}

.hero-text p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #5c4b3f;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.btn.primary {
    background: #6b4f3a;
    color: white;
}

.btn.secondary {
    border: 1px solid #6b4f3a;
    color: #6b4f3a;
    background: transparent;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 26px;
    display: block;
}

.match-preview-card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 280px;
    background: white;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(61, 42, 29, 0.18);
}

.match-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.match-preview-header span {
    color: #7a5638;
    font-weight: 700;
}

.match-preview-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 12px;
    color: #5c4b3f;
}

.match-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.match-tags span {
    background: #f5f1ea;
    color: #6b4f3a;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* SIGNUP PAGE */

.signup-layout {
    max-width: 1080px;
    margin: 25px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 45px;
    align-items: start;
}

.signup-intro {
    padding-top: 45px;
}

.signup-intro h1 {
    font-size: 3rem;
    line-height: 1.08;
    margin: 0 0 22px;
    color: #3d2a1d;
}

.signup-intro p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #5c4b3f;
    margin-bottom: 34px;
}

.signup-steps p {
    margin-bottom: 22px;
    line-height: 1.6;
    color: #5c4b3f;
}

.signup-steps strong {
    color: #3d2a1d;
}

/* FORM CARD */

.auth-container {
    width: 100%;
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(61, 42, 29, 0.07);
}

.auth-container h2 {
    font-size: 1.8rem;
    margin: 0 0 20px;
    color: #3d2a1d;
}

.form-section {
    margin-bottom: 26px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3d2a1d;
}

.auth-container input,
.auth-container select,
.auth-container textarea {
    width: 100%;
    max-width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d7c7b8;
    border-radius: 12px;
    background: #fffdfb;
    font-size: 0.98rem;
    color: #222;
    box-sizing: border-box;
}

.auth-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #6b4c3a;
    cursor: pointer;
}
.auth-container input:focus,
.auth-container select:focus,
.auth-container textarea:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}

.section-divider {
    margin: 24px 0;
    border-top: 1px solid #eadfce;
}

.primary-btn,
.auth-container button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #6b4f3a;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

/* MOBILE */

@media (max-width: 900px) {
    .nav {
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
    }

    .signup-layout {
        grid-template-columns: 1fr;
        padding: 0 22px;
        gap: 30px;
    }

    .signup-intro {
        padding-top: 20px;
    }

    .signup-intro h1 {
        font-size: 2.3rem;
    }

    .auth-container {
        padding: 24px;
    }
}
/* FIX NAV DISPLAY */

.nav {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: #5a3e2b;
}

.nav-links {
    display: flex !important;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #5a3e2b;
    font-size: 1rem;
    font-weight: 500;
}
/* CREATE PROFILE PAGE */

.profile-page {
    width: 100%;
    max-width: 820px;
    margin: 30px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.profile-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(61, 42, 29, 0.07);
}

.profile-card h1 {
    margin-top: 0;
    font-size: 2.4rem;
}

.profile-card h2 {
    margin-top: 28px;
    font-size: 1.5rem;
}

.profile-card input,
.profile-card select,
.profile-card textarea {
    width: 100%;
    max-width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d7c7b8;
    border-radius: 12px;
    background: #fffdfb;
    font-size: 0.98rem;
    box-sizing: border-box;
}

.profile-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #6b4c3a;
    cursor: pointer;
}

.profile-card textarea {
    min-height: 90px;
    resize: vertical;
}

.profile-card .form-group {
    margin-bottom: 14px;
}

.profile-card small {
    display: block;
    margin-top: 5px;
    color: #5c4b3f;
}
/* CREATE PROFILE PAGE FIX */

.profile-page {
    width: 100%;
    max-width: 960px;
    margin: 30px auto;
    padding: 0 30px 50px;
    box-sizing: border-box;
}

.profile-card {
    width: 100%;
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(61, 42, 29, 0.07);
}

.profile-card h1 {
    font-size: 2.5rem;
    margin: 0 0 18px;
    color: #3d2a1d;
}

.profile-card h3 {
    font-size: 1.4rem;
    margin: 28px 0 18px;
    color: #3d2a1d;
}

.profile-card label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #3d2a1d;
}

.profile-card input,
.profile-card textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7c7b8;
    border-radius: 12px;
    background: #fffdfb;
    font-size: 1rem;
    box-sizing: border-box;
}

.profile-card textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-card .form-group {
    margin-bottom: 18px;
}

.profile-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-card small {
    display: block;
    margin-top: 6px;
    color: #5c4b3f;
}

.profile-card button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #6b4f3a;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}
/* PROFILE FORM TEXT COLORS */

.profile-card,
.profile-card h1,
.profile-card h2,
.profile-card h3,
.profile-card label,
.profile-card p,
.profile-card small {
    color: #3d2a1d;
}

.profile-card input,
.profile-card textarea {
    color: #3d2a1d;
    background: #fffdfb;
    font-family: inherit;
    font-size: 1rem;
}
/* MATCHES PAGE */

.matches-page {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 24px 60px;
}

.matches-page h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #3d2a1d;
    text-align: center;
}

.match-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(61, 42, 29, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: #6b4f3a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    flex-shrink: 0;
}

.match-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2rem;
    color: #3d2a1d;
}

.match-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #5c4b3f;
    font-weight: 600;
}

.match-score {
    display: inline-block;
    background: #f5f1ea;
    color: #6b4f3a;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 20px;
}

.match-section {
    margin-bottom: 18px;
}

.match-section strong {
    color: #3d2a1d;
}

.match-reasons {
    margin-top: 14px;
    padding-left: 18px;
    color: #5c4b3f;
}

.empty-state {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    color: #5c4b3f;
}
.match-card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eadfce;
    flex-wrap: wrap;
}

.score-badge {
    background: #f5f1ea;
    color: #6b4f3a;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.success-message {
    background: #e9f5ed;
    color: #2a5f3e;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.error-message {
    background: #fdf0f0;
    color: #a83232;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}