: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%;
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, #03070d, #0b1b2c 46%, #0aa6d8 46.2%, #20e6d2 100%);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

button,
input,
select {
    font: inherit;
}

.bassla-entry-splash {
    position: fixed;
    z-index: 2147483600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(20px + env(safe-area-inset-bottom, 0px));
    color: #07111f;
    background:
        radial-gradient(circle at 50% 38%, rgba(32, 230, 210, .28), transparent 31%),
        linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
    opacity: 1;
    visibility: visible;
    transition: none;
}

.bassla-entry-splash.is-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.bassla-entry-splash-inner {
    width: min(78vw, 260px);
    display: grid;
    justify-items: center;
    gap: 16px;
    transform: translateY(-10px);
    animation: bassla-splash-rise .72s cubic-bezier(.2, .8, .2, 1) both;
}

.bassla-entry-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(18, 206, 193, .24);
    animation: bassla-splash-pulse 1.15s ease-in-out infinite;
}

.bassla-entry-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bassla-entry-splash strong {
    color: #07111f;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -.045em;
}

.bassla-entry-splash span {
    width: 118px;
    height: 5px;
    overflow: hidden;
    position: relative;
    background: #e8eef2;
    border-radius: 999px;
}

.bassla-entry-splash span::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 45%;
    background: #07111f;
    border-radius: inherit;
    animation: bassla-splash-bar 1.05s ease-in-out infinite;
}

@keyframes bassla-splash-rise {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

@keyframes bassla-splash-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}

@keyframes bassla-splash-bar {
    0% {
        left: -46%;
        width: 38%;
    }
    55% {
        left: 32%;
        width: 54%;
    }
    100% {
        left: 104%;
        width: 40%;
    }
}

@keyframes bassla-splash-autohide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

input,
select,
textarea {
    font-size: 16px;
}

.app-page,
.feed-main,
.mobile-auth-shell {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
}

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

.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;
}

.intro-slider {
    position: relative;
    z-index: 1;
    min-height: 292px;
    margin-top: 92px;
    touch-action: pan-y;
}

.intro-slider .hero-card {
    position: absolute;
    inset: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(22px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.intro-slider .hero-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.slider-arrow {
    position: absolute;
    top: calc(100% - 28px);
    z-index: 2;
    width: 42px;
    min-height: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(7, 17, 31, 0.18);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

.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,
.intro-dots button {
    width: 10px;
    min-height: 10px;
    height: 10px;
    padding: 0;
    background: transparent;
    border: 2px solid #b8bec8;
    border-radius: 99px;
    box-shadow: none;
}

.intro-dots span.active,
.intro-dots button.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;
}

.auth-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.auth-action-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.auth-action-icon.login-icon::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.auth-action-icon.login-icon::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 0;
    height: 8px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.auth-action-icon.register-icon::before,
.auth-action-icon.register-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 999px;
}

.auth-action-icon.register-icon::before {
    left: 3px;
    top: 9px;
    width: 14px;
    height: 2px;
}

.auth-action-icon.register-icon::after {
    left: 9px;
    top: 3px;
    width: 2px;
    height: 14px;
}

.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;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.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-page {
    min-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.auth-page .mobile-auth-shell,
.auth-page .auth-screen.is-active {
    height: auto;
    min-height: 100dvh;
}

.auth-page .form-panel {
    margin-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}

.auth-page .auth-form > button[type="submit"] {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.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;
}

.auth-account-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-account-type legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.auth-account-type label {
    position: relative;
    min-height: 76px;
    display: grid;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f8f9fb;
}

.auth-account-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-account-type label:has(input:checked) {
    border-color: var(--snap);
    background: rgba(44, 216, 202, .13);
    box-shadow: inset 0 0 0 1px var(--snap);
}

.auth-account-type strong,
.auth-account-type small {
    display: block;
}

.auth-account-type strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
}

.auth-account-type small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.auth-corporate-fields {
    display: grid;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(44, 216, 202, .42);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(44, 216, 202, .10), rgba(255,255,255,.96));
}

.auth-corporate-fields[hidden] {
    display: none;
}

.profile-badge.corporate {
    color: #061723;
    background: #2cd8ca;
}

.profile-corporate-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: #5f6b7b;
    font-size: 13px;
    font-weight: 800;
}

.profile-corporate-line strong {
    color: #07111f;
}

.profile-corporate-line span,
.profile-corporate-line a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #075e62;
    background: #e8fbf8;
    text-decoration: none;
}

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);
}

.app-page.feed-page {
    background: #ffffff;
}

.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);
}

.profile-menu {
    position: relative;
}

.profile-menu summary {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 9px;
    cursor: pointer;
    list-style: none;
    background: #f3f6fa;
    border-radius: 14px;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-menu summary span {
    width: 18px;
    height: 2px;
    display: block;
    margin: 0;
    background: var(--ink);
    border-radius: 999px;
}

.profile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    width: min(86vw, 340px);
    min-width: 280px;
    height: 100vh;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 18px 16px 20px;
    background: #ffffff;
    border-left: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 26px 0 0 26px;
    box-shadow: -24px 0 70px rgba(7, 17, 31, 0.18);
    transform: translateX(105%);
    transition: transform 0.26s ease;
}

.profile-menu[open] .profile-menu-panel {
    transform: translateX(0);
}

.profile-menu[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(7, 17, 31, 0.24);
    backdrop-filter: blur(3px);
}

.profile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 16px;
    border-bottom: 1px solid rgba(7, 17, 31, 0.08);
}

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

.profile-menu-head strong {
    color: var(--ink);
    font-size: 17px;
    letter-spacing: -0.2px;
}

.profile-menu-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.profile-menu-head button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink);
    background: #f3f6fa;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.profile-menu-panel a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    color: var(--ink);
    border-bottom: 1px solid rgba(7, 17, 31, 0.07);
    border-radius: 0;
    font-size: 13px;
    font-weight: 900;
}

.profile-menu-panel a::after {
    content: "›";
    color: #a4afba;
    font-size: 20px;
    font-weight: 500;
}

.profile-menu-panel a:hover,
.profile-menu-panel a:focus {
    color: var(--deep);
    background: transparent;
}

.profile-menu-panel a.danger {
    color: #e84b5f;
    border-bottom: 0;
    margin-top: 8px;
}

.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: 120;
    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;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    padding: 10px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    box-shadow: 0 -24px 70px rgba(2, 6, 12, 0.28);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.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-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 6px;
    margin-bottom: 14px;
    background: #f1f4f8;
    border-radius: 999px;
}

.create-tabs.two {
    grid-template-columns: repeat(2, 1fr);
}

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

.create-tabs button.active {
    color: var(--deep);
    background: var(--snap);
}

.create-panel {
    display: none;
    gap: 12px;
}

.create-panel.active {
    display: grid;
}

.create-panel button {
    margin-top: 2px;
    color: var(--paper);
    background: linear-gradient(135deg, #0aa6d8, var(--night));
}

.create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.create-grid.three {
    grid-template-columns: 1fr 1fr 90px;
}

.upload-drop {
    min-height: 132px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 18px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(32, 230, 210, 0.12), rgba(10, 166, 216, 0.08)),
        #f8fbfd;
    border: 2px dashed rgba(10, 166, 216, 0.34);
    border-radius: 22px;
}

.upload-drop.compact {
    min-height: 92px;
    padding: 13px;
}

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

.upload-drop strong {
    font-size: 18px;
}

.upload-drop small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.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 {
    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;
}

.instagram-feed-main {
    background: #ffffff;
}

.insta-home-topbar {
    grid-template-columns: auto 1fr auto;
}

.insta-home-topbar > strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
    text-align: center;
}

.instagram-feed-list {
    display: grid;
    gap: 14px;
    padding: 14px 0 96px;
}

.insta-feed-card {
    overflow: hidden;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 560px) {
    .insta-feed-card {
        border-radius: 0;
        box-shadow: none;
    }
}

.insta-feed-head {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
}

.insta-author-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--night), #26d8ca);
    border-radius: 50%;
}

.insta-author-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.insta-author-avatar b {
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.insta-feed-head a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.insta-feed-head span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.insta-feed-head small {
    padding: 7px 9px;
    color: #075466;
    background: #dffbf8;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.insta-feed-image {
    width: 100%;
    height: clamp(240px, 68vw, 340px);
    max-height: 340px;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #0b1220;
}

.insta-event-cover {
    min-height: 220px;
    max-height: 360px;
    aspect-ratio: 4 / 3;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 22px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.92)),
        url("../img/padel-background.png") center/cover;
}

.insta-event-cover span {
    width: fit-content;
    padding: 7px 10px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.insta-event-cover strong {
    max-width: 520px;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.insta-feed-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px 2px;
}

.insta-feed-actions form {
    margin: 0;
}

.insta-feed-actions form[data-event-apply] {
    margin-left: auto;
}

.insta-action {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 22px;
    font-weight: 950;
}

.insta-action b {
    min-width: 8px;
    color: #5d697a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.insta-action.is-liked,
.insta-action.is-liked b {
    color: #ff315f;
}

.insta-action .action-icon {
    display: block;
    font-size: 25px;
    line-height: 1;
}

.insta-apply-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #ffffff;
    text-decoration: none;
    background: #0b1220;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.insta-apply-action:disabled,
.insta-apply-action.is-applied {
    color: #5d697a;
    background: #edf2f6;
}

.insta-feed-copy {
    display: grid;
    gap: 10px;
    padding: 8px 14px 15px;
}

.insta-comment-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 0 14px 15px;
}

.insta-comment-box[hidden] {
    display: none;
}

.insta-comment-box input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    color: var(--ink);
    background: #f3f6f9;
    border: 0;
    border-radius: 999px;
    outline: none;
    font-size: 14px;
    font-weight: 800;
}

.insta-comment-box button {
    min-height: 42px;
    padding: 0 14px;
    color: #ffffff;
    background: var(--deep);
    border-radius: 999px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 950;
}

.insta-comment-preview {
    padding: 0 14px 10px;
    color: #263244;
    font-size: 13px;
    line-height: 1.4;
}

.insta-comment-preview strong {
    color: var(--ink);
    font-weight: 950;
}

.insta-feed-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.insta-feed-copy p {
    margin: 0;
    color: #263244;
    font-size: 14px;
    line-height: 1.48;
}

.insta-feed-copy p strong {
    color: var(--ink);
    font-weight: 950;
}

.insta-feed-copy time,
.insta-price {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.insta-event-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.insta-event-meta span {
    display: grid;
    gap: 3px;
    padding: 10px;
    color: var(--ink);
    background: #f3f6f9;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 900;
}

.insta-event-meta b {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
}

.feed-empty-state {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin: 4px 0 0;
    padding: 22px;
    background: #ffffff;
    border: 1px dashed rgba(7, 17, 31, 0.18);
    border-radius: 24px;
}

.feed-empty-state strong {
    color: var(--ink);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.feed-empty-state span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.feed-empty-state button {
    min-height: 42px;
    padding: 0 16px;
    color: #ffffff;
    background: #0b1220;
    border-radius: 999px;
    box-shadow: none;
}

.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(4, 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-toolbar-message {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.profile-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
}

.profile-bio-block > .profile-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
}

.profile-action-row form {
    margin: 0;
}

.profile-action-row button,
.profile-action-row a {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #101923;
    border: 1px solid #101923;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: none;
}

.profile-action-row a.primary {
    color: #ffffff;
    background: #101923;
    border-color: #101923;
}

.profile-action-row button.secondary,
.profile-action-row a {
    color: var(--ink);
    background: #eef2f6;
    border: 1px solid var(--line);
}

.profile-toolbar-spacer {
    width: 40px;
    height: 40px;
}

.profile-tabs-section {
    margin: 4px -14px 14px;
    background: var(--paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.profile-tabs {
    display: grid;
    grid-template-columns: repeat(3, 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(--ink);
    border-bottom: 2px solid var(--ink);
}

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

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.active {
    display: block;
}

.profile-empty-state {
    display: grid;
    gap: 5px;
    padding: 20px;
    text-align: center;
    background: #f6f9fc;
    border: 1px dashed rgba(7, 17, 31, 0.14);
    border-radius: 22px;
}

.profile-empty-state strong {
    color: var(--ink);
    font-size: 15px;
}

.profile-empty-state span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

.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: 2px;
}

.shared-photo-grid article {
    position: relative;
    aspect-ratio: 1;
    display: block;
    padding: 0;
    color: var(--paper);
    background: #eef2f6;
    overflow: hidden;
}

.shared-photo-grid.real-photos article {
    background: #eef2f6;
}

.shared-photo-grid.real-photos img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.shared-photo-grid.real-photos span,
.shared-photo-grid.real-photos strong {
    display: none;
}

.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-personal-grid {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.profile-personal-grid article {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.profile-personal-grid article.wide {
    grid-column: 1 / -1;
}

.profile-personal-grid span,
.profile-personal-grid strong,
.profile-personal-grid p {
    display: block;
}

.profile-personal-grid span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-personal-grid strong {
    color: var(--ink);
    font-size: 14px;
}

.profile-personal-grid p {
    margin: 0;
    color: #465265;
    line-height: 1.45;
    font-size: 13px;
    font-weight: 800;
}

.profile-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-chip-list b {
    padding: 7px 10px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
}

.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-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-name-line h1 {
    margin: 0;
}

.profile-rozet-stack {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-rozet-button {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

.profile-rozet-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.profile-rozet-popover {
    width: min(100%, 320px);
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 12px 14px;
    color: #07111f;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(7, 17, 31, 0.10);
}

.profile-rozet-popover[hidden] {
    display: none !important;
}

.profile-rozet-popover strong {
    font-size: 13px;
    font-weight: 950;
}

.profile-rozet-popover p {
    margin: 0;
    color: #687386;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.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;
}

.identity-section {
    border-color: rgba(10, 166, 216, 0.18);
}

.identity-status-card {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 15px;
    background: #f6f9fc;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 22px;
}

.identity-status-card strong,
.identity-status-card p {
    display: block;
    margin: 0;
}

.identity-status-card strong {
    color: var(--ink);
    font-size: 15px;
}

.identity-status-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.identity-status-card > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.identity-status-card.approved > span {
    background: #16a36b;
}

.identity-status-card.rejected > span {
    background: #e84b5f;
}

.identity-upload {
    display: grid;
    gap: 5px;
    padding: 16px;
    cursor: pointer;
    background: #ffffff;
    border: 1px dashed rgba(7, 17, 31, 0.22);
    border-radius: 20px;
}

.identity-upload input {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
}

.identity-upload span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.identity-upload small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.about-me-section {
    display: grid;
    gap: 14px;
}

.section-title.compact {
    margin-top: 4px;
}

.section-title.compact h2 {
    font-size: 18px;
}

.about-me-card,
.logout-card {
    display: grid;
    gap: 5px;
    padding: 15px;
    color: var(--ink);
    background: #f6f9fc;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 20px;
}

.about-me-card span,
.logout-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.about-me-card strong,
.logout-card strong {
    color: var(--ink);
    font-size: 15px;
}

.settings-section {
    border-color: rgba(232, 75, 95, 0.14);
}

.logout-card {
    text-decoration: none;
}

.logout-card strong {
    color: #e84b5f;
}

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

.profile-manage-links {
    display: grid;
    gap: 10px;
}

.profile-manage-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    color: var(--ink);
    background: #f6f9fc;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 20px;
}

.profile-manage-links a::after {
    content: "›";
    color: #a4afba;
    font-size: 24px;
    font-weight: 500;
}

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

.profile-manage-links strong {
    font-size: 14px;
}

.profile-manage-links span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.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);
}

.compact-message-hero {
    min-height: 128px;
}

.message-profile-link {
    min-width: 82px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--deep);
    background: var(--snap);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.message-shell {
    display: grid;
    gap: 12px;
}

.conversation-card {
    color: inherit;
    text-decoration: none;
}

.conversation-card.active {
    border-color: rgba(43, 216, 202, 0.8);
    box-shadow: 0 16px 32px rgba(43, 216, 202, 0.15);
}

.conversation-avatar {
    overflow: hidden;
}

.messages-page .conversation-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
    max-width: 54px;
    min-height: 54px;
    max-height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--night), #0aa6d8);
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-panel {
    display: grid;
    grid-template-rows: auto minmax(260px, 1fr) auto;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(7, 17, 31, 0.08);
}

.chat-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-bottom: 1px solid var(--line);
}

.chat-panel-head strong,
.chat-panel-head span {
    display: block;
}

.chat-panel-head span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.chat-message-list {
    display: grid;
    align-content: start;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 14px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.chat-message {
    width: min(82%, 420px);
    display: grid;
    gap: 4px;
}

.chat-message.mine {
    justify-self: end;
}

.chat-message.theirs {
    justify-self: start;
}

.chat-message p {
    margin: 0;
    padding: 11px 13px;
    color: var(--ink);
    background: #eef3f8;
    border-radius: 18px 18px 18px 5px;
    line-height: 1.42;
    font-size: 14px;
    font-weight: 750;
}

.chat-message.mine p {
    color: var(--deep);
    background: var(--snap);
    border-radius: 18px 18px 5px 18px;
}

.chat-message time {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.chat-message.mine time {
    text-align: right;
}

.chat-composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
}

.chat-composer textarea {
    min-height: 48px;
    resize: none;
    background: #f8fafc;
    border-radius: 18px;
}

.chat-composer button {
    min-width: 84px;
    color: var(--deep);
    background: var(--snap);
    border-radius: 18px;
    box-shadow: none;
}

.message-empty-card,
.chat-starter-note {
    padding: 16px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 22px;
    font-size: 13px;
    font-weight: 850;
}

.message-empty-card strong,
.message-empty-card span {
    display: block;
}

.message-empty-card strong {
    margin-bottom: 4px;
    color: var(--ink);
}

.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;
    border-radius: 50%;
}

.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;
}

.instagram-messages {
    min-height: calc(100vh - 82px);
    padding: 0 0 92px;
    background: #ffffff;
}

.dm-list-view,
.dm-chat-view {
    width: 100%;
    background: #ffffff;
}

.dm-topbar,
.dm-chat-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(7, 17, 31, 0.08);
    backdrop-filter: blur(18px);
}

.dm-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    justify-content: space-between;
}

.dm-topbar strong,
.dm-topbar span,
.dm-chat-head strong,
.dm-chat-head span {
    display: block;
}

.dm-topbar strong,
.dm-chat-head strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.dm-topbar span,
.dm-chat-head span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.dm-topbar > a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ink);
    text-decoration: none;
    background: #f3f6f9;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 50%;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.dm-search {
    padding: 12px 14px 6px;
}

.dm-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    color: var(--ink);
    background: #f3f6f9;
    border: 0;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
}

.dm-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
}

.dm-section-title strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
}

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

.dm-conversation-list {
    display: grid;
    gap: 2px;
    padding: 0 0 16px;
}

.dm-thread {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 16px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
}

.dm-thread.active,
.dm-thread:active {
    background: #f7fafc;
}

.dm-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--night), #26d8ca);
    border-radius: 50%;
}

.dm-avatar.small {
    width: 42px;
    height: 42px;
    min-width: 42px;
}

.dm-avatar.large {
    width: 88px;
    height: 88px;
    min-width: 88px;
    margin: 0 auto;
}

.dm-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.dm-avatar b {
    color: #ffffff;
    font-size: 21px;
    font-weight: 950;
}

.dm-thread-copy {
    min-width: 0;
    display: block;
}

.dm-thread-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dm-thread-line strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-thread-line time {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.dm-thread-copy small,
.dm-thread-copy em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-thread-copy small {
    margin-top: 2px;
    color: #607086;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.dm-thread-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.dm-unread {
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    color: #ffffff;
    background: #1d9bf0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.dm-empty {
    margin: 12px 16px;
}

.dm-chat-view {
    display: none;
}

.messages-page.chat-open .dm-list-view {
    display: none;
}

.messages-page.chat-open .dm-chat-view {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.dm-chat-head {
    position: sticky;
    top: 0;
    z-index: 14;
}

.dm-back {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--ink);
    text-decoration: none;
    background: #f3f6f9;
    border-radius: 50%;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.dm-chat-body {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 9px;
    overflow-y: auto;
    padding: 18px 14px 18px;
    background: #ffffff;
}

.dm-profile-mini {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 14px 0 18px;
    text-align: center;
}

.dm-profile-mini strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.dm-profile-mini small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.dm-bubble {
    width: fit-content;
    max-width: min(78%, 430px);
    display: grid;
    gap: 4px;
}

.dm-bubble.mine {
    justify-self: end;
}

.dm-bubble.theirs {
    justify-self: start;
}

.dm-bubble p {
    margin: 0;
    padding: 10px 13px;
    color: var(--ink);
    background: #eef2f7;
    border-radius: 19px;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.4;
}

.dm-bubble.mine p {
    color: #ffffff;
    background: #0b1220;
}

.dm-bubble time {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.dm-bubble.mine time {
    text-align: right;
}

.dm-composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(7, 17, 31, 0.08);
}

.dm-composer textarea {
    min-height: 44px;
    max-height: 120px;
    padding: 12px 15px;
    resize: none;
    background: #f3f6f9;
    border: 0;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 800;
}

.dm-composer button {
    min-height: 44px;
    padding: 0 15px;
    color: #ffffff;
    background: #0b1220;
    border-radius: 22px;
    box-shadow: none;
}

.dm-chat-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    min-height: 55vh;
    padding: 24px;
    text-align: center;
}

.dm-chat-placeholder strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
}

.dm-chat-placeholder span {
    max-width: 280px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

@media (min-width: 860px) {
    .instagram-messages {
        width: min(100%, 980px);
        display: grid;
        grid-template-columns: 360px 1fr;
        gap: 0;
        min-height: calc(100vh - 90px);
        padding: 16px 14px 96px;
    }

    .messages-page.chat-open .dm-list-view,
    .dm-list-view,
    .dm-chat-view,
    .messages-page.chat-open .dm-chat-view {
        display: grid;
    }

    .dm-list-view {
        align-content: start;
        border: 1px solid rgba(7, 17, 31, 0.08);
        border-right: 0;
        border-radius: 26px 0 0 26px;
        overflow: hidden;
    }

    .dm-chat-view,
    .messages-page.chat-open .dm-chat-view {
        min-height: 640px;
        grid-template-rows: auto 1fr auto;
        border: 1px solid rgba(7, 17, 31, 0.08);
        border-radius: 0 26px 26px 0;
        overflow: hidden;
    }

    .dm-back {
        display: none;
    }
}

.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: 10px 10px 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: 12px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.06);
}

.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-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px 44px;
    gap: 7px;
    align-items: end;
}

.discover-search-form label {
    margin: 0;
}

.discover-search-form button,
.discover-search-form a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    color: var(--paper);
    background: var(--ink);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: none;
}

.discover-search-form a {
    color: var(--ink);
    background: #eef3f8;
    border: 1px solid var(--line);
}

.discover-search-summary {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

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

.discover-filter-row span,
.discover-filter-row a {
    flex: 0 0 auto;
    padding: 8px 11px;
    color: var(--ink);
    background: #eef3f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

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

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

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

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

.suggested-user-card {
    flex: 0 0 142px;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 12px;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(7, 17, 31, 0.06);
}

.suggested-avatar {
    width: 54px;
    height: 54px;
    overflow: hidden;
    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-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.suggested-user-card button,
.suggested-user-card .mini-action {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #075466;
    background: #dffbf8;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.discover-user-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.suggested-user-card .mini-action.secondary {
    color: var(--ink);
    background: #eef3f8;
}

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

.nearby-grid article,
.smart-discovery-grid article {
    min-height: 92px;
    display: grid;
    align-content: end;
    gap: 5px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 9px 20px rgba(7, 17, 31, 0.05);
}

.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-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.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-event-grid .discover-post-card {
    min-width: 0;
    min-height: 172px;
    display: flex;
    flex-direction: column;
    padding: 9px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(7, 17, 31, 0.055);
}

.discover-event-grid .discover-post-card header {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
}

.discover-event-grid .discover-post-card .avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.discover-event-grid .discover-post-card header > small {
    grid-column: 1 / -1;
    width: fit-content;
    max-width: 100%;
    padding: 4px 7px;
    font-size: 9px;
}

.discover-event-grid .discover-post-card header strong,
.discover-event-grid .discover-post-card header span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discover-event-grid .discover-post-card header strong {
    font-size: 11px;
}

.discover-event-grid .discover-post-card header span {
    margin-top: 1px;
    font-size: 9px;
}

.discover-event-grid .discover-post-card h3 {
    display: -webkit-box;
    margin: 8px 0 4px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.discover-event-grid .discover-post-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #667085;
    font-size: 10px;
    line-height: 1.28;
}

.discover-event-grid .discover-post-card footer {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
}

.discover-event-grid .discover-post-card footer a,
.discover-event-grid .discover-post-card footer button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
}

.discover-event-grid .discover-post-card footer a:nth-child(2),
.discover-event-grid .discover-post-card footer button {
    display: none;
}

.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,
.discover-post-card footer a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: #f1f4f8;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

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

.discover-post-image {
    width: 100%;
    max-height: 260px;
    margin-top: 12px;
    object-fit: cover;
    border-radius: 18px;
}

.discover-muted-card,
.discover-empty-state {
    padding: 16px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(7, 17, 31, 0.06);
}

.discover-empty-state {
    margin-bottom: 14px;
}

.discover-empty-state strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
}

.discover-empty-state p {
    margin: 0;
}

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    margin: -14px -14px 14px;
    padding: 6px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(7, 17, 31, 0.06);
    backdrop-filter: blur(14px);
}

