:root {
    --ink: #07111f;
    --night: #071423;
    --deep: #02060c;
    --paper: #ffffff;
    --mist: #f5f7fb;
    --snap: #20e6d2;
    --gold: #d6a23a;
    --mint: #8ef0bf;
    --coral: #ff6f61;
    --muted: #687385;
    --line: rgba(7, 17, 31, 0.1);
    --shadow: 0 24px 64px rgba(7, 17, 31, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, #03070d, #0b1b2c 46%, #0aa6d8 46.2%, #20e6d2 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.mobile-auth-shell {
    width: min(100%, 620px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--paper);
    position: relative;
    overflow: hidden;
}

.auth-screen {
    display: none;
    min-height: 100vh;
}

.auth-screen.is-active {
    display: block;
}

.intro-screen {
    background: #ffffff;
    padding-bottom: 18px;
}

.intro-visual {
    min-height: 480px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    color: var(--paper);
    background:
        linear-gradient(180deg, rgba(2, 6, 12, 0.1), rgba(2, 6, 12, 0.26) 34%, rgba(2, 6, 12, 0.9)),
        url("../img/padel-background.png") center / cover no-repeat;
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
}

.intro-visual::after {
    content: "";
    position: absolute;
    inset: auto -50px -54px -50px;
    height: 150px;
    background: var(--paper);
    transform: rotate(-4deg);
    transform-origin: center;
}

.intro-topbar,
.app-header,
.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.intro-topbar,
.hero-card,
.hero-stats {
    position: relative;
    z-index: 1;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--paper);
    font-size: 19px;
    font-weight: 900;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.app-logo span,
.mini-brand span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--deep);
    background: var(--snap);
    border-radius: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(32, 230, 210, 0.24);
}

.app-logo.compact {
    color: var(--paper);
}

.top-actions {
    display: flex;
    gap: 8px;
}

.top-actions span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(12px);
}

