/* =========================================================
   OURSPACEWORLD — MAIN STYLE.CSS
   Homepage, Login, Register, Header, Footer and Forms
========================================================= */


/* =========================================================
   1. DESIGN VARIABLES
========================================================= */

:root {
    --color-primary: #2f6f4e;
    --color-primary-dark: #1e4f38;
    --color-primary-light: #e5f2eb;

    --color-secondary: #4f9b68;
    --color-secondary-light: #eef8f1;

    --color-accent: #d7a928;
    --color-accent-dark: #a77c0d;
    --color-accent-light: #fff4cf;

    --color-charcoal: #1f3127;
    --color-text: #33473a;
    --color-text-light: #53665a;
    --color-text-muted: #7b8b81;

    --color-background: #f4f7f5;
    --color-background-alt: #e9efeb;
    --color-border: #d8e2db;

    --color-danger: #b94a48;
    --color-danger-light: #fbeaea;

    --color-success: #2f7c4d;
    --color-success-light: #e6f5eb;

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;
    --radius-pill: 999px;

    --shadow-small:
        0 5px 18px rgba(31, 49, 39, 0.07);

    --shadow-medium:
        0 12px 32px rgba(31, 49, 39, 0.11);

    --shadow-large:
        0 20px 55px rgba(31, 49, 39, 0.16);

    --transition-fast: 180ms ease;
    --transition-medium: 300ms ease;
}


/* =========================================================
   2. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background: var(--color-background);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   3. ACCESSIBILITY
========================================================= */

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--color-primary-dark);
    border-radius: 10px;
    font-weight: 800;
}

.skip-link:focus {
    top: 20px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}


/* =========================================================
   4. GENERAL LAYOUT
========================================================= */

.container {
    width: min(calc(100% - 32px), 1180px);
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.section-heading h2 {
    color: var(--color-charcoal);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.section-heading p {
    margin-top: 16px;
    color: var(--color-text-light);
    font-size: 1rem;
}


/* =========================================================
   5. BUTTONS
========================================================= */

.button,
button.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.button:hover,
button.button:hover {
    transform: translateY(-2px);
}

.button-large {
    min-height: 52px;
    padding: 13px 25px;
    font-size: 0.9rem;
}

.button-primary {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );
    box-shadow:
        0 8px 22px rgba(47, 111, 78, 0.22);
}

.button-primary:hover {
    box-shadow:
        0 12px 30px rgba(47, 111, 78, 0.3);
}

.button-secondary {
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
    border-color: #c9ddcf;
}

.button-outline {
    color: var(--color-primary-dark);
    background: #ffffff;
    border-color: var(--color-border);
}

.button-outline-light {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
}

.button-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.button-danger {
    color: #ffffff;
    background: var(--color-danger);
}

button:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}


/* =========================================================
   6. HEADER AND BRAND
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--color-charcoal);
    font-weight: 900;
}

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    place-items: center;
    background:
        linear-gradient(
            145deg,
            var(--color-primary-light),
            var(--color-accent-light)
        );
    border: 1px solid var(--color-border);
    border-radius: 50%;
    box-shadow: var(--shadow-small);
    font-size: 1.5rem;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-name {
    color: var(--color-charcoal);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.brand-tagline {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.public-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--color-text-light);
    font-size: 0.82rem;
    font-weight: 800;
}

.nav-link:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   7. HOMEPAGE HERO
========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 105px 0 100px;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(215, 169, 40, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 8% 75%,
            rgba(79, 155, 104, 0.14),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            var(--color-secondary-light)
        );
}

.hero-section::before {
    position: absolute;
    top: -180px;
    right: -130px;
    width: 500px;
    height: 500px;
    content: "";
    border: 1px solid rgba(47, 111, 78, 0.1);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    gap: 65px;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(350px, 0.95fr);
}

.hero-content h1 {
    max-width: 760px;
    color: var(--color-charcoal);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-description {
    max-width: 650px;
    margin: 24px 0 30px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 26px;
    color: var(--color-text-light);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
}

.world-center {
    position: relative;
    z-index: 4;
    width: 235px;
    height: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 35% 25%,
            rgba(255, 255, 255, 0.2),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--color-primary),
            var(--color-primary-dark)
        );
    border: 8px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: var(--shadow-large);
    text-align: center;
}

.world-icon {
    font-size: 5rem;
    line-height: 1;
}

.world-center strong {
    font-size: 1rem;
}

.world-center > span:last-child {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
}

.world-orbit {
    position: absolute;
    border: 1px solid rgba(47, 111, 78, 0.2);
    border-radius: 50%;
}

.world-orbit-one {
    width: 360px;
    height: 360px;
}

.world-orbit-two {
    width: 455px;
    height: 455px;
    border-style: dashed;
}

.floating-card {
    position: absolute;
    z-index: 5;
    width: 225px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-medium);
}

.floating-card strong {
    display: block;
    color: var(--color-charcoal);
    font-size: 0.82rem;
}

.floating-card span {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.67rem;
    line-height: 1.4;
}

.floating-icon {
    flex-shrink: 0;
    font-size: 1.7rem !important;
}

.floating-card-friends {
    top: 26px;
    left: 0;
}

.floating-card-community {
    top: 150px;
    right: -20px;
}

.floating-card-share {
    bottom: 25px;
    left: 12px;
}


/* =========================================================
   8. ABOUT AND MISSION
========================================================= */

.about-section {
    background: #ffffff;
}