.home-topbar-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-topbar .mini-brand,
.topbar-create-button {
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
}

.home-topbar .mini-brand span {
    flex: 0 0 36px;
}

.topbar-create-button {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.topbar-create-button span {
    display: block;
    color: inherit;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-2px);
}

.topbar-icon {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid rgba(7, 17, 31, 0.12);
    border-radius: 50%;
}

.topbar-icon span {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
    color: inherit;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.topbar-icon.icon-bell span::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border: 1.8px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 5px 5px;
}

.topbar-icon.icon-bell span::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 14px;
    width: 14px;
    height: 1.8px;
    background: currentColor;
    border-radius: 99px;
    box-shadow: 6px 3px 0 -4px currentColor;
}

.topbar-icon.icon-message span {
    width: 18px;
    height: 14px;
    border: 1.8px solid currentColor;
    border-radius: 6px;
}

.topbar-icon.icon-message span::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: -4px;
    width: 7px;
    height: 7px;
    background: #f8fafc;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
}

.feed-page .circle-stories {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
    background: #ffffff;
}

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

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

.topbar-icon b {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: #ff3b63;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.notifications-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% -8%, rgba(255, 59, 99, 0.16), transparent 30%),
        radial-gradient(circle at 100% 4%, rgba(10, 166, 216, 0.16), transparent 34%),
        #ffffff;
}

.notifications-main {
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 14px 92px;
}

.notifications-header {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.round-back {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #f4f7fb;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
}

.notifications-header h1 {
    margin: 2px 0 0;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.7px;
}

.notification-total {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #ff3b63, #0aa6d8);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(255, 59, 99, 0.24);
}

.push-ready-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(15, 48, 75, 0.94)),
        var(--night);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(7, 17, 31, 0.18);
}

.push-ready-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.push-ready-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.45;
}

.push-ready-card span {
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.notifications-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

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

.notifications-toolbar button,
.notification-actions button,
.notification-actions a {
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0 13px;
    color: var(--ink);
    background: #eef4f8;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 900;
}

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

.notification-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(7, 17, 31, 0.06);
}

.notification-card.unread {
    border-color: rgba(255, 59, 99, 0.28);
    background: linear-gradient(135deg, rgba(255, 59, 99, 0.08), rgba(255, 255, 255, 0.96));
}

.notification-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
}

.notification-copy strong,
.notification-copy small,
.notification-copy time {
    display: block;
}

.notification-copy strong {
    color: var(--ink);
    font-size: 14px;
}

.notification-copy small {
    margin-top: 3px;
    color: #0aa6d8;
    font-size: 11px;
    font-weight: 900;
}

.notification-copy p {
    margin: 8px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.notification-copy time {
    color: #9aa5b2;
    font-size: 11px;
    font-weight: 800;
}

.notification-actions {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 6px;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: min(100%, 720px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.bottom-nav a {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
}

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

.bottom-nav a .nav-svg-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: currentColor;
}

.bottom-nav a .nav-svg-icon svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav a .nav-svg-icon svg path,
.bottom-nav a .nav-svg-icon svg circle {
    vector-effect: non-scaling-stroke;
}

.bottom-nav a .nav-profile-photo {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    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;
    box-sizing: border-box;
    flex: 0 0 34px;
}

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

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

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

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

.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%;
}

.identity-section {
    border-color: rgba(10, 166, 216, 0.18);
}

.identity-status-card {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 15px;
    background: #f6f9fc;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 22px;
}

.identity-status-card strong,
.identity-status-card p {
    display: block;
    margin: 0;
}

.identity-status-card strong {
    color: var(--ink);
    font-size: 15px;
}

.identity-status-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.identity-status-card > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--night), #0aa6d8);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.identity-status-card.approved > span {
    background: #16a36b;
}

.identity-status-card.rejected > span {
    background: #e84b5f;
}

.identity-upload {
    display: grid;
    gap: 5px;
    padding: 16px;
    cursor: pointer;
    background: #ffffff;
    border: 1px dashed rgba(7, 17, 31, 0.22);
    border-radius: 20px;
}

.identity-upload input {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
}

.identity-upload span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.identity-upload small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

    .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;
    }

    .discover-search-form {
        grid-template-columns: 1fr 92px;
    }

    .discover-search-form label {
        grid-column: 1 / -1;
    }

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

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

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

    .create-sheet {
        max-height: 92vh;
    }

    .notifications-header {
        grid-template-columns: 38px 1fr 34px;
        gap: 9px;
    }

    .notifications-header h1 {
        font-size: 21px;
    }

    .push-ready-card {
        align-items: start;
    }

    .notification-card {
        grid-template-columns: 44px 1fr;
    }

    .notification-icon {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }

    .notification-actions {
        grid-column: 2;
        grid-auto-flow: column;
        justify-content: start;
        justify-items: start;
    }
}

.story-avatar.story-live {
    background:
        linear-gradient(var(--night), var(--night)) padding-box,
        linear-gradient(135deg, #20e6d2, #d6a23a) border-box;
}

.story-sheet-backdrop,
.story-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 42;
    background: rgba(2, 6, 12, 0.56);
    backdrop-filter: blur(10px);
}

.story-sheet-backdrop {
    display: grid;
    align-items: end;
}

.story-sheet-backdrop[hidden],
.story-preview-backdrop[hidden] {
    display: none;
}

.story-create-sheet {
    width: min(100%, 720px);
    max-height: 88vh;
    margin: 0 auto;
    overflow-y: auto;
    padding: 10px 16px 22px;
    background: #ffffff;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    box-shadow: 0 -18px 60px rgba(2, 6, 12, 0.22);
}

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

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

.story-create-sheet header strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
}

.push-ready-card button {
    min-width: 116px;
    min-height: 42px;
    padding: 0 14px;
    color: #07111f;
    background: #26d9c7;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 950;
}

.push-ready-card button.is-active,
.push-ready-card button:disabled.is-active {
    color: #07111f;
    background: #ffffff;
    opacity: 1;
}

.bassla-notification-toast {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    top: calc(env(safe-area-inset-top) + 14px);
    z-index: 99999;
    display: block;
    padding: 14px 16px;
    color: #07111f;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(7, 17, 31, 0.18);
    text-decoration: none;
    transform: translateY(-18px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.bassla-notification-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.bassla-notification-toast strong,
.bassla-notification-toast span {
    display: block;
}

.bassla-notification-toast strong {
    font-size: 14px;
    font-weight: 950;
}

.bassla-notification-toast span {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

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

.story-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;
}

.story-create-sheet form {
    display: grid;
    gap: 12px;
}

.story-upload-main {
    min-height: 172px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 20px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(32, 230, 210, 0.16), rgba(214, 162, 58, 0.14)),
        #f7fafc;
    border: 1px dashed rgba(7, 17, 31, 0.18);
    border-radius: 24px;
    cursor: pointer;
}

.story-upload-main input {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.story-upload-main strong {
    color: var(--ink);
    font-size: 19px;
    font-weight: 950;
}

.story-upload-main small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.story-caption-field {
    display: grid;
    gap: 6px;
}

.story-caption-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.story-caption-field input {
    min-height: 48px;
    padding: 0 14px;
    background: #f3f6fa;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 16px;
}

.story-create-sheet form > button {
    min-height: 48px;
    color: #ffffff;
    background: #0b1220;
    border-radius: 18px;
    box-shadow: none;
}

.story-preview-backdrop {
    display: grid;
    place-items: center;
    padding: 22px;
}

.story-preview-backdrop img {
    width: min(100%, 430px);
    max-height: 82vh;
    display: block;
    object-fit: contain;
    background: #050a12;
    border-radius: 26px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
}

.story-preview-backdrop > button {
    width: 42px;
    height: 42px;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: none;
    font-size: 24px;
}

.story-upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.story-upload-actions .story-upload-main {
    min-height: 136px;
}

@media (max-width: 420px) {
    .story-upload-actions {
        grid-template-columns: 1fr;
    }
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 120;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    color: #ffffff;
    background: rgba(7, 17, 31, 0.94);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(7, 17, 31, 0.22);
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.app-toast.is-error {
    background: #ff315f;
}

/* Mobile no-zoom lock: iOS Safari zooms focused fields below 16px. */
html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

input:not([type="file"]),
select,
textarea,
button {
    font-size: 16px !important;
}

input:not([type="file"]):focus,
select:focus,
textarea:focus {
    font-size: 16px !important;
    transform: none !important;
    zoom: 1 !important;
}

.chat-composer textarea,
.dm-composer textarea,
.insta-comment-box input,
.story-caption-field input,
.message-search input,
.dm-search input,
.discover-search input,
.auth-form input,
.create-panel input,
.create-panel select,
.create-panel textarea,
.profile-form input,
.profile-form select,
.profile-form textarea {
    font-size: 16px !important;
}

/* Clean white app chrome */
html,
body,
.app-page,
.feed-page,
.app-page.feed-page,
.profile-page,
.discover-page,
.messages-page,
.events-page {
    background: #ffffff !important;
    background-image: none !important;
}

body::before,
body::after,
.app-page::before,
.app-page::after {
    background: transparent !important;
    background-image: none !important;
}

.bottom-nav {
    background: #ffffff !important;
    background-image: none !important;
    border-top: 1px solid rgba(7, 17, 31, 0.08) !important;
    box-shadow: 0 -8px 24px rgba(7, 17, 31, 0.04) !important;
    backdrop-filter: none !important;
}

.bottom-nav a,
.bottom-nav a:visited {
    color: #687385 !important;
    background: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}

.bottom-nav a.active,
.bottom-nav a.active:visited,
.bottom-nav a:active {
    color: #07111f !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    font-weight: 950 !important;
}

.bottom-nav a.active .nav-svg-icon,
.bottom-nav a.active > span:not(.nav-profile-photo) {
    color: #07111f !important;
    font-weight: 950 !important;
}

.bottom-nav a.active .nav-profile-photo {
    border-color: #07111f !important;
    box-shadow: none !important;
}

/* Grouped story look: one bubble per user, stacked-ring feeling. */
.circle-story.has-story .story-avatar.story-live::before,
.circle-story.has-story .story-avatar.story-live::after {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border: 2px solid rgba(7, 17, 31, 0.08);
    border-radius: 50%;
    background: #ffffff;
}

.circle-story.has-story .story-avatar.story-live::after {
    inset: -9px;
    opacity: 0.55;
}

/* Story sequence viewer */
.story-viewer-card {
    width: min(92vw, 430px);
    max-height: 86vh;
    display: grid;
    gap: 10px;
    padding: 10px;
    color: #ffffff;
    background: #050a12;
    border-radius: 28px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
}

.story-viewer-card > img {
    width: 100%;
    max-height: 64vh;
    display: block;
    object-fit: contain;
    border-radius: 22px;
    background: #050a12;
}

.story-progress {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 5px;
    padding: 4px 2px 0;
}

.story-progress span {
    height: 3px;
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.story-progress span.active {
    background: #ffffff;
}

.story-viewer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px;
}

.story-viewer-meta strong,
.story-viewer-meta span {
    display: block;
}

.story-viewer-meta strong {
    font-size: 14px;
    font-weight: 950;
}

.story-viewer-meta span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.story-viewer-card p {
    margin: 0;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.story-viewer-actions {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
    align-items: center;
}

.story-viewer-actions button {
    min-height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: none;
    font-size: 22px !important;
    font-weight: 950;
}

.story-viewer-actions [data-story-delete] {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.14);
    font-size: 14px !important;
}

/* Home feed polish */
.instagram-feed-list,
.insta-feed-card,
.insta-feed-head,
.insta-feed-copy {
    background: #ffffff !important;
    background-image: none !important;
}

.insta-feed-card {
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
}

.insta-feed-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff !important;
    border-radius: 0 !important;
}

.insta-feed-actions {
    gap: 18px !important;
    padding: 13px 14px 4px !important;
    background: #ffffff !important;
}

.insta-action {
    min-width: 32px !important;
    min-height: 32px !important;
    gap: 5px !important;
    color: #07111f !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.insta-action .action-icon {
    width: 28px !important;
    height: 28px !important;
    display: grid !important;
    place-items: center !important;
    color: currentColor !important;
}

.insta-action .action-icon svg {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.35 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.insta-action.is-liked .action-icon svg {
    fill: #ff315f !important;
    stroke: #ff315f !important;
}

.insta-action b {
    color: #5d697a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.insta-action.is-liked,
.insta-action.is-liked b {
    color: #ff315f !important;
}

.insta-feed-copy {
    padding: 7px 14px 18px !important;
}

/* Home feed images should feel native: edge-to-edge media, readable chrome. */
.feed-page .feed-main.instagram-feed-main {
    width: 100% !important;
    max-width: 620px !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: hidden !important;
}

.feed-page .home-topbar,
.feed-page .circle-stories,
.feed-page .feed-empty-state,
.feed-page .insta-feed-head,
.feed-page .insta-feed-actions,
.feed-page .insta-feed-copy,
.feed-page .insta-comment-box {
    margin-right: 14px !important;
    margin-left: 14px !important;
}

.feed-page .instagram-feed-list,
.feed-page .insta-feed-card {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.feed-page .insta-feed-card {
    border-radius: 0 !important;
    overflow: hidden !important;
}

.feed-page .insta-feed-image {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

@media (min-width: 621px) {
    .feed-page .insta-feed-image {
        width: 620px !important;
        max-width: 620px !important;
    }
}

/* Keep the home header aligned after edge-to-edge feed media. */
.feed-page .home-topbar.insta-home-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    width: 100% !important;
    max-width: 620px !important;
    min-height: 40px !important;
    margin: 0 0 8px !important;
    padding: 0 14px 4px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 44px 1fr 88px !important;
    align-items: center !important;
    gap: 8px !important;
    color: #07111f !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(7, 17, 31, 0.08) !important;
    backdrop-filter: blur(16px) !important;
}

.feed-page .home-topbar.insta-home-topbar > strong {
    justify-self: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.feed-page .home-topbar.insta-home-topbar .home-topbar-actions {
    justify-self: end !important;
}

/* Profile photo grid opens into an Instagram-like vertical feed. */
.shared-photo-grid.real-photos article button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

.shared-photo-grid.real-photos article button:active img {
    transform: scale(0.985);
}

.profile-photo-flow[hidden],
.shared-photo-grid[hidden] {
    display: none !important;
}

.profile-photo-flow {
    display: grid;
    gap: 0;
    background: #ffffff;
}

.profile-photo-flow-head {
    position: sticky;
    top: 58px;
    z-index: 7;
    display: grid;
    grid-template-columns: 96px 1fr 96px;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(7, 17, 31, 0.08);
    backdrop-filter: blur(14px);
}

.profile-photo-flow-head button {
    min-height: 34px;
    padding: 0;
    color: #07111f;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 12px;
    font-weight: 950;
    text-align: left;
}

.profile-photo-flow-head strong {
    justify-self: center;
    color: #07111f;
    font-size: 14px;
    font-weight: 950;
}

.profile-flow-post {
    scroll-margin-top: 108px;
    padding: 0 0 18px;
    background: #ffffff;
    border-bottom: 8px solid #f5f7fa;
}

.profile-flow-author {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
}

.profile-flow-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #07111f;
    background: #26d9c7;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 950;
}

.profile-flow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-flow-author strong,
.profile-flow-author small {
    display: block;
}

.profile-flow-author strong {
    color: #07111f;
    font-size: 14px;
    font-weight: 950;
}

.profile-flow-author small {
    margin-top: 2px;
    color: #6b7788;
    font-size: 12px;
    font-weight: 800;
}

.profile-flow-menu {
    position: relative;
    justify-self: end;
}

.profile-flow-menu-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0 0 9px;
    color: #07111f;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.profile-flow-menu-panel {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 12;
    min-width: 138px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .08);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(7, 17, 31, .16);
}

.profile-flow-menu-panel[hidden] {
    display: none !important;
}

.profile-flow-menu-panel button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: #07111f;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid rgba(7, 17, 31, .06);
    box-shadow: none;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
}

.profile-flow-menu-panel form {
    margin: 0;
}

.profile-flow-menu-panel button.danger {
    color: #e33b55;
    border-bottom: 0;
}

.profile-flow-image {
    width: 100%;
    min-height: 420px;
    max-height: 680px;
    display: block;
    object-fit: cover;
    background: #f1f4f8;
}

.profile-flow-actions {
    display: flex;
    align-items: center;
    gap: 18px !important;
    padding: 13px 14px 4px !important;
    background: #ffffff !important;
}

.profile-flow-actions .insta-action {
    min-width: 32px !important;
    min-height: 32px !important;
    gap: 5px !important;
    color: #07111f !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.profile-flow-actions .insta-action .action-icon {
    width: 28px !important;
    height: 28px !important;
    display: grid !important;
    place-items: center !important;
    color: currentColor !important;
}

.profile-flow-actions .insta-action .action-icon svg {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.35 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.profile-flow-actions .insta-action b {
    color: #5d697a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.profile-flow-post p {
    margin: 8px 14px 0;
    color: #182232;
    font-size: 14px;
    line-height: 1.42;
}

.profile-flow-post p strong {
    color: #07111f;
    font-weight: 950;
}

.profile-flow-edit-form {
    margin: 10px 14px 0;
    display: grid;
    gap: 10px;
}

.profile-flow-edit-form[hidden] {
    display: none !important;
}

.profile-flow-edit-form textarea {
    width: 100%;
    min-height: 92px;
    padding: 13px 14px;
    resize: vertical;
    color: #07111f;
    background: #f5f8fa;
    border: 1px solid rgba(7, 17, 31, .08);
    border-radius: 18px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}

.profile-flow-edit-form > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.profile-flow-edit-form button {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 950;
}

.profile-flow-edit-form button[type="button"] {
    color: #07111f;
    background: #edf2f5;
}

.profile-flow-edit-form button[type="submit"] {
    color: #ffffff;
    background: #07111f;
}

/* Mobile DM composer: stay above bottom navigation and support attachments. */
.messages-page.chat-open .dm-chat-body {
    padding-bottom: 150px !important;
}

.messages-page.chat-open .dm-composer {
    position: fixed !important;
    right: 0 !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    z-index: 70 !important;
    width: min(100%, 620px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 7px !important;
    align-items: end !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(7, 17, 31, 0.08) !important;
    box-shadow: 0 -12px 28px rgba(7, 17, 31, 0.08) !important;
    backdrop-filter: blur(16px) !important;
}

.dm-attach-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #f1f4f8;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 50%;
    font-size: 26px;
    font-weight: 450;
    line-height: 1;
}

.dm-attach-button.has-file {
    color: #07111f;
    background: #26d9c7;
    border-color: #26d9c7;
}

.dm-attach-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.messages-page.chat-open .dm-composer textarea {
    width: 100% !important;
    min-height: 42px !important;
    max-height: 110px !important;
    padding: 11px 14px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

.messages-page.chat-open .dm-composer button[type="submit"] {
    min-height: 42px !important;
    padding: 0 13px !important;
    white-space: nowrap !important;
}

.dm-attachment {
    overflow: hidden;
    border-radius: 18px;
}

.dm-attachment img,
.dm-attachment video {
    width: min(260px, 68vw);
    max-height: 340px;
    display: block;
    object-fit: cover;
    background: #eef2f7;
}

.dm-attachment a {
    width: min(260px, 68vw);
    min-height: 72px;
    display: grid;
    gap: 3px;
    align-content: center;
    padding: 12px 14px;
    color: #07111f;
    text-decoration: none;
    background: #eef2f7;
}

.dm-bubble.mine .dm-attachment a {
    color: #ffffff;
    background: #0b1220;
}

.dm-attachment a span {
    color: inherit;
    opacity: 0.68;
    font-size: 11px;
    font-weight: 900;
}

.dm-attachment a strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 950;
}

@media (min-width: 860px) {
    .messages-page.chat-open .dm-composer {
        position: sticky !important;
        bottom: auto !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    .messages-page.chat-open .dm-chat-body {
        padding-bottom: 18px !important;
    }
}

/* Profile gallery: strict Instagram-style 3 column square grid. */
.profile-page .shared-photo-grid.real-photos {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1px !important;
    align-items: stretch !important;
    background: #ffffff !important;
}

/* Profile gallery final override: taller 3-column tiles. */
.profile-page .shared-photo-grid.real-photos {
    gap: 2px !important;
    background: #ffffff !important;
}

.profile-page .shared-photo-grid.real-photos article {
    aspect-ratio: 1 / 1.32 !important;
    min-height: 132px !important;
    background: #eef2f6 !important;
}

.profile-page .shared-photo-grid.real-photos article button {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.profile-page .shared-photo-grid.real-photos img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.profile-page .profile-photo-flow {
    margin-top: 0 !important;
    background: #ffffff !important;
}

.profile-page .profile-photo-flow-head {
    top: 0 !important;
    min-height: 50px !important;
    grid-template-columns: 90px 1fr 90px !important;
}

.profile-page .profile-flow-post {
    scroll-margin-top: 58px !important;
    border-bottom: 10px solid #f5f7fa !important;
}

.profile-page .profile-flow-image {
    width: 100% !important;
    height: auto !important;
    min-height: 460px !important;
    max-height: none !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 420px) {
    .profile-page .shared-photo-grid.real-photos article {
        min-height: 138px !important;
    }

    .profile-page .profile-flow-image {
        min-height: 500px !important;
    }
}

.profile-page .shared-photo-grid.real-photos article {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #eef2f6 !important;
    border-radius: 0 !important;
}

.profile-page .shared-photo-grid.real-photos article button {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-page .shared-photo-grid.real-photos img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
}

/* DM composer like a mobile social chat bar. */
.messages-page.chat-open .bottom-nav {
    display: none !important;
}

.messages-page.chat-open .dm-chat-view {
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

.messages-page.chat-open .dm-chat-body {
    padding-bottom: 112px !important;
}

.messages-page.chat-open .dm-pill-composer {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 90 !important;
    width: min(100%, 620px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) 40px 40px 40px 40px !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-top: 0 !important;
    box-shadow: 0 -10px 26px rgba(7, 17, 31, 0.06) !important;
}

.messages-page.chat-open .dm-pill-composer::before {
    content: "";
    position: absolute;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    height: 56px;
    z-index: -1;
    background: #f2f2f4;
    border-radius: 999px;
}

.dm-hidden-attachment {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.messages-page.chat-open .dm-pill-composer textarea {
    min-height: 48px !important;
    max-height: 96px !important;
    padding: 11px 0 !important;
    color: #111927 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: none !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
}

.messages-page.chat-open .dm-pill-composer textarea::placeholder {
    color: #6e7480 !important;
    opacity: 1 !important;
}

.dm-icon-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #07111f !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.dm-icon-button svg {
    width: 34px;
    height: 34px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dm-camera-button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    color: #ffffff !important;
    background: #6c2cff !important;
}

.dm-camera-button svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.7;
}

.dm-submit-button svg {
    width: 38px;
    height: 38px;
    stroke-width: 2.2;
}

.dm-pill-composer.has-file .dm-submit-button {
    color: #6c2cff !important;
}

/* Compact fixed DM bar override. */
.messages-page.chat-open .dm-pill-composer input[type="file"],
.dm-hidden-attachment {
    display: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.messages-page.chat-open .dm-pill-composer {
    grid-template-columns: 44px minmax(0, 1fr) 30px 30px 30px 34px !important;
    gap: 5px !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -6px 18px rgba(7, 17, 31, 0.04) !important;
}

.messages-page.chat-open .dm-pill-composer::before {
    right: 12px !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    height: 48px !important;
    background: #f4f5f7 !important;
}

.messages-page.chat-open .dm-pill-composer textarea {
    min-height: 40px !important;
    max-height: 80px !important;
    padding: 9px 0 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
}

.messages-page.chat-open .dm-pill-composer .dm-icon-button {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    color: #07111f !important;
    background: transparent !important;
}

.messages-page.chat-open .dm-pill-composer .dm-icon-button svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.15 !important;
}

.messages-page.chat-open .dm-pill-composer .dm-camera-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    color: #ffffff !important;
    background: #6c2cff !important;
}

.messages-page.chat-open .dm-pill-composer .dm-camera-button svg {
    width: 23px !important;
    height: 23px !important;
    stroke-width: 2.45 !important;
}

.messages-page.chat-open .dm-pill-composer .dm-submit-button svg {
    width: 28px !important;
    height: 28px !important;
}

.messages-page.chat-open .dm-chat-body {
    padding-bottom: 92px !important;
}

/* Final compact mobile DM polish: app-like chat, no bottom gaps, no file input text. */
.messages-page {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.messages-page.chat-list-open {
    overflow-y: auto !important;
}

.messages-page .instagram-messages {
    width: min(100%, 620px) !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.messages-page.chat-list-open .instagram-messages {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
}

.messages-page.chat-open .dm-chat-view {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    background: #ffffff !important;
}

.messages-page .dm-topbar,
.messages-page .dm-chat-head {
    min-height: 52px !important;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 8px !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

.messages-page .dm-topbar strong,
.messages-page .dm-chat-head strong {
    font-size: 17px !important;
}

.messages-page .dm-topbar > a,
.messages-page .dm-back {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: #f4f6f8 !important;
}

.messages-page .dm-search {
    padding: 10px 12px 4px !important;
}

.messages-page .dm-section-title {
    padding: 10px 14px 6px !important;
}

.messages-page .dm-thread {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 9px 14px !important;
}

.messages-page .dm-avatar {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
}

.messages-page .dm-avatar.small {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
}

.messages-page .dm-avatar.large {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
}

.messages-page.chat-open .dm-chat-body {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 8px 10px calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 7px !important;
    overscroll-behavior: contain !important;
}

.messages-page .dm-profile-mini {
    gap: 3px !important;
    padding: 8px 0 10px !important;
}

.messages-page .dm-profile-mini strong {
    font-size: 16px !important;
}

.messages-page .dm-bubble {
    max-width: min(78%, 390px) !important;
    gap: 3px !important;
}

.messages-page .dm-bubble p {
    padding: 9px 12px !important;
    font-size: 14px !important;
    line-height: 1.32 !important;
}

.messages-page .dm-bubble time {
    padding: 0 4px !important;
}

.messages-page.chat-open .dm-pill-composer {
    grid-template-columns: 38px minmax(0, 1fr) 28px 28px 28px 30px !important;
    gap: 4px !important;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.messages-page.chat-open .dm-pill-composer::before {
    right: 8px !important;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    left: 8px !important;
    height: 44px !important;
    background: #f1f3f6 !important;
    border: 1px solid rgba(7, 17, 31, 0.04) !important;
}

.messages-page.chat-open .dm-pill-composer textarea {
    min-height: 36px !important;
    max-height: 78px !important;
    padding: 8px 0 !important;
    font-size: 16px !important;
    line-height: 1.22 !important;
}

.messages-page.chat-open .dm-pill-composer .dm-icon-button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

.messages-page.chat-open .dm-pill-composer .dm-icon-button svg {
    width: 22px !important;
    height: 22px !important;
}

.messages-page.chat-open .dm-pill-composer .dm-camera-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    color: #ffffff !important;
    background: #07111f !important;
}

.messages-page.chat-open .dm-pill-composer .dm-submit-button {
    color: #07111f !important;
}

.messages-page.chat-open .dm-pill-composer .dm-submit-button:disabled {
    opacity: 0.45 !important;
}

.messages-page .dm-hidden-attachment,
.messages-page input[type="file"].dm-hidden-attachment {
    position: fixed !important;
    inset: auto auto 0 0 !important;
    width: 1px !important;
    height: 1px !important;
    display: block !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Final DM composer alignment: keep every action inside the pill on mobile. */
.messages-page.chat-open .dm-pill-composer {
    grid-template-columns: 42px minmax(0, 1fr) 30px 30px 42px !important;
    gap: 7px !important;
    align-items: center !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.messages-page.chat-open .dm-pill-composer::before {
    right: 10px !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px !important;
    height: 48px !important;
    background: #f1f3f6 !important;
    border: 1px solid rgba(7, 17, 31, 0.05) !important;
    border-radius: 999px !important;
}

.messages-page.chat-open .dm-pill-composer textarea {
    min-width: 0 !important;
    min-height: 40px !important;
    max-height: 78px !important;
    padding: 9px 0 !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
}

.messages-page.chat-open .dm-pill-composer .dm-icon-button {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #07111f !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    transform: none !important;
}

.messages-page.chat-open .dm-pill-composer .dm-icon-button svg {
    width: 23px !important;
    height: 23px !important;
}

.messages-page.chat-open .dm-pill-composer .dm-camera-button,
.messages-page.chat-open .dm-pill-composer .dm-submit-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    color: #ffffff !important;
    background: #07111f !important;
    box-shadow: none !important;
}

.messages-page.chat-open .dm-pill-composer .dm-camera-button svg,
.messages-page.chat-open .dm-pill-composer .dm-submit-button svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.55 !important;
}

.messages-page.chat-open .dm-pill-composer .dm-mic-button {
    display: none !important;
}

@media (min-width: 860px) {
    .messages-page {
        overflow-y: auto !important;
    }

    .messages-page .instagram-messages {
        min-height: calc(100vh - 24px) !important;
        padding: 12px !important;
    }

    .messages-page.chat-open .dm-chat-view {
        height: calc(100vh - 24px) !important;
    }

    .messages-page.chat-open .dm-pill-composer {
        position: sticky !important;
        width: 100% !important;
        background: #ffffff !important;
    }
}

/* Home stories: larger add bubble and fullscreen Instagram-like viewer. */
.feed-page .circle-stories {
    align-items: start !important;
    gap: 14px !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
}

.feed-page .circle-story {
    flex-basis: 82px !important;
    width: 82px !important;
    overflow: visible !important;
}

.feed-page .circle-story strong {
    max-width: 82px !important;
    margin-top: 7px !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

.feed-page .story-avatar {
    width: 74px !important;
    height: 74px !important;
    overflow: visible !important;
}

.feed-page .story-avatar img {
    overflow: hidden !important;
    border-radius: 50% !important;
}

.feed-page .add-story .story-avatar {
    width: 76px !important;
    height: 76px !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(145deg, #26d9c7, #07111f) border-box !important;
    border: 2px solid transparent !important;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.10) !important;
}

.feed-page .add-story .story-avatar b {
    right: -3px !important;
    bottom: -2px !important;
    width: 26px !important;
    height: 26px !important;
    z-index: 3 !important;
    color: #07111f !important;
    background: #26d9c7 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 12px rgba(7, 17, 31, 0.18) !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.story-fullscreen-viewer.story-preview-backdrop,
.story-preview-backdrop.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999 !important;
    display: grid !important;
    place-items: stretch !important;
    padding: 0 !important;
    background: #000000 !important;
}

.story-fullscreen-viewer[hidden] {
    display: none !important;
}

.story-fullscreen-viewer .story-close-icon,
.story-preview-backdrop > [data-close-story-preview] {
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: 14px !important;
    z-index: 1002 !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.32) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px) !important;
}

.story-fullscreen-viewer .story-close-icon svg,
.story-viewer-actions button svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.3 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.story-fullscreen-viewer .story-viewer-card {
    width: 100% !important;
    max-width: 620px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto auto auto !important;
    gap: 0 !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 0 calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    background: #000000 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.story-fullscreen-viewer .story-progress {
    display: flex !important;
    gap: 5px !important;
    padding: 0 58px 10px 12px !important;
}

.story-fullscreen-viewer .story-progress span {
    flex: 1 1 0 !important;
    height: 3px !important;
    display: block !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.26) !important;
    border-radius: 999px !important;
}

.story-fullscreen-viewer .story-progress span.active {
    background: #ffffff !important;
}

.story-fullscreen-viewer .story-viewer-card > img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    display: block !important;
    align-self: center !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #111111 !important;
    border-radius: 0 !important;
}

.story-fullscreen-viewer .story-viewer-meta {
    position: absolute !important;
    top: calc(28px + env(safe-area-inset-top, 0px)) !important;
    left: 14px !important;
    right: 64px !important;
    z-index: 1001 !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55) !important;
}

.story-fullscreen-viewer .story-viewer-meta strong {
    font-size: 14px !important;
    font-weight: 950 !important;
}

.story-fullscreen-viewer .story-viewer-meta span {
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 12px !important;
}

.story-fullscreen-viewer .story-viewer-card p {
    position: absolute !important;
    right: 16px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px !important;
    z-index: 1001 !important;
    padding: 12px 14px !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.34) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(14px) !important;
}

.story-fullscreen-viewer .story-viewer-actions {
    position: absolute !important;
    right: 0 !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    z-index: 1001 !important;
    display: grid !important;
    grid-template-columns: 52px 1fr 52px !important;
    align-items: center !important;
    padding: 0 16px !important;
    pointer-events: none !important;
}

.story-fullscreen-viewer .story-viewer-actions button {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.32) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px) !important;
    pointer-events: auto !important;
    font-size: 0 !important;
}