.top-actions span::before {
    content: "";
    width: 13px;
    height: 13px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.hero-card {
    margin-top: 118px;
}

.hero-kicker {
    width: fit-content;
    padding: 8px 12px;
    margin-bottom: 14px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.hero-card h1,
.welcome-screen h1,
.form-hero h1,
.welcome-block h1,
.compact-title {
    margin: 0;
    letter-spacing: 0;
}

.hero-card h1 {
    max-width: 430px;
    font-size: 42px;
    line-height: 0.98;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.hero-card p {
    max-width: 440px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.48;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.hero-stats div {
    min-height: 78px;
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.hero-stats strong {
    color: var(--snap);
    font-size: 22px;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.intro-content {
    padding: 0 16px 18px;
    position: relative;
    z-index: 2;
    margin-top: -42px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-card {
    min-height: 174px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.1);
}

.feature-gold {
    color: var(--deep);
    background:
        linear-gradient(145deg, rgba(32, 230, 210, 0.96), rgba(214, 246, 255, 0.88)),
        linear-gradient(180deg, #ffffff, #e8fbff);
    border-color: rgba(32, 230, 210, 0.45);
}

.feature-night {
    color: var(--paper);
    background:
        linear-gradient(145deg, rgba(7, 20, 35, 0.96), rgba(20, 33, 51, 0.94)),
        linear-gradient(90deg, var(--night), var(--deep));
    border-color: rgba(255, 255, 255, 0.16);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--paper);
    background: var(--night);
    border-radius: 15px;
    font-weight: 900;
}

.feature-night .feature-icon {
    color: var(--deep);
    background: var(--snap);
}

.feature-card h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0;
}

.feature-card p {
    margin: 8px 0 0;
    color: rgba(7, 17, 31, 0.7);
    font-size: 13px;
    line-height: 1.42;
}

.feature-night p {
    color: rgba(255, 255, 255, 0.72);
}

.membership-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 18px 0 4px;
    scrollbar-width: none;
}

.membership-strip::-webkit-scrollbar {
    display: none;
}

.membership-strip span {
    flex: 0 0 auto;
    padding: 10px 13px;
    color: var(--ink);
    background: #f2f4f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.membership-strip span:nth-child(3) {
    background: var(--gold);
    color: var(--paper);
}

.intro-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 22px 0 18px;
}

.intro-dots span {
    width: 10px;
    height: 10px;
    border: 2px solid #b8bec8;
    border-radius: 99px;
}

.intro-dots span.active {
    width: 26px;
    border-color: var(--ink);
    background: var(--ink);
}

.intro-actions,
.welcome-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

button {
    min-height: 56px;
    color: var(--paper);
    font-weight: 900;
    background: linear-gradient(135deg, var(--night), var(--deep));
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    box-shadow: 0 16px 28px rgba(7, 17, 31, 0.2);
}

.ghost-button {
    color: var(--ink);
    background: #f0f2f6;
    box-shadow: none;
}

.outline-button {
    color: var(--night);
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--night);
    box-shadow: none;
}

.welcome-screen {
    padding: 24px 20px 22px;
    background:
        linear-gradient(180deg, #071423 0%, #071423 43%, #ffffff 43.2%, #ffffff 100%);
}

.welcome-hero {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    text-align: center;
}

.welcome-logo {
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 34px;
    background: var(--paper);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.25);
}

.welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
}

.welcome-badge {
    margin-top: 20px;
    padding: 8px 13px;
    color: var(--snap);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.welcome-screen h1 {
    margin-top: 16px;
    font-size: 36px;
}

.welcome-screen p {
    max-width: 420px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.5;
}

.quick-benefits {
    display: grid;
    gap: 10px;
    margin-top: -22px;
}

.quick-benefits div {
    min-height: 68px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(7, 17, 31, 0.08);
}

.quick-benefits strong {
    font-size: 16px;
}

.quick-benefits span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.welcome-actions {
    grid-template-columns: 1fr;
    margin-top: 24px;
}

.policy-line {
    margin: 22px 0 0 !important;
    color: var(--muted) !important;
    text-align: center;
    font-size: 13px;
}

.form-screen {
    background: #f4f6fa;
}

.form-hero {
    min-height: 235px;
    padding: 22px 20px 28px;
    color: var(--paper);
    background:
        linear-gradient(150deg, rgba(7, 20, 35, 0.98), rgba(7, 20, 35, 0.76)),
        url("../img/padel-background.png") center / cover no-repeat;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
}

.form-header {
    margin-bottom: 42px;
}

.back-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 16px;
    font-size: 30px;
    line-height: 1;
    box-shadow: none;
}

.form-hero h1 {
    font-size: 34px;
}

.form-hero p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.form-panel {
    margin: -28px 16px 0;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    background: #eef1f6;
    border-radius: 999px;
}

.auth-tabs button {
    min-height: 46px;
    color: var(--muted);
    background: transparent;
    border-radius: 999px;
    box-shadow: none;
}

.auth-tabs button.active {
    color: var(--ink);
    background: var(--snap);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.auth-form.show {
    display: flex;
}

label {
    display: grid;
    gap: 7px;
}

label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

input,
select {
    width: 100%;
    min-height: 56px;
    padding: 0 15px;
    color: var(--ink);
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-radius: 17px;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--gold);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(214, 162, 58, 0.18);
}

.soft-link {
    align-self: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.flash {
    margin-bottom: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.flash-success {
    color: #134d2f;
    background: #eaf8ef;
}

.flash-error {
    color: #7a1d1d;
    background: #fff0f0;
}

.app-page {
    min-height: 100vh;
    padding-bottom: 94px;
    background:
        linear-gradient(180deg, #071423 0, #071423 220px, #f3f6fa 220px, #eef2f7 100%);
}

.feed-page {
    color: var(--ink);
}

.profile-page {
    background: var(--paper);
}

.profile-toolbar {
    position: sticky;
    top: 0;
    z-index: 8;
    width: min(100%, 720px);
    min-height: 62px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.toolbar-back {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #f3f6fa;
    border-radius: 14px;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.profile-toolbar strong,
.profile-toolbar span {
    display: block;
}

.profile-toolbar strong {
    font-size: 16px;
}

.profile-toolbar span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.profile-toolbar nav {
    display: flex;
    gap: 7px;
}

.profile-toolbar button {
    min-height: 36px;
    padding: 0 11px;
    color: var(--ink);
    background: #f3f6fa;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.profile-toolbar button:first-child {
    color: var(--deep);
    background: var(--snap);
}

.feed-header {
    position: sticky;
    top: 0;
    z-index: 8;
    width: min(100%, 720px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--paper);
    background: rgba(7, 20, 35, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.feed-header p {
    margin: 3px 0 0 45px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    font-size: 18px;
    font-weight: 900;
}

.profile-chip {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--deep);
    background: var(--paper);
    border: 2px solid rgba(32, 230, 210, 0.72);
    border-radius: 16px;
    font-weight: 900;
}

.logout-link {
    color: var(--muted);
    font-weight: 800;
}

.app-main,
.feed-main {
    width: min(100%, 720px);
    margin: 0 auto;
}

.feed-main {
    padding: 14px 14px 0;
}

.circle-stories {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 2px;
    scrollbar-width: none;
}

.circle-stories::-webkit-scrollbar {
    display: none;
}

.circle-story {
    flex: 0 0 74px;
    min-height: auto;
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 0;
    color: var(--paper);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    touch-action: manipulation;
}

.circle-story strong {
    max-width: 74px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-page .circle-story strong {
    color: rgba(255, 255, 255, 0.86);
}

.story-avatar {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--paper);
    background:
        linear-gradient(var(--night), var(--night)) padding-box,
        linear-gradient(135deg, var(--snap), #0aa6d8, var(--gold)) border-box;
    border: 3px solid transparent;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(2, 6, 12, 0.28);
    overflow: hidden;
}

.story-avatar img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

.story-avatar b {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    position: absolute;
    right: -1px;
    bottom: -1px;
    color: var(--deep);
    background: var(--snap);
    border: 3px solid var(--night);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    z-index: 3;
}

.create-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    align-items: end;
    background: rgba(2, 6, 12, 0.46);
    backdrop-filter: blur(8px);
}

.create-sheet-backdrop[hidden] {
    display: none;
}

.create-sheet-backdrop.is-open {
    display: grid;
}

.create-sheet {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 10px 16px 22px;
    background: var(--paper);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    box-shadow: 0 -24px 70px rgba(2, 6, 12, 0.28);
}

.sheet-handle {
    width: 44px;
    height: 5px;
    margin: 0 auto 14px;
    background: #d7dce4;
    border-radius: 999px;
}

.create-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.create-sheet header strong,
.create-sheet header span {
    display: block;
}

.create-sheet header strong {
    font-size: 20px;
}

.create-sheet header span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.create-sheet header button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    color: var(--ink);
    background: #f3f6fa;
    border-radius: 50%;
    box-shadow: none;
    font-size: 24px;
}

.create-options {
    display: grid;
    gap: 10px;
}

.create-options button {
    min-height: 78px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: var(--ink);
    text-align: left;
    background: #f5f8fb;
    border-radius: 20px;
    box-shadow: none;
}

.create-options button > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--deep);
    background: var(--snap);
    border-radius: 18px;
    font-size: 22px;
    font-weight: 900;
}

.create-options strong,
.create-options small {
    display: block;
}

.create-options strong {
    font-size: 16px;
}

.create-options small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.sheet-open {
    overflow: hidden;
}

.story-img {
    background:
        linear-gradient(rgba(7, 20, 35, 0.05), rgba(7, 20, 35, 0.2)) padding-box,
        linear-gradient(135deg, var(--snap), #0aa6d8, var(--gold)) border-box,
        url("../img/padel-background.png") center / cover no-repeat;
}

.coffee-story {
    background:
        linear-gradient(135deg, #d6a23a, #7c4f1d) padding-box,
        linear-gradient(135deg, var(--snap), #0aa6d8, var(--gold)) border-box;
}

.night-story {
    background:
        linear-gradient(135deg, #071423, #111827) padding-box,
        linear-gradient(135deg, var(--snap), #0aa6d8, var(--gold)) border-box;
}

.tennis-story {
    background:
        linear-gradient(135deg, #0aa6d8, #20e6d2) padding-box,
        linear-gradient(135deg, var(--snap), #0aa6d8, var(--gold)) border-box;
    color: var(--deep);
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-hero {
    min-height: 184px;
    display: grid;
    align-items: end;
    gap: 18px;
    padding: 22px 18px;
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(7, 20, 35, 0.76), rgba(7, 20, 35, 0.98)),
        url("../img/padel-background.png") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(2, 6, 12, 0.22);
}

.feed-hero h1 {
    max-width: 560px;
    margin: 0;
    font-size: 30px;
    line-height: 1.06;
    letter-spacing: 0;
}

.feed-hero p:not(.eyebrow) {
    max-width: 560px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.45;
}

.compose-button {
    width: fit-content;
    min-height: 46px;
    padding: 0 18px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(32, 230, 210, 0.2);
}

.composer-card,
.feed-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.composer-card {
    margin-top: 14px;
    padding: 14px;
}

.composer-top {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
}

.avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border-radius: 16px;
    font-weight: 900;
}

.composer-top button {
    min-height: 46px;
    padding: 0 14px;
    color: var(--muted);
    text-align: left;
    background: #f3f6fa;
    border-radius: 16px;
    box-shadow: none;
}

.composer-actions,
.story-rail {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.composer-actions {
    padding-top: 12px;
}

.composer-actions::-webkit-scrollbar,
.story-rail::-webkit-scrollbar {
    display: none;
}

.composer-actions span {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--ink);
    background: #edf2f7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.story-rail {
    padding: 14px 0 4px;
}

.story-card {
    flex: 0 0 132px;
    min-height: 82px;
    display: grid;
    align-content: end;
    gap: 4px;
    padding: 13px;
    color: var(--paper);
    background: linear-gradient(135deg, #0b1b2c, #123b54);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.story-card.active {
    color: var(--deep);
    background: linear-gradient(135deg, var(--snap), #c9fff6);
}

.story-card strong {
    font-size: 16px;
}

.story-card span {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.72;
}

.feed-tabs {
    position: sticky;
    top: 72px;
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    margin: 12px 0;
    background: rgba(243, 246, 250, 0.92);
    border: 1px solid rgba(7, 17, 31, 0.06);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.feed-tabs button {
    min-height: 40px;
    color: var(--muted);
    background: transparent;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.feed-tabs button.active {
    color: var(--deep);
    background: var(--paper);
    box-shadow: 0 10px 20px rgba(7, 17, 31, 0.08);
}

.feed-list {
    display: grid;
    gap: 14px;
}

.feed-card {
    padding: 15px;
}

.feed-card-header {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
}

.avatar-wrap {
    position: relative;
}

.avatar-wrap small {
    position: absolute;
    right: -4px;
    bottom: -5px;
    padding: 2px 5px;
    color: var(--deep);
    background: var(--snap);
    border: 2px solid var(--paper);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.feed-author {
    min-width: 0;
}

.feed-author strong,
.feed-author span {
    display: block;
}

.feed-author span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-pill {
    padding: 8px 10px;
    color: #075466;
    background: #dffbf8;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.feed-card-body h2 {
    margin: 16px 0 8px;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: 0;
}

.feed-card-body p {
    margin: 0;
    color: #465265;
    line-height: 1.48;
}

.event-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.event-strip div {
    min-height: 68px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px;
    background: #f3f6fa;
    border-radius: 18px;
}

.event-strip span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.event-strip strong {
    font-size: 14px;
}

.feed-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.feed-card-footer div {
    display: grid;
    gap: 2px;
}

.feed-card-footer strong {
    font-size: 18px;
}

.feed-card-footer span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.feed-card-footer button {
    min-width: 108px;
    min-height: 44px;
    color: var(--paper);
    background: linear-gradient(135deg, #0aa6d8, var(--night));
    border-radius: 999px;
}

.profile-main {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 14px 14px 0;
    background: var(--paper);
}

.insta-profile-head {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px 4px 12px;
}

.avatar-upload-mini {
    width: 106px;
    height: 106px;
    position: relative;
}

.profile-avatar.large {
    width: 106px !important;
    height: 106px !important;
    border-radius: 50%;
    max-width: 106px;
    max-height: 106px;
}

.avatar-plus {
    position: absolute;
    right: 2px;
    bottom: 2px;
}

.avatar-plus input {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-plus span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--deep);
    background: var(--snap);
    border: 3px solid var(--paper);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(7, 17, 31, 0.18);
}

.profile-social-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    text-align: center;
}

.profile-social-stats strong,
.profile-social-stats span {
    display: block;
}

.profile-social-stats strong {
    font-size: 22px;
}

.profile-social-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.profile-bio-block {
    padding: 0 4px 14px;
}

.profile-bio-block > div {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.profile-bio-block h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.1;
    letter-spacing: 0;
}

.profile-bio-block p {
    margin: 6px 0 0;
    color: #465265;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}

.profile-tabs-section {
    margin-bottom: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
    overflow: hidden;
}

.profile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}

.profile-tabs button {
    min-height: 50px;
    color: var(--muted);
    background: var(--paper);
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
}

.profile-tabs button.active {
    color: var(--deep);
    border-bottom: 3px solid var(--snap);
}

.profile-showcase {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.organized-event-list {
    display: grid;
    gap: 10px;
}

.organized-event-list article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 12px;
    background: #f5f8fb;
    border-radius: 18px;
}

.organized-event-list strong {
    font-size: 14px;
}

.organized-event-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.organized-event-list small {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    padding: 8px 10px;
    color: #075466;
    background: #dffbf8;
    border-radius: 999px;
    font-weight: 900;
}

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

.shared-photo-grid article {
    aspect-ratio: 1;
    display: grid;
    align-content: end;
    gap: 4px;
    padding: 9px;
    color: var(--paper);
    background:
        linear-gradient(180deg, rgba(7, 20, 35, 0.08), rgba(7, 20, 35, 0.82)),
        url("../img/padel-background.png") center / cover no-repeat;
    overflow: hidden;
}

.shared-photo-grid span {
    width: fit-content;
    padding: 4px 7px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.shared-photo-grid strong {
    font-size: 12px;
    line-height: 1.15;
}

.profile-cover {
    min-height: 260px;
    display: grid;
    align-content: end;
    justify-items: start;
    padding: 20px;
    color: var(--paper);
    background:
        linear-gradient(180deg, rgba(7, 20, 35, 0.12), rgba(7, 20, 35, 0.92)),
        url("../img/padel-background.png") center / cover no-repeat;
    border-radius: 30px;
    box-shadow: 0 20px 48px rgba(2, 6, 12, 0.22);
}

.profile-avatar {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    color: var(--deep);
    background:
        linear-gradient(var(--paper), var(--paper)) padding-box,
        linear-gradient(135deg, var(--snap), #0aa6d8, var(--gold)) border-box;
    border: 4px solid transparent;
    border-radius: 28px;
    font-size: 34px;
    font-weight: 900;
    overflow: hidden;
}

.profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.avatar-upload-mini .profile-avatar,
.avatar-upload-mini .profile-avatar img {
    overflow: hidden;
    border-radius: 50%;
}

.profile-badge {
    padding: 8px 12px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.profile-cover h1 {
    margin: 12px 0 4px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0;
}

.profile-cover p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

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

.profile-stats div,
.profile-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.profile-stats div {
    min-height: 78px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
}

.profile-stats strong {
    font-size: 24px;
}

.profile-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.profile-section {
    padding: 16px;
    margin-bottom: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0;
}

.section-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.section-title button {
    min-height: 36px;
    padding: 0 12px;
    color: var(--deep);
    background: #e2fbf8;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.profile-form {
    display: grid;
    gap: 14px;
}

.photo-upload-card {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(135deg, #f5f8fb, #e7fbf8);
    border: 1px solid rgba(32, 230, 210, 0.26);
    border-radius: 22px;
}

.photo-upload-preview {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--paper);
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border: 4px solid var(--paper);
    border-radius: 28px;
    box-shadow: 0 14px 28px rgba(7, 17, 31, 0.14);
    font-size: 32px;
    font-weight: 900;
}

.photo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-copy strong {
    display: block;
    font-size: 18px;
}

.photo-upload-copy p {
    margin: 5px 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.file-picker {
    display: inline-grid;
    width: fit-content;
}

.file-picker input {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-picker span {
    display: inline-grid;
    min-height: 38px;
    place-items: center;
    padding: 0 14px;
    color: #075466;
    background: var(--paper);
    border: 1px solid rgba(32, 230, 210, 0.4);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.photo-upload-card > button {
    min-width: 82px;
    min-height: 46px;
    border-radius: 999px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-grid.three {
    grid-template-columns: 1fr 92px 1fr;
}

textarea {
    width: 100%;
    padding: 14px 15px;
    color: var(--ink);
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-radius: 17px;
    outline: none;
    resize: vertical;
    font: inherit;
}

textarea:focus {
    border-color: var(--gold);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(214, 162, 58, 0.18);
}

.club-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.club-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f5f8fb;
    border-radius: 18px;
}

.club-card > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border-radius: 18px;
    font-weight: 900;
}

.club-card strong,
.club-card small {
    display: block;
}

.club-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.club-card form {
    margin: 0;
}

.club-card button {
    min-height: 36px;
    padding: 0 12px;
    color: #7a1d1d;
    background: #fff0f0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.inline-add-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 2px;
}

.inline-add-form button {
    min-width: 84px;
    min-height: 56px;
    border-radius: 17px;
}

.empty-copy {
    margin: 0;
    padding: 14px;
    color: var(--muted);
    background: #f5f8fb;
    border-radius: 18px;
    font-weight: 800;
}

.interest-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.interest-cloud span {
    padding: 10px 13px;
    color: #075466;
    background: #dffbf8;
    border: 1px solid rgba(32, 230, 210, 0.34);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.messages-main {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 14px 14px 0;
}

.messages-hero {
    min-height: 172px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(7, 20, 35, 0.92), rgba(10, 166, 216, 0.72)),
        url("../img/padel-background.png") center / cover no-repeat;
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(2, 6, 12, 0.22);
}

.messages-hero h1 {
    max-width: 460px;
    margin: 0;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: 0;
}

.messages-hero button {
    min-width: 86px;
    min-height: 44px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    box-shadow: none;
}

.message-search {
    margin: 14px 0 10px;
}

.message-search input {
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(7, 17, 31, 0.08);
}

.message-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 7px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.message-filter button {
    min-height: 40px;
    color: var(--muted);
    background: transparent;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.message-filter button.active {
    color: var(--deep);
    background: var(--snap);
}

.active-chat-preview {
    display: grid;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
    color: var(--paper);
    background: linear-gradient(145deg, var(--night), #123b54);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.14);
}

.chat-bubbles {
    display: grid;
    gap: 8px;
}

.chat-bubbles span {
    width: fit-content;
    max-width: 82%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px 16px 16px 4px;
    font-size: 13px;
    font-weight: 800;
}

.chat-bubbles span:nth-child(2) {
    justify-self: end;
    color: var(--deep);
    background: var(--snap);
    border-radius: 16px 16px 4px 16px;
}

.active-chat-preview strong,
.active-chat-preview small {
    display: block;
}

.active-chat-preview small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.66);
    font-weight: 800;
}

.conversation-list {
    display: grid;
    gap: 10px;
}

.conversation-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(7, 17, 31, 0.07);
}

.conversation-avatar {
    position: relative;
}

.conversation-avatar span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border-radius: 20px;
    font-size: 20px;
    font-weight: 900;
}

.conversation-avatar b {
    width: 14px;
    height: 14px;
    position: absolute;
    right: -1px;
    bottom: -1px;
    background: #30d158;
    border: 3px solid var(--paper);
    border-radius: 50%;
}

.conversation-copy {
    min-width: 0;
}

.conversation-copy > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.conversation-copy strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-copy time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.conversation-copy small {
    display: block;
    margin-top: 3px;
    color: #075466;
    font-size: 12px;
    font-weight: 900;
}

.conversation-copy p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.events-main {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 14px 14px 0;
}

.events-hero {
    min-height: 176px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(7, 20, 35, 0.86), rgba(32, 230, 210, 0.28)),
        url("../img/padel-background.png") center / cover no-repeat;
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(2, 6, 12, 0.22);
}

.events-hero h1 {
    max-width: 480px;
    margin: 0;
    font-size: 29px;
    line-height: 1.08;
    letter-spacing: 0;
}

.events-hero button {
    min-width: 108px;
    min-height: 44px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    box-shadow: none;
}

.event-filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    margin: 14px 0 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.event-filter-panel button {
    min-height: 56px;
    padding: 0 18px;
    border-radius: 17px;
}

.event-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 14px;
    scrollbar-width: none;
}

.event-chip-row::-webkit-scrollbar {
    display: none;
}

.event-chip-row span {
    flex: 0 0 auto;
    padding: 10px 13px;
    color: var(--ink);
    background: #eef3f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.event-chip-row span.active {
    color: var(--deep);
    background: var(--snap);
    border-color: rgba(32, 230, 210, 0.5);
}

.events-list {
    display: grid;
    gap: 14px;
}

.event-card {
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.event-card-top,
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.event-card-top > div {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.event-card-top > strong {
    padding: 8px 10px;
    color: var(--deep);
    background: #e2fbf8;
    border-radius: 999px;
    font-size: 12px;
}

.region-pill {
    padding: 8px 10px;
    color: var(--ink);
    background: #f1f4f8;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.event-card h2 {
    margin: 16px 0 8px;
    font-size: 22px;
    line-height: 1.14;
    letter-spacing: 0;
}

.event-card p {
    margin: 0;
    color: #465265;
    line-height: 1.48;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.event-meta-grid div {
    min-height: 68px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px;
    background: #f3f6fa;
    border-radius: 18px;
}

.event-meta-grid span,
.event-card-footer span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.event-meta-grid strong,
.event-card-footer strong {
    font-size: 14px;
}

.event-card-footer {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.event-card-footer > div {
    display: grid;
    gap: 3px;
}

.event-card-footer button {
    min-width: 104px;
    min-height: 44px;
    color: var(--paper);
    background: linear-gradient(135deg, #0aa6d8, var(--night));
    border-radius: 999px;
}

.discover-main {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 14px 14px 0;
}

.discover-page {
    background: var(--paper);
}

.discover-header {
    position: sticky;
    top: 0;
    z-index: 8;
    width: min(100%, 720px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.discover-header p {
    margin: 3px 0 0 45px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.discover-search {
    padding: 20px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.discover-search h1 {
    max-width: 520px;
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.06;
    letter-spacing: 0;
}

.discover-search label span {
    color: var(--muted);
}

.discover-search input {
    background: #f8f9fb;
}

.discover-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 0;
    scrollbar-width: none;
}

.discover-filter-row::-webkit-scrollbar {
    display: none;
}

.discover-filter-row span {
    flex: 0 0 auto;
    padding: 10px 13px;
    color: var(--ink);
    background: #eef3f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.discover-filter-row span.active {
    color: var(--deep);
    background: var(--snap);
}

.discover-section {
    margin-bottom: 14px;
}

.suggested-user-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.suggested-user-rail::-webkit-scrollbar {
    display: none;
}

.suggested-user-card {
    flex: 0 0 168px;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.suggested-avatar {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background:
        linear-gradient(var(--night), var(--night)) padding-box,
        linear-gradient(135deg, var(--snap), #0aa6d8, var(--gold)) border-box;
    border: 3px solid transparent;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
}

.suggested-user-card span,
.suggested-user-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.suggested-user-card button {
    min-height: 36px;
    padding: 0 12px;
    color: #075466;
    background: #dffbf8;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.nearby-grid,
.smart-discovery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nearby-grid article,
.smart-discovery-grid article {
    min-height: 116px;
    display: grid;
    align-content: end;
    gap: 5px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(7, 17, 31, 0.07);
}

.nearby-grid article:first-child {
    color: var(--deep);
    background: linear-gradient(135deg, var(--snap), #c9fff6);
}

.nearby-grid span,
.nearby-grid small,
.smart-discovery-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.discover-post-list {
    display: grid;
    gap: 12px;
}

.discover-post-card {
    padding: 15px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.discover-post-card header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
}

.discover-post-card header span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.discover-post-card header small {
    padding: 8px 10px;
    color: #075466;
    background: #dffbf8;
    border-radius: 999px;
    font-weight: 900;
}

.discover-post-card h3 {
    margin: 14px 0 7px;
    font-size: 20px;
    line-height: 1.16;
    letter-spacing: 0;
}

.discover-post-card p {
    margin: 0;
    color: #465265;
    line-height: 1.48;
}

.discover-post-card footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.discover-post-card footer button {
    min-height: 40px;
    color: var(--ink);
    background: #f1f4f8;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.discover-post-card footer button:first-child {
    color: var(--deep);
    background: var(--snap);
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    width: min(100%, 720px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.bottom-nav a {
    min-height: 52px;
    display: grid;
    align-content: center;
    place-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.bottom-nav a span {
    font-size: 18px;
    line-height: 1;
}

.bottom-nav a .nav-profile-photo {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px;
    max-height: 26px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 auto;
    color: var(--paper);
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border: 2px solid rgba(7, 17, 31, 0.12);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.bottom-nav a .nav-profile-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.bottom-nav a.active .nav-profile-photo {
    border-color: var(--deep);
}

.bottom-nav a.active {
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
}

.compact-title {
    font-size: 34px;
}

.compact-copy {
    margin-bottom: 22px;
    font-size: 16px;
}

@media (min-width: 700px) {
    .mobile-auth-shell {
        min-height: calc(100vh - 32px);
        margin: 16px auto;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 32px;
        box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
    }

    .auth-screen {
        min-height: calc(100vh - 32px);
    }
}

@media (max-width: 420px) {
    .intro-visual {
        min-height: 455px;
    }

    .hero-card {
        margin-top: 98px;
    }

    .hero-card h1 {
        font-size: 38px;
    }

    .feature-card {
        min-height: 166px;
        padding: 14px;
    }

    .form-panel {
        margin-right: 12px;
        margin-left: 12px;
    }

    .bottom-nav a {
        font-size: 11px;
    }

    .field-grid,
    .field-grid.three {
        grid-template-columns: 1fr;
    }

    .photo-upload-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .photo-upload-card > button {
        width: 100%;
    }

    .profile-cover {
        min-height: 238px;
    }

    .profile-cover h1 {
        font-size: 30px;
    }

    .insta-profile-head {
        grid-template-columns: 96px 1fr;
        gap: 12px;
    }

    .avatar-upload-mini,
    .profile-avatar.large {
        width: 92px;
        height: 92px;
    }

    .profile-social-stats strong {
        font-size: 17px;
    }

    .profile-social-stats span {
        font-size: 10px;
    }

    .profile-toolbar {
        grid-template-columns: 38px 1fr auto;
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .profile-toolbar button {
        min-height: 34px;
        padding: 0 9px;
        font-size: 11px;
    }

    .shared-photo-grid strong {
        font-size: 11px;
    }

    .messages-hero {
        align-items: start;
        flex-direction: column;
    }

    .messages-hero h1 {
        font-size: 25px;
    }

    .conversation-card {
        grid-template-columns: 50px 1fr auto;
        padding: 12px;
    }

    .conversation-avatar span {
        width: 50px;
        height: 50px;
    }

    .events-hero {
        align-items: start;
        flex-direction: column;
    }

    .events-hero h1 {
        font-size: 25px;
    }

    .event-filter-panel {
        grid-template-columns: 1fr;
    }

    .event-card-footer {
        align-items: start;
        flex-wrap: wrap;
    }

    .discover-search h1 {
        font-size: 26px;
    }

    .nearby-grid,
    .smart-discovery-grid {
        grid-template-columns: 1fr;
    }

    .discover-post-card footer {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