.mission-grid {
    display: grid;
    gap: 24px;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.mission-card {
    padding: 30px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition:
        transform var(--transition-medium),
        box-shadow var(--transition-medium);
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    place-items: center;
    background: var(--color-primary-light);
    border-radius: 17px;
    font-size: 1.6rem;
}

.mission-card h3,
.feature-card h3 {
    color: var(--color-charcoal);
    font-size: 1.05rem;
}

.mission-card p,
.feature-card p {
    margin-top: 10px;
    color: var(--color-text-light);
    font-size: 0.87rem;
}


/* =========================================================
   9. FEATURES
========================================================= */

.features-section {
    background: var(--color-background);
}

.features-grid {
    display: grid;
    gap: 24px;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.feature-card {
    position: relative;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition:
        transform var(--transition-medium),
        box-shadow var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-medium);
}

.feature-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #cad8cf;
    font-size: 1rem;
    font-weight: 900;
}


/* =========================================================
   10. COMMUNITY
========================================================= */

.community-section {
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(215, 169, 40, 0.23),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--color-primary-dark),
            var(--color-primary)
        );
}

.community-container {
    display: grid;
    align-items: center;
    gap: 60px;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);
}

.community-section .eyebrow {
    color: var(--color-accent-light);
}

.community-content h2 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.13;
    letter-spacing: -0.045em;
}

.community-content p {
    max-width: 560px;
    margin: 18px 0 24px;
    color: rgba(255, 255, 255, 0.82);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
}

.text-link:hover {
    gap: 13px;
}

.community-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
}

.community-tag {
    padding: 11px 17px;
    color: var(--color-charcoal);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-small);
    font-size: 0.78rem;
    font-weight: 800;
}


/* =========================================================
   11. VALUES
========================================================= */

.values-section {
    background: #ffffff;
}

.values-banner {
    display: grid;
    align-items: center;
    gap: 45px;
    padding: 50px;
    background:
        linear-gradient(
            145deg,
            var(--color-secondary-light),
            var(--color-accent-light)
        );
    border: 1px solid var(--color-border);
    border-radius: 30px;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.9fr);
}

.values-content h2 {
    color: var(--color-charcoal);
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.13;
    letter-spacing: -0.045em;
}

.values-content p {
    margin-top: 15px;
    color: var(--color-text-light);
}

.values-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.values-list span {
    padding: 10px 16px;
    color: var(--color-primary-dark);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-small);
    font-size: 0.78rem;
    font-weight: 900;
}


/* =========================================================
   12. CALL TO ACTION
========================================================= */

.cta-section {
    background: var(--color-background);
}

.cta-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: center;
    gap: 30px;
    padding: 54px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(215, 169, 40, 0.35),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--color-primary-dark),
            var(--color-primary)
        );
    border-radius: 34px;
    box-shadow: var(--shadow-large);
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
}

.cta-globe {
    font-size: 4.4rem;
}

.cta-card .eyebrow {
    color: var(--color-accent-light);
}

.cta-content h2 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.13;
    letter-spacing: -0.045em;
}

.cta-content p {
    max-width: 620px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


/* =========================================================
   13. FOOTER
========================================================= */

.site-footer {
    padding: 60px 0 28px;
    color: #dce9e1;
    background: var(--color-charcoal);
}

.footer-container {
    display: grid;
    gap: 60px;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 1fr);
}

.brand-footer .brand-name {
    color: #ffffff;
}

.brand-footer .brand-tagline {
    color: #afc1b6;
}

.footer-brand > p {
    max-width: 420px;
    margin-top: 18px;
    color: #b7c9be;
    font-size: 0.82rem;
}

.footer-links {
    display: grid;
    gap: 32px;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h3 {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.86rem;
}

.footer-column a,
.footer-column span {
    color: #b7c9be;
    font-size: 0.77rem;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 22px;
    color: #9db0a5;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
}

.founder-name {
    color: #ffffff;
    font-weight: 800;
}

.founder-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 3px 8px;
    color: var(--color-charcoal);
    background: var(--color-accent-light);
    border-radius: var(--radius-pill);
    font-size: 0.66rem;
    font-weight: 900;
}


/* =========================================================
   14. FORM PAGES
========================================================= */

.form-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(79, 155, 104, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 5%,
            rgba(215, 169, 40, 0.16),
            transparent 26%
        ),
        var(--color-background);
}

.form-page-main {
    width: 100%;
    display: grid;
    flex: 1;
    place-items: center;
    padding: 55px 20px;
}

.form-card {
    width: min(100%, 540px);
    padding: 42px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    box-shadow: var(--shadow-large);
}

.form-heading {
    margin-bottom: 28px;
    text-align: center;
}

.form-heading .brand-icon {
    margin: 0 auto 14px;
}

.form-heading h1 {
    color: var(--color-charcoal);
    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.form-heading p {
    margin-top: 12px;
    color: var(--color-text-light);
    font-size: 0.87rem;
}

.form-card form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    color: var(--color-charcoal);
    font-size: 0.76rem;
    font-weight: 800;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-control,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    min-height: 49px;
    padding: 11px 14px;
    color: var(--color-text);
    background: #fbfcfb;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    outline: none;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 4px rgba(47, 111, 78, 0.1);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 68px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 4px 7px;
    color: var(--color-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 900;
}

.forgot-password-link {
    padding: 0;
    color: var(--color-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.76rem;
}

.checkbox-label input {
    margin-top: 4px;
    accent-color: var(--color-primary);
}

.form-message {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 750;
}

.form-message.is-visible {
    display: block;
}

.form-message.success {
    color: #25613c;
    background: var(--color-success-light);
    border: 1px solid #bddfc9;
}

.form-message.error {
    color: #8b3737;
    background: var(--color-danger-light);
    border: 1px solid #efc6c6;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

.form-divider::before,
.form-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--color-border);
}

.create-account-button {
    width: 100%;
}

.login-help-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 24px;
    padding: 16px;
    background: var(--color-secondary-light);
    border: 1px solid #d6e9dc;
    border-radius: 14px;
}