.story-fullscreen-viewer .story-viewer-actions [data-story-delete] {
    justify-self: center !important;
    color: #ff4d6d !important;
    background: rgba(0, 0, 0, 0.34) !important;
}

.story-fullscreen-viewer .story-viewer-actions [data-story-next] {
    justify-self: end !important;
}

.story-upload-main {
    position: relative !important;
    min-height: 118px !important;
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 7px !important;
    padding: 16px 12px !important;
    overflow: hidden !important;
    text-align: center !important;
}

.story-upload-main input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.story-upload-icon {
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
    color: #07111f !important;
    background: #26d9c7 !important;
    border-radius: 50% !important;
}

.story-upload-icon svg {
    width: 25px !important;
    height: 25px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.25 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Discover map entry point. */
.discover-search-form {
    grid-template-columns: 1fr auto 52px auto !important;
}

.discover-search-form .discover-map-button {
    width: 52px !important;
    min-width: 52px !important;
    padding: 0 !important;
    color: #07111f !important;
    background: #eef3f8 !important;
    border: 1px solid rgba(7, 17, 31, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

.discover-map-button svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.1 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.discover-map-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    align-items: end;
    padding: 14px;
    background: rgba(7, 17, 31, 0.38);
    backdrop-filter: blur(10px);
}

.discover-map-backdrop[hidden] {
    display: none !important;
}

.discover-map-panel {
    width: min(100%, 620px);
    max-height: 82vh;
    margin: 0 auto;
    overflow: hidden;
    color: #07111f;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(7, 17, 31, 0.24);
}

.discover-map-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
}

.discover-map-panel header strong,
.discover-map-panel header span {
    display: block;
}

.discover-map-panel header strong {
    font-size: 18px;
    font-weight: 950;
}

.discover-map-panel header span {
    margin-top: 3px;
    color: #6b7788;
    font-size: 12px;
    font-weight: 800;
}

.discover-map-panel header button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #07111f;
    background: #f2f5f8;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    font-size: 24px;
}

.discover-map-placeholder {
    min-height: 330px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(38, 217, 199, 0.26), transparent 34%),
        linear-gradient(135deg, #f5f8fb, #eaf0f5);
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 24px;
}

.discover-map-live {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(280px, 52vh) 1fr;
    overflow: hidden;
}

.discover-map-canvas {
    position: relative;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
    -webkit-user-select: none;
    user-select: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(38, 217, 199, .34), transparent 24%),
        radial-gradient(circle at 78% 34%, rgba(214, 162, 58, .25), transparent 22%),
        linear-gradient(135deg, #eaf8f6, #f5f7fb);
}

.map-zoom-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform-origin: center center;
    will-change: transform;
    touch-action: none;
}

.discover-google-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    touch-action: pan-x pan-y pinch-zoom !important;
}

.discover-map-canvas::before,
.discover-map-canvas::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 18% -10%;
    border-top: 18px solid rgba(255,255,255,.62);
    transform: rotate(-18deg);
}

.discover-map-canvas::after {
    inset: 52% -12%;
    border-top-width: 14px;
    transform: rotate(22deg);
}

.map-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 22% 28%, rgba(38, 217, 199, 0.34), transparent 18%),
        radial-gradient(circle at 78% 22%, rgba(7, 17, 31, 0.08), transparent 20%),
        radial-gradient(circle at 58% 74%, rgba(38, 217, 199, 0.24), transparent 22%),
        linear-gradient(rgba(7,17,31,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7,17,31,.045) 1px, transparent 1px);
    background-size: auto, auto, auto, 64px 64px, 64px 64px;
}

.map-grid::before,
.map-grid::after {
    content: "";
    position: absolute;
    inset: 9% 7%;
    border: 1px solid rgba(7, 17, 31, 0.07);
    border-radius: 44% 56% 48% 52%;
    transform: rotate(-9deg);
}

.map-grid::after {
    inset: 20% 18%;
    border-color: rgba(38, 217, 199, 0.22);
    transform: rotate(14deg);
}

.map-watermark {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    color: rgba(7,17,31,.44);
    font-size: 12px;
    font-weight: 950;
}

.map-event-pin {
    position: absolute;
    z-index: 4;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #07111f;
    text-decoration: none;
    transform: translate(-50%, -100%);
    pointer-events: auto;
}

.map-event-pin b {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #26d9c7;
    border: 4px solid #ffffff;
    border-radius: 50% 50% 50% 10px;
    box-shadow: 0 14px 30px rgba(7,17,31,.18);
    transform: rotate(-45deg);
    font-size: 13px;
    font-weight: 950;
}

.map-event-pin b::first-letter {
    transform: rotate(45deg);
}

.map-event-pin span {
    max-width: 132px;
    padding: 6px 9px;
    overflow: hidden;
    color: #07111f;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255,255,255,.96);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(7,17,31,.10);
    font-size: 11px;
    font-weight: 950;
}

.map-empty-note {
    position: absolute;
    z-index: 5;
    inset: auto 18px 22px;
    padding: 12px 14px;
    color: #07111f;
    text-align: center;
    background: rgba(255,255,255,.86);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 900;
}

.discover-map-events {
    display: grid;
    gap: 10px;
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: #ffffff;
}

.discover-map-events article {
    display: grid;
    gap: 4px;
    padding: 13px;
    background: #f7fafc;
    border: 1px solid rgba(7,17,31,.06);
    border-radius: 20px;
}

.discover-map-events strong {
    color: #07111f;
    font-size: 15px;
    font-weight: 950;
}

.discover-map-events span,
.discover-map-events small {
    color: #687385;
    font-size: 12px;
    font-weight: 800;
}

.discover-map-events a {
    justify-self: start;
    margin-top: 6px;
    padding: 9px 12px;
    color: #07111f;
    background: #26d9c7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.discover-map-placeholder svg {
    width: 104px;
    height: 104px;
    color: #07111f;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.discover-map-placeholder strong {
    font-size: 18px;
    font-weight: 950;
}

.discover-map-placeholder p {
    max-width: 300px;
    margin: 0;
    color: #657286;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

@media (max-width: 640px) {
    .discover-search-form {
        grid-template-columns: 1fr 88px 52px !important;
    }

    .discover-search-form label {
        grid-column: 1 / -1;
    }

    .discover-search-form a {
        grid-column: 1 / -1;
    }
}

/* Compact one-line discover search. */
.discover-page .discover-search {
    padding: 12px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 26px rgba(7, 17, 31, 0.05) !important;
}

.discover-page .discover-search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px 44px auto !important;
    gap: 7px !important;
    align-items: center !important;
}

.discover-page .discover-search-form label {
    min-width: 0 !important;
    margin: 0 !important;
}

.discover-page .discover-search-form label span {
    display: none !important;
}

.discover-page .discover-search-form input {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    border-radius: 16px !important;
}

.discover-page .discover-search-form button[type="submit"] {
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
}

.discover-page .discover-search-form .discover-map-button {
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 16px !important;
}

.discover-page .discover-search-form .discover-map-button svg {
    width: 21px !important;
    height: 21px !important;
}

.discover-page .discover-search-form > a {
    min-height: 44px !important;
    padding: 0 12px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
}

@media (max-width: 640px) {
    .discover-page .discover-search {
        padding: 10px !important;
        border-radius: 22px !important;
    }

    .discover-page .discover-search-form {
        grid-template-columns: minmax(0, 1fr) 64px 42px !important;
        gap: 6px !important;
    }

    .discover-page .discover-search-form label {
        grid-column: auto !important;
    }

    .discover-page .discover-search-form > a {
        grid-column: 1 / -1 !important;
    }

    .discover-page .discover-search-form input,
    .discover-page .discover-search-form button[type="submit"],
    .discover-page .discover-search-form .discover-map-button {
        min-height: 42px !important;
        border-radius: 15px !important;
    }
}

/* Fullscreen discover map. */
.discover-page .discover-search-form .discover-map-button {
    color: #07111f !important;
    background: #26d9c7 !important;
    border-color: #26d9c7 !important;
}

.discover-page .discover-search-form .discover-map-button svg {
    stroke: currentColor !important;
}

.discover-map-backdrop {
    align-items: stretch !important;
    padding: 0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
}

.discover-map-panel {
    width: 100% !important;
    max-width: 620px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.discover-map-panel header {
    min-height: 64px !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px !important;
    border-bottom: 1px solid rgba(7, 17, 31, 0.08) !important;
}

.discover-map-panel header button {
    color: #07111f !important;
    background: #26d9c7 !important;
}

.discover-map-placeholder {
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* Final map fullscreen override. */
body.map-open,
body.map-open .discover-page {
    overflow: hidden !important;
}

.discover-map-backdrop.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.discover-map-backdrop.is-open .discover-map-panel {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.discover-map-backdrop.is-open .discover-map-live {
    position: relative !important;
    min-height: 0 !important;
    height: 100% !important;
    display: block !important;
    overflow: hidden !important;
}

.discover-map-backdrop.is-open .discover-map-canvas {
    position: absolute !important;
    inset: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    touch-action: pan-x pan-y pinch-zoom !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.discover-map-backdrop.is-open .discover-map-canvas::before,
.discover-map-backdrop.is-open .discover-map-canvas::after,
.discover-map-backdrop.is-open .map-grid,
.discover-map-backdrop.is-open .map-zoom-layer {
    display: none !important;
}

.discover-map-backdrop.is-open .discover-google-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    touch-action: pan-x pan-y pinch-zoom !important;
}

.bassla-map-info {
    display: grid;
    gap: 4px;
    min-width: 160px;
    color: #07111f;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.bassla-map-info strong,
.bassla-map-info span {
    display: block;
}

.bassla-map-info strong {
    font-size: 14px;
    font-weight: 950;
}

.bassla-map-info span {
    color: #687385;
    font-size: 12px;
    font-weight: 800;
}

.bassla-map-info a {
    justify-self: start;
    margin-top: 4px;
    padding: 7px 10px;
    color: #07111f;
    background: #26d9c7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.discover-map-backdrop.is-open .discover-map-canvas:active {
    cursor: grabbing !important;
}

.discover-map-backdrop.is-open .map-zoom-layer {
    min-width: 320% !important;
    min-height: 320% !important;
    top: -110% !important;
    left: -110% !important;
    background:
        linear-gradient(135deg, rgba(246, 249, 252, 0.94), rgba(226, 247, 245, 0.94)),
        #eef6f8 !important;
    will-change: transform !important;
}

.discover-map-backdrop.is-open .discover-map-events {
    position: absolute !important;
    right: 0 !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    z-index: 8 !important;
    min-height: 0 !important;
    display: flex !important;
    gap: 10px !important;
    padding: 0 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: transparent !important;
    scrollbar-width: none !important;
}

.discover-map-backdrop.is-open .discover-map-events::-webkit-scrollbar {
    display: none !important;
}

.discover-map-backdrop.is-open .discover-map-events article,
.discover-map-backdrop.is-open .discover-map-events .discover-muted-card {
    min-width: 240px !important;
    max-width: 280px !important;
    flex: 0 0 auto !important;
    background: rgba(255, 255, 255, .9) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 18px 40px rgba(7,17,31,.14) !important;
}

.map-event-pin.estimated b {
    background: #ffffff;
    border-color: #26d9c7;
}

.map-event-pin.estimated span {
    border: 1px solid rgba(38, 217, 199, .45);
}

/* Professional story crop editor. */
.story-editor[hidden] {
    display: none !important;
}

.story-editor {
    display: grid;
    gap: 12px;
    padding: 12px;
    background:
        radial-gradient(circle at 20% 0%, rgba(38, 217, 199, 0.18), transparent 28%),
        #07111f;
    border-radius: 24px;
}

.story-editor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
}

.story-editor-top strong,
.story-editor-top span {
    display: block;
}

.story-editor-top strong {
    font-size: 15px;
    font-weight: 950;
}

.story-editor-top span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 800;
}

.story-editor-top button {
    min-height: 34px;
    padding: 0 12px;
    color: #07111f;
    background: #26d9c7;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 950;
}

.story-editor-stage {
    width: min(100%, 260px);
    aspect-ratio: 9 / 16;
    justify-self: center;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.story-editor-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.story-editor-controls {
    display: grid;
    gap: 9px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.story-editor-controls label {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.story-editor-controls span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 900;
}

.story-editor-controls input[type="range"] {
    width: 100%;
    accent-color: #26d9c7;
}

@media (max-width: 420px) {
    .story-editor-stage {
        width: min(100%, 220px);
    }

    .story-editor-controls label {
        grid-template-columns: 78px 1fr;
    }
}

/* Full screen mobile story editor. */
body.story-editor-active {
    overflow: hidden !important;
    background: #000000 !important;
}

body.story-editor-active .story-sheet-backdrop {
    z-index: 99990 !important;
    display: block !important;
    align-items: stretch !important;
    background: #000000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.story-editor-active .story-create-sheet {
    width: 100% !important;
    max-height: none !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.story-editor-active .story-create-sheet > .sheet-handle,
body.story-editor-active .story-create-sheet > header,
body.story-editor-active .story-upload-actions {
    display: none !important;
}

body.story-editor-active .story-caption-field,
body.story-editor-active .story-create-sheet form > button:not(.story-editor-submit) {
    display: none !important;
}

.story-caption-field,
.story-create-sheet form > button:not(.story-editor-submit) {
    display: none !important;
}

.story-editor:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    gap: 0 !important;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    color: #ffffff !important;
    background: #000000 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.story-editor:not([hidden]) .story-editor-top {
    position: absolute !important;
    top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    right: 14px !important;
    left: 14px !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    pointer-events: none !important;
}

.story-editor-close,
.story-editor-tools button {
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: rgba(4, 12, 22, 0.48) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    pointer-events: auto !important;
}

.story-editor-close svg,
.story-editor-tools svg,
.story-editor-submit svg {
    width: 25px !important;
    height: 25px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.story-editor-tools {
    display: grid !important;
    gap: 12px !important;
    justify-items: end !important;
    pointer-events: none !important;
}

.story-editor-tools button:first-child {
    font-size: 23px !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
}

.story-editor:not([hidden]) .story-editor-stage {
    width: min(calc(100% - 10px), 540px) !important;
    height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    min-height: 420px !important;
    max-height: none !important;
    align-self: center !important;
    justify-self: center !important;
    overflow: hidden !important;
    background: #06101c !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46) !important;
    touch-action: none !important;
}

.story-editor:not([hidden]) .story-editor-stage canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.story-editor-bottom {
    position: absolute !important;
    right: auto !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    z-index: 8 !important;
    display: block !important;
    width: calc(100% - 32px) !important;
    max-width: 520px !important;
    justify-self: center !important;
    margin: 0 auto !important;
    transform: translateX(-50%) !important;
}

.story-editor-bottom input {
    width: 100% !important;
    min-height: 54px !important;
    padding: 0 18px !important;
    color: #ffffff !important;
    background: rgba(7, 17, 31, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

.story-editor-bottom input::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

.story-editor-share-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 10px !important;
    align-items: center !important;
}

.story-editor-pill {
    min-height: 56px !important;
    padding: 0 22px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

.story-editor-submit {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: #4057ff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 18px 32px rgba(64, 87, 255, 0.36) !important;
}

@media (max-width: 420px) {
    .story-editor:not([hidden]) {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .story-editor-close,
    .story-editor-tools button {
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    .story-editor-tools {
        gap: 10px !important;
    }

    .story-editor:not([hidden]) .story-editor-stage {
        width: calc(100% - 6px) !important;
        border-radius: 16px !important;
    }
}

/* Home story bubbles: large Instagram-like profile/story rail. */
.feed-page .circle-stories {
    gap: 28px !important;
    align-items: flex-start !important;
    padding: 12px 18px 18px !important;
    margin-right: -14px !important;
    margin-left: -14px !important;
    background: #ffffff !important;
}

.feed-page .circle-story {
    flex: 0 0 112px !important;
    width: 112px !important;
    min-height: 146px !important;
    display: grid !important;
    justify-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.feed-page .circle-story strong {
    max-width: 112px !important;
    margin-top: 4px !important;
    color: #07111f !important;
    font-size: 19px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    text-align: center !important;
}

.feed-page .story-avatar {
    width: 104px !important;
    height: 104px !important;
    overflow: visible !important;
    color: #07111f !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(145deg, #26d9c7, #07111f 52%, #d6c64a) border-box !important;
    border: 5px solid transparent !important;
    border-radius: 50% !important;
    box-shadow: 0 18px 36px rgba(7, 17, 31, 0.13) !important;
}

.feed-page .story-avatar::before,
.feed-page .story-avatar::after {
    content: "" !important;
    position: absolute !important;
    inset: -8px !important;
    z-index: -1 !important;
    border: 2px solid rgba(7, 17, 31, 0.07) !important;
    border-radius: 50% !important;
}

.feed-page .story-avatar::after {
    inset: -14px !important;
    opacity: 0.45 !important;
}

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

.feed-page .add-story .story-avatar {
    width: 108px !important;
    height: 108px !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(145deg, #26d9c7, #0b5f69) border-box !important;
    border-width: 5px !important;
}

.feed-page .add-story .story-avatar b {
    right: -8px !important;
    bottom: -5px !important;
    width: 42px !important;
    height: 42px !important;
    z-index: 4 !important;
    color: #07111f !important;
    background: #26d9c7 !important;
    border: 6px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 14px 24px rgba(7, 17, 31, 0.18) !important;
    font-size: 30px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.feed-page .circle-story.has-story .story-avatar.story-live {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(145deg, #26d9c7, #65d98a 58%, #d6c64a) border-box !important;
    border-width: 5px !important;
}

@media (max-width: 420px) {
    .feed-page .circle-stories {
        gap: 24px !important;
        padding-top: 10px !important;
        padding-bottom: 16px !important;
    }

    .feed-page .circle-story {
        flex-basis: 104px !important;
        width: 104px !important;
        min-height: 136px !important;
    }

    .feed-page .story-avatar {
        width: 96px !important;
        height: 96px !important;
    }

    .feed-page .add-story .story-avatar {
        width: 100px !important;
        height: 100px !important;
    }

    .feed-page .circle-story strong {
        font-size: 18px !important;
    }
}

/* Compact square story rail override. */
.feed-page .circle-stories {
    gap: 14px !important;
    padding: 8px 14px 12px !important;
}

.feed-page .circle-story {
    flex: 0 0 78px !important;
    width: 78px !important;
    min-height: 118px !important;
    gap: 7px !important;
}

.feed-page .story-avatar,
.feed-page .add-story .story-avatar {
    width: 70px !important;
    height: 88px !important;
    border-width: 3px !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 24px rgba(7, 17, 31, 0.12) !important;
}

.feed-page .story-avatar::before,
.feed-page .story-avatar::after {
    border-radius: 22px !important;
}

.feed-page .story-avatar::before {
    inset: -5px !important;
}

.feed-page .story-avatar::after {
    inset: -9px !important;
}

.feed-page .story-avatar img {
    border-radius: 14px !important;
}

.feed-page .circle-story strong {
    max-width: 78px !important;
    margin-top: 2px !important;
    font-size: 12px !important;
    letter-spacing: -0.02em !important;
}

.feed-page .add-story .story-avatar b {
    right: -5px !important;
    bottom: -5px !important;
    width: 28px !important;
    height: 28px !important;
    border-width: 4px !important;
    font-size: 21px !important;
}

/* Final profile gallery tuning. */
.profile-page .shared-photo-grid.real-photos {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2px !important;
    background: #ffffff !important;
}

.profile-page .shared-photo-grid.real-photos article {
    position: relative !important;
    width: 100% !important;
    min-height: 138px !important;
    aspect-ratio: 1 / 1.35 !important;
    overflow: hidden !important;
    background: #eef2f6 !important;
}

.profile-page .shared-photo-grid.real-photos article button {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    overflow: hidden !important;
}

.profile-page .shared-photo-grid.real-photos img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

.profile-page .profile-photo-flow[hidden],
.profile-page .shared-photo-grid[hidden] {
    display: none !important;
}

.profile-page .profile-photo-flow {
    display: grid !important;
    gap: 0 !important;
    background: #ffffff !important;
}

.profile-page .profile-flow-image {
    width: 100% !important;
    height: auto !important;
    min-height: 500px !important;
    aspect-ratio: 4 / 5 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Profile settings menu: app-like full screen panel. */
.profile-page .profile-menu summary {
    width: 42px !important;
    height: 42px !important;
    padding: 10px !important;
    background: #f2f5f8 !important;
    border-radius: 15px !important;
    box-shadow: none !important;
}

.profile-page .profile-menu-panel {
    position: fixed !important;
    inset: 0 !important;
    z-index: 80 !important;
    width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    display: block !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: #f3f3f4 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateY(105%) !important;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1) !important;
}

.profile-page .profile-menu[open] .profile-menu-panel {
    transform: translateY(0) !important;
}

.profile-page .profile-menu[open]::before {
    display: none !important;
}

.settings-shell {
    min-height: 100%;
    padding: calc(env(safe-area-inset-top, 0px) + 26px) 18px calc(96px + env(safe-area-inset-bottom, 0px));
    color: #07111f;
}

.settings-top-actions {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
}

.settings-round-action {
    width: 44px;
    height: 44px;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    color: #07111f !important;
    background: rgba(255,255,255,.64) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 28px rgba(7,17,31,.06) !important;
}

.settings-round-action svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-round-action svg path:first-child:last-child,
.settings-top-actions a.settings-round-action svg path {
    fill: none;
}

.settings-profile-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 28px 8px 32px;
    text-align: center;
}

.settings-status-bubble {
    position: relative;
    z-index: 2;
    margin-bottom: -18px;
    padding: 13px 38px;
    color: #111827;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(7,17,31,.08);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.settings-status-bubble::after,
.settings-status-bubble::before {
    content: "";
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: #ffffff;
}

.settings-status-bubble::after {
    left: 46px;
    width: 17px;
    height: 17px;
}

.settings-status-bubble::before {
    left: 31px;
    bottom: -22px;
    width: 9px;
    height: 9px;
}

.settings-avatar {
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #22d6c7, #0b6f8f);
    border-radius: 50%;
    box-shadow: 0 18px 48px rgba(7,17,31,.10);
    font-size: 44px;
    font-weight: 950;
}

.settings-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.settings-profile-card strong {
    margin-top: 22px;
    color: #07111f;
    font-size: clamp(31px, 8vw, 44px);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1;
}

.settings-profile-card small {
    color: #697386;
    font-size: 14px;
    font-weight: 850;
}

.settings-menu-section {
    margin-top: 18px;
}

.settings-menu-section h3 {
    margin: 0 0 12px 28px;
    color: #6b7280;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.settings-menu-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(7,17,31,.04);
}

.profile-page .settings-menu-card a {
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: 44px 1fr auto 20px;
    align-items: center;
    gap: 14px;
    padding: 0 18px !important;
    color: #07111f !important;
    border-bottom: 1px solid rgba(7,17,31,.08) !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

.profile-page .settings-menu-card a:last-child {
    border-bottom: 0 !important;
}

.profile-page .settings-menu-card a::after {
    content: ">" !important;
    color: #9aa3ad !important;
    font-size: 25px !important;
    font-weight: 500 !important;
}

.settings-item-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #07111f;
    border: 2px solid currentColor;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.settings-menu-card a em {
    width: 15px;
    height: 15px;
    display: block;
    background: #21c778;
    border-radius: 50%;
}

.settings-menu-card a b {
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #8f8f8f;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 900;
}

.profile-page .settings-menu-card a.danger {
    color: #e84b5f !important;
}

.profile-page .settings-menu-card a.danger .settings-item-icon {
    color: #e84b5f;
}

body:has(.profile-menu[open]) {
    overflow: hidden;
}

.settings-panel-title {
    color: #07111f;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

/* Profile settings pages. */
.settings-page {
    background: #f5f6f8 !important;
}

.settings-toolbar {
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.settings-main {
    padding-bottom: 104px !important;
}

.settings-hero-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 14px;
    margin: 8px 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(7, 17, 31, .05);
}

.settings-hero-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #07111f;
    background: #26d9c7;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 950;
}

.settings-hero-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.settings-hero-card strong,
.settings-hero-card span {
    display: block;
}

.settings-hero-card strong {
    color: #07111f;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.settings-hero-card span {
    margin-top: 3px;
    color: #687385;
    font-size: 13px;
    font-weight: 850;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -2px 16px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

.settings-tabs a {
    min-height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0 16px;
    color: #687385;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.settings-tabs a.active {
    color: #07111f;
    background: #26d9c7;
    border-color: #26d9c7;
}

.settings-section-title {
    margin: 6px 0 14px;
}

.settings-section-title h1 {
    margin: 0;
    color: #07111f;
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.settings-section-title p {
    margin: 7px 0 0;
    color: #687385;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.settings-card-list,
.settings-toggle-list,
.permission-grid {
    display: grid;
    gap: 10px;
}

.settings-card-list a,
.permission-grid article,
.settings-toggle-list label,
.settings-info-card {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: #07111f;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(7, 17, 31, .04);
}

.settings-card-list a {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
}

.settings-card-list a::after {
    content: ">";
    grid-column: 3;
    color: #a4afba;
    font-size: 22px;
}

.settings-card-list a > span,
.permission-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #eef3f8;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 950;
}

.settings-card-list strong,
.settings-card-list small,
.permission-grid strong,
.permission-grid small,
.settings-info-card strong,
.settings-info-card p,
.settings-toggle-list strong,
.settings-toggle-list small {
    display: block;
}

.settings-card-list strong,
.permission-grid strong,
.settings-info-card strong,
.settings-toggle-list strong {
    color: #07111f;
    font-size: 15px;
    font-weight: 950;
}

.settings-card-list small,
.permission-grid small,
.settings-info-card p,
.settings-toggle-list small {
    margin-top: 3px;
    color: #687385;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.settings-card-list a.danger,
.settings-card-list a.danger span {
    color: #e84b5f;
}

.permission-grid article {
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.permission-grid button,
.settings-info-card button {
    min-height: 38px;
    padding: 0 13px;
    color: #07111f;
    background: #26d9c7;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 950;
}

.settings-toggle-list label {
    grid-template-columns: minmax(0, 1fr) auto;
}

.settings-toggle-list input {
    width: 48px;
    height: 28px;
    accent-color: #26d9c7;
}

.settings-info-card {
    margin-top: 12px;
}

@media (max-width: 380px) {
    .permission-grid article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .permission-grid button {
        grid-column: 2;
        justify-self: start;
    }
}

/* Home create event form: polished mobile inputs. */
.event-create-panel {
    gap: 12px !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

.event-create-hero {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 12px;
    padding: 13px;
    background:
        linear-gradient(135deg, rgba(34, 214, 199, .16), rgba(7, 17, 31, .04)),
        #f7fafc;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 24px;
}

.event-create-hero > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #2ed9cb;
    border-radius: 17px;
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}

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

.event-create-hero strong {
    color: #07111f;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.event-create-hero small {
    margin-top: 3px;
    color: #697386;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.event-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.create-field {
    min-width: 0;
    display: grid;
    gap: 7px;
    padding: 12px 13px;
    background: #f4f7fa;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 20px;
}

.create-field.full {
    width: 100%;
}

.create-field span {
    color: #667085;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.create-field input,
.create-field textarea,
.create-field select {
    width: 100%;
    min-height: 34px;
    padding: 0;
    color: #07111f;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.create-field textarea {
    min-height: 74px;
    padding-top: 2px;
    resize: none;
    line-height: 1.35;
}

.create-field input::placeholder,
.create-field textarea::placeholder {
    color: #a3acb8;
    font-weight: 800;
}

.create-field:focus-within {
    background: #ffffff;
    border-color: rgba(46, 217, 203, .75);
    box-shadow: 0 0 0 4px rgba(46, 217, 203, .14);
}

.event-create-panel .create-field {
    position: relative;
    overflow: visible;
}

.create-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #07111f 50%), linear-gradient(135deg, #07111f 50%, transparent 50%);
    background-position: calc(100% - 12px) 14px, calc(100% - 6px) 14px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.event-upload-drop {
    min-height: 104px !important;
    border-radius: 24px !important;
    background:
        linear-gradient(135deg, rgba(46, 217, 203, .18), rgba(7, 17, 31, .03)),
        #f8fbfd !important;
}

.event-upload-drop.has-preview {
    min-height: 118px !important;
    place-items: stretch !important;
    text-align: left !important;
    border-style: solid !important;
    background: #ffffff !important;
}

.event-upload-drop strong {
    color: #07111f;
    font-size: 15px;
    font-weight: 950;
}

.event-upload-drop small {
    color: #697386;
    font-size: 12px;
    font-weight: 800;
}

.event-image-preview {
    width: 100%;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 8px;
    background: #f7fafc;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 20px;
}

.event-image-preview[hidden] {
    display: none !important;
}

.event-image-preview img {
    width: 76px;
    height: 76px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    background: #e9eef3;
}

.event-image-preview span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.event-image-preview b,
.event-image-preview em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.event-image-preview b {
    color: #07111f;
    font-size: 13px;
    font-weight: 950;
}

.event-image-preview em {
    color: #13a99d;
    font-size: 11px;
    font-weight: 900;
}

.event-submit-button {
    min-height: 54px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
    background: #07111f !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 34px rgba(7, 17, 31, .18) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

.event-location-tools {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f7fafc;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 20px;
}

.event-location-tools button,
.event-location-tools a {
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    color: #07111f;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .08);
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 950;
}

.event-location-tools button {
    background: #26d9c7;
    border-color: #26d9c7;
}

.event-location-tools small {
    min-width: 0;
    color: #687385;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.event-place-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    right: 2px;
    left: 2px;
    z-index: 2147483200;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .07);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(7, 17, 31, .12);
}

.event-place-suggestions[hidden] {
    display: none !important;
}

.create-panel .event-place-option,
.event-place-option {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    color: #07111f !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(7, 17, 31, .06) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    transform: none !important;
}

.create-panel .event-place-option:last-child,
.event-place-option:last-child {
    border-bottom: 0 !important;
}

.create-panel .event-place-option:active,
.event-place-option:active {
    background: #f6fafb !important;
}

.event-place-option strong,
.event-place-option small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-place-option strong {
    color: #07111f;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.event-place-option small {
    margin-top: 2px;
    color: #7a8493;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.event-place-pin {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #13bfb1;
    background: rgba(46, 217, 203, .12);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 950;
}

.event-place-empty {
    padding: 14px;
    color: #6b7484;
    font-size: 12px;
    font-weight: 850;
}

.pac-container {
    z-index: 2147483100 !important;
    margin-top: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(7, 17, 31, .08) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(7, 17, 31, .18) !important;
    font-family: inherit !important;
}

.pac-item {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    color: #697386 !important;
    border-top: 1px solid rgba(7, 17, 31, .06) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.pac-item:first-child {
    border-top: 0 !important;
}

.pac-item-query,
.pac-matched {
    color: #07111f !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

@media (max-width: 390px) {
    .event-location-tools {
        grid-template-columns: 1fr 1fr;
    }

    .event-location-tools small {
        grid-column: 1 / -1;
    }
}

/* Advanced story editor controls. */
.story-pro-panel[hidden] {
    display: none !important;
}

.story-pro-panel {
    position: absolute !important;
    right: 12px !important;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    z-index: 9 !important;
    display: flex !important;
    gap: 8px !important;
    padding: 9px !important;
    overflow-x: auto !important;
    background: rgba(7, 17, 31, .74) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 20px !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
}

.story-pro-panel button {
    min-width: 74px !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    flex: 0 0 auto !important;
    color: #ffffff !important;
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.story-pro-panel button.active,
.story-pro-panel button:active {
    color: #07111f !important;
    background: #2ed9cb !important;
}

.pro-story-toast {
    position: fixed;
    right: 18px;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    left: 18px;
    z-index: 100000;
    padding: 14px 16px;
    color: #ffffff;
    text-align: center;
    background: rgba(7, 17, 31, .92);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(7,17,31,.24);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .22s ease, transform .22s ease;
    font-size: 14px;
    font-weight: 900;
}

.pro-story-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.story-editor:not([hidden]).pro-story-ready .story-editor-tools {
    max-height: calc(100dvh - 170px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 4px;
}

.story-editor:not([hidden]).pro-story-ready .story-editor-tools button {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 15px !important;
}

.story-editor:not([hidden]).pro-story-ready .story-editor-tools button:first-child,
.story-editor:not([hidden]).pro-story-ready .story-editor-tools button:nth-child(2),
.story-editor:not([hidden]).pro-story-ready .story-editor-tools button:nth-child(3),
.story-editor:not([hidden]).pro-story-ready .story-editor-tools button:nth-child(4) {
    font-size: 15px !important;
    letter-spacing: -0.03em !important;
}

@media (max-width: 430px) {
    .create-sheet {
        max-height: 92dvh;
        padding: 10px 12px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .event-create-grid {
        gap: 8px;
    }

    .create-field {
        padding: 11px 12px;
        border-radius: 18px;
    }
}

body.sheet-open .bottom-nav {
    display: none !important;
}

body.sheet-open {
    overflow: hidden !important;
}

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

body.sheet-open .create-sheet {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}

body.sheet-open .event-create-panel.active {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Feed comment/share bottom sheets */
.feed-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(7, 17, 31, .18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.feed-sheet-backdrop[hidden] {
    display: none !important;
}

.feed-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-action-sheet {
    width: min(100%, 520px);
    max-height: min(78vh, 680px);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -22px 55px rgba(7, 17, 31, .16);
    transform: translateY(24px);
    transition: transform .22s ease;
}

.feed-sheet-backdrop.is-open .feed-action-sheet {
    transform: translateY(0);
}

.feed-action-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 18px 14px;
    border-bottom: 1px solid rgba(7, 17, 31, .07);
}

.feed-action-sheet header strong {
    color: #07111f;
    font-size: 16px;
    font-weight: 950;
}

.feed-action-sheet header button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #f1f5f8;
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
}

.feed-comments-list,
.feed-share-list {
    min-height: 220px;
    overflow-y: auto;
    padding: 12px 16px 18px;
    -webkit-overflow-scrolling: touch;
}

.feed-comment-row,
.feed-share-user {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 0;
    color: #07111f;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid rgba(7, 17, 31, .06);
    text-align: left;
}

.feed-comment-avatar {
    width: 42px;
    height: 42px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #edf2f6;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 950;
}

.feed-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-comment-row strong,
.feed-share-user strong {
    display: block;
    color: #07111f;
    font-size: 13px;
    font-weight: 950;
}

.feed-comment-row p {
    margin: 3px 0 4px;
    color: #273247;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.feed-comment-row time,
.feed-share-user small {
    color: #7a8493;
    font-size: 11px;
    font-weight: 800;
}

.feed-sheet-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid rgba(7, 17, 31, .07);
}

.feed-sheet-comment-form input[type="text"] {
    min-height: 44px;
    padding: 0 15px;
    color: #07111f;
    background: #f1f5f8;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
}

.feed-sheet-comment-form button {
    min-height: 44px;
    padding: 0 16px;
    color: #ffffff;
    background: #07111f;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.feed-share-user {
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
}

.feed-share-user b {
    color: #13bfb1;
    font-size: 12px;
    font-weight: 950;
}

.feed-share-user:disabled {
    opacity: .55;
}

.feed-sheet-empty,
.feed-comments-list > span,
.feed-share-list > span {
    display: block;
    padding: 26px 12px;
    color: #7a8493;
    text-align: center;
    font-size: 13px;
    font-weight: 850;
}

body.feed-sheet-open {
    overflow: hidden;
}

/* Cleaner topbar notification/message icons */
.topbar-icon svg {
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.15 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.topbar-icon > span,
.topbar-icon.icon-bell span,
.topbar-icon.icon-message span {
    display: none !important;
}

.topbar-icon.icon-bell span::before,
.topbar-icon.icon-bell span::after,
.topbar-icon.icon-message span::after {
    display: none !important;
    content: none !important;
}

.feed-page .home-topbar.insta-home-topbar .topbar-icon,
.topbar-icon {
    position: relative !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    color: #07111f !important;
    background: #ffffff !important;
    border: 1px solid rgba(7, 17, 31, .10) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 18px rgba(7, 17, 31, .06) !important;
}

.topbar-icon b {
    position: absolute !important;
    top: -5px !important;
    right: -4px !important;
    min-width: 17px !important;
    height: 17px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 5px !important;
    color: #ffffff !important;
    background: #ff315f !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 14px rgba(255, 49, 95, .25) !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

/* Event management page */
.organized-event-list .organized-event-card {
    display: block;
    padding: 14px;
    color: #07111f;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .08);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(7, 17, 31, .06);
}

.organized-event-list .organized-event-card strong,
.organized-event-list .organized-event-card span,
.organized-event-list .organized-event-card small {
    display: block;
}

.profile-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    padding: 0;
}

.organized-event-list .profile-event-tile,
.organized-event-list article.profile-event-tile {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 0;
    color: #ffffff;
    text-decoration: none;
    background: #eef4f7;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    isolation: isolate;
}

.profile-event-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.02) 34%, rgba(7, 17, 31, 0.88) 100%),
        linear-gradient(135deg, rgba(35, 215, 201, 0.18), rgba(7, 17, 31, 0));
    pointer-events: none;
}

.profile-event-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: 0;
}

.profile-event-placeholder {
    position: absolute;
    inset: 0;
    display: grid !important;
    place-items: center;
    color: #07111f !important;
    background:
        radial-gradient(circle at 22% 18%, rgba(35, 215, 201, 0.35), transparent 32%),
        linear-gradient(145deg, #f7fbff 0%, #eaf1f6 58%, #dce7ef 100%);
    font-size: 36px !important;
    font-weight: 950 !important;
    z-index: 0;
}

.profile-event-state {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #07111f !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: -0.01em;
}

.profile-event-tile.is-active .profile-event-state {
    color: #062f34 !important;
    background: rgba(35, 215, 201, 0.92);
}

.profile-event-tile.is-completed .profile-event-state {
    color: #ffffff !important;
    background: rgba(7, 17, 31, 0.78);
}

.profile-event-tile.is-cancelled .profile-event-state {
    color: #ffffff !important;
    background: rgba(255, 49, 95, 0.88);
}

.profile-event-tile-body {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 44px 10px 12px;
}

.organized-event-list .profile-event-tile-body strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.26);
}

.organized-event-list .profile-event-tile-body span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
}

.organized-event-list .profile-event-tile-body small {
    grid-row: auto;
    grid-column: auto;
    align-self: start;
    width: max-content;
    max-width: 100%;
    padding: 6px 8px;
    color: #07111f;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.feed-page .event-post .insta-feed-image {
    height: clamp(260px, 76vw, 430px) !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #ffffff !important;
}

.event-manage-page {
    background: #ffffff !important;
}

.event-manage-main {
    width: min(100%, 620px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(92px + env(safe-area-inset-bottom, 0px));
    color: #07111f;
    background: #ffffff;
}

.event-manage-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    margin: 0 -14px 14px;
    padding: 4px 14px 10px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(7, 17, 31, .07);
    backdrop-filter: blur(14px);
}

.event-manage-topbar > a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #07111f;
    text-decoration: none;
    background: #f1f5f8;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 950;
}

.event-manage-topbar strong,
.event-manage-topbar span {
    display: block;
}

.event-manage-topbar strong {
    font-size: 16px;
    font-weight: 950;
}

.event-manage-topbar span {
    color: #6b7484;
    font-size: 12px;
    font-weight: 850;
}

.event-manage-hero {
    overflow: hidden;
    background: #f6fafb;
    border: 1px solid rgba(7, 17, 31, .07);
    border-radius: 28px;
}

.event-manage-hero img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
}

.event-manage-hero > div {
    padding: 18px;
}

.event-manage-hero span {
    color: #13bfb1;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.event-manage-hero h1 {
    margin: 8px 0;
    color: #07111f;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.event-manage-hero p {
    margin: 0;
    color: #4c5870;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.event-manage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.event-manage-stats article {
    padding: 12px 8px;
    text-align: center;
    background: #f1f5f8;
    border-radius: 18px;
}

.event-manage-stats strong,
.event-manage-stats span {
    display: block;
}

.event-manage-stats strong {
    font-size: 15px;
    font-weight: 950;
}

.event-manage-stats span {
    margin-top: 4px;
    color: #6b7484;
    font-size: 11px;
    font-weight: 850;
}

.event-manage-status-card,
.event-manage-section {
    margin-top: 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(7, 17, 31, .06);
}

.event-manage-status-card > strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 950;
}

.event-manage-status-card > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.event-manage-status-card form,
.event-applicant-actions form {
    margin: 0;
}

.event-manage-status-card button {
    width: 100%;
    min-height: 40px;
    color: #07111f;
    background: #f1f5f8;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.event-manage-status-card button.active {
    color: #ffffff;
    background: #07111f;
}

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

.event-manage-section-title strong {
    font-size: 16px;
    font-weight: 950;
}

.event-manage-section-title span {
    color: #6b7484;
    font-size: 12px;
    font-weight: 850;
}

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

.event-applicant-card {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 20px;
}

.event-applicant-card.approved {
    background: rgba(46, 217, 203, .10);
}

.event-applicant-card.rejected {
    background: rgba(255, 49, 95, .07);
}

.event-applicant-user {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    color: #07111f;
    text-decoration: none;
}

.event-applicant-avatar {
    width: 48px;
    height: 48px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #edf2f6;
    border-radius: 50%;
    font-weight: 950;
}

.event-applicant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-applicant-user strong,
.event-applicant-user small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-applicant-user strong {
    font-size: 14px;
    font-weight: 950;
}

/* Discover compact layout */
.discover-page .discover-main {
    padding: 8px 8px 84px !important;
}

.discover-page .discover-search {
    padding: 9px !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 20px rgba(7, 17, 31, 0.045) !important;
}

.discover-page .discover-filter-row {
    gap: 5px !important;
    padding: 8px 0 !important;
}

.discover-page .discover-filter-row a {
    padding: 7px 10px !important;
    font-size: 11px !important;
}

.discover-page .discover-section {
    margin-bottom: 9px !important;
}

.discover-page .section-title {
    margin-bottom: 8px !important;
}

.discover-page .section-title h2 {
    font-size: 17px !important;
}

.discover-page .section-title span {
    font-size: 11px !important;
}

.discover-page .suggested-user-rail {
    gap: 7px !important;
}

.discover-page .suggested-user-card {
    flex-basis: 132px !important;
    padding: 10px !important;
    border-radius: 16px !important;
}

.discover-page .nearby-grid {
    gap: 6px !important;
}

.discover-page .nearby-grid article {
    min-height: 84px !important;
    padding: 9px !important;
    border-radius: 15px !important;
}

.discover-page .discover-event-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.discover-page .discover-event-grid .discover-event-card {
    min-width: 0 !important;
    min-height: 166px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 8px !important;
    border-radius: 15px !important;
    box-shadow: 0 7px 16px rgba(7, 17, 31, 0.05) !important;
}

.discover-page .discover-event-grid .discover-event-card header {
    grid-template-columns: 26px minmax(0, 1fr) !important;
    gap: 5px !important;
}

.discover-page .discover-event-grid .discover-event-card .avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
}

.discover-page .discover-event-grid .discover-event-card header small {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    padding: 4px 6px !important;
    font-size: 8px !important;
}

.discover-page .discover-event-grid .discover-event-card header strong,
.discover-page .discover-event-grid .discover-event-card header span {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.discover-page .discover-event-grid .discover-event-card header strong {
    font-size: 10px !important;
}

.discover-page .discover-event-grid .discover-event-card header span {
    margin-top: 1px !important;
    font-size: 8px !important;
}

.discover-page .discover-event-grid .discover-event-card h3 {
    display: -webkit-box !important;
    margin: 7px 0 4px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    font-size: 12px !important;
    line-height: 1.12 !important;
}

.discover-page .discover-event-grid .discover-event-card p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
}

.discover-page .discover-event-grid .discover-event-card footer {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-top: auto !important;
    padding-top: 7px !important;
}

.discover-page .discover-event-grid .discover-event-card footer a:first-child {
    min-height: 28px !important;
    font-size: 9px !important;
}

.discover-page .discover-event-grid .discover-event-card footer a:not(:first-child),
.discover-page .discover-event-grid .discover-event-card footer button {
    display: none !important;
}

@media (min-width: 560px) {
    .discover-page .discover-event-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.event-applicant-user small,
.event-applicant-user em {
    color: #6b7484;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.event-applicant-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.event-applicant-actions a,
.event-applicant-actions button {
    min-height: 38px;
    display: grid;
    place-items: center;
    color: #07111f;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.event-applicant-actions button {
    width: 100%;
    color: #ffffff;
    background: #13bfb1;
    border-color: #13bfb1;
}

.event-applicant-actions button.reject {
    background: #07111f;
    border-color: #07111f;
}

.event-manage-empty {
    padding: 28px 12px;
    text-align: center;
    background: #f8fafc;
    border-radius: 18px;
}

.event-manage-empty strong,
.event-manage-empty span {
    display: block;
}

.event-manage-empty span {
    margin-top: 6px;
    color: #6b7484;
    font-size: 12px;
    font-weight: 800;
}
/* Event detail */
.discover-event-card { cursor: pointer; }
.event-detail-page { background: #fff; color: #071323; }
.event-detail-main { min-height: 100dvh; padding-bottom: calc(154px + env(safe-area-inset-bottom)); }
.event-detail-hero { position: relative; height: min(58dvh, 540px); min-height: 390px; overflow: hidden; background: #0a1726; }
.event-detail-hero > img, .event-detail-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-detail-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #11b8c3, #071a2c); }
.event-detail-placeholder span { color: #fff; font-size: 96px; font-weight: 800; }
.event-detail-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 13, 25, .34), transparent 40%, rgba(4, 13, 25, .88)); }
.event-detail-topbar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #fff; }
.event-detail-topbar > strong { text-align: center; font-size: 15px; }
.event-detail-topbar > a, .event-detail-topbar > button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(5, 16, 29, .55); backdrop-filter: blur(12px); text-decoration: none; font-size: 34px; line-height: 1; }
.event-detail-topbar > button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-detail-heading { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 24px; color: #fff; }
.event-detail-heading > span { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #05202c; background: #43dfcf; font-size: 11px; font-weight: 800; }
.event-detail-heading h1 { margin: 12px 0 5px; font-size: clamp(28px, 8vw, 42px); line-height: 1.04; letter-spacing: -.035em; }
.event-detail-heading p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
.event-detail-content { padding: 18px 16px 8px; }
.event-detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.event-detail-facts article { min-width: 0; padding: 14px 10px; border-radius: 17px; background: #f1f5f8; }
.event-detail-facts small, .event-detail-section h2, .event-detail-location small, .event-detail-organizer small, .event-detail-action small { display: block; color: #748092; font-size: 11px; font-weight: 700; }
.event-detail-facts strong { display: block; margin-top: 5px; font-size: 13px; white-space: nowrap; }
.event-detail-section { padding: 24px 2px 20px; }
.event-detail-section h2 { margin: 0 0 10px; color: #071323; font-size: 17px; }
.event-detail-section p { margin: 0; color: #47566a; font-size: 14px; line-height: 1.65; }
.event-detail-location { display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 12px; padding: 13px; border-radius: 18px; background: #f1f5f8; color: #071323; text-decoration: none; }
.event-detail-location-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #fff; }
.event-detail-location-icon svg { width: 23px; fill: none; stroke: #0f8fa0; stroke-width: 1.9; }
.event-detail-location strong { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; }
.event-detail-location b { font-size: 24px; font-weight: 400; }
.event-detail-organizer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 2px; }
.event-detail-organizer > a:first-child { display: flex; align-items: center; gap: 11px; min-width: 0; color: #071323; text-decoration: none; }
.event-detail-avatar { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #0c2237; color: #fff; font-weight: 800; }
.event-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-organizer strong, .event-detail-organizer em { display: block; }
.event-detail-organizer em { margin-top: 2px; color: #748092; font-size: 11px; font-style: normal; }
.event-detail-message { flex: 0 0 auto; padding: 10px 15px; border-radius: 12px; background: #eef3f7; color: #071323; text-decoration: none; font-size: 12px; font-weight: 800; }
.event-detail-action { position: fixed; z-index: 35; left: 0; right: 0; bottom: calc(61px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; border-top: 1px solid #e7ebef; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.event-detail-action strong { display: block; margin-top: 2px; font-size: 16px; }
.event-detail-action form { margin: 0; }
.event-detail-action a, .event-detail-action button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #081625; text-decoration: none; font-size: 13px; font-weight: 800; }
.event-detail-action button:disabled { color: #637083; background: #e9eef2; }
.event-detail-empty { min-height: 75dvh; display: grid; place-content: center; padding: 28px; text-align: center; }
.event-detail-empty strong { font-size: 22px; }
.event-detail-empty p { color: #748092; }
.event-detail-empty a { color: #087f8d; font-weight: 800; }
.event-detail-empty + .event-detail-topbar, .event-detail-main > .event-detail-topbar { position: relative; color: #071323; }

.media-upload-status { display: block; margin-top: 7px; color: #657286; font-size: 11px; font-weight: 700; }
.media-upload-status[data-state="working"] { color: #0b8f97; }
.media-upload-status[data-state="ready"] { color: #16845b; }
.media-upload-status[data-state="error"] { color: #c53b52; }

/* Membership and payment */
.settings-membership-current { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 17px; border: 1px solid #e7ebef; border-radius: 22px; background: #fff; }
.settings-membership-current > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: #edf3f7; font-size: 18px; font-weight: 900; }
.settings-membership-current small, .settings-membership-current strong, .settings-membership-current p { display: block; }
.settings-membership-current small { color: #788496; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.settings-membership-current strong { margin-top: 3px; font-size: 17px; }
.settings-membership-current p { margin: 2px 0 0; color: #788496; font-size: 11px; }
.settings-membership-current > b { padding: 7px 10px; border-radius: 999px; color: #08756f; background: #dff9f4; font-size: 10px; }
.settings-upgrade-card { margin-top: 11px; display: grid; grid-template-columns: 48px minmax(0,1fr) 20px; align-items: center; gap: 13px; padding: 17px; color: #fff; background: linear-gradient(135deg, #0a1b2d, #123e54); border-radius: 22px; text-decoration: none; box-shadow: 0 15px 34px rgba(7,23,39,.16); }
.settings-upgrade-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #06252a; background: #39ddce; font-size: 25px; }
.settings-upgrade-card strong, .settings-upgrade-card small { display: block; }
.settings-upgrade-card strong { font-size: 16px; }
.settings-upgrade-card small { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.35; }
.settings-upgrade-card > b { font-size: 27px; font-weight: 400; }
.settings-account-actions { margin-top: 18px; }
.settings-card-list a > span { grid-column: 1; grid-row: 1 / span 2; }
.settings-card-list a > strong { grid-column: 2; grid-row: 1; align-self: end; }
.settings-card-list a > small { grid-column: 2; grid-row: 2; align-self: start; }
.settings-card-list a::after { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.membership-page, .payment-page { background: #f6f8fa; color: #071323; }
.membership-topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; padding: calc(9px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid #e6ebef; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.membership-topbar > a { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #071323; background: #edf2f6; text-decoration: none; font-size: 30px; line-height: 1; }
.membership-topbar strong, .membership-topbar span { display: block; }
.membership-topbar strong { font-size: 15px; }
.membership-topbar span { margin-top: 2px; color: #768294; font-size: 10px; }
.membership-main { padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); }
.membership-intro { padding: 22px 20px; border-radius: 25px; color: #fff; background: linear-gradient(135deg, #061523, #0e5967); overflow: hidden; position: relative; }
.membership-intro::after { content: "B"; position: absolute; right: -10px; bottom: -44px; color: rgba(255,255,255,.07); font-size: 170px; font-weight: 950; }
.membership-intro span { color: #42e0d0; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.membership-intro h1 { margin: 7px 0; font-size: 31px; }
.membership-intro p { position: relative; z-index: 1; max-width: 310px; margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.5; }
.membership-plan-list { display: grid; gap: 13px; margin-top: 15px; }
.membership-plan { position: relative; padding: 19px; border: 1px solid #e4e9ed; border-radius: 24px; background: #fff; overflow: hidden; }
.membership-plan.popular { border: 2px solid #20cfc1; }
.plan-popular { position: absolute; top: 0; right: 0; padding: 7px 12px; border-radius: 0 0 0 14px; color: #052b30; background: #35dfd0; font-size: 9px; }
.membership-plan > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.membership-plan header small { color: #7b8796; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.membership-plan h2 { margin: 3px 0 0; font-size: 24px; }
.plan-price { text-align: right; }
.plan-price strong, .plan-price span { display: block; }
.plan-price strong { font-size: 19px; }
.plan-price span { color: #7b8796; font-size: 10px; }
.membership-plan ul { display: grid; gap: 8px; margin: 16px 0; padding: 14px 0 0; border-top: 1px solid #edf0f3; list-style: none; }
.membership-plan li { color: #4c5969; font-size: 12px; }
.membership-plan li span { margin-right: 8px; color: #159c91; font-weight: 900; }
.membership-plan form { margin: 0; }
.membership-plan button { width: 100%; min-height: 45px; border: 0; border-radius: 14px; color: #fff; background: #081725; font-size: 12px; font-weight: 900; }
.membership-plan button:disabled { color: #667386; background: #eaf0f3; }
.membership-plan.gold h2 { color: #a67514; }
.membership-plan.vip { color: #fff; background: #0b1119; border-color: #0b1119; }
.membership-plan.vip header small, .membership-plan.vip .plan-price span, .membership-plan.vip li { color: rgba(255,255,255,.66); }
.membership-plan.vip ul { border-color: rgba(255,255,255,.12); }
.membership-plan.vip button { color: #06171c; background: #37dfd0; }
.membership-security { margin: 17px 8px; color: #758193; font-size: 10px; line-height: 1.55; text-align: center; }

.corporate-page {
    background: #f7f9fb;
    color: #071323;
}

.corporate-main {
    display: grid;
    gap: 14px;
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
}

.corporate-hero-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #061523, #0d5261);
    box-shadow: 0 18px 42px rgba(7, 19, 35, .13);
}

.corporate-hero-card::after {
    content: "KR";
    position: absolute;
    right: -8px;
    bottom: -38px;
    color: rgba(255,255,255,.07);
    font-size: 118px;
    font-weight: 950;
    letter-spacing: -.08em;
}

.corporate-hero-card small,
.corporate-hero-card h1,
.corporate-hero-card p {
    position: relative;
    z-index: 1;
    display: block;
}

.corporate-hero-card small {
    color: #39dfd0;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .14em;
}

.corporate-hero-card h1 {
    margin: 7px 0;
    font-size: 29px;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.corporate-hero-card p {
    max-width: 320px;
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: 12px;
    line-height: 1.5;
}

.corporate-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.corporate-stat-grid article {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 15px;
    border: 1px solid #e7edf1;
    border-radius: 22px;
    background: #fff;
}

.corporate-stat-grid span {
    color: #788496;
    font-size: 10px;
    font-weight: 900;
}

.corporate-stat-grid strong {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.corporate-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.corporate-action-row a {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #071323;
    background: #fff;
    border: 1px solid #e6edf2;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.corporate-action-row a:first-child {
    color: #061723;
    background: #2cd8ca;
    border-color: #2cd8ca;
}

.corporate-section {
    display: grid;
    gap: 11px;
}

.corporate-section header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    padding: 4px 3px 0;
}

.corporate-section h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.04em;
}

.corporate-section header span {
    color: #8290a2;
    font-size: 10px;
    font-weight: 850;
}

.corporate-event-list,
.corporate-guest-list {
    display: grid;
    gap: 11px;
}

.corporate-event-control-grid-list {
    grid-template-columns: repeat(2, calc((100% - 3px) / 2));
    align-items: stretch;
    gap: 3px;
    width: 100%;
    overflow: hidden;
}

.corporate-event-card {
    overflow: hidden;
    border: 1px solid #e5ebef;
    border-radius: 24px;
    background: #fff;
}

.corporate-event-card > img {
    width: 100%;
    max-height: 180px;
    display: block;
    object-fit: cover;
}

.corporate-event-card > div {
    padding: 15px;
}

.corporate-event-card small,
.corporate-event-card p {
    color: #7c899a;
    font-size: 11px;
    font-weight: 750;
}

.corporate-event-card h3 {
    margin: 5px 0 3px;
    font-size: 19px;
    letter-spacing: -.04em;
}

.corporate-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.corporate-mini-stats span {
    padding: 10px;
    border-radius: 15px;
    color: #6d7a8b;
    background: #f3f6f8;
    font-size: 10px;
    font-weight: 850;
}

.corporate-mini-stats b {
    display: block;
    margin-top: 2px;
    color: #071323;
    font-size: 13px;
}

.corporate-event-card a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: #081725;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.corporate-event-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.corporate-event-card .corporate-event-actions a.secondary {
    color: #071323;
    background: #f2f6f8;
    border: 1px solid #e3ebf0;
}

.corporate-event-control-grid-list .corporate-event-control-card {
    display: grid;
    grid-template-rows: 118px minmax(63px, auto) auto;
    align-self: stretch;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 17px;
    color: #071323;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(7, 19, 35, .06);
}

.corporate-event-cover {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    height: 118px;
    box-sizing: border-box;
    background: radial-gradient(circle at 24% 15%, rgba(45, 220, 205, .24), transparent 42%), #eef3f6;
}

.corporate-event-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.corporate-event-cover b {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #071323;
    background: #2ddccc;
    font-size: 18px;
    font-weight: 950;
}

.corporate-event-cover em {
    position: absolute;
    top: 7px;
    right: 7px;
    max-width: calc(100% - 14px);
    padding: 5px 8px;
    border-radius: 999px;
    color: #071323;
    background: rgba(255, 255, 255, .9);
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(7, 19, 35, .08);
}

.corporate-event-summary {
    display: grid;
    gap: 3px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 8px 7px;
}

.corporate-event-summary small,
.corporate-event-summary strong,
.corporate-event-summary span {
    display: block;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.corporate-event-summary small,
.corporate-event-summary span {
    color: #748194;
    font-size: 9px;
    font-weight: 800;
}

.corporate-event-summary strong {
    color: #071323;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -.03em;
}

.corporate-event-compact-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 7px 8px;
}

.corporate-event-compact-stats b {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 7px 4px;
    border-radius: 11px;
    color: #071323;
    background: #f4f7f9;
    font-size: 11px;
    font-weight: 950;
    text-align: center;
}

.corporate-event-compact-stats small {
    overflow: hidden;
    color: #7e8a9a;
    font-size: 7px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.corporate-control-grid {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.corporate-control-grid section {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #edf1f4;
    border-radius: 20px;
    background: #fbfcfd;
}

.corporate-control-grid section.wide {
    grid-column: 1 / -1;
}

.corporate-control-grid h4 {
    margin: 0;
    color: #071323;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -.03em;
}

.corporate-mini-list,
.corporate-ticket-list,
.corporate-manual-guest-list {
    display: grid;
    gap: 8px;
}

.corporate-mini-list article,
.corporate-ticket-list article,
.corporate-manual-guest-list article {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #edf1f4;
    border-radius: 16px;
    background: #ffffff;
}

.corporate-person-line,
.corporate-manual-guest-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: #071323;
    text-decoration: none;
}

.corporate-person-line strong,
.corporate-person-line small,
.corporate-ticket-list strong,
.corporate-ticket-list small,
.corporate-manual-guest-list strong,
.corporate-manual-guest-list small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.corporate-person-line small,
.corporate-ticket-list small,
.corporate-manual-guest-list small {
    margin-top: 2px;
    color: #7b8796;
    font-size: 10px;
    font-weight: 800;
}

.corporate-status {
    padding: 6px 8px;
    border-radius: 999px;
    color: #08756f;
    background: #e1f9f5;
    font-size: 10px;
    font-weight: 950;
}

.corporate-status.pending {
    color: #8a5b00;
    background: #fff3d6;
}

.corporate-status.rejected,
.corporate-status.cancelled {
    color: #b52b44;
    background: #ffe8ed;
}

.corporate-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.corporate-inline-actions form {
    margin: 0;
}

.corporate-inline-actions a,
.corporate-inline-actions button {
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0 11px;
    color: #071323;
    background: #eef5f7;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 950;
}

.corporate-inline-actions button {
    color: #071323;
    background: #2cd8ca;
}

.corporate-inline-actions .danger,
.corporate-inline-actions button.danger {
    color: #fff;
    background: #071323;
}

.corporate-ticket-list article {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.corporate-guest-add-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 8px;
}

.corporate-guest-add-form input {
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    color: #071323;
    background: #fff;
    border: 1px solid #e5ebef;
    border-radius: 13px;
    outline: none;
    font-size: 12px;
    font-weight: 850;
}

.corporate-guest-add-form button {
    min-height: 40px;
    padding: 0 14px;
    color: #071323;
    background: #2cd8ca;
    border: 0;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 950;
}

.corporate-empty.mini {
    padding: 12px;
    border-radius: 15px;
    font-size: 11px;
}

.profile-corporate-panel-card a {
    min-height: 42px;
    margin-top: 10px;
    display: inline-grid;
    place-items: center;
    padding: 0 16px;
    color: #071323;
    background: #2cd8ca;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

@media (min-width: 720px) {
    .corporate-control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .corporate-guest-add-form {
        grid-template-columns: 1fr;
    }

    .corporate-ticket-list article,
    .corporate-person-line,
    .corporate-manual-guest-list article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .corporate-status,
    .corporate-ticket-list article > span:last-child,
    .corporate-manual-guest-list .corporate-inline-actions {
        grid-column: 1 / -1;
    }
}

.corporate-guest-list a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5ebef;
    border-radius: 21px;
    color: #071323;
    background: #fff;
    text-decoration: none;
}

.corporate-guest-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: #0e5560;
    font-weight: 950;
}

.corporate-guest-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corporate-guest-list strong,
.corporate-guest-list small {
    display: block;
}

.corporate-guest-list small {
    margin-top: 3px;
    color: #7e8a9b;
    font-size: 10px;
}

.corporate-guest-list b {
    padding: 7px 10px;
    border-radius: 999px;
    color: #08756f;
    background: #e1f9f5;
    font-size: 10px;
}

.corporate-empty {
    padding: 18px;
    border: 1px dashed #cfd8df;
    border-radius: 20px;
    color: #758193;
    background: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 850;
}
.payment-main { padding: 20px 15px calc(32px + env(safe-area-inset-bottom)); }
.payment-summary, .payment-provider-card, .payment-notice { padding: 20px; border: 1px solid #e3e8ec; border-radius: 24px; background: #fff; }
.payment-summary > span { color: #129b91; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.payment-summary > div { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.payment-summary h1 { margin: 0; font-size: 27px; }
.payment-summary div > strong { font-size: 20px; }
.payment-summary div small { color: #7a8696; font-size: 10px; }
.payment-summary p, .payment-provider-card p, .payment-notice p { color: #6d7989; font-size: 12px; line-height: 1.5; }
.payment-provider-card { margin-top: 13px; text-align: center; }
.payment-lock { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 17px; color: #075c57; background: #ddfaf5; font-size: 22px; font-weight: 900; }
.payment-provider-card h2 { margin: 0; font-size: 19px; }
.payment-provider-card small { display: block; color: #8a95a3; font-size: 9px; }
.payment-provider-card button { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 15px; color: #788493; background: #e9eef2; font-weight: 900; }
.payment-notice { margin-top: 13px; }
.payment-notice strong { font-size: 13px; }
.payment-notice p { margin-bottom: 0; }

/* Shared content cards in DM */
.dm-attachment.shared_event,
.dm-attachment.shared_post { width: min(280px, 76vw); margin: 0; overflow: visible; border-radius: 18px; background: transparent; }
.dm-attachment .dm-shared-card { display: grid; grid-template-columns: 45px minmax(0,1fr) 14px; align-items: center; gap: 11px; width: 100%; padding: 13px; border: 1px solid #e3e9ed; border-radius: 18px; color: #071323; background: #fff; text-decoration: none; box-sizing: border-box; box-shadow: 0 8px 22px rgba(8,23,37,.08); }
.dm-bubble.mine .dm-attachment .dm-shared-card { color: #071323; background: #fff; }
.dm-shared-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #076c72; background: #dff9f5; }
.dm-shared-card.post .dm-shared-icon { color: #17334c; background: #e9f0f5; }
.dm-shared-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-attachment .dm-shared-card > span:nth-child(2) { display: block; min-width: 0; }
.dm-attachment .dm-shared-card small,
.dm-attachment .dm-shared-card strong,
.dm-attachment .dm-shared-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-attachment .dm-shared-card small { color: #129c91; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.dm-attachment .dm-shared-card strong { margin-top: 3px; color: #071323; font-size: 13px; font-weight: 900; }
.dm-attachment .dm-shared-card em { margin-top: 3px; color: #778394; font-size: 9px; font-style: normal; font-weight: 700; }
.dm-attachment .dm-shared-card > b { color: #9ba5af; font-size: 22px; font-weight: 400; }
.dm-bubble:has(.dm-shared-card) { padding: 5px; background: transparent; box-shadow: none; }
.dm-bubble:has(.dm-shared-card) > p { max-width: 270px; margin: 7px 9px 3px; color: #455467; font-size: 11px; line-height: 1.4; }
.dm-bubble:has(.dm-shared-card) > time { margin: 4px 9px 0; color: #8a95a2; }

/* Google authentication */
.google-auth-button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 11px; margin: 14px 0 0; padding: 0 18px; border: 1px solid #dfe4e8; border-radius: 16px; color: #101820; background: #fff; box-shadow: 0 7px 20px rgba(10,24,36,.06); font-size: 14px; font-weight: 850; }
.google-auth-button svg { flex: 0 0 22px; width: 22px; height: 22px; }
.google-auth-button.is-loading { color: #6e7986; background: #f4f6f8; }
.google-auth-button:disabled { opacity: .75; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 15px 0 12px; color: #8a94a1; font-size: 10px; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e6eaed; }
.auth-divider span { white-space: nowrap; }
.google-auth-error { margin: -3px 0 11px; padding: 10px 12px; border-radius: 12px; color: #ad2942; background: #fff0f3; font-size: 11px; line-height: 1.4; }
.auth-math-field > small { display: block; margin-top: 6px; color: #85909d; font-size: 10px; }
.auth-math-question { display: grid; grid-template-columns: 1fr auto 78px; align-items: center; gap: 10px; min-height: 50px; padding: 6px 7px 6px 15px; border: 1px solid #dfe5e9; border-radius: 15px; background: #f7f9fa; }
.auth-math-question b { color: #071423; font-size: 19px; letter-spacing: .05em; }
.auth-math-question i { color: #8793a0; font-size: 16px; font-style: normal; }
.auth-form .auth-math-question input { width: 100%; min-height: 38px; padding: 0 8px; border: 0; border-radius: 10px; background: #fff; text-align: center; font-size: 17px; font-weight: 850; }
.auth-legal-consent {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 4px;
    padding: 12px;
    border: 1px solid #e5eaee;
    border-radius: 16px;
    background: #f8fafb;
}

.auth-legal-consent input {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 1px 0 0;
    accent-color: #2ed8cb;
}

.auth-legal-consent span {
    display: block;
    color: #5f6b7a;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
}

.auth-legal-consent a {
    color: #071423;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(46, 216, 203, .5);
}

/* Legal document pages */
.legal-page {
    min-height: 100dvh;
    margin: 0;
    color: #071423;
    background: #f7f9fa;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.legal-shell {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(34px + env(safe-area-inset-bottom, 0px));
}

.legal-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.legal-back {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #071423;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(7, 20, 35, .07);
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.legal-brand {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #062d31;
    background: #dffbf7;
    font-size: 11px;
    font-weight: 900;
}

.legal-header h1 {
    margin: 10px 0 4px;
    font-size: clamp(28px, 8vw, 44px);
    line-height: .98;
    letter-spacing: -.05em;
}

.legal-header p {
    margin: 0;
    color: #6a7685;
    font-size: 12px;
    font-weight: 750;
}

.legal-card {
    padding: 18px;
    border: 1px solid #e4e9ed;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(7, 20, 35, .08);
}

.legal-card h2 {
    margin: 22px 0 8px;
    color: #071423;
    font-size: 17px;
    letter-spacing: -.02em;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p {
    margin: 0 0 12px;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
}

.legal-card a {
    color: #008d85;
    font-weight: 850;
    text-decoration: none;
}

/* Dynamic event listing and ticket checkout */
.dynamic-events-main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.events-hero > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 15px; color: #062129; background: #30daca; text-decoration: none; font-size: 12px; font-weight: 900; }
.event-filter-panel form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 10px; width: 100%; }
.event-filter-panel input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #e0e6ea; border-radius: 13px; background: #f6f8fa; outline: none; }
.event-chip-row a { flex: 0 0 auto; padding: 10px 15px; border-radius: 999px; color: #617083; background: #edf2f5; text-decoration: none; font-size: 11px; font-weight: 800; }
.event-chip-row a.active { color: #06272a; background: #34dccc; }
.dynamic-event-card { overflow: hidden; padding: 0; }
.event-card-image { display: block; width: 100%; height: clamp(190px, 48vw, 310px); overflow: hidden; background: #eaf0f3; }
.event-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-card-body { padding: 18px; }
.dynamic-event-card h2 a { color: inherit; text-decoration: none; }
.event-badges { display: flex; align-items: center; gap: 6px; }
.event-badges b { padding: 6px 9px; border-radius: 999px; color: #075f59; background: #dff9f4; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.event-apply-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border-radius: 14px; color: #fff; background: #081725; text-decoration: none; font-size: 11px; font-weight: 900; }
.event-apply-link.pay { color: #06272a; background: #32daca; }
.event-apply-link.pending { color: #765c14; background: #fff0c7; }
.events-empty { padding: 50px 20px; text-align: center; }
.events-empty strong { font-size: 19px; }
.events-empty p { color: #778496; font-size: 12px; }
.event-payment-summary { overflow: hidden; }

/* Compact events page with map preview */
.events-page .dynamic-events-main {
    padding: 8px 10px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}

.events-page .events-hero {
    min-height: auto !important;
    margin-bottom: 10px !important;
    padding: 16px !important;
    border-radius: 22px !important;
}

.events-page .events-hero h1 {
    max-width: 390px !important;
    font-size: 25px !important;
    line-height: 1.05 !important;
}

.events-page .events-hero > a {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 15px !important;
}

.events-page .events-hero > a svg,
.events-page .event-filter-panel button svg,
.events-page .event-chip-row button svg,
.events-map-preview > button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.events-page .event-filter-panel {
    margin-bottom: 8px !important;
    padding: 8px !important;
    border-radius: 17px !important;
}

.events-page .event-filter-panel form {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) 42px !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
}

.events-page .event-filter-panel label {
    display: block;
    min-width: 0;
}

.events-page .event-filter-panel label span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.events-page .event-filter-panel select,
.events-page .event-filter-panel input,
.events-page .event-filter-panel button {
    min-height: 38px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
}

.events-page .event-filter-panel select,
.events-page .event-filter-panel input {
    min-width: 0 !important;
    width: 100% !important;
    height: 38px !important;
    padding: 0 9px !important;
    overflow: hidden !important;
    color: #07111f !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    background: #f7f9fb !important;
}

.events-page .event-filter-panel button {
    width: 42px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    color: #ffffff !important;
    background: #07111f !important;
    border-radius: 12px !important;
}

.events-page .event-filter-panel button svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 380px) {
    .events-page .event-filter-panel form {
        grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) 40px !important;
        gap: 5px !important;
    }

    .events-page .event-filter-panel select,
    .events-page .event-filter-panel input {
        padding: 0 8px !important;
        font-size: 10.5px !important;
    }

    .events-page .event-filter-panel button {
        width: 40px !important;
    }
}

.events-page .event-chip-row {
    gap: 6px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.events-page .event-chip-row a,
.events-page .event-chip-row button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    color: #617083;
    background: #edf2f5;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.events-page .event-chip-row button {
    width: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.events-page .event-chip-row button svg {
    width: 18px;
    height: 18px;
}

.events-page .event-chip-row a.active {
    color: #06272a;
    background: #34dccc;
}

.events-map-preview {
    position: relative;
    width: 100%;
    min-height: 178px;
    display: block;
    margin-bottom: 10px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.06);
    cursor: pointer;
}

.events-map-mini {
    width: 100%;
    height: 178px;
    min-height: 178px;
    overflow: hidden;
    position: relative;
    background: #edf4f6;
    border-radius: 20px;
}

.events-map-mini > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.events-map-preview > button {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #07111f;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 14px;
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.events-map-backdrop {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: block;
    background: #ffffff;
}

.events-map-backdrop[hidden] {
    display: none !important;
}

.events-map-panel {
    width: min(100%, 720px);
    height: 100dvh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #ffffff;
}

.events-map-panel header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
    border-bottom: 1px solid rgba(7, 17, 31, 0.08);
}

.events-map-panel header strong,
.events-map-panel header span {
    display: block;
}

.events-map-panel header strong {
    color: #07111f;
    font-size: 17px;
    font-weight: 950;
}

.events-map-panel header span {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.events-map-panel header button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    color: #07111f;
    background: #edf2f6;
    border-radius: 50%;
    box-shadow: none;
    font-size: 26px;
}

.events-map-full {
    min-height: 0;
    background: #edf4f6;
}

.events-map-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(7, 17, 31, 0.08);
    scrollbar-width: none;
}

.events-map-list::-webkit-scrollbar {
    display: none;
}

.events-map-list a,
.events-map-list p {
    flex: 0 0 190px;
    display: block;
    padding: 12px;
    color: #07111f;
    background: #f5f8fa;
    border-radius: 16px;
    text-decoration: none;
}

.events-map-list strong,
.events-map-list span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-map-list strong {
    font-size: 13px;
    font-weight: 950;
}

.events-map-list span,
.events-map-list p {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.events-page .events-list {
    gap: 10px !important;
}

.events-page .dynamic-event-card {
    border-radius: 20px !important;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.055) !important;
}

.events-page .event-card-image {
    height: clamp(150px, 40vw, 230px) !important;
}

.events-page .event-card-body {
    padding: 13px !important;
}

.events-page .event-card h2 {
    margin: 10px 0 5px !important;
    font-size: 19px !important;
}

.events-page .event-card p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

/* Home must use the document as its native-feeling vertical scroll surface. */
html:has(body.feed-page) {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
}

body.feed-page {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: touch;
}

.feed-page .feed-main.instagram-feed-main {
    height: auto !important;
    min-height: calc(100dvh - 76px) !important;
    overflow-y: visible !important;
    touch-action: pan-y pinch-zoom !important;
}

.feed-page .instagram-feed-list {
    min-height: 1px;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
}

.feed-page [data-feed-lazy-image] {
    transition: opacity .22s ease;
}

.feed-page img[data-src][data-feed-lazy-image] {
    opacity: 0;
}

.pull-refresh-indicator {
    position: fixed;
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 50%;
    z-index: 110;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, 0.09);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(7, 17, 31, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -56px) rotate(0deg);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.pull-refresh-indicator svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pull-refresh-indicator.is-visible {
    opacity: 1;
}

.pull-refresh-indicator.is-refreshing svg {
    animation: pull-refresh-spin 0.75s linear infinite;
}

@keyframes pull-refresh-spin {
    to { transform: rotate(360deg); }
}

/* Auth forms remain reachable on short phones and inside native WebViews. */
.auth-page .form-screen {
    min-height: 100dvh !important;
    padding-bottom: max(104px, calc(52px + env(safe-area-inset-bottom, 0px))) !important;
    overflow: visible !important;
}

.auth-page .form-panel {
    padding-bottom: 24px;
}

.auth-page .auth-form {
    scroll-margin-bottom: 120px;
}

.auth-page .auth-form > button[type="submit"] {
    width: 100%;
    min-height: 54px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.auth-page .auth-form > button[type="submit"].is-loading {
    cursor: wait;
    opacity: 0.72;
}

.auth-ajax-message {
    padding: 11px 13px;
    color: #075f59;
    background: #e5faf6;
    border: 1px solid #bdeee6;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.4;
}

.auth-ajax-message.is-error {
    color: #a92443;
    background: #fff0f3;
    border-color: #ffd0da;
}

@media (max-height: 740px) {
    .auth-page .form-hero {
        min-height: 190px;
        padding-top: 14px;
        padding-bottom: 24px;
    }

    .auth-page .form-header {
        margin-bottom: 20px;
    }

    .auth-page .form-hero h1 {
        font-size: 30px;
    }
}
.event-payment-summary > img { width: calc(100% + 40px); height: 190px; margin: -20px -20px 18px; display: block; object-fit: cover; }
.payment-provider-card .event-payment-start { color: #fff; background: #081725; }
.payment-provider-card.payment-success a { display: inline-flex; min-height: 44px; margin-top: 14px; padding: 0 18px; align-items: center; border-radius: 14px; color: #fff; background: #081725; text-decoration: none; font-size: 11px; font-weight: 900; }

@media (max-width: 600px) {
    .event-filter-panel form { grid-template-columns: 1fr; }
    .event-filter-panel form button { min-height: 44px; }
    .event-card-body { padding: 15px; }
    .event-card-footer { gap: 9px; }
}

.auth-primary-link { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 18px; border-radius: 15px; color: #fff; background: #071423; text-decoration: none; font-size: 13px; font-weight: 850; }

/* Leaflet based discover map, no Google API dependency. */
.bassla-leaflet-pin {
    width: 38px !important;
    height: 46px !important;
    display: grid !important;
    place-items: start center !important;
    background: transparent !important;
    border: 0 !important;
}

.bassla-leaflet-pin span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: #26d9c7;
    border: 4px solid #ffffff;
    border-radius: 50% 50% 50% 10px;
    box-shadow: 0 14px 28px rgba(7, 17, 31, .2);
    transform: rotate(-45deg);
    font-size: 12px;
    font-weight: 950;
}

.bassla-leaflet-pin span::first-letter {
    display: inline-block;
    transform: rotate(45deg);
}

.discover-map-error {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    padding: 12px 14px;
    color: #07111f;
    text-align: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(7, 17, 31, .08);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(7, 17, 31, .12);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
    pointer-events: none;
}

.discover-map-backdrop .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background: #eef6f7;
}

.discover-map-backdrop .leaflet-control-zoom {
    overflow: hidden;
    border: 0 !important;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(7, 17, 31, .14);
}

.discover-map-backdrop .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    color: #07111f;
    border: 0 !important;
    line-height: 38px;
    font-weight: 900;
}

/* Modern Google discover map polish. */
.discover-map-backdrop.is-open .discover-google-map {
    background: #eef3f6 !important;
}

.discover-map-backdrop.is-open .gm-style {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
}

.discover-map-backdrop.is-open .gm-style .gm-style-iw-c {
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(7, 17, 31, .2) !important;
}

.discover-map-events [data-map-visible="0"],
.discover-map-events article[hidden] {
    display: none !important;
}

.discover-map-events:not(.has-visible-map-events)::after {
    content: "Haritada gösterilecek etkinlik konumu bulunamadı.";
    display: block;
    padding: 14px;
    color: #647083;
    text-align: center;
    background: #f6f8fa;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 18px;
    font-size: 12px;
    font-weight: 850;
}

.discover-map-panel header {
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

/* Forgot password page aligned with the mobile auth experience. */
.forgot-page {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 22% 8%, rgba(38, 217, 199, .22), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
}

.forgot-auth-shell {
    width: min(100%, 620px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(28px + env(safe-area-inset-bottom, 0px));
    display: grid;
    align-content: start;
}

.forgot-hero {
    position: relative;
    overflow: hidden;
    min-height: 258px;
    padding: 16px 18px 34px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, .26), rgba(7, 17, 31, .82)),
        url("../img/padel-background.png") center/cover no-repeat,
        #07111f;
    border-radius: 0 0 34px 34px;
    box-shadow: 0 24px 48px rgba(7, 17, 31, .16);
}

.forgot-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
}

.forgot-kicker {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    color: #052322;
    background: #26d9c7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.forgot-hero h1 {
    max-width: 360px;
    margin: 14px 0 10px;
    font-size: clamp(34px, 10vw, 50px);
    line-height: .95;
    letter-spacing: -.06em;
}

.forgot-hero p {
    max-width: 380px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 750;
}

.forgot-panel {
    position: relative;
    z-index: 2;
    margin: -24px 10px 0;
    padding: 20px;
    display: grid;
    gap: 14px;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 31, .07);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(7, 17, 31, .12);
}

.forgot-form {
    gap: 13px;
}

.forgot-form label span {
    color: #657286;
    font-size: 12px;
    font-weight: 900;
}

.forgot-form input {
    min-height: 56px;
    border-radius: 18px;
}

.forgot-form button[type="submit"] {
    min-height: 56px;
    margin-top: 2px;
    border-radius: 18px;
}

.forgot-help-card {
    padding: 14px;
    color: #435064;
    background: #f5f8fa;
    border: 1px solid rgba(7, 17, 31, .06);
    border-radius: 18px;
}

.forgot-help-card strong {
    display: block;
    margin-bottom: 5px;
    color: #07111f;
    font-size: 13px;
    font-weight: 950;
}

.forgot-help-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 750;
}

.forgot-return {
    justify-self: center;
    margin-top: 0;
}

@media (max-height: 720px) {
    .forgot-hero {
        min-height: 220px;
        padding-bottom: 30px;
    }

    .forgot-topbar {
        margin-bottom: 26px;
    }

    .forgot-hero h1 {
        font-size: 32px;
    }
}

.post-image-picker {
    position: relative;
    min-height: 86px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
    align-content: center;
    color: #07111f;
    background: linear-gradient(180deg, #ffffff, #f6f9fb);
    border: 1px dashed rgba(38, 217, 199, .7);
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(7, 17, 31, .06);
    cursor: pointer;
}

.post-image-picker span {
    color: #647083;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.post-image-picker strong {
    font-size: 15px;
    font-weight: 950;
}

.post-image-picker small {
    color: #7a8595;
    font-size: 11px;
    font-weight: 750;
}

.post-image-picker input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.post-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.post-image-preview-grid[hidden] {
    display: none !important;
}

.post-image-preview-grid span {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eef3f6;
    border-radius: 14px;
}

.post-image-preview-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.post-image-preview-grid .is-not-previewable::after {
    content: "Foto";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #667085;
    font-size: 11px;
    font-weight: 950;
}

.post-image-preview-grid b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(7, 17, 31, .58);
    font-size: 18px;
    font-weight: 950;
}

.feed-page .insta-feed-gallery {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    display: block;
    height: auto;
    min-height: 0 !important;
    overflow: hidden;
    transform: translateX(-50%);
    background: #ffffff;
    touch-action: pan-y;
    user-select: none;
}

.feed-page .insta-feed-gallery::-webkit-scrollbar {
    display: none;
}

.feed-page .insta-feed-gallery span {
    position: relative;
    overflow: hidden;
    display: none;
    width: 100%;
    height: auto;
    min-height: 0 !important;
    background: #ffffff;
}

.feed-page .insta-feed-gallery span.is-active {
    position: relative;
    z-index: 2;
    display: block;
    animation: bassla-gallery-in .18s ease both;
}

.feed-page .insta-feed-gallery img {
    width: 100%;
    height: auto;
    min-height: 0 !important;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center;
}

.feed-page .insta-gallery-pill {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    min-width: 44px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: #ffffff;
    background: rgba(7, 17, 31, .72);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
}

.feed-page .insta-gallery-pill b {
    font: inherit;
}

.feed-page .insta-gallery-dots {
    width: 100%;
    min-height: 10px;
    padding: 3px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.feed-page .insta-gallery-dots i {
    width: 5px;
    height: 5px;
    display: block;
    background: #c7ced8;
    border-radius: 999px;
    transition: width .18s ease, background .18s ease;
}

.feed-page .insta-gallery-dots i.is-active {
    width: 14px;
    background: #07111f;
}

@keyframes bassla-gallery-in {
    from {
        opacity: .72;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 420px) {
    .post-image-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .feed-page .insta-feed-gallery span {
        min-height: 0;
    }
}
/* Profile followers/following sheet */
.profile-social-stats .profile-stat-link {
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.profile-social-stats .profile-stat-link:focus,
.profile-social-stats .profile-stat-link:active,
.profile-social-stats .profile-stat-link:hover {
    border: 0 !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.profile-social-stats .profile-stat-link strong {
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

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

.profile-follow-sheet[hidden] {
    display: none !important;
}

.profile-follow-sheet {
    position: fixed;
    z-index: 2147482000 !important;
    inset: 0;
    width: 100vw !important;
    height: 100dvh !important;
    display: grid;
    align-items: end;
    pointer-events: auto;
}

.profile-follow-backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    border: 0;
    background: rgba(7, 17, 31, .38);
}

.profile-follow-panel {
    position: relative;
    z-index: 1;
    width: min(100vw, 620px) !important;
    margin: 0 auto !important;
    max-height: min(76dvh, 620px);
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: #fff !important;
    box-shadow: 0 -24px 70px rgba(7, 17, 31, .18);
}

.profile-follow-panel header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
}

.profile-follow-panel header strong {
    color: #071323;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.profile-follow-panel header button {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 4px 6px;
    border: 0;
    border-radius: 0;
    color: #071323;
    background: transparent;
    box-shadow: none;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.profile-follow-list {
    display: none;
    max-height: calc(min(76dvh, 620px) - 65px);
    overflow-y: auto;
    padding: 4px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    background: #fff !important;
}

.profile-follow-list.active {
    display: block;
}

.profile-follow-user {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f6;
    background: #fff !important;
}

.profile-follow-user:last-child {
    border-bottom: 0;
}

.profile-follow-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #071323;
    background: #eaf1f5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 950;
}

.profile-follow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-follow-copy {
    min-width: 0;
    color: #071323;
    text-decoration: none;
}

.profile-follow-copy strong,
.profile-follow-copy small {
    display: block;
}

.profile-follow-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
}

.profile-follow-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: #697586;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 750;
}

.profile-follow-message {
    padding: 8px 11px;
    border-radius: 999px;
    color: #071323;
    background: #24d8c9;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.profile-follow-empty {
    margin: 24px 0;
    color: #697586;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

body.follow-sheet-open {
    overflow: hidden;
}

/* New message composer list */
.dm-new-chat-panel {
    margin: 12px 0 16px;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(7, 17, 31, .06);
}

.dm-new-chat-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dm-new-chat-panel > header strong {
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -.03em;
}

.dm-new-chat-panel > header a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #071323;
    background: #f1f4f7;
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
}

.dm-new-user-list {
    display: grid;
    gap: 4px;
    max-height: 330px;
    overflow-y: auto;
}

.dm-new-user {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 4px;
    color: #071323;
    text-decoration: none;
}

.dm-new-user .dm-avatar {
    width: 46px;
    height: 46px;
}

.dm-new-user strong,
.dm-new-user small {
    display: block;
}

.dm-new-user strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
}

.dm-new-user small {
    margin-top: 3px;
    overflow: hidden;
    color: #697586;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 750;
}

.dm-new-user em {
    padding: 7px 10px;
    border-radius: 999px;
    color: #071323;
    background: #eff4f7;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

/* Home story rail: Instagram-style round stories. */
.feed-page .circle-stories {
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 12px 12px 8px !important;
}

.feed-page .circle-story {
    width: 72px !important;
    flex: 0 0 72px !important;
    gap: 7px !important;
}

.feed-page .story-avatar,
.feed-page .add-story .story-avatar {
    width: 66px !important;
    height: 66px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    padding: 3px !important;
    overflow: visible !important;
    background: conic-gradient(from 210deg, #24d8c9, #0b1423, #d6b451, #24d8c9) !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(7, 17, 31, .13) !important;
}

.feed-page .story-avatar::before,
.feed-page .story-avatar::after {
    border-radius: 50% !important;
}

.feed-page .story-avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background: #fff !important;
}

.feed-page .story-avatar:not(:has(img)) {
    display: grid !important;
    place-items: center !important;
    color: #071323 !important;
    font-size: 18px !important;
    font-weight: 950 !important;
}

.feed-page .add-story .story-avatar b {
    right: -3px !important;
    bottom: -3px !important;
    width: 24px !important;
    height: 24px !important;
    display: grid !important;
    place-items: center !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    color: #071323 !important;
    background: #24d8c9 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.feed-page .circle-story strong {
    max-width: 72px !important;
    color: #071323 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

/* Remove grey icon button backgrounds across profile/toolbars. */
.profile-page .profile-toolbar {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.profile-page .toolbar-back,
.profile-page .profile-menu summary,
.profile-page .settings-round-action,
.profile-follow-panel header button,
.round-back,
.dm-back {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.profile-page .toolbar-back:active,
.profile-page .toolbar-back:focus,
.profile-page .toolbar-back:hover,
.profile-page .profile-menu summary:active,
.profile-page .profile-menu summary:focus,
.profile-page .profile-menu summary:hover,
.profile-page .settings-round-action:active,
.profile-page .settings-round-action:focus,
.profile-page .settings-round-action:hover,
.profile-follow-panel header button:active,
.profile-follow-panel header button:focus,
.profile-follow-panel header button:hover,
.round-back:active,
.round-back:focus,
.round-back:hover,
.dm-back:active,
.dm-back:focus,
.dm-back:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Discover page: event-first map experience. */
.discover-page {
    background: #ffffff !important;
}

.discover-page .discover-main {
    width: min(100%, 620px) !important;
    margin: 0 auto !important;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}

.discover-page .discover-search {
    margin: 0 0 10px !important;
    padding: 8px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.discover-page .discover-search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    gap: 8px !important;
    align-items: center !important;
}

.discover-page .discover-search-form label {
    grid-column: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.discover-page .discover-search-form label span {
    display: none !important;
}

.discover-page .discover-search-form input {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    color: #07111f !important;
    background: #f5f7fa !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.discover-page .discover-search-form button[type="submit"] {
    min-height: 42px !important;
    padding: 0 14px !important;
    color: #ffffff !important;
    background: #07111f !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.discover-page .discover-search-form > a {
    grid-column: 1 / -1 !important;
    min-height: 34px !important;
    display: inline-grid !important;
    place-items: center !important;
    justify-self: start !important;
    padding: 0 12px !important;
    color: #07111f !important;
    background: #eff4f7 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.discover-page .discover-search-summary {
    margin: 8px 4px 0 !important;
    color: #697586 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.discover-page .discover-map-inline,
.discover-page .discover-map-backdrop.discover-map-inline {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 -10px 10px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.discover-page .discover-map-inline[hidden] {
    display: block !important;
}

.discover-page .discover-map-inline .discover-map-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.discover-page .discover-map-inline .discover-map-panel header {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    z-index: 8 !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

.discover-page .discover-map-inline .discover-map-panel header > div {
    max-width: calc(100% - 58px) !important;
    padding: 9px 12px !important;
    color: #07111f !important;
    background: rgba(255, 255, 255, .94) !important;
    border: 1px solid rgba(7, 17, 31, .07) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(7, 17, 31, .11) !important;
    pointer-events: auto !important;
}

.discover-page .discover-map-inline .discover-map-panel header strong {
    display: block !important;
    color: #07111f !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    letter-spacing: -.02em !important;
}

.discover-page .discover-map-inline .discover-map-panel header span {
    display: block !important;
    margin-top: 2px !important;
    color: #687385 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
}

.discover-page .discover-map-fullscreen,
.discover-page .discover-map-close {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #07111f !important;
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(7, 17, 31, .08) !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 30px rgba(7, 17, 31, .13) !important;
    pointer-events: auto !important;
}

.discover-page .discover-map-fullscreen svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.discover-page .discover-map-close {
    display: none !important;
    color: #ffffff !important;
    background: #07111f !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.discover-page .discover-map-inline .discover-map-live {
    height: min(50dvh, 430px) !important;
    min-height: 318px !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 0 0 28px 28px !important;
    background: #eef3f5 !important;
}

.discover-page .discover-map-inline .discover-map-canvas {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 318px !important;
    overflow: hidden !important;
    background: #eef3f5 !important;
    touch-action: pan-x pan-y pinch-zoom !important;
    overscroll-behavior: contain !important;
}

.discover-page .discover-map-inline .discover-map-canvas::before,
.discover-page .discover-map-inline .discover-map-canvas::after,
.discover-page .discover-map-inline .map-grid,
.discover-page .discover-map-inline .map-zoom-layer,
.discover-page .discover-map-inline .map-watermark {
    display: none !important;
}

.discover-page .discover-map-inline .discover-google-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    touch-action: pan-x pan-y pinch-zoom !important;
}

.discover-page .discover-map-inline .discover-map-events {
    display: none !important;
}

.discover-page .discover-map-inline.is-open,
.discover-page .discover-map-inline.is-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.discover-page .discover-map-inline.is-open .discover-map-panel,
.discover-page .discover-map-inline.is-fullscreen .discover-map-panel {
    height: 100dvh !important;
    overflow: hidden !important;
}

.discover-page .discover-map-inline.is-open .discover-map-live,
.discover-page .discover-map-inline.is-fullscreen .discover-map-live {
    height: 100dvh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
}

.discover-page .discover-map-inline.is-open .discover-map-canvas,
.discover-page .discover-map-inline.is-fullscreen .discover-map-canvas {
    height: 100dvh !important;
    min-height: 100dvh !important;
}

.discover-page .discover-map-inline.is-open .discover-map-fullscreen,
.discover-page .discover-map-inline.is-fullscreen .discover-map-fullscreen {
    display: none !important;
}

.discover-page .discover-map-inline.is-open .discover-map-close,
.discover-page .discover-map-inline.is-fullscreen .discover-map-close {
    display: grid !important;
}

.discover-page .discover-map-inline.is-open .discover-map-events,
.discover-page .discover-map-inline.is-fullscreen .discover-map-events {
    position: absolute !important;
    right: 0 !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    z-index: 9 !important;
    display: flex !important;
    gap: 10px !important;
    padding: 0 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: transparent !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
}

.discover-page .discover-map-inline.is-open .discover-map-events::-webkit-scrollbar,
.discover-page .discover-map-inline.is-fullscreen .discover-map-events::-webkit-scrollbar {
    display: none !important;
}

.discover-page .discover-map-inline.is-open .discover-map-events article,
.discover-page .discover-map-inline.is-fullscreen .discover-map-events article,
.discover-page .discover-map-inline.is-open .discover-map-events .discover-muted-card,
.discover-page .discover-map-inline.is-fullscreen .discover-map-events .discover-muted-card {
    min-width: 248px !important;
    max-width: 284px !important;
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
    padding: 13px !important;
    color: #07111f !important;
    background: rgba(255, 255, 255, .94) !important;
    border: 1px solid rgba(7, 17, 31, .08) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 44px rgba(7, 17, 31, .16) !important;
}

.discover-page .discover-map-events article.is-active {
    border-color: rgba(38, 217, 199, .95) !important;
    box-shadow: 0 18px 44px rgba(38, 217, 199, .20) !important;
}

.discover-page .discover-filter-row {
    margin: 10px 0 8px !important;
    padding: 0 2px 4px !important;
    display: flex !important;
    gap: 7px !important;
    overflow-x: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    scrollbar-width: none !important;
}

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

.discover-page .discover-filter-row a {
    min-height: 34px !important;
    flex: 0 0 auto !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 14px !important;
    color: #5f6c7d !important;
    background: #f4f7fa !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.discover-page .discover-filter-row a.active {
    color: #07111f !important;
    background: #26d9c7 !important;
    border-color: #26d9c7 !important;
}

.discover-page .discover-section:not(.discover-events-section) {
    display: none !important;
}

.discover-page .discover-events-section {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.discover-page .discover-events-section .section-title {
    margin: 0 2px 9px !important;
    padding: 0 !important;
}

.discover-page .discover-events-section .section-title h2 {
    color: #07111f !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    letter-spacing: -.03em !important;
}

.discover-page .discover-events-section .section-title span {
    color: #7a8595 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.discover-page .discover-event-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.discover-page .discover-events-section .discover-event-card {
    min-height: 0 !important;
    padding: 14px !important;
    color: #07111f !important;
    background: #ffffff !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 22px !important;
    box-shadow: none !important;
}

.discover-page .discover-events-section .discover-event-card header {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    align-items: center !important;
}

.discover-page .discover-events-section .discover-event-card .avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: #26d9c7 !important;
    font-size: 15px !important;
}

.discover-page .discover-events-section .discover-event-card header strong,
.discover-page .discover-events-section .discover-event-card header span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.discover-page .discover-events-section .discover-event-card header strong {
    font-size: 13px !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card header span {
    margin-top: 2px !important;
    color: #6b7788 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.discover-page .discover-events-section .discover-event-card header small {
    padding: 8px 10px !important;
    color: #07111f !important;
    background: #e8fbf8 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card h3 {
    margin: 12px 0 5px !important;
    color: #07111f !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
    letter-spacing: -.03em !important;
}

.discover-page .discover-events-section .discover-event-card p {
    margin: 0 !important;
    color: #4d5b6e !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
    font-weight: 750 !important;
}

.discover-page .discover-events-section .discover-event-card footer {
    margin-top: 12px !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.discover-page .discover-events-section .discover-event-card footer a,
.discover-page .discover-events-section .discover-event-card footer button {
    min-height: 36px !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 13px !important;
    color: #07111f !important;
    background: #f1f5f8 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
}

.discover-page .discover-events-section .discover-event-card footer a:first-child {
    color: #ffffff !important;
    background: #07111f !important;
}

.bassla-map-info-card {
    width: 260px;
    display: grid;
    gap: 6px;
    padding: 4px 2px 2px;
    color: #07111f;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.bassla-map-info-card small {
    justify-self: start;
    padding: 6px 9px;
    color: #07111f;
    background: #e8fbf8;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
}

.bassla-map-info-card strong {
    display: block;
    color: #07111f;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.03em;
}

.bassla-map-info-card span,
.bassla-map-info-card p {
    display: block;
    margin: 0;
    color: #637083;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.bassla-map-info-card footer {
    display: flex;
    gap: 7px;
    margin-top: 4px;
}

.bassla-map-info-card a {
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0 11px;
    color: #07111f;
    background: #26d9c7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
}

.bassla-map-info-card a:last-child {
    background: #eef3f8;
}

.gm-style .gm-style-iw-c {
    padding: 10px !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 46px rgba(7, 17, 31, .22) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-ui-hover-effect {
    top: 2px !important;
    right: 2px !important;
}

/* Discover refinement: searchable users + two-column visual event cards. */
.discover-page .discover-section.discover-users-section {
    display: none !important;
}

.discover-page .discover-section.discover-users-section.is-visible-search-section {
    display: block !important;
    margin: 8px 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.discover-page .discover-users-section .section-title {
    margin: 0 2px 8px !important;
}

.discover-page .discover-users-section .suggested-user-rail {
    display: flex !important;
    gap: 9px !important;
    overflow-x: auto !important;
    padding: 0 2px 4px !important;
    scrollbar-width: none !important;
}

.discover-page .discover-users-section .suggested-user-rail::-webkit-scrollbar {
    display: none !important;
}

.discover-page .discover-users-section .suggested-user-card {
    width: 150px !important;
    min-width: 150px !important;
    padding: 11px !important;
    background: #ffffff !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
}

.discover-page .discover-event-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

.discover-page .discover-events-section .discover-event-card {
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid #edf0f4 !important;
}

.discover-page .discover-event-image {
    width: 100% !important;
    aspect-ratio: 1 / 1.05 !important;
    display: block !important;
    object-fit: cover !important;
    background: #eef3f8 !important;
}

.discover-page .discover-event-image-placeholder {
    display: grid !important;
    place-items: center !important;
    background:
        radial-gradient(circle at 24% 18%, rgba(38, 217, 199, .45), transparent 32%),
        linear-gradient(135deg, #eef3f8, #ffffff) !important;
}

.discover-page .discover-event-image-placeholder span {
    width: 50px !important;
    height: 50px !important;
    display: grid !important;
    place-items: center !important;
    color: #07111f !important;
    background: #26d9c7 !important;
    border-radius: 18px !important;
    font-size: 20px !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
    padding: 9px 9px 0 !important;
}

.discover-page .discover-events-section .discover-event-card header .avatar {
    display: none !important;
}

.discover-page .discover-events-section .discover-event-card header strong {
    max-width: 100% !important;
    font-size: 11px !important;
}

.discover-page .discover-events-section .discover-event-card header span {
    max-width: 100% !important;
    font-size: 9px !important;
}

.discover-page .discover-events-section .discover-event-card header small {
    padding: 6px 7px !important;
    font-size: 9px !important;
}

.discover-page .discover-events-section .discover-event-card h3 {
    margin: 8px 9px 4px !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 14px !important;
    line-height: 1.16 !important;
}

.discover-page .discover-events-section .discover-event-card p {
    margin: 0 9px !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 11px !important;
    line-height: 1.32 !important;
}

.discover-page .discover-events-section .discover-event-card footer {
    margin: 9px !important;
    gap: 6px !important;
}

.discover-page .discover-events-section .discover-event-card footer a,
.discover-page .discover-events-section .discover-event-card footer button {
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
}

@media (max-width: 360px) {
    .discover-page .discover-event-grid {
        gap: 7px !important;
    }

    .discover-page .discover-events-section .discover-event-card h3 {
        font-size: 13px !important;
    }

    .discover-page .discover-events-section .discover-event-card footer a,
    .discover-page .discover-events-section .discover-event-card footer button {
        padding: 0 7px !important;
        font-size: 9px !important;
    }
}

/* Discover event card owner overlay. */
.discover-page .discover-events-section .discover-event-card {
    position: relative !important;
}

.discover-page .discover-events-section .discover-event-card header {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: 8px !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 38px !important;
    padding: 5px 6px !important;
    color: #07111f !important;
    background: rgba(255, 255, 255, .90) !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(7, 17, 31, .14) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
}

.discover-page .discover-events-section .discover-event-card header .avatar {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    color: #07111f !important;
    background: #26d9c7 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card header .avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.discover-page .discover-events-section .discover-event-card header strong,
.discover-page .discover-events-section .discover-event-card header span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #07111f !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.discover-page .discover-events-section .discover-event-card header strong {
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card header span {
    margin-top: 1px !important;
    color: #647083 !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    font-weight: 850 !important;
}

.discover-page .discover-events-section .discover-event-card header small {
    max-width: 58px !important;
    padding: 5px 6px !important;
    overflow: hidden !important;
    color: #07111f !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    background: #e8fbf8 !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    font-weight: 950 !important;
}

.discover-page .discover-event-image,
.discover-page .discover-event-image-placeholder {
    border-radius: 18px 18px 0 0 !important;
}

/* Discover event cards: clean owner line without background. */
.discover-page .discover-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.discover-page .discover-events-section .discover-event-card {
    position: relative !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

.discover-page .discover-events-section .discover-event-card header {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: 8px !important;
    z-index: 4 !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.discover-page .discover-events-section .discover-event-card header .avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    color: #07111f !important;
    background: #26d9c7 !important;
    border: 2px solid rgba(255, 255, 255, .92) !important;
    border-radius: 50% !important;
    box-shadow: 0 7px 16px rgba(7, 17, 31, .18) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card header .avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.discover-page .discover-events-section .discover-event-card header strong,
.discover-page .discover-events-section .discover-event-card header span {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .42) !important;
}

.discover-page .discover-events-section .discover-event-card header strong {
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card header span {
    margin-top: 1px !important;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    font-weight: 850 !important;
}

.discover-page .discover-events-section .discover-event-card header small {
    max-width: 52px !important;
    min-height: 24px !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 7px !important;
    overflow: hidden !important;
    color: #07111f !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 7px 16px rgba(7, 17, 31, .12) !important;
    font-size: 8px !important;
    font-weight: 950 !important;
}

.discover-page .discover-event-image,
.discover-page .discover-event-image-placeholder {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1.05 !important;
    object-fit: cover !important;
    border-radius: 18px 18px 0 0 !important;
}

.discover-page .discover-events-section .discover-event-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    height: 70px !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, rgba(7, 17, 31, .42), rgba(7, 17, 31, 0)) !important;
}

/* Profile avatar circular cropper. */
.profile-crop-sheet[hidden] {
    display: none !important;
}

.profile-crop-sheet {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: grid !important;
    align-items: end !important;
    background: rgba(7, 17, 31, .42) !important;
}

.profile-crop-panel {
    width: min(100vw, 620px) !important;
    margin: 0 auto !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    color: #07111f !important;
    background: #ffffff !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -28px 70px rgba(7, 17, 31, .18) !important;
}

.profile-crop-panel header {
    display: grid !important;
    grid-template-columns: 54px 1fr 74px !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.profile-crop-panel header strong {
    text-align: center !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    letter-spacing: -.03em !important;
}

.profile-crop-panel button {
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 12px !important;
    color: #07111f !important;
    background: #f1f5f8 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.profile-crop-panel [data-profile-crop-cancel] {
    width: 42px !important;
    padding: 0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
}

.profile-crop-panel [data-profile-crop-save] {
    color: #07111f !important;
    background: #26d9c7 !important;
}

.profile-crop-stage {
    position: relative !important;
    width: min(76vw, 360px) !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 16px !important;
    overflow: hidden !important;
    background: #07111f !important;
    border-radius: 28px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 48px rgba(7,17,31,.16) !important;
    touch-action: none !important;
}

.profile-crop-stage canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.profile-crop-ring {
    position: absolute !important;
    inset: 8% !important;
    z-index: 2 !important;
    pointer-events: none !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 999px rgba(7, 17, 31, .42), 0 0 0 1px rgba(38,217,199,.85) !important;
}

.profile-crop-zoom {
    display: grid !important;
    grid-template-columns: 92px 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    background: #f5f7fa !important;
    border-radius: 18px !important;
}

.profile-crop-zoom span {
    color: #687385 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.profile-crop-zoom input {
    width: 100% !important;
    accent-color: #26d9c7 !important;
}

.profile-crop-panel p {
    margin: 10px 4px 0 !important;
    color: #687385 !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.profile-crop-open {
    overflow: hidden !important;
}

/* Discover: map-aware compact event cards. */
.discover-page .discover-events-section .discover-event-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
}

.discover-page .discover-event-media {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
    background: #eef3f8 !important;
    isolation: isolate !important;
}

.discover-page .discover-event-media::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    height: 58% !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0), rgba(7, 17, 31, .72)) !important;
}

.discover-page .discover-event-media .discover-event-image,
.discover-page .discover-event-media .discover-event-image-placeholder {
    width: 100% !important;
    aspect-ratio: 1 / 1.12 !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.discover-page .discover-event-media h3 {
    position: absolute !important;
    right: 9px !important;
    bottom: 9px !important;
    left: 9px !important;
    z-index: 2 !important;
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45) !important;
    font-size: 15px !important;
    line-height: 1.08 !important;
    letter-spacing: -.03em !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card > h3 {
    display: none !important;
}

.discover-page .discover-events-section .discover-event-card header {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: 8px !important;
    z-index: 5 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.discover-page .discover-events-section .discover-event-card header small {
    max-width: 60px !important;
    min-height: 24px !important;
    padding: 0 7px !important;
    color: #07111f !important;
    background: rgba(255, 255, 255, .94) !important;
    border-radius: 999px !important;
    box-shadow: 0 7px 16px rgba(7, 17, 31, .13) !important;
    font-size: 8px !important;
    font-weight: 950 !important;
}

.discover-page .discover-events-section .discover-event-card p {
    min-height: 34px !important;
    margin: 8px 9px 0 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: #465265 !important;
    font-size: 11px !important;
    line-height: 1.32 !important;
    font-weight: 750 !important;
}

.discover-page .discover-events-section .discover-event-card footer {
    margin: auto 9px 9px !important;
    padding-top: 8px !important;
}

.discover-page [data-discover-event][hidden] {
    display: none !important;
}

.discover-page .discover-event-grid:not(.has-visible-discover-events)::after {
    content: "Bu harita alaninda etkinlik yok." !important;
    grid-column: 1 / -1 !important;
    min-height: 82px !important;
    display: grid !important;
    place-items: center !important;
    color: #697586 !important;
    background: #f7f9fb !important;
    border: 1px dashed #dbe2ea !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.discover-page .discover-events-section .discover-event-card header strong,
.discover-page .discover-events-section .discover-event-card header span,
.discover-page .discover-events-section .discover-event-card header small {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .62) !important;
}

.discover-page .discover-events-section .discover-event-card header small {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

.discover-page .discover-map-events:not(.has-visible-map-events)::after {
    content: "Bu harita alaninda etkinlik yok." !important;
}

/* Discover organizer profile links */
.discover-page .discover-map-events .discover-map-owner {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 9px !important;
    justify-self: stretch !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #07111f !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.discover-page .discover-map-events .discover-map-owner .avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    font-size: 12px !important;
}

.discover-page .discover-map-events .discover-map-owner .avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

.discover-page .discover-map-events .discover-map-owner strong,
.discover-page .discover-map-events .discover-map-owner small {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.discover-page .discover-map-events .discover-map-owner strong {
    color: #07111f !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
}

.discover-page .discover-map-events .discover-map-owner small {
    margin-top: 2px !important;
    padding: 0 !important;
    color: #6b7788 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.discover-page .discover-events-section .discover-event-card header .discover-event-owner {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    color: inherit !important;
    text-decoration: none !important;
}

.discover-page .discover-events-section .discover-event-card header .discover-event-owner .avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: grid !important;
    border-radius: 50% !important;
}

.discover-page .discover-events-section .discover-event-card header .discover-event-owner .avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

.discover-page .discover-events-section .discover-event-card .discover-event-owner-text {
    min-width: 0 !important;
    display: block !important;
}

.bassla-map-info-owner {
    display: block;
    margin: 5px 0 3px;
    color: #07111f;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

/* Discover event card final visibility fixes. */
.discover-page .discover-events-section .discover-event-card header {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

.discover-page .discover-events-section .discover-event-card header .discover-event-owner {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.discover-page .discover-events-section .discover-event-card header .discover-event-owner-text,
.discover-page .discover-events-section .discover-event-card header .discover-event-owner-text strong,
.discover-page .discover-events-section .discover-event-card header .discover-event-owner-text span {
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.discover-page .discover-events-section .discover-event-card header .discover-event-owner-text strong {
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .72) !important;
}

.discover-page .discover-events-section .discover-event-card header .discover-event-owner-text span {
    margin-top: 1px !important;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .72) !important;
}

.discover-page .discover-event-media h3,
.discover-page .discover-events-section .discover-event-card .discover-event-media h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .72) !important;
}

.discover-page [data-map-canvas],
.discover-page [data-google-map],
.discover-page .discover-google-map,
.discover-page .discover-map-live,
.discover-page .gm-style {
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-x pan-y pinch-zoom !important;
}

.discover-page .discover-map-fallback {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    background: #eef3f5 !important;
}

.discover-page .discover-map-fallback iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: 0 !important;
}

.discover-page .discover-google-map {
    z-index: 2 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.discover-page .discover-map-canvas.is-google-ready .discover-google-map {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.discover-page .discover-map-canvas.is-google-ready .discover-map-fallback {
    display: none !important;
}

.discover-page .discover-map-canvas.is-google-fallback .discover-map-error {
    z-index: 4 !important;
    max-width: calc(100% - 28px) !important;
    color: #07111f !important;
    background: rgba(255, 255, 255, .94) !important;
}

/* Bass'la advanced story polish */
.feed-page .circle-story.has-story .story-avatar.story-live {
    border-radius: 999px !important;
    border: 3px solid #27d8ca !important;
    box-shadow: 0 10px 24px rgba(4, 16, 31, 0.13) !important;
    background: #fff !important;
}

.feed-page .circle-story.has-story.has-unseen .story-avatar.story-live {
    border-color: #27d8ca !important;
    outline: 2px solid rgba(214, 164, 62, 0.72) !important;
    outline-offset: 3px !important;
}

.feed-page .circle-story.has-story.is-viewed .story-avatar.story-live {
    border-color: #d8dee7 !important;
    outline: 2px solid #eef2f6 !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

.story-fullscreen-viewer .story-viewer-actions {
    gap: 12px !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

.story-fullscreen-viewer .story-viewer-actions button {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    backdrop-filter: blur(14px) !important;
}

.story-fullscreen-viewer .story-viewer-actions button.is-liked {
    background: #27d8ca !important;
    color: #07111f !important;
    border-color: #27d8ca !important;
}

.story-reply-inline {
    position: absolute;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
}

.story-reply-inline[hidden] {
    display: none !important;
}

.story-reply-inline input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 0 18px;
    font: 800 14px/1.2 inherit;
    outline: none;
    backdrop-filter: blur(18px);
}

.story-reply-inline input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.story-reply-inline button {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #27d8ca;
    color: #07111f;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(39, 216, 202, 0.28);
}

.story-reply-inline button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.story-fullscreen-viewer .story-progress span {
    position: relative !important;
}

.story-fullscreen-viewer .story-progress span::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background: #fff;
    border-radius: inherit;
}

.story-fullscreen-viewer .story-progress span.completed::after {
    width: 100%;
}

.story-fullscreen-viewer .story-progress span.active {
    background: rgba(255, 255, 255, 0.26) !important;
}

.story-fullscreen-viewer .story-progress span.active::after {
    animation: basslaStoryProgress 5s linear forwards;
}

@keyframes basslaStoryProgress {
    from { width: 0; }
    to { width: 100%; }
}
/* Bass'la pro story editor controls */
.story-editor:not([hidden]) .story-editor-top {
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: 12px !important;
    left: 12px !important;
    align-items: flex-start !important;
}

.story-editor-close,
.story-editor-tools button {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    color: #ffffff !important;
    background: rgba(8, 16, 28, 0.54) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
    backdrop-filter: blur(16px) saturate(1.25) !important;
}

.story-editor-close {
    border-radius: 999px !important;
}

.story-editor-tools {
    gap: 8px !important;
    padding: 6px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
}

.story-editor-tools button span {
    font-size: 17px !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
}

.story-editor-tools svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.15 !important;
}

.story-pro-panel {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    left: max(14px, env(safe-area-inset-left)) !important;
    z-index: 9 !important;
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 10px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.35) !important;
    backdrop-filter: blur(20px) saturate(1.35) !important;
    scrollbar-width: none !important;
}

.story-pro-panel::-webkit-scrollbar {
    display: none !important;
}

.story-pro-panel button {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    min-height: 64px !important;
    display: grid !important;
    place-items: center !important;
    gap: 5px !important;
    padding: 8px 12px !important;
    color: #06101c !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(6, 16, 28, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.story-pro-panel button.active {
    color: #06101c !important;
    background: #26d9c7 !important;
    border-color: #26d9c7 !important;
}

.story-pro-panel button i {
    min-width: 54px !important;
    height: 28px !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-style: normal !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: 0.03em !important;
}

.story-pro-panel button span {
    display: block !important;
    white-space: nowrap !important;
}

.story-editor-submit:disabled {
    opacity: 0.72 !important;
    transform: scale(0.96) !important;
}
.story-location-panel {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
    align-items: center !important;
}

.story-location-panel input {
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 14px !important;
    color: #06101c !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(6, 16, 28, 0.08) !important;
    border-radius: 16px !important;
    outline: none !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

.story-location-panel button {
    min-width: auto !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
}

.story-location-panel button[data-pro-location-add] {
    background: #26d9c7 !important;
    border-color: #26d9c7 !important;
}

@media (max-width: 390px) {
    .story-location-panel {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .story-location-panel button[data-pro-location-use] {
        display: none !important;
    }
}
.story-location-results {
    grid-column: 1 / -1 !important;
    display: grid !important;
    gap: 7px !important;
    max-height: 210px !important;
    overflow-y: auto !important;
    padding-top: 2px !important;
    scrollbar-width: none !important;
}

.story-location-results[hidden] {
    display: none !important;
}

.story-location-results::-webkit-scrollbar {
    display: none !important;
}

.story-location-results button {
    width: 100% !important;
    height: auto !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    justify-items: stretch !important;
    padding: 10px 12px !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 16px !important;
}

.story-location-results button b {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    border-radius: 999px !important;
    background: radial-gradient(circle at 50% 42%, #06101c 0 4px, #26d9c7 5px 100%) !important;
}

.story-location-results button span {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.story-location-results button strong,
.story-location-results button small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.story-location-results button strong {
    color: #06101c !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.story-location-results button small,
.story-location-empty {
    color: #687386 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.story-location-empty {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.86) !important;
}

.story-pro-panel button .story-icon-preview {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
}

.story-layer-panel {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(46px, 1fr)) auto auto !important;
    gap: 8px !important;
    align-items: center !important;
}

.story-layer-panel button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 12px !important;
    color: #06101c !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(6, 16, 28, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.story-layer-panel button[data-pro-layer-edit] {
    min-width: 86px !important;
    color: #06101c !important;
    background: #26d9c7 !important;
    border-color: #26d9c7 !important;
    font-size: 12px !important;
}

.story-layer-panel button.danger {
    min-width: 58px !important;
    color: #ffffff !important;
    background: #06101c !important;
    border-color: #06101c !important;
    font-size: 12px !important;
}

@media (max-width: 390px) {
    .story-layer-panel {
        grid-template-columns: repeat(4, 46px) minmax(68px, 1fr) 56px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    .story-layer-panel::-webkit-scrollbar {
        display: none !important;
    }
}

/* Story viewer: Instagram-like tap navigation with only like + message actions. */
.story-fullscreen-viewer .story-viewer-card {
    position: relative !important;
}

.story-fullscreen-viewer .story-tap-zones {
    position: absolute !important;
    inset: calc(42px + env(safe-area-inset-top, 0px)) 0 calc(86px + env(safe-area-inset-bottom, 0px)) 0 !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: 36% 64% !important;
    pointer-events: none !important;
}

.story-fullscreen-viewer .story-tap-zones button {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.story-fullscreen-viewer .story-viewer-actions {
    right: auto !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    left: max(16px, env(safe-area-inset-left)) !important;
    z-index: 1003 !important;
    width: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    pointer-events: auto !important;
}

.story-fullscreen-viewer .story-viewer-actions button {
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
}

.story-fullscreen-viewer .story-viewer-actions [data-story-prev],
.story-fullscreen-viewer .story-viewer-actions [data-story-next],
.story-fullscreen-viewer .story-viewer-actions [data-story-delete],
.story-fullscreen-viewer .story-viewer-actions [data-story-report] {
    display: none !important;
}

.story-fullscreen-viewer .story-viewer-actions button.is-liked {
    color: #07111f !important;
    background: #27d8ca !important;
    border-color: #27d8ca !important;
}

.story-fullscreen-viewer .story-reply-inline {
    left: max(78px, calc(env(safe-area-inset-left, 0px) + 78px)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1003 !important;
    grid-template-columns: minmax(0, 1fr) 52px !important;
}

/* Feed video support */
.post-video-picker {
    border-style: solid;
    background:
        linear-gradient(135deg, rgba(39, 216, 202, .13), rgba(255, 255, 255, .96)),
        #ffffff;
}

.post-video-preview-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.post-video-preview-list[hidden] {
    display: none !important;
}

.post-video-preview-list article {
    min-height: 78px;
    padding: 8px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    background: #f6f9fb;
    border: 1px solid #e8eef3;
    border-radius: 18px;
}

.post-video-preview-list video {
    width: 58px;
    height: 72px;
    display: block;
    object-fit: cover;
    background: #07111f;
    border-radius: 14px;
}

.post-video-preview-list span {
    min-width: 0;
    color: #07111f;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-video-preview-list .is-not-previewable video {
    opacity: .45;
}

.insta-feed-video-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #050b14;
    isolation: isolate;
}

.feed-page .insta-feed-video-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}

@media (min-width: 621px) {
    .feed-page .insta-feed-video-wrap {
        width: 620px !important;
        max-width: 620px !important;
    }
}

.insta-feed-video {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    display: block;
    object-fit: contain;
    background: #050b14;
}

.video-buffer-indicator {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.video-buffer-indicator i {
    width: 34px;
    height: 34px;
    display: block;
    border: 3px solid rgba(255, 255, 255, .46);
    border-top-color: #27d8ca;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: bassla-video-spin .72s linear infinite;
}

.insta-feed-video-wrap.is-video-loading .video-buffer-indicator {
    opacity: 1;
}

.insta-feed-video-wrap.is-video-error .video-buffer-indicator {
    opacity: 0;
}

.insta-feed-video-wrap.is-video-loading .insta-feed-video {
    filter: saturate(.92);
}

@keyframes bassla-video-spin {
    to {
        transform: rotate(360deg);
    }
}

.feed-page .insta-feed-gallery .insta-feed-video-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
}

.video-sound-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: rgba(7, 17, 31, .66);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.video-sound-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
    color: currentColor;
    fill: currentColor;
}

.video-sound-toggle.is-sound-on {
    color: #ffffff;
    background: rgba(39, 216, 202, .82);
    border-color: rgba(255, 255, 255, .34);
}

.insta-feed-video-processing {
    width: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    color: #07111f;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    background:
        radial-gradient(circle at 24% 20%, rgba(39, 216, 202, .22), transparent 34%),
        #f6f9fb;
}

.insta-feed-video-processing strong,
.insta-feed-video-processing span {
    display: block;
}

/* Unified create media picker and upload progress */
.post-media-picker {
    position: relative;
    padding: 14px;
    display: grid;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e8eef3;
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(7, 17, 31, .06);
}

.post-media-picker > div:first-child {
    display: grid;
    gap: 4px;
}

.post-media-picker > div:first-child span {
    color: #6b7789;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.post-media-picker > div:first-child strong {
    color: #07111f;
    font-size: 16px;
    font-weight: 950;
}

.post-media-picker > div:first-child small {
    color: #738095;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.post-media-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.post-media-actions label {
    position: relative;
    min-height: 52px;
    margin: 0 !important;
    display: grid !important;
    place-items: center;
    overflow: hidden;
    color: #07111f;
    background: #f3f7fa;
    border: 1px solid #e5ebf1;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 950;
    box-shadow: none !important;
}

.post-media-actions label:active {
    transform: scale(.98);
}

.post-media-actions input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-progress {
    display: grid;
    gap: 8px;
    margin: 2px 0 8px;
}

.upload-progress[hidden] {
    display: none !important;
}

.upload-progress b {
    height: 8px;
    display: block;
    overflow: hidden;
    background: #edf2f6;
    border-radius: 999px;
}

.upload-progress i {
    width: 0;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #27d8ca, #07111f);
    border-radius: inherit;
    transition: width .18s ease;
}

.upload-progress span {
    color: #697588;
    font-size: 12px;
    font-weight: 850;
}

.upload-progress.is-active span {
    color: #07111f;
}

/* Profile media grid video support */
.shared-photo-grid video,
.shared-photo-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.shared-photo-grid button {
    position: relative;
}

.shared-photo-grid .profile-media-tile {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.shared-photo-grid video {
    background: #f3f7fa;
}

.shared-photo-grid .profile-video-load-failed {
    background:
        radial-gradient(circle at 50% 42%, rgba(7, 17, 31, .08), transparent 34%),
        linear-gradient(135deg, #eef4f7, #ffffff);
}

.shared-photo-grid .profile-video-load-failed video {
    opacity: .04;
}

.shared-photo-grid .is-profile-video-tile::after,
.shared-photo-grid button:has(video)::after {
    content: "";
    position: absolute;
    inset: auto 8px 8px auto;
    width: 30px;
    height: 30px;
    background: rgba(7, 17, 31, .72);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.shared-photo-grid .is-profile-video-tile::before,
.shared-photo-grid button:has(video)::before {
    content: "";
    position: absolute;
    right: 17px;
    bottom: 16px;
    z-index: 2;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #ffffff;
}

.profile-grid-processing {
    width: 100%;
    height: 100%;
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 10px;
    color: #07111f;
    background: #f3f7fa;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.profile-video-cover-fallback {
    width: 100%;
    height: 100%;
    min-height: 118px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(39, 216, 202, .34), transparent 32%),
        radial-gradient(circle at 88% 78%, rgba(7, 17, 31, .2), transparent 34%),
        linear-gradient(135deg, #eef7f8 0%, #dfe8ed 55%, #cfd9df 100%);
}

.profile-video-cover-fallback img {
    width: 44%;
    height: 44%;
    max-width: 86px;
    max-height: 86px;
    object-fit: contain;
    opacity: .72;
    filter: saturate(.95);
}

.profile-video-cover-fallback span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    min-width: 0;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(7, 17, 31, .72);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .01em;
}

.profile-flow-video {
    background: #07111f;
    object-fit: contain !important;
}

/* Post content editor */
body.post-editor-open {
    overflow: hidden !important;
}

.post-editor-backdrop[hidden] {
    display: none !important;
}

.post-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483200;
    display: grid;
    place-items: stretch;
    background: #050b14;
}

.post-editor-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    color: #ffffff;
    background: #050b14;
}

.post-editor-shell header {
    min-height: 62px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
}

.post-editor-shell header strong {
    font-size: 16px;
    font-weight: 950;
    text-align: center;
}

.post-editor-shell header button {
    min-height: 42px;
    padding: 0 14px;
    color: #07111f;
    background: #27d8ca;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.post-editor-shell header button:first-child {
    width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
}

.post-editor-shell header svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.post-editor-stage {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(39, 216, 202, .16), transparent 32%),
        #050b14;
}

.post-editor-stage canvas,
.post-editor-stage video {
    width: min(100vw, 620px);
    max-height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.post-editor-stage canvas[hidden],
.post-editor-stage video[hidden] {
    display: none !important;
}

.post-editor-overlay-preview {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 22px;
    pointer-events: none;
    text-align: center;
}

.post-editor-overlay-preview b {
    font-size: clamp(56px, 18vw, 96px);
    line-height: 1;
    text-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.post-editor-overlay-preview strong {
    align-self: end;
    color: #ffffff;
    font-size: clamp(22px, 7vw, 42px);
    font-weight: 950;
    text-shadow: 0 10px 28px rgba(0, 0, 0, .58);
}

.post-editor-overlay-preview span {
    align-self: end;
    margin-top: -6px;
    color: #27d8ca;
    font-size: clamp(14px, 4vw, 22px);
    font-weight: 950;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}

.post-editor-tools {
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    display: grid;
    gap: 10px;
    background: rgba(5, 11, 20, .96);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.post-editor-tools label {
    display: grid;
    gap: 6px;
}

.post-editor-tools label span,
.post-editor-ranges small {
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.post-editor-tools input[type="text"] {
    min-height: 44px;
    padding: 0 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 850;
}

.post-editor-tools input[type="range"] {
    width: 100%;
    accent-color: #27d8ca;
}

.post-editor-icon-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.post-editor-icon-row button {
    min-width: 48px;
    min-height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    font-size: 17px;
    font-weight: 950;
}

.post-editor-icon-row button.active {
    color: #07111f;
    background: #27d8ca;
    border-color: #27d8ca;
}

.post-editor-ranges {
    display: grid;
    gap: 8px;
}

.feed-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 24px;
    pointer-events: none;
    text-align: center;
}

.feed-video-overlay b {
    font-size: clamp(42px, 14vw, 78px);
    line-height: 1;
    text-shadow: 0 12px 30px rgba(0, 0, 0, .48);
}

.feed-video-overlay strong {
    align-self: end;
    color: #ffffff;
    font-size: clamp(22px, 7vw, 38px);
    font-weight: 950;
    line-height: 1.04;
    text-shadow: 0 10px 28px rgba(0, 0, 0, .62);
}

.feed-video-overlay span {
    align-self: end;
    margin-top: -4px;
    color: #27d8ca;
    font-size: clamp(13px, 4vw, 20px);
    font-weight: 950;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .54);
}

/* The native app must never be blocked by a global page loader. */
.bassla-entry-splash,
.bassla-entry-splash.is-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Corporate panel event control: compact, stable two-column cards. */
body.corporate-page .corporate-event-list.corporate-event-control-grid-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 3px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

body.corporate-page .corporate-event-control-grid-list > .corporate-event-control-card {
    display: grid !important;
    grid-template-rows: 92px 56px 38px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #edf1f4 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #071323 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-cover {
    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-cover img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-cover b {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    font-size: 16px !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-cover em {
    top: 6px !important;
    right: 6px !important;
    padding: 4px 7px !important;
    max-width: calc(100% - 12px) !important;
    font-size: 7px !important;
    box-shadow: none !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-summary {
    align-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px 7px 5px !important;
    box-sizing: border-box !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-summary small,
body.corporate-page .corporate-event-control-card .corporate-event-summary strong,
body.corporate-page .corporate-event-control-card .corporate-event-summary span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-summary small,
body.corporate-page .corporate-event-control-card .corporate-event-summary span {
    font-size: 8px !important;
    line-height: 1.15 !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-summary strong {
    font-size: 12px !important;
    line-height: 1.15 !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-compact-stats {
    align-self: end !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 5px 5px !important;
    box-sizing: border-box !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-compact-stats b {
    min-width: 0 !important;
    padding: 5px 2px !important;
    border-radius: 9px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
}

body.corporate-page .corporate-event-control-card .corporate-event-compact-stats small {
    font-size: 6px !important;
    line-height: 1.05 !important;
}

/* Notifications page cleanup */
.notifications-page .notifications-header {
    min-height: 46px;
}

.notifications-page .notifications-header .eyebrow {
    margin: 0;
    color: #07111f;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.04em;
    text-transform: none;
}

.notifications-page .push-ready-card.push-enable-only {
    display: grid;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.notifications-page .push-ready-card.push-enable-only[hidden] {
    display: none !important;
}

.notifications-page .push-ready-card.push-enable-only button {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    color: #ffffff;
    background: #07111f;
    font-size: 13px;
    font-weight: 950;
}

/* Event management detail */
.event-manage-pro-main {
    display: grid;
    gap: 12px;
}

.event-manage-pro-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
}

.event-manage-public-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #07111f;
    background: #eef3f6;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.event-manage-pro-hero {
    margin-top: 0;
    border-radius: 24px;
    box-shadow: none;
}

.event-manage-image-placeholder {
    height: 190px;
    display: grid;
    place-items: center;
    color: #07111f;
    background:
        radial-gradient(circle at 20% 18%, rgba(45, 220, 205, .35), transparent 38%),
        linear-gradient(135deg, #eff6f8, #dfe9ee);
    font-size: 56px;
    font-weight: 950;
}

.event-manage-pro-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
}

.event-manage-pro-stats article {
    min-width: 0;
    padding: 10px 4px;
    border-radius: 15px;
}

.event-manage-pro-stats strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-manage-pro-stats span {
    font-size: 9px;
}

.event-manage-pro-card,
.event-manage-edit-card {
    margin-top: 0 !important;
    box-shadow: none !important;
}

.event-manage-edit-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.event-manage-edit-card summary::-webkit-details-marker {
    display: none;
}

.event-manage-edit-card summary strong,
.event-manage-edit-card summary span {
    display: block;
}

.event-manage-edit-card summary strong {
    font-size: 15px;
    font-weight: 950;
}

.event-manage-edit-card summary span {
    color: #6f7b8c;
    font-size: 11px;
    font-weight: 850;
}

.event-manage-edit-card summary::after {
    content: "+";
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #07111f;
    background: #eef3f6;
    font-size: 20px;
    font-weight: 950;
}

.event-manage-edit-card[open] summary::after {
    content: "-";
}

.event-manage-edit-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.event-manage-edit-form label {
    display: grid;
    gap: 6px;
}

.event-manage-edit-form label span {
    color: #748194;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-manage-edit-form input,
.event-manage-edit-form textarea,
.event-manage-edit-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #dfe6eb;
    border-radius: 15px;
    color: #07111f;
    background: #f7fafc;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    box-sizing: border-box;
    outline: 0;
}

.event-manage-edit-form textarea {
    min-height: 96px;
    padding-top: 13px;
    resize: vertical;
}

.event-manage-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.event-manage-file input {
    padding: 12px;
}

.event-manage-edit-form > button,
.event-manage-guest-form button {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #17c9d5, #07111f);
    font-size: 13px;
    font-weight: 950;
}

.event-manage-order-list,
.event-manage-guest-list {
    display: grid;
    gap: 9px;
}

.event-manage-order-card,
.event-manage-guest-list article {
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(7, 17, 31, .07);
    border-radius: 18px;
    background: #f8fafc;
}

.event-manage-order-card.paid {
    background: rgba(45, 220, 205, .11);
}

.event-manage-order-card.cancelled,
.event-manage-order-card.refunded,
.event-manage-order-card.failed {
    background: rgba(255, 49, 95, .07);
}

.event-manage-order-card > div,
.event-manage-guest-list article {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
}

.event-manage-order-card > div {
    display: grid;
    gap: 9px;
}

.event-manage-order-card strong,
.event-manage-order-card small,
.event-manage-guest-list strong,
.event-manage-guest-list small,
.event-manage-guest-list em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-manage-order-card strong,
.event-manage-guest-list strong {
    font-size: 13px;
    font-weight: 950;
}

.event-manage-order-card small,
.event-manage-guest-list small,
.event-manage-guest-list em,
.event-manage-order-card p {
    margin: 0;
    color: #748194;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.event-manage-order-card b {
    color: #07111f;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.event-manage-chip-actions {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 1px;
    -webkit-overflow-scrolling: touch;
}

.event-manage-chip-actions form {
    margin: 0;
}

.event-manage-chip-actions button {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: #07111f;
    background: #ffffff;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.event-manage-chip-actions button.danger {
    color: #ff315f;
}

.event-manage-guest-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.event-manage-guest-form input {
    min-height: 42px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #dfe6eb;
    border-radius: 14px;
    background: #f7fafc;
    font-size: 12px;
    font-weight: 850;
    box-sizing: border-box;
}

.event-manage-guest-form input[name="note"],
.event-manage-guest-form button {
    grid-column: 1 / -1;
}

.event-manage-empty.mini {
    padding: 18px 12px;
}

/* Profile/event participation polish */
.profile-event-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 2px 9px;
    color: #07111f;
}

.profile-event-section-head strong {
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.profile-event-section-head span {
    color: #6f7b8d;
    font-size: 11px;
    font-weight: 900;
}

.profile-event-grid + .profile-event-section-head {
    margin-top: 22px;
}

.profile-event-tile.is-joined-event .profile-event-state {
    color: #06231f;
    background: #2dd8c9;
}

.profile-flow-actions .insta-action.is-liked,
.profile-flow-actions .insta-action.is-liked b {
    color: #ff315f !important;
}

.profile-flow-actions .insta-action.is-liked .action-icon svg,
.profile-flow-actions .insta-action.is-liked .action-icon svg path {
    fill: #ff315f !important;
    stroke: #ff315f !important;
}

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

.event-detail-section-title h2 {
    margin: 0;
    color: #071323;
    font-size: 17px;
    font-weight: 950;
}

.event-detail-section-title span {
    padding: 7px 10px;
    color: #0b7773;
    background: #e2fbf8;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.event-detail-participants {
    padding: 8px 2px 26px;
}

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

.event-detail-participant {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px;
    color: #071323;
    background: #f4f7fa;
    border-radius: 17px;
    text-decoration: none;
}

.event-detail-participant strong,
.event-detail-participant small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-detail-participant strong {
    font-size: 13px;
    font-weight: 950;
}

.event-detail-participant small {
    margin-top: 2px;
    color: #718093;
    font-size: 11px;
    font-weight: 850;
}

.event-detail-participants-empty {
    padding: 16px;
    color: #718093;
    background: #f4f7fa;
    border-radius: 17px;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}