.login-help-icon {
    flex-shrink: 0;
    font-size: 1.4rem;
}

.login-help-card strong {
    color: var(--color-charcoal);
    font-size: 0.78rem;
}

.login-help-card p {
    margin-top: 4px;
    color: var(--color-text-light);
    font-size: 0.7rem;
    line-height: 1.5;
}


/* =========================================================
   15. REGISTER PAGE SUPPORT
========================================================= */

.register-card {
    width: min(100%, 700px);
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.full-width {
    grid-column: 1 / -1;
}

.form-help {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.terms-text {
    color: var(--color-text-light);
    font-size: 0.74rem;
}

.terms-text a {
    color: var(--color-primary);
    font-weight: 800;
}


/* =========================================================
   16. SIMPLE FOOTER
========================================================= */

.simple-footer {
    padding: 24px 0;
    color: var(--color-text-muted);
    background: #ffffff;
    border-top: 1px solid var(--color-border);
}

.simple-footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.72rem;
}


/* =========================================================
   17. MODAL
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(19, 33, 25, 0.65);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.modal-overlay.is-open {
    display: grid;
}

.modal-card {
    position: relative;
    width: min(100%, 480px);
    padding: 38px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: var(--shadow-large);
    text-align: center;
    animation: modalOpen 220ms ease;
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--color-text-muted);
    background: var(--color-background);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.35rem;
}

.modal-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 3rem;
}

.modal-card h2 {
    color: var(--color-charcoal);
    font-size: 1.6rem;
}

.modal-card p {
    margin: 10px 0 18px;
    color: var(--color-text-light);
    font-size: 0.86rem;
}

.modal-card .button {
    margin-top: 8px;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   18. TABLET RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .public-navigation {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        width: min(100%, 600px);
        margin-inline: auto;
    }

    .mission-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .community-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .community-content p {
        margin-inline: auto;
    }

    .values-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .values-list {
        justify-content: center;
    }

    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-content p {
        margin-inline: auto;
    }

    .cta-actions {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   19. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(calc(100% - 24px), 1180px);
    }

    .section {
        padding: 68px 0;
    }

    .header-container {
        min-height: 70px;
        gap: 12px;
    }

    .brand-tagline {
        display: none;
    }

    .header-actions .button {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 0.72rem;
    }

    .header-actions .button-outline {
        display: none;
    }

    .hero-section {
        padding: 76px 0 70px;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 430px;
        transform: scale(0.88);
    }

    .floating-card {
        width: 190px;
        padding: 12px;
    }

    .floating-card-friends {
        left: -10px;
    }

    .floating-card-community {
        right: -10px;
    }

    .floating-card-share {
        left: 0;
    }

    .mission-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .values-banner,
    .cta-card {
        padding: 34px 24px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .button {
        width: 100%;
    }

    .footer-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-bottom,
    .simple-footer-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-page-main {
        padding: 35px 14px;
    }

    .form-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }
}


/* =========================================================
   20. SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .brand-icon {
        width: 39px;
        height: 39px;
        font-size: 1.3rem;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .header-actions .button-primary {
        padding-inline: 12px;
    }

    .hero-visual {
        min-height: 390px;
        margin-top: -20px;
        transform: scale(0.77);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 26px 18px;
    }
}

/* =========================================================
   OURSPACEWORLD SITE-WIDE DARK THEME
========================================================= */

/* ---------------------------------------------------------
   LIGHT THEME DEFAULTS
--------------------------------------------------------- */

:root {
    color-scheme: light;

    --theme-page-background: #f5f7f5;
    --theme-surface: #ffffff;
    --theme-surface-alt: #f0f4f1;
    --theme-input-background: #ffffff;

    --theme-text: #263129;
    --theme-text-soft: #536158;
    --theme-text-muted: #78847c;

    --theme-border: #dce4de;
    --theme-hover: #edf4ef;

    --theme-header-background: rgba(255, 255, 255, 0.96);
    --theme-footer-background: #edf2ee;

    --theme-shadow:
        0 12px 32px rgba(33, 54, 40, 0.1);
}


/* ---------------------------------------------------------
   DARK THEME VARIABLES
--------------------------------------------------------- */

html[data-theme="dark"] {
    color-scheme: dark;

    --theme-page-background: #101713;
    --theme-surface: #19231d;
    --theme-surface-alt: #202c24;
    --theme-input-background: #202c24;

    --theme-text: #edf4ef;
    --theme-text-soft: #c3d0c7;
    --theme-text-muted: #93a198;

    --theme-border: #34443a;
    --theme-hover: #274031;

    --theme-header-background: rgba(20, 29, 24, 0.96);
    --theme-footer-background: #151e19;

    --theme-shadow:
        0 14px 36px rgba(0, 0, 0, 0.32);

    --color-text: #edf4ef;
    --color-text-light: #c3d0c7;
    --color-text-muted: #93a198;
    --color-charcoal: #f5f8f6;

    --color-background: #101713;
    --color-background-alt: #202c24;
    --color-border: #34443a;

    --color-primary-light: #223d2c;
    --color-secondary-light: #29392f;
    --color-accent-light: #463e22;

    --shadow-small:
        0 8px 22px rgba(0, 0, 0, 0.22);

    --shadow-medium:
        0 14px 34px rgba(0, 0, 0, 0.3);

    --shadow-large:
        0 22px 52px rgba(0, 0, 0, 0.4);
}


/* ---------------------------------------------------------
   PAGE
--------------------------------------------------------- */

html,
body {
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

html[data-theme="dark"] body {
    color: var(--theme-text);
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(72, 157, 101, 0.12),
            transparent 30%
        ),
        var(--theme-page-background);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] strong {
    color: var(--theme-text);
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] label,
html[data-theme="dark"] small {
    color: var(--theme-text-soft);
}

html[data-theme="dark"] a {
    color: inherit;
}


/* ---------------------------------------------------------
   SITE HEADER AND NAVIGATION
--------------------------------------------------------- */

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .main-header,
html[data-theme="dark"] header:not(.dashboard-header) {
    background: var(--theme-header-background);
    border-color: var(--theme-border);
    box-shadow:
        0 7px 26px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .site-logo,
html[data-theme="dark"] .logo,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand-name {
    color: var(--theme-text);
}

html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .navigation a {
    color: var(--theme-text-soft);
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .navigation a:hover {
    color: var(--theme-text);
    background: var(--theme-hover);
}


/* ---------------------------------------------------------
   HERO SECTIONS
--------------------------------------------------------- */

html[data-theme="dark"] .hero,
html[data-theme="dark"] .homepage-hero,
html[data-theme="dark"] .login-hero,
html[data-theme="dark"] .register-hero {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(215, 169, 40, 0.15),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #14251b,
            #1e3427
        );
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero h2,
html[data-theme="dark"] .homepage-hero h1,
html[data-theme="dark"] .homepage-hero h2 {
    color: #f4f8f5;
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .homepage-hero p {
    color: #c8d5cc;
}


/* ---------------------------------------------------------
   CARDS AND CONTENT SECTIONS
--------------------------------------------------------- */

html[data-theme="dark"] .card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .register-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .member-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] section[class*="card"] {
    color: var(--theme-text);
    background: var(--theme-surface);
    border-color: var(--theme-border);
    box-shadow: var(--theme-shadow);
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .feature-card:hover,
html[data-theme="dark"] .member-card:hover {
    border-color: #486052;
}


/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    color: var(--theme-text);
    background: var(--theme-input-background);
    border-color: var(--theme-border);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
    color: var(--theme-text);
    background: #243129;
    border-color: #65a879;
    box-shadow:
        0 0 0 3px rgba(77, 157, 103, 0.18);
}

html[data-theme="dark"] option {
    color: var(--theme-text);
    background: var(--theme-surface);
}

html[data-theme="dark"] fieldset {
    border-color: var(--theme-border);
}

html[data-theme="dark"] .form-group,
html[data-theme="dark"] .input-group,
html[data-theme="dark"] .form-section {
    border-color: var(--theme-border);
}

html[data-theme="dark"] .form-help,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .character-count {
    color: var(--theme-text-muted);
}


/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

html[data-theme="dark"] button:not(.button-primary),
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .button-outline {
    color: var(--theme-text);
    background: var(--theme-surface-alt);
    border-color: var(--theme-border);
}

html[data-theme="dark"] button:not(.button-primary):hover,
html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .button-outline:hover {
    color: #ffffff;
    background: var(--theme-hover);
    border-color: #4d6a57;
}

html[data-theme="dark"] .button-primary {
    color: #ffffff;
}


/* ---------------------------------------------------------
   TABLES AND LISTS
--------------------------------------------------------- */

html[data-theme="dark"] table {
    color: var(--theme-text);
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-color: var(--theme-border);
}

html[data-theme="dark"] th {
    background: var(--theme-surface-alt);
}

html[data-theme="dark"] tr:hover td {
    background: var(--theme-hover);
}


/* ---------------------------------------------------------
   STATUS AND MESSAGE BOXES
--------------------------------------------------------- */

html[data-theme="dark"] .status-message,
html[data-theme="dark"] .form-message,
html[data-theme="dark"] .alert,
html[data-theme="dark"] .notice {
    color: var(--theme-text);
    background: var(--theme-surface-alt);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .error-message,
html[data-theme="dark"] .form-error {
    color: #ffaaaa;
}

html[data-theme="dark"] .success-message,
html[data-theme="dark"] .form-success {
    color: #a7e7b8;
}


/* ---------------------------------------------------------
   MODALS
--------------------------------------------------------- */

html[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.72);
}

html[data-theme="dark"] .modal-card {
    color: var(--theme-text);
    background: var(--theme-surface);
    border-color: var(--theme-border);
}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .main-footer,
html[data-theme="dark"] footer {
    color: var(--theme-text-soft);
    background: var(--theme-footer-background);
    border-color: var(--theme-border);
}

html[data-theme="dark"] footer a {
    color: var(--theme-text-soft);
}

html[data-theme="dark"] footer a:hover {
    color: #ffffff;
}


/* ---------------------------------------------------------
   SCROLLBAR
--------------------------------------------------------- */

html[data-theme="dark"] {
    scrollbar-color: #526459 #151e19;
}

html[data-theme="dark"] ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #151e19;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #526459;
    border: 3px solid #151e19;
    border-radius: 999px;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #667a6e;
}


/* ---------------------------------------------------------
   SMOOTH COLOR TRANSITIONS
--------------------------------------------------------- */

body,
header,
footer,
main,
section,
article,
aside,
nav,
div,
form,
input,
textarea,
select,
button,
a {
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ---------------------------------------------------------
   REDUCED MOTION ACCESSIBILITY
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    body,
    header,
    footer,
    main,
    section,
    article,
    aside,
    nav,
    div,
    form,
    input,
    textarea,
    select,
    button,
    a {
        transition: none;
    }
}

* =========================================================
   OURSPACEWORLD — NEW PROFILE PAGE STYLES
   Paste this entire section at the BOTTOM of style.css
========================================================= */

/* ---------- Profile page foundation ---------- */

.profile-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(46, 125, 74, 0.12), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(210, 163, 38, 0.12), transparent 28%),
        var(--theme-page-background, var(--color-background, #f5f7f5));
    color: var(--theme-text, var(--color-text, #202820));
}

.profile-page *,
.profile-page *::before,
.profile-page *::after {
    box-sizing: border-box;
}

.profile-page [hidden] {
    display: none !important;
}

.profile-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.profile-page .skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 10px;
    background: #ffffff;
    color: #1f6c3d;
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.profile-page .skip-link:focus {
    transform: translateY(0);
}

.profile-main {
    min-height: calc(100vh - 80px);
    padding: 32px 0 72px;
}

.profile-page-container {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
}

/* ---------- Header and navigation ---------- */

.profile-site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(20, 45, 27, 0.12);
}

.profile-site-header .header-container {
    gap: 24px;
}

.profile-main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
}

.profile-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    color: inherit;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-nav-link:hover,
.profile-nav-link:focus-visible,
.profile-nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.profile-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #c53636;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
}

/* ---------- Hero and cover ---------- */

.profile-hero-card,
.profile-panel {
    border: 1px solid var(--theme-border, rgba(41, 79, 49, 0.14));
    background: var(--theme-card-background, #ffffff);
    box-shadow: 0 14px 36px rgba(25, 57, 33, 0.09);
}

.profile-hero-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 24px;
}

.profile-cover {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(20, 91, 50, 0.95), rgba(49, 135, 79, 0.88)),
        linear-gradient(45deg, #1f6c3d, #cf9f22);
}

.profile-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(9, 34, 18, 0.44), transparent);
}

.profile-cover-image {
    width: 100%;
    height: 310px;
    display: block;
    object-fit: cover;
}

.profile-cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.profile-cover-placeholder span {
    font-size: clamp(4rem, 9vw, 7rem);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.profile-cover-placeholder strong {
    font-size: clamp(1.25rem, 2vw, 2rem);
    letter-spacing: 0.06em;
}

.profile-cover-upload-button {
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 3;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.profile-identity-area {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    padding: 0 32px 24px;
}

.profile-avatar-column {
    position: relative;
    z-index: 5;
    margin-top: -92px;
    text-align: center;
}

.profile-avatar-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0 auto;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 7px solid var(--theme-card-background, #ffffff);
    border-radius: 50%;
    background: #e8eee9;
    box-shadow: 0 12px 30px rgba(10, 38, 20, 0.24);
}

.profile-online-dot {
    position: absolute;
    right: 16px;
    bottom: 20px;
    width: 28px;
    height: 28px;
    border: 5px solid var(--theme-card-background, #ffffff);
    border-radius: 50%;
    background: #2eb85c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.profile-picture-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--color-primary, #267447);
    font-weight: 800;
    cursor: pointer;
}

.profile-picture-upload:hover {
    text-decoration: underline;
}

.profile-identity-content {
    min-width: 0;
    padding-top: 24px;
}

.profile-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.profile-name-heading-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-name-heading-row h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    color: var(--theme-heading, var(--color-heading, #173521));
}

.profile-verified-badge {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #2684ff;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 900;
}

.profile-username {
    margin: 7px 0 0;
    color: var(--theme-muted-text, #67736a);
    font-size: 1.08rem;
    font-weight: 750;
}

.profile-tagline {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--theme-text, #27332a);
    font-size: 1rem;
    line-height: 1.65;
}

.profile-badge-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.profile-founder-badge,
.profile-member-badge,
.profile-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.profile-founder-badge {
    border: 1px solid rgba(191, 137, 13, 0.28);
    background: linear-gradient(135deg, #fff6ca, #efd98a);
    color: #745207;
}

.profile-member-badge {
    border: 1px solid rgba(38, 116, 71, 0.18);
    background: rgba(38, 116, 71, 0.09);
    color: var(--color-primary, #267447);
}

.profile-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.profile-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.13));
    border-radius: 999px;
    background: var(--theme-soft-background, #f5f8f5);
    color: var(--theme-muted-text, #5f6c62);
    font-size: 0.8rem;
    font-weight: 750;
}

.profile-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.profile-action-row .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
}

.profile-statistics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--theme-border, rgba(39, 74, 48, 0.12));
    background: var(--theme-soft-background, #f8faf8);
}

.profile-stat {
    min-width: 0;
    padding: 18px 14px;
    text-align: center;
}

.profile-stat + .profile-stat {
    border-left: 1px solid var(--theme-border, rgba(39, 74, 48, 0.12));
}

.profile-stat strong {
    display: block;
    overflow: hidden;
    color: var(--theme-heading, #173521);
    font-size: 1.22rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-stat span {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted-text, #69736b);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ---------- Main three-column layout ---------- */

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(420px, 1.7fr) minmax(250px, 0.9fr);
    align-items: start;
    gap: 22px;
}

.profile-sidebar,
.profile-primary-content,
.profile-right-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
    min-width: 0;
}

.profile-panel {
    min-width: 0;
    padding: 22px;
    border-radius: 20px;
}

.profile-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-panel-heading h2 {
    margin: 3px 0 0;
    color: var(--theme-heading, #173521);
    font-size: 1.18rem;
    line-height: 1.25;
}

.profile-panel-eyebrow {
    display: block;
    color: var(--color-primary, #267447);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.profile-panel-description {
    margin: -8px 0 16px;
    color: var(--theme-muted-text, #6a756c);
    font-size: 0.84rem;
}

.profile-small-action,
.profile-text-button,
.profile-post-tool {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-primary, #267447);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.profile-small-action {
    padding: 4px 0;
    font-size: 0.78rem;
}

.profile-small-action:hover,
.profile-text-button:hover,
.profile-post-tool:hover {
    text-decoration: underline;
}

.profile-long-text {
    margin: 0;
    color: var(--theme-text, #29352c);
    font-size: 0.98rem;
    line-height: 1.78;
    white-space: pre-line;
}

.profile-empty-message {
    margin: 12px 0 0;
    color: var(--theme-muted-text, #768079);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* ---------- Profile song ---------- */

.profile-music-panel {
    overflow: hidden;
}

.profile-song-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.12));
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(38, 116, 71, 0.09), rgba(211, 163, 37, 0.1)),
        var(--theme-soft-background, #f7faf7);
}

.profile-song-art {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #267447, #d2a326);
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(38, 116, 71, 0.18);
}

.profile-song-information {
    min-width: 0;
}

.profile-song-information strong,
.profile-song-information span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-song-information strong {
    color: var(--theme-heading, #173521);
    font-size: 0.92rem;
}

.profile-song-information span {
    margin-top: 4px;
    color: var(--theme-muted-text, #6c776e);
    font-size: 0.77rem;
}

.profile-audio-player {
    width: 100%;
    margin-top: 14px;
}

/* ---------- Member information ---------- */

.profile-information-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-information-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--theme-border, rgba(39, 74, 48, 0.1));
}

.profile-information-list > div:first-child {
    padding-top: 0;
}

.profile-information-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.profile-information-list dt,
.profile-information-list dd {
    margin: 0;
}

.profile-information-list dt {
    color: var(--theme-muted-text, #6b766e);
    font-size: 0.77rem;
    font-weight: 800;
}

.profile-information-list dd {
    overflow-wrap: anywhere;
    color: var(--theme-heading, #203a28);
    font-size: 0.82rem;
    font-weight: 850;
    text-align: right;
}

/* ---------- Interests and links ---------- */

.profile-interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-interest-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(38, 116, 71, 0.14);
    border-radius: 999px;
    background: rgba(38, 116, 71, 0.08);
    color: var(--color-primary, #267447);
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-links-list {
    display: grid;
    gap: 10px;
}

.profile-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.11));
    border-radius: 13px;
    color: var(--theme-text, #29352c);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.profile-link-item:hover {
    border-color: var(--color-primary, #267447);
    transform: translateY(-1px);
}

/* ---------- Create post ---------- */

.profile-create-post form {
    display: grid;
    gap: 14px;
}

.profile-post-textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 14px 15px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.18));
    border-radius: 15px;
    outline: none;
    background: var(--theme-input-background, #ffffff);
    color: var(--theme-text, #263029);
    font: inherit;
    line-height: 1.55;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-post-textarea:focus {
    border-color: var(--color-primary, #267447);
    box-shadow: 0 0 0 4px rgba(38, 116, 71, 0.11);
}

.profile-post-form-footer,
.profile-post-tools,
.profile-post-submit-area {
    display: flex;
    align-items: center;
}

.profile-post-form-footer {
    justify-content: space-between;
    gap: 14px;
}

.profile-post-tools,
.profile-post-submit-area {
    gap: 12px;
}

.profile-post-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    font-size: 0.82rem;
}

.profile-character-count {
    color: var(--theme-muted-text, #758078);
    font-size: 0.74rem;
    font-weight: 700;
}

.profile-post-preview {
    position: relative;
    overflow: hidden;
    max-width: 360px;
    border-radius: 16px;
}

.profile-post-preview img {
    width: 100%;
    max-height: 320px;
    display: block;
    object-fit: cover;
}

.profile-preview-remove {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 24, 21, 0.76);
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Posts ---------- */

.profile-post-filter {
    min-height: 38px;
    padding: 7px 32px 7px 11px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.15));
    border-radius: 11px;
    background: var(--theme-input-background, #ffffff);
    color: var(--theme-text, #28332b);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
}

.profile-posts-list {
    display: grid;
    gap: 16px;
}

.profile-post-card {
    padding: 17px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.11));
    border-radius: 17px;
    background: var(--theme-soft-background, #fafcfa);
}

.profile-post-header {
    display: flex;
    align-items: center;
    gap: 11px;
}

.profile-post-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eee9;
}

.profile-post-author {
    min-width: 0;
}

.profile-post-author strong,
.profile-post-author span {
    display: block;
}

.profile-post-author strong {
    color: var(--theme-heading, #1f3827);
    font-size: 0.9rem;
}

.profile-post-author span {
    margin-top: 2px;
    color: var(--theme-muted-text, #737e76);
    font-size: 0.73rem;
}

.profile-post-body {
    margin-top: 14px;
    color: var(--theme-text, #2b362e);
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.profile-post-image {
    width: 100%;
    max-height: 620px;
    display: block;
    margin-top: 14px;
    border-radius: 14px;
    object-fit: cover;
}

.profile-post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--theme-border, rgba(39, 74, 48, 0.1));
}

.profile-post-action {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--theme-muted-text, #677269);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-post-action:hover,
.profile-post-action.is-active {
    color: var(--color-primary, #267447);
}

/* ---------- Empty states ---------- */

.profile-empty-state {
    width: 100%;
    padding: 28px 18px;
    border: 1px dashed var(--theme-border, rgba(39, 74, 48, 0.2));
    border-radius: 16px;
    background: var(--theme-soft-background, #fafcfa);
    color: var(--theme-muted-text, #707b73);
    text-align: center;
}

.profile-empty-state > span:first-child {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
}

.profile-empty-state h3 {
    margin: 0;
    color: var(--theme-heading, #273d2d);
    font-size: 0.95rem;
}

.profile-empty-state p {
    max-width: 360px;
    margin: 7px auto 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ---------- Photo gallery ---------- */

.profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-photo-grid .profile-photo-empty-state {
    grid-column: 1 / -1;
}

.profile-photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #e7ede8;
}

.profile-photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-photo-item:hover img {
    transform: scale(1.04);
}

.profile-photo-delete {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 25, 21, 0.76);
    color: #ffffff;
    cursor: pointer;
}

/* ---------- Featured friends ---------- */

.featured-friends-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.featured-friends-grid .profile-friends-empty-state {
    grid-column: 1 / -1;
}

.featured-friend-card {
    min-width: 0;
    text-align: center;
}

.featured-friend-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.featured-friend-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    background: #e8eee9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-friend-card a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 50, 28, 0.14);
}

.featured-friend-card strong,
.featured-friend-card span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-friend-card strong {
    margin-top: 8px;
    color: var(--theme-heading, #203a28);
    font-size: 0.78rem;
}

.featured-friend-card span {
    margin-top: 2px;
    color: var(--theme-muted-text, #727d75);
    font-size: 0.68rem;
}

.profile-view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--theme-border, rgba(39, 74, 48, 0.1));
    color: var(--color-primary, #267447);
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
}

.profile-view-all-link:hover {
    text-decoration: underline;
}

/* ---------- Friend requests ---------- */

.profile-count-badge {
    min-width: 30px;
    min-height: 30px;
    padding: 4px 9px;
    background: var(--color-primary, #267447);
    color: #ffffff;
}

.profile-request-list {
    display: grid;
    gap: 12px;
}

.profile-request-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.1));
    border-radius: 14px;
}

.profile-request-item img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-request-details {
    min-width: 0;
}

.profile-request-details strong {
    display: block;
    overflow: hidden;
    color: var(--theme-heading, #203a28);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-request-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.profile-request-actions button {
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 9px;
    font-size: 0.68rem;
}

/* ---------- Activity ---------- */

.profile-activity-list {
    display: grid;
    gap: 14px;
}

.profile-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.profile-activity-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(38, 116, 71, 0.09);
}

.profile-activity-item strong,
.profile-activity-item div > span {
    display: block;
}

.profile-activity-item strong {
    color: var(--theme-heading, #203a28);
    font-size: 0.8rem;
}

.profile-activity-item div > span {
    margin-top: 3px;
    color: var(--theme-muted-text, #737e76);
    font-size: 0.7rem;
}

/* ---------- Safety actions ---------- */

.profile-safety-actions {
    display: grid;
    gap: 8px;
}

.profile-text-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    text-align: left;
}

.profile-report-button {
    color: #b34242;
}

/* ---------- Drawer ---------- */

.profile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: min(420px, 92vw);
    height: 100vh;
    padding: 24px;
    overflow-y: auto;
    border-left: 1px solid var(--theme-border, rgba(39, 74, 48, 0.14));
    background: var(--theme-card-background, #ffffff);
    box-shadow: -16px 0 40px rgba(18, 42, 25, 0.18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
}

.profile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.profile-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--theme-border, rgba(39, 74, 48, 0.11));
}

.profile-drawer-header h2 {
    margin: 4px 0 0;
    color: var(--theme-heading, #183722);
}

.profile-drawer-close,
.modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--theme-soft-background, #f0f4f1);
    color: var(--theme-text, #27322a);
    font-size: 1.45rem;
    cursor: pointer;
}

.profile-notification-list {
    margin-top: 18px;
}

.profile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: rgba(10, 20, 13, 0.48);
    backdrop-filter: blur(2px);
}

/* ---------- Modals ---------- */

.profile-page .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 20, 13, 0.58);
    backdrop-filter: blur(4px);
}

.profile-page .modal-card {
    position: relative;
    width: min(500px, 100%);
    padding: 30px;
    border: 1px solid var(--theme-border, rgba(39, 74, 48, 0.14));
    border-radius: 22px;
    background: var(--theme-card-background, #ffffff);
    color: var(--theme-text, #29352c);
    box-shadow: 0 24px 70px rgba(8, 29, 15, 0.28);
    text-align: center;
}

.profile-page .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.profile-page .modal-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 2.6rem;
}

.profile-page .modal-card h2 {
    margin: 0;
    color: var(--theme-heading, #173521);
}

.profile-page .modal-card > p {
    color: var(--theme-muted-text, #68736b);
    line-height: 1.6;
}

.profile-share-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    margin-top: 20px;
}

.profile-copy-confirmation {
    margin-bottom: 0 !important;
    color: var(--color-primary, #267447) !important;
    font-weight: 850;
}

/* ---------- Footer ---------- */

.profile-footer {
    border-top: 1px solid var(--theme-border, rgba(39, 74, 48, 0.1));
}

.profile-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.profile-footer-links a {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.profile-footer-links a:hover {
    text-decoration: underline;
}

/* ---------- Owner and visitor visibility ---------- */

.profile-page.viewing-own-profile .visitor-only {
    display: none !important;
}

.profile-page.viewing-other-profile .owner-only {
    display: none !important;
}

/* ---------- Focus states ---------- */

.profile-page button:focus-visible,
.profile-page a:focus-visible,
.profile-page label:focus-visible,
.profile-page input:focus-visible,
.profile-page textarea:focus-visible,
.profile-page select:focus-visible {
    outline: 3px solid rgba(38, 116, 71, 0.35);
    outline-offset: 3px;
}

/* ---------- Dark mode ---------- */

html[data-theme="dark"] .profile-page {
    --theme-page-background: #111713;
    --theme-card-background: #18211b;
    --theme-soft-background: #202a23;
    --theme-input-background: #141c17;
    --theme-heading: #f0f6f1;
    --theme-text: #dce6df;
    --theme-muted-text: #a9b6ac;
    --theme-border: rgba(217, 234, 221, 0.12);
}

html[data-theme="dark"] .profile-hero-card,
html[data-theme="dark"] .profile-panel {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .profile-avatar,
html[data-theme="dark"] .profile-online-dot {
    border-color: #18211b;
}

html[data-theme="dark"] .profile-founder-badge {
    border-color: rgba(224, 183, 70, 0.28);
    background: rgba(214, 166, 45, 0.16);
    color: #f2d477;
}

html[data-theme="dark"] .profile-member-badge,
html[data-theme="dark"] .profile-interest-tag,
html[data-theme="dark"] .profile-activity-icon {
    background: rgba(86, 177, 113, 0.12);
    color: #8dd4a2;
}

html[data-theme="dark"] .profile-post-textarea,
html[data-theme="dark"] .profile-post-filter,
html[data-theme="dark"] .profile-page .form-control {
    color-scheme: dark;
}

/* ---------- Responsive: medium desktop ---------- */

@media (max-width: 1240px) {
    .profile-content-grid {
        grid-template-columns: minmax(240px, 0.9fr) minmax(430px, 1.65fr);
    }

    .profile-right-sidebar {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-right-sidebar .profile-panel {
        height: 100%;
    }
}

/* ---------- Responsive: tablet ---------- */

@media (max-width: 980px) {
    .profile-main-navigation {
        order: 3;
        width: 100%;
        margin: 0;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .profile-site-header .header-container {
        flex-wrap: wrap;
    }

    .profile-cover,
    .profile-cover-image {
        min-height: 245px;
        height: 245px;
    }

    .profile-identity-area {
        grid-template-columns: 185px minmax(0, 1fr);
        padding-inline: 24px;
    }

    .profile-avatar-wrapper {
        width: 170px;
        height: 170px;
    }

    .profile-avatar-column {
        margin-top: -70px;
    }

    .profile-content-grid {
        grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.7fr);
    }

    .profile-right-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-statistics {
        grid-template-columns: repeat(5, minmax(110px, 1fr));
        overflow-x: auto;
    }

    .profile-stat {
        min-width: 110px;
    }
}

/* ---------- Responsive: mobile ---------- */

@media (max-width: 760px) {
    .profile-main {
        padding-top: 18px;
    }

    .profile-page-container {
        width: min(100% - 20px, 1480px);
    }

    .profile-site-header .brand-tagline {
        display: none;
    }

    .profile-header-actions .button-primary {
        min-height: 40px;
        padding-inline: 12px;
    }

    .profile-cover,
    .profile-cover-image {
        min-height: 200px;
        height: 200px;
    }

    .profile-cover-upload-button {
        right: 12px;
        bottom: 12px;
        min-height: 38px;
        padding: 8px 11px;
        font-size: 0.72rem;
    }

    .profile-identity-area {
        display: block;
        padding: 0 18px 20px;
        text-align: center;
    }

    .profile-avatar-column {
        margin-top: -66px;
    }

    .profile-avatar-wrapper {
        width: 145px;
        height: 145px;
    }

    .profile-online-dot {
        right: 9px;
        bottom: 13px;
        width: 24px;
        height: 24px;
        border-width: 4px;
    }

    .profile-identity-content {
        padding-top: 16px;
    }

    .profile-name-row {
        display: block;
    }

    .profile-name-heading-row,
    .profile-badge-stack,
    .profile-status-row,
    .profile-action-row {
        justify-content: center;
    }

    .profile-tagline {
        margin-inline: auto;
    }

    .profile-badge-stack {
        margin-top: 14px;
    }

    .profile-action-row .button {
        flex: 1 1 calc(50% - 10px);
    }

    .profile-content-grid,
    .profile-right-sidebar {
        grid-template-columns: 1fr;
    }

    .profile-sidebar,
    .profile-primary-content,
    .profile-right-sidebar {
        gap: 16px;
    }

    .profile-panel {
        padding: 18px;
        border-radius: 17px;
    }

    .profile-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-post-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-post-submit-area {
        width: 100%;
        justify-content: space-between;
    }

    .profile-share-link-row {
        grid-template-columns: 1fr;
    }

    .profile-page .modal-card {
        padding: 26px 20px;
    }

    .profile-footer .simple-footer-container {
        gap: 12px;
        text-align: center;
    }
}

/* ---------- Responsive: small phones ---------- */

@media (max-width: 460px) {
    .profile-nav-link {
        padding-inline: 10px;
        font-size: 0.78rem;
    }

    .profile-header-actions {
        gap: 6px;
    }

    .profile-icon-button {
        width: 40px;
        height: 40px;
    }

    .profile-cover,
    .profile-cover-image {
        min-height: 175px;
        height: 175px;
    }

    .profile-name-heading-row h1 {
        font-size: 1.8rem;
    }

    .profile-action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-action-row .button {
        width: 100%;
    }

    .profile-statistics {
        grid-template-columns: repeat(5, minmax(95px, 1fr));
    }

    .profile-stat {
        min-width: 95px;
        padding-inline: 9px;
    }

    .profile-information-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .profile-information-list dd {
        text-align: left;
    }

    .featured-friends-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